23 views

Uploaded by Alex Chen

Edge Thinning algorithm

save

- Matrix Chain-ASHWIN R THOTTUMKARA
- Stephens and Tomlin Unit - Final
- Fashion Design Elements and the Principals
- LibreOffice_Guide_11.pdf
- s3 weebly
- 33-4-artigo-9
- Distance
- v2 CI2541 Chappell
- task 9b 10
- gas pipe-1
- language elective
- Basic Shapes
- FE Modeler Part Meshes With ANSYS FE Modeler
- Cal51 How Do We Measure Distance Traveled
- Art Vocabulary
- Test2 - Solution
- Unit 1
- numeracytechfinallessonplan
- Toa 2 Module 1-3(1) 4a
- lesson plan miniunit 2
- Geometry in Primary School
- Elements and Principles of Landscaping
- Glass Characterization Deanna
- 52096223 Polygons Yati
- 3 Drawing Basic Shapes
- Design interventions for Orphan children to accomodate their psychological needs
- Report House Form and Culture
- Similarity
- 28378019 Digital Image Processing 2
- 3. Fuzzy Set Operation (1)
- MD Property Tax Petition Form
- Harry Edison - Wiki
- dlib doc
- 105350 Garr
- Consent to Receive Electronic Disclosures
- petitnrv
- Stereo Imaging
- Computer Simulation - Wiki
- Neat
- Mulgrew Miller - Wiki
- Lew Soloff Warm Up1
- T1map Seg Compact
- Milt Jackson - Wiki
- Control_Systems.pdf
- Freddie Hubbard - Wiki
- Improved Algorithms for Ear-clipping Triangulation
- Edge Detection
- Cache Algorithms
- Human Interface Guidelines v1.8.0
- Trumpet Wiki
- Flux
- How to Find Circle
- Precision (Computer Science)
- Histogram
- Image Segmentation
- Mathematical Statistics - Wiki
- Transformer
- Tritone
- Barry Harris - Wiki

You are on page 1of 35

(part 1)

Jason Rupard

CAP6400

Skeletonization Topic

• Introduction

• Medial-Axis Transform (MAT)

• Thinning

• Other Concepts

Introduction

• What is a skeleton?

– Opinion

• Do we know it?

• Skeleton

– Represents the shape of an object in a small

amount of pixels

Introduction • Can convey all information found in the original object – Position – Size – Orientation • These all help to characterize the object .

Introduction • Most techniques to extract a skeleton are based on Thinning – Most of these only differ performance wise – Rarely do they differ on how the skeleton is found or it quality .

Medial-Axis Transform • One of the first definitions for the skeleton – BLUM 1967 • Originally based on the concept of wave fronts • Different ways to accomplish – BLUM MAT – Distance Maps .

if there is more then one at this minimum distance – It’s a skeletal point .BLUM MAT • For any point P in the object – Locate the closest boundary point.

Distance Maps • Concept – Make an image in which its object’s pixels are colored based on their distance from the object’s boundary – Dark pixels are close to the object’s boundary – Light pixels are further away from the boundary .

Distance Maps • 3 ways to compute the distance – Euclidean Distance • Coordinates – City Block Distance • Up – Down : Left – Right 2 D = ( x2 − x1) − ( y2 − y1) 2 D = | x 2 − x1 | + | y 2 − y 1 | – Chessboard Distance • Any Direction (King Move) D = max(| x 2 − x1 |. | y 2 − y1 |) .

Distance Maps • Another way to compute the distance is to use morphology – Erosion – If foreground pixels match mask. origin is deleted • The distance map for that point gets the number of erosions before it was deleted . origin stays – Else.

we could apply two methods of finding the skeleton from it – Apply Laplacian Operator – Threshold to extract max values .Distance Maps • Once the map is obtained.

Distance Maps .

Distance Maps .

Final Output Using Laplacian Missing ONE pixel on its side A “perfect” T output .

Thinning • A form of morphology • Identifying those pixels belonging to a object that are essential for representing object’s shape • Stripping away outer pixels .

Thinning • Three things – Not all objects should be thinned – The same skeleton will not work for all situations • It depends on what you need in further processing – Thinning is not defined by the algorithm used • It identifies the skeleton .

Thinning: Iterative Morphological Methods • Stentiford 1983 • Use 3x3 templates – A match of the template means to delete the origin pixel .

