1 Mathematic Morphology used to extract image components that are useful in the representation and description of region shape, such as boundaries extraction.

Slides:



Advertisements
Similar presentations
Gray-Scale Morphological Filtering
Advertisements

Grey Level Enhancement Contrast stretching Linear mapping Non-linear mapping Efficient implementation of mapping algorithms Design of classes to support.
In form and in feature, face and limb, I grew so like my brother
Course Syllabus 1.Color 2.Camera models, camera calibration 3.Advanced image pre-processing Line detection Corner detection Maximally stable extremal regions.
CDS 301 Fall, 2009 Image Visualization Chap. 9 November 5, 2009 Jie Zhang Copyright ©
Chapter 9: Morphological Image Processing
Course Syllabus 1.Color 2.Camera models, camera calibration 3.Advanced image pre-processing Line detection Corner detection Maximally stable extremal regions.
Morphological Image Processing Md. Rokanujjaman Assistant Professor Dept of Computer Science and Engineering Rajshahi University.
Provides mathematical tools for shape analysis in both binary and grayscale images Chapter 13 – Mathematical Morphology Usages: (i)Image pre-processing.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 9 Morphological Image Processing Chapter 9 Morphological.
6/9/2015Digital Image Processing1. 2 Example Histogram.
Chapter 9 Morphological Image Processing. Preview Morphology: denotes a branch of biology that deals with the form and structure of animals and planets.
Morphological Image Processing Spring 2006, Jen-Chang Liu.
Computer Vision Basics Image Terminology Binary Operations Filtering Edge Operators.
Morphological Image Processing
2007Theo Schouten1 Morphology Set theory is the mathematical basis for morphology. Sets in Euclidic space E 2 (or rather Z 2 : the set of pairs of integers)
1. Binary Image B(r,c) 2 0 represents the background 1 represents the foreground
Digital Image Processing
Lecture 5. Morphological Image Processing. 10/6/20152 Introduction ► ► Morphology: a branch of biology that deals with the form and structure of animals.
Morphological Image Processing
Mathematical Morphology Lecture 14 Course book reading: GW Lucia Ballerini Digital Image Processing.
Chapter 9.  Mathematical morphology: ◦ A useful tool for extracting image components in the representation of region shape.  Boundaries, skeletons,
CS 6825: Binary Image Processing – binary blob metrics
Mathematical Morphology in Image Processing Dr.K.V.Pramod Dept. of Computer Applications Cochin University of Sc. & Technology.
Course Syllabus 1.Color 2.Camera models, camera calibration 3.Advanced image pre-processing Line detection Corner detection Maximally stable extremal regions.
September 23, 2014Computer Vision Lecture 5: Binary Image Processing 1 Binary Images Binary images are grayscale images with only two possible levels of.
Digital Image Processing Chapter 9: Morphological Image Processing 5 September 2007 Digital Image Processing Chapter 9: Morphological Image Processing.
Digital Image Processing CCS331 Relationships of Pixel 1.
Morphological Image Processing
J. Shanbehzadeh M. Hosseinajad Khwarizmi University of Tehran.
Gianni Ramponi University of Trieste Images © 2002 Gonzalez & Woods Digital Image Processing Chapter 9 Morphological Image.
AdeptSight Image Processing Tools Lee Haney January 21, 2010.
Chapter 10, Part II Edge Linking and Boundary Detection The methods discussed in the previous section yield pixels lying only on edges. This section.
A Simple Image Model Image: a 2-D light-intensity function f(x,y)
Digital Image Processing CSC331 Morphological image processing 1.
Digital Image Processing
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities Prof. Charlene Tsai.
DIGITAL IMAGE PROCESSING Instructors: Dr J. Shanbehzadeh Mostafa Mahdijo Mostafa Mahdijo ( J.Shanbehzadeh.
Digital Image Processing CSC331 Morphological image processing 1.
Morphological Image Processing การทำงานกับรูปภาพด้วยวิธีมอร์โฟโลจิคัล
CS654: Digital Image Analysis
Low level Computer Vision 1. Thresholding 2. Convolution 3. Morphological Operations 4. Connected Component Extraction 5. Feature Extraction 1.
References Books: Chapter 11, Image Processing, Analysis, and Machine Vision, Sonka et al Chapter 9, Digital Image Processing, Gonzalez & Woods.
CS654: Digital Image Analysis
CDS 301 Fall, 2008 Image Visualization Chap. 9 November 11, 2008 Jie Zhang Copyright ©
EE 4780 Morphological Image Processing. Bahadir K. Gunturk2 Example Two semiconductor wafer images are given. You are supposed to determine the defects.
DIGITAL IMAGE PROCESSING
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities May 2, 2005 Prof. Charlene Tsai.
Morphological Image Processing Robotics. 2/22/2016Introduction to Machine Vision Remember from Lecture 12: GRAY LEVEL THRESHOLDING Objects Set threshold.
 Mathematical morphology is a tool for extracting image components that are useful in the representation and description of region shape, such as boundaries,
BYST Morp-1 DIP - WS2002: Morphology Digital Image Processing Morphological Image Processing Bundit Thipakorn, Ph.D. Computer Engineering Department.
Morphology Morphology deals with form and structure Mathematical morphology is a tool for extracting image components useful in: –representation and description.
Lecture(s) 3-4. Morphological Image Processing. 3/13/20162 Introduction ► ► Morphology: a branch of biology that deals with the form and structure of.
Chapter 6 Skeleton & Morphological Operation. Image Processing for Pattern Recognition Feature Extraction Acquisition Preprocessing Classification Post.
Digital Image Processing, Spring ECES 682 Digital Image Processing Week 8 Oleh Tretiak ECE Department Drexel University.
Morphological Image Processing (Chapter 9) CSC 446 Lecturer: Nada ALZaben.
Morphological Image Processing
1. 2 What is Digital Image Processing? The term image refers to a two-dimensional light intensity function f(x,y), where x and y denote spatial(plane)
Lecture 11+x+1 Chapter 9 Morphological Image Processing.
Digital Image Processing Lecture 15: Morphological Algorithms April 27, 2005 Prof. Charlene Tsai.
Digital Image Processing CP-7008 Lecture # 09 Morphological Image Processing Fall 2011.
Computer Vision Lecture 5: Binary Image Processing
Binary Image Analysis used in a variety of applications:
CS Digital Image Processing Lecture 5
Morphological Image Processing
Digital Image Processing Lecture 15: Morphological Algorithms
Morphological Operators
DIGITAL IMAGE PROCESSING Elective 3 (5th Sem.)
Binary Image Analysis used in a variety of applications:
Morphological Filters Applications and Extension Morphological Filters
Presentation transcript:

1 Mathematic Morphology used to extract image components that are useful in the representation and description of region shape, such as boundaries extraction skeletons convex hull morphological filtering thinning pruning

2 Z 2 and Z 3 set in mathematic morphology represent objects in an image binary image (0 = white, 1 = black) : the element of the set is the coordinates (x,y) of pixel belong to the object  Z 2 gray-scaled image : the element of the set is the coordinates (x,y) of pixel belong to the object and the gray levels  Z 3

3 Basic Set Theory

4 Reflection and Translation

5 Logic Operations

6 Example

7 Dilation B = structuring element

8 Dilation : Bridging gaps

9 Erosion

10 Duality

11 Erosion : eliminating irrelevant detail structuring element B = 13x13 pixels of gray level 1

12 Opening

13 Closing

14 Duality Properties Opening (i) A  B is a subset (subimage) of A (ii) If C is a subset of D, then C  B is a subset of D  B (iii) (A  B)  B = A  B Closing (i) A is a subset (subimage) of A  B (ii) If C is a subset of D, then C  B is a subset of D  B (iii) (A  B)  B = A  B

15

16

17 Hit-or-Miss Transformation

18 Boundary Extraction

19 Example

20 Region Filling

21 Example

22 Extraction of connected components

23 Example

24 Convex hull

25

26 Thinning

27 Thickening

28 Skeletons

29

30 Pruning H = 3x3 structuring element of 1’s

31

32

33

34

35 5 basic structuring elements

36 Extension to Gray-Scale images deal with digital image function f(x,y) : the input image b(x,y) : a structuring element (a subimage function) assumption : these functions are discrete (x,y) are integers f and b are functions that assign a gray-level value (real number or real integer) to each distinct pair of coordinate (x,y)

37 Dilation D f and D b are the domains of f and b, respectively  condition (s-x) and (t-y) have to be in the domain of f and (x,y) have to be in the domain of b is similar to the condition in binary morphological dilation where the two sets have to overlap by at least one element

38 Dilation similar to 2D convolution f(s-x) : f(-x) is simply f(x) mirrored with respect to the original of the x axis. the function f(s-x) moves to the right for positive s, and to the left for negative s. max operation replaces the sums of convolution addition operation replaces with the products of convolution general effect if all the values of the structuring element are positive, the output image tends to be brighter than the input dark details either are reduced or eliminated, depending on how their values and shapes relate to the structuring element used for dilation

39 Erosion  condition (s+x) and (t+y) have to be in the domain of f and (x,y) have to be in the domain of b is similar to the condition in binary morphological erosion where the structuring element has to be completely contained by the set being eroded

40 Erosion similar to 2D correlation f(s+x) moves to the left for positive s and to the right for negative s. general effect if all the elements of the structuring element are positive, the output image tends to be darker than the input the effect of bright details in the input image that are smaller in area than the structuring element is reduced, with the degree of reduction being determined by the gray-level values surrounding the bright detail and by the shape and amplitude values of the structuring element itself

41 Dual property gray-scale dilation and erosion are duals with respect to function complementation and reflection.

42 Example ab c b)result of dilation with a flat-top structuring element in the shape of parallelepiped of unit height and size 5x5 pixels note: brighter image and small, dark details are reduced c)result of erosion note: darker image and small, dark details are reduced a)512x512 original image

