Gray-level images.

Slides:



Advertisements
Similar presentations
Course Syllabus 1.Color 2.Camera models, camera calibration 3.Advanced image pre-processing Line detection Corner detection Maximally stable extremal regions.
Advertisements

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 ©
Image Segmentation Image segmentation (segmentace obrazu) –division or separation of the image into segments (connected regions) of similar properties.
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 – Part II
Introduction to Morphological Operators
Provides mathematical tools for shape analysis in both binary and grayscale images Chapter 13 – Mathematical Morphology Usages: (i)Image pre-processing.
Binary Image Analysis. YOU HAVE TO READ THE BOOK! reminder.
图像处理技术讲座(10) Digital Image Processing (10) 灰度的数学形态学(2) Mathematical morphology in gray scale (2) 顾 力栩 上海交通大学 计算机系
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)
E.G.M. PetrakisBinary Image Processing1 Binary Image Analysis Segmentation produces homogenous regions –each region has uniform gray-level –each region.
GUIDED BY: C.VENKATESH PRESENTED BY: S.FAHIMUDDIN C.VAMSI KRISHNA ASST.PROFESSOR M.V.KRISHNA REDDY (DEPT.ECE)
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.
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.
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
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.
Image Segmentation and Morphological Processing Digital Image Processing in Life- Science Aviad Baram
Digital Image Processing CSC331 Morphological image processing 1.
Mathematical Morphology Mathematical morphology (matematická morfologie) –A special image analysis discipline based on morphological transformations of.
Image Segmentation in Color Space By Anisa Chaudhary.
Digital Image Processing CSC331 Morphological image processing 1.
Mathematical Morphology
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 ©
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.
Image Visualization. Outline 9.1. Image Data Representation 9.2. Image Processing and Visualization 9.3. Basic Imaging Algorithms Contrast Enhancement.
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.
Morphological Image Processing (Chapter 9) CSC 446 Lecturer: Nada ALZaben.
Morphological Image Processing
Mathematical Morphology A Geometric Approach to Image Processing and Analysis John Goutsias Department of Electrical and Computer Engineering Image Analysis.
Christopher Chedeau Gauthier Lemoine 1.  Algorithms ◦ Erosion & Dilation ◦ Opening & Closing ◦ Gradient ◦ Hit & Miss ◦ Thinning ◦ Top Hat ◦ Convolution.
Course : T Computer Vision
Digital Image Processing Lecture 15: Morphological Algorithms April 27, 2005 Prof. Charlene Tsai.
Mathematical Morphology
Digital Image Processing CP-7008 Lecture # 09 Morphological Image Processing Fall 2011.
CSE 554 Lecture 1: Binary Pictures
Binary Image Analysis Gokberk Cinbis
HIT and MISS.
Introduction to Morphological Operators
Lecture 8 Introduction to Binary Morphology
CS Digital Image Processing Lecture 5
Medical Images Edge Detection via Neutrosophic Mathematical Morphology
Binary Image processing بهمن 92
Neutrosophic Mathematical Morphology for Medical Image
Department of Computer Engineering
Morphological Image Processing
Digital Image Processing Lecture 15: Morphological Algorithms
Neutrosophic approach for mathematical morphology.
Morphological Operators
Lecture Notes on Mathematical Morphology: Grayscale Images
ECE 692 – Advanced Topics in Computer Vision
CS654: Digital Image Analysis
DIGITAL IMAGE PROCESSING Elective 3 (5th Sem.)
Morphological Filters Applications and Extension Morphological Filters
Presentation transcript:

Gray-level images

Image thresholding During the thresholding process, individual pixels in an image are marked as “object” pixels if their value is greater than some threshold value (assuming an object to be brighter than the background) and as “background” pixels otherwise. This convention is known as threshold above. Variants include threshold below, which is opposite of threshold above; threshold inside, where a pixel is labeled "object" if its value is between two thresholds; and threshold outside, which is the opposite of threshold inside (Shapiro, et al. 2001:83). Typically, an object pixel is given a value of “1” while a background pixel is given a value of “0.” Finally, a binary image is created by coloring each pixel white or black, depending on a pixel's label.

