Merge pull request #19532 from amirtu:OCV-166_getDefaultName_overload

pull/19525/head
Alexander Alekhin 4 years ago
commit 5a06d679cf
  1. 2
      modules/cudaoptflow/src/brox.cpp
  2. 2
      modules/cudaoptflow/src/farneback.cpp
  3. 4
      modules/cudaoptflow/src/pyrlk.cpp
  4. 3
      modules/cudaoptflow/src/tvl1flow.cpp
  5. 2
      modules/video/src/lkpyramid.cpp
  6. 2
      modules/video/src/optflowgf.cpp
  7. 2
      modules/video/src/tvl1flow.cpp

@ -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_;

@ -867,6 +867,8 @@ namespace
OutputArray status,
OutputArray err = cv::noArray()) CV_OVERRIDE;
virtual String getDefaultName() const CV_OVERRIDE { return "SparseOpticalFlow.SparsePyrLKOpticalFlow"; }
private:
#ifdef HAVE_OPENCL
bool checkParam()

@ -618,6 +618,8 @@ public:
virtual void calc(InputArray I0, InputArray I1, InputOutputArray flow) CV_OVERRIDE;
virtual String getDefaultName() const CV_OVERRIDE { return "DenseOpticalFlow.FarnebackOpticalFlow"; }
private:
int numLevels_;
double pyrScale_;

@ -102,6 +102,8 @@ public:
}
OpticalFlowDual_TVL1();
virtual String getDefaultName() const CV_OVERRIDE { return "DenseOpticalFlow.DualTVL1OpticalFlow"; }
void calc(InputArray I0, InputArray I1, InputOutputArray flow) CV_OVERRIDE;
void collectGarbage() CV_OVERRIDE;

Loading…
Cancel
Save