How to do masking automatically for irregular shape?
显示 更早的评论
I have images like rice, fish and spinach. I've attached some images. I'm planning to do masking to the images automatically but I only know how to do masking using imfreehand as they got irregular shapes. I want to use masking because i want to get the ROI only. Background will be removed and set to black colour.
For example, i want to do masking to the rice image, and my ROI is the white part of the rice only. Can someone help how to make the images masked automatically?
Thank you.
1 个评论
KALYAN ACHARJYA
2019-10-21
Yes, do apply color thresholding or appropriate segmentation methods, it can be done
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Region and Image Properties 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!