Implementation of Snake Algorithmm for finding contours of Hand
8 次查看(过去 30 天)
显示 更早的评论
I am following a research paper in which contour of hand is determined as shown in Figure 4.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/156284/image.png)
In this paper, snakes were used to perform segmentation. A snake can be defined as an energy-minimizing spline guided by external restraining forces and influenced by image forces, which tends to localize it in features such as lines and edges. It is therefore an active contour that evolves dynamically relevant to the contours of the image. The snake is represented as a parametric curve by r(s) = (x(s),y(s)), with s(0, 1). Its functional energy can be expressed as:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/156285/image.png)
Where Eint represents the internal energy of the snake, Eimg image forces and Eres external restraining forces.
Can you help in coding for this?
This is the image whose contours I need to find.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/156289/image.jpeg)
4 个评论
Walter Roberson
2014-2-7
Asking how to proceed is an algorithms or theory question, not a MATLAB question.
采纳的回答
Image Analyst
2014-2-6
See my activecontour demo, attached. It will find the hand.
16 个评论
Amy Phan
2017-4-2
I tried this code but I'm not receiving any outline for my image. This is the outcome:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/183923/image.png)
The image I'm using is an MRI image and I'm trying to use the snake method to outline the heart but I'm having issues with the thresholding. Any suggestions?
更多回答(2 个)
snehal jaipurkar
2017-11-22
Sir how to save the segmented image after applying snake model in Matlab?????
snehal jaipurkar
2017-11-22
And also I want to create a mask of the segmented image by putting the segmented part with intensity 1 and the rest of the part as zero. So how can I do that... Please please tell as soon as possible. Thanks alot in advance.
1 个评论
Image Analyst
2017-11-22
My code does that. It's the "bw" in this line of code:
bw = activecontour(grayImage, mask, 400, 'edge');
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!