Presentation is loading. Please wait.

Presentation is loading. Please wait.

Course : T Computer Vision

Similar presentations


Presentation on theme: "Course : T Computer Vision"— Presentation transcript:

1

2 Course : T0283 - Computer Vision
Year : 2013 Segmentation Session 7

3 Learning Outcomes After carefully listening this lecture, students will be able to do the following: Explain various segmentation techniques and demonstrate their implementation (histogram based segmentation, k-means) using MATLAB and OpenCV (LO2, LO3) T Computer Vision

4 Lecture Outline Motivation: Recognition Using Region Properties
Region Segmentation Similarity Constraints Simple Segmentation Image Histogram Segmentation Using Histogram (Simple Case) Segmentation Using Histogram (Real image histograms) Recursive Connected Component Algorithm Sequential Connected Component Algorithm Phagocyte Algorithm Likelihood Ratio Test Difference Between Segmentation and Edge Detection T Computer Vision

5 Segmentation is the process of distinguishing objects in the dataset from their surroundings so as to facilitate the creation of geometric models. For example, in medical imaging it is often important to measure the shape, surface area, or volume of tissues in the body. Once the dataset is segmented, those quantities are easily measured. T Computer Vision

6 Motivation: Recognition Using Region Properties
Training For all training samples of each model object Segment the image Compute region properties (features) Recognition Given an image of unknown object, Compute its feature vector Compare with the training set T Computer Vision

7 Region Segmentation T Computer Vision

8 Segmentation Find set of regions R1, R2, ….,Rn such that:
All pixels in region i satisfy some similarity constraint: T Computer Vision

9 Similarity Constraints
All pixels in any sub-image musts have the same gray levels. All pixels in any sub-image must not differ more than some threshold All pixels in any sub-image may not differ more than some threshold from the mean of the gray of the region The standard deviation of gray levels in any sub-image must be small. T Computer Vision

10 Simple Segmentation T Computer Vision

11 Image Histogram Histogram graphs the number of pixels with a particular gray level as a function of the image of gray levels. number of pixels gray level T Computer Vision

12 Segmentation Using Histogram Simple Case
T Computer Vision

13 Segmentation Using Histogram Simple Case
T Computer Vision

14 Realistic Histograms Smooth out noise
Convolve hist. by averaging or 1D Gaussian filter peak peak valley peak valley valley T Computer Vision

15 Segmentation Using Histogram Real image histograms
Compute the histogram of a given image. Smooth the histogram by averaging peaks and valleys in the histogram. Detect good peaks by applying thresholds at the valleys. Segment the image into several binary images using thresholds at the valleys. Apply connected component algorithm to each binary image find connected regions. T Computer Vision

16 Segmentation Using Histograms
Select the valleys as thresholds Apply threshold to histogram Label the pixels within the range of a threshold with same label, i.e., a, b, c … or 1, 2, 3 … T Computer Vision

17 Connected Components Disjoint segments with same labels need to be split may be added to segment c T Computer Vision

18 Recursive Connected Component Algorithm
Scan the binary image left to right, top to bottom. If there is an unlabeled pixel with a value of “1”, assign a new label to it. Recursively check the neighbors of the pixel in step 2 and assign the same label if they are unlabeled with value “1”. Stop when all the pixels of value “1” have been labeled. T Computer Vision

19 Sequential Connected Component Algorithm
Scan the binary image left to right, top to bottom. If an unlabeled pixel with a value of “1”, assign a new label to it according to the following rules : Determine equivalence classes of labels In the second pass, assign the same label to all elements in an equivalence class. T Computer Vision

20 Sequential Connected Component Algorithm
Equivalence class T Computer Vision

21 Example: Detecting Finger Tips (marked white)
T Computer Vision

22 Recaps: Steps in Seed Segmentation
Compute the histogram. Smooth the histogram Detect good peaks Segment image into binary images using thresholds at the valleys. Apply connected component algorithm. T Computer Vision

23 Improving Seed Segmentation
Merge small neighboring regions Region growing step Split large regions Region splitting Remove weak boundaries between adjacent regions T Computer Vision

24 Region Growing Seed segmentation (histogram based seg.)
Region splitting and merging Phagocyte algorithm Likelihood ratio test T Computer Vision

25 Region Split and Merge Splitting: split non uniform region into 4 adjacent regions Merging: merge similar regions Stop when no splitting merging are possible Uniformity/similarity function: P T Computer Vision

26 Example R R R R R R R R R R R T0283 - Computer Vision R R R R R R R R

27 Phagocyte Algorithm Boundary melting
Remove weak boundaries Similar to region merging Boundary weakness is based on color similarity R1 R2 T Computer Vision

28 Phagocyte Algorithm R1 R2 T Computer Vision

29 Phagocyte Merging Heuristics
Merge two regions if where P1 and P2 are the perimeters of regions R1 and R2. Merge regions if Phagocyte Weakness T Computer Vision

30 Likelihood Ratio Test Two region hypothesis
There is only one region There are indeed two regions Intensity at every pixel is independent Joint probability Gaussian distribution T Computer Vision

31 Likelihood Ratio Test observing intensity under Gaussian model
Likelihood of region A x1, x2, …,xm1A Likelihood of region B xm1+1, xm1+2, …,xm1+m2B T Computer Vision

32 Likelihood Ratio Test There is 1 region hypothesis
There are 2 regions hypothesis T Computer Vision

33 Likelihood Ratio Test Merge regions if LH<T.
T Computer Vision

34 Region Growing Methods
Different algorithms have different number of thresholds How much merging is required Stopping criterion Though simple, seed segmentation succeed by region growing is usually successful T Computer Vision

35 Difference Between Segmentation and Edge Detection
Closed boundary Edges are usually open Segmentation provides closed boundaries Local or global Edges are computed in the locality Segmentation is global Increasing feature vector dimensionality Does not drastically improve edge detection Improves segmentation (motion, texture information etc.) Boundary position Localized in edge detection Usually not localized (recent advancements use locality as well) Especially contour based segmentation T Computer Vision

36 References Textbook Forsyth, D., Ponce, J. (2012). Computer Vision: A Modern Approach. 2nd ed. Prentice Hall. ISBN: Web Relationship to edge detection, segmentation, and classification T Computer Vision

37 THANK YOU T Computer Vision


Download ppt "Course : T Computer Vision"

Similar presentations


Ads by Google