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 (2026). contour following in binary images (https://uk.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

Version Published Release Notes
1.2.0.0

minor changes

1.1.0.0

function calling format

1.0.0.0