Presentation is loading. Please wait.

Presentation is loading. Please wait.

Binary Image Analysis. YOU HAVE TO READ THE BOOK! reminder.

Similar presentations


Presentation on theme: "Binary Image Analysis. YOU HAVE TO READ THE BOOK! reminder."— Presentation transcript:

1 Binary Image Analysis

2 YOU HAVE TO READ THE BOOK! reminder

3 What is a binary image? An image that has two possible values for each pixel.

4 Thresholding A method that creates binary images. An operation that divides pixels into two groups: Foreground pixels and Background pixels

5 Thresholding A simple threshold has one value t. Usually: g=image>t; – Pixels with values greater than t are: foreground pixels. – Pixels with values smaller than t are: background pixels. How else can we do it?

6 Thresholding Threshold above and threshold below. How do we choose the threshold value? – Simple: mean or median. – Histogram. Adaptive thresholding. Multiband thresholding.

7 Thresholding 1.An initial threshold (T) is chosen, this can be done randomly or according to any other method desired. 2.The image is segmented into object and background pixels, creating two sets: – G 1 = {f(m,n):f(m,n)>T} (object pixels) – G 2 = {f(m,n):f(m,n)T} (background pixels) (note, f(m,n) is the value of the pixel located in the m th column, n th row) 3.The average of each set is computed. – m 1 = average value of G 1 – m 2 = average value of G 2 4.A new threshold is created that is the average of m 1 and m 2 – T’ = (m 1 + m 2 )/2 5.Go back to step two, now using the new threshold computed in step four, keep repeating until the new threshold matches the one before it (i.e. until convergence has been reached). Wikipedia (Thresholding)

8 Histogram Display of frequencies of pixel intensity values in an image. The number of pixels found for every intensity value. http://homepages.inf.ed.ac.uk/rbf/HIPR2/histg ram.htm

9 Multiband Thresholding http://homepages.inf.ed.ac.uk/rbf/HIPR2/thre shld.htm

10 Adaptive Thresholding Use different threshold values for different regions of the image.

11 Connected Components Labeling Used only with binary images. It groups objects in images. Scans the image for similar neighboring pixels. http://homepages.inf.ed.ac.uk/rbf/HIPR2/label.htm

12 Image Morphology Analysis and processing of geometrical structures. It is used in binary images. Operations performed by structuring elements on images. Erosion, Dilation, Opening, Closing

13 Image Morphology Structuring element example

14 Image Morphology Dilation

15 Image Morphology Erosion

16 Image Morphology Opening

17 Image Morphology Closing


Download ppt "Binary Image Analysis. YOU HAVE TO READ THE BOOK! reminder."

Similar presentations


Ads by Google