SlideShare a Scribd company logo
1 of 19
1
Image
Representation
Introduction
• After an image is segmented into regions; the resulting
aggregate of segmented pixels is represented & described for
further computer processing.
• Representing a region involves two choices:
 in terms of its external characteristics
(boundary)
 in terms of its internal characteristics
(pixels comprising the region)
• Above scheme is only part of task of making data useful to
computer.
• Next task is to Describe the region based on representation.
• Ex. A region may be represented by its boundary & its boundary is
described by features such as its length, the orientation of straight line
joining its extreme points & number of concavities in the boundary.
2
Introduction
Q. Which to choose when?
• External representation is chosen when primary focus is on
shape characteristics.
• Internal representation is chosen when primary focus is on
regional properties such as color & texture.
• Sometimes it is necessary to choose both representations.
3
Representation
• It deals with compaction of segmented data into
representations that facilitate the computation of descriptors.
1) Boundary (Border) Following:
Most of the algorithms require that points in the boundary of a
region be ordered in a clockwise (or counterclockwise)
direction.
We assume
i) we work with binary images with object and background
represented as 1 & 0 respectively.
ii) Images are padded with borders of 0s to eliminate the
possibility of object merging with image border.
4
Representation
1) Let the starting point b0 be the uppermost, leftmost point in
the image. c0 the west neighbor of b0. Examine 8 neighbors
of b0 starting at c0 & proceed in clockwise direction.
1 1 1 1
1 1
1 1
1 1
1 1 1 1
Let b1 denote first neighbor encountered with value 1 & c1 be
background point immediately preceding b1 in the sequence.
5
Representation
2) Let b = b1 & c = c1
3) Let the 8-neighbors of b, starting at c & proceeding in
clockwise directions be denoted by n1, n2, …..n8. Find first nk
labeled 1.
4) Let b = nk & c = nk-1
c
c0 b0 1 1 1 b 1 1
1 1 1 1
1 1 1 1
1 1 1 1
1 1 1 1 1 1 1 1
6
Representation
2) Let b = b1 & c = c1
3) Let the 8-neighbors of b, starting at c & proceeding in
clockwise directions be denoted by n1, n2, …..n8. Find first nk
labeled 1.
4) Let b = nk & c = nk-1
c
b0 1 b 1 b 1 1
1 1 1 1
1 1 1 1
1 1 1 1
1 1 1 1 1 1 1 1
7
Representation
5) Repeat step 3 & 4 until b = b0 & next boundary point found is
b1. The sequence of b points found when the algorithm stops
constitutes the set of ordered boundary points.
The algorithm is also called as Moore boundary Tracking
algorithm.
Representation
2) Chain codes:
They are used to represent a boundary by a connected sequence
of straight line segments of specified length & direction.
Typically this representation is based on 4- or 8-connectivity of
segments.
The direction of each segment is coded by using a numbering
scheme.
1 3 2 1
2 0 4 0
3 5 6 7
9
Representation
• A boundary code formed as a sequence of such directional
numbers is referred to as a Freeman chain code.
• Digital images are acquired & processed in a grid format with
equal spacing in x and y directions.
• So a chain code can be generated by following a boundary
(say clockwise direction) and assigning a direction to the
segments connecting every pair of pixels.
Unacceptable method: (because)
1) Resulting chain tends to be quite long
2) Any small disturbances along the boundary due to noise or
imperfect segmentation can cause changes in code.
10
Representation
11
0033333323221211101101
076666553321212
Representation
• A solution to this problem is to resample the boundary by
selecting a larger grid spacing.
• Then, as the boundary is traversed, a boundary point is
assigned to each node of the large grid, depending upon the
proximity of original boundary to that node.
• The re-sampled boundary can now be represented by a 4- or
8-code.
• The accuracy of the resulting code representation depends
on the spacing of the sampling grid.
12
Representation
3) Polygon Approximation using Min. Perimeter Polygons:
• A digital boundary can be approximated with arbitrary
accuracy by a polygon.
• For a closed boundary, approx becomes exact when no. of
segments of polygon = no. of points in the boundary.
• Goal of poly. Approx is to capture the essence of the shape in
a given boundary using fewest no. of segments.
• Min. Perimeter Polygon (MPP):
– An approach for generating an algorithm to compute MPPs is
to enclose a boundary by a set of concatenated cells.
– Think boundary as a r u b b e r b a n d .
– As allowed to shrink, it will be constrained by the inner & outer
walls of the bounding regions.
13
14
Representation
• This shrinking produces the shape of a polygon of min.
perimeter.
• Size of cells determine the accuracy of the polygonal
approximation.
• In the limit if size of each cell corresponds to a pixel in the
boundary , the error in each cell between the boundary &
the MPP approx. at most would be √2d, where d-min
possible pixel distance.
15
Representation
• The objective is to use the largest possible cell size
acceptable in a given application.
• Thus, producing MPPs with fewest no. of vertices.
• The cellular approach reduces the shape of the object
enclosed by the original boundary to the area circumscribed
by the gray wall.
• Fig. shows shape in dark gray.
• Its boundary consists of 4-connected straight line segments.
16
Representation
• If we traverse the boundary in counter clockwise direction.
• Every turn encountered in the transversal will be either a
convex (white) or concave(black) vertex, with the angle of
vertex being an interior angle of the 4-connected boundary.
• Every concave vertex has a corresponding mirror vertex in
light gray wall, located diagonally opposite.
• MPP vertices coincide with the convex vertices of inner wall
and mirror concave vertices of outer wall.
17
18
19
Thank You

