33 #include <visp3/ustk_core/usConfig.h>
35 #if defined(USTK_HAVE_FFTW)
37 #include <visp3/io/vpImageIo.h>
38 #include <visp3/ustk_core/usImageIo.h>
39 #include <visp3/ustk_elastography/usElastography.h>
55 elastography.setDecimationFactor(1);
56 elastography.setROI(40, 2500, 50, 500);
59 vpImage<unsigned char> strainImage;
60 strainImage = elastography.run();
63 vpImage<unsigned char> groundTruthStrainImage;
64 std::string groundTruthFileName =
65 us::getDataSetPath() + std::string(
"/ustk-tests-groudTruth/testElasto_imgRFElasto12&15_ROI-40-2500-50-500.png");
66 vpImageIo::read(groundTruthStrainImage, groundTruthFileName.c_str());
69 if (strainImage == groundTruthStrainImage)
72 std::cout <<
"Test failed !\n";
79 std::cout <<
"You should intall FFTW to run this test" << std::endl;
Computation of a strain map using two sucessive RF images acquired at different compressions of the p...
static void read(usImageRF2D< short int > &imageRf2D, const std::string &headerFileName)
VISP_EXPORT std::string getDataSetPath()