Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You might want to consider Active Contours. This will give you a continous boundary of the object rather than patchy edges. </p> <p>Below are links to </p> <p>A book:</p> <p><a href="http://www.amazon.co.uk/Active-Contours-Application-Techniques-Statistics/dp/1447115570/ref=sr_1_fkmr2_1?ie=UTF8&amp;qid=1377248739&amp;sr=8-1-fkmr2&amp;keywords=Active+shape+models+Andrew+Blake%2C+Michael+Isard" rel="nofollow">http://www.amazon.co.uk/Active-Contours-Application-Techniques-Statistics/dp/1447115570/ref=sr_1_fkmr2_1?ie=UTF8&amp;qid=1377248739&amp;sr=8-1-fkmr2&amp;keywords=Active+shape+models+Andrew+Blake%2C+Michael+Isard</a></p> <p>A demo: <a href="http://users.ecs.soton.ac.uk/msn/book/new_demo/Snakes/" rel="nofollow">http://users.ecs.soton.ac.uk/msn/book/new_demo/Snakes/</a></p> <p>and some Matlab code on the File Exchange: <a href="http://www.mathworks.co.uk/matlabcentral/fileexchange/28149-snake-active-contour" rel="nofollow">http://www.mathworks.co.uk/matlabcentral/fileexchange/28149-snake-active-contour</a></p> <p>and a link to a description on how to implement it: <a href="http://www.cb.uu.se/~cris/blog/index.php/archives/217" rel="nofollow">http://www.cb.uu.se/~cris/blog/index.php/archives/217</a></p> <p>Using the implementation on the File Exchange, you can get something like this:</p> <pre><code>%% Load the image % You could use the segmented image obtained previously % and then apply the snake on that (although I use the original image). % This will probably make the snake work better and the edges % in your image is not that well defined. % Make sure the original and the segmented image % have the same size. They don't at the moment I = imread('33kew0g.jpg'); % Convert the image to double data type I = im2double(I); % Show the image and select some points with the mouse (at least 4) % figure, imshow(I); [y,x] = getpts; % I have pre-selected the coordinates already x = [ 525.8445 473.3837 413.4284 318.9989 212.5783 140.6320 62.6902 32.7125 55.1957 98.6633 164.6141 217.0749 317.5000 428.4172 494.3680 527.3434 561.8177 545.3300]; y = [ 435.9251 510.8691 570.8244 561.8311 570.8244 554.3367 476.3949 390.9586 311.5179 190.1085 113.6655 91.1823 98.6767 106.1711 142.1443 218.5872 296.5291 375.9698]; % Make an array with the selected coordinates P=[x(:) y(:)]; %% Start Snake Process % You probably have to fiddle with the parameters % a bit more that I have Options=struct; Options.Verbose=true; Options.Iterations=1000; Options.Delta = 0.02; Options.Alpha = 0.5; Options.Beta = 0.2; figure(1); [O,J]=Snake2D(I,P,Options); </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload