The content of these slides by John Galeotti, © 2012 - 2015 Carnegie Mellon University (CMU), was made possible in part by NIH NLM contract# HHSN276201000580P,

Slides:



Advertisements
Similar presentations
The content of these slides by John Galeotti, © 2013 Carnegie Mellon University (CMU), was made possible in part by NIH NLM contract# HHSN P,
Advertisements

電腦視覺 Computer and Robot Vision I
The content of these slides by John Galeotti, © Carnegie Mellon University (CMU), was made possible in part by NIH NLM contract# HHSN P,
The content of these slides by John Galeotti, © 2012 Carnegie Mellon University (CMU), was made possible in part by NIH NLM contract# HHSN P,
Lecture 12 Level Sets & Parametric Transforms sec & ch
This work by John Galeotti and Damion Shelton, © , was made possible in part by NIH NLM contract# HHSN P, and is licensed under a Creative.
Motion Analysis Slides are from RPI Registration Class.
Pattern Recognition Topic 1: Principle Component Analysis Shapiro chap
Lecture 4: Feature matching
Automatic Image Alignment (feature-based) : Computational Photography Alexei Efros, CMU, Fall 2005 with a lot of slides stolen from Steve Seitz and.
Feature extraction: Corners and blobs
COMP322/S2000/L221 Relationship between part, camera, and robot (cont’d) the inverse perspective transformation which is dependent on the focal length.
Transformations CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel.
CS4670 / 5670: Computer Vision KavitaBala Lecture 15: Projection “The School of Athens,” Raphael.
CS4670: Computer Vision Kavita Bala Lecture 7: Harris Corner Detection.
CS4670: Computer Vision Kavita Bala Lecture 8: Scale invariance.
Chapter 11 Representation and Description. Preview Representing a region involves two choices: In terms of its external characteristics (its boundary)
The content of these slides by John Galeotti, © 2008 to 2015 Carnegie Mellon University (CMU), was made possible in part by NIH NLM contract# HHSN P,
The content of these slides by John Galeotti, © Carnegie Mellon University (CMU), was made possible in part by NIH NLM contract# HHSN P,
Lecture 6 Linear Processing ch. 5 of Machine Vision by Wesley E
DIGITAL IMAGE PROCESSING
Introduction --Classification Shape ContourRegion Structural Syntactic Graph Tree Model-driven Data-driven Perimeter Compactness Eccentricity.
Probability of Error Feature vectors typically have dimensions greater than 50. Classification accuracy depends upon the dimensionality and the amount.
The content of these slides by John Galeotti, © Carnegie Mellon University (CMU), was made possible in part by NIH NLM contract# HHSN P,
Digital Image Processing
CS 480/680 Computer Graphics Representation Dr. Frederick C Harris, Jr. Fall 2012.
Machine Vision for Robots
October 14, 2014Computer Vision Lecture 11: Image Segmentation I 1Contours How should we represent contours? A good contour representation should meet.
The content of these slides by John Galeotti, © Carnegie Mellon University (CMU), was made possible in part by NIH NLM contract# HHSN P,
The content of these slides by John Galeotti, © Carnegie Mellon University (CMU), was made possible in part by NIH NLM contract# HHSN P,
Analysis of shape Biomedical Image processing course, Yevhen Hlushchuk and Jukka Parviainen.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 11 Representation & Description Chapter 11 Representation.
Digital Image Processing Lecture 20: Representation & Description
ENT 273 Object Recognition and Feature Detection Hema C.R.
The content of these slides by John Galeotti, © Carnegie Mellon University (CMU), was made possible in part by NIH NLM contract# HHSN P,
Digital Image Processing CSC331
The content of these slides by John Galeotti, © Carnegie Mellon University (CMU), was made possible in part by NIH NLM contract# HHSN P,
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Representation & Description.
The content of these slides by John Galeotti, © Carnegie Mellon University (CMU), was made possible in part by NIH NLM contract# HHSN P,
Introduction --Classification Shape ContourRegion Structural Syntactic Graph Tree Model-driven Data-driven Perimeter Compactness Eccentricity.
ECE 8443 – Pattern Recognition LECTURE 08: DIMENSIONALITY, PRINCIPAL COMPONENTS ANALYSIS Objectives: Data Considerations Computational Complexity Overfitting.
Lecture 9 Segmentation (ch 8) ch. 8 of Machine Vision by Wesley E
Last update Heejune Ahn, SeoulTech
CS654: Digital Image Analysis Lecture 36: Feature Extraction and Analysis.
Multimodal Interaction Dr. Mike Spann
J. Flusser, T. Suk, and B. Zitová Moments and Moment Invariants in Pattern Recognition
CS654: Digital Image Analysis
1 Overview representing region in 2 ways in terms of its external characteristics (its boundary)  focus on shape characteristics in terms of its internal.
Robotics Chapter 6 – Machine Vision Dr. Amit Goradia.
J. Flusser, T. Suk, and B. Zitová Moments and Moment Invariants in Pattern Recognition The slides accompanying.
Computer Graphics I, Fall 2010 Transformations.
Lecture 14: Projection CS4670 / 5670: Computer Vision Noah Snavely “The School of Athens,” Raphael.
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.
Sheng-Fang Huang Chapter 11 part I.  After the image is segmented into regions, how to represent and describe these regions? ◦ In terms of its external.
Image Warping 2D Geometric Transformations
(CMU ECE) : (CMU BME) : BioE 2630 (Pitt)
Image Representation and Description – Representation Schemes
Interest Points EE/CSE 576 Linda Shapiro.
Digital Image Processing Lecture 20: Representation & Description
3D Vision Interest Points.
Lecture 13 Shape ch. 9, sec. 1-8, of Machine Vision by Wesley E
Mean Shift Segmentation
Lecture 5 Image Characterization ch. 4 of Machine Vision by Wesley E
Lecture 16: Morphology (ch 7) & Image Matching (ch 13) ch. 7 and ch
Representation and Description
(CMU ECE) : (CMU BME) : BioE 2630 (Pitt)
Lecture 14 Shape ch. 9, sec. 1-8, of Machine Vision by Wesley E
(CMU ECE) : (CMU BME) : BioE 2630 (Pitt)
Presentation transcript:

