How to calculate the area of an input image?
1 次查看(过去 30 天)
显示 更早的评论
How can I calculate the area of an input image with .jpg extension? If someone could explain please, it´s for a school project. And its suposed to be done using a scanner.
2 个评论
KSSV
2020-6-21
What you have in image? How you can calculate the area of image? You want to find the dimensions of an image?
采纳的回答
Image Analyst
2020-6-21
- Use imsplit() to get the red, green, and blue channel.
- The leaf will be dark in the blue channel. Threshold the blue channel to get a mask = blueChannel < 200.
- Call bwarea() on the resulting mask.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Convert Image Type 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!