UsTK : Ultrasound ToolKit
version 2.0.1 under development (2024-11-21)
|
#include <visp3/ustk_core/usImagePostScan2D.h>
Public Member Functions | |
usImagePostScan2D () | |
usImagePostScan2D (const vpImage< Type > &image, const usTransducerSettings &transducerSettings, double widthResolution=0.0, double heightResolution=0.0) | |
usImagePostScan2D (const usImagePostScan2D< Type > &other) | |
virtual | ~usImagePostScan2D () |
double | getHeightResolution () const |
double | getWidthResolution () const |
usImagePostScan2D< Type > & | operator= (const usImagePostScan2D< Type > &other) |
bool | operator== (const usImagePostScan2D< Type > &other) |
void | setData (const vpImage< Type > &image) |
void | setHeightResolution (double heightResolution) |
void | setWidthResolution (double widthResolution) |
Inherited functionalities from usTransducerSettings | |
double | getDepth () const |
double | getFieldOfView () const |
std::string | getProbeName () const |
int | getSamplingFrequency () const |
unsigned int | getScanLineNumber () const |
double | getScanLinePitch () const |
double | getTransducerRadius () const |
usTransducerSettings | getTransducerSettings () const |
int | getTransmitFrequency () const |
bool | isTransducerConvex () const |
bool | operator== (usTransducerSettings const &other) |
bool | operator!= (usTransducerSettings const &other) |
bool | scanLineNumberIsSet () const |
void | setDepth (double depth) |
void | setFieldOfView (double fieldOfView) |
void | setProbeName (std::string probeName) |
void | setSamplingFrequency (const int samplingFrequency) |
void | setScanLineNumber (unsigned int scanLineNumber) |
void | setScanLinePitch (const double scanLinePitch) |
void | setTransducerConvexity (const bool isTransducerConvex) |
void | setTransducerSettings (const usTransducerSettings &other) |
void | setTransducerRadius (const double transducerRadius) |
void | setTransmitFrequency (const int transmitFrequency) |
2D post-scan ultrasound image.
This class represents a 2D post-scan ultrasound image. This image is nothing more than a vpImage that contains ultrasound 2D post-scan data and additional settings that give information about the acquisition process done by the transducer. The bitmap storage is done in row-major.
The settings associated to an usImagePostScan2D image are the following:
The following figure summarize these settings and shows the structure of an usImagePostScan2D image:
The following example shows how to build a 2D post-scan ultrasound image from a vpImage and from acquisition settings.
Definition at line 108 of file usImagePostScan2D.h.
usImagePostScan2D< Type >::usImagePostScan2D |
Basic constructor, all parameters set to default values.
Definition at line 136 of file usImagePostScan2D.h.
usImagePostScan2D< Type >::usImagePostScan2D | ( | const vpImage< Type > & | image, |
const usTransducerSettings & | transducerSettings, | ||
double | widthResolution = 0.0 , |
||
double | heightResolution = 0.0 |
||
) |
Constructor from an image and transducer settings.
image | Image containing the 2D post-scan data to copy. |
transducerSettings | Transducer settings associated to the data. |
heightResolution | Height (in meters) of a pixel. |
widthResolution | Width (in meters) of a pixel. |
Definition at line 160 of file usImagePostScan2D.h.
usImagePostScan2D< Type >::usImagePostScan2D | ( | const usImagePostScan2D< Type > & | other | ) |
Copy constructor from an other 2D post-scan image.
other | 2D post-scan image to copy. |
Definition at line 146 of file usImagePostScan2D.h.
|
virtual |
Destructor.
Definition at line 170 of file usImagePostScan2D.h.
|
inherited |
Setter for depth : distance in meters between first and last pixel in a scan line.
Definition at line 289 of file usTransducerSettings.cpp.
Referenced by usPostScanToPreScan2DConverter::convert(), usPreScanToPostScan2DConverter::convert(), usRFToPreScan3DConverter::convert(), usNetworkGrabberPreScan2D::dataArrived(), usNetworkGrabberPreScan3D::includeFrameInVolume(), usNetworkGrabberRF3D::includeFrameInVolume(), usPostScanToPreScan2DConverter::init(), usPreScanToPostScan2DConverter::init(), and usTransducerSettings::operator=().
|
inherited |
Getter for the transducer field of view (based on scan line number and pitch).
Definition at line 244 of file usTransducerSettings.cpp.
Referenced by usPostScanToPreScan2DConverter::convert(), usPostScanToPreScan2DConverter::init(), usPreScanToPostScan2DConverter::init(), usImageDisplayWidgetRobotControl::updateConfidenceAngle(), and usImageDisplayWidgetQmlOverlayServoing::updateConfidenceAngle().
double usImagePostScan2D< Type >::getHeightResolution |
Getter for pixel height resolution.
Definition at line 223 of file usImagePostScan2D.h.
Referenced by usPixelMeterConversion::convert(), usMeterPixelConversion::convert(), usPostScanToPreScan2DConverter::init(), usPreScanToPostScan2DConverter::init(), usImagePostScan2D< Type >::operator=(), usImagePostScan2D< Type >::operator==(), usMHDSequenceWriter::write(), and usImageIo::write().
|
inherited |
Getter for the probe name.
Definition at line 232 of file usTransducerSettings.cpp.
|
inherited |
Getter for sampling frequency : frequency used to sample the echo of the ultrasound wave.
Definition at line 305 of file usTransducerSettings.cpp.
Referenced by usTransducerSettings::operator=(), usTransducerSettings::operator==(), usImageIo::read(), usImageIo::write(), usMHDSequenceWriter::write(), and usImageSettingsXmlParser::writeMainClass().
|
inherited |
Getter for the scan line number.
Definition at line 216 of file usTransducerSettings.cpp.
Referenced by usPixelMeterConversion::convert(), usMeterPixelConversion::convert(), usPostScanToPreScan2DConverter::convert(), usPreScanToPostScan2DConverter::convert(), usNetworkGrabberPreScan3D::includeFrameInVolume(), usNetworkGrabberRF3D::includeFrameInVolume(), usTransducerSettings::operator=(), usTransducerSettings::operator==(), usImageIo::read(), usImagePreScan2D< Type >::usImagePreScan2D(), usImagePreScan3D< Type >::usImagePreScan3D(), usImageRF2D< Type >::usImageRF2D(), usImageRF3D< Type >::usImageRF3D(), usImageIo::write(), usMHDSequenceWriter::write(), and usImageSettingsXmlParser::writeMainClass().
|
inherited |
Get the scan line pitch (m).
Definition at line 182 of file usTransducerSettings.cpp.
Referenced by usPixelMeterConversion::convert(), usMeterPixelConversion::convert(), usPreScanToPostScan2DConverter::convert(), usNetworkGrabberPreScan3D::includeFrameInVolume(), usNetworkGrabberRF3D::includeFrameInVolume(), usPostScanToPreScan2DConverter::init(), usPreScanToPostScan2DConverter::init(), usTransducerSettings::operator=(), usTransducerSettings::operator==(), usImageIo::read(), usImageDisplayWidgetRobotControl::updateConfidenceAngle(), usImageDisplayWidgetQmlOverlayServoing::updateConfidenceAngle(), usImageIo::write(), usMHDSequenceWriter::write(), and usImageSettingsXmlParser::writeMainClass().
|
inherited |
Get the probe transducer radius (m).
Definition at line 163 of file usTransducerSettings.cpp.
Referenced by usPixelMeterConversion::convert(), usMeterPixelConversion::convert(), usPostScanToPreScan2DConverter::convert(), usPreScanToPostScan2DConverter::convert(), usNetworkGrabberPreScan3D::includeFrameInVolume(), usNetworkGrabberRF3D::includeFrameInVolume(), usPostScanToPreScan2DConverter::init(), usPreScanToPostScan2DConverter::init(), usTransducerSettings::operator=(), usTransducerSettings::operator==(), usImageIo::read(), usImageIo::write(), usMHDSequenceWriter::write(), and usImageSettingsXmlParser::writeMainClass().
|
inherited |
Getter for transducer settings : allows heritating classes to get the transducer settings.
Definition at line 295 of file usTransducerSettings.cpp.
|
inherited |
Getter for transmit frequency : frequency of the ultrasound wave used.
Definition at line 311 of file usTransducerSettings.cpp.
Referenced by usTransducerSettings::operator=(), usTransducerSettings::operator==(), usImageIo::read(), usImageIo::write(), usMHDSequenceWriter::write(), and usImageSettingsXmlParser::writeMainClass().
double usImagePostScan2D< Type >::getWidthResolution |
Getter for pixel width resolution.
Definition at line 229 of file usImagePostScan2D.h.
Referenced by usPixelMeterConversion::convert(), usMeterPixelConversion::convert(), usPostScanToPreScan2DConverter::init(), usPreScanToPostScan2DConverter::init(), usImagePostScan2D< Type >::operator=(), usImagePostScan2D< Type >::operator==(), usMHDSequenceWriter::write(), and usImageIo::write().
|
inherited |
Returns the probe transducer type.
Definition at line 201 of file usTransducerSettings.cpp.
Referenced by usPixelMeterConversion::convert(), usMeterPixelConversion::convert(), usPostScanToPreScan2DConverter::convert(), usPreScanToPostScan2DConverter::convert(), usPostScanToPreScan2DConverter::init(), usPreScanToPostScan2DConverter::init(), usPreScanToPostScan3DConverter::init(), usTransducerSettings::operator=(), usTransducerSettings::operator==(), usImageIo::read(), usTransducerSettings::setTransducerConvexity(), usImageIo::write(), usMHDSequenceWriter::write(), and usImageSettingsXmlParser::writeMainClass().
|
inherited |
Compare two probe transducer settings.
Definition at line 125 of file usTransducerSettings.cpp.
References usTransducerSettings::operator==().
usImagePostScan2D< Type > & usImagePostScan2D< Type >::operator= | ( | const usImagePostScan2D< Type > & | other | ) |
Assignement operator.
Definition at line 175 of file usImagePostScan2D.h.
References usImagePostScan2D< Type >::getHeightResolution(), usImagePostScan2D< Type >::getWidthResolution(), and usTransducerSettings::operator=().
bool usImagePostScan2D< Type >::operator== | ( | const usImagePostScan2D< Type > & | other | ) |
Comparison operator.
Definition at line 193 of file usImagePostScan2D.h.
References usImagePostScan2D< Type >::getHeightResolution(), and usImagePostScan2D< Type >::getWidthResolution().
|
inherited |
Compare two probe transducer settings.
Definition at line 111 of file usTransducerSettings.cpp.
References usTransducerSettings::getSamplingFrequency(), usTransducerSettings::getScanLineNumber(), usTransducerSettings::getScanLinePitch(), usTransducerSettings::getTransducerRadius(), usTransducerSettings::getTransmitFrequency(), and usTransducerSettings::isTransducerConvex().
Referenced by usTransducerSettings::operator!=(), and usImagePostScan3D< Type >::operator==().
|
inherited |
Getter to know if the scan line number is set (usefull in case of field of view setter call).
Definition at line 277 of file usTransducerSettings.cpp.
Referenced by usTransducerSettings::operator=().
void usImagePostScan2D< Type >::setData | ( | const vpImage< Type > & | image | ) |
Setter that updates 2D post-scan image data.
image | Data to set. |
Definition at line 214 of file usImagePostScan2D.h.
|
inherited |
Setter for depth : distance in meters between first and last pixel in a scan line.
depth | Distance in meters. |
Definition at line 283 of file usTransducerSettings.cpp.
Referenced by usMHDSequenceReader::acquire(), usPreScanToPostScan2DConverter::convert(), usNetworkGrabberPreScan2D::dataArrived(), usNetworkGrabberPreScan3D::dataArrived(), usNetworkGrabberRF3D::dataArrived(), usMHDSequenceReader::getImage(), and usImageIo::read().
|
inherited |
Setter for the transducer field of view (updates the scan line pitch).
fieldOfView | The transducer field of view in radians if the transducer is convex, in meters if the transducer is linear. |
Definition at line 265 of file usTransducerSettings.cpp.
Referenced by usPostScanToPreScan2DConverter::convert().
void usImagePostScan2D< Type >::setHeightResolution | ( | double | heightResolution | ) |
Setter for pixel height resolution.
heightResolution | Height of a pixel (in meters). |
Definition at line 235 of file usImagePostScan2D.h.
Referenced by usPreScanToPostScan2DConverter::convert(), usVTKConverter::convert(), and usImageIo::read().
|
inherited |
Setter for the probe name.
probeName | Name of the probe. |
Definition at line 238 of file usTransducerSettings.cpp.
|
inherited |
Setter for sampling frequency : frequency used to sample the echo of the ultrasound wave.
samplingFrequency | Frequency in Hz. |
Definition at line 317 of file usTransducerSettings.cpp.
Referenced by usMHDSequenceReader::acquire(), usNetworkGrabberPreScan2D::dataArrived(), usNetworkGrabberPreScan3D::dataArrived(), usNetworkGrabberRF3D::dataArrived(), usMHDSequenceReader::getImage(), usImageIo::read(), usImageSettingsXmlParser::readMainClass(), and usImageSettingsXmlParser::setImageSettings().
|
inherited |
Setter for the scan line number.
scanLineNumber | Number of scan lines acquired by the probe transducer. |
Definition at line 222 of file usTransducerSettings.cpp.
Referenced by usMHDSequenceReader::acquire(), usPreScanToPostScan2DConverter::convert(), usMHDSequenceReader::getImage(), usImageIo::read(), usImageSettingsXmlParser::readMainClass(), usImagePreScan2D< Type >::resize(), usImagePreScan3D< Type >::resize(), usImageRF3D< Type >::resize(), usImageSettingsXmlParser::setImageSettings(), usImagePreScan2D< Type >::setScanLineNumber(), usImagePreScan3D< Type >::setScanLineNumber(), usImageRF2D< Type >::setScanLineNumber(), usImageRF3D< Type >::setScanLineNumber(), and usImagePreScan2D< Type >::usImagePreScan2D().
|
inherited |
Set the scan line pitch.
scanLinePitch | If the probe transducer is convex, this parameters refers to the angle in radians between two successive scan lines acquired by the transducer. If the probe is linear, this parameters refers to the distance in meters between two successive scan lines acquired by the transducer. |
Definition at line 171 of file usTransducerSettings.cpp.
Referenced by usMHDSequenceReader::acquire(), usPreScanToPostScan2DConverter::convert(), usNetworkGrabberPreScan2D::dataArrived(), usNetworkGrabberPreScan3D::dataArrived(), usNetworkGrabberRF3D::dataArrived(), usMHDSequenceReader::getImage(), usImageIo::read(), usImageSettingsXmlParser::readMainClass(), and usImageSettingsXmlParser::setImageSettings().
|
inherited |
Set the probe transducer type.
isTransducerConvex | True if the transducer is convex, false if the transducer is linear. Sets the probe transducer radius to 0 in case of a linear transducer. |
Definition at line 189 of file usTransducerSettings.cpp.
References usTransducerSettings::isTransducerConvex().
Referenced by usMHDSequenceReader::acquire(), usPostScanToPreScan2DConverter::convert(), usPreScanToPostScan2DConverter::convert(), usNetworkGrabberPreScan2D::dataArrived(), usNetworkGrabberPreScan3D::dataArrived(), usNetworkGrabberRF3D::dataArrived(), usMHDSequenceReader::getImage(), usImageIo::read(), usImageSettingsXmlParser::readMainClass(), and usImageSettingsXmlParser::setImageSettings().
|
inherited |
Set the probe transducer radius (m).
transducerRadius | Probe transducer radius in meters. The probe transducer radius is set to 0 in case of a linear probe. See isTransducerConvex() and setProbeConvex(bool) for more information. |
Definition at line 157 of file usTransducerSettings.cpp.
Referenced by usMHDSequenceReader::acquire(), usPostScanToPreScan2DConverter::convert(), usPreScanToPostScan2DConverter::convert(), usNetworkGrabberPreScan2D::dataArrived(), usNetworkGrabberPreScan3D::dataArrived(), usNetworkGrabberRF3D::dataArrived(), usMHDSequenceReader::getImage(), usImageIo::read(), usImageSettingsXmlParser::readMainClass(), and usImageSettingsXmlParser::setImageSettings().
|
inherited |
Assignment operator.
other | Settings you want to assign. |
Definition at line 210 of file usTransducerSettings.cpp.
Referenced by usPreScanToPostScan3DConverter::convert().
|
inherited |
Setter for transmit frequency : frequency of the ultrasound wave used.
transmitFrequency | Frequency in Hz. |
Definition at line 326 of file usTransducerSettings.cpp.
Referenced by usMHDSequenceReader::acquire(), usNetworkGrabberPreScan2D::dataArrived(), usNetworkGrabberPreScan3D::dataArrived(), usNetworkGrabberRF3D::dataArrived(), usMHDSequenceReader::getImage(), usImageIo::read(), usImageSettingsXmlParser::readMainClass(), and usImageSettingsXmlParser::setImageSettings().
void usImagePostScan2D< Type >::setWidthResolution | ( | double | widthResolution | ) |
Setter for pixel width resolution.
widthResolution | Width of a pixel (in meters). |
Definition at line 244 of file usImagePostScan2D.h.
Referenced by usMHDSequenceReader::acquire(), usPreScanToPostScan2DConverter::convert(), usVTKConverter::convert(), usMHDSequenceReader::getImage(), and usImageIo::read().