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

Sinogram is a class to reconstruct images from a sinogram. More...

#include <Image.h>

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

Public Member Functions

 Sinogram ()
 
 Sinogram (const Image< T > anImage)
 
 Sinogram (unsigned int aWidth, unsigned int aHeight, unsigned int aNumberOfSlices=1)
 
Image< T > getProjectionSet () const
 
Image< T > art (double aFirstAngle, double anAngleStep, unsigned int aNumberOfIterations=0, const char *aDirectory=0, void(*aCallback)(const Image< T > *, const Image< T > *, const Image< T > *)=0) const
 
Image< T > mart (double aFirstAngle, double anAngleStep, unsigned int aNumberOfIterations=0, const char *aDirectory=0, void(*aCallback)(const Image< T > *, const Image< T > *, const Image< T > *)=0) const
 
Image< T > sirt (double aFirstAngle, double anAngleStep, unsigned int aNumberOfIterations=0, const char *aDirectory=0, void(*aCallback)(const Image< T > *, const Image< T > *, const Image< T > *)=0) const
 
Image< T > simpleBackProjection (double aFirstAngle, double anAngleStep, const char *aDirectorye=0, void(*aCallback)(const Image< T > *, const Image< T > *, const Image< T > *)=0) const
 
Image< T > filteredBackProjection (double aFirstAngle, double anAngleStep, const char *aFilterType="hamming", float aScalingFactor=1.0, const char *aDirectory=0, void(*aCallback)(const Image< T > *, const Image< T > *, const Image< T > *)=0) const
 
Image< T > art (double aFirstAngle, double anAngleStep, unsigned int aNumberOfIterations, const std::string &aDirectory, void(*aCallback)(const Image< T > *, const Image< T > *, const Image< T > *)) const
 
Image< T > mart (double aFirstAngle, double anAngleStep, unsigned int aNumberOfIterations, const std::string &aDirectory, void(*aCallback)(const Image< T > *, const Image< T > *, const Image< T > *)) const
 
Image< T > sirt (double aFirstAngle, double anAngleStep, unsigned int aNumberOfIterations, const std::string &aDirectory, void(*aCallback)(const Image< T > *, const Image< T > *, const Image< T > *)) const
 
Image< T > simpleBackProjection (double aFirstAngle, double anAngleStep, const std::string &aDirectory, void(*aCallback)(const Image< T > *, const Image< T > *, const Image< T > *)) const
 
Image< T > filteredBackProjection (double aFirstAngle, double anAngleStep, const std::string &aFilterType, float aScalingFactor, const std::string &aDirectory, void(*aCallback)(const Image< T > *, const Image< T > *, const Image< T > *)) const
 
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
 
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...
 
getMinValue (unsigned int aSliceID) const
 Compute the minimum pixel value in a given slice. More...
 
getMaxValue () const
 Compute the maximum pixel value in the image. 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< 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< 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 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+ (T aValue) const
 Addition operator. Add aValue to every pixel of the image. More...
 
Image operator- (const Image< T > &anImage) const
 Subtraction operator. Add anImage. More...
 
Image operator- (T aValue) const
 Subtraction operator. Subtract aValue to every pixel of the image. More...
 
Image operator* (const Image< T > &anImage) const
 Multiplication operator. Add anImage. More...
 
Image operator* (T aValue) const
 Multiplication operator. Multiply every pixel of the image by aValue. More...
 
Image operator/ (const Image< T > &anImage) const
 Division operator. Add anImage. More...
 
Image operator/ (T aValue) const
 Division operator. Divide every pixel of the image by aValue. More...
 
Image< T > & operator+= (const Image< T > &anImage)
 Addition assignment operator. Add anImage. More...
 
Image< T > & operator+= (T aValue)
 Addition operator. Add aValue to every pixel of the image. More...
 
Image< T > & operator-= (const Image< T > &anImage)
 Subraction assignment operator. Add anImage. More...
 
Image< T > & operator-= (T aValue)
 Subtraction operator. Subtract aValue to every pixel of the image. More...
 
Image< T > & operator*= (const Image< T > &anImage)
 Multiplication assignment operator. Add anImage. More...
 
Image< T > & operator*= (T aValue)
 Multiplication operator. Multiply every pixel of the image by aValue. More...
 
Image< T > & operator/= (const Image< T > &anImage)
 Division assignment operator. Add anImage. 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::Sinogram< T >

Sinogram is a class to reconstruct images from a sinogram.

Definition at line 94 of file Image.h.

Constructor & Destructor Documentation

◆ Sinogram() [1/3]

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

Definition at line 80 of file Sinogram.inl.

◆ Sinogram() [2/3]

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

Definition at line 85 of file Sinogram.inl.

◆ Sinogram() [3/3]

template<typename T>
gVirtualXRay::Sinogram< T >::Sinogram ( unsigned int  aWidth,
unsigned int  aHeight,
unsigned int  aNumberOfSlices = 1 
)

