How to get the x and y points of a contour?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
%this is the following code which creates a contour for the circle image %now i want the x and y points of that contour
- I = imread('circle.jpg');
- figure
- imshow(I)
- hold on;
- mask = false(size(I));
- mask(60:320,40:300) = true;
- Display the initial contour on the original image in blue.
- contour(mask,[0 0],'b');
0 commentaires
Réponses (1)
the cyclist
le 21 Mar 2014
"[C,h] = contour(...) returns a contour matrix, C, that contains the data that defines the contour lines, and a handle, h, to a contourgroup object. The clabel function uses contour matrix C to label the contour lines. ContourMatrix is also a read-only contourgroup property that you can obtain from the returned handle."
1 commentaire
Image Analyst
le 21 Mar 2014
We can't run this. Just attach your m-file and image. Make it easy for us to help you, not hard!
Voir également
Catégories
En savoir plus sur Contour Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!