Binary Morphology A method for … –Dilation –Erosion –Opening –Closing -750-

Slides:



Advertisements
Similar presentations
Computational Biology, Part 23 Biological Imaging II Robert F. Murphy Copyright  1996, 1999, All rights reserved.
Advertisements

CDS 301 Fall, 2009 Image Visualization Chap. 9 November 5, 2009 Jie Zhang Copyright ©
Chapter 9: Morphological Image Processing
Binary Morphology A method for … –Dilation –Erosion –Opening –Closing -750-
Introduction to Morphological Operators
Table of Contents Preview 9.1 Preliminaries 9.2 Erosion and Dilation
Morphological Image Processing Md. Rokanujjaman Assistant Professor Dept of Computer Science and Engineering Rajshahi University.
Tutorial # 10 Morphological Operations I8oZE.
September 10, 2013Computer Vision Lecture 3: Binary Image Processing 1Thresholding Here, the right image is created from the left image by thresholding,
Provides mathematical tools for shape analysis in both binary and grayscale images Chapter 13 – Mathematical Morphology Usages: (i)Image pre-processing.
Chapter 9 Morphological Image Processing. Preview Morphology: denotes a branch of biology that deals with the form and structure of animals and planets.
Computer Vision Basics Image Terminology Binary Operations Filtering Edge Operators.
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
Morphological Image Processing
GUIDED BY: C.VENKATESH PRESENTED BY: S.FAHIMUDDIN C.VAMSI KRISHNA ASST.PROFESSOR M.V.KRISHNA REDDY (DEPT.ECE)
Morphological Image Processing The field of mathematical morphology contributes a wide range of operators to image processing, all based around a few simple.
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,
Mathematical Morphology in Image Processing Dr.K.V.Pramod Dept. of Computer Applications Cochin University of Sc. & Technology.
Digital Image Processing Chapter 9: Morphological Image Processing 5 September 2007 Digital Image Processing Chapter 9: Morphological Image Processing.
Blending recap Visible seams – edges that should not exist, should be avoided. People are fairly insensitive to uniform intensity shifts or gradual intensity.
Morphological Image Processing
Gianni Ramponi University of Trieste Images © 2002 Gonzalez & Woods Digital Image Processing Chapter 9 Morphological Image.
Image Segmentation and Morphological Processing Digital Image Processing in Life- Science Aviad Baram
Digital Image Processing CSC331 Morphological image processing 1.
1 Regions and Binary Images Hao Jiang Computer Science Department Sept. 25, 2014.
Mathematical Morphology Mathematical morphology (matematická morfologie) –A special image analysis discipline based on morphological transformations of.
Course 2 Image Filtering. Image filtering is often required prior any other vision processes to remove image noise, overcome image corruption and change.
1 Regions and Binary Images Hao Jiang Computer Science Department Sept. 24, 2009.
Digital Image Processing CSC331 Morphological image processing 1.
Morphological Image Processing การทำงานกับรูปภาพด้วยวิธีมอร์โฟโลจิคัล
Erosion: Erosion is used for shrinking of element A by using element B
CS654: Digital Image Analysis
Mathematical Morphology
Morphological Filtering
CS654: Digital Image Analysis
October 1, 2013Computer Vision Lecture 9: From Edges to Contours 1 Canny Edge Detector However, usually there will still be noise in the array E[i, j],
Nottingham Image Analysis School, 23 – 25 June NITS Image Segmentation Guoping Qiu School of Computer Science, University of Nottingham
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.
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,
Machine Vision Edge Detection Techniques ENT 273 Lecture 6 Hema C.R.
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.
Machine Vision ENT 273 Hema C.R. Binary Image Processing Lecture 3.
Image Visualization. Outline 9.1. Image Data Representation 9.2. Image Processing and Visualization 9.3. Basic Imaging Algorithms Contrast Enhancement.
Course 3 Binary Image Binary Images have only two gray levels: “1” and “0”, i.e., black / white. —— save memory —— fast processing —— many features of.
Lecture(s) 3-4. Morphological Image Processing. 3/13/20162 Introduction ► ► Morphology: a branch of biology that deals with the form and structure of.
Morphological Image Processing (Chapter 9) CSC 446 Lecturer: Nada ALZaben.
Morphological Image Processing
Morphology Image Processing‏ Lab 6. Dilationgrow image regions Erosionshrink image regions Openingremoval of image region Closingfilling in image region.
Digital Image Processing Lecture 15: Morphological Algorithms April 27, 2005 Prof. Charlene Tsai.
Digital Image Processing (Digitaalinen kuvankäsittely) Exercise 5
Digital Image Processing CP-7008 Lecture # 09 Morphological Image Processing Fall 2011.
HIT and MISS.
Introduction to Morphological Operators
Binary Image Analysis used in a variety of applications:
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.
Morphological Operation
Morphological Image Processing
Digital Image Processing
Digital Image Processing Lecture 15: Morphological Algorithms
Morphological Operators
CS654: Digital Image Analysis
DIGITAL IMAGE PROCESSING Elective 3 (5th Sem.)
Binary Image Analysis used in a variety of applications:
Presentation transcript:

Binary Morphology A method for … –Dilation –Erosion –Opening –Closing -750-

