Top Banner
26

Morphology Structural processing of images Image Processing and Computer Vision: 33 Morphological Transformations Set theoretic methods of extracting.

Dec 19, 2015

Download

Documents

Annabella Casey
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Morphology Structural processing of images Image Processing and Computer Vision: 33 Morphological Transformations Set theoretic methods of extracting.
Page 2: Morphology Structural processing of images Image Processing and Computer Vision: 33 Morphological Transformations Set theoretic methods of extracting.

Morphology

Structural processing of images

Page 3: Morphology Structural processing of images Image Processing and Computer Vision: 33 Morphological Transformations Set theoretic methods of extracting.

Image Processing and Computer Vision: 3 3

Morphological Transformations Set theoretic methods of extracting

quantitative descriptions of image components Boundaries Skeletons Convex hull

Mainly binary, sometimes greylevel Two fundamental operations

Erode, dilate

Page 4: Morphology Structural processing of images Image Processing and Computer Vision: 33 Morphological Transformations Set theoretic methods of extracting.

Image Processing and Computer Vision: 3 4

Thresholding Morphological operations usually

applied to bilevel images (black and white)

Generated by thresholding Greyscale Colour

Page 5: Morphology Structural processing of images Image Processing and Computer Vision: 33 Morphological Transformations Set theoretic methods of extracting.

Image Processing and Computer Vision: 3 5

Thresholding Greyscale Images Previous lecture If g(x,y) > then g(x,y) = 1 else g(x,y) = 0

Page 6: Morphology Structural processing of images Image Processing and Computer Vision: 33 Morphological Transformations Set theoretic methods of extracting.

Image Processing and Computer Vision: 3 6

Thresholding Colour Images Partition colour cube:

if cr(x,y) > r AND

cg(x,y) > g AND

cb(x,y) > b then c(x,y) = 1

else c(x,y) = 0

Page 7: Morphology Structural processing of images Image Processing and Computer Vision: 33 Morphological Transformations Set theoretic methods of extracting.

Image Processing and Computer Vision: 3 7

Thresholding Colour

Images

Colour matching

222

max