Definition at line 90 of file Sinogram.inl.

Member Function Documentation

◆ abs()

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

Definition at line 2103 of file Image.inl.

◆ allocateHostMemory()

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

◆ antiAliasBinaryImageFilter()

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

Definition at line 1857 of file Image.inl.

◆ art() [1/2]

template<typename T>
Image< T > gVirtualXRay::Sinogram< T >::art ( double  aFirstAngle,
double  anAngleStep,
unsigned int  aNumberOfIterations = 0,
const char *  aDirectory = 0,
void(*)(const Image< T > *, const Image< T > *, const Image< T > *)  aCallback = 0 
) const

Definition at line 123 of file Sinogram.inl.

◆ art() [2/2]

template<typename T>
Image< T > gVirtualXRay::Sinogram< T >::art ( double  aFirstAngle,
double  anAngleStep,
unsigned int  aNumberOfIterations,
const std::string &  aDirectory,
void(*)(const Image< T > *, const Image< T > *, const Image< T > *)  aCallback 
) const

Definition at line 515 of file Sinogram.inl.

◆ closing()

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

Definition at line 1555 of file Image.inl.

◆ computeMAE()

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

Definition at line 3643 of file Image.inl.

◆ computeMSE()

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

Definition at line 3678 of file Image.inl.

◆ computeNCC()

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

Definition at line 3694 of file Image.inl.

◆ computeRMSE()

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

Definition at line 3686 of file Image.inl.

◆ computeSAE()

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

Definition at line 3620 of file Image.inl.

◆ computeSSE()

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

Definition at line 3651 of file Image.inl.

◆ constantPadFilter()

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

Definition at line 1927 of file Image.inl.

◆ convertHU2mu()

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

◆ convertVoxelsToCubes()

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

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
inherited

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
inherited

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
inherited

Definition at line 1442 of file Image.inl.

◆ destroy()

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

Release the memory.

Definition at line 694 of file Image.inl.

◆ destroyOpenGLTexture()

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

Definition at line 5046 of file Image.inl.

◆ filteredBackProjection() [1/2]

template<typename T>
Image< T > gVirtualXRay::Sinogram< T >::filteredBackProjection ( double  aFirstAngle,
double  anAngleStep,
const char *  aFilterType = "hamming",
float  aScalingFactor = 1.0,
const char *  aDirectory = 0,
void(*)(const Image< T > *, const Image< T > *, const Image< T > *)  aCallback = 0 
) const

Definition at line 458 of file Sinogram.inl.

◆ filteredBackProjection() [2/2]

template<typename T>
Image< T > gVirtualXRay::Sinogram< T >::filteredBackProjection ( double  aFirstAngle,
double  anAngleStep,
const std::string &  aFilterType,
float  aScalingFactor,
const std::string &  aDirectory,
void(*)(const Image< T > *, const Image< T > *, const Image< T > *)  aCallback 
) const

Definition at line 577 of file Sinogram.inl.

◆ flipHorizontally()

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

Definition at line 2071 of file Image.inl.

◆ flipVertically()

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

Definition at line 2039 of file Image.inl.

◆ getAverage()

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

Definition at line 3585 of file Image.inl.

◆ getDepth()

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

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
inherited

Definition at line 3721 of file Image.inl.

◆ getHeight()

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

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
inherited

Definition at line 1623 of file Image.inl.

◆ getMaxValue() [1/2]

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

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
inherited

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
inherited

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
inherited

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 
)
inherited

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
inherited

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
inherited

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 
)
inherited

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
inherited

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.

◆ getProjectionSet()

template<typename T >
Image< T > gVirtualXRay::Sinogram< T >::getProjectionSet ( ) const

Definition at line 97 of file Sinogram.inl.

◆ getRawData() [1/2]

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

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
inherited

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
inherited

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
inherited

Definition at line 828 of file Image.inl.

◆ getStandardDeviation()

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

Definition at line 3612 of file Image.inl.

◆ getSum()

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

Definition at line 3569 of file Image.inl.

◆ getTextureId()

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

Definition at line 5058 of file Image.inl.

◆ getVariance()

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

Definition at line 3593 of file Image.inl.

◆ getWidth()

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

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)
inherited

Definition at line 2155 of file Image.inl.

◆ load() [2/2]

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

Definition at line 2214 of file Image.inl.

◆ loadASCII() [1/4]

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

Definition at line 351 of file Image.inl.

◆ loadASCII() [2/4]

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

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 
)
inherited

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 
)
inherited

Definition at line 494 of file Image.inl.

◆ loadDicomSeries() [1/2]

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

Definition at line 2363 of file Image.inl.

◆ loadDicomSeries() [2/2]

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

Definition at line 2423 of file Image.inl.

◆ loadMHA() [1/2]

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

Definition at line 2539 of file Image.inl.

◆ loadMHA() [2/2]

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

Definition at line 2531 of file Image.inl.

