Announcements. Analysis of Binary Images. Color Reflectance

Similar documents
Analysis of Binary Images

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

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`

CSE 152 Lecture 7. Intro Computer Vision

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

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

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

EE 584 MACHINE VISION

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

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

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

Image Processing. Bilkent University. CS554 Computer Vision Pinar Duygulu

CoE4TN4 Image Processing

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

EE 701 ROBOT VISION. Segmentation

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

Digital Image Processing

Robot vision review. Martin Jagersand

CS4670: Computer Vision

Digital Image Processing COSC 6380/4393

Edges and Binary Images

Anno accademico 2006/2007. Davide Migliore

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

Local invariant features

SUMMARY: DISTINCTIVE IMAGE FEATURES FROM SCALE- INVARIANT KEYPOINTS

Local Features: Detection, Description & Matching

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

Lecture 8 Object Descriptors

Chapter 11 Representation & Description

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

CITS 4402 Computer Vision

Motion Estimation and Optical Flow Tracking

(Sample) Final Exam with brief answers

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

Robotics Programming Laboratory

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

CS4733 Class Notes, Computer Vision

Lecture 10: Image Descriptors and Representation

Image Segmentation. Selim Aksoy. Bilkent University

Image Segmentation. Selim Aksoy. Bilkent University

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

Announcements. Hough Transform [ Patented 1962 ] Generalized Hough Transform, line fitting. Assignment 2: Due today Midterm: Thursday, May 5 in class

Generalized Hough Transform, line fitting

Scale Invariant Feature Transform

EECS490: Digital Image Processing. Lecture #23

Digital Image Processing

School of Computing University of Utah

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

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

Introduction to color science

Local features: detection and description. Local invariant features

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

Digital Image Processing Chapter 11: Image Description and Representation

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

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

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

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

Introduction to Computer Vision. Human Eye Sampling

Edge and corner detection

Image matching. Announcements. Harder case. Even harder case. Project 1 Out today Help session at the end of class. by Diva Sian.

COMPUTER AND ROBOT VISION

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

Scale Invariant Feature Transform

Image processing and features

Image Acquisition + Histograms

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

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

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

Computer and Machine Vision

Digital Image Processing. Lecture # 15 Image Segmentation & Texture

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

Volocity ver (2013) Standard Operation Protocol

Practical Image and Video Processing Using MATLAB

Features Points. Andrea Torsello DAIS Università Ca Foscari via Torino 155, Mestre (VE)

Local features: detection and description May 12 th, 2015

ECEN 447 Digital Image Processing

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

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

Topic 6 Representation and Description

Image and Multidimensional Signal Processing

3D Vision. Viktor Larsson. Spring 2019

Chapter 3 Image Registration. Chapter 3 Image Registration

EXAM SOLUTIONS. Computer Vision Course 2D1420 Thursday, 11 th of march 2003,

Computer Graphics and Image Processing

Motion illusion, rotating snakes

CS 4495 Computer Vision Motion and Optic Flow

CEE598 - Visual Sensing for Civil Infrastructure Eng. & Mgmt.

SIFT: Scale Invariant Feature Transform

Computer Vision & Digital Image Processing. Image segmentation: thresholding

CSE 167: Lecture #6: Color. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2011

Color. Computational Photography MIT Feb. 14, 2006 Bill Freeman and Fredo Durand

Object Shape Recognition in Image for Machine Vision Application

Implementing the Scale Invariant Feature Transform(SIFT) Method

Color. Reading: Optional reading: Chapter 6, Forsyth & Ponce. Chapter 4 of Wandell, Foundations of Vision, Sinauer, 1995 has a good treatment of this.

Multimedia Information Retrieval

Harder case. Image matching. Even harder case. Harder still? by Diva Sian. by swashford

Transcription:

Announcements Analysis of Binary Images HW0 returned HW1 due Thursday Wed 10:00, Discussion Section EBU3b 2217 Introduction to Computer Vision CSE 152 Lecture 7 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 Color Reflectance Measured color spectrum is a function of the spectrum of the illumination and reflectance From Foundations of Vision, Brian Wandell, 1995, via B. Freeman slides Color matching functions Choose primaries, say P 1 (λ), 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 These are color matching functions primaries are monochromatic at slide Intro from Computer T. Darrel Vision 645.2nm, 526.3nm, 444.4nm 1

CIE xyy (Chromaticity Space) Basic Steps 1. Labeling pixels as foreground/background (0,1). 2. Morphological operators (sometimes) 3. Find pixels corresponding to a region 4. Compute properties of each region Histogram-based Segmentation How do we select a Threshold? Manually determine threshold experimentally. Good when lighting is stable and high contrast. Select threshold Create binary image: Automatic thresholding I(x,y) < T O(x,y) = 0 I(x,y) T O(x,y) = 1 [ From Octavia Camps] P-Tile Method [ From Octavia Camps] Mode 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: P-tile method Mode method Peakiness detection Iterative algorithm Model intensity in each region Ri as constant + N(0,σi): [ From Octavia Camps] 2

Example: Image with 3 regions Finding the peaks and valleys It is a not trivial problem: [ From Octavia Camps] [ From Octavia Camps] Peakiness Detection Algorithm Blob Tracking for Robot Control 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 [ From Octavia Camps] What is a region? Maximal connected set of points in the image with same brightness value (e.g., 1) Regions 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) 3

Connected Regions Connected Regions 1 1 1 1 1 1 1 1 1 1 1 What are the connected regions in this binary image? Which regions are contained within which region? What the connected regions in this binary image? Which regions are contained within which region? Four & Eight Connectedness Jordan Curve Theorem Every closed curve in R 2 divides the plane into two region, the outside and inside of the curve. Four Connected Eight Connected Almost obvious Problem of 4/8 Connectedness 1 1 1 1 1 1 1 1 1 1 8 Connected: 1 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) To achieve consistency w.r.t. Jordan Curve Theorem 1. Treat background as 4-connected and foreground as 8- connected. 2. Use 6-connectedness 4

Recursive Labeling Connected Component Exploration Procedure Label (Pixel) Mark(Pixel) <- Marker; FOR neighbor in Neighbors(Pixel) DO IF Image (neighbor) = 1 AND Mark(neighbor)=NIL THEN Label(neighbor) Main Marker <- 0; FOR Pixel in Image DO IF Image(Pixel) = 1 AND Mark(Pixel)=NIL THEN Marker <- Marker + 1; Label(Pixel); ; Globals: Marker: integer Mark: Matrix same size as Image, initialized to NIL Recursive Labeling Connected Component Exploration 1 2 Some notes Once labeled, you know how many regions (the value of Marker) From Mark matrix, you can identify all pixels that are part of each region (and compute area) How deep does stack go? Iterative algorithms (See reading from Horn) Parallel algorithms Recursive Labeling Connected Component Exploration Procedure Label (Pixel) Mark(Pixel) <- Marker; FOR neighbor in Neighbors(Pixel) DO IF Image (neighbor) = 1 AND Mark(neighbor)=nil THEN Label(neighbor) Main Marker <- 0; FOR Pixel in Image DO IF Image(Pixel) = 1 AND Mark(Pixel)=nil THEN Marker <- Marker + 1; Label(Pixel); ; Globals: Marker: integer Mark: Matrix same size as Image, initialized to NIL Some notes How deep does stack go? Iterative algorithms (See reading from Horn) Parallel algorithms Properties extracted from binary image A tree showing containment of regions Properties of a region 1. 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 5

B(x,y) Moments The region S is defined as: B Area: Moment M 00 Fast way to implement computation over n by m image or window One object m M 0,0 = B(x, y) x =1 y =1 n Fast way to implement computation over n by m image or window One object Moments: Centroid Shape recognition by Moments Recognition could be done by comparing moments However, moments M jk are not invariant under: Translation Scaling Rotation Skewing Central Moments Central Moments 6

Normalized Moments Normalized Moments Region Orientation from Second Moment Matrix Second Centralized Moment Matrix Eigenvectors of Moment Matrix give orientation 7