Professional Documents
Culture Documents
Image Processing: Dept - of Instrumentation Science University of Pune
Image Processing: Dept - of Instrumentation Science University of Pune
Bhupendra P.Karandikar
INTRODUCTION
Image: An image is defined in real world as a function of two variables, a(x,y)
Where, a = amplitude(brightness) x,y= co-ordinate position
Image operations
Digital technology has made it possible to manipulate multi-dimensional signals with computer systems that can be divided into:
Image operations
Image analysis
Input : Image Output : Measurement results Process: Comparison in under test sample with standard gauge or best fit circle.
Example: a online inspection Detection & measurement of diameter of a rubber O rings manufactured.
Advantages: Non-contact measurements. Human being not involved.
Image operations
Image Transformation
Input : Image Output : Image Process: Image morphing comparing each pixel of the image. Example: Digital image mixing, animation tool. Advantages: No series of picture frames are required. any type of image can be produced.
Image operations
Image Understanding
Input : Image Output : High level description Process: Collecting & arranging the Image information which can be compared with another image. Example: Finger print matching, Human Face recognition Optical character recognition.
Digital images
Image representation:
f(x,y) with origin as the upper left corner.
Quantization:
- Grey scale image - Colour image, f(x,y) is a vector with three components R,G,B. This can be represented in RGB Colour cube.
Dithering
thresholding the image against a dither matrix. Each pixel is compared with dither matrix The pixel becomes white if value exceeds the threshold or black otherwise. 0 128 D1= example for operations on 8 bit 192 64 images
1 GREEN
Division:
- division of two images for meaningful results - ratio image can be formed featuring illumination & surface topography - remote sensing applications
Example:
Image histograms
The histogram of an image records the frequency distribution of grey levels in that image. In bin 0, we record the number of times a grey level of 0 occurs & similarly for other grey levels. Useful indication of relative importance of different grey levels in the image and judging the requirements of contrast & brightness
Histogram equalization
Redistributes grey levels in an attempt to flatten the frequency distribution More grey levels are allocated where there are most pixels, fewer grey levels where there are fewer pixels.
Histogram equalization
Morphological operations
Introduction Describes range of non-linear image processing techniques dealing with shape of image Removal of imperfections caused by noise, texture or inaccurate thresholding to binary images
Morphological operations
Fundamental binary operations Basic concept:
typically to probe an image with a small shape or template known as structuring element.
The structuring element is positioned at various positions in the image and compared with the corresponding neighborhood pixels.
Morphological operations
Fundamental binary operations
Structuring elements A matrix of known dimension and with predefined elements. Types of structuring elements: - Square shaped - Diamond shaped - Cross shaped etc. Advantage & disadvantages of structuring elements- for erosion / dilation.
Morphological operations
Structuring elements
Examples:
Morphological operations
Fundamental binary operations
Fitting & hitting: Checking whether the element hits the image or fits the image. Hitting of an image:
Fitting of an image:
Morphological operations
Fundamental binary operations
Erosion:
Pixels are eroded from both the inner and outer boundaries of regions, so the erosion will enlarge the holes enclosed by a single region as well as making the gap between different regions larger. This is fitting of image. Erosion of an image f by a structuring element s is given by, fs
g (x,y) = 1 if s fits f = 0 otherwise.
Morphological operations
Erosion operations
Example of erosion:
Advantages: Removal of unwanted, small scale features. Disadvantage: Side-effect on image as reduction in size of features
Morphological operations
Applications of erosion Boundary detection: Eroded image lacks boundary pixels, hence we can subtract the eroded image from the original image to get the boundary. g = f - (f s)
Morphological operations
Applications of erosion
Example: Boundary detection
Morphological operations
Dilation operation
Dilation: the structuring element hits the boundary region and source image is enlarged, known as hitting to image. Dilation of an image f by a structuring element s is given by, fs g (x,y) = 1 if s hits f = 0 otherwise.
Morphological operations
Dilation operation Dilation operation will shrink the holes enclosed by a single region and make the gaps between different regions smaller. To fill in any small intrusions into a regions boundaries. Opposite effect of erosion.
Morphological operations
Applications of erosion Disadvantage: Boundary finding is highly dependent on the ratio of structuring element to image resolution.
Morphological operations
Application of Dilation
Enlarging or enhancing the regions of interest (ROI) Smoothening of the boundary regions Limitations: Exhibits unnecessary alteration to the sharp edges
Morphological operations
Dilation operations
Example:
Morphological operations
Compound operations Combinations of erosion, dilation & various other operations - Inversion - opening of an image - Closing of an image
Morphological filtering
Opening of image: erosion is followed by dilation. f s = (f 0 s) 0 s Closing of image: dilation is followed by erosion. f s = (f 0 s) 0 s
Morphological filtering
Filtering is removal of noise and unnecessary information from image. Example: a biscuit inspection system. Objective is to measure / monitor size & shape. The noise is the image capturing element noise or the biscuit crumbs.
Morphological filtering
Example:
Segmentation
Low level Image processing
Segmentation
Partitioning of the image into distinct regions Applications as Image analysis & interpretation - Industrial inspection - tracking of objects - detection and measurement of objects
Segmentation
Classification: - Non-contextual: these techniques ignore the relationships between the two features of an image - Contextual: exploit the relationships between the two features in an image
Segmentation
Non-contextual techniques
Regions are treated as independent images Thresholding: Classification of pixels in two distinct categories. The strength of an edge-typically grey level is detected by assigning value 0 if the gradient falls below the threshold or a non-zero (usually 1) is assigned.
Non-contextual techniques
Thresholding Classification of pixels into two categories. 0 f(x,y) < T g(x,y) = 1 , f(x,y) T. For the brighter feature. This shows that this technique is feature dependent and cannot be used for automatic detection. Example, a robot camera to view its cards in hand.
Non-contextual techniques
Thresholding
Example:
Non-contextual techniques
Thresholding
g(x,y) =
Contextual techniques
Thresholding groups together according to their global attribute, such as grey level. This can be more successful as it takes into account that pixels belonging to a single object are close to one another. It can be based on concept of similarity or concept of discontinuity.
Contextual techniques
Pixel connectivity
This is a central concept of both edge and region based approaches. Types: 4-neighbourhood 8-neighbourhood