borders of simple image
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Jakub
le 4 Nov 2013
Réponse apportée : Image Analyst
le 4 Nov 2013
I have this image, ploted with pcolor:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/152828/image.bmp)
How come that if i want to plot only borders it doesnt work?
bwmorph(Im,'remove')
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/152829/image.bmp)
The border on the top is missing...
0 commentaires
Réponse acceptée
Image Analyst
le 4 Nov 2013
pcolor() does not display the entire image. This is a known "feature" that I've been warning people about for years. Notice that you have only 19 by 19 pixels, not 20x20. Use imshow() instead. I recommend never using pcolor to look at regular, normal, rectangular images.
0 commentaires
Plus de réponses (1)
Sean de Wolski
le 4 Nov 2013
Can you please provide full reproduction steps? Repeating these steps below does not reproduce this behavior:
SE = strel('disk',10);
BW = SE.getnhood;
subplot(121)
imshow(BW);
BWr = bwmorph(BW,'remove');
subplot(122)
imshow(BWr)
0 commentaires
Voir également
Catégories
En savoir plus sur Read, Write, and Modify Image 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!