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

Similar documents
Lecture 15 Active Shape Models

Lecture 6 Linear Processing. ch. 5 of Machine Vision by Wesley E. Snyder & Hairong Qi. Spring (CMU RI) : BioE 2630 (Pitt)

All images are degraded

Lecture 10 Segmentation, Part II (ch 8) Active Contours (Snakes) ch. 8 of Machine Vision by Wesley E. Snyder & Hairong Qi

Lecture 12 Level Sets & Parametric Transforms. sec & ch. 11 of Machine Vision by Wesley E. Snyder & Hairong Qi

Lecture 13 Theory of Registration. ch. 10 of Insight into Images edited by Terry Yoo, et al. Spring (CMU RI) : BioE 2630 (Pitt)

Registration: Rigid vs. Deformable

Digital Image Processing Chapter 11: Image Description and Representation

Lecture 8 Object Descriptors

The Pipeline. Lecture 17 ITK Pipeline. The pipeline idea. Image sources. Image to image filters. Input and output

Lecture 09 Segmentation (ch 8) ch. 8 of Machine Vision by Wesley E. Snyder & Hairong Qi. Dr. John Galeo3. Into connected regions

What are advanced filters? Lecture 19 Write Your Own ITK Filters, Part2. Different output size. Details, details. Changing the input requested region

Lecture 10: Image Descriptors and Representation

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

CoE4TN4 Image Processing

Feature Extraction and Image Processing, 2 nd Edition. Contents. Preface

Machine vision. Summary # 6: Shape descriptors

Basic Algorithms for Digital Image Analysis: a course

EECS490: Digital Image Processing. Lecture #23

Chapter 11 Representation & Description

COSC579: Scene Geometry. Jeremy Bolton, PhD Assistant Teaching Professor

Topic 6 Representation and Description

EE 584 MACHINE VISION

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

Chapter 3 Image Registration. Chapter 3 Image Registration

Practical Image and Video Processing Using MATLAB

2/7/18. For more info/gory detail. Lecture 8 Registration with ITK. Transform types. What is registration? Registration in ITK

Shape description and modelling

Review for the Final

CS4670: Computer Vision

Chapter 11 Representation & Description

Digital Image Processing Fundamentals

Image Processing. Image Features

Goals for this lecture. Lecture 4 Getting Started with ITK! Getting help. Assignments. Assignments, cont. Grading of assignments

CHAPTER 1 Introduction 1. CHAPTER 2 Images, Sampling and Frequency Domain Processing 37

Lecture 18 Representation and description I. 2. Boundary descriptors

CSE 252B: Computer Vision II

4 Parametrization of closed curves and surfaces

Shape Classification and Cell Movement in 3D Matrix Tutorial (Part I)

Number/Computation. addend Any number being added. digit Any one of the ten symbols: 0, 1, 2, 3, 4, 5, 6, 7, 8, or 9

Su et al. Shape Descriptors - III

Recognition: Face Recognition. Linda Shapiro EE/CSE 576

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

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

Colorado School of Mines. Computer Vision. Professor William Hoff Dept of Electrical Engineering &Computer Science.

Camera Models and Image Formation. Srikumar Ramalingam School of Computing University of Utah

Camera Model and Calibration

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

Computer Vision I - Filtering and Feature detection

Camera Models and Image Formation. Srikumar Ramalingam School of Computing University of Utah

Announcements. Recognition I. Gradient Space (p,q) What is the reflectance map?

COMPUTER AND ROBOT VISION

Lecture 6: Multimedia Information Retrieval Dr. Jian Zhang

Digital Image Processing

Edge and local feature detection - 2. Importance of edge detection in computer vision

Image and Multidimensional Signal Processing

Robot vision review. Martin Jagersand

CS6670: Computer Vision

P1 REVISION EXERCISE: 1

Matching and Recognition in 3D. Based on slides by Tom Funkhouser and Misha Kazhdan

Application of Geometry Rectification to Deformed Characters Recognition Liqun Wang1, a * and Honghui Fan2

Geometric Transformations

Outline 7/2/201011/6/

CS 534: Computer Vision Segmentation and Perceptual Grouping

Motion Analysis. Motion analysis. Now we will talk about. Differential Motion Analysis. Motion analysis. Difference Pictures

Learning-based Neuroimage Registration

CS6670: Computer Vision

Ulrik Söderström 21 Feb Representation and description

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

Requirements for region detection

