How to find the neighbourhood of a pixel
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
How to find a particular pixel and the neighbourhood of it?
0 Commenti
Risposte (1)
Andrei Bobrov
il 4 Set 2012
Modificato: Andrei Bobrov
il 4 Set 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 Commenti
Vedere anche
Categorie
Scopri di più su Image Processing Toolbox in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!