I have a rectangular image. I want to crop the AOI which is circular. Please guide me how to do it. I have attached the image here. It is an all sky image.
1 次查看(过去 30 天)
显示 更早的评论
I have a rectangular image. I want to crop the AOI which is circular. I want to define a suitable radius and only tat part has to be retained.
0 个评论
采纳的回答
Image Analyst
2016-11-23
Create a circular mask like in the FAQ: http://matlab.wikia.com/wiki/FAQ#How_do_I_create_a_circle.3F
Then you can multiply it by the image or use it as an index to zero out pixels:
grayImage(circlePixels) = 0;
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!