REGIONS INEL 6088 Computer Vision Ref. Jain et. al. Ch. 4 - - PowerPoint PPT Presentation

regions
SMART_READER_LITE
LIVE PREVIEW

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


slide-1
SLIDE 1

REGIONS

INEL 6088 Computer Vision

  • Ref. Jain et. al. Ch. 4
slide-2
SLIDE 2

SEGMENTATION BY
 REGION SPLITTING AND MERGING

slide-3
SLIDE 3

Segmented image RAG Dual of RAG

slide-4
SLIDE 4
slide-5
SLIDE 5

RAG MATLAB EXAMPLE

Link to sample code

slide-6
SLIDE 6

RAG MATLAB EXAMPLE

Link to sample code

distance function watershed

slide-7
SLIDE 7

RAG MATLAB EXAMPLE

Link to sample code

slide-8
SLIDE 8

How do we judge if two regions are similar?

  • If the difference of their mean gray level is less than some

predetermined value

  • If the regions are statistically similar. It is assumed that

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).

slide-9
SLIDE 9

Normal distribution Normal distribution parameters: for n pixels Gray levels are represented by gi

slide-10
SLIDE 10

Use previous definition to find σ using the m1+m2 pixels. Assumption H0: if the two regions belong to the same

  • bject, the intensities are drawn from a single Gaussian

distribution with mean µ0 and variance σ02. If we assume H0, the joint probability density:

slide-11
SLIDE 11

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

  • bjects, they belong to two different Gaussian

distributions with parameters (µ1,σ12) and (µ2,σ22).

slide-12
SLIDE 12

MERGING BY REMOVING WEAK EDGES

Combine regions if boundary between them is weak.

  • Pixel intensities in the two sides of a weak boundary

differ by less than some amount T.

  • Boundary length must also be taken into account.
slide-13
SLIDE 13

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

slide-14
SLIDE 14

Another method: redefine S as the common boundary Do not merge merge

Left: weak boundary is small compared to the total common boundary

slide-15
SLIDE 15

REGION SPLITTING

Var = σ2 = Pn

i=1(xi − ¯

x)2 n

slide-16
SLIDE 16

Possible ways of finding a boundary:

  • Use edge strength
  • Regular decomposition methods: divide

region into a fixed number of equal-sized regions.

  • See quad-tree representation. Modify to

use in grayscale images (see text) Region splitting is usually more dificult that merging.

slide-17
SLIDE 17

P(R) = { 1 if the variance is small 0 otherwise

slide-18
SLIDE 18

REGION GROWING

slide-19
SLIDE 19

REGION GROWING

slide-20
SLIDE 20

REGION GROWING

slide-21
SLIDE 21

REGION GROWING

slide-22
SLIDE 22

REGION GROWING

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:

slide-23
SLIDE 23
slide-24
SLIDE 24

Algorithm 3.8: Region Growing Using Planar and Biquadratic Models (cont)

slide-25
SLIDE 25
  • Step 2 tries to avoid the effect of outliers – algorithm is

very sensitive to outliers

  • One approach to find the seed regions is to use a

conservative threshold

  • Another approach is to partition the image using domain

knowledge

slide-26
SLIDE 26

REGION REPRESENTATION

Array representation

  • Labeled images - use an array of the same size as the original

image to indicate the region to which each pixel belongs.

  • Overlays - use binary masks to define each region

Other representations

  • Hierarchical representation – use many different resolutions

to represent an image

  • Symbolic representation – enclosing rectangle, moments, Euler

numbers

  • Boundary coding – use region boundaries
slide-27
SLIDE 27

ARRAY REPRESENTATION (LABELING)

(a) binary image (b) connected components

slide-28
SLIDE 28

ARRAY REPRESENTATION
 (OVERLAYS)

slide-29
SLIDE 29

HIERARCHICAL REPRESENTATIONS USING PYRAMIDS

Contains the n×n image plus k reduced versions (levels). Fits into a linear array of size 2(22×level).

slide-30
SLIDE 30
  • Emphasise inclusion of a

region inside another region.

  • Constructed by recursively

splitting an image into component parts.

  • Stops when regions have

constant characteristics.

BINARY TREES

slide-31
SLIDE 31

Quad Trees Representation

  • Obtained by recursively

splitting of an image into 4 subregions.

  • If all points in a subregion are

either black or white then that subregion is not further split and the subregion is marked as black

  • r white.
  • Regions with both 0 & 1 are

considered “gray” and can be further split.

  • Each node is either a leaf node
  • r have four children.
  • Process is stopped when there

are no further gray regions.