How to completely extract the green pixels from this image?
Mostra commenti meno recenti
I have used this code to extract only the plant canopy.
inimage = imread('AA100401.jpg'); %// type uint8
mask = inimage(:,:,1)<inimage(:,:,2) & inimage(:,:,3)<inimage(:,:,2);
outimage = bsxfun(@times, inimage, uint8(mask));
figure, imshow(outimage),title ('Extracted image');
But while converting it into binary image, few pixels were missing. How to solve this issue
1 Commento
Mathieu NOE
il 8 Gen 2024
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Image Processing Toolbox in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
