gVirtualXRay  2.0.10
VirtualX-RayImagingLibraryonGPU
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes
gVirtualXRay::Image< T > Class Template Reference

Image is a class to manage a greyscale image. More...

#include <Image.h>

Inheritance diagram for gVirtualXRay::Image< T >:
Inheritance graph
Collaboration diagram for gVirtualXRay::Image< T >:
Collaboration graph

Public Member Functions

 Image ()
 Default constructor. More...
 
 Image (const Image< T > &anImage)
 Copy constructor. More...
 
 Image (const char *aFileName)
 Constructor. More...
 
 Image (const std::string &aFileName)
 Constructor. More...
 
 Image (const T *apData, unsigned int aWidth, unsigned int aHeight, unsigned int aNumberOfSlices=1, const VEC3 &aVoxelSize=VEC3(1, 1, 1))
 Constructor from an array. More...
 
 Image (unsigned int aWidth, unsigned int aHeight, unsigned int aNumberOfSlices=1, T aDefaultValue=0, const VEC3 &aVoxelSize=VEC3(1, 1, 1))
 Constructor to build a black image. More...
 
 ~Image ()
 Destructor. More...
 
void makeBlank (const T &aDefaultColour=0)
 Replace all the pixels of an image with a default value. More...
 
Image getROI (unsigned int i, unsigned int j, unsigned int k, unsigned int aWidth, unsigned int aHeight, unsigned int aDepth) const
 Compute a region of interest (ROI). More...
 
void setPixel (unsigned int i, unsigned int j, unsigned int k, T aValue)
 Set a pixel. More...
 
T & getPixel (unsigned int i, unsigned int j, unsigned int k=0)
 Accessor on a pixel value. More...
 
const T & getPixel (unsigned int i, unsigned int j, unsigned int k=0) const
 Accessor on a pixel value. More...
 
T & getPixelValue (unsigned int i, unsigned int j, unsigned int k=0)
 Accessor on a pixel value. More...
 
const T & getPixelValue (unsigned int i, unsigned int j, unsigned int k=0) const
 Accessor on a pixel value. More...
 
VEC3 getPixelPosition (unsigned int i, unsigned int j, unsigned int k=0) const
 Accessor on a pixel position. More...
 
T & operator[] (unsigned anIndex)
 
const T & operator[] (unsigned anIndex) const
 
T & operator() (unsigned int i, unsigned int j, unsigned int k)
 
const T & operator() (unsigned int i, unsigned int j, unsigned int k) const
 
Image< T > & operator= (const Image< T > &anImage)
 Assignment operator (also called copy operator). More...
 
Image< T > & operator= (const T *apImage)
 Assignment operator (also called copy operator). More...
 
void destroy ()
 Release the memory. More...
 
T * getRawData ()
 Accessor on the raw data. More...
 
const T * getRawData () const
 Accessor on the raw data. More...
 
unsigned int getWidth () const
 Number of pixels along the horizontal axis. More...
 
unsigned int getHeight () const
 Number of pixels along the vertical axis. More...
 
unsigned int getDepth () const
 Number of pixels along the Z axis. More...
 
void setSpacing (const VEC3 &aPixelSize)
 
void setSpacing (const double &aPixelWidth, const double &aPixelHeight=0.0, const double &aPixelDepth=0.0)
 
const VEC3getSpacing () const
 
getMinValue () const
 Compute the minimum pixel value in the image. More...
 
getMaxValue () const
 Compute the maximum pixel value in the image. More...
 
getMinValue (unsigned int aSliceID) const
 Compute the minimum pixel value in a given slice. More...
 
getMaxValue (unsigned int aSliceID) const
 Compute the maximum pixel value in a given slice. More...
 
Image shiftScaleFilter (double aShiftValue, double aScaleValue, bool aRunOnGPUFlag=true) const
 
Image< unsigned char > threshold (const T &aLowerThreshold, const T &aUpperThreshold, unsigned char anInValue, unsigned char anOutValue, bool aRunOnGPUFlag=true) const
 
Image< T > convolution1D (const std::vector< float > &aKernel) const
 
Image< T > convolution2D (const Image< float > &aKernel) const
 
Image< T > convolution2D (const Image< double > &aKernel) const
 
Image< unsigned char > opening (unsigned int aRadius) const
 
Image< unsigned char > closing (unsigned int aRadius) const
 
Image< float > getIsoTropic () const
 
Image< float > antiAliasBinaryImageFilter (double aMaximumRMSChange, unsigned int aNumberOfIterations, double aVariance) const
 
Image constantPadFilter (const T &aPadValue) const
 
Image< unsigned char > threshold (const T &aThreshold, unsigned char aValueIn=1, unsigned char aValueOut=0) const
 
Image< unsigned char > threshold (const T &aLowerThreshold, const T &aUpperThreshold, unsigned char aValueIn=1, unsigned char aValueOut=0) const
 
Image normalised () const
 Normalise the image between 0 and 1. More...
 
Image normalized () const
 Normalize the image between 0 and 1. More...
 
void load (const char *aFileName)
 
void load (const std::string &aFileName)
 
void loadUsingITK (const char *aFileName)
 
void loadUsingITK (const std::string &aFileName)
 
void loadSeries (const char *aPattern, int aFirstSliceIndex, int aLastSliceIndex, int anIncrementIndex=1)
 
void loadSeries (const std::string &aPattern, int aFirstSliceIndex, int aLastSliceIndex, int anIncrementIndex=1)
 
void loadDicomSeries (const char *aDirectory)
 
void loadDicomSeries (const std::string &aDirectory)
 
void loadASCII (const char *aFileName)
 
void loadASCII (const std::string &aFileName)
 
void loadASCII (const char *aFileName, unsigned int aWidth, unsigned int aHeight, unsigned int aDepth, const VEC3 &aVoxelSize)
 
void loadASCII (const std::string &aFileName, unsigned int aWidth, unsigned int aHeight, unsigned int aDepth, const VEC3 &aVoxelSize)
 
void loadMHD (const char *aFileName)
 
void loadMHD (const std::string &aFileName)
 
void loadMHA (const char *aFileName)
 
void loadMHA (const std::string &aFileName)
 
unsigned int sizeOf (const char *anElementType) const
 
unsigned int sizeOf (const std::string &anElementType) const
 
void loadRAW (const char *aFileName, unsigned int aWidth, unsigned int aHeight, unsigned int aNumberOfSlices=1, bool aChangeEndianessFlag=false, const char *anElementType=0)
 
void loadRAW (const std::string &aFileName, unsigned int aWidth, unsigned int aHeight, unsigned int aNumberOfSlices=1, bool aChangeEndianessFlag=false, const std::string &anElementType="")
 
