TuttleOFX
1
|
00001 #include <terry/globals.hpp> 00002 #include <terry/sampler/all.hpp> 00003 #include <terry/filter/motionVectors.hpp> 00004 00005 #include <iostream> 00006 00007 #include <boost/test/unit_test.hpp> 00008 using namespace boost::unit_test; 00009 00010 BOOST_AUTO_TEST_SUITE( terry_filter_motionVector ) 00011 00012 struct NoProgress 00013 { 00014 void progressBegin( const int numSteps, const std::string& msg = "" ){} 00015 void progressEnd(){} 00016 bool progressForward( const int nSteps ){ return false; } 00017 }; 00018 00019 00020 00021 BOOST_AUTO_TEST_CASE( motionVector ) 00022 { 00023 using namespace terry; 00024 00025 // empty input/output, the test only check the compilation 00026 terry::rgb32f_view_t inView; 00027 terry::gray32f_view_t xVecView, yVecView; 00028 terry::rgb32f_view_t outView; 00029 NoProgress progress; 00030 00031 //terry::filter::applyLocalMaxima( inView, outView ); 00032 filter::motionvectors_resample_pixels<sampler::bilinear_sampler>( 00033 inView, getBounds<std::ssize_t>( inView ), 00034 xVecView, yVecView, getBounds<std::ssize_t>( xVecView ), 00035 outView, getBounds<std::ssize_t>( outView ), 00036 getBounds<std::ssize_t>( outView ), 00037 sampler::eParamFilterOutCopy, 00038 progress ); 00039 00040 } 00041 00042 00043 BOOST_AUTO_TEST_SUITE_END()