33 #include <visp3/ustk_elastography/usElastography3D.h>
35 #if defined(USTK_HAVE_FFTW)
149 m_elastography2DProcessor.
setROI(tx, ty, tw, th);
152 m_frameBeginROI = tz;
164 m_frameBeginROI = tz;
175 vpImage<unsigned char> outputFrame;
177 if (m_isloadPre ==
true && m_isloadPost ==
true && m_setROI ==
true) {
178 for (
int i = m_frameBeginROI; i < m_frameBeginROI + m_framesInROI; i++) {
179 m_Precomp.
getFrame(preCompressedFrame, i);
180 m_Postcomp.
getFrame(postCompressedFrame, i);
184 outputFrame = m_elastography2DProcessor.
run();
185 outputVolume.
resize(outputFrame.getHeight(), outputFrame.getWidth(), m_framesInROI);
186 for (
unsigned int row = 0; row < outputFrame.getHeight(); row++) {
187 for (
unsigned int col = 0; col < outputFrame.getWidth(); col++) {
188 outputVolume(row, col, i - m_frameBeginROI, outputFrame[row][col]);
void updateROIPos(int tx, int ty, int tz)
void setSamplingFrequency(double samplingFrequency)
void setPreCompression(const usImageRF3D< short > &Pre)
usImage3D< unsigned char > run()
void setPostCompression(const usImageRF3D< short > &Post)
void setLSQpercentage(double per)
virtual ~usElastography3D()
double getSamplingFrequency(void)
void setDecimationFactor(unsigned int decimationFactor)
void updateRF(const usImageRF3D< short int > &volume)
void setMotionEstimator(usElastography::MotionEstimator t_mest)
void setROI(int tx, int ty, int tz, int tw, int th, int tf)
vpImage< unsigned char > run()
void updateROIPos(int tx, int ty)
double getSamplingFrequency(void)
void setLSQpercentage(double per)
void setROI(int tx, int ty, int tw, int th)
void setPreCompression(const usImageRF2D< short > &Pre)
void setSamplingFrequency(double samplingFrequency)
void setDecimationFactor(unsigned int decimationFactor)
void setPostCompression(const usImageRF2D< short > &Post)
void setMotionEstimator(MotionEstimator t_mest)
void resize(unsigned int height, unsigned int width, unsigned int numberOfFrames)
void getFrame(usImageRF2D< Type > &image, unsigned int index) const