Reputation: 408
Is there an easy non costly method to flip an IplImage along the y-axis ? I'm working with high framerates.
Upvotes: 0
Views: 3894
Reputation: 4423
Why not use C++ API Mat
? Try this out and see if it works with your requirement. Just replace IplImage* img
with your frame.
IplImage* img = cvLoadImage("c:\\test.jpg");
cvFlip(img, img, 0);
cvNamedWindow("result", CV_WINDOW_AUTOSIZE);
cvShowImage("result", img);
cvWaitKey(0);
cvDestroyWindow("result");
Upvotes: 1
Reputation: 2790
There is cvFlip
(see Operation On Arrays) that can do in place flipping. Horizontal, vertical and combined flipping is supported.
Example: Flipping y-axis:
cvFlip(Image, NULL, 1);
Upvotes: 1