fixed the channel ordering of rgba images (by Eduard)

This commit is contained in:
Vadim Pisarevsky
2012-08-21 15:41:05 +04:00
parent 81d6400f45
commit 0d2b8f4ba1

View 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;
}