fixed the channel ordering of rgba images (by Eduard)

pull/14/merge
Vadim Pisarevsky 13 years ago
parent 81d6400f45
commit 0d2b8f4ba1
  1. 4
      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 // 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) { if (height == image.rows && width == image.cols && format_opencv == image.type() && bufferAddress == image.data && bytesPerRow == image.step) {
iOSimage = false; iOSimage = true;
} }

Loading…
Cancel
Save