plotting 2 points
Show older comments
hey all !!! Can anyone please tell me the ways to plot points on the edge/boundary of an object from a segmented image.
i need to do further process with the result.
Answers (1)
David Young
on 27 Jan 2012
0 votes
If you have the Image Processing Toolbox, have a look at the edge() function. The associated demos will give you examples that you can adapt to your problem.
4 Comments
Aaditya
on 4 Feb 2012
David Young
on 4 Feb 2012
I am not sure what you mean by "without the need for specifying the x and y points". For more help, you'll have to explain more fully what you need to do.
Aaditya
on 7 Feb 2012
David Young
on 7 Feb 2012
Plotting is a graphical operation, but making measurements of chords is not. It's hard to understand what your goal is.
All the same, the output of the edge function would still seem a good place to start. What is wrong with it? Have you looked at the demos?
Here's a simple example of plotting the edge points, to get you started:
>> imshow(im);
>> e = edge(im, 'canny');
>> [y, x] = find(e);
>> imshow(im);
>> hold on; plot(x, y, '.'); hold off;
Categories
Find more on Color Segmentation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!