fixed the channel ordering of rgba images (by Eduard)
authorVadim Pisarevsky <vadim.pisarevsky@itseez.com>
Tue, 21 Aug 2012 11:41:05 +0000 (15:41 +0400)
committerVadim Pisarevsky <vadim.pisarevsky@itseez.com>
Tue, 21 Aug 2012 11:41:05 +0000 (15:41 +0400)
modules/highgui/src/cap_ios_video_camera.mm

index bed17e1..6f7bfa2 100644 (file)
@@ -522,9 +522,9 @@ static CGFloat DegreesToRadians(CGFloat degrees) {return degrees * M_PI / 180;};
                }
                
                // check if matrix data pointer or dimensions were changed by the delegate
-               bool iOSimage = true;
+               bool iOSimage = false;
                if (height == image.rows && width == image.cols && format_opencv == image.type() && bufferAddress == image.data && bytesPerRow == image.step) {
-                       iOSimage = false;
+                       iOSimage = true;
                }