fill a particular blob with black
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Elysi Cochin
il 27 Gen 2017
Risposto: Takuji Fukumoto
il 27 Gen 2017
i segment and get a binary image with "n" number of blobs, Suppose i want to fill a particular blob with black and save it as image 2... how to do it...
for k = 4 : 4
thisBlobsBoundingBox = blobMeasurements(k).BoundingBox;
bw = labeledImage == k;
end
what should i do to the bw... please reply
0 Commenti
Risposta accettata
Takuji Fukumoto
il 27 Gen 2017
Please try this.
L = bwlabel(BW);
[r,c] = find(L == 4);
BW(r,c) = 0;
figure,imshow(BW)
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Image Processing Toolbox in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!