The content of these slides by John Galeotti, © Carnegie Mellon University (CMU), was made possible in part by NIH NLM contract# HHSN P, and is licensed under a Creative Commons Attribution-NonCommercial 3.0 Unported License. To view a copy of this license, visit or send a letter to Creative Commons, 171 2nd Street, Suite 300, San Francisco, California, 94105, USA. Permissions beyond the scope of this license may be available either from CMU or by ing The most recent version of these slides may be accessed online via Lecture 13 Shape ch. 9, sec. 1-8, of Machine Vision by Wesley E. Snyder & Hairong Qi Spring 2015 BioE 2630 (Pitt) : (CMU RI) (CMU ECE) : (CMU BME) Dr. John Galeotti

Shape Analysis  Image analysis requires quantification of image contents  We desire a relatively small number of highly meaningful image descriptors.  But, segmentation gives us lots of data.  We need a way to derive meaningful measures from a segmentation. 2

Shape Analysis  How can I quantify the shape of this object?  What, physically, is this segmented object?  Does it look normal? 3 Segmentation (Pixel labeling from object differentiation) Image Understanding (By means of shape analysis)

Shape Analysis & Linear Transformations  We want to identify objects…  Based on numerical shape descriptors.  But:  Changing the the zoom (size), position, or orientation of an object (or the “camera”) changes the contents of the resulting image.  We often need…  Shape descriptors that evaluate to the same (vector or scalar) value for all sizes, positions, and/or orientations of any given shape 4

Shape Analysis & Linear Transformations  Most shape descriptors are not invariant to all linear transforms.  Many are not even invariant to similarity transformations  Similarity transforms (i.e. pose transforms):  Translation and/or rotation only  Do not change the “shape” of an object 5

A digression into transformations  Linear transforms can be implemented as a matrix that multiplies the vector coordinates of each pixel in an object  Example of rotating shape S about the z-axis (2D in-plane rotation):  Several types:  Rotation  Translation  Zoom  Affine  skew  different scaling in different directions  Perspective  lines stay straight, but not parallel 6 Coordinates of point 1 in shape S Coordinates of point 3 in shape S