If origin is not a endpoint and connectivity = 1. Repeat 1-3 for templates 2. 3. If any pixels are deleted. delete them 6. If any pixels marked for deletion. repeat process from step 1. mark for delete 3. otherwise stop .Thinning: Iterative Morphological Methods 1. and 4 5. Repeat 1 and 2 for all pixel locations matching template 1 4. Find location (i.j) in image who matches template 1 2.

Thinning: Iterative Morphological Methods • A pixel is an endpoint if it has only one neighbor • Checking connectivity because we don’t want to split an object into two .

7} Origin = N0 Nk = 1.3. ordered counterclockwise . if pixel is background Nk = 0.Connectivity Cn = ∑Nk − (Nk • Nk+1 • Nk+2 ) k∈S • • • • • S={1. if pixel is part of object N1 is to the right of the origin.5.

Part 2 • More Connectivity • Stentiford: Minimize Artifacts • Zhang-Suen Thinning • Holt Thinning – Holt staircase removal .

…. P3. 0 = background . P9.Connectivity • More Connectivity – Visit P2. P4. P8. P2 – Number of black-white(01) changes = Connectivity – 1 = object pixel.

Artifacts • Necking – Intersection of two lines • Tailing – Lines meeting at an acute angle • Projections – Rough images .

Stentiford: To Minimize Artifacts • A preprocess stage to minimize artifacts • Smoothing (projections) – Pass over all pixels • Delete current pixel if it has less than 3 object neighbors and Connectivity < 2 • Acute Angle Emphasis (necking) – Pixels near the joint between two lines are set to the background if they “plug up” an acute angle .

mark matches Else exit Delete Marked and exit . mark matches Else exit Delete all marked pixels If any deleted – – • Mark origin for delete if mask matches Run Through again but with masks D1 and U1 only.2.2.3) and U(1.3) only.Acute Angle Emphasis Di Ui • Run each mask through once – • • Delete all marked pixels If any deleted – – • • Run through again but with masks D(1.

j) is marked for deletion if ALL of the following 4 conditions are true 1.Zhang-Suen Thinning Algorithm • Fast and Simple – Can be parallelized – 2 subiterations • First subiteration: pixel I(i. P8 are background Delete Marked . P6 are background At least one of P4. • Its connectivity = 1 Has at least 2 object neighbors and not more than 6 At least one of P2. P6. 3. P4. 4. 2.

P4. P6. At least one of P2. P8 are background 4. P8 are background • Delete Marked • If at the end of any subiteration there are no pixels to be deleted.Zhang-Suen Thinning Algorithm • Second subiteration: same as first except rules 3 and 4 are changed 3. At least one of P2. the skeleton is complete .

Zhang-Suen Thinning Algorithm • First subiteration removes south or east boundary pixels or north-west corner pixels .

Zhang-Suen Thinning Algorithm • Second subiteration removes north or west boundary pixels or south-east corner pixels .

Holt Thinning • Pixel Survival: If condition true. pixel stays • First subiteration: v(C ) ∧ (¬edge(C ) ∨ (v( E ) ∧ v( S ) ∧ (v( N ) ∨ v(W )))) • Second subiteration v(C ) ∧ (¬edge(C ) ∨ (v(W ) ∧ v( N ) ∧ (v( S ) ∨ v( E )))) .

Holt Thinning • Holt comes up with one subiteration if edge information about neighbors is made available v(C ) ∧ (¬edge(C ) ∨ (edge( E ) ∧ v( N ) ∧ v( S )) ∨ (edge( S ) ∧ v(W ) ∧ v( E )) ∨ (edge( E ) ∧ edge( SE ) ∧ edge( S ))) .

Holt Thinning • North-West Bias • Pixel on west edge is kept if it is not on a corner and its east neighbor is on a edge (vertical 2-stroke) edge( E ) ∧ v( N ) ∧ v( S ) • Pixel on north edge is kept if it is not on a corner and its south neighbor is on a edge (horizontal 2-stroke) edge( S ) ∧ v(W ) ∧ v( E ) • Pixel is kept if it is part of a 2x2 square edge( E ) ∧ edge( SE ) ∧ edge( S ) .

and W .Holt Staircase Removal • To make sure a hole is not create – One of the unknown side neighbors must be 0 • Side Neighbors: N. E. S.

Side Notes • Holt is faster then Zhang-Suen • Zhang-Suen gives a better skeleton • Parker: – Stentiford’s Preprocessing – Zhang-Suen’s Thinning Algorithm – Holt’s staircase removal Postprocessing .

March 1984 • http://www.Reference • Algorithms for Image Processing and Computer Vision – J.ac. R. An improved parallel thinning algorithm. Y.236-239. Holt .uk/~fstentif/Thinning. v. Y. 1987 • T. Ronald H.27 n.ucl. Parker • Christopher M. Suen.30 n. Zhang .156160. Communications of the ACM.ee. Maurice Clint . Perrott. p. Feb. v.3. Alan Stewart . Communications of the ACM.pdf . p.2. A fast parallel algorithm for thinning digital patterns. C.

- Matrix Chain-ASHWIN R THOTTUMKARAUploaded byASHWIN THOTTUMKARA
- Stephens and Tomlin Unit - FinalUploaded byKasey
- Fashion Design Elements and the PrincipalsUploaded byWarsi A Raju
- LibreOffice_Guide_11.pdfUploaded byNeuer Family
- s3 weeblyUploaded byapi-376088771
- 33-4-artigo-9Uploaded byJulia Diaz
- DistanceUploaded byMurali Krishna Velaveti
- v2 CI2541 ChappellUploaded byAbdelkrim Jomaa
- task 9b 10Uploaded byapi-350645010
- gas pipe-1Uploaded byapi-291798456
- language electiveUploaded byapi-298508575
- Basic ShapesUploaded byTai Wing Chan
- FE Modeler Part Meshes With ANSYS FE ModelerUploaded bymilanstr
- Cal51 How Do We Measure Distance TraveledUploaded bymarchelo_chelo
- Art VocabularyUploaded bySeth Schreiber
- Test2 - SolutionUploaded byRyan Harris
- Unit 1Uploaded bycooooool1927
- numeracytechfinallessonplanUploaded byapi-302393999
- Toa 2 Module 1-3(1) 4aUploaded byLeo Gonzales Calayag
- lesson plan miniunit 2Uploaded byapi-328213035
- Geometry in Primary SchoolUploaded byInvisible People
- Elements and Principles of LandscapingUploaded byAbiyah Idrees
- Glass Characterization DeannaUploaded byKatelyn MacDonald
- 52096223 Polygons YatiUploaded by凝嫣
- 3 Drawing Basic ShapesUploaded bychepimanca
- Design interventions for Orphan children to accomodate their psychological needsUploaded byDevvrat Chowdhary
- Report House Form and CultureUploaded bySandra Milena Carrasco Mansilla
- SimilarityUploaded byBrian
- 28378019 Digital Image Processing 2Uploaded byPothipogu Rajasekhar
- 3. Fuzzy Set Operation (1)Uploaded byIlham Romadhona

- MD Property Tax Petition FormUploaded byAlex Chen
- Harry Edison - WikiUploaded byAlex Chen
- dlib docUploaded byAlex Chen
- 105350 GarrUploaded byAlex Chen
- Consent to Receive Electronic DisclosuresUploaded byAlex Chen
- petitnrvUploaded byAlex Chen
- Stereo ImagingUploaded byAlex Chen
- Computer Simulation - WikiUploaded byAlex Chen
- NeatUploaded byAlex Chen
- Mulgrew Miller - WikiUploaded byAlex Chen
- Lew Soloff Warm Up1Uploaded byAlex Chen
- T1map Seg CompactUploaded byAlex Chen
- Milt Jackson - WikiUploaded byAlex Chen
- Control_Systems.pdfUploaded byAlex Chen
- Freddie Hubbard - WikiUploaded byAlex Chen
- Improved Algorithms for Ear-clipping TriangulationUploaded byAlex Chen
- Edge DetectionUploaded byAlex Chen
- Cache AlgorithmsUploaded byAlex Chen
- Human Interface Guidelines v1.8.0Uploaded byAlex Chen
- Trumpet WikiUploaded byAlex Chen
- FluxUploaded byAlex Chen
- How to Find CircleUploaded byAlex Chen
- Precision (Computer Science)Uploaded byAlex Chen
- HistogramUploaded byAlex Chen
- Image SegmentationUploaded byAlex Chen
- Mathematical Statistics - WikiUploaded byAlex Chen
- TransformerUploaded byAlex Chen
- TritoneUploaded byAlex Chen
- Barry Harris - WikiUploaded byAlex Chen