How to find the neighbourhood of a pixel
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
How to find a particular pixel and the neighbourhood of it?
0 Kommentare
Antworten (1)
Andrei Bobrov
am 4 Sep. 2012
Bearbeitet: Andrei Bobrov
am 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 Kommentare
Siehe auch
Kategorien
Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!