Dilation The dilation operator takes two pieces of data as input –A binary image, which is to be dilated –A structuring element (or kernel), which determines the behavior of the morphological operation Suppose that X is the set of Euclidean coordinates of the input image, and K is the set of coordinates of the structuring element Let Kx denote the translation of K so that its origin is at x. The DILATION of X by K is simply the set of all points x such that the intersection of Kx with X is non-empty -751-

Erosion -752-

Dilation Example: Suppose that the structuring element is a 3x3 square with the origin at its center Note: Foreground pixels are represented by a color and background pixels are empty -754-

Dilation output Structuring element Input

Dilation output

Dilation output

Dilation output

Dilation -758-

Example. Dilation -759-

Erosion Erosion is the dual of dilation i.e. eroding foreground pixels is equivalent to dilating the background pixels

Erosion To compute the erosion of a binary input image by the structuring element For each foreground pixel superimpose the structuring element If for every pixel in the structuring element, the corresponding pixel in the image underneath is a foreground pixel, then the input pixel is left as it is Otherwise, if any of the corresponding pixels in the image are background, however, the input pixel is set to background value -761-

Erosion -762-

Erosion

Erosion

Erosion

Erosion

Erosion

Erosion

Erosion

Erosion

Erosion

Erosion

Erosion -763-

Erosion -765-

Opening & Closing Opening and Closing are two important operators from mathematical morphology They are both derived from the fundamental operations of erosion and dilation They are normally applied to binary images -766-

Opening Opening is defined as an erosion followed by a dilation using the same structuring element The basic effect of an opening is similar to erosion Tends to remove some of the foreground pixels from the edges of regions of foreground pixels Less destructive than erosion The exact operation is determined by a structuring element

Opening Erosion can be used to eliminate small clumps of undesirable foreground pixels, e.g. “salt noise” However, it affects all regions of foreground pixels indiscriminately Opening gets around this by performing both an erosion and a dilation on the image -768-

Closing Closing, like its dual operator opening, is derived from the fundamental operations of erosion and dilation. Normally applied to binary images Tends to enlarge the boundaries of foreground regions Less destructive of the original boundary shape The exact operation is determined by a structuring element

Closing Closing is opening performed in reverse. It is defined simply as a dilation followed by an erosion using the same -770-

Closing -771-

-772-

Detecting a Cell Using Image Segmentation -773-

Step 1: Read Image Read in 'cell.tif', which is an image of a prostate cancer cell. I = imread('cell.tif'); figure, imshow(I), title('original image'); -774-

Step 2: Rescale the Image We use the imadjust function to rescale the image so that it covers the entire dynamic range ([0,1]). DI = imadjust(I, [], [0 1]); figure, imshow(DI), title('scaled image'); -775-

Step 3: Detect Entire Cell Two cells are present in this image, but only one cell can be seen in its entirety. We will detect this cell. Another word for object detection is segmentation. The object to be segmented differs greatly in contrast from the background image. Changes in contrast can be detected by operators that calculate the gradient of an image. One way to calculate the gradient of an image is the Sobel operator, which creates a binary mask using a user-specified threshold value.We determine a threshold value using the graythresh function. To create the binary gradient mask, we use the edge function

BWs = edge(DI, 'sobel', (graythresh(DI) *.1)); figure, imshow(BWs), title('binary gradient mask'); -777-

Step 4: Fill Gaps The binary gradient mask shows lines of high contrast in the image. These lines do not quite delineate the outline of the object of interest. Compared to the original image, you can see gaps in the lines surrounding the object in the gradient mask. These linear gaps will disappear if the Sobel image is dilated using linear structuring elements, which we can create with the strel function. se90 = strel('line', 3, 90); se0 = strel('line', 3, 0); -778-

Step 5: Dilate the Image The binary gradient mask is dilated using the vertical structuring element followed by the horizontal structuring element. The imdilate function dilates the image. BWsdil = imdilate(BWs, [se90 se0]); figure, imshow(BWsdil), title('dilated gradient mask'); -779-

Step 6: Fill Interior Gaps The dilated gradient mask shows the outline of the cell quite nicely, but there are still holes in the interior of the cell. To fill these holes we use the imfill function. BWdfill = imfill(BWsdil, 'holes'); figure, imshow(BWdfill); title('binary image with filled holes'); -780-

Step 7: Remove Connected Objects on Border The cell of interest has been successfully segmented, but it is not the only object that has been found. Any objects that are connected to the border of the image can be removed using the imclearborder function. The connectivity in the imclearborder function was set to 4 to remove diagonal connections. BWnobord = imclearborder(BWdfill, 4); figure, imshow(BWnobord), title('cleared border image'); -781-

Step 8: Smooth the Object Finally, in order to make the segmented object look natural, we smooth the object by eroding the image twice with a diamond structuring element. We create the diamond structuring element using the strel function. seD = strel('diamond',1); BWfinal = imerode(BWnobord,seD); BWfinal = imerode(BWfinal,seD); figure, imshow(BWfinal), title('segmented image'); -782-

BWoutline = bwperim(BWfinal); Segout = imadd(I, immultiply(BWoutline, 255)); figure, imshow(Segout), title('outlined original image'); -783-