Fixed parameter name and copy condition
This commit is contained in:
parent
e309c51430
commit
80f1b1478d
@ -224,7 +224,7 @@ void cv::copyMakeBorder( InputArray _src, OutputArray _dst, int top, int bottom,
|
|||||||
|
|
||||||
if(top == 0 && left == 0 && bottom == 0 && right == 0)
|
if(top == 0 && left == 0 && bottom == 0 && right == 0)
|
||||||
{
|
{
|
||||||
if(src.data != dst.data)
|
if(src.data != dst.data || src.step != dst.step)
|
||||||
src.copyTo(dst);
|
src.copyTo(dst);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -304,7 +304,7 @@ enum
|
|||||||
};
|
};
|
||||||
|
|
||||||
//! constructs a pyramid which can be used as input for calcOpticalFlowPyrLK
|
//! constructs a pyramid which can be used as input for calcOpticalFlowPyrLK
|
||||||
CV_EXPORTS_W int buildOpticalFlowPyramid(InputArray _img, OutputArrayOfArrays pyramid,
|
CV_EXPORTS_W int buildOpticalFlowPyramid(InputArray img, OutputArrayOfArrays pyramid,
|
||||||
Size winSize, int maxLevel, bool withDerivatives = true,
|
Size winSize, int maxLevel, bool withDerivatives = true,
|
||||||
int pyrBorder = BORDER_REFLECT_101, int derivBorder = BORDER_CONSTANT,
|
int pyrBorder = BORDER_REFLECT_101, int derivBorder = BORDER_CONSTANT,
|
||||||
bool tryReuseInputImage = true);
|
bool tryReuseInputImage = true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user