Image thresholding Sezgin and Sankur (2004) categorize thresholding methods into the following six groups based on the information the algorithm manipulates (Sezgin et al., 2004): histogram shape-based methods, where, for example, the peaks, valleys and curvatures of the smoothed histogram are analyzed clustering-based methods, where the gray-level samples are clustered in two parts as background and foreground (object), or alternately are modeled as a mixture of two Gaussians entropy-based methods result in algorithms that use the entropy of the foreground and background regions, the cross-entropy between the original and binarized image, etc. object attribute-based methods search a measure of similarity between the gray-level and the binarized images, such as fuzzy shape similarity, edge coincidence, etc. spatial methods [that] use higher-order probability distribution and/or correlation between pixels local methods adapt the threshold value on each pixel to the local image characteristics."

Mathematical morphology Mathematical Morphology was born in 1964 from the collaborative work of Georges Matheron and Jean Serra, at the École des Mines de Paris, France. Matheron supervised the PhD thesis of Serra, devoted to the quantification of mineral characteristics from thin cross sections, and this work resulted in a novel practical approach, as well as theoretical advancements in integral geometry and topology.

In 1968, the Centre de Morphologie Mathématique was founded by the École des Mines de Paris in Fontainebleau, France, lead by Matheron and Serra. During the rest of the 1960's and most of the 1970's, MM dealt essentially with binary images, treated as sets, and generated a large number of binary operators and techniques: Hit-or-miss transform, dilation, erosion, opening, closing, granulometry, thinning, skeletonization, ultimate erosion, conditional bisector, and others. A random approach was also developed, based on novel image models. Most of the work in that period was developed in Fontainebleau. The name ‘Mathematical Morphology’ for the new discipline was coined in a pub.

