From 0d2b8f4ba11651306cf59dfaf4c0c29a0822b881 Mon Sep 17 00:00:00 2001 From: Vadim Pisarevsky Date: Tue, 21 Aug 2012 15:41:05 +0400 Subject: [PATCH] fixed the channel ordering of rgba images (by Eduard) --- modules/highgui/src/cap_ios_video_camera.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/highgui/src/cap_ios_video_camera.mm b/modules/highgui/src/cap_ios_video_camera.mm index bed17e1882..6f7bfa20fc 100644 --- a/modules/highgui/src/cap_ios_video_camera.mm +++ b/modules/highgui/src/cap_ios_video_camera.mm @@ -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; }