Analysis of Binary Images

Similar documents
Announcements. Analysis of Binary Images. Color Reflectance

Announcements. The principle of trichromacy. Color Matching Functions. The appearance of colors

CSE 152 Lecture 7. Intro Computer Vision

Announcements. Binary Image Processing. Binary System Summary. Histogram-based Segmentation. How do we select a Threshold?

CSE 152 Lecture 7` Intro Computer Vision

Color Matching Functions. The principle of trichromacy. CIE xyy (Chromaticity Space) Color spaces. Intro Computer Vision. CSE 152 Lecture 7`

Binary Image Processing. Introduction to Computer Vision CSE 152 Lecture 5

Lighting. Camera s sensor. Lambertian Surface BRDF

Color to Binary Vision. The assignment Irfanview: A good utility Two parts: More challenging (Extra Credit) Lighting.

Processing of binary images

Image Segmentation. Segmentation is the process of partitioning an image into regions

EE 584 MACHINE VISION

Image Processing. Bilkent University. CS554 Computer Vision Pinar Duygulu

CSE152a Computer Vision Assignment 2 WI14 Instructor: Prof. David Kriegman. Revision 1

CS443: Digital Imaging and Multimedia Binary Image Analysis. Spring 2008 Ahmed Elgammal Dept. of Computer Science Rutgers University

EE 701 ROBOT VISION. Segmentation

Problem definition Image acquisition Image segmentation Connected component analysis. Machine vision systems - 1

Digital Image Processing COSC 6380/4393

Chapter 11 Representation & Description

CoE4TN4 Image Processing

Digital Image Processing

CS534 Introduction to Computer Vision Binary Image Analysis. Ahmed Elgammal Dept. of Computer Science Rutgers University

Announcements. Lighting. Camera s sensor. HW1 has been posted See links on web page for readings on color. Intro Computer Vision.

CS 490: Computer Vision Image Segmentation: Thresholding. Fall 2015 Dr. Michael J. Reale

Edges and Binary Images

Robot vision review. Martin Jagersand

CS4670: Computer Vision

Digital Image Processing

Anno accademico 2006/2007. Davide Migliore

Practical Image and Video Processing Using MATLAB

CITS 4402 Computer Vision

Lecture 8 Object Descriptors

Introduction to Computer Vision. Human Eye Sampling

9 length of contour = no. of horizontal and vertical components + ( 2 no. of diagonal components) diameter of boundary B

Announcements. Camera Calibration. Thin Lens: Image of Point. Limits for pinhole cameras. f O Z

Motion Estimation and Optical Flow Tracking

CS4733 Class Notes, Computer Vision

Motivation. Gray Levels

Local Features: Detection, Description & Matching

SUMMARY: DISTINCTIVE IMAGE FEATURES FROM SCALE- INVARIANT KEYPOINTS

EECS490: Digital Image Processing. Lecture #23

EECS490: Digital Image Processing. Lecture #22

EXAM SOLUTIONS. Image Processing and Computer Vision Course 2D1421 Monday, 13 th of March 2006,

Computer Vision & Digital Image Processing. Image segmentation: thresholding

09/11/2017. Morphological image processing. Morphological image processing. Morphological image processing. Morphological image processing (binary)

Edge and corner detection

(Sample) Final Exam with brief answers

Lecture: Segmentation I FMAN30: Medical Image Analysis. Anders Heyden

COMPUTER AND ROBOT VISION

Topic 4 Image Segmentation

Perception. Autonomous Mobile Robots. Sensors Vision Uncertainties, Line extraction from laser scans. Autonomous Systems Lab. Zürich.

Image Acquisition + Histograms

Local invariant features

C E N T E R A T H O U S T O N S C H O O L of H E A L T H I N F O R M A T I O N S C I E N C E S. Image Operations II

Computer Graphics and Image Processing

CS 4495 Computer Vision A. Bobick. CS 4495 Computer Vision. Features 2 SIFT descriptor. Aaron Bobick School of Interactive Computing

SIFT: SCALE INVARIANT FEATURE TRANSFORM SURF: SPEEDED UP ROBUST FEATURES BASHAR ALSADIK EOS DEPT. TOPMAP M13 3D GEOINFORMATION FROM IMAGES 2014

Introduction to color science

Computer and Machine Vision

Building a Panorama. Matching features. Matching with Features. How do we build a panorama? Computational Photography, 6.882

Augmented Reality VU. Computer Vision 3D Registration (2) Prof. Vincent Lepetit

Robotics Programming Laboratory

Matching. Compare region of image to region of image. Today, simplest kind of matching. Intensities similar.