void save (const char *aFileName, bool anInvertLUTFlag=false, const char *aComment="", bool useDeflateCompressionIfPossible=false) const
 Save the image in a file. More...
 
void save (const std::string &aFileName, bool anInvertLUTFlag=false, const std::string &aComment="", bool useDeflateCompressionIfPossible=false) const
 Save the image in a file. More...
 
void savePGM (const char *aFileName) const
 Save the image in a PGM file. More...
 
void savePGM (const std::string &aFileName) const
 Save the image in a PGM file. More...
 
void saveRaw (const char *aFileName, bool useDeflateCompressionIfPossible) const
 Save the image in a Raw file. More...
 
void saveRaw (const std::string &aFileName, bool useDeflateCompressionIfPossible) const
 Save the image in a Raw file. More...
 
void saveRAW (const char *aFileName, bool useDeflateCompressionIfPossible) const
 Save the image in a Raw file. More...
 
void saveRAW (const std::string &aFileName, bool useDeflateCompressionIfPossible) const
 Save the image in a Raw file. More...
 
void saveASCII (const char *aFileName) const
 Save the image in an ASCII file. More...
 
void saveASCII (const std::string &aFileName) const
 Save the image in an ASCII file. More...
 
void saveMHD (const char *aFileName, bool useDeflateCompressionIfPossible=false) const
 Save the image in a MHD+RAW file. More...
 
void saveMHD (const std::string &aFileName, bool useDeflateCompressionIfPossible=false) const
 Save the image in a MHD+RAW file. More...
 
void saveMHA (const char *aFileName, bool useDeflateCompressionIfPossible=false) const
 Save the image in a MHA+RAW file. More...
 
void saveMHA (const std::string &aFileName, bool useDeflateCompressionIfPossible=false) const
 Save the image in a MHA+RAW file. More...
 
void saveDCM (const char *aFileName, bool anInvertLUTFlag=false, const char *aComment="") const
 Save the image in a DICOM file. More...
 
void saveDCM (const std::string &aFileName, bool anInvertLUTFlag=false, const std::string &aComment="") const
 Save the image in a DICOM file. More...
 
void saveTIFF (const char *aFileName, bool anInvertLUTFlag=false) const
 Save the image in a TIFF file. More...
 
void saveTIFF (const std::string &aFileName, bool anInvertLUTFlag=false) const
 Save the image in a TIFF file. More...
 
void saveUsingITK (const char *aFileName, bool useDeflateCompressionIfPossible=false) const
 Save the image in a file using ITK. More...
 
void saveUsingITK (const std::string &aFileName, bool useDeflateCompressionIfPossible=false) const
 Save the image in a file using ITK. More...
 
bool operator== (const Image< T > &anImage) const
 Operator Equal to. More...
 
bool operator!= (const Image< T > &anImage) const
 Operator Not equal to. More...
 
Image operator+ (const Image< T > &anImage) const
 Addition operator. Add anImage. More...
 
Image operator- (const Image< T > &anImage) const
 Subtraction operator. Add anImage. More...
 
Image operator* (const Image< T > &anImage) const
 Multiplication operator. Add anImage. More...
 
Image operator/ (const Image< T > &anImage) const
 Division operator. Add anImage. More...
 
Image< T > & operator+= (const Image< T > &anImage)
 Addition assignment operator. Add anImage. More...
 
Image< T > & operator-= (const Image< T > &anImage)
 Subraction assignment operator. Add anImage. More...
 
Image< T > & operator*= (const Image< T > &anImage)
 Multiplication assignment operator. Add anImage. More...
 
Image< T > & operator/= (const Image< T > &anImage)
 Division assignment operator. Add anImage. More...
 
Image operator+ (T aValue) const
 Addition operator. Add aValue to every pixel of the image. More...
 
Image operator- (T aValue) const
 Subtraction operator. Subtract aValue to every pixel of the image. More...
 
Image operator* (T aValue) const
 Multiplication operator. Multiply every pixel of the image by aValue. More...
 
Image operator/ (T aValue) const
 Division operator. Divide every pixel of the image by aValue. More...
 
Image< T > & operator+= (T aValue)
 Addition operator. Add aValue to every pixel of the image. More...
 
Image< T > & operator-= (T aValue)
 Subtraction operator. Subtract aValue to every pixel of the image. More...
 
Image< T > & operator*= (T aValue)
 Multiplication operator. Multiply every pixel of the image by aValue. More...
 
Image< T > & operator/= (T aValue)
 Division operator. Divide every pixel of the image by aValue. More...
 
Image operator! () const
 Negation operator. Compute the negative of the current image. More...
 
Image< T > abs () const
 
Image< T > log () const
 
Image< T > flipVertically () const
 
Image< T > flipHorizontally () const
 
double getSum () const
 
double getAverage () const
 
double getVariance () const
 
double getStandardDeviation () const
 
double computeSAE (const Image< T > &anImage) const
 
double computeMAE (const Image< T > &anImage) const
 
double computeSSE (const Image< T > &anImage) const
 
double computeMSE (const Image< T > &anImage) const
 
double computeRMSE (const Image< T > &anImage) const
 
double computeNCC (const Image< T > &anImage) const
 
gVirtualXRay::FFT< T > getFFT () const
 
Image< T > transpose () const
 
Image< T > resize (unsigned int aNewWidth, unsigned int aNewHeightunsigned, unsigned int aNewNumberOfSlices) const
 
Image< T > rotate (float anAngleInDegrees) const
 
Image< T > setCanvasSize (unsigned int aNewWidth, unsigned int aNewHeight, unsigned int aNewNumberOfSlices) const
 
gVirtualXRay::Sinogram< T > radonTransform (double aFirstAngle, double anAngleStep, double aLastAngle) const
 
PolygonMesh marchingCubes (const T &aFirstThresholdValue, const T &aSecondThresholdValue=0, bool aTwoThresholdFlag=false, unsigned char aVerboseLevel=0) const
 
void convertVoxelsToCubes (std::map< T, PolygonMesh > &aPolygonMeshSet, T aThreshold=-1000, unsigned char aVerboseLevel=0) const
 Convert every voxel into a cube. More...
 
Image< T > convertHU2mu (double anEnergy) const
 
void allocateHostMemory ()
 
void transferHostToDevice ()
 
void transferDeviceToHost ()
 
void destroyOpenGLTexture ()
 
unsigned int getTextureId () const
 

Protected Member Functions

VEC3 VertexInterp (const T &aThresholdValue, const VEC3 &p0, const VEC3 &p1, const T &v0, const T &v1) const
 

Protected Attributes

unsigned int m_width
 Number of pixel along the horizontal axis. More...
 