Homogeneous coordinates  What:  A slick way to implement translation via matrix multiplication  How:  Add the “dummy” coordinate of 1 to the end of every coordinate vector: 7

Transformations for Medical Imaging  In medical imaging, we usually don’t have optical perspective.  So, we usually don’t want or need invariance to perspective transformations.  We often don’t even need affine transforms.  In medical imaging, we know the size of each voxel.  So, in some cases, we don’t want or need invariance to scale/zoom either. 8

 Big Picture: Fitting a hyper-ellipsoid & then (typically) reducing dimensionality by flattening the shortest axes  Same as fitting an (N+1)-dimensional multivariate Gaussian, and then taking the level set corresponding to one standard deviation  Mathematically, PCA reduces the dimensionality of data by mapping it to the first n eigenvectors (principal components) of the data’s covariance matrix  The first principal component is the eigenvector with the largest eigenvalue and corresponds to the longest axis of the ellipsoid  The variance along an eigenvector is exactly the eigenvector’s eigenvalue  This is VERY important and VERY useful. Any questions? 9 PCA (K-L Expansion) x’ y’ b1b1 b2b2 x y

Basic Shape Descriptors  Trivial to compute—O( n ) with a small coefficient:  Average, max, and min intensity  Area (A) and perimeter * (P)  Thinness / compactness / isoperimetric measure (T), if based on P 2 /A  Center of mass (i.e. center of gravity)  X-Y Aspect Ratio  Easy to compute:  Number of holes  Triangle similarity (ratio of side lengths to P) 10 y x * Perimeter has several definitions; some are trivial to compute

Basic Shape Descriptors  Requires PCA first, which itself is O(D 3 +D 2 n ):  Approximate minimum aspect ratio  Approximate diameter (D)  Thinness / compactness / isoperimetric measure (T), if based on D/A  O( n log n ):  Convex discrepancy  Difficult to compute:  Exact diameter = absolute max chord  Exact minimum aspect ratio  Symmetry, mirror or rotational 11 y x * Perimeter has several definitions; some are difficult to compute

Method of Normalization  Idea: Transform each shape’s image region into a canonical frame before attempting to identify shapes  Simple, but common, example:  Move origin to the center of gravity (CG) of the current shape  Used by central moments (next slide)  Complex example:  Attempt to compute and apply an affine transform to each object such that all right-angle-triangle objects appear identical 12

Moments  Easy to calculate  Sequence of derivation:  Moments: m pq = ∑ x p y q f (x,y)  Central moments:  pq CG)  Normalized central moments:  pq  Invariant to translation & scale  Invariant moments:  n  Invariant to translation, rotation, & scale  Only 7 of them in 2D  Equations are in the text  Problem: Sensitive to quantization & sampling 13

 Describe the boundary as a sequence of steps  Typically in 2D each step direction is coded with a number  Conventionally, traverse the boundary in the counter- clockwise direction  Useful for many things, including syntactic pattern recognition 14 Chain codes =

Fourier Descriptors  Traverse the boundary  Like for chain codes  But, take the FT of the sequence of boundary- point coordinates  In 2D, use regular FT with i = y-axis  Equivalences make invariance “easy”:  Translation = DC term  Scale = multiplication by a constant  Rotation about origin = phase shift  Problem: Quantization error 15

Medial Axis  I may revisit this in another lecture (if time allows)  For now:  Locus of the centers of the maximal bi-tangent circles/spheres/… 16

Deformable Templates  Represent a shape by the active contour that segments it  Deforming the contour deforms the shape  Two shapes are considered similar if the boundary of one can be “easily” deformed into the boundary of the other.  E.g., “easy” = small strain on the deformed curve and low energy required to deform the curve 17

Generalized Cylinders (GCs)  Fit a GC to a shape  This can be challenging  Get two descriptive functions:  Axis of the GC  A vector-valued function  Radius along the axis  Typically a scalar-valued function 18