Corner Detection. GV12/3072 Image Processing.

Edge Detection. CSE 576 Ali Farhadi. Many slides from Steve Seitz and Larry Zitnick

Prof. Fanny Ficuciello Robotics for Bioengineering Visual Servoing

Digital Image Processing. Lecture # 15 Image Segmentation & Texture

Image Segmentation. Selim Aksoy. Bilkent University

Image Segmentation. Selim Aksoy. Bilkent University

Boundary descriptors. Representation REPRESENTATION & DESCRIPTION. Descriptors. Moore boundary tracking

Computer vision: models, learning and inference. Chapter 13 Image preprocessing and feature extraction

Chapter 3 Image Registration. Chapter 3 Image Registration

Requirements for region detection

BSB663 Image Processing Pinar Duygulu. Slides are adapted from Selim Aksoy

Filtering and Enhancing Images

Image Processing Fundamentals. Nicolas Vazquez Principal Software Engineer National Instruments

Edge Detection. CS664 Computer Vision. 3. Edges. Several Causes of Edges. Detecting Edges. Finite Differences. The Gradient

Visual Tracking (1) Tracking of Feature Points and Planar Rigid Objects

Image Features. Work on project 1. All is Vanity, by C. Allan Gilbert,

School of Computing University of Utah

Object Shape Recognition in Image for Machine Vision Application

Biometrics Technology: Image Processing & Pattern Recognition (by Dr. Dickson Tong)

Image processing. Reading. What is an image? Brian Curless CSE 457 Spring 2017

EE795: Computer Vision and Intelligent Systems

Feature Detectors and Descriptors: Corners, Lines, etc.

Topic 6 Representation and Description

Previously. Edge detection. Today. Thresholding. Gradients -> edges 2/1/2011. Edges and Binary Image Analysis

ECEN 447 Digital Image Processing

Image and Multidimensional Signal Processing

Digital Image Processing Chapter 11: Image Description and Representation

Edge detection. Goal: Identify sudden. an image. Ideal: artist s line drawing. object-level knowledge)

Image representation. 1. Introduction

Edge and Texture. CS 554 Computer Vision Pinar Duygulu Bilkent University

Computer Vision I - Filtering and Feature detection

Lecture 10: Image Descriptors and Representation

Chapter 11 Representation & Description

Lecture 14 Shape. ch. 9, sec. 1-8, of Machine Vision by Wesley E. Snyder & Hairong Qi. Spring (CMU RI) : BioE 2630 (Pitt)

Biomedical Image Analysis. Mathematical Morphology

CS 5540 Spring 2013 Assignment 3, v1.0 Due: Apr. 24th 11:59PM

EECS150 - Digital Design Lecture 14 FIFO 2 and SIFT. Recap and Outline

Transcription:

Analysis of Binary Images Introduction to Computer Vision CSE 52 Lecture 7 CSE52, Spr 07

The appearance of colors Color appearance is strongly affected by (at least): Spectrum of lighting striking the retina other nearby colors (space) adaptation to previous views (time) state of mind CSE52, Spr 07

Color Reflectance Measured color spectrum is a function of the spectrum of the illumination and reflectance From Foundations of Vision, Brian Wandell, 995, via B. Freeman slides CSE52, Spr 07

CSE52, Spr 07 slide Intro from Computer T. Darrel Vision

Color matching functions Choose primaries, say P (λ), P 2 (λ), P 3 (λ) For monochromatic (single wavelength) energy function, what amounts of primaries will match it? i.e., For each wavelength λ, determine how much of A, of B, and of C is needed to match light of that wavelength alone. RGB a( ) λ b( λ ) c( λ ) These are color matching functions CSE52, Spr 07 primaries are monochromatic at 645.2nm, 526.3nm, 444.4nm

CIE xyy (Chromaticity Space) CSE52, Spr 07

Blob Tracking for Robot Control CSE52, Spr 07

Basic Steps. Labeling pixels as foreground/background (0,). 2. Morphological operators (sometimes) 3. Find pixels corresponding to a region 4. Compute properties of each region CSE52, Spr 07

Histogram-based Segmentation Ex: bright object on dark background: Histogram Number of pixels Select threshold Create binary image: I(x,y) < T O(x,y) = 0 I(x,y) T O(x,y) = Gray value T CSE52, Spr 07 [ From Octavia Camps]

How do we select a Threshold? Manually determine threshold experimentally. Good when lighting is stable and high contrast. Automatic thresholding P-tile method Mode method Peakiness detection Iterative algorithm CSE52, Spr 07