unsigned int m_height
 Number of pixel along the vertical axis. More...
 
unsigned int m_number_of_slices
 Number of slices. More...
 
VEC3 m_spacing
 The space between two successive pixels. More...
 
T * m_p_image
 The pixel data. More...
 
unsigned int m_texture_id
 OpenGL texture ID. More...
 

Static Protected Attributes

static unsigned int g_mesh_type
 
static unsigned int g_vbo_type
 

Detailed Description

template<typename T>
class gVirtualXRay::Image< T >

Image is a class to manage a greyscale image.

Definition at line 92 of file Image.h.

Constructor & Destructor Documentation

◆ Image() [1/6]

template<typename T >
gVirtualXRay::Image< T >::Image ( )

Default constructor.

Definition at line 184 of file Image.inl.

◆ Image() [2/6]

template<typename T>
gVirtualXRay::Image< T >::Image ( const Image< T > &  anImage)

Copy constructor.

Parameters
anImagethe image to copy

Definition at line 197 of file Image.inl.

◆ Image() [3/6]

template<typename T>
gVirtualXRay::Image< T >::Image ( const char *  aFileName)

Constructor.

Parameters
aFileNamethe name of the file to load

Definition at line 219 of file Image.inl.

◆ Image() [4/6]

template<typename T>
gVirtualXRay::Image< T >::Image ( const std::string &  aFileName)

Constructor.

Parameters
aFileNamethe name of the file to load

Definition at line 234 of file Image.inl.

◆ Image() [5/6]

template<typename T>
gVirtualXRay::Image< T >::Image ( const T *  apData,
unsigned int  aWidth,
unsigned int  aHeight,
unsigned int  aNumberOfSlices = 1,
const VEC3 aVoxelSize = VEC3(1, 1, 1) 
)

Constructor from an array.

Parameters
apDatathe array to copy
aWidththe width of the image
aHeightthe height of the image
aNumberOfSlicesthe number of slices (default value: 1)
aVoxelSizethe physical distance between the centres of each three-dimensional voxel, specified by three numeric values (default value: 1, 1, 1)

Definition at line 249 of file Image.inl.

◆ Image() [6/6]

template<typename T>
gVirtualXRay::Image< T >::Image ( unsigned int  aWidth,
unsigned int  aHeight,
unsigned int  aNumberOfSlices = 1,
aDefaultValue = 0,
const VEC3 aVoxelSize = VEC3(1, 1, 1) 
)

Constructor to build a black image.

Parameters
aWidththe width of the image
aHeightthe height of the image
aNumberOfSlicesthe number of slices (default value: 1)
aDefaultValuethe pixel value (default value: 0)
aVoxelSizethe physical distance between the centres of each three-dimensional voxel, specified by three numeric values (default value: 1, 1, 1)

Definition at line 275 of file Image.inl.

◆ ~Image()

template<typename T >
gVirtualXRay::Image< T >::~Image ( )

Destructor.

Definition at line 301 of file Image.inl.

Member Function Documentation

◆ abs()

template<typename T >
Image< T > gVirtualXRay::Image< T >::abs ( ) const

Definition at line 2103 of file Image.inl.

◆ allocateHostMemory()

template<typename T>
void gVirtualXRay::Image< T >::allocateHostMemory ( )

◆ antiAliasBinaryImageFilter()

template<typename T >
Image< float > gVirtualXRay::Image< T >::antiAliasBinaryImageFilter ( double  aMaximumRMSChange,
unsigned int  aNumberOfIterations,
double  aVariance 
) const

Definition at line 1857 of file Image.inl.

◆ closing()

template<typename T >
Image< unsigned char > gVirtualXRay::Image< T >::closing ( unsigned int  aRadius) const

Definition at line 1555 of file Image.inl.

◆ computeMAE()

template<typename T>
double gVirtualXRay::Image< T >::computeMAE ( const Image< T > &  anImage) const

Definition at line 3643 of file Image.inl.

◆ computeMSE()

template<typename T>
double gVirtualXRay::Image< T >::computeMSE ( const Image< T > &  anImage) const

Definition at line 3678 of file Image.inl.

◆ computeNCC()

template<typename T>
double gVirtualXRay::Image< T >::computeNCC ( const Image< T > &  anImage) const

Definition at line 3694 of file Image.inl.

◆ computeRMSE()

template<typename T>
double gVirtualXRay::Image< T >::computeRMSE ( const Image< T > &  anImage) const

Definition at line 3686 of file Image.inl.

◆ computeSAE()

template<typename T>
double gVirtualXRay::Image< T >::computeSAE ( const Image< T > &  anImage) const

Definition at line 3620 of file Image.inl.

◆ computeSSE()

template<typename T>
double gVirtualXRay::Image< T >::computeSSE ( const Image< T > &  anImage) const

Definition at line 3651 of file Image.inl.

◆ constantPadFilter()

template<typename T>
Image< T > gVirtualXRay::Image< T >::constantPadFilter ( const T &  aPadValue) const

Definition at line 1927 of file Image.inl.

◆ convertHU2mu()

template<typename T>
Image<T> gVirtualXRay::Image< T >::convertHU2mu ( double  anEnergy) const

◆ convertVoxelsToCubes()

template<typename T>
void gVirtualXRay::Image< T >::convertVoxelsToCubes ( std::map< T, PolygonMesh > &  aPolygonMeshSet,
aThreshold = -1000,
unsigned char  aVerboseLevel = 0 
) const

Convert every voxel into a cube.

Parameters
aPolygonMeshSetthe set of polygon mesh
aThresholdthe iso-value. Any voxel above the iso-value is part of the selected object. Other voxels are ignored.
aVerboseLevelthe level of statements in the standard output. For no output, use 0 (default value: 0)

◆ convolution1D()

template<typename T >
Image< T > gVirtualXRay::Image< T >::convolution1D ( const std::vector< float > &  aKernel) const

Definition at line 1360 of file Image.inl.

◆ convolution2D() [1/2]

template<typename T >
Image< T > gVirtualXRay::Image< T >::convolution2D ( const Image< float > &  aKernel) const

Definition at line 1396 of file Image.inl.

◆ convolution2D() [2/2]

template<typename T >
Image< T > gVirtualXRay::Image< T >::convolution2D ( const Image< double > &  aKernel) const

Definition at line 1442 of file Image.inl.

◆ destroy()

template<typename T >
void gVirtualXRay::Image< T >::destroy ( )

Release the memory.

Definition at line 694 of file Image.inl.

◆ destroyOpenGLTexture()

template<typename T >
void gVirtualXRay::Image< T >::destroyOpenGLTexture ( )

Definition at line 5046 of file Image.inl.

◆ flipHorizontally()

