How find the contour , record coordinate sequence and downsampled it .
Show older comments
Hi I have an image with some objects in it. I need to find this objects(done) and later 1.I need to find boundaries of this objects and save its coordinate sequence. 2.This coordinates(sequence of points) i would like to downsample into 40 points of roughly equal arc length.
In first point i tried bwtraceboundary,but i dont no have to work with coordinate sequences.
Thanks for help.
Answers (1)
Image Analyst
on 11 Aug 2013
0 votes
First use bwboundaries() instead of bwtraceboundary, then use John D'Errico's interparc: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A679 to do the subsampling into equal length sub-segments.
Categories
Find more on Image Processing Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!