Steps in image analysis:
The analog image is obtained using a camera.
The image is converted into a digital image using digitization. Using thresholding, the grayscale image is converted into a binary image which consists of foreground and background pixels.
Shrink and Swell operators are used to removing noise in the binary image.
The noise-free region is then labeled using region labeling and a growing algorithm.
Shape analysis is carried out using area/line descriptors Moments are computed.