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.
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
skyimager
le 23 Nov 2016
Réponse apportée : Image Analyst
le 23 Nov 2016
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 commentaires
Réponse acceptée
Image Analyst
le 23 Nov 2016
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 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Image Processing Toolbox dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!