Morphology Structural processing of images Image Processing and Computer Vision: 33 Morphological...
-
Upload
annabella-casey -
Category
Documents
-
view
218 -
download
0
Transcript of Morphology Structural processing of images Image Processing and Computer Vision: 33 Morphological...
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
Image Processing and Computer Vision: 3 4
Thresholding Morphological operations usually
applied to bilevel images (black and white)
Generated by thresholding Greyscale Colour
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
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
Image Processing and Computer Vision: 3 7
Thresholding Colour
Images
Colour matching
222
max
,,,)),,((
0
)),,((1),(
oBoGoR ByxfGyxfRyxfCyxfd
where
otherwise
dCyxfdifyxg
Image Processing and Computer Vision: 3 8
Preliminary Notation Translation of a region by x
Reflection of a region
AaxaccAx ,:
BbbxxB ,:ˆ
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 :
Image Processing and Computer Vision: 3 10
Binary Dilate Formally
Informally All pixels covered by structuring
element placed at all locations on region
ABxxBA ˆ:
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
Image Processing and Computer Vision: 3 12
Binary Open Opening smoothes regions
Removes spurs Breaks narrow lines
Image Processing and Computer Vision: 3 14
Binary Close Closing fills gaps
Holes in region Narrow gaps
Image Processing and Computer Vision: 3 15
Processing grey scale images Same methods can be applied to
greyscale images Slight redefinition
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,
,
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,,
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
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
Image Processing and Computer Vision: 3 21
Skeleton Reduces regions of a binary image
to lines one pixel thick Preserves
Shape Continuity
How? Uses?
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
Image Processing and Computer Vision: 3 23
Applications Shape representation, maintaining
topology Character recognition
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.
Image Processing and Computer Vision: 3 25
Summary Binary morphology
Erode, dilate, open, close Greyscale morphology
Erode, dilate Distance Skeleton Convex Hull