Skip to content

Commit 5a06d67

Browse files
committed
Merge pull request opencv#19532 from amirtu:OCV-166_getDefaultName_overload
2 parents 76cc034 + cbb230f commit 5a06d67

File tree

7 files changed

+17
-0
lines changed

7 files changed

+17
-0
lines changed

modules/cudaoptflow/src/brox.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ namespace {
6464
{
6565
}
6666

67+
virtual String getDefaultName() const { return "DenseOpticalFlow.BroxOpticalFlow"; }
68+
6769
virtual void calc(InputArray I0, InputArray I1, InputOutputArray flow, Stream& stream);
6870

6971
virtual double getFlowSmoothness() const { return alpha_; }

modules/cudaoptflow/src/farneback.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ namespace
129129

130130
virtual void calc(InputArray I0, InputArray I1, InputOutputArray flow, Stream& stream);
131131

132+
virtual String getDefaultName() const { return "DenseOpticalFlow.FarnebackOpticalFlow"; }
133+
132134
private:
133135
int numLevels_;
134136
double pyrScale_;

modules/cudaoptflow/src/pyrlk.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,8 @@ namespace
347347
sparse(prevImg, nextImg, prevPts, nextPts, status, err, stream);
348348
}
349349
}
350+
351+
virtual String getDefaultName() const { return "SparseOpticalFlow.SparsePyrLKOpticalFlow"; }
350352
};
351353

352354
class DensePyrLKOpticalFlowImpl : public DensePyrLKOpticalFlow, private PyrLKOpticalFlowBase
@@ -388,6 +390,8 @@ namespace
388390
GpuMat flows[] = {u, v};
389391
cuda::merge(flows, 2, _flow, stream);
390392
}
393+
394+
virtual String getDefaultName() const { return "DenseOpticalFlow.DensePyrLKOpticalFlow"; }
391395
};
392396
}
393397

modules/cudaoptflow/src/tvl1flow.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,9 @@ namespace
119119

120120
virtual void calc(InputArray I0, InputArray I1, InputOutputArray flow, Stream& stream);
121121

122+
virtual String getDefaultName() const { return "DenseOpticalFlow.OpticalFlowDual_TVL1"; }
123+
124+
122125
private:
123126
double tau_;
124127
double lambda_;

modules/video/src/lkpyramid.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -867,6 +867,8 @@ namespace
867867
OutputArray status,
868868
OutputArray err = cv::noArray()) CV_OVERRIDE;
869869

870+
virtual String getDefaultName() const CV_OVERRIDE { return "SparseOpticalFlow.SparsePyrLKOpticalFlow"; }
871+
870872
private:
871873
#ifdef HAVE_OPENCL
872874
bool checkParam()

modules/video/src/optflowgf.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,8 @@ class FarnebackOpticalFlowImpl : public FarnebackOpticalFlow
618618

619619
virtual void calc(InputArray I0, InputArray I1, InputOutputArray flow) CV_OVERRIDE;
620620

621+
virtual String getDefaultName() const CV_OVERRIDE { return "DenseOpticalFlow.FarnebackOpticalFlow"; }
622+
621623
private:
622624
int numLevels_;
623625
double pyrScale_;

modules/video/src/tvl1flow.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ class OpticalFlowDual_TVL1 : public DualTVL1OpticalFlow
102102
}
103103
OpticalFlowDual_TVL1();
104104

105+
virtual String getDefaultName() const CV_OVERRIDE { return "DenseOpticalFlow.DualTVL1OpticalFlow"; }
106+
105107
void calc(InputArray I0, InputArray I1, InputOutputArray flow) CV_OVERRIDE;
106108
void collectGarbage() CV_OVERRIDE;
107109

0 commit comments

Comments
 (0)