Morphological Image Processing

Slides:



Advertisements
Similar presentations
Gray-Scale Morphological Filtering
Advertisements

Computational Biology, Part 23 Biological Imaging II Robert F. Murphy Copyright  1996, 1999, All rights reserved.
Table of Contents 9.5 Some Basic Morphological Algorithm
Document Image Processing
Course Syllabus 1.Color 2.Camera models, camera calibration 3.Advanced image pre-processing Line detection Corner detection Maximally stable extremal regions.
Chapter 9: Morphological Image Processing
Some Basic Morphological Algorithm
Course Syllabus 1.Color 2.Camera models, camera calibration 3.Advanced image pre-processing Line detection Corner detection Maximally stable extremal regions.
DIGITAL IMAGE PROCESSING
Each pixel is 0 or 1, background or foreground Image processing to
Morphological image processing – Part II
Introduction to Morphological Operators
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.
Morphology Structural processing of images Image Processing and Computer Vision: 33 Morphological Transformations Set theoretic methods of extracting.
Chapter 9 Morphological Image Processing. Preview Morphology: denotes a branch of biology that deals with the form and structure of animals and planets.
Introduction to Computer Vision
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
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)
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 I.INTRODUCTION II.BINARY MORPHOLOGY III.GREY-LEVEL MORPHOLOGY.
Mathematical Morphology Lecture 14 Course book reading: GW Lucia Ballerini Digital Image Processing.
Image Processing1 Morphological and Other Area Operations Introduction –Morphology is the science of form and structure –It is about regions or.
Chapter 9.  Mathematical morphology: ◦ A useful tool for extracting image components in the representation of region shape.  Boundaries, skeletons,
Course Syllabus 1.Color 2.Camera models, camera calibration 3.Advanced image pre-processing Line detection Corner detection Maximally stable extremal regions.
Digital Image Processing Chapter 9: Morphological Image Processing 5 September 2007 Digital Image Processing Chapter 9: Morphological Image Processing.
Morphological Processing
Digital Image Processing CCS331 Relationships of Pixel 1.
Morphological Image Processing
J. Shanbehzadeh M. Hosseinajad Khwarizmi University of Tehran.
Chapter 3 cont’d. Binary Image Analysis. Binary image morphology (nonlinear image processing)
Digital Image Processing
Mathematical Morphology Mathematical morphology (matematická morfologie) –A special image analysis discipline based on morphological transformations of.
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
References Books: Chapter 11, Image Processing, Analysis, and Machine Vision, Sonka et al Chapter 9, Digital Image Processing, Gonzalez & Woods.
CS654: Digital Image Analysis
EE 4780 Morphological Image Processing. Bahadir K. Gunturk2 Example Two semiconductor wafer images are given. You are supposed to determine the defects.
Image Processing and Analysis (ImagePandA)
1 Mathematic Morphology used to extract image components that are useful in the representation and description of region shape, such as boundaries extraction.
DIGITAL IMAGE PROCESSING
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,
TOPIC 12 IMAGE SEGMENTATION & MORPHOLOGY. Image segmentation is approached from three different perspectives :. Region detection: each pixel is assigned.
BYST Morp-1 DIP - WS2002: Morphology Digital Image Processing Morphological Image Processing Bundit Thipakorn, Ph.D. Computer Engineering Department.
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.
Lecture 11+x+1 Chapter 9 Morphological Image Processing.
COMP 9517 Computer Vision Binary Image Analysis 4/15/2018
Digital Image Processing CP-7008 Lecture # 09 Morphological Image Processing Fall 2011.
HIT and MISS.
Introduction to Morphological Operators
Morphological Operations
CS Digital Image Processing Lecture 5
EEEB0765 Digital Signal Processing for Embedded Systems 8 Video and Image Processing in Embedded Systems (I) Assoc. Prof. Dr. Peerapol Yuvapoositanon.
Binary Image processing بهمن 92
Morphological Image Processing
Digital Image Processing Lecture 15: Morphological Algorithms
ECE 692 – Advanced Topics in Computer Vision
CS654: Digital Image Analysis
Morphological Operators
DIGITAL IMAGE PROCESSING Elective 3 (5th Sem.)
Morphological Filters Applications and Extension Morphological Filters
Presentation transcript:

