#include <iostream>
#include <visp3/ustk_core/usConfig.h>
#if defined(USTK_HAVE_FFTW)
#include <visp3/ustk_elastography/usElastography.h>
#include <visp3/io/vpImageIo.h>
#include <visp3/ustk_core/usImageIo.h>
int main()
{
elastography.
setROI(40, 2500, 50, 500);
vpImage<unsigned char> strainImage;
strainImage = elastography.
run();
vpImageIo::write(strainImage, "outputElasto.png");
return 0;
}
#else
int main()
{
std::cout << "You should intall FFTW to run this tutorial" << std::endl;
return 0;
}
#endif
Computation of a strain map using two sucessive RF images acquired at different compressions of the p...
vpImage< unsigned char > run()
void setROI(int tx, int ty, int tw, int th)
void setDecimationFactor(unsigned int decimationFactor)
static void read(usImageRF2D< short int > &imageRf2D, const std::string &headerFileName)
VISP_EXPORT std::string getDataSetPath()