UsTK : Ultrasound ToolKit
version 2.0.1 under development (2024-12-17)
|
#include <visp3/ustk_core/usImage3D.h>
Public Member Functions | |
usImage3D () | |
usImage3D (unsigned int height, unsigned int width, unsigned int frameNumber) | |
usImage3D (unsigned int height, unsigned int width, unsigned int frameNumber, Type initialValue) | |
usImage3D (const usImage3D< Type > &image, const bool copy=true) | |
virtual | ~usImage3D () |
Inherited functionalities from usImage3D | |
Type * | getConstData () const |
Type * | getData () |
Type * | getData (unsigned int i, unsigned int j, unsigned int k) |
unsigned int | getWidth () const |
unsigned int | getHeight () const |
unsigned int | getNumberOfFrames () const |
unsigned int | getSize () const |
void | initData (Type value) |
usImage3D< Type > & | operator= (const usImage3D< Type > &other) |
bool | operator== (const usImage3D< Type > &other) |
Type | operator() (unsigned int i, unsigned int j, unsigned int k) const |
void | operator() (unsigned int i, unsigned int j, unsigned int k, Type value) |
void | resize (unsigned int height, unsigned int width, unsigned int numberOfFrames) |
void | setData (Type *data, int numberOfVoxels) |
Representation of a physical image volume.
This class is used to represent 3D ultrasoubd data with physical information.
Definition at line 60 of file usImage3D.h.
Constructor.
Definition at line 281 of file usImage3D.h.
usImage3D< Type >::usImage3D | ( | unsigned int | height, |
unsigned int | width, | ||
unsigned int | frameNumber | ||
) |
Constructor. Set the dimensions of the volume. Initialize the data container with default value.
height | Volume height. |
width | Volume width. |
frameNumber | Volume size in the third dimension (orthogonal to ultrasound 2D frames). |
Definition at line 286 of file usImage3D.h.
References usImage3D< Type >::initData().
usImage3D< Type >::usImage3D | ( | unsigned int | height, |
unsigned int | width, | ||
unsigned int | frameNumber, | ||
Type | initialValue | ||
) |
Constructor. Set the dimensions of the volume. Initialize the data container with the specified value.
height | Volume height. |
width | Volume width. |
frameNumber | Volume size in the third dimension (orthogonal to ultrasound 2D frames). |
initialValue | The initial data |
Definition at line 294 of file usImage3D.h.
References usImage3D< Type >::initData().
usImage3D< Type >::usImage3D | ( | const usImage3D< Type > & | image, |
const bool | copy = true |
||
) |
Copy constructor. By default performs a deep copy.
image | other 3D-image to copy |
copy | boolean to select if deep copy is performed or not (deep copy by default) |
Definition at line 302 of file usImage3D.h.
References usImage3D< Type >::getHeight(), usImage3D< Type >::getNumberOfFrames(), and usImage3D< Type >::getWidth().
Destructor.
Definition at line 312 of file usImage3D.h.
|
inline |
Get the pointer to the const data container.
Definition at line 104 of file usImage3D.h.
Referenced by usVolumeProcessing::absoluteDifference(), usVTKConverter::convert(), usPreScanToPostScan3DConverter::convert(), usVolumeProcessing::difference(), usVolumeProcessing::frangi(), usVolumeProcessing::gradient(), usVolumeProcessing::hessian(), usVolumeProcessing::max(), usVolumeProcessing::min(), usVolumeProcessing::norm(), and usImage3D< Type >::operator==().
|
inline |
Get the pointer to the data container.
Definition at line 110 of file usImage3D.h.
Referenced by usVolumeProcessing::absoluteDifference(), usPreScanToPostScan3DConverter::convert(), usVolumeProcessing::difference(), usVolumeProcessing::frangi(), usVolumeProcessing::gradient(), usVolumeProcessing::hessian(), and usVolumeProcessing::norm().
|
inline |
Get the pointer to the data container for specified position in the volume.
i | Index on i-axis to acess |
j | Index on j-axis to acess |
k | Index on k-axis to acess |
Definition at line 119 of file usImage3D.h.
|
inline |
Get the volume height.
Definition at line 131 of file usImage3D.h.
Referenced by usVolumeProcessing::absoluteDifference(), usVolumeProcessing::applyFilter(), usVolumeProcessing::computeBarycenter(), usVTKConverter::convert(), usRFToPreScan3DConverter::convert(), usPreScanToPostScan3DConverter::convert(), usVolumeProcessing::derivativeI(), usVolumeProcessing::derivativeJ(), usVolumeProcessing::derivativeK(), usVolumeProcessing::difference(), usVolumeProcessing::frangi(), usImagePreScan3D< Type >::getBModeSampleNumber(), usVolumeProcessing::gradient(), usVolumeProcessing::hessian(), usPreScanToPostScan3DConverter::init(), usVolumeProcessing::norm(), usImage3D< Type >::operator==(), usImage3D< Type >::usImage3D(), usMHDSequenceWriter::write(), and usImageIo::write().
|
inline |
Get the volume size along the k-axis (frame nubmer).
Definition at line 137 of file usImage3D.h.
Referenced by usVolumeProcessing::absoluteDifference(), usVolumeProcessing::applyFilter(), usVolumeProcessing::computeBarycenter(), usPixelMeterConversion::convert(), usMeterPixelConversion::convert(), usVTKConverter::convert(), usPreScanToPostScan3DConverter::convert(), usVolumeProcessing::derivativeI(), usVolumeProcessing::derivativeJ(), usVolumeProcessing::derivativeK(), usVolumeProcessing::difference(), usVolumeProcessing::frangi(), usVolumeProcessing::gradient(), usVolumeProcessing::hessian(), usPreScanToPostScan3DConverter::init(), usVolumeProcessing::norm(), usImage3D< Type >::operator==(), usImagePreScan3D< Type >::setData(), usImage3D< Type >::usImage3D(), usImagePreScan3D< Type >::usImagePreScan3D(), usMHDSequenceWriter::write(), and usImageIo::write().
|
inline |
Get the volume size.
Definition at line 143 of file usImage3D.h.
Referenced by usVolumeProcessing::absoluteDifference(), usVolumeProcessing::difference(), usVolumeProcessing::frangi(), usVolumeProcessing::gradient(), usVolumeProcessing::hessian(), usVolumeProcessing::max(), usVolumeProcessing::min(), and usVolumeProcessing::norm().
|
inline |
Get the volume width.
Definition at line 125 of file usImage3D.h.
Referenced by usVolumeProcessing::absoluteDifference(), usVolumeProcessing::applyFilter(), usVolumeProcessing::computeBarycenter(), usPixelMeterConversion::convert(), usMeterPixelConversion::convert(), usVTKConverter::convert(), usPreScanToPostScan3DConverter::convert(), usVolumeProcessing::derivativeI(), usVolumeProcessing::derivativeJ(), usVolumeProcessing::derivativeK(), usVolumeProcessing::difference(), usVolumeProcessing::frangi(), usVolumeProcessing::gradient(), usVolumeProcessing::hessian(), usPreScanToPostScan3DConverter::init(), usVolumeProcessing::norm(), usImage3D< Type >::operator==(), usImagePreScan3D< Type >::setData(), usImage3D< Type >::usImage3D(), usImagePreScan3D< Type >::usImagePreScan3D(), usMHDSequenceWriter::write(), and usImageIo::write().
void usImage3D< Type >::initData | ( | Type | value | ) |
Initialize the data container with the specified value.
value | The data |
Definition at line 367 of file usImage3D.h.
Referenced by usVolumeProcessing::applyFilter(), usPreScanToPostScan3DConverter::convert(), and usImage3D< Type >::usImage3D().
|
inline |
Access operator.
i | Index on i-axis to acess |
j | Index on j-axis to acess |
k | Index on k-axis to acess |
Definition at line 169 of file usImage3D.h.
|
inline |
Modification operator.
i | Index on i-axis to modify |
j | Index on j-axis to modify |
k | Index on k-axis to modify |
value | Value to insert at the desired index |
Definition at line 181 of file usImage3D.h.
usImage3D< Type > & usImage3D< Type >::operator= | ( | const usImage3D< Type > & | other | ) |
Assignment operator.
other | other 3D-image to copy |
Definition at line 324 of file usImage3D.h.
Referenced by usImagePostScan3D< Type >::operator=(), usImagePreScan3D< Type >::operator=(), usImagePreScan3D< Type >::setData(), and usImagePostScan3D< Type >::setData().
Comparison operator.
other | The 3d image to compare. Comparing image parameters, and all volume voxel by voxel. |
Definition at line 332 of file usImage3D.h.
References usImage3D< Type >::getConstData(), usImage3D< Type >::getHeight(), usImage3D< Type >::getNumberOfFrames(), and usImage3D< Type >::getWidth().
Referenced by usImagePostScan3D< Type >::operator==().
void usImage3D< Type >::resize | ( | unsigned int | height, |
unsigned int | width, | ||
unsigned int | numberOfFrames | ||
) |
Resize the image if needed (if new dimensions differ from old ones).
height | The volume size along i axis. |
width | The volume size along j axis. |
numberOfFrames | The volume size along k axis. |
Definition at line 376 of file usImage3D.h.
Referenced by usVolumeProcessing::absoluteDifference(), usSequenceReader3D< ImageType >::acquire(), usMHDSequenceReader::acquire(), usVolumeProcessing::applyFilter(), usPreScanToPostScan3DConverter::convert(), usVolumeProcessing::derivativeI(), usVolumeProcessing::derivativeJ(), usVolumeProcessing::derivativeK(), usVolumeProcessing::difference(), usVolumeProcessing::frangi(), usMHDSequenceReader::getImage(), usVolumeProcessing::gradient(), usVolumeProcessing::hessian(), usVolumeProcessing::norm(), usImageIo::read(), usImagePreScan3D< Type >::resize(), usElastography3D::run(), usImagePreScan3D< Type >::setFrameNumber(), and usImagePreScan3D< Type >::setScanLineNumber().
void usImage3D< Type >::setData | ( | Type * | data, |
int | numberOfVoxels | ||
) |
Set the data container.
data | The data container. |
numberOfVoxels | The number of voxels in the image. |
Definition at line 354 of file usImage3D.h.