Morphological Image Processing By Dr. Rajeev Srivastava

What is Morphology? Morphology is a broad set of image processing operations that process images based on shapes. Morphological operations apply a structuring element to an input image, creating an output image of the same size. In a morphological operation, the value of each pixel in the output image is based on a comparison of the corresponding pixel in the input image with its neighbors.

Definition By choosing the size and shape of the neighborhood, we can construct a morphological operation that is sensitive to specific shapes in the input image.

Morphological Processing They are useful for extracting image components that are useful in representing and describing region shapes

The filters can be described using set theoretic notation The filters can be described using set theoretic notation . A set is a collection of pixels in the context of an image.

Morphological Operations Opening and Closing Dilation and erosion Gradient

Operations The most basic morphological operations are dilation and erosion. Dilation adds pixels to the boundaries of objects in an image, while erosion removes pixels on object boundaries. The number of pixels added or removed from the objects in an image depends on the size and shape of the structuring element used to process the image.

Set Operations Let A and B be sets. If a is the index of a pixel in A, then we write 𝑎𝜖𝐴 If a is not in A we write 𝑎⊄𝐴 If every element that is in A is also in B then A is a subset of B, written 𝐴⊆𝐵 This is equivalent to the statement 𝑎𝜖𝐴⇒𝑎𝜖𝐵 .

In the morphological dilation and erosion operations, the state of any given pixel in the output image is determined by applying a rule to the corresponding pixel and its neighbors in the input image. The rule used to process the pixels defines the operation as a dilation or an erosion.

The table lists the rules for both dilation and erosion. Operation Rule Dilation The value of the output pixel is the maximum value of all the pixels in the input pixels neighborhood. In a binary image, if any of the pixels is set to the value 1, the output pixel is set to 1 Erosion The value of the output pixel is the minimum value of all the pixels in the input pixels neighborhood. In a binary image, if any of the pixels is set to the value 0, the output pixel is set to 0

Dilation It can be applied to binary as well as grey-scale images Effect of this operator on a binary image is , it gradually increases the boundaries of the region, while the small holes in image becomes smaller Assume that A and B are two set of pixels, then the dilation of A by B is denoted by 𝐴⊕𝐵= ⋃ 𝑥𝜖𝐵 𝐴 𝑥

It means that A is translated by every point of the set B. 𝐴⊕𝐵={ 𝑥,𝑦 + 𝑢,𝑣 : 𝑥,𝑦 𝜖𝐴,(𝑢,𝑣)𝜖𝐵} Dilation can be considered as a union operation of all the translations of the image A caused by the elements specified in the structuring element B 𝐴⊕𝐵= 𝑛 ∪ 𝑏𝜖𝐵 (𝐴) 𝑏

Erosion The objective of erosion is to make an object smaller by removing its outer layer of pixels. 𝐴⊖𝐵={𝑤: 𝐵 𝑤 ⊆𝐴} This operator takes the image and structuring element as inputs and thins the object

Algorithms for dilation and erosion Let the number of pixels in structuring element be k Let the number of pixels of value 1 in the input image be z Let the pixel coordinates beneath the origin of the structuring element be ( 𝑥 0 , 𝑦 0 )

For dilation, the output is given by 𝑔 𝑥 0 , 𝑦 0 = 1 𝑓𝑜𝑟 𝑧>0 𝑔 𝑥 0 , 𝑦 0 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒 For erosion, the output is given by 𝑔 𝑥 0 , 𝑦 0 = 1 𝑓𝑜𝑟 𝑧=𝑘 0 𝑓𝑜𝑟 𝑧<𝑘 These algorithms can also be extended to modified dilation and erosion, which involves the use of a threshold m. The threshold is user-controlled, based on the requirement

