Digital Image Processing

Slides:



Advertisements
Similar presentations
Representation and Description
Advertisements

電腦視覺 Computer and Robot Vision I
November 12, 2013Computer Vision Lecture 12: Texture 1Signature Another popular method of representing shape is called the signature. In order to compute.
Document Image Processing
Course Syllabus 1.Color 2.Camera models, camera calibration 3.Advanced image pre-processing Line detection Corner detection Maximally stable extremal regions.
Chapter 8 Content-Based Image Retrieval. Query By Keyword: Some textual attributes (keywords) should be maintained for each image. The image can be indexed.
Digital Image Processing
Chapter 9: Morphological Image Processing
Informationsteknologi Wednesday, November 7, 2007Computer Graphics - Class 51 Today’s class Geometric objects and transformations.
Course Syllabus 1.Color 2.Camera models, camera calibration 3.Advanced image pre-processing Line detection Corner detection Maximally stable extremal regions.
Each pixel is 0 or 1, background or foreground Image processing to
November 4, 2014Computer Vision Lecture 15: Shape Representation II 1Signature Another popular method of representing shape is called the signature. In.
Lectures 10&11: Representation and description
Chapter 11 Representation and Description. Preview Representing a region involves two choices: In terms of its external characteristics (its boundary)
E.G.M. PetrakisBinary Image Processing1 Binary Image Analysis Segmentation produces homogenous regions –each region has uniform gray-level –each region.
November 29, 2004AI: Chapter 24: Perception1 Artificial Intelligence Chapter 24: Perception Michael Scherger Department of Computer Science Kent State.
DIGITAL IMAGE PROCESSING
Introduction --Classification Shape ContourRegion Structural Syntactic Graph Tree Model-driven Data-driven Perimeter Compactness Eccentricity.
Lecture 19 Representation and description II
Machine Vision for Robots
8D040 Basis beeldverwerking Feature Extraction Anna Vilanova i Bartrolí Biomedical Image Analysis Group bmia.bmt.tue.nl.
October 14, 2014Computer Vision Lecture 11: Image Segmentation I 1Contours How should we represent contours? A good contour representation should meet.
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
Lecture 5. Morphological Image Processing. 10/6/20152 Introduction ► ► Morphology: a branch of biology that deals with the form and structure of animals.
Recap CSC508.
Chapter 9.  Mathematical morphology: ◦ A useful tool for extracting image components in the representation of region shape.  Boundaries, skeletons,
8D040 Basis beeldverwerking Feature Extraction Anna Vilanova i Bartrolí Biomedical Image Analysis Group bmia.bmt.tue.nl.
Intelligent Vision Systems ENT 496 Object Shape Identification and Representation Hema C.R. Lecture 7.
Digital Image Processing CSC331
Digital Image Processing Chapter 9: Morphological Image Processing 5 September 2007 Digital Image Processing Chapter 9: Morphological Image Processing.
Digital Image Processing CCS331 Relationships of Pixel 1.
Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.
Chapter 10 Image Segmentation.
Introduction Image geometry studies rotation, translation, scaling, distortion, etc. Image topology studies, e.g., (i) the number of occurrences.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Representation & Description.
Representation and Description Selim Aksoy Department of Computer Engineering Bilkent University
Introduction --Classification Shape ContourRegion Structural Syntactic Graph Tree Model-driven Data-driven Perimeter Compactness Eccentricity.
主講人 : 張緯德 1.  Image segmentation ◦ ex: edge-based, region-based  Image representation ◦ ex: Chain code, polygonal approximation signatures, skeletons.
Digital Media Dr. Jim Rowan ITEC So far… We have compared bitmapped graphics and vector graphics We have discussed bitmapped images, some file formats.
Last update Heejune Ahn, SeoulTech
Content-Based Image Retrieval QBIC Homepage The State Hermitage Museum db2www/qbicSearch.mac/qbic?selLang=English.
References Books: Chapter 11, Image Processing, Analysis, and Machine Vision, Sonka et al Chapter 9, Digital Image Processing, Gonzalez & Woods.
Nottingham Image Analysis School, 23 – 25 June NITS Image Segmentation Guoping Qiu School of Computer Science, University of Nottingham
1 Mathematic Morphology used to extract image components that are useful in the representation and description of region shape, such as boundaries extraction.
1 Overview representing region in 2 ways in terms of its external characteristics (its boundary)  focus on shape characteristics in terms of its internal.
Morphological Image Processing Robotics. 2/22/2016Introduction to Machine Vision Remember from Lecture 12: GRAY LEVEL THRESHOLDING Objects Set threshold.
Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 11 Representation and.
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.
Lecture(s) 3-4. Morphological Image Processing. 3/13/20162 Introduction ► ► Morphology: a branch of biology that deals with the form and structure of.
Chapter 6 Skeleton & Morphological Operation. Image Processing for Pattern Recognition Feature Extraction Acquisition Preprocessing Classification Post.
 After an image has been segmented into regions by methods such as those discussed in image segmentation chapter, the segmented pixels usually are represented.
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.
Materi 09 Analisis Citra dan Visi Komputer Representasi and Deskripsi 1.
Image Representation and Description – Representation Schemes
Medical Image Analysis
IT472: Digital Image Processing
Digital Image Processing Lecture 20: Representation & Description
Materi 10 Analisis Citra dan Visi Komputer
Representation and Description
Mean Shift Segmentation
CS Digital Image Processing Lecture 5
Binary Image processing بهمن 92
Computer and Robot Vision I
Representation and Description
Digital Image Processing Lecture 21: Principal Components for Description Prof. Charlene Tsai *Chapter 11.4 of Gonzalez.
Representation and Description
Fourier Transform of Boundaries
Example: x vectors could be point values in several spectral bands (channels)
Digital Image Processing, 3rd ed.
Presentation transcript:

