670 likes | 837 Views
8D040 Basis beeldverwerking Feature Extraction. Anna Vilanova i Bartrol í Biomedical Image Analysis Group bmia.bmt.tue.nl. N=M=30. What is an image?. Image is a 2D rectilinear array of pixels (picture element). N=M=256. Binary Image L=1 (1 bit). L=3 (2 bits). L=15(4 bits).
E N D
8D040 Basis beeldverwerkingFeature Extraction Anna Vilanova i Bartrolí Biomedical Image Analysis Group bmia.bmt.tue.nl
N=M=30 What is an image? Image is a 2D rectilinear array of pixels (picture element) N=M=256
Binary Image L=1 (1 bit) L=3 (2 bits) L=15(4 bits) L=255 (8 bits) What is an image? No continuous values - Quantization 8 170 15 255
An image is just 2D? No! – It can be in any dimension Example 3D: Voxel-Volume Element
Segmentation VERY DIFFICULT
Why feature extraction ? Reduction of dimensionality Pixel level Image of 256x256 and 8 bits 256 65536 ~ 10 157826 possible images
Incorporation of cues from human perception Transcendence of the limits of human perception The need for invariance Why feature extraction ?
How do we transform an image? How do we know which Q belongs to P? We transform a point P How do we transform an image f(P)?
How do we transform an image? How do we know which Q belongs to P? We know T which is the transformation we want to achieve. How do we transform an image f(P)?
Feature Characteristics • Invariance (e.g., Rotation, Translation) • Robust (minimum dependence on) • Noise, artifacts, intrinsic variations • User parameter settings • Quantitative measures
We extract features from… Segmented Objects Region of Interest
Features Texture Based (Image & ROI) Shape (Segmented objects) Classification
Shape Based Features • Object based • Topology based (Euler Number) • Effective Diameter (similarity to a circle to a box) • Circularity • Compactness • Projections • Moments (derived by Hu 1962) • …
Adjacency and Connectivity – 2D 4-neighbourhood of 8-neighbourhood of • Notation: k-Neighbourhood of is
6-neighbourhood 18-neighbourhood 26-neighbourhood Adjacency and Connectivity – 3D
Objects or Components (Jordan Theorem) In 2D – (8,4) or (4,8)-connectivity In 3D – (6,26)-,(26,6)-,(18,6)- or (6,18)-connectivity
Connected Components Labeling Each object gets a different label
Connected Components Labeling B Raster Scan C A Note: We want to label A. Assuming objects are 4-connected B, C are already labeled. Cortesy of S. Narasimhan
Connected Components Labeling X 0 X 0 0 1 label(A) = new label label(A) = “background” 0 C 1 label(A) = label(C) label(A) = label(B) B B If label(B) = label(C) then, label(A) = label(B) 0 1 C 1 Cortesy of S. Narasimhan
Connected Components Labeling B What if label(B) not equal to label(C)? C 1
Connected Components Labeling Each object gets a different label
Features Texture Based (Image & ROI) Shape (Segmented objects) Classification
Topology based – Euler Number Euler Number E describes topology. C is # connected components H is # of holes.
Euler Number 3D E=1+0-1=0 E=1+0-1=0 E=1+1-0=2 • Euler Number E describes topology. • Cis # connected components • Cav is # of cavities • G is # of genus
Euler Number 3D E=2+0-0=2 E=1+1-0=2 • Euler Number E describes topology. • Cis # connected components • Cav is # of cavities • G is # of genus
3D Euler Number • The Euler Number in 3D can be computed with local operations • Counting number of vertices, edges and faces of the surfaces of the objects
Simple Shape Measurements • 2D area - 3D volume • Summing elements • 2D perimeter - 3D surface area • Selection of border elements • Sum of elemets with weights • Error of precision
Similarity to other Shape • Effective Diameter • Circularity (Circle C=1) • Compactness – (Actually non-compactness)(Circle Comp= )
Moments • Definition • Order of a moment is • Moments identify an object uniquely • ?is the Area • Centroid
Central Moments Moments invariant to position Invariant to scaling
Moments to Define Shape and Orientation Inertia Tensor
Eigenanalysis of a Matrix • Given a matrixS, we solve the following equation • we find the eigenvectors and eigenvalues • Eigenvectors and eigenvalues go in couples an usually are ordered as follows:
Eigenanalysis of the Inertia Matrix Eigenanalysis Sphere Flatness Elongated
Eigenanalysis of the Inertia Matrix Eigenanalysis Sphere Flatness Elongated
Orientation in 2D • Using similar concepts than 3D • Covariance or Inertia Matrix • Eigenanalysis we obtain 2 eigenvalues and 2 eigenvectors of the ellipse
Moments Invariance • Translation • Central moments are invariant • Rotation • Eigenvalues of Inertia Matrix are invariant • Scaling • If moment scaled by (3D) (2D)
Moments invariant rotation-translation-scaling • For 3D three moments (Sadjadi 1980) For 2D seven moments
Features Texture Based (Image & ROI) Shape (Segmented objects) Classification
Image Based Features Gonzalez & Woods – Digital Image Processing Chapter 11 – 11.3.3 Texture • Using all pixels individually • Histogram based features • Statistical Moments (Mean, variance, smoothness) • Energy • Entropy • Max-Min of the histogram • Median • Co-occurrance Matrix
Histogram P(bi) bi L=9
Histogram Features • Mean • Central Moments
Histogram Features • Mean • Variance • Relative Smoothness • Skewness
Histogram Features Energy (Uniformity) Entropy