template<typename T >
Image< T > gVirtualXRay::Image< T >::flipHorizontally ( ) const

Definition at line 2071 of file Image.inl.

◆ flipVertically()

template<typename T >
Image< T > gVirtualXRay::Image< T >::flipVertically ( ) const

Definition at line 2039 of file Image.inl.

◆ getAverage()

template<typename T >
double gVirtualXRay::Image< T >::getAverage ( ) const

Definition at line 3585 of file Image.inl.

◆ getDepth()

template<typename T >
unsigned int gVirtualXRay::Image< T >::getDepth ( ) const

Number of pixels along the Z axis.

Returns
the depth

Definition at line 800 of file Image.inl.

◆ getFFT()

template<typename T >
FFT< T > gVirtualXRay::Image< T >::getFFT ( ) const

Definition at line 3721 of file Image.inl.

◆ getHeight()

template<typename T >
unsigned int gVirtualXRay::Image< T >::getHeight ( ) const

Number of pixels along the vertical axis.

Returns
the height

Definition at line 792 of file Image.inl.

◆ getIsoTropic()

template<typename T >
Image< float > gVirtualXRay::Image< T >::getIsoTropic ( ) const

Definition at line 1623 of file Image.inl.

◆ getMaxValue() [1/2]

template<typename T >
T gVirtualXRay::Image< T >::getMaxValue ( ) const

Compute the maximum pixel value in the image.

Returns
the maximum pixel

Definition at line 850 of file Image.inl.

◆ getMaxValue() [2/2]

template<typename T >
T gVirtualXRay::Image< T >::getMaxValue ( unsigned int  aSliceID) const

Compute the maximum pixel value in a given slice.

Parameters
aSliceIDthe slice ID
Returns
the maximum pixel

Definition at line 878 of file Image.inl.

◆ getMinValue() [1/2]

template<typename T >
T gVirtualXRay::Image< T >::getMinValue ( ) const

Compute the minimum pixel value in the image.

Returns
the minimum pixel

Definition at line 836 of file Image.inl.

◆ getMinValue() [2/2]

template<typename T >
T gVirtualXRay::Image< T >::getMinValue ( unsigned int  aSliceID) const

Compute the minimum pixel value in a given slice.

Parameters
aSliceIDthe slice ID
Returns
the minimum pixel

Definition at line 864 of file Image.inl.

◆ getPixel() [1/2]

template<typename T >
T & gVirtualXRay::Image< T >::getPixel ( unsigned int  i,
unsigned int  j,
unsigned int  k = 0 
)

Accessor on a pixel value.

Parameters
ithe position of the pixel along the x-axis
jthe position of the pixel along the y-axis
kthe position of the pixel along the z-axis (default value: 0)
Returns
the pixel value

Definition at line 582 of file Image.inl.

◆ getPixel() [2/2]

template<typename T >
const T & gVirtualXRay::Image< T >::getPixel ( unsigned int  i,
unsigned int  j,
unsigned int  k = 0 
) const

Accessor on a pixel value.

Parameters
ithe position of the pixel along the x-axis
jthe position of the pixel along the y-axis
kthe position of the pixel along the z-axis (default value: 0)
Returns
the pixel value

Definition at line 600 of file Image.inl.

◆ getPixelPosition()

template<typename T >
VEC3 gVirtualXRay::Image< T >::getPixelPosition ( unsigned int  i,
unsigned int  j,
unsigned int  k = 0 
) const

Accessor on a pixel position.

Parameters
ithe position of the pixel along the x-axis
jthe position of the pixel along the y-axis
kthe position of the pixel along the z-axis (default value: 0)
Returns
the pixel position

Definition at line 638 of file Image.inl.

◆ getPixelValue() [1/2]

template<typename T >
T & gVirtualXRay::Image< T >::getPixelValue ( unsigned int  i,
unsigned int  j,
unsigned int  k = 0 
)

Accessor on a pixel value.

Parameters
ithe position of the pixel along the x-axis
jthe position of the pixel along the y-axis
kthe position of the pixel along the z-axis (default value: 0)
Returns
the pixel value

Definition at line 618 of file Image.inl.

◆ getPixelValue() [2/2]

template<typename T >
const T & gVirtualXRay::Image< T >::getPixelValue ( unsigned int  i,
unsigned int  j,
unsigned int  k = 0 
) const

Accessor on a pixel value.

Parameters
ithe position of the pixel along the x-axis
jthe position of the pixel along the y-axis
kthe position of the pixel along the z-axis (default value: 0)
Returns
the pixel value

Definition at line 628 of file Image.inl.

◆ getRawData() [1/2]

template<typename T >
T * gVirtualXRay::Image< T >::getRawData ( )

Accessor on the raw data.

Returns
the raw data

Definition at line 717 of file Image.inl.

◆ getRawData() [2/2]

template<typename T >
const T * gVirtualXRay::Image< T >::getRawData ( ) const

Accessor on the raw data.

Returns
the raw data

Definition at line 725 of file Image.inl.

◆ getROI()

template<typename T >
Image< T > gVirtualXRay::Image< T >::getROI ( unsigned int  i,
unsigned int  j,
unsigned int  k,
unsigned int  aWidth,
unsigned int  aHeight,
unsigned int  aDepth 
) const

Compute a region of interest (ROI).

Parameters
ithe position of the first pixel of the ROI along the horizontal axis
jthe position of the first pixel of the ROI along the vertical axis
kthe position of the first pixel of the ROI along the depth axis
aWidththe width of the ROI (in number of pixels)
aHeightthe height of the ROI (in number of pixels)
aDepththe depth of the ROI (in number of pixels)
Returns
the ROI

Definition at line 509 of file Image.inl.

◆ getSpacing()

template<typename T >
const VEC3 & gVirtualXRay::Image< T >::getSpacing ( ) const

Definition at line 828 of file Image.inl.

◆ getStandardDeviation()

template<typename T >
double gVirtualXRay::Image< T >::getStandardDeviation ( ) const

Definition at line 3612 of file Image.inl.

◆ getSum()

template<typename T >
double gVirtualXRay::Image< T >::getSum ( ) const

Definition at line 3569 of file Image.inl.

◆ getTextureId()

template<typename T >
unsigned int gVirtualXRay::Image< T >::getTextureId ( ) const

Definition at line 5058 of file Image.inl.

◆ getVariance()

template<typename T >
double gVirtualXRay::Image< T >::getVariance ( ) const

Definition at line 3593 of file Image.inl.

◆ getWidth()

template<typename T >
unsigned int gVirtualXRay::Image< T >::getWidth ( ) const

Number of pixels along the horizontal axis.

Returns
the width

Definition at line 784 of file Image.inl.

◆ load() [1/2]

