UsTK : Ultrasound ToolKit
version 2.0.1 under development (2024-11-21)
|
Public Types | |
enum | MotionEstimator { OF , BMA_TAYLOR } |
Public Member Functions | |
usElastography () | |
usElastography (usImageRF2D< short int > &Pre, usImageRF2D< short int > &Post) | |
virtual | ~usElastography () |
double | getFPS (void) |
double | getSamplingFrequency (void) |
vpImage< unsigned char > | run () |
void | setDecimationFactor (unsigned int decimationFactor) |
void | setFPS (double fps) |
void | setSamplingFrequency (double samplingFrequency) |
void | setLSQpercentage (double per) |
void | setMotionEstimator (MotionEstimator t_mest) |
void | setPostCompression (const usImageRF2D< short > &Post) |
void | setPreCompression (const usImageRF2D< short > &Pre) |
void | setROI (int tx, int ty, int tw, int th) |
void | updateRF (const usImageRF2D< short int > &image) |
void | updateROIPos (int tx, int ty) |
Computation of a strain map using two sucessive RF images acquired at different compressions of the probe.
This class produces a strain map based on tissues displacements between 2 input RF images.
The typical use of this class is :
Definition at line 64 of file usElastography.h.
Enumerator | |
---|---|
OF | |
BMA_TAYLOR |
Definition at line 67 of file usElastography.h.
usElastography::usElastography | ( | ) |
usElastography::usElastography | ( | usImageRF2D< short int > & | Pre, |
usImageRF2D< short int > & | Post | ||
) |
Constructor setting the pre-compressed and the post-compressed images to perform elastography on.
Pre | Pre-compresssed RF image. |
Post | Post-compresssed RF image. |
Definition at line 75 of file usElastography.cpp.
References OF, setPostCompression(), and setPreCompression().
|
virtual |
Destructor, free memory.
Definition at line 93 of file usElastography.cpp.
|
inline |
Definition at line 72 of file usElastography.h.
Referenced by usElastography3D::getFPS().
|
inline |
Definition at line 73 of file usElastography.h.
Referenced by usElastography3D::getSamplingFrequency().
vpImage< unsigned char > usElastography::run | ( | ) |
Run the elastography computation.
Strain estimation "LSQ strain estimation"
Strain matrix S
Definition at line 200 of file usElastography.cpp.
References usSignalProcessing::BilinearInterpolation(), BMA_TAYLOR, usSignalProcessing::Difference(), usSignalProcessing::GaussianFilter(), usImageRF2D< Type >::getHeight(), usImageRF2D< Type >::getWidth(), usSignalProcessing::getXGradient(), usSignalProcessing::getYGradient(), and usSignalProcessing::HadamardProd().
Referenced by usElastography3D::run(), and usElastographyQtWrapper::updateFrame().
|
inline |
Definition at line 77 of file usElastography.h.
Referenced by usElastography3D::setDecimationFactor().
void usElastography::setFPS | ( | double | fps | ) |
Setter for frames per second parameter of the acquisition.
fps | Frames per second. |
Definition at line 130 of file usElastography.cpp.
Referenced by usElastography3D::setFPS().
void usElastography::setLSQpercentage | ( | double | per | ) |
Setter for LSQ strain percentage.
per | LSQ strain percentage. |
Definition at line 124 of file usElastography.cpp.
Referenced by usElastography3D::setLSQpercentage().
|
inline |
Definition at line 81 of file usElastography.h.
Referenced by usElastography3D::setMotionEstimator().
void usElastography::setPostCompression | ( | const usImageRF2D< short > & | Post | ) |
Post-compresssed RF image setter.
Post | Post-compresssed RF image. |
Definition at line 114 of file usElastography.cpp.
Referenced by usElastography3D::run(), updateRF(), and usElastography().
void usElastography::setPreCompression | ( | const usImageRF2D< short > & | Pre | ) |
Pre-compresssed RF image setter.
Pre | Pre-compresssed RF image. |
Definition at line 104 of file usElastography.cpp.
Referenced by usElastography3D::run(), updateRF(), and usElastography().
void usElastography::setROI | ( | int | tx, |
int | ty, | ||
int | tw, | ||
int | th | ||
) |
ROI setter: the ROI is the region in the RF image in which to compute the elastography.
tx | Top left column of the ROI. |
ty | Top left row of the ROI. |
tw | ROI width in px. |
th | ROI height in px. |
Definition at line 161 of file usElastography.cpp.
Referenced by usElastographyQtWrapper::setROI(), and usElastography3D::setROI().
void usElastography::setSamplingFrequency | ( | double | samplingFrequency | ) |
Setter for sampling frequency of the ultrasound wave.
samplingFrequency | Sampling frequency in Hertz. |
Definition at line 136 of file usElastography.cpp.
Referenced by usElastography3D::setSamplingFrequency().
void usElastography::updateRF | ( | const usImageRF2D< short int > & | image | ) |
Updater of pre/post compressed image : sets the new image as pre-compressed image for process, and sets the old pre-compressed image as new post-compressed.
image | New pre-compressed image. |
Definition at line 143 of file usElastography.cpp.
References setPostCompression(), and setPreCompression().
Referenced by usElastographyQtWrapper::updateFrame().
void usElastography::updateROIPos | ( | int | tx, |
int | ty | ||
) |
ROI position update, allows to move the ROI in the image.
tx | New top left column of the ROI. |
ty | New top left row of the ROI. |
Definition at line 175 of file usElastography.cpp.
Referenced by usElastography3D::updateROIPos().