Digital Image Processing, 2nd ed. www.imageprocessingbook.com © 2002 R. C. Gonzalez & R. E. Woods Representation & Description.

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.
Chapter 3 Image Enhancement in the Spatial Domain.
Document Image Processing
Computer Vision Lecture 16: Region Representation
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.
EE 7730 Image Segmentation.
Processing Digital Images. Filtering Analysis –Recognition Transmission.
Segmentation Divide the image into segments. Each segment:
Lectures 10&11: Representation and description
Information that lets you recognise a region.
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.
DIGITAL IMAGE PROCESSING
Introduction --Classification Shape ContourRegion Structural Syntactic Graph Tree Model-driven Data-driven Perimeter Compactness Eccentricity.
October 8, 2013Computer Vision Lecture 11: The Hough Transform 1 Fitting Curve Models to Edges Most contours can be well described by combining several.
Curve Modeling Bézier Curves
Digital Image Processing
Lecture 19 Representation and description II
Chapter 3: Central Tendency. Central Tendency In general terms, central tendency is a statistical measure that determines a single value that accurately.
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.
Analysis of shape Biomedical Image processing course, Yevhen Hlushchuk and Jukka Parviainen.
OBJECT RECOGNITION. The next step in Robot Vision is the Object Recognition. This problem is accomplished using the extracted feature information. The.
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
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.
CS 6825: Binary Image Processing – binary blob metrics
ENT 273 Object Recognition and Feature Detection Hema C.R.
Intelligent Vision Systems ENT 496 Object Shape Identification and Representation Hema C.R. Lecture 7.
Digital Image Processing CSC331
Chapter 10 Image Segmentation.
EECS 274 Computer Vision Segmentation by Clustering II.
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.
Ch5 Image Restoration CS446 Instructor: Nada ALZaben.
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities Prof. Charlene Tsai.
CS654: Digital Image Analysis Lecture 36: Feature Extraction and Analysis.
Course 8 Contours. Def: edge list ---- ordered set of edge point or fragments. Def: contour ---- an edge list or expression that is used to represent.
Image Registration Advanced DIP Project
1 Frequency Distributions. 2 After collecting data, the first task for a researcher is to organize and simplify the data so that it is possible to get.
1 Overview representing region in 2 ways in terms of its external characteristics (its boundary)  focus on shape characteristics in terms of its internal.
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities May 2, 2005 Prof. Charlene Tsai.
Image Segmentation Nitin Rane. Image Segmentation Introduction Thresholding Region Splitting Region Labeling Statistical Region Description Application.
Instructor: Mircea Nicolescu Lecture 5 CS 485 / 685 Computer Vision.
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.
 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
