“Study of Basic Relationships between Pixels of an Image
(part-1)” Objectives:
The objective of this lab is to explore the built-in image processing toolbox functions for finding the
pixel relationships and writing our own functions to implement those algorithms.
Introduction:
Pixel is the smallest element of an image. Each pixel corresponds to any one value. In an 8bit
gray scale image, the value of the pixel between 0 and 255. The value of a pixel at any point
correspond to the intensity of the light photons striking at that point. Each pixel stores a value
proportional to the light intensity at that particular location.
In Lab Tasks:
Lab Task 1:
Task Description: Implementing the code of 4 neighbors of he selected pixels at location
(2,2) of image. Two vertical and two horizontal neighbors are extracted. 1 st condition going to
be check if it is yes then 4 direct neighbors extract otherwise error will be display.
Code and output:
, Command Window:
Flow chart: