Rotate image correctly [closed]

asked 2017-02-17 06:32:49 -0500

pablobhz gravatar image

I'm using Emgu to rotate a very large image (7085w x 9920h)

However, after rotating it , he seems to "Invert" width and height. On the rotated image (using Windows Image Viewer), after rotating it 90 degrees the image has 9920w x 7085h.

With Emgu, after rotating and saving it (testing), the image has 7085w x 9920h.

What can be happening in that case ? I'm passing the correct parameters, but i've got no idea why this behaviour is happening.

newImage = newImage.Rotate(90, new Bgr(0, 0, 0));

Thanks in advance

edit retag flag offensive reopen merge delete

Closed for the following reason question is off-topic or not relevant by berak
close date 2017-02-17 06:34:24.201309



we cannot help you with emgu-specific problems, please ask on their own forum

(there is no Rotate() function in opencv)

berak gravatar imageberak ( 2017-02-17 06:35:09 -0500 )edit

actually berak, there is a rotate() function in OpenCV, Emgu and thus C# has a nasty habit of making function names starting with a capital ;) But still I agree that this is out of scope and should be placed on the proper fora :)

StevenPuttemans gravatar imageStevenPuttemans ( 2017-02-17 07:18:11 -0500 )edit