fixed PyrLKOpticalFlow.dense (final result size)
This commit is contained in:
parent
917063b7f7
commit
3f1c6d7357
@ -293,8 +293,8 @@ void cv::gpu::PyrLKOpticalFlow::dense(const GpuMat& prevImg, const GpuMat& nextI
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
pyrUp(uPyr_[level], uPyr_[level - 1]);
|
resize(uPyr_[level], uPyr_[level - 1], uPyr_[level - 1].size());
|
||||||
pyrUp(vPyr_[level], vPyr_[level - 1]);
|
resize(vPyr_[level], vPyr_[level - 1], vPyr_[level - 1].size());
|
||||||
|
|
||||||
multiply(uPyr_[level - 1], Scalar::all(2), uPyr_[level - 1]);
|
multiply(uPyr_[level - 1], Scalar::all(2), uPyr_[level - 1]);
|
||||||
multiply(vPyr_[level - 1], Scalar::all(2), vPyr_[level - 1]);
|
multiply(vPyr_[level - 1], Scalar::all(2), vPyr_[level - 1]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user