How to find the neighbourhood of a pixel
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
How to find a particular pixel and the neighbourhood of it?
0 commentaires
Réponses (1)
Andrei Bobrov
le 4 Sep 2012
Modifié(e) : Andrei Bobrov
le 4 Sep 2012
try this code (need have Image Processing Toolbox)
I = rand(10) > .9 % initial array
out = imdilate(I,ones(3)) - I;
OR
out = bwmorph(I,'dilate')-I
OR
out = bwdist(I,'chessboard') == 1;
0 commentaires
Voir également
Catégories
En savoir plus sur Image Processing Toolbox dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!