More Related Content

What's hot

Digital Image Fundamentals
Digital Image FundamentalsDigital Image Fundamentals
Digital Image FundamentalsA B Shinde
 
Image enhancement
Image enhancementImage enhancement
Image enhancementAyaelshiwi
 
Image Representation & Descriptors
Image Representation & DescriptorsImage Representation & Descriptors
Image Representation & DescriptorsPundrikPatel
 
Image Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain FiltersImage Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain FiltersSuhaila Afzana
 
Chapter 9 morphological image processing
Chapter 9   morphological image processingChapter 9   morphological image processing
Chapter 9 morphological image processingAhmed Daoud
 
Interpixel redundancy
Interpixel redundancyInterpixel redundancy
Interpixel redundancyNaveen Kumar
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial DomainA B Shinde
 
Bit plane slicing
Bit plane slicingBit plane slicing
Bit plane slicingAsad Ali
 
Image filtering in Digital image processing
Image filtering in Digital image processingImage filtering in Digital image processing
Image filtering in Digital image processingAbinaya B
 
Image Restoration
Image RestorationImage Restoration
Image RestorationPoonam Seth
 
Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)asodariyabhavesh
 
Chapter 9 morphological image processing
Chapter 9 morphological image processingChapter 9 morphological image processing
Chapter 9 morphological image processingasodariyabhavesh
 

What's hot (20)

image compression ppt
image compression pptimage compression ppt
image compression ppt
 
Image compression
Image compressionImage compression
Image compression
 
Digital Image Fundamentals
Digital Image FundamentalsDigital Image Fundamentals
Digital Image Fundamentals
 
Shape Features
 Shape Features  Shape Features
Shape Features
 
Image Sensing & Acquisition
Image Sensing & AcquisitionImage Sensing & Acquisition
Image Sensing & Acquisition
 
Image enhancement
Image enhancementImage enhancement
Image enhancement
 
Image Representation & Descriptors
Image Representation & DescriptorsImage Representation & Descriptors
Image Representation & Descriptors
 
Image Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain FiltersImage Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain Filters
 
Chapter 9 morphological image processing
Chapter 9   morphological image processingChapter 9   morphological image processing
Chapter 9 morphological image processing
 
Interpixel redundancy
Interpixel redundancyInterpixel redundancy
Interpixel redundancy
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial Domain
 
Digital Image Processing
Digital Image ProcessingDigital Image Processing
Digital Image Processing
 
Image compression .
Image compression .Image compression .
Image compression .
 
JPEG Image Compression
JPEG Image CompressionJPEG Image Compression
JPEG Image Compression
 
Bit plane slicing
Bit plane slicingBit plane slicing
Bit plane slicing
 
Image filtering in Digital image processing
Image filtering in Digital image processingImage filtering in Digital image processing
Image filtering in Digital image processing
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 
Image Restoration
Image RestorationImage Restoration
Image Restoration
 
Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)
 
Chapter 9 morphological image processing
Chapter 9 morphological image processingChapter 9 morphological image processing
Chapter 9 morphological image processing
 

Similar to Image region representation techniques

47549379 paper-on-image-processing
47549379 paper-on-image-processing47549379 paper-on-image-processing
47549379 paper-on-image-processingmaisali4
 
Open GL T0074 56 sm3
Open GL T0074 56 sm3Open GL T0074 56 sm3
Open GL T0074 56 sm3Roziq Bahtiar
 