,,,)),,((

0

)),,((1),(

oBoGoR ByxfGyxfRyxfCyxfd

where

otherwise

dCyxfdifyxg

Page 8: Morphology Structural processing of images Image Processing and Computer Vision: 33 Morphological Transformations Set theoretic methods of extracting.

Image Processing and Computer Vision: 3 8

Preliminary Notation Translation of a region by x

Reflection of a region

AaxaccAx ,:

BbbxxB ,:ˆ

Page 9: Morphology Structural processing of images Image Processing and Computer Vision: 33 Morphological Transformations Set theoretic methods of extracting.

Image Processing and Computer Vision: 3 9

Formally

Informally place the structuring element on a

pixel of the object remove that pixel if the structuring

element overlaps a non-object pixel

Binary Erode

ABxxBA :

Page 10: Morphology Structural processing of images Image Processing and Computer Vision: 33 Morphological Transformations Set theoretic methods of extracting.

Image Processing and Computer Vision: 3 10

Binary Dilate Formally

Informally All pixels covered by structuring

element placed at all locations on region

ABxxBA ˆ:

Page 11: Morphology Structural processing of images Image Processing and Computer Vision: 33 Morphological Transformations Set theoretic methods of extracting.

Image Processing and Computer Vision: 3 11

Binary Open and Close Erosion shrinks an object Dilation expands it Can combine operators Open = erosion then dilation Close = dilation then erosion

Page 12: Morphology Structural processing of images Image Processing and Computer Vision: 33 Morphological Transformations Set theoretic methods of extracting.

Image Processing and Computer Vision: 3 12

Binary Open Opening smoothes regions

Removes spurs Breaks narrow lines

Page 13: Morphology Structural processing of images Image Processing and Computer Vision: 33 Morphological Transformations Set theoretic methods of extracting.

Image Processing and Computer Vision: 3 13

Example

Binaryimage

Dilate Erode

Page 14: Morphology Structural processing of images Image Processing and Computer Vision: 33 Morphological Transformations Set theoretic methods of extracting.

Image Processing and Computer Vision: 3 14

Binary Close Closing fills gaps

Holes in region Narrow gaps

Page 15: Morphology Structural processing of images Image Processing and Computer Vision: 33 Morphological Transformations Set theoretic methods of extracting.

Image Processing and Computer Vision: 3 15

Processing grey scale images Same methods can be applied to

greyscale images Slight redefinition

Page 16: Morphology Structural processing of images Image Processing and Computer Vision: 33 Morphological Transformations Set theoretic methods of extracting.

Image Processing and Computer Vision: 3 16

Greyscale Erode Set operation replaced by min

operation Output at a point is minimum of

image pixel and structuring element pixel

kjbknjmaBADG

Bkj,,,min,

,

Page 17: Morphology Structural processing of images Image Processing and Computer Vision: 33 Morphological Transformations Set theoretic methods of extracting.

Image Processing and Computer Vision: 3 17

Greyscale Dilate Set operation replaced by max

operation Output is maximum of image and

structuring element

kjbknjmaBADGBkj

,,,max,,

Page 18: Morphology Structural processing of images Image Processing and Computer Vision: 33 Morphological Transformations Set theoretic methods of extracting.

Image Processing and Computer Vision: 3 18

Examples

Erode Dilate

Page 19: Morphology Structural processing of images Image Processing and Computer Vision: 33 Morphological Transformations Set theoretic methods of extracting.

Image Processing and Computer Vision: 3 19

Distance Applies to binary images For each pixel in a region

distance = minimum path to outside0 0 0 0 0

0 1 1 1 0

0 1 1 1 0

0 1 1 1 0

0 0 0 0 0

0 0 0 0 0

0 1 1 1 0

0 1 2 1 0

0 1 1 1 0

0 0 0 0 0

Page 20: Morphology Structural processing of images Image Processing and Computer Vision: 33 Morphological Transformations Set theoretic methods of extracting.

Image Processing and Computer Vision: 3 20

Computation Use erosion

Label removed pixel with iteration number

Use relationship operator f(i,j) are neighbours of f(x,y)

jifyxfyxf

yxfyxfmm ,min,,

,,10

0

Page 21: Morphology Structural processing of images Image Processing and Computer Vision: 33 Morphological Transformations Set theoretic methods of extracting.

Image Processing and Computer Vision: 3 21

Skeleton Reduces regions of a binary image

to lines one pixel thick Preserves

Shape Continuity

How? Uses?

Page 22: Morphology Structural processing of images Image Processing and Computer Vision: 33 Morphological Transformations Set theoretic methods of extracting.

Image Processing and Computer Vision: 3 22

Algorithms Thinning

Repeatedly thin image Retain end points and connections

Distance Transform Skeleton lies along discontinuities Sort of local maxima or ridges

Page 23: Morphology Structural processing of images Image Processing and Computer Vision: 33 Morphological Transformations Set theoretic methods of extracting.

Image Processing and Computer Vision: 3 23

Applications Shape representation, maintaining

topology Character recognition

Page 24: Morphology Structural processing of images Image Processing and Computer Vision: 33 Morphological Transformations Set theoretic methods of extracting.

Image Processing and Computer Vision: 3 24

Convex Hull

Convex hull follows outline of object, except for concavities.Number and shape of regions between convex hull and object are characteristic of object shape.

Page 25: Morphology Structural processing of images Image Processing and Computer Vision: 33 Morphological Transformations Set theoretic methods of extracting.

Image Processing and Computer Vision: 3 25

Summary Binary morphology

Erode, dilate, open, close Greyscale morphology

Erode, dilate Distance Skeleton Convex Hull

Page 26: Morphology Structural processing of images Image Processing and Computer Vision: 33 Morphological Transformations Set theoretic methods of extracting.

Image Processing and Computer Vision: 3 26

Computers in the future may weigh no more than 1 ½ tonsPopular Mechanics, 1949