template<typename T >
void gVirtualXRay::Image< T >::load ( const char *  aFileName)

Definition at line 2155 of file Image.inl.

◆ load() [2/2]

template<typename T >
void gVirtualXRay::Image< T >::load ( const std::string &  aFileName)

Definition at line 2214 of file Image.inl.

◆ loadASCII() [1/4]

template<typename T >
void gVirtualXRay::Image< T >::loadASCII ( const char *  aFileName)

Definition at line 351 of file Image.inl.

◆ loadASCII() [2/4]

template<typename T >
void gVirtualXRay::Image< T >::loadASCII ( const std::string &  aFileName)

Definition at line 419 of file Image.inl.

◆ loadASCII() [3/4]

template<typename T >
void gVirtualXRay::Image< T >::loadASCII ( const char *  aFileName,
unsigned int  aWidth,
unsigned int  aHeight,
unsigned int  aDepth,
const VEC3 aVoxelSize 
)

Definition at line 427 of file Image.inl.

◆ loadASCII() [4/4]

template<typename T >
void gVirtualXRay::Image< T >::loadASCII ( const std::string &  aFileName,
unsigned int  aWidth,
unsigned int  aHeight,
unsigned int  aDepth,
const VEC3 aVoxelSize 
)

Definition at line 494 of file Image.inl.

◆ loadDicomSeries() [1/2]

template<typename T >
void gVirtualXRay::Image< T >::loadDicomSeries ( const char *  aDirectory)

Definition at line 2363 of file Image.inl.

◆ loadDicomSeries() [2/2]

template<typename T >
void gVirtualXRay::Image< T >::loadDicomSeries ( const std::string &  aDirectory)

Definition at line 2423 of file Image.inl.

◆ loadMHA() [1/2]

template<typename T >
void gVirtualXRay::Image< T >::loadMHA ( const char *  aFileName)

Definition at line 2539 of file Image.inl.

◆ loadMHA() [2/2]

template<typename T >
void gVirtualXRay::Image< T >::loadMHA ( const std::string &  aFileName)

Definition at line 2531 of file Image.inl.

◆ loadMHD() [1/2]

template<typename T >
void gVirtualXRay::Image< T >::loadMHD ( const char *  aFileName)

Definition at line 2522 of file Image.inl.

◆ loadMHD() [2/2]

template<typename T >
void gVirtualXRay::Image< T >::loadMHD ( const std::string &  aFileName)

Definition at line 2514 of file Image.inl.

◆ loadRAW() [1/2]

template<typename T >
void gVirtualXRay::Image< T >::loadRAW ( const char *  aFileName,
unsigned int  aWidth,
unsigned int  aHeight,
unsigned int  aNumberOfSlices = 1,
bool  aChangeEndianessFlag = false,
const char *  anElementType = 0 
)

Definition at line 2548 of file Image.inl.

◆ loadRAW() [2/2]

template<typename T >
void gVirtualXRay::Image< T >::loadRAW ( const std::string &  aFileName,
unsigned int  aWidth,
unsigned int  aHeight,
unsigned int  aNumberOfSlices = 1,
bool  aChangeEndianessFlag = false,
const std::string &  anElementType = "" 
)

Definition at line 2573 of file Image.inl.

◆ loadSeries() [1/2]

template<typename T >
void gVirtualXRay::Image< T >::loadSeries ( const char *  aPattern,
int  aFirstSliceIndex,
int  aLastSliceIndex,
int  anIncrementIndex = 1 
)

Definition at line 2285 of file Image.inl.

◆ loadSeries() [2/2]

template<typename T >
void gVirtualXRay::Image< T >::loadSeries ( const std::string &  aPattern,
int  aFirstSliceIndex,
int  aLastSliceIndex,
int  anIncrementIndex = 1 
)

Definition at line 2352 of file Image.inl.

◆ loadUsingITK() [1/2]

template<typename T >
void gVirtualXRay::Image< T >::loadUsingITK ( const char *  aFileName)

Definition at line 2222 of file Image.inl.

◆ loadUsingITK() [2/2]

template<typename T >
void gVirtualXRay::Image< T >::loadUsingITK ( const std::string &  aFileName)

Definition at line 2277 of file Image.inl.

◆ log()

template<typename T >
Image< T > gVirtualXRay::Image< T >::log ( ) const

Definition at line 2122 of file Image.inl.

◆ makeBlank()

template<typename T>
void gVirtualXRay::Image< T >::makeBlank ( const T &  aDefaultColour = 0)

Replace all the pixels of an image with a default value.

Parameters
aDefaultColourthe pixel value (default value: 0)

Definition at line 343 of file Image.inl.

◆ marchingCubes()

template<typename T>
PolygonMesh gVirtualXRay::Image< T >::marchingCubes ( const T &  aFirstThresholdValue,
const T &  aSecondThresholdValue = 0,
bool  aTwoThresholdFlag = false,
unsigned char  aVerboseLevel = 0 
) const

Apply the marching cubes algorithm to extract the polygon mesh corresponding to voxel values in the range between aFirstThresholdValue and aSecondThresholdValue.

Parameters
aFirstThresholdValuethe first threshold
aSecondThresholdValuethe second threshold (optional)
aTwoThresholdFlagif the flag is false, then use aFirstThresholdValue as iso-value. If the flag is true, then use voxel values in the range between aFirstThresholdValue and aSecondThresholdValue. (default value: false)
aVerboseLevelthe level of statements in the standard output. For no output, use 0 (default value: 0)
Returns
the polygon mesh

Definition at line 4496 of file Image.inl.

◆ normalised()

template<typename T >
Image< T > gVirtualXRay::Image< T >::normalised ( ) const

Normalise the image between 0 and 1.

Definition at line 2023 of file Image.inl.

◆ normalized()

template<typename T >
Image< T > gVirtualXRay::Image< T >::normalized ( ) const

Normalize the image between 0 and 1.

Definition at line 2031 of file Image.inl.

◆ opening()

template<typename T >
Image< unsigned char > gVirtualXRay::Image< T >::opening ( unsigned int  aRadius) const

Definition at line 1487 of file Image.inl.

◆ operator!()

template<typename T >
Image< T > gVirtualXRay::Image< T >::operator! ( ) const

Negation operator. Compute the negative of the current image.

Returns
the negative image

Definition at line 4165 of file Image.inl.

◆ operator!=()

template<typename T>
bool gVirtualXRay::Image< T >::operator!= ( const Image< T > &  anImage) const

Operator Not equal to.

Parameters
anImagethe image to compare with
Returns
true if the images are different, false if they are similar

Definition at line 3561 of file Image.inl.

◆ operator()() [1/2]