Texture.
Digital Image Processing Lecture 20: Representation & Description
COMP 9517 Computer Vision Segmentation 7/2/2018 COMP 9517 S2, 2017.
Materi 10 Analisis Citra dan Visi Komputer
Representation and Description
Mean Shift Segmentation
Slope and Curvature Density Functions
Fitting Curve Models to Edges
Computer Vision Lecture 16: Texture II
Representation and Description
Representation and Description
Digital Image Processing, 3rd ed.
Feature descriptors and matching
Presentation transcript:

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Representation & Description

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Overview representing region in 2 ways –in terms of its external characteristics (its boundary)  focus on shape characteristics –in terms of its internal characteristics (its region)  focus on regional properties, e.g., color, texture sometimes, we may need to use both ways

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Overview Description describes the region based on the chosen representation ex. –representation  boundary –description  length of the boundary, orientation of the straight line joining its extreme points, and the number of concavities in the boundary.

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods as insensitive asfeature selected as descriptors should be as insensitive as possible to variations in –size –translation –rotation following descriptors satisfy one or more of these properties. Sensitivity

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Representation Segmentation techniques yield raw data in the form of pixels along a boundary or pixels contained in a region these data sometimes are used directly to obtain descriptors standard uses techniques to compute more useful data (descriptors) from the raw data in order to decrease the size of data.

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chain codes: represent a boundary of a connected region. Representation

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chain Codes

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chain Codes unacceptable because –the resulting chain of codes tends to be quite long –any small disturbances along the boundary due to noise or imperfect segmentation cause changes in the code that may not be related to the shape of the boundary

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chain Codes Solve the problems by –resample the boundary by selecting a larger grid spacing –however, different grid can generate different chain codes starting point is arbitrary

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Representation Polygonal Approximations Representation Polygonal Approximations Polygonal approximations: to represent a boundary by straight line segments, and a closed path becomes a polygon. The number of straight line segments used determines the accuracy of the approximation. Only the minimum required number of sides necessary to preserve the needed shape information should be used (Minimum perimeter polygons). A larger number of sides will only add noise to the model.

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Representation Polygonal Approximations Representation Polygonal Approximations Minimum perimeter polygons: (Merging and splitting) –Merging and splitting are often used together to ensure that vertices appear where they would naturally in the boundary. –A least squares criterion to a straight line is used to stop the processing.

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Representation Polygonal Approximations Representation Polygonal Approximations 1.find the major axis 2.find minor axes which perpendicular to major axis and has distance greater than a threshold 3.repeat until we can’t split anymore

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods The idea behind a signature is to convert a two dimensional boundary into a representative one dimensional function. Representation Signature Representation Signature

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Signatures are invariant to location, but will depend on rotation and scaling. –Starting at the point farthest from the reference point or using the major axis of the region can be used to decrease dependence on rotation. –Scale invariance can be achieved by either scaling the signature function to fixed amplitude or by dividing the function values by the standard deviation of the function. Representation Signature Representation Signature

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Representation Boundary Segments Representation Boundary Segments Boundary segments: decompose a boundary into segments. Use of the convex hull of the region enclosed by the boundary is a powerful tool for robust decomposition of the boundary.

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Representation Skeletons Representation Skeletons Skeletons: produce a one pixel wide graph that has the same basic shape of the region, like a stick figure of a human. It can be used to analyze the geometric structure of a region which has bumps and “arms”.

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Representation Skeletons Representation Skeletons Before a thinning algorithm: –A contour point is any pixel with value 1 and having at least one 8-neighbor valued 0. –Let

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Representation Skeletons Representation Skeletons Step 1: Flag a contour point p 1 for deletion if the following conditions are satisfied

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Representation Skeletons Representation Skeletons Step 2: Flag a contour point p 1 for deletion again. However, conditions (a) and (b) remain the same, but conditions (c) and (d) are changed to

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Representation Skeletons Representation Skeletons A thinning algorithm: –(1) applying step 1 to flag border points for deletion –(2) deleting the flagged points –(3) applying step 2 to flag the remaining border points for deletion –(4) deleting the flagged points –This procedure is applied iteratively until no further points are deleted.

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods One application of skeletonization is for character recognition. A letter or character is determined by the center-line of its strokes, and is unrelated to the width of the stroke lines. Representation Skeletons: Example Representation Skeletons: Example

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Boundary Descriptors There are several simple geometric measures that can be useful for describing a boundary. –The length of a boundary: the number of pixels along a boundary gives a rough approximation of its length. –Curvature: the rate of change of slope To measure a curvature accurately at a point in a digital boundary is difficult The difference between the slops of adjacent boundary segments is used as a descriptor of curvature at the point of intersection of segments

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Boundary Descriptors length of a boundary diameters eccentricity shape numbers

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Length of a boundary the number of pixels along a boundary give a rough approximation of its length

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Diameters D is a distance measure p i and p j are points on the boundary B

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Eccentricity ratio of the major to the minor axis major axis = the line connecting the two extreme points that comprise the diameter minor axis = the line perpendicular to the major axis

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Boundary Descriptors Fourier Descriptors Boundary Descriptors Fourier Descriptors This is a way of using the Fourier transform to analyze the shape of a boundary. –The x-y coordinates of the boundary are treated as the real and imaginary parts of a complex number. –Then the list of coordinates is Fourier transformed using the DFT (chapter 4). –The Fourier coefficients are called the Fourier descriptors. –The basic shape of the region is determined by the first several coefficients, which represent lower frequencies. –Higher frequency terms provide information on the fine detail of the boundary.

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Boundary Descriptors Fourier Descriptors Boundary Descriptors Fourier Descriptors

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Boundary Descriptors Statistical Moments Boundary Descriptors Statistical Moments Moments are statistical measures of data. –They come in integer orders. –Order 0 is just the number of points in the data. –Order 1 is the sum and is used to find the average. –Order 2 is related to the variance, and order 3 to the skew of the data. –Higher orders can also be used, but don’t have simple meanings.

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Boundary Descriptors Statistical Moments Boundary Descriptors Statistical Moments Let r be a random variable, and g(r i ) be normalized (as the probability of value r i occurring), then the moments are

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Regional Descriptors Some simple descriptors –The area of a region: the number of pixels in the region –The perimeter of a region: the length of its boundary –The compactness of a region: (perimeter) 2 /area –The mean and median of the gray levels –The minimum and maximum gray-level values –The number of pixels with values above and below the mean

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Regional Descriptors Example Regional Descriptors Example

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Regional Descriptors Topological Descriptors Regional Descriptors Topological Descriptors Topological property 1: the number of holes (H) Topological property 2: the number of connected components (C)

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Regional Descriptors Topological Descriptors Regional Descriptors Topological Descriptors Topological property 3: Euler number: the number of connected components subtract the number of holes E = C - H E=0 E= -1

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Regional Descriptors Topological Descriptors Regional Descriptors Topological Descriptors Topological property 4: the largest connected component.

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Regional Descriptors Texture Regional Descriptors Texture

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Regional Descriptors Texture Regional Descriptors Texture Texture is usually defined as the smoothness or roughness of a surface. In computer vision, it is the visual appearance of the uniformity or lack of uniformity of brightness and color. There are two types of texture: random and regular. –Random texture cannot be exactly described by words or equations; it must be described statistically. The surface of a pile of dirt or rocks of many sizes would be random. –Regular texture can be described by words or equations or repeating pattern primitives. Clothes are frequently made with regularly repeating patterns. –Random texture is analyzed by statistical methods. –Regular texture is analyzed by structural or spectral (Fourier) methods.

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Regional Descriptors Statistical Approaches Regional Descriptors Statistical Approaches Let z be a random variable denoting gray levels and let p(z i ), i=0,1,…,L-1, be the corresponding histogram, where L is the number of distinct gray levels. –The nth moment of z: –The measure R: –The uniformity: –The average entropy:

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Regional Descriptors Statistical Approaches Regional Descriptors Statistical Approaches Smooth Coarse Regular

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Regional Descriptors Structural Approaches Regional Descriptors Structural Approaches Structural concepts: –Suppose that we have a rule of the form S→aS, which indicates that the symbol S may be rewritten as aS. –If a represents a circle [Fig (a)] and the meaning of “circle to the right” is assigned to a string of the form aaaa… [Fig (b)].

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Regional Descriptors Spectral Approaches Regional Descriptors Spectral Approaches For non-random primitive spatial patterns, the 2-dimensional Fourier transform allows the patterns to be analyzed in terms of spatial frequency components and direction. It may be more useful to express the spectrum in terms of polar coordinates, which directly give direction as well as frequency. Let is the spectrum function, and r and are the variables in this coordinate system. –For each direction, may be considered a 1-D function. –For each frequency r, is a 1-D function. –A global description:

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Regional Descriptors Spectral Approaches Regional Descriptors Spectral Approaches

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Regional Descriptors Spectral Approaches Regional Descriptors Spectral Approaches

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Regional Descriptors Moments of Two-Dimensional Functions Regional Descriptors Moments of Two-Dimensional Functions For a 2-D continuous function f(x,y), the moment of order (p+q) is defined as The central moments are defined as

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Regional Descriptors Moments of Two-Dimensional Functions Regional Descriptors Moments of Two-Dimensional Functions If f(x,y) is a digital image, then The central moments of order up to 3 are

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Regional Descriptors Moments of Two-Dimensional Functions Regional Descriptors Moments of Two-Dimensional Functions The central moments of order up to 3 are

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Regional Descriptors Moments of Two-Dimensional Functions Regional Descriptors Moments of Two-Dimensional Functions The normalized central moments are defined as

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Regional Descriptors Moments of Two-Dimensional Functions Regional Descriptors Moments of Two-Dimensional Functions A seven invariant moments can be derived from the second and third moments:

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Regional Descriptors Moments of Two-Dimensional Functions Regional Descriptors Moments of Two-Dimensional Functions This set of moments is invariant to translation, rotation, and scale change.

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Regional Descriptors Moments of Two-Dimensional Functions Regional Descriptors Moments of Two-Dimensional Functions

Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Table 11.3 Moment invariants for the images in Figs (a)-(e). Regional Descriptors Moments of Two-Dimensional Functions Regional Descriptors Moments of Two-Dimensional Functions