![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/177684/image.png)
Repeat snake processing (loop) on the same image in order to detect several features
2 次查看(过去 30 天)
显示 更早的评论
Hello,
I have tested the snake (active contour) algorithm from Chenyang Xu and Jerry L. Prince (<http://www.iacl.ece.jhu.edu/static/gvf/>) in order to extract feature border. It works very well.
However, I did it only on a single sample extracted from a bigger image which contains hundred features (as you can see below).
![](/matlabcentral/answers/uploaded_files/34071/Sans%20titre-1.jpg)
How can I repeat this process automatically to the whole image and thus, obtain the contour of every feature? For information, I already have the center coordinates for all features.
Thanks, Rémi
0 个评论
回答(1 个)
Ashish Uthama
2015-7-13
I used part of your image with some simple preprocessing
imcomplement(rgb2gray(cropped image))
To get:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/177684/image.png)
2 个评论
Ashish Uthama
2015-7-15
Do note - I just used some defaults. I was not certain I understood what features you were looking to isolate, the point was just to show you that this app might help you get started in the right direction.
I can imagine doing some simple morphological post-processing to isolate the roundish structures.
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!