Two Dimensional Shape and Texture Quantification - Medical Image Processing
Two Dimensional Shape and Texture Quantification - Medical Image ProcessingTwo Dimensional Shape and Texture Quantification - Medical Image Processing
Two Dimensional Shape and Texture Quantification - Medical Image ProcessingChamod Mune
 
Anti aliasing,area sampling,koch curve and c curve
Anti aliasing,area sampling,koch curve and c curveAnti aliasing,area sampling,koch curve and c curve
Anti aliasing,area sampling,koch curve and c curvePallab Kumar Nandi
 
ImageSegmentation (1).ppt
ImageSegmentation (1).pptImageSegmentation (1).ppt
ImageSegmentation (1).pptNoorUlHaq47
 
ImageSegmentation.ppt
ImageSegmentation.pptImageSegmentation.ppt
ImageSegmentation.pptAVUDAI1
 
ImageSegmentation.ppt
ImageSegmentation.pptImageSegmentation.ppt
ImageSegmentation.pptDEEPUKUMARR
 
notes_Image Compression_edited.ppt
notes_Image Compression_edited.pptnotes_Image Compression_edited.ppt
notes_Image Compression_edited.pptHarisMasood20
 
Microstrip Transmission line On HFSS , all reports S parameters , impedance ,...
Microstrip Transmission line On HFSS , all reports S parameters , impedance ,...Microstrip Transmission line On HFSS , all reports S parameters , impedance ,...
Microstrip Transmission line On HFSS , all reports S parameters , impedance ,...santhosh katravath
 

Similar to Image region representation techniques (20)

representation.pptx
representation.pptxrepresentation.pptx
representation.pptx
 
47549379 paper-on-image-processing
47549379 paper-on-image-processing47549379 paper-on-image-processing
47549379 paper-on-image-processing
 
testpang
testpangtestpang
testpang
 
1516 contouring
1516 contouring1516 contouring
1516 contouring
 
Open GL T0074 56 sm3
Open GL T0074 56 sm3Open GL T0074 56 sm3
Open GL T0074 56 sm3
 
Representation image
Representation imageRepresentation image
Representation image
 
Floor planning ppt
Floor planning pptFloor planning ppt
Floor planning ppt
 
Two Dimensional Shape and Texture Quantification - Medical Image Processing
Two Dimensional Shape and Texture Quantification - Medical Image ProcessingTwo Dimensional Shape and Texture Quantification - Medical Image Processing
Two Dimensional Shape and Texture Quantification - Medical Image Processing
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 
Anti aliasing,area sampling,koch curve and c curve
Anti aliasing,area sampling,koch curve and c curveAnti aliasing,area sampling,koch curve and c curve
Anti aliasing,area sampling,koch curve and c curve
 
ImageSegmentation (1).ppt
ImageSegmentation (1).pptImageSegmentation (1).ppt
ImageSegmentation (1).ppt
 
ImageSegmentation.ppt
ImageSegmentation.pptImageSegmentation.ppt
ImageSegmentation.ppt
 
ImageSegmentation.ppt
ImageSegmentation.pptImageSegmentation.ppt
ImageSegmentation.ppt
 
Chain code in dip
Chain code in dipChain code in dip
Chain code in dip
 
notes_Image Compression_edited.ppt
notes_Image Compression_edited.pptnotes_Image Compression_edited.ppt
notes_Image Compression_edited.ppt
 
Clipping
ClippingClipping
Clipping
 
CNN_AH.pptx
CNN_AH.pptxCNN_AH.pptx
CNN_AH.pptx
 
CNN_AH.pptx
CNN_AH.pptxCNN_AH.pptx
CNN_AH.pptx
 
Microstrip Transmission line On HFSS , all reports S parameters , impedance ,...
Microstrip Transmission line On HFSS , all reports S parameters , impedance ,...Microstrip Transmission line On HFSS , all reports S parameters , impedance ,...
Microstrip Transmission line On HFSS , all reports S parameters , impedance ,...
 
attribute.pptx
attribute.pptxattribute.pptx
attribute.pptx
 

Recently uploaded

WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 

Recently uploaded (20)

WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 

