mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 15:23:05 +04:00
fix getDefaultName()
This commit is contained in:
@@ -64,6 +64,8 @@ namespace {
|
||||
{
|
||||
}
|
||||
|
||||
virtual String getDefaultName() const { return "DenseOpticalFlow.BroxOpticalFlow"; }
|
||||
|
||||
virtual void calc(InputArray I0, InputArray I1, InputOutputArray flow, Stream& stream);
|
||||
|
||||
virtual double getFlowSmoothness() const { return alpha_; }
|
||||
|
||||
@@ -129,6 +129,8 @@ namespace
|
||||
|
||||
virtual void calc(InputArray I0, InputArray I1, InputOutputArray flow, Stream& stream);
|
||||
|
||||
virtual String getDefaultName() const { return "DenseOpticalFlow.FarnebackOpticalFlow"; }
|
||||
|
||||
private:
|
||||
int numLevels_;
|
||||
double pyrScale_;
|
||||
|
||||
@@ -347,6 +347,8 @@ namespace
|
||||
sparse(prevImg, nextImg, prevPts, nextPts, status, err, stream);
|
||||
}
|
||||
}
|
||||
|
||||
virtual String getDefaultName() const { return "SparseOpticalFlow.SparsePyrLKOpticalFlow"; }
|
||||
};
|
||||
|
||||
class DensePyrLKOpticalFlowImpl : public DensePyrLKOpticalFlow, private PyrLKOpticalFlowBase
|
||||
@@ -388,6 +390,8 @@ namespace
|
||||
GpuMat flows[] = {u, v};
|
||||
cuda::merge(flows, 2, _flow, stream);
|
||||
}
|
||||
|
||||
virtual String getDefaultName() const { return "DenseOpticalFlow.DensePyrLKOpticalFlow"; }
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -119,6 +119,9 @@ namespace
|
||||
|
||||
virtual void calc(InputArray I0, InputArray I1, InputOutputArray flow, Stream& stream);
|
||||
|
||||
virtual String getDefaultName() const { return "DenseOpticalFlow.OpticalFlowDual_TVL1"; }
|
||||
|
||||
|
||||
private:
|
||||
double tau_;
|
||||
double lambda_;
|
||||
|
||||
Reference in New Issue
Block a user