39 #include <visp3/ustk_gui/usImageElastographyCreationWrapper.h>
41 #if (defined(USTK_HAVE_VTK_QT) || defined(USTK_HAVE_QT5)) && defined(VISP_HAVE_MODULE_USTK_ELASTOGRAPHY)
47 : QObject(), m_elastography(), m_elastographyImageCreation(), m_RFConverter(), m_preScanImage(), m_heighPositionROI(),
50 connect(&m_elastography, SIGNAL(elastoReady(vpImage<unsigned char>)),
this,
51 SLOT(strainMapReadySlot(vpImage<unsigned char>)));
68 m_elastography.
setROI(j, i, width, height);
69 m_heighPositionROI = i;
70 m_widthPositionROI = j;
79 m_RFConverter.
convert(img, m_preScanImage);
82 qApp->processEvents();
89 void usImageElastographyCreationWrapper::strainMapReadySlot(vpImage<unsigned char> image)
91 m_elastographyImageCreation.
setStrainMap(image, m_heighPositionROI, m_widthPositionROI);
void updateFrame(const usImageRF2D< short int > &img)
void setROI(int tx, int ty, int tw, int th)
void updateFrame(usImageRF2D< short int > &img)
usImageElastographyCreationWrapper()
void elastographyImageReady(vpImage< vpRGBa >)
~usImageElastographyCreationWrapper()
void setROI(unsigned int i, unsigned int j, unsigned int height, unsigned int width)
vpImage< vpRGBa > getElastoImage()
void setUltrasoundImage(const vpImage< unsigned char > &ultrasoundImage)
void setStrainMap(const vpImage< unsigned char > &strainMap, unsigned int heightPosition, unsigned int widthPosition)
void convert(const usImageRF2D< short int > &rfImage, usImagePreScan2D< unsigned char > &preScanImage)