Image region representation techniques

  • 2. Introduction • After an image is segmented into regions; the resulting aggregate of segmented pixels is represented & described for further computer processing. • Representing a region involves two choices:  in terms of its external characteristics (boundary)  in terms of its internal characteristics (pixels comprising the region) • Above scheme is only part of task of making data useful to computer. • Next task is to Describe the region based on representation. • Ex. A region may be represented by its boundary & its boundary is described by features such as its length, the orientation of straight line joining its extreme points & number of concavities in the boundary. 2
  • 3. Introduction Q. Which to choose when? • External representation is chosen when primary focus is on shape characteristics. • Internal representation is chosen when primary focus is on regional properties such as color & texture. • Sometimes it is necessary to choose both representations. 3
  • 4. Representation • It deals with compaction of segmented data into representations that facilitate the computation of descriptors. 1) Boundary (Border) Following: Most of the algorithms require that points in the boundary of a region be ordered in a clockwise (or counterclockwise) direction. We assume i) we work with binary images with object and background represented as 1 & 0 respectively. ii) Images are padded with borders of 0s to eliminate the possibility of object merging with image border. 4
  • 5. Representation 1) Let the starting point b0 be the uppermost, leftmost point in the image. c0 the west neighbor of b0. Examine 8 neighbors of b0 starting at c0 & proceed in clockwise direction. 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Let b1 denote first neighbor encountered with value 1 & c1 be background point immediately preceding b1 in the sequence. 5
  • 6. Representation 2) Let b = b1 & c = c1 3) Let the 8-neighbors of b, starting at c & proceeding in clockwise directions be denoted by n1, n2, …..n8. Find first nk labeled 1. 4) Let b = nk & c = nk-1 c c0 b0 1 1 1 b 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 6
  • 7. Representation 2) Let b = b1 & c = c1 3) Let the 8-neighbors of b, starting at c & proceeding in clockwise directions be denoted by n1, n2, …..n8. Find first nk labeled 1. 4) Let b = nk & c = nk-1 c b0 1 b 1 b 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 7
  • 8. Representation 5) Repeat step 3 & 4 until b = b0 & next boundary point found is b1. The sequence of b points found when the algorithm stops constitutes the set of ordered boundary points. The algorithm is also called as Moore boundary Tracking algorithm.
  • 9. Representation 2) Chain codes: They are used to represent a boundary by a connected sequence of straight line segments of specified length & direction. Typically this representation is based on 4- or 8-connectivity of segments. The direction of each segment is coded by using a numbering scheme. 1 3 2 1 2 0 4 0 3 5 6 7 9
  • 10. Representation • A boundary code formed as a sequence of such directional numbers is referred to as a Freeman chain code. • Digital images are acquired & processed in a grid format with equal spacing in x and y directions. • So a chain code can be generated by following a boundary (say clockwise direction) and assigning a direction to the segments connecting every pair of pixels. Unacceptable method: (because) 1) Resulting chain tends to be quite long 2) Any small disturbances along the boundary due to noise or imperfect segmentation can cause changes in code. 10
  • 12. Representation • A solution to this problem is to resample the boundary by selecting a larger grid spacing. • Then, as the boundary is traversed, a boundary point is assigned to each node of the large grid, depending upon the proximity of original boundary to that node. • The re-sampled boundary can now be represented by a 4- or 8-code. • The accuracy of the resulting code representation depends on the spacing of the sampling grid. 12
  • 13. Representation 3) Polygon Approximation using Min. Perimeter Polygons: • A digital boundary can be approximated with arbitrary accuracy by a polygon. • For a closed boundary, approx becomes exact when no. of segments of polygon = no. of points in the boundary. • Goal of poly. Approx is to capture the essence of the shape in a given boundary using fewest no. of segments. • Min. Perimeter Polygon (MPP): – An approach for generating an algorithm to compute MPPs is to enclose a boundary by a set of concatenated cells. – Think boundary as a r u b b e r b a n d . – As allowed to shrink, it will be constrained by the inner & outer walls of the bounding regions. 13
  • 14. 14
  • 15. Representation • This shrinking produces the shape of a polygon of min. perimeter. • Size of cells determine the accuracy of the polygonal approximation. • In the limit if size of each cell corresponds to a pixel in the boundary , the error in each cell between the boundary & the MPP approx. at most would be √2d, where d-min possible pixel distance. 15
  • 16. Representation • The objective is to use the largest possible cell size acceptable in a given application. • Thus, producing MPPs with fewest no. of vertices. • The cellular approach reduces the shape of the object enclosed by the original boundary to the area circumscribed by the gray wall. • Fig. shows shape in dark gray. • Its boundary consists of 4-connected straight line segments. 16
  • 17. Representation • If we traverse the boundary in counter clockwise direction. • Every turn encountered in the transversal will be either a convex (white) or concave(black) vertex, with the angle of vertex being an interior angle of the 4-connected boundary. • Every concave vertex has a corresponding mirror vertex in light gray wall, located diagonally opposite. • MPP vertices coincide with the convex vertices of inner wall and mirror concave vertices of outer wall. 17
  • 18. 18