Digital Image Processing Chapter 11: Image Description and Representation 12 September 2007

Image Representation and Description? Objective: To represent and describe information embedded in an image in other forms that are more suitable than the image itself. Benefits: - Easier to understand - Require fewer memory, faster to be processed - More “ready to be used” What kind of information we can use? - Boundary, shape - Region - Texture - Relation between regions

Shape Representation by Using Chain Codes Why we focus on a boundary? The boundary is a good representation of an object shape and also requires a few memory. Chain codes: represent an object boundary by a connected sequence of straight line segments of specified length and direction. 4-directional chain code 8-directional chain code (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.

Examples of Chain Codes Object boundary (resampling) Boundary vertices 4-directional chain code 8-directional chain code (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.

The First Difference of a Chain Codes Problem of a chain code: a chain code sequence depends on a starting point. Solution: treat a chain code as a circular sequence and redefine the starting point so that the resulting sequence of numbers forms an integer of minimum magnitude. The first difference of a chain code: counting the number of direction change (in counterclockwise) between 2 adjacent elements of the code. Example: Chain code : The first difference 0  1 1 0  2 2 0  3 3 2  3 1 2  0 2 2  1 3 Example: - a chain code: 10103322 - The first difference = 3133030 - Treating a chain code as a circular sequence, we get the first difference = 33133030 1 2 3 The first difference is rotational invariant.

Polygon Approximation Represent an object boundary by a polygon Minimum perimeter polygon Object boundary Minimum perimeter polygon consists of line segments that minimize distances between boundary pixels. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.

Polygon Approximation:Splitting Techniques 1. Find the line joining two extreme points 0. Object boundary 2. Find the farthest points from the line 3. Draw a polygon (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.

Distance-Versus-Angle Signatures Represent an 2-D object boundary in term of a 1-D function of radial distance with respect to q. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.

Concept: Partitioning an object boundary by using vertices Boundary Segments Concept: Partitioning an object boundary by using vertices of a convex hull. Partitioned boundary Convex hull (gray color) Object boundary (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.

Input : A set of points on a cornea boundary Convex Hull Algorithm Input : A set of points on a cornea boundary Output: A set of points on a boundary of a convex hull of a cornea 1. Sort the points by x-coordinate to get a sequence p1, p2, … ,pn For the upper side of a convex hull 2. Put the points p1 and p2 in a list Lupper with p1 as the first point 3. For i = 3 to n 4. Do append pi to Lupper 5. While Lupper contains more than 2 points and the last 3 points in Lupper do not make a right turn 6. Do delete the middle point of the last 3 points from Lupper Turn Left NOK! Turn Right OK! Turn Right OK!

For the lower side of a convex hull Convex Hull Algorithm (cont.) For the lower side of a convex hull 7. Put the points pn and pn-1 in a list Llower with pn as the first point 8. For i = n-2 down to 1 9. Do append pi to Llower While Llower contains more than 2 points and the last 3 points in Llower do not make a right turn Do delete the middle point of the last 3 points from Llower 12. Remove the first and the last points from Llower 13. Append Llower to Lupper resulting in the list L 14. Return L Turn Right OK! Turn Right OK! Turn Left NOK!

Obtained from thinning or skeletonizing processes Skeletons Obtained from thinning or skeletonizing processes Medial axes (dash lines) (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.

Thinning Algorithm Concept: 1. Do not remove end points 2. Do not break connectivity 3. Do not cause excessive erosion Apply only to contour pixels: pixels “1” having at least one of its 8 neighbor pixels valued “0” Notation: p2 p9 p3 p8 p7 p1 p4 p6 p5 Neighborhood arrangement for the thinning algorithm Let = Example Let 1 p1 T(p1) = the number of transition 0-1 in the ordered sequence p2, p3, … , p8, p9, p2. N(p1) = 4 T(p1) = 3

Thinning Algorithm (cont.) Step 1. Mark pixels for deletion if the following conditions are true. a) b) T(p1) =1 c) d) p2 p9 p3 p8 p7 p1 p4 p6 p5 (Apply to all border pixels) Step 2. Delete marked pixels and go to Step 3. Step 3. Mark pixels for deletion if the following conditions are true. a) b) T(p1) =1 c) d) (Apply to all border pixels) Step 4. Delete marked pixels and repeat Step 1 until no change occurs.

