I'm trying to rotate geometrical objects (binary image) so at least one side (the longest would be best) would be parallel with x axis. I am using regionprops(img,'Orientation') and imrorate functions, but this doesn't produce the desired picture. I need to find the angle of rotation, which is different for each picture. Is there any way how to do this?
This is input image:
This is what I want:
Aucun commentaire:
Enregistrer un commentaire