1 Regions and Binary Images Hao Jiang Computer Science Department Sept. 25, 2014.

Slides:



Advertisements
Similar presentations
Programming Assignment 2 CS 302 Data Structures Dr. George Bebis.
Advertisements

Binary Image Analysis Selim Aksoy Department of Computer Engineering Bilkent University
Chapter 9: Morphological Image Processing
Morphology – Chapter 10. Binary image processing Often it is advantageous to reduce an image from gray level (multiple bits/pixel) to binary (1 bit/pixel)
Binary Morphology A method for … –Dilation –Erosion –Opening –Closing -750-
Each pixel is 0 or 1, background or foreground Image processing to
Introduction to Morphological Operators
Perceptual and Sensory Augmented Computing Computer Vision WS 08/09 Computer Vision Binary Image Analysis Bastian Leibe RWTH Aachen
Morphological Image Processing Md. Rokanujjaman Assistant Professor Dept of Computer Science and Engineering Rajshahi University.
Edges and Binary Images
Tutorial # 10 Morphological Operations I8oZE.
Introduction to Computer Vision
1 Binary Image Analysis Binary image analysis consists of a set of image analysis operations that are used to produce or process binary images, usually.
Binary Image Analysis: Part 2 Readings: Chapter 3: mathematical morphology region properties region adjacency 1.
Computer Vision Basics Image Terminology Binary Operations Filtering Edge Operators.
Binary Image Analysis. YOU HAVE TO READ THE BOOK! reminder.
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
E.G.M. PetrakisBinary Image Processing1 Binary Image Analysis Segmentation produces homogenous regions –each region has uniform gray-level –each region.
1. Binary Image B(r,c) 2 0 represents the background 1 represents the foreground
Lecture 5. Morphological Image Processing. 10/6/20152 Introduction ► ► Morphology: a branch of biology that deals with the form and structure of animals.
Chapter 9.  Mathematical morphology: ◦ A useful tool for extracting image components in the representation of region shape.  Boundaries, skeletons,
Chap 3 : Binary Image Analysis. Counting Foreground Objects.
CS 6825: Binary Image Processing – binary blob metrics
September 23, 2014Computer Vision Lecture 5: Binary Image Processing 1 Binary Images Binary images are grayscale images with only two possible levels of.
Binary Thresholding Threshold detection Variations
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.
1 Binary Image Analysis Binary image analysis consists of a set of image analysis operations that are used to produce or process binary images, usually.
CS 1699: Intro to Computer Vision Edges and Binary Images Prof. Adriana Kovashka University of Pittsburgh September 15, 2015.
Image Segmentation and Morphological Processing Digital Image Processing in Life- Science Aviad Baram
AdeptSight Image Processing Tools Lee Haney January 21, 2010.
Mathematical Morphology Mathematical morphology (matematická morfologie) –A special image analysis discipline based on morphological transformations of.
1 Regions and Binary Images Hao Jiang Computer Science Department Sept. 24, 2009.
Binary Morphology A method for … –Dilation –Erosion –Opening –Closing -750-
Digital Image Processing CSC331 Morphological image processing 1.
Erosion: Erosion is used for shrinking of element A by using element B
Mathematical Morphology
Low level Computer Vision 1. Thresholding 2. Convolution 3. Morphological Operations 4. Connected Component Extraction 5. Feature Extraction 1.
Computer Vision – Lecture 2
CS654: Digital Image Analysis
Nottingham Image Analysis School, 23 – 25 June NITS Image Segmentation Guoping Qiu School of Computer Science, University of Nottingham
CSSE463: Image Recognition Day 9 Lab 3 (edges) due Weds, 3:25 pm Lab 3 (edges) due Weds, 3:25 pm Take home quiz due Friday, 4:00 pm. Take home quiz due.
CS 376b Introduction to Computer Vision 02 / 12 / 2008 Instructor: Michael Eckmann.
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.
Morphological Image Processing Robotics. 2/22/2016Introduction to Machine Vision Remember from Lecture 12: GRAY LEVEL THRESHOLDING Objects Set threshold.
SUREILLANCE IN THE DEPARTMENT THROUGH IMAGE PROCESSING F.Y.P. PRESENTATION BY AHMAD IJAZ & UFUK INCE SUPERVISOR: ASSOC. PROF. ERHAN INCE.
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.
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
Morphology Image Processing‏ Lab 6. Dilationgrow image regions Erosionshrink image regions Openingremoval of image region Closingfilling in image region.
Content Based Coding of Face Images
COMP 9517 Computer Vision Binary Image Analysis 4/15/2018
CSE 554 Lecture 1: Binary Pictures
Binary Image Analysis Gokberk Cinbis
Introduction to Morphological Operators
Computer Vision Lecture 5: Binary Image Processing
Morphological Operations
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.
Binary Image processing بهمن 92
Department of Computer Engineering
Binary Image Analysis: Part 2 Readings: Chapter 3:
ECE 692 – Advanced Topics in Computer Vision
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 Regions and Binary Images Hao Jiang Computer Science Department Sept. 25, 2014

Figure Ground Separation 2

Brightness Thresholding 3

= - Thresholding  Given a grayscale image or an intermediate matrix  threshold to create a binary output. Example: background subtraction Looking for pixels that differ significantly from the “empty” background. fg_pix = find(diff > t); Slides from Kristen Grauman

Thresholding  Given a grayscale image or an intermediate matrix  threshold to create a binary output. Example: color-based detection Looking for pixels within a certain hue range. fg_pix = find(hue > t1 & hue < t2); Slides from Kristen Grauman

