Landscape image to portrait with opencv -


I have a method that does some processing on the IELF image and the method works if this image is 640x480 pixels but if it 480x640 pixels, so it is not ... because the image needs to be rotated to be 640x480 again, but then I need to rotate it to 480x640 or it has been taken from CVHADActact object to 480x640.

Can anyone tell me how can I do this?

Thank you!

Try transfer followed by flip . flip is required because if the transpose leaves a mirror image compared to the result of the rotation if the algorithm can work directly with the reflected image, Instead of flipping the image, only recommend flip the coordinate values ​​of the identification result. (Disclaimer: I did not try to transpose or flip on multi-channel images)


Comments