P-Tile Method If the size of the object is approx. known, pick T s.t. the area under the histogram corresponds to the size of the object: T CSE52, Spr 07 [ From Octavia Camps]

Mode Method Model intensity in each region R i as constant + N(0,σ i ): CSE52, Spr 07 [ From Octavia Camps]

Example: Image with 3 regions Ideal histogram: μ μ 2 μ 3 Add noise: The valleys are good places for thresholding to separate regions. μ μ 2 μ 3 CSE52, Spr 07 [ From Octavia Camps]

Finding the peaks and valleys It is a not trivial problem: CSE52, Spr 07 [ From Octavia Camps]

Peakiness Detection Algorithm Find the two HIGHEST LOCAL MAXIMA at a MINIMUM DISTANCE APART: g i and g j Find lowest point between them: g k Measure peakiness : min(h(g i ),H(g j ))/H(g k ) Find (g i,g j,g k ) with highest peakiness g i g k g j CSE52, Spr 07 [ From Octavia Camps]

Regions CSE52, Spr 07

What is a region? Maximal connected set of points in the image with same brightness value (e.g., ) Two points are connected if there exists a continuous path joining them. Regions can be simply connected (For every pair of points in the region, all smooth paths can be smoothly and continuously deformed into each other). Otherwise, region is multiply connected (holes) CSE52, Spr 07

CSE52, Spr 07 Connected Regions What are the connected regions in this binary image? Which regions are contained within which region?

Connected Regions What the connected regions in this binary image? Which regions are contained within which region? CSE52, Spr 07

Four & Eight Connectedness Four Connected Eight Connected CSE52, Spr 07

Jordan Curve Theorem Every closed curve in R 2 divides the plane into two region, the outside and inside of the curve. Almost obvious CSE52, Spr 07

Problem of 4/8 Connectedness 8 Connected: s form a closed curve, but background only forms one region. 4 Connected Background has two regions, but ones form four open curves (no closed curve) CSE52, Spr 07

To achieve consistency w.r.t. Jordan. Treat background as 4-connected and foreground as 8- connected. 2. Use 6-connectedness Curve Theorem CSE52, Spr 07

Recursive Labeling Connected Component Exploration 2 CSE52, Spr 07

Recursive Labeling Connected Component Exploration Procedure Label (Pixel) BEGIN Mark(Pixel) <- Marker; FOR neighbor in Neighbors(Pixel) DO IF Image (neighbor) = AND Mark(neighbor)=nil THEN Label(neighbor) END BEGIN Main Marker <- 0; FOR Pixel in Image DO IF Image(Pixel) = AND Mark(Pixel)=nil THEN END BEGIN Marker <- Marker + ; Label(Pixel); END; Globals: Marker: integer Mark: Matrix same size as Image, initialized to NIL CSE52, Spr 07

Some notes How deep does stack go? Iterative algorithms (See reading from Horn) Parallel algorithms CSE52, Spr 07

Properties extracted from binary image A tree showing containment of regions Properties of a region. Genus number of holes 2. Centroid 3. Area 4. Perimeter 5. Moments (e.g., measure of elongation) 6. Number of extrema (indentations, bulges) 7. Skeleton CSE52, Spr 07

B(x,y) Moments 0 The region S is defined as: B Given a pair of non-negative negative integers (j,k) the discrete (j,k) th moment of S is defined as: CSE52, Spr 07 M n m = j, k B( x, y) x= y= x j y k Fast way to implement computation over n by m image or window One object

Area: Moment M 00 0 Example: Area of S!! CSE52, Spr 07

Moments: Centroid 0 Example: Center of gravity (Centroid) of S!! CSE52, Spr 07

Shape recognition by Moments 0? = 0 Recognition could be done by comparing moments However, moments M jk are not invariant under: Translation Scaling Rotation Skewing CSE52, Spr 07

Central Moments 0 Given a pair of non-negative negative integers (j,k) the central (j,k) th moment of S is given by: CSE52, Spr 07

Central Moments 0 Translation by T = (a,b) : 0 Translation INVARIANT! CSE52, Spr 07

Normalized Moments 0 Given a pair of non-negative negative integers (j,k) the normalized (j,k) th moment of S is given by: CSE52, Spr 07

Normalized Moments 0 Scaling by (a,c) and translating by T = (b,d) : 0 Scaling and translation INVARIANT! CSE52, Spr 07

Region orientation from Second Moment Matrix Second Centralized Moment Matrix μ μ 20 μ μ 02 CSE52, Spr 07 Eigenvectors of Moment Matrix give orientation