43 Opening and closing a)a gray-scale scan line b)positions of rolling ball for opening c)result of opening d)positions of rolling ball for closing e)result of closing view an image function f(x,y) in 3D perspective, with the x- and y-axes and the gray-level value axis

44 Opening and closing properties dual property opening operation satisfies closing operation satisfies note: e  r indicates that the domain of e is a subset of the domain of r, and also that e(x,y) ≤ r(x,y) for any (x,y) in the domain of e

45 Effect of opening opening the structuring element is rolled underside the surface of f all the peaks that are narrow with respect to the diameter of the structuring element will be reduced in amplitude and sharpness so, opening is used to remove small light details, while leaving the overall gray levels and larger bright features relatively undisturbed. the initial erosion removes the details, but it also darkens the image. the subsequent dilation again increases the overall intensity of the image without reintroducing the details totally removed by erosion

46 Effect of closing closing the structuring element is rolled on top of the surface of f peaks essentially are left in their original form (assume that their separation at the narrowest points exceeds the diameter of the structuring element) so, closing is used to remove small dark details, while leaving bright features relatively undisturbed. the initial dilation removes the dark details and brightens the image the subsequent erosion darkens the image without reintroducing the details totally removed by dilation

47 Examples

48 Some Applications of Gray- scale Morphology Morphological smoothing Morphological gradient Top-hat transformation Textural segmentation Granulometry Note: the examples shown in this topic are of size 512x512 and processed by using the structuring element in the shape of parallelepiped of unit height and size 5x5 pixels

