1 Regions and Binary Images Hao Jiang Computer Science Department Sept. 24, 2009.

Slides:



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

Computational Biology, Part 23 Biological Imaging II Robert F. Murphy Copyright  1996, 1999, All rights reserved.
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)
Digital Image Processing Lecture 12: Image Topology
Each pixel is 0 or 1, background or foreground Image processing to
Introduction to Morphological Operators
CSSE463: Image Recognition Day 3 Announcements/reminders: Announcements/reminders: Lab 1 should have been turned in yesterday (late day due now). Lab 1.
CSSE463: Image Recognition Day 3 Announcements/reminders: Announcements/reminders: Lab 1 should have been turned in yesterday (due now if use a late day).
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
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.
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.
CSE554Binary PicturesSlide 1 CSE 554 Lecture 1: Binary Pictures Fall 2013.
CSE554Binary PicturesSlide 1 CSE 554 Lecture 1: Binary Pictures Fall 2014.
Chapter 3 Binary Image Analysis. Types of images ► Digital image = I[r][c] is discrete for I, r, and c.  B[r][c] = binary image - range of I is in {0,1}
Morphological Image Processing
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.
Introduction Image geometry studies rotation, translation, scaling, distortion, etc. Image topology studies, e.g., (i) the number of occurrences.
Chapter 3 cont’d. Binary Image Analysis. Binary image morphology (nonlinear image processing)
Digital Image Processing CSC331 Morphological image processing 1.
1 Regions and Binary Images Hao Jiang Computer Science Department Sept. 25, 2014.
Digital Image Processing CSC331 Morphological image processing 1.
CS 376b Introduction to Computer Vision 02 / 11 / 2008 Instructor: Michael Eckmann.
Erosion: Erosion is used for shrinking of element A by using element B
Low level Computer Vision 1. Thresholding 2. Convolution 3. Morphological Operations 4. Connected Component Extraction 5. Feature Extraction 1.
Computer Vision – Lecture 2
    LICENSE PLATE EXTRACTION AND CHARACTER SEGMENTATION   By HINA KOCHHAR NITI GOEL Supervisor Dr. Rajeev Srivastava        
Nottingham Image Analysis School, 23 – 25 June NITS Image Segmentation Guoping Qiu School of Computer Science, University of Nottingham
CS 376b Introduction to Computer Vision 02 / 12 / 2008 Instructor: Michael Eckmann.
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.
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.
ECE472/572 - Lecture 14 Morphological Image Processing 11/17/11.
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.
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 CCS331 Relationships of Pixel 1.
Content Based Coding of Face Images
CSE 554 Lecture 1: Binary Pictures
Binary Image Analysis Gokberk Cinbis
Introduction to Morphological Operators
Computer Vision Lecture 5: Binary Image Processing
Binary Image Analysis: Part 1 Readings: Chapter 3: 3.1, 3.4, 3.8
Binary Image Analysis used in a variety of applications:
Binary Image Analysis: Part 1 Readings: Chapter 3: 3.1, 3.4, 3.8
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
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. 24, 2009

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); Slide 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); Slide 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

Two Pass Method  We check each pixel from left to right and up to bottom  If a pixel has no left and up foreground neighbor, we assign a new label to the pixel  If a pixel has only one left or up foreground neighbor, we assign the label of the neighbor to the pixel  If a pixel has both left and up foreground neighbors, and their labels are the same, we assign the label of the neighbor to the pixel  If a pixel has both left and up foreground neighbors, and their labels are the different, we assign the label of the left neighbor to the pixel and use the up-left label pair to update the equivalency table.  We go through another pass to replace the labels to corresponding labels in the equivalency table 15

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

Morphology Operations  Define At = { p + t | p is a point in A}  Erosion 41 T = { t | At belongs to S} A S Erosion(S, A)

Morphology Operations  Define At = { p + t | p is a point in A}  Erosion 42 T = { t | At belongs to S} S What if A is

Morphology Operations  Define At = { p + t | p is a point in A}  Dilation 43 T = Union of At and S for all t in S S What if A is Erosion(S, A)

Morphology Operations  Define At = { p + t | p is a point in A}  Dilation 44 T = Union of At and S for all t in S S What if A is

Morphology Operations  Define At = { p + t | p is a point in A}  Dilation 45 T = Union of At and S for all t in S What if A is

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’); 49

Figure Ground Separation 50

Brightness Thresholding 51

Opening 52

Find the Largest Connected Region 53

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