template<typename T >
T & gVirtualXRay::Image< T >::operator() ( unsigned int  i,
unsigned int  j,
unsigned int  k 
)

Definition at line 674 of file Image.inl.

◆ operator()() [2/2]

template<typename T >
const T & gVirtualXRay::Image< T >::operator() ( unsigned int  i,
unsigned int  j,
unsigned int  k 
) const

Definition at line 684 of file Image.inl.

◆ operator*() [1/2]

template<typename T>
Image< T > gVirtualXRay::Image< T >::operator* ( const Image< T > &  anImage) const

Multiplication operator. Add anImage.

Parameters
anImagethe image to add
Returns
the resulting image

Definition at line 3875 of file Image.inl.

◆ operator*() [2/2]

template<typename T>
Image< T > gVirtualXRay::Image< T >::operator* ( aValue) const

Multiplication operator. Multiply every pixel of the image by aValue.

Parameters
aValuethe value for the multiplication
Returns
the resulting image

Definition at line 4043 of file Image.inl.

◆ operator*=() [1/2]

template<typename T>
Image< T > & gVirtualXRay::Image< T >::operator*= ( const Image< T > &  anImage)

Multiplication assignment operator. Add anImage.

Parameters
anImagethe image to add
Returns
the updated version of the current image

Definition at line 3977 of file Image.inl.

◆ operator*=() [2/2]

template<typename T>
Image< T > & gVirtualXRay::Image< T >::operator*= ( aValue)

Multiplication operator. Multiply every pixel of the image by aValue.

Parameters
aValuethe value for the multiplication
Returns
the updated version of the current image

Definition at line 4125 of file Image.inl.

◆ operator+() [1/2]

template<typename T>
Image< T > gVirtualXRay::Image< T >::operator+ ( const Image< T > &  anImage) const

Addition operator. Add anImage.

Parameters
anImagethe image to add
Returns
the resulting image

Definition at line 3801 of file Image.inl.

◆ operator+() [2/2]

template<typename T>
Image< T > gVirtualXRay::Image< T >::operator+ ( aValue) const

Addition operator. Add aValue to every pixel of the image.

Parameters
aValuethe value to add
Returns
the resulting image

Definition at line 4001 of file Image.inl.

◆ operator+=() [1/2]

template<typename T>
Image< T > & gVirtualXRay::Image< T >::operator+= ( const Image< T > &  anImage)

Addition assignment operator. Add anImage.

Parameters
anImagethe image to add
Returns
the updated version of the current image

Definition at line 3953 of file Image.inl.

◆ operator+=() [2/2]

template<typename T>
Image< T > & gVirtualXRay::Image< T >::operator+= ( aValue)

Addition operator. Add aValue to every pixel of the image.

Parameters
aValuethe value to add
Returns
the updated version of the current image

Definition at line 4091 of file Image.inl.

◆ operator-() [1/2]

template<typename T>
Image< T > gVirtualXRay::Image< T >::operator- ( const Image< T > &  anImage) const

Subtraction operator. Add anImage.

Parameters
anImagethe image to subtract
Returns
the resulting image

Definition at line 3838 of file Image.inl.

◆ operator-() [2/2]

template<typename T>
Image< T > gVirtualXRay::Image< T >::operator- ( aValue) const

Subtraction operator. Subtract aValue to every pixel of the image.

Parameters
aValuethe value to subtract
Returns
the resulting image

Definition at line 4022 of file Image.inl.

◆ operator-=() [1/2]

template<typename T>
Image< T > & gVirtualXRay::Image< T >::operator-= ( const Image< T > &  anImage)

Subraction assignment operator. Add anImage.

Parameters
anImagethe image to subtract
Returns
the updated version of the current image

Definition at line 3965 of file Image.inl.

◆ operator-=() [2/2]

template<typename T>
Image< T > & gVirtualXRay::Image< T >::operator-= ( aValue)

Subtraction operator. Subtract aValue to every pixel of the image.

Parameters
aValuethe value to subtract
Returns
the updated version of the current image

Definition at line 4108 of file Image.inl.

◆ operator/() [1/2]

template<typename T>
Image< T > gVirtualXRay::Image< T >::operator/ ( const Image< T > &  anImage) const

Division operator. Add anImage.

Parameters
anImagethe image to subtract
Returns
the resulting image

Definition at line 3912 of file Image.inl.

◆ operator/() [2/2]

template<typename T>
Image< T > gVirtualXRay::Image< T >::operator/ ( aValue) const

Division operator. Divide every pixel of the image by aValue.

Parameters
aValuethe value for the division
Returns
the resulting image

Definition at line 4064 of file Image.inl.

◆ operator/=() [1/2]

template<typename T>
Image< T > & gVirtualXRay::Image< T >::operator/= ( const Image< T > &  anImage)

Division assignment operator. Add anImage.

Parameters
anImagethe image to subtract
Returns
the updated version of the current image

Definition at line 3989 of file Image.inl.

◆ operator/=() [2/2]

template<typename T>
Image< T > & gVirtualXRay::Image< T >::operator/= ( aValue)

Division operator. Divide every pixel of the image by aValue.

Parameters
aValuethe value for the division
Returns
the updated version of the current image

Definition at line 4142 of file Image.inl.

◆ operator=() [1/2]

template<typename T>
Image< T > & gVirtualXRay::Image< T >::operator= ( const Image< T > &  anImage)

Assignment operator (also called copy operator).

Parameters
anImagethe image to copy
Returns
the updated version of the current image

Definition at line 733 of file Image.inl.

◆ operator=() [2/2]

template<typename T>
Image< T > & gVirtualXRay::Image< T >::operator= ( const T *  apImage)

Assignment operator (also called copy operator).

Parameters
apImagethe data to copy
Returns
the updated version of the current image

Definition at line 770 of file Image.inl.

◆ operator==()

template<typename T>
bool gVirtualXRay::Image< T >::operator== ( const Image< T > &  anImage) const

Operator Equal to.

Parameters
anImagethe image to compare with
Returns
true if the images are similar, false if they are different

Definition at line 3528 of file Image.inl.

◆ operator[]() [1/2]

template<typename T >
T & gVirtualXRay::Image< T >::operator[] ( unsigned  anIndex)

Definition at line 648 of file Image.inl.

◆ operator[]() [2/2]

template<typename T >
const T & gVirtualXRay::Image< T >::operator[] ( unsigned  anIndex) const

Definition at line 661 of file Image.inl.

◆ radonTransform()

template<typename T >
Sinogram< T > gVirtualXRay::Image< T >::radonTransform ( double  aFirstAngle,
double  anAngleStep,
double  aLastAngle 
) const

Definition at line 4422 of file Image.inl.

◆ resize()

