mirror of
https://github.com/opencv/opencv_contrib.git
synced 2025-10-19 11:21:39 +08:00
Merge pull request #2367 from tsenst:add_robust_interpolation_of_correspondence
Add RIC method for sparse match interpolation * * add RIC * sparse_match_interpolators EdgeAwareInterpolation - enhance limitation of the maximal number of matches to be interpolated from SHORT_MAX to INT_MAX by substituting short by int types * * add RIC citation * * update EdgeAwareInterpolatorImpl * * add intermediate RIC implementation * * implementation of new paralelization classes. First test where sucessfull. * * update documentation RICInterpolatorImpl and RLOF * * update CMakeLists.txt remove highgui * add test for RIC * add ASSERTION for curr image * * add cost map interface * * fix internal cost map allocation bug * * remove white spaces * fix warnings * *fix compiler warnings * * remove double whitespaces * underscore from parameters * substitute parallel_for_() classes with lambda functions * remove complex assertion statements * remove dead code * substitute swap function with std::swap() * ocv_define_module now contains video instead of tracking module * * remove whitespace endings * * documentation update * * remove double declarations that lead to warnings * * unrole tracker.py * remove double space * use static for inner functions * update create function * modify mem init. to avoid manual memory management * * uncomment parallel_for_ for parallelization * * unrole unwanted changes * uncomment paralellization * * remove empty comment * change CHECK to CHK_GD * remove not necessary ; * *documentation remove double space
This commit is contained in:

committed by
Alexander Alekhin

parent
cacec38ec1
commit
40b238b01d
@@ -12,7 +12,7 @@ using namespace optflow;
|
||||
const String keys = "{help h usage ? | | print this message }"
|
||||
"{@image1 | | image1 }"
|
||||
"{@image2 | | image2 }"
|
||||
"{@algorithm | | [farneback, simpleflow, tvl1, deepflow, sparsetodenseflow, pcaflow, DISflow_ultrafast, DISflow_fast, DISflow_medium] }"
|
||||
"{@algorithm | | [farneback, simpleflow, tvl1, deepflow, sparsetodenseflow, RLOF_EPIC, RLOF_RIC, pcaflow, DISflow_ultrafast, DISflow_fast, DISflow_medium] }"
|
||||
"{@groundtruth | | path to the .flo file (optional), Middlebury format }"
|
||||
"{m measure |endpoint| error measure - [endpoint or angular] }"
|
||||
"{r region |all | region to compute stats about [all, discontinuities, untextured] }"
|
||||
@@ -259,6 +259,20 @@ int main( int argc, char** argv )
|
||||
algorithm = createOptFlow_DeepFlow();
|
||||
else if ( method == "sparsetodenseflow" )
|
||||
algorithm = createOptFlow_SparseToDense();
|
||||
else if (method == "RLOF_EPIC")
|
||||
{
|
||||
algorithm = createOptFlow_DenseRLOF();
|
||||
Ptr<DenseRLOFOpticalFlow> rlof = algorithm.dynamicCast< DenseRLOFOpticalFlow>();
|
||||
rlof->setInterpolation(INTERP_EPIC);
|
||||
rlof->setForwardBackward(1.f);
|
||||
}
|
||||
else if (method == "RLOF_RIC")
|
||||
{
|
||||
algorithm = createOptFlow_DenseRLOF();
|
||||
Ptr<DenseRLOFOpticalFlow> rlof = algorithm.dynamicCast< DenseRLOFOpticalFlow>();;
|
||||
rlof->setInterpolation(INTERP_RIC);
|
||||
rlof->setForwardBackward(1.f);
|
||||
}
|
||||
else if ( method == "pcaflow" ) {
|
||||
if ( parser.has("prior") ) {
|
||||
String prior = parser.get<String>("prior");
|
||||
|
Reference in New Issue
Block a user