◆ loadMHD() [1/2]

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

Definition at line 2522 of file Image.inl.

◆ loadMHD() [2/2]

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

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 
)
inherited

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 = "" 
)
inherited

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 
)
inherited

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 
)
inherited

Definition at line 2352 of file Image.inl.

◆ loadUsingITK() [1/2]

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

Definition at line 2222 of file Image.inl.

◆ loadUsingITK() [2/2]

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

Definition at line 2277 of file Image.inl.

◆ log()

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

Definition at line 2122 of file Image.inl.

◆ makeBlank()

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

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
inherited

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.

◆ mart() [1/2]

template<typename T>
Image< T > gVirtualXRay::Sinogram< T >::mart ( double  aFirstAngle,
double  anAngleStep,
unsigned int  aNumberOfIterations = 0,
const char *  aDirectory = 0,
void(*)(const Image< T > *, const Image< T > *, const Image< T > *)  aCallback = 0 
) const

Definition at line 216 of file Sinogram.inl.

◆ mart() [2/2]

template<typename T>
Image< T > gVirtualXRay::Sinogram< T >::mart ( double  aFirstAngle,
double  anAngleStep,
unsigned int  aNumberOfIterations,
const std::string &  aDirectory,
void(*)(const Image< T > *, const Image< T > *, const Image< T > *)  aCallback 
) const

Definition at line 531 of file Sinogram.inl.

◆ normalised()

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

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
inherited

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
inherited

Definition at line 1487 of file Image.inl.

◆ operator!()

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

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
inherited

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 
)
inherited

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
inherited

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
inherited

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
inherited

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)
inherited

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)
inherited

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
inherited

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
inherited

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)
inherited

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)
inherited

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
inherited

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
inherited

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)
inherited

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)
inherited

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
inherited

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
inherited

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)
inherited

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)
inherited

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==()

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

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)
inherited

Definition at line 648 of file Image.inl.

◆ operator[]() [2/2]

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

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
inherited

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
inherited

Definition at line 4234 of file Image.inl.

◆ rotate()

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

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
inherited

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
inherited

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
inherited

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
inherited

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
inherited

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
inherited

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
inherited

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
inherited

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
inherited

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
inherited

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
inherited

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
inherited

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
inherited

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
inherited

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
inherited

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
inherited

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
inherited

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
inherited

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
inherited

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
inherited

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
inherited

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 
)
inherited

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)
inherited

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 
)
inherited

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
inherited

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.

◆ simpleBackProjection() [1/2]

template<typename T>
Image< T > gVirtualXRay::Sinogram< T >::simpleBackProjection ( double  aFirstAngle,
double  anAngleStep,
const char *  aDirectorye = 0,
void(*)(const Image< T > *, const Image< T > *, const Image< T > *)  aCallback = 0 
) const

Definition at line 395 of file Sinogram.inl.

◆ simpleBackProjection() [2/2]

template<typename T>
Image< T > gVirtualXRay::Sinogram< T >::simpleBackProjection ( double  aFirstAngle,
double  anAngleStep,
const std::string &  aDirectory,
void(*)(const Image< T > *, const Image< T > *, const Image< T > *)  aCallback 
) const

Definition at line 563 of file Sinogram.inl.

◆ sirt() [1/2]

template<typename T>
Image< T > gVirtualXRay::Sinogram< T >::sirt ( double  aFirstAngle,
double  anAngleStep,
unsigned int  aNumberOfIterations = 0,
const char *  aDirectory = 0,
void(*)(const Image< T > *, const Image< T > *, const Image< T > *)  aCallback = 0 
) const

Definition at line 309 of file Sinogram.inl.

◆ sirt() [2/2]

template<typename T>
Image< T > gVirtualXRay::Sinogram< T >::sirt ( double  aFirstAngle,
double  anAngleStep,
unsigned int  aNumberOfIterations,
const std::string &  aDirectory,
void(*)(const Image< T > *, const Image< T > *, const Image< T > *)  aCallback 
) const

Definition at line 547 of file Sinogram.inl.

◆ sizeOf() [1/2]

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

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
inherited

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
inherited

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
inherited

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
inherited

◆ transferDeviceToHost()

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

Definition at line 1151 of file Image.inl.

◆ transferHostToDevice()

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

Definition at line 1028 of file Image.inl.

◆ transpose()

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

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
protectedinherited

Definition at line 5185 of file Image.inl.

Field Documentation

◆ g_mesh_type

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

Definition at line 1169 of file Image.h.

◆ g_vbo_type

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

Definition at line 1172 of file Image.h.

◆ m_height

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

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
protectedinherited

Number of slices.

Definition at line 1154 of file Image.h.

◆ m_p_image

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

The pixel data.

Definition at line 1162 of file Image.h.

◆ m_spacing

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

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
protectedinherited

OpenGL texture ID.

Definition at line 1166 of file Image.h.

◆ m_width

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

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: