how can i extract only this green region ?
1 次查看(过去 30 天)
显示 更早的评论
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/166039/image.jpeg)
I want to extract those region which has the only green channels value. is it possible after converting in gray scale i can extract green channel region ? I already tried the following code but it not works.
Im = imread('1.jpg');
Im=imrotate(Im,-90);
figure,imshow(Im);
Im = imresize(Im, [512 512]);
diff_im = Im(:,:,2);
figure,imshow(diff_im);
0 个评论
回答(1 个)
Image Analyst
2017-7-15
Try the Color Thresholder App on the Apps tab,
or see the attached video that tracks green in a video.
4 个评论
Image Analyst
2017-7-15
Then the Color Thresholder app should work for you. Use it and export your code. If it still doesn't work then write back.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Segmentation and Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!