fixed Mat::Mat(const IplImage*, bool) constructor (ticket #487). fixed the bayer demosaicing part in the new cv::cvtColor implementation
This commit is contained in:
@@ -82,7 +82,7 @@ Mat::Mat(const IplImage* img, bool copyData)
|
||||
if( copyData )
|
||||
{
|
||||
Mat m = *this;
|
||||
rows = cols = 0;
|
||||
release();
|
||||
if( !img->roi || !img->roi->coi ||
|
||||
img->dataOrder == IPL_DATA_ORDER_PLANE)
|
||||
m.copyTo(*this);
|
||||
|
Reference in New Issue
Block a user