From mid-1970's to mid-1980's, MM was generalized to grayscale functions and images as well. Besides extending the main concepts (such as dilation, erosion, etc...) to functions, this generalization yielded new operators, such as morphological gradients, top-hat transform and the Watershed (MM's main segmentation approach). In the 1980's and 1990's, MM gained a wider recognition, as research centers in several countries began to adopt and investigate the method. MM started to be applied to a large number of imaging problems and applications.

In 1986, Jean Serra further generalized MM, this time to a theoretical framework based on complete lattices. This generalization brought flexibility to the theory, enabling its application to a much larger number of structures, including color images, video, graphs, meshes, etc... At the same time, Matheron and Serra also formulated a theory for morphological filtering, based on the new lattice framework. The 1990's and 2000's also saw further theoretical advancements, including the concepts of connections and levelings.

When the structuring element B has a center (e. g When the structuring element B has a center (e.g., B is a disk or a square), and this center is located on the origin of E, then the erosion of A by B can be understood as the locus of points reached by the center of B when B moves inside A.

Erosion and dilation in Matlab

The erosion of the dark-blue square by a disk, resulting in the light-blue square.

Dilation Alternative way to "see it"

Opening

Opening Alternative way to "see it"

Closing

Grayscale Dilation Grayscale Dilation: A grayscale image F dilated by a grayscale SE K is defined as: It generally brighten the source image. Bright regions surrounded by dark regions grow in size, and dark regions surrounded by bright regions shrink in size. Small dark spots in images will disappear as they get `filled in' to the surrounding intensity value. Small bright spots will become larger spots. The effect is most marked at places in the image where the intensity changes rapidly and regions of fairly uniform intensity will be largely unchanged except at their edges.

Grayscale Dilation Bright regions surrounded by dark regions grow in size Dark regions surrounded by bright regions shrink in size. Small dark spots in images will disappear as they get `filled in' to the surrounding intensity value. Small bright spots will become larger spots. The effect is most marked at places in the image where the intensity changes rapidly and regions of fairly uniform intensity will be largely unchanged except at their edges.

Grayscale Dilation Matlab code function [out] = graydil(im,se) if (~isa(se,'strel')) se=strel(se); end seq=getsequence(se); lunghezza=size(seq,1); out=gdil(im,getnhood(seq(1)),2); for ii=2:lunghezza out=gdil(out,getnhood(seq(ii)),2);

Grayscale Dilation dilation dilation over original

Grayscale Dilation Source image Dilated image

Grayscale Erosion Grayscale Erosion: A grayscale image F eroded by a grayscale SE K is defined as: It generally darken the image. Bright regions surrounded by dark regions shrink in size, and dark regions surrounded by bright regions grow in size. Small bright spots in images will disappear as they get eroded away down to the surrounding intensity value, and small dark spots will become larger spots. The effect is most marked at places in the image where the intensity changes rapidly, and regions of fairly uniform intensity will be left more or less unchanged except at their edges.

Grayscale Erosion Bright regions surrounded by dark regions shrink in size Dark regions surrounded by bright regions grow in size. Small bright spots in images will disappear as they get eroded away down to the surrounding intensity value Small dark spots will become larger spots. The effect is most marked at places in the image where the intensity changes rapidly, and regions of fairly uniform intensity will be left more or less unchanged except at their edges.

Grayscale Erosion Matlab code function [out] = grayero(im,se) if (~isa(se,'strel')) se=strel(se); end seq=getsequence(se); lunghezza=size(seq,1); out=gerod(im,getnhood(seq(1)),2); for ii=2:lunghezza out=gerod(out,getnhood(seq(ii)),2);

Grayscale Erosion erosion erosion under original

Grayscale Erosion Source image Eroded image

Grayscale Opening Grayscale Opening: A grayscale image F opened by a grayscale SE K is defined as: It can be used to select and preserve particular intensity patterns while attenuating others Width of Opening kernel intensity intensity The important thing to notice here is the way in which bright features smaller than the structuring element should be greatly reduced in intensity, while larger features have remained more or less unchanged in intensity. scan line scan line

Grayscale Opening opening opened & original

Grayscale Opening Source image Opened image

Grayscale Closing Grayscale Closing: A grayscale image F closed by a grayscale SE K is defined as: It is another way to select and preserve particular intensity patterns while attenuating others. Width of closing kernel intensity intensity scan line scan line

Grayscale Closing closing closing & original

Grayscale Closing Source image Closed image

Grayscale Dilation and Erosion Grayscale dilation and erosion with disk‐shaped structuring elements of radius r = 2.5, 5.0, 10.0

Grayscale Dilation and Erosion Grayscale dilation and erosion with various free‐form structuring elements

Grayscale Opening and Closing Grayscale opening and closing with disk‐shaped structuring elements of radius r = 2.5, 5.0, 10.0

Morphological Edge Detection Morphological Edge Detection is based on Binary Dilation, Binary Erosion and Image Subtraction. Morphological Edge Detection Algorithms: Standard: External: Internal:

Morphological Edge Detection F  K F F  K K

Morphological Edge Detection F

Morphological Gradient Morphological Gradient is calculated by grayscale dilation and grayscale Erosion. It is quite similar to the standard edge detection We also have external and internal gradient

Morphological Gradient Standard External Internal

Morphological Smoothing Morphological Smoothing is based on the observation that a grayscale opening smoothes a grayscale image from above the brightness surface and the grayscale closing smoothes from below. So we could get both smooth like:

Morphological Smoothing Frequency spectrum, in linear system theory, provides a measure of similarity between a function and the collection of all the possible sinusoids, whereas pattern spectrum, in mathematical morphology, provides a measure of a set and the collection of all the possible structuring elements.

Operators In Software VTK: vtkImageContinuousDilate3D() vtkImageContinuousErode3D() ITK: itkGrayscaleDilateImageFilter() (Flat SE) itkGrayscaleErodeImageFilter() (Flat SE) itkGrayscaleFunctionDilateImageFilter() (Grayscale SE) itkGrayscaleFunctionErodeImageFilter() (Grayscale SE) MATLAB: mmdil(), mmero(), mmopen(),mmclose(), mmgradm()

Top-hat Transform Top-hat Transform (TT): An efficient segmentation tool for extracting bright (respectively dark) objects from uneven background. White Top-hat Transform (WTT): (ri is the scalar of SE) Black Top-hat Transform (BTT):

Top-hat Transform tophat + opened = original tophat: original - opening

Top-hat Transform BTT WTT

Top-hat Transform BTT WTT

Application 1 Detecting runways in satellite airport imagery Source WTT Threshold Detect long feature Final result Reconstruction

The End