template<typename T >
Image< T > gVirtualXRay::Image< T >::resize ( unsigned int  aNewWidth,
unsigned int  aNewHeightunsigned,
unsigned int  aNewNumberOfSlices 
) const

Definition at line 4234 of file Image.inl.

◆ rotate()

template<typename T >
Image< T > gVirtualXRay::Image< T >::rotate ( float  anAngleInDegrees) const

Definition at line 4347 of file Image.inl.

◆ save() [1/2]

template<typename T >
void gVirtualXRay::Image< T >::save ( const char *  aFileName,
bool  anInvertLUTFlag = false,
const char *  aComment = "",
bool  useDeflateCompressionIfPossible = false 
) const

Save the image in a file.

Parameters
aFileNamethe name of the file to write
anInvertLUTFlaginvert the LUT if it is supported by the file format (default value: false)
aCommentadd a comment if it is supported by the file format (default value: "")
useDeflateCompressionIfPossibleuse compression if possible (default value: false)

Definition at line 2432 of file Image.inl.

◆ save() [2/2]

template<typename T >
void gVirtualXRay::Image< T >::save ( const std::string &  aFileName,
bool  anInvertLUTFlag = false,
const std::string &  aComment = "",
bool  useDeflateCompressionIfPossible = false 
) const

Save the image in a file.

Parameters
aFileNamethe name of the file to write
anInvertLUTFlaginvert the LUT if it is supported by the file format (default value: false)
aCommentadd a comment if it is supported by the file format (default value: "")
useDeflateCompressionIfPossibleuse compression if possible (default value: false)

Definition at line 2586 of file Image.inl.

◆ saveASCII() [1/2]

template<typename T >
void gVirtualXRay::Image< T >::saveASCII ( const char *  aFileName) const

Save the image in an ASCII file.

Parameters
aFileNamethe name of the file to write

Definition at line 2805 of file Image.inl.

◆ saveASCII() [2/2]

template<typename T >
void gVirtualXRay::Image< T >::saveASCII ( const std::string &  aFileName) const

Save the image in an ASCII file.

Parameters
aFileNamethe name of the file to write

Definition at line 2849 of file Image.inl.

◆ saveDCM() [1/2]

template<typename T >
void gVirtualXRay::Image< T >::saveDCM ( const char *  aFileName,
bool  anInvertLUTFlag = false,
const char *  aComment = "" 
) const

Save the image in a DICOM file.

Parameters
aFileNamethe name of the file to write
anInvertLUTFlaginvert the LUT (default value: false)
aCommentadd a comment (default value: "")

Definition at line 2884 of file Image.inl.

◆ saveDCM() [2/2]

template<typename T >
void gVirtualXRay::Image< T >::saveDCM ( const std::string &  aFileName,
bool  anInvertLUTFlag = false,
const std::string &  aComment = "" 
) const

Save the image in a DICOM file.

Parameters
aFileNamethe name of the file to write
anInvertLUTFlaginvert the LUT (default value: false)
aCommentadd a comment (default value: "")

Definition at line 3054 of file Image.inl.

◆ saveMHA() [1/2]

template<typename T >
void gVirtualXRay::Image< T >::saveMHA ( const char *  aFileName,
bool  useDeflateCompressionIfPossible = false 
) const

Save the image in a MHA+RAW file.

Parameters
aFileNamethe name of the file to write
useDeflateCompressionIfPossibleuse compression (default value: false)

Definition at line 2871 of file Image.inl.

◆ saveMHA() [2/2]

template<typename T >
void gVirtualXRay::Image< T >::saveMHA ( const std::string &  aFileName,
bool  useDeflateCompressionIfPossible = false 
) const

Save the image in a MHA+RAW file.

Parameters
aFileNamethe name of the file to write
useDeflateCompressionIfPossibleuse compression (default value: false)

Definition at line 2877 of file Image.inl.

◆ saveMHD() [1/2]

template<typename T >
void gVirtualXRay::Image< T >::saveMHD ( const char *  aFileName,
bool  useDeflateCompressionIfPossible = false 
) const

Save the image in a MHD+RAW file.

Parameters
aFileNamethe name of the file to write
useDeflateCompressionIfPossibleuse compression (default value: false)

Definition at line 2857 of file Image.inl.

◆ saveMHD() [2/2]

template<typename T >
void gVirtualXRay::Image< T >::saveMHD ( const std::string &  aFileName,
bool  useDeflateCompressionIfPossible = false 
) const

Save the image in a MHD+RAW file.

Parameters
aFileNamethe name of the file to write
useDeflateCompressionIfPossibleuse compression (default value: false)

Definition at line 2865 of file Image.inl.

◆ savePGM() [1/2]

template<typename T >
void gVirtualXRay::Image< T >::savePGM ( const char *  aFileName) const

Save the image in a PGM file.

Parameters
aFileNamethe name of the file to write

Definition at line 2597 of file Image.inl.

◆ savePGM() [2/2]

template<typename T >
void gVirtualXRay::Image< T >::savePGM ( const std::string &  aFileName) const

Save the image in a PGM file.

Parameters
aFileNamethe name of the file to write

Definition at line 2676 of file Image.inl.

◆ saveRaw() [1/2]

template<typename T >
void gVirtualXRay::Image< T >::saveRaw ( const char *  aFileName,
bool  useDeflateCompressionIfPossible 
) const

Save the image in a Raw file.

Parameters
aFileNamethe name of the file to write
useDeflateCompressionIfPossibleuse compression (default value: false)

Definition at line 2684 of file Image.inl.

◆ saveRaw() [2/2]

template<typename T >
void gVirtualXRay::Image< T >::saveRaw ( const std::string &  aFileName,
bool  useDeflateCompressionIfPossible 
) const

Save the image in a Raw file.

Parameters
aFileNamethe name of the file to write
useDeflateCompressionIfPossibleuse compression (default value: false)

Definition at line 2788 of file Image.inl.

◆ saveRAW() [1/2]

template<typename T >
void gVirtualXRay::Image< T >::saveRAW ( const char *  aFileName,
bool  useDeflateCompressionIfPossible 
) const

Save the image in a Raw file.

Parameters
aFileNamethe name of the file to write
useDeflateCompressionIfPossibleuse compression (default value: false)

Definition at line 2780 of file Image.inl.

◆ saveRAW() [2/2]

template<typename T >
void gVirtualXRay::Image< T >::saveRAW ( const std::string &  aFileName,
bool  useDeflateCompressionIfPossible 
) const

Save the image in a Raw file.

Parameters
aFileNamethe name of the file to write
useDeflateCompressionIfPossibleuse compression (default value: false)

Definition at line 2797 of file Image.inl.

◆ saveTIFF() [1/2]