Example: Skeletons Obtained from the Thinning Alg. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.

Boundary Descriptors 1. Simple boundary descriptors: we can use - Length of the boundary - The size of smallest circle or box that can totally enclosing the object 2. Shape number 3. Fourier descriptor 4. Statistical moments

Shape Number 1 Shape number of the boundary definition: 2 3 Shape number of the boundary definition: the first difference of smallest magnitude The order n of the shape number: the number of digits in the sequence (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.

Shape Number (cont.) Shape numbers of order 4, 6 and 8 (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.

Example: Shape Number 2. Find the smallest rectangle that fits the shape 1. Original boundary Chain code: 0 0 0 0 3 0 0 3 2 2 3 2 2 2 1 2 1 1 First difference: 3 0 0 0 3 1 0 3 3 0 1 3 0 0 3 1 3 0 Shape No. 0 0 0 3 1 0 3 3 0 1 3 0 0 3 1 3 0 3 4. Find the nearest Grid. 3. Create grid (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.

Fourier Descriptor Fourier descriptor: view a coordinate (x,y) as a complex number (x = real part and y = imaginary part) then apply the Fourier transform to a sequence of boundary points. Let s(k) be a coordinate of a boundary point k : Fourier descriptor : Reconstruction formula Boundary points (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.

Example: Fourier Descriptor Examples of reconstruction from Fourier descriptors P is the number of Fourier coefficients used to reconstruct the boundary (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.

Fourier Descriptor Properties Some properties of Fourier descriptors (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.

Statistical Moments Definition: the nth moment Example of moment: The first moment = mean The second moment = variance where Boundary segment 1D graph Convert a boundary segment into 1D graph View a 1D graph as a PDF function Compute the nth order moment of the graph (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.

Regional Descriptors Purpose: to describe regions or “areas” 1. Some simple regional descriptors - area of the region - length of the boundary (perimeter) of the region - Compactness where A(R) and P(R) = area and perimeter of region R Example: a circle is the most compact shape with C = 1/4p 2. Topological Descriptors 3. Texture 4. Moments of 2D Functions

Example: Regional Descriptors White pixels represent “light of the cities” % of white pixels Region no. compared to the total white pixels 20.4% 64.0% 4.9% 10.7% Infrared image of America at night (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.

Topological Descriptors Use to describe holes and connected components of the region Euler number (E): C = the number of connected components H = the number of holes (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.

Topological Descriptors (cont.) Euler Formula V = the number of vertices Q = the number of edges F = the number of faces E = -2 (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.

Example: Topological Descriptors Original image: Infrared image Of Washington D.C. area After intensity Thresholding (1591 connected components with 39 holes) Euler no. = 1552 The largest connected area (8479 Pixels) (Hudson river) After thinning (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.

Texture Descriptors Purpose: to describe “texture” of the region. Examples: optical microscope images: B C A Superconductor (smooth texture) Cholesterol (coarse texture) Microprocessor (regular texture) (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.

Statistical Approaches for Texture Descriptors We can use statistical moments computed from an image histogram: z = intensity p(z) = PDF or histogram of z where Example: The 2nd moment = variance  measure “smoothness” The 3rd moment  measure “skewness” The 4th moment  measure “uniformity” (flatness) A B C (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.

Fourier Approach for Texture Descriptor Concept: convert 2D spectrum into 1D graphs Original image Fourier coefficient image Divide into areas by angles FFT2D +FFTSHIFT Divide into areas by radius Sum all pixels in each area Sum all pixels in each area

Fourier Approach for Texture Descriptor Original image 2D Spectrum (Fourier Tr.) S(r) S(q) Another image Another S(q) (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.

Moments of Two-D Functions The moment of order p + q The central moments of order p + q

Invariant Moments of Two-D Functions The normalized central moments of order p + q where Invariant moments: independent of rotation, translation, scaling, and reflection

Example: Invariant Moments of Two-D Functions 3. Mirrored 1. Original image 2. Half size 4. Rotated 2 degree 5. Rotated 45 degree (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.

Example: Invariant Moments of Two-D Functions Invariant moments of images in the previous slide Invariant moments are independent of rotation, translation, scaling, and reflection (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.

Principal Components for Description Purpose: to reduce dimensionality of a vector image while maintaining information as much as possible. Let Mean: Covariance matrix

Hotelling transformation Let Where A is created from eigenvectors of Cx as follows Row 1 contain the 1st eigenvector with the largest eigenvalue. Row 2 contain the 2nd eigenvector with the 2nd largest eigenvalue. …. Then we get and Then elements of are uncorrelated. The component of y with the largest l is called the principal component.

Eigenvector and Eigenvalue Eigenvector and eigenvalue of Matrix C are defined as Let C be a matrix of size NxN and e be a vector of size Nx1. If Where l is a constant We call e as an eigenvector and l as eigenvalue of C

Example: Principal Components 6 spectral images from an airborne Scanner. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.

Example: Principal Components (cont.) Component l 3210 931.4 118.5 83.88 64.00 13.40 (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.

Example: Principal Components (cont.) Original image After Hotelling transform

Principal Components for Description (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.

Relational Descriptors (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.

Relational Descriptors (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.

Relational Descriptors (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.

Relational Descriptors (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.

Relational Descriptors (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.

Structural Approach for Texture Descriptor (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.