why aren't black pixels appearing where the imfreehand contour was drawn?
Afficher commentaires plus anciens
Consider this:
imag = imread ('pout.tif');
figure, imshow (imag);
h = imfreehand (gca, 'Closed', false);
position = int16(getPosition(h));
for i=1:size(position,1)
imag([position(i,1),position(i,2)])=0;
%attempts to mark the positions on the contour as black
end
figure, imshow(imag); %%no changes shown, why?
What I'm missing here?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Display Image dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!