REGIONS
INEL 6088 Computer Vision
- Ref. Jain et. al. Ch. 4
REGIONS INEL 6088 Computer Vision Ref. Jain et. al. Ch. 4 - - PowerPoint PPT Presentation
REGIONS INEL 6088 Computer Vision Ref. Jain et. al. Ch. 4 SEGMENTATION BY REGION SPLITTING AND MERGING Segmented image RAG Dual of RAG RAG MATLAB EXAMPLE Link to sample code RAG MATLAB EXAMPLE Link to sample code distance function
Segmented image RAG Dual of RAG
distance function watershed
How do we judge if two regions are similar?
predetermined value
H0: if the two regions belong to the same object, the intensities are drawn from a single Gaussian distribution with mean µ0 and variance σ02 H1: if the two regions belong to different objects, they belong to two different Gaussian distributions with parameters (µ1,σ12) and (µ2,σ22).
Normal distribution Normal distribution parameters: for n pixels Gray levels are represented by gi
Use previous definition to find σ using the m1+m2 pixels. Assumption H0: if the two regions belong to the same
distribution with mean µ0 and variance σ02. If we assume H0, the joint probability density:
To determine if the two regions should merge, find the likelihood ratio Merge if L is below some threshold. Assumption H1: if the two regions belong to different
distributions with parameters (µ1,σ12) and (µ2,σ22).
Combine regions if boundary between them is weak.
differ by less than some amount T.
Merge regions R1 and R2 if : W = length of weak part of the boundary S = minimum of the perimeters of the two regions τ = threshold (0.5 is a good heuristic value) Do not merge merge
Another method: redefine S as the common boundary Do not merge merge
Left: weak boundary is small compared to the total common boundary
Var = σ2 = Pn
i=1(xi − ¯
x)2 n
Possible ways of finding a boundary:
region into a fixed number of equal-sized regions.
use in grayscale images (see text) Region splitting is usually more dificult that merging.
P(R) = { 1 if the variance is small 0 otherwise
Start with a set of “seed” regions, then expand the regions if they satisfy some constrain. Textbook example: homogeneity predicate is based on fitting a planar or biquadratic functions (m between 0 and 2, included) to the gray values: Homogeneity:
Algorithm 3.8: Region Growing Using Planar and Biquadratic Models (cont)
very sensitive to outliers
conservative threshold
knowledge
Array representation
image to indicate the region to which each pixel belongs.
Other representations
to represent an image
numbers
Contains the n×n image plus k reduced versions (levels). Fits into a linear array of size 2(22×level).
region inside another region.
splitting an image into component parts.
constant characteristics.
Quad Trees Representation
splitting of an image into 4 subregions.
either black or white then that subregion is not further split and the subregion is marked as black
considered “gray” and can be further split.
are no further gray regions.