UsTK : Ultrasound ToolKit
version 2.0.1 under development (2024-11-21)
|
#include <visp3/ustk_core/usRFToPostScan2DConverter.h>
Public Member Functions | |
usRFToPostScan2DConverter (int decimationFactor=10) | |
~usRFToPostScan2DConverter () | |
void | convert (const usImageRF2D< short int > &rfImage, usImagePostScan2D< unsigned char > &postScanImage) |
void | setConversionParameters (const usImagePostScan2D< unsigned char > &inputSettings, const int BModeSampleNumber, const int scanLineNumber, const int decimationFactor) |
2D conversion from RF signal to post-scan image
This class allows to convert 2D RF ultrasound images to post-scan. Here is an example to show how to use it :
Definition at line 100 of file usRFToPostScan2DConverter.h.
usRFToPostScan2DConverter::usRFToPostScan2DConverter | ( | int | decimationFactor = 10 | ) |
Constructor.
decimationFactor | Decimation factor : keep only 1 pre-scan sample every N sample (N = decimationFactor) |
Definition at line 47 of file usRFToPostScan2DConverter.cpp.
usRFToPostScan2DConverter::~usRFToPostScan2DConverter | ( | ) |
Destructor.
Definition at line 55 of file usRFToPostScan2DConverter.cpp.
void usRFToPostScan2DConverter::convert | ( | const usImageRF2D< short int > & | rfImage, |
usImagePostScan2D< unsigned char > & | postScanImage | ||
) |
Convert method : performs the conversion from RF frame to a post-scan frame using the following processes :
rfImage | RF frame to convert |
postScanImage | post-scan image : result of convertion |
Definition at line 67 of file usRFToPostScan2DConverter.cpp.
References usPreScanToPostScan2DConverter::convert(), and usRFToPreScan2DConverter::convert().
void usRFToPostScan2DConverter::setConversionParameters | ( | const usImagePostScan2D< unsigned char > & | inputSettings, |
const int | BModeSampleNumber, | ||
const int | scanLineNumber, | ||
const int | decimationFactor | ||
) |
(Re-)Initialize the converter.
inputSettings | Post-scan settings : transducer radius, pitch, depth, and resolutions. |
BModeSampleNumber | Number of samples along a scan line in pre-scan image. |
scanLineNumber | Number of scan lines : width of the RF image to convert. |
decimationFactor | Decimation factor : keep only 1 pre-scan sample every N sample from RF signal (N = decimationFactor). |
Definition at line 84 of file usRFToPostScan2DConverter.cpp.
References usPreScanToPostScan2DConverter::init(), and usRFToPreScan2DConverter::setDecimationFactor().