Modified dilation and erosion The algorithm for dilation can be modified using the threshold value m The mapping functions are given by 𝑔 𝑥 0 , 𝑦 0 = 1 𝑓𝑜𝑟 𝑧≥𝑚 𝑔 𝑥 0 , 𝑦 0 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒 For modified erosion, the mapping function is given by 𝑔 𝑥 0 , 𝑦 0 = 0 𝑓𝑜𝑟 𝑧≤𝑚 𝑔 𝑥 0 , 𝑦 0 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒

An another approach to morphological operations is to consider them as binary correlation operations involving logical elements The structuring element is placed on a binary image

Properties of dilation and erosion The dilation and erosion shows the following properties Communicative property Associative property Distributive property Duality property Translation property Decomposition property

Combining Dilation and Erosion Opening and Closing Dilation and erosion are often used in combination to implement image processing operations. The definition of a morphological opening of an image is an erosion followed by a dilation, using the same structuring element for both operations. The related operation, morphological closing of an image, is the reverse: it consists of dilation followed by an erosion with the same structuring element.

Opening and Closing Operations The opening is defined as erosion followed by a dilation operator 𝐴ᵒ𝐵= 𝐴⊖𝐵 ⊕𝐵 The opening operation satisfies the following properties 1) 𝐴ᵒ𝐵 ⊆𝐴 2) 𝐴ᵒ𝐵 ᵒ𝐵=𝐴ᵒ𝐵 This is called idempotent property Opening is useful for smoothing the edges, breaking the narrow joints and thinning the protrusions that are present in the image

Closing is a dilation operation followed by an erosion operation 𝐴ᵜ𝐵= 𝐴⊕𝐵 ⊖𝐵

Properties of Opening and Closing They show the following properties Dual transformation Ordering relationship Increasing transformation Transform invariance Idempotence

Hit-or-Miss transform It is a general binary morphological operation that can be used to look for particular patterns of fore-G and background pixels of an image The algorithm is as shown below Translate the centre of the structuring element to all the points of the input image Compare the structuring element with the image pixels

If there is a complete match, then the pixel underneath the structuring element is set to foreground, its called a hit. Else the pixel underneath the structuring element is set to background color, its called a miss

Uses of morphological operations They are immensely useful in a variety of imaging applications which are discussed as… Boundary extraction Noise removal Thinning Thickening Convex hull Skeletonization Medical axis transform and distance transform Region filling Extraction of connected component Pruning

Grey-Scale Morphology Similar to binary morphological operations, the mask moves across the image The pixel-by-pixel process is done and the resultant is produced in the output image. The structuring element can be a square matrix of size 3*3, 5*5, or larger depending upon the application

The erosion mask is shown as 𝐵= 𝑋 3 𝑋 2 𝑋 1 𝑋 4 𝑋 𝑋 0 𝑋 5 𝑋 6 𝑋 7

Comparison of grey-scale erosion and dilation Reduces the size of the objects wrt. background Increases the six=ze of the objects Eliminates noise spikes and ragged edges It also eliminates noise spikes and ragged edges Darkens the bright objects Brighten the objects Increases the size of holes and sharpen corners Connects objects, bridge gaps,smoothenes edges, fill holes and creates outline in an image

Gradient The morphological gradient highlights sharp transitions in the input image. It depends less on edge directionality than the Sobel operator and is useful for locating faint but large scale structures. The morphological gradient is defined by, 𝑔= 𝑓⊕𝑏 −(𝑓⊖𝑏)

Gradient… It is thus the difference between a dilated image and an eroded image. Dilation removes small scale dark features and erosion removes small scale bright features. Dilation brightens the image and erosion darkens it.