template<typename T >
void gVirtualXRay::Image< T >::saveTIFF ( const char *  aFileName,
bool  anInvertLUTFlag = false 
) const

Save the image in a TIFF file.

Parameters
aFileNamethe name of the file to write
anInvertLUTFlaginvert the LUT (default value: false)

Definition at line 3064 of file Image.inl.

◆ saveTIFF() [2/2]

template<typename T >
void gVirtualXRay::Image< T >::saveTIFF ( const std::string &  aFileName,
bool  anInvertLUTFlag = false 
) const

Save the image in a TIFF file.

Parameters
aFileNamethe name of the file to write
anInvertLUTFlaginvert the LUT (default value: false)

Definition at line 3367 of file Image.inl.

◆ saveUsingITK() [1/2]

template<typename T >
void gVirtualXRay::Image< T >::saveUsingITK ( const char *  aFileName,
bool  useDeflateCompressionIfPossible = false 
) const

Save the image in a file using ITK.

Parameters
aFileNamethe name of the file to write
useDeflateCompressionIfPossibleuse compression (default value: false)

Definition at line 3376 of file Image.inl.

◆ saveUsingITK() [2/2]

template<typename T >
void gVirtualXRay::Image< T >::saveUsingITK ( const std::string &  aFileName,
bool  useDeflateCompressionIfPossible = false 
) const

Save the image in a file using ITK.

Parameters
aFileNamethe name of the file to write
useDeflateCompressionIfPossibleuse compression (default value: false)

Definition at line 3519 of file Image.inl.

◆ setCanvasSize()

template<typename T >
Image< T > gVirtualXRay::Image< T >::setCanvasSize ( unsigned int  aNewWidth,
unsigned int  aNewHeight,
unsigned int  aNewNumberOfSlices 
) const

Definition at line 4194 of file Image.inl.

◆ setPixel()

template<typename T>
void gVirtualXRay::Image< T >::setPixel ( unsigned int  i,
unsigned int  j,
unsigned int  k,
aValue 
)

Set a pixel.

Parameters
ithe position of the pixel along the x-axis
jthe position of the pixel along the y-axis
kthe position of the pixel along the z-axis
aValuethe new pixel value

Definition at line 563 of file Image.inl.

◆ setSpacing() [1/2]

template<typename T >
void gVirtualXRay::Image< T >::setSpacing ( const VEC3 aPixelSize)

Definition at line 808 of file Image.inl.

◆ setSpacing() [2/2]

template<typename T >
void gVirtualXRay::Image< T >::setSpacing ( const double &  aPixelWidth,
const double &  aPixelHeight = 0.0,
const double &  aPixelDepth = 0.0 
)

Definition at line 816 of file Image.inl.

◆ shiftScaleFilter()

template<typename T >
Image< T > gVirtualXRay::Image< T >::shiftScaleFilter ( double  aShiftValue,
double  aScaleValue,
bool  aRunOnGPUFlag = true 
) const

Add aShiftValue to every pixel, then multiply every pixel by aScaleValue

Parameters
aShiftValuethe shift parameter of the filter
aScaleValuethe scale parameter of the filter

Definition at line 892 of file Image.inl.

◆ sizeOf() [1/2]

template<typename T >
unsigned int gVirtualXRay::Image< T >::sizeOf ( const char *  anElementType) const

Definition at line 5469 of file Image.inl.

◆ sizeOf() [2/2]

template<typename T >
unsigned int gVirtualXRay::Image< T >::sizeOf ( const std::string &  anElementType) const

Definition at line 5475 of file Image.inl.

◆ threshold() [1/3]

template<typename T>
Image< unsigned char > gVirtualXRay::Image< T >::threshold ( const T &  aLowerThreshold,
const T &  aUpperThreshold,
unsigned char  anInValue,
unsigned char  anOutValue,
bool  aRunOnGPUFlag = true 
) const

Definition at line 1199 of file Image.inl.

◆ threshold() [2/3]

template<typename T>
Image< unsigned char > gVirtualXRay::Image< T >::threshold ( const T &  aThreshold,
unsigned char  aValueIn = 1,
unsigned char  aValueOut = 0 
) const

Definition at line 1955 of file Image.inl.

◆ threshold() [3/3]

template<typename T>
Image<unsigned char> gVirtualXRay::Image< T >::threshold ( const T &  aLowerThreshold,
const T &  aUpperThreshold,
unsigned char  aValueIn = 1,
unsigned char  aValueOut = 0 
) const

◆ transferDeviceToHost()

template<typename T >
void gVirtualXRay::Image< T >::transferDeviceToHost ( )

Definition at line 1151 of file Image.inl.

◆ transferHostToDevice()

template<typename T >
void gVirtualXRay::Image< T >::transferHostToDevice ( )

Definition at line 1028 of file Image.inl.

◆ transpose()

template<typename T >
Image< T > gVirtualXRay::Image< T >::transpose ( ) const

Definition at line 3727 of file Image.inl.

◆ VertexInterp()

template<typename T>
VEC3 gVirtualXRay::Image< T >::VertexInterp ( const T &  aThresholdValue,
const VEC3 p0,
const VEC3 p1,
const T &  v0,
const T &  v1 
) const
protected

Definition at line 5185 of file Image.inl.

Field Documentation

◆ g_mesh_type

template<typename T>
unsigned int gVirtualXRay::Image< T >::g_mesh_type
staticprotected

Definition at line 1169 of file Image.h.

◆ g_vbo_type

template<typename T>
unsigned int gVirtualXRay::Image< T >::g_vbo_type
staticprotected

Definition at line 1172 of file Image.h.

◆ m_height

template<typename T>
unsigned int gVirtualXRay::Image< T >::m_height
protected

Number of pixel along the vertical axis.

Definition at line 1150 of file Image.h.

◆ m_number_of_slices

template<typename T>
unsigned int gVirtualXRay::Image< T >::m_number_of_slices
protected

Number of slices.

Definition at line 1154 of file Image.h.

◆ m_p_image

template<typename T>
T* gVirtualXRay::Image< T >::m_p_image
protected

The pixel data.

Definition at line 1162 of file Image.h.

◆ m_spacing

template<typename T>
VEC3 gVirtualXRay::Image< T >::m_spacing
protected

The space between two successive pixels.

Definition at line 1158 of file Image.h.

◆ m_texture_id

template<typename T>
unsigned int gVirtualXRay::Image< T >::m_texture_id
protected

OpenGL texture ID.

Definition at line 1166 of file Image.h.

◆ m_width

template<typename T>
unsigned int gVirtualXRay::Image< T >::m_width
protected

Number of pixel along the horizontal axis.

Definition at line 1146 of file Image.h.


The documentation for this class was generated from the following files: