Added linear programming based stabilizer (videostab)

This commit is contained in:
Alexey Spizhevoy
2012-04-16 06:41:06 +00:00
parent c4af85043a
commit 40e7990b6b
9 changed files with 552 additions and 59 deletions

View File

@@ -194,7 +194,7 @@ void StabilizerBase::stabilizeFrame()
// apply stabilization transformation
if (motionEstimator_->motionModel() != HOMOGRAPHY)
if (motionEstimator_->motionModel() != MM_HOMOGRAPHY)
warpAffine(
preProcessedFrame_, at(curStabilizedPos_, stabilizedFrames_),
stabilizationMotion(Rect(0,0,3,2)), frameSize_, INTER_LINEAR, borderMode_);
@@ -205,7 +205,7 @@ void StabilizerBase::stabilizeFrame()
if (doInpainting_)
{
if (motionEstimator_->motionModel() != HOMOGRAPHY)
if (motionEstimator_->motionModel() != MM_HOMOGRAPHY)
warpAffine(
frameMask_, at(curStabilizedPos_, stabilizedMasks_),
stabilizationMotion(Rect(0,0,3,2)), frameSize_, INTER_NEAREST);