49 Morphological smoothing perform an opening following by a closing effect: remove or attenuate both bright and dark artifacts or noise

50 Morphological gradient effect: gradient highlight sharp gray-level transitions in the input image.

51 Top-hat transformation effect: enhancing detail in the presence of shading note: the enhancement of detail in the background region below the lower part of the horse ’ s head.

52 Textural segmentation  the region the right consists of circular blobs of larger diameter than those on the left.  the objective is to find the boundary between the two regions based on their textural content.

53 Textural segmentation Perform closing the image by using successively larger structuring elements than small blobs as closing tends to remove dark details from an image, thus the small blobs are removed from the image, leaving only a light background on the left and larger blobs on the right opening with a structuring element that is large in relation to the separation between the large blobs opening removes the light patches between the blobs, leaving dark region on the right consisting of the large dark blobs and now equally dark patches between these blobs. by now, we have a light region on the left and a dark region on the right, so we can use a simple threshold to yield the boundary between the two textural regions. whiteblack

54 Granulometry  determining the size distribution of particles in an image.  from the example, the image consists of light objects of 3 different sizes  the objects are not only overlapping but also cluttered to enable detection of individual particles

55 Granulometry objects are lighter than background Perform opening with structuring elements of increasing size on the original image the difference between the original image and its opening is computed after each pass when a different structuring element is completed at the end of the process, these differences are normalized and then used to construct a histogram of particle-size distribution idea: opening operations of a particular size have the most effect on regions of the input image that contain particles of similar size.

Homework Using color segmentation & Morphological Operation, try to segment and count the number of faces in picture class1.jpg as precisely as you can: ftp://doc.nit.ac.ir/Digital%20Image%20P rocessing/Benchmarks/ class1.jpg 56