contour following in binary images

the function finds the contour pixels in a bw image.. the object is assumed to be white.
2K Downloads
Updated 23 Feb 2009

No License

[knew,m,n]=contour_b_trial_2(a,row,col)
knew=contour image
m=contour background pixels
n=contour object pixels

ch=contour_code_2(m)
ch=contour code

[k8,m8]=eightneighbour(k,n)
k8=contour image containing eight neighbourhood
m8=contour pixels

[k4,m4]=fourneighbour2(k,n)
k4=contour image containing four neighbourhood
m4=contour pixels

press pause after each plot to continue

Cite As

rajjan thakur (2024). contour following in binary images (https://www.mathworks.com/matlabcentral/fileexchange/23056-contour-following-in-binary-images), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R12.1
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Contour Plots in Help Center and MATLAB Answers
Acknowledgements

Inspired by: Contour Parameterization

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.2.0.0

minor changes

1.1.0.0

function calling format

1.0.0.0