How to completely extract the green pixels from this image?
Show older comments
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 Comment
Mathieu NOE
on 8 Jan 2024
Accepted Answer
More Answers (0)
Categories
Find more on Image Processing Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!