2D and 3D Transformations AUI Course Denbigh Starkey

Recap. Disclaimer. Goals for this lecture. C++ vs. Python. Reference & Review Material

Corner Detection. GV12/3072 Image Processing.

Mosaics. Today s Readings

Image warping , , Computational Photography Fall 2017, Lecture 10

Calypso Construction Features. Construction Features 1

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

Lecture 3: Camera Calibration, DLT, SVD

Polygonal representation of 3D urban terrain point-cloud data

Image Coding with Active Appearance Models

Course Number: Course Title: Geometry

2: Image Display and Digital Images. EE547 Computer Vision: Lecture Slides. 2: Digital Images. 1. Introduction: EE547 Computer Vision

4.2 Description of surfaces by spherical harmonic functions

Types of Edges. Why Edge Detection? Types of Edges. Edge Detection. Gradient. Edge Detection

Math background. 2D Geometric Transformations. Implicit representations. Explicit representations. Read: CS 4620 Lecture 6

Image processing and features

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

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

Finite Element Methods for the Poisson Equation and its Applications

242 KHEDR & AWAD, Mat. Sci. Res. India, Vol. 8(2), (2011), y 2

Mrs. Daniel s Geometry Vocab List

ECEN 447 Digital Image Processing

Exponential Maps for Computer Vision

2D/3D Geometric Transformations and Scene Graphs

CSE 152 Lecture 7. Intro Computer Vision

3D Models and Matching

Computer Vision. Recap: Smoothing with a Gaussian. Recap: Effect of σ on derivatives. Computer Science Tripos Part II. Dr Christopher Town

Computer Vision I Name : CSE 252A, Fall 2012 Student ID : David Kriegman Assignment #1. (Due date: 10/23/2012) x P. = z

For each question, indicate whether the statement is true or false by circling T or F, respectively.

Counting Particles or Cells Using IMAQ Vision

Transcription:

Lecture 14 Shape ch. 9, sec. 1-8, 12-14 of Machine Vision by Wesley E. Snyder & Hairong Qi Spring 2018 16-725 (CMU RI) : BioE 2630 (Pitt) Dr. John Galeotti The content of these slides by John Galeotti, 2012-2018 Carnegie Mellon University (CMU), was made possible in part by NIH NLM contract# HHSN276201000580P, and is licensed under a Creative Commons Attribution-NonCommercial 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc/3.0/ 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 emailing itk@galeotti.net. The most recent version of these slides may be accessed online via http://itk.galeotti.net/ 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 1

Shape Analysis Segmentation (Pixel labeling from object differentiation) Image Understanding (By means of shape analysis) How can I quantify the shape of this object? What, physically, is this segmented object? Does it look normal? 3 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 2

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 Coordinates Zoom of point 1 in Affine shape S skew different scaling in different directions Perspective lines stay straight, but not parallel Coordinates of point 3 in shape S 6 3

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 4

PCA (K-L Expansion) y y b 2 b 1 x x 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 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 y Easy to compute: Number of holes x Triangle similarity (ratio of side lengths to P) * Perimeter has several definitions; some are trivial to compute 10 5

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 x y * Perimeter has several definitions; some are difficult to compute 11 Shape Analysis in (Simple)ITK SimpleITK s LabelShapeStatisticsImageFilter: http://www.itk.org/simpleitkdoxygen/html/classitk_1_1 simple_1_1labelshapestatisticsimagefilter.html Underlying ITK Filter & Data Classes: http://www.itk.org/doxygen/html/classitk_1_1labelima getoshapelabelmapfilter.html http://www.itk.org/doxygen/html/classitk_1_1shapelab elobject.html C++ ITK Example: http://www.itk.org/doxygen/html/wikiexamples_2imag eprocessing_2shapeattributes_8cxx-example.html 12 6

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 13 Moments Easy to calculate Sequence of derivation: Moments: m pq = x p y q f(x,y) Central moments: µ pq (origin @ CG) Normalized central moments: h pq Invariant to translation & scale Invariant moments: j n Invariant to translation, rotation, & scale Only 7 of them in 2D Equations are in the text Problem: Sensitive to quantization & sampling 14 7

Chain codes 4 3 2 5 0 1 6 7 8 =312318781 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 counterclockwise direction Useful for many things, including syntactic pattern recognition 15 Fourier Descriptors Traverse the boundary Like for chain codes But, take the FT of the sequence of boundarypoint 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 16 8

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/ 17 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 18 9

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 19 10