More Binary Images 6 Slide from Kristen Grauman

Issues  How to demarcate multiple regions of interest?  Count objects  Compute further features per object  What to do with “noisy” binary outputs?  Holes  Extra small fragments Slide from Kristen Grauman

Find Connected Regions 8

9 Our target in this image is the largest blob.

Connected Components  Identify distinct regions of “connected pixels” Shapiro and Stockman

Pixel Neighbors 11 4 neighboring pixels of the blue pixel

Pixel Neighbors 12 8 neighboring pixels of the blue pixel

Recursive Method 13 label = 2 for i = 1 to rows for j = 1 to cols if I(i, j) == 1 labelConnectedRegion(i, j, label) label ++; end

Recursive Method 14 function labelConnectedRegion(int i, int j, int label) if (i,j) is labeled or background or out of boundary return I(i,j)=label for (m,n) belongs to neighbors of (i,j) labelConnectedRegion(m,n,label) end

Sequential connected components Slide from J. Neira

Sequential connected components

Example Image Label equivalence table

Example Image Label equivalence table

Example Image Label equivalence table

Example Image Label equivalence table

Example Image Label equivalence table

Example Image Label equivalence table

Example Image Label equivalence table

Example Image Label equivalence table

Example Image Label equivalence table

Example Image Label equivalence table (2,3)

Example Image Label equivalence table

Example Image Label equivalence table

Example Image Label equivalence table

Example Image Label equivalence table

Example Image Label equivalence table

Example Image Label equivalence table (5,2)

Example Image Label equivalence table

Example Image Label equivalence table

Example Image Label equivalence table

Example Image Label equivalence table

Example Image Label equivalence table

Example Image Label equivalence table

Example Image Label equivalence table (5,2)

Example Image Label equivalence table

Example Image Label equivalence table

Region properties  Given connected components, can compute simple features per blob, such as:  Area (num pixels in the region)  Centroid (average x and y position of pixels in the region)  Bounding box (min and max coordinates)  How could such features be useful? A1=20 0 A2=17 0

Issues  How to demarcate multiple regions of interest?  Count objects  Compute further features per object  What to do with “noisy” binary outputs?  Holes  Extra small fragments

Morphological operators  Change the shape of the foreground regions/ objects.  Useful to clean up result from thresholding  Basic operators are:  Dilation  Erosion

Dilation  Expands connected components  Grow features  Fill holes Before dilation After dilation

Erosion  Erode connected components  Shrink features  Remove bridges, branches, noise Before erosionAfter erosion

Structuring elements  Masks of varying shapes and sizes used to perform morphology, for example:  Scan mask across foreground pixels to transform the binary image >> help strel

Dilation At each position:  Dilation: OR (MAX) of everything inside the structuring element mask.

Example for Dilation (1D) Input image Structuring Element 1 Output Image 111 Adapted from T. Moeslund

Example for Dilation Input image Structuring Element 11 Output Image 111

Example for Dilation Input image Structuring Element 110 Output Image 111

Example for Dilation Input image Structuring Element 1101 Output Image 111

Example for Dilation Input image Structuring Element Output Image 111

Example for Dilation Input image Structuring Element Output Image 111

Example for Dilation Input image Structuring Element Output Image 111

Example for Dilation Input image Structuring Element Output Image 111

Example for Dilation Input image Structuring Element Output Image 111 Note that the object gets bigger and holes are filled. >> help imdilate

Example for Dilation Input image Structuring Element Output Image 111 Note that the object gets bigger and holes are filled. >> help imdilate

Erosion At each position:  Erosion: AND (MIN) of everything inside the structuring element mask.

Example for Erosion (1D) Input image Structuring Element 0 Output Image 111 _

Example for Erosion (1D) Input image Structuring Element 00 Output Image 111 _

Example for Erosion Input image Structuring Element 000 Output Image 111

Example for Erosion Input image Structuring Element 0000 Output Image 111

Example for Erosion Input image Structuring Element Output Image 111

Example for Erosion Input image Structuring Element Output Image 111

Example for Erosion Input image Structuring Element Output Image 111

Example for Erosion Input image Structuring Element Output Image 111

Example for Erosion Input image Structuring Element Output Image 111

Example for Erosion Input image Structuring Element Output Image 111 Note that the object gets smaller >> help imerode

Opening  Erode, then dilate  Remove small objects, keep original shape Before openingAfter opening Slide from Kristen Grauman

Closing  Dilate, then erode  Fill holes, but keep original shape Before closingAfter closing Slide from Kristen Grauman

Morphology Operators on Grayscale Images  Dilation and erosion typically performed on binary images.  If image is grayscale: for dilation take the neighborhood max, for erosion take the min. originaldilated eroded Slide from Kristen Grauman

Matlab  Create structure element se = strel(‘disk’, radius);  Erosion imerode(image, se);  Dilation imdilate(image, se);  Opening imopen(image, se);  Closing imclose(image, se);  More possibilities bwmorph(image, ‘skel’); 73

Figure Ground Separation 74

Brightness Thresholding 75

Opening 76

Find the Largest Connected Region 77

Example Using Binary Image Analysis: segmentation of a liver Slide credit: Li Shen Slide from Kristen Grauman

Example Using Binary Image Analysis: Bg subtraction + blob detection … Slide from Kristen Grauman

University of Southern California Example Using Binary Image Analysis: Bg subtraction + blob detection Slide from Kristen Grauman