UsTK : Ultrasound ToolKit
version 2.0.1 under development (2024-11-21)
|
#include <visp3/ustk_core/usRFToPreScan2DConverter.h>
Public Member Functions | |
usRFToPreScan2DConverter (int decimationFactor=10) | |
~usRFToPreScan2DConverter () | |
void | convert (const usImageRF2D< short int > &rfImage, usImagePreScan2D< unsigned char > &preScanImage) |
int | getDecimationFactor () |
void | setDecimationFactor (int decimationFactor) |
Friends | |
class | usRFToPreScan3DConverter |
2D conversion from RF signal to pre-scan image
This class allows to convert 2D RF ultrasound images to pre-scan. Here is an example to show how to use it :
Definition at line 100 of file usRFToPreScan2DConverter.h.
usRFToPreScan2DConverter::usRFToPreScan2DConverter | ( | int | decimationFactor = 10 | ) |
Constructor.
decimationFactor | Decimation factor : keep only 1 pre-scan sample every N sample (N = decimationFactor) |
Definition at line 47 of file usRFToPreScan2DConverter.cpp.
usRFToPreScan2DConverter::~usRFToPreScan2DConverter | ( | ) |
Destructor.
Definition at line 55 of file usRFToPreScan2DConverter.cpp.
void usRFToPreScan2DConverter::convert | ( | const usImageRF2D< short int > & | rfImage, |
usImagePreScan2D< unsigned char > & | preScanImage | ||
) |
Convert method : performs the conversion from RF frame to a pre-scan frame using the following processes :
rfImage | RF frame to convert |
preScanImage | pre-scan image : result of convertion |
Definition at line 167 of file usRFToPreScan2DConverter.cpp.
References usImageRF2D< Type >::getHeight(), usImageRF2D< Type >::getSignal(), usImageRF2D< Type >::getWidth(), usImagePreScan2D< Type >::resize(), usLogCompressor::run(), and usImagePreScanSettings::setImagePreScanSettings().
Referenced by usRFToPostScan2DConverter::convert(), usRFToPreScan3DConverter::convert(), and usImageElastographyCreationWrapper::updateFrame().
int usRFToPreScan2DConverter::getDecimationFactor | ( | ) |
Decimation factor getter.
Definition at line 232 of file usRFToPreScan2DConverter.cpp.
void usRFToPreScan2DConverter::setDecimationFactor | ( | int | decimationFactor | ) |
Decimation factor setter.
decimationFactor | : keep only 1 pre-scan sample every N sample (N = decimationFactor) |
Definition at line 238 of file usRFToPreScan2DConverter.cpp.
Referenced by usRFToPreScan3DConverter::init(), and usRFToPostScan2DConverter::setConversionParameters().
|
friend |
Definition at line 102 of file usRFToPreScan2DConverter.h.