YOU ARE DOWNLOADING DOCUMENT

Please tick the box to continue:

Transcript
Page 1: CS292 Computational Vision and Language Segmentation and Region Detection.

CS292 Computational Vision and Language

Segmentation and Region Detection

Page 2: CS292 Computational Vision and Language Segmentation and Region Detection.
Page 3: CS292 Computational Vision and Language Segmentation and Region Detection.

Introduction

• All pixels belong to a region, which can be– an object– part of object– background

• Find region– By finding constituent pixels in a region– By finding boundary pixels

Page 4: CS292 Computational Vision and Language Segmentation and Region Detection.

Image Segmentation Task

• To divide the image into regions or segments, each of which is in some sense homogeneous, but the union of adjacent segments is not homogeneous in the same sense.

• Homogeneity here is characterized by some properties like– smoothly varying intensity, similar

statistics, or colour.

Page 5: CS292 Computational Vision and Language Segmentation and Region Detection.

Region Detection

• A set of pixels P

• An homogeneity predicate H(P)

• Partition P into regions {R}, such that

iR

i1

n

P

H iR True

H iR jR False

Page 6: CS292 Computational Vision and Language Segmentation and Region Detection.

Image Segmentation• Many techniques including

– Non-contextual technique: thresholding– Contextual techniques:

• region-based

• connectivity-preserving relaxation methods.

– Other methods: Image primitive based

• Mixture of all these

Page 7: CS292 Computational Vision and Language Segmentation and Region Detection.

Threshold techniques

• make decisions based on local pixel information– are effective when the intensity levels of the objects fall

squarely outside the range of levels in the background.

Page 8: CS292 Computational Vision and Language Segmentation and Region Detection.

Global thresholds

• Compute threshold from whole image

• Incorrect in some regions

Page 9: CS292 Computational Vision and Language Segmentation and Region Detection.

Local thresholds

• Divide image into regions

• Compute threshold per region

• Merge thresholds across region boundaries

Page 10: CS292 Computational Vision and Language Segmentation and Region Detection.

Contextual techniques

• Contextual techniques take into account the fact that pixels belonging to a single object are close to one another.

• Approaches to contextual segmentation are based on the concept of discontinuity or concept of similarity. – detecting abrupt changes- edge detection techniques,

– or to create uniform regions directly,

• Discontinuity and similarity approaches mirror one another, in the sense that completion of boundary is equivalent to breaking one region into two.

Page 11: CS292 Computational Vision and Language Segmentation and Region Detection.

Region Growing

• All pixels belong to a region

• Select a pixel

• Grow the surrounding region

(we will practise this in lab class)

Page 12: CS292 Computational Vision and Language Segmentation and Region Detection.

Slow Algorithm

• If a pixel is– not assigned to a region– adjacent to region– has colour properties not different to region’s

• Then– Add to region– Update region properties

Page 13: CS292 Computational Vision and Language Segmentation and Region Detection.

Split and Merge

• Initialise image as a region

• While region is not homogeneous– split into quadrants and examine homogeneity

Page 14: CS292 Computational Vision and Language Segmentation and Region Detection.

Recursive SplittingSplit(P){ If (!H(P)) {

P subregions 1 … 4;Split (subregion 1);Split (subregion 2);Split (subregion 3);Split (subregion 4);

}}

Page 15: CS292 Computational Vision and Language Segmentation and Region Detection.

Recursive Merging

• If adjacent regions are– weakly split

• weak edge, depending on defined criteria

– similar• similar greyscale/colour properties

• Merge them

Page 16: CS292 Computational Vision and Language Segmentation and Region Detection.

Edge Following

• Detection– finds candidate edge pixels

• Following– links candidates to form boundaries

Page 17: CS292 Computational Vision and Language Segmentation and Region Detection.

Representing Regions

• Constituent pixels

• Boundary pixels

Page 18: CS292 Computational Vision and Language Segmentation and Region Detection.

Based on both regions and edges

Page 19: CS292 Computational Vision and Language Segmentation and Region Detection.

Based on the combination of colour and texture

Page 20: CS292 Computational Vision and Language Segmentation and Region Detection.

Active Contour Model- Snake

• A connectivity-preserving relaxation-based segmentation method, - active contour model – snake– The main idea is to start with some initial boundary shape

represented in the form of spline curves, and iteratively modify it by applying various shrink/expansion operations according to some energy function.

• Concepts involved– Image gradient– Smooth operation– Histogram equalization– Energy functions

Page 21: CS292 Computational Vision and Language Segmentation and Region Detection.

Snakes, Active/Dynamic Contours

• Borders follow outline of object

• Outline obscured?

• Snake provides a solution

Page 22: CS292 Computational Vision and Language Segmentation and Region Detection.

Algorithm

• Snake computes smooth, continuous border

• Minimises– length of border– curvature of border

• Against an image property– gradient?

EEEE imagecurvaturelengthtot

Page 23: CS292 Computational Vision and Language Segmentation and Region Detection.

Minimisation

• Initialise snake

• Integrate energy along it

• Iteratively move snake to global energy minimum

Page 24: CS292 Computational Vision and Language Segmentation and Region Detection.

Active Contour Method

Case study next week, notes will be given during the lecture

Page 25: CS292 Computational Vision and Language Segmentation and Region Detection.

Summary

• Image segmentation

• Region detection– growing– edge following


Related Documents