mirror of
https://github.com/opencv/opencv_contrib.git
synced 2025-10-19 11:21:39 +08:00
Added naive blockmatching algorithm (just to get acquainted with the code base, this algo shouldn't be considered seriously).
Also, added boilerplate for pcaflow.
This commit is contained in:
@@ -11,7 +11,7 @@ using namespace optflow;
|
||||
const String keys = "{help h usage ? | | print this message }"
|
||||
"{@image1 | | image1 }"
|
||||
"{@image2 | | image2 }"
|
||||
"{@algorithm | | [farneback, simpleflow, tvl1, deepflow or sparsetodenseflow] }"
|
||||
"{@algorithm | | [farneback, simpleflow, tvl1, deepflow, pcaflow, blockmatching or sparsetodenseflow] }"
|
||||
"{@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] }"
|
||||
@@ -252,6 +252,10 @@ int main( int argc, char** argv )
|
||||
algorithm = createOptFlow_DeepFlow();
|
||||
else if ( method == "sparsetodenseflow" )
|
||||
algorithm = createOptFlow_SparseToDense();
|
||||
else if ( method == "blockmatching" )
|
||||
algorithm = createOptFlow_BlockMatching();
|
||||
else if ( method == "pcaflow" )
|
||||
algorithm = createOptFlow_PCAFlow();
|
||||
else
|
||||
{
|
||||
printf("Wrong method!\n");
|
||||
|
Reference in New Issue
Block a user