![]() |
gVirtualXRay
2.0.10
VirtualX-RayImagingLibraryonGPU
|
Image is a class to manage a greyscale image. More...
#include <Image.h>
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 VEC3 & | getSpacing () const |
T | getMinValue () const |
Compute the minimum pixel value in the image. More... | |
T | getMaxValue () const |
Compute the maximum pixel value in the image. More... | |
T | getMinValue (unsigned int aSliceID) const |
Compute the minimum pixel value in a given slice. More... | |
T | 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 |
Image is a class to manage a greyscale image.
gVirtualXRay::Image< T >::Image | ( | ) |
gVirtualXRay::Image< T >::Image | ( | const Image< T > & | anImage | ) |
gVirtualXRay::Image< T >::Image | ( | const char * | aFileName | ) |
gVirtualXRay::Image< T >::Image | ( | const std::string & | aFileName | ) |
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.
apData | the array to copy |
aWidth | the width of the image |
aHeight | the height of the image |
aNumberOfSlices | the number of slices (default value: 1) |
aVoxelSize | the physical distance between the centres of each three-dimensional voxel, specified by three numeric values (default value: 1, 1, 1) |
gVirtualXRay::Image< T >::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.
aWidth | the width of the image |
aHeight | the height of the image |
aNumberOfSlices | the number of slices (default value: 1) |
aDefaultValue | the pixel value (default value: 0) |
aVoxelSize | the physical distance between the centres of each three-dimensional voxel, specified by three numeric values (default value: 1, 1, 1) |
gVirtualXRay::Image< T >::~Image | ( | ) |
Image< T > gVirtualXRay::Image< T >::abs | ( | ) | const |
void gVirtualXRay::Image< T >::allocateHostMemory | ( | ) |
Image< float > gVirtualXRay::Image< T >::antiAliasBinaryImageFilter | ( | double | aMaximumRMSChange, |
unsigned int | aNumberOfIterations, | ||
double | aVariance | ||
) | const |
Image< unsigned char > gVirtualXRay::Image< T >::closing | ( | unsigned int | aRadius | ) | const |
double gVirtualXRay::Image< T >::computeMAE | ( | const Image< T > & | anImage | ) | const |
double gVirtualXRay::Image< T >::computeMSE | ( | const Image< T > & | anImage | ) | const |
double gVirtualXRay::Image< T >::computeNCC | ( | const Image< T > & | anImage | ) | const |
double gVirtualXRay::Image< T >::computeRMSE | ( | const Image< T > & | anImage | ) | const |
double gVirtualXRay::Image< T >::computeSAE | ( | const Image< T > & | anImage | ) | const |
double gVirtualXRay::Image< T >::computeSSE | ( | const Image< T > & | anImage | ) | const |
Image< T > gVirtualXRay::Image< T >::constantPadFilter | ( | const T & | aPadValue | ) | const |
Image<T> gVirtualXRay::Image< T >::convertHU2mu | ( | double | anEnergy | ) | const |
void gVirtualXRay::Image< T >::convertVoxelsToCubes | ( | std::map< T, PolygonMesh > & | aPolygonMeshSet, |
T | aThreshold = -1000 , |
||
unsigned char | aVerboseLevel = 0 |
||
) | const |
Convert every voxel into a cube.
aPolygonMeshSet | the set of polygon mesh |
aThreshold | the iso-value. Any voxel above the iso-value is part of the selected object. Other voxels are ignored. |
aVerboseLevel | the level of statements in the standard output. For no output, use 0 (default value: 0) |
Image< T > gVirtualXRay::Image< T >::convolution1D | ( | const std::vector< float > & | aKernel | ) | const |
Image< T > gVirtualXRay::Image< T >::convolution2D | ( | const Image< float > & | aKernel | ) | const |
Image< T > gVirtualXRay::Image< T >::convolution2D | ( | const Image< double > & | aKernel | ) | const |
void gVirtualXRay::Image< T >::destroy | ( | ) |
void gVirtualXRay::Image< T >::destroyOpenGLTexture | ( | ) |
Image< T > gVirtualXRay::Image< T >::flipHorizontally | ( | ) | const |
Image< T > gVirtualXRay::Image< T >::flipVertically | ( | ) | const |
double gVirtualXRay::Image< T >::getAverage | ( | ) | const |
unsigned int gVirtualXRay::Image< T >::getDepth | ( | ) | const |
FFT< T > gVirtualXRay::Image< T >::getFFT | ( | ) | const |
unsigned int gVirtualXRay::Image< T >::getHeight | ( | ) | const |
Image< float > gVirtualXRay::Image< T >::getIsoTropic | ( | ) | const |
T gVirtualXRay::Image< T >::getMaxValue | ( | ) | const |
T gVirtualXRay::Image< T >::getMaxValue | ( | unsigned int | aSliceID | ) | const |
T gVirtualXRay::Image< T >::getMinValue | ( | ) | const |
T gVirtualXRay::Image< T >::getMinValue | ( | unsigned int | aSliceID | ) | const |
T & gVirtualXRay::Image< T >::getPixel | ( | unsigned int | i, |
unsigned int | j, | ||
unsigned int | k = 0 |
||
) |
const T & gVirtualXRay::Image< T >::getPixel | ( | unsigned int | i, |
unsigned int | j, | ||
unsigned int | k = 0 |
||
) | const |
VEC3 gVirtualXRay::Image< T >::getPixelPosition | ( | unsigned int | i, |
unsigned int | j, | ||
unsigned int | k = 0 |
||
) | const |
T & gVirtualXRay::Image< T >::getPixelValue | ( | unsigned int | i, |
unsigned int | j, | ||
unsigned int | k = 0 |
||
) |
const T & gVirtualXRay::Image< T >::getPixelValue | ( | unsigned int | i, |
unsigned int | j, | ||
unsigned int | k = 0 |
||
) | const |
T * gVirtualXRay::Image< T >::getRawData | ( | ) |
const T * gVirtualXRay::Image< T >::getRawData | ( | ) | const |
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).
i | the position of the first pixel of the ROI along the horizontal axis |
j | the position of the first pixel of the ROI along the vertical axis |
k | the position of the first pixel of the ROI along the depth axis |
aWidth | the width of the ROI (in number of pixels) |
aHeight | the height of the ROI (in number of pixels) |
aDepth | the depth of the ROI (in number of pixels) |
const VEC3 & gVirtualXRay::Image< T >::getSpacing | ( | ) | const |
double gVirtualXRay::Image< T >::getStandardDeviation | ( | ) | const |
double gVirtualXRay::Image< T >::getSum | ( | ) | const |
unsigned int gVirtualXRay::Image< T >::getTextureId | ( | ) | const |
double gVirtualXRay::Image< T >::getVariance | ( | ) | const |
unsigned int gVirtualXRay::Image< T >::getWidth | ( | ) | const |
void gVirtualXRay::Image< T >::load | ( | const char * | aFileName | ) |
void gVirtualXRay::Image< T >::load | ( | const std::string & | aFileName | ) |
void gVirtualXRay::Image< T >::loadASCII | ( | const char * | aFileName | ) |
void gVirtualXRay::Image< T >::loadASCII | ( | const std::string & | aFileName | ) |
void gVirtualXRay::Image< T >::loadASCII | ( | const char * | aFileName, |
unsigned int | aWidth, | ||
unsigned int | aHeight, | ||
unsigned int | aDepth, | ||
const VEC3 & | aVoxelSize | ||
) |
void gVirtualXRay::Image< T >::loadASCII | ( | const std::string & | aFileName, |
unsigned int | aWidth, | ||
unsigned int | aHeight, | ||
unsigned int | aDepth, | ||
const VEC3 & | aVoxelSize | ||
) |
void gVirtualXRay::Image< T >::loadDicomSeries | ( | const char * | aDirectory | ) |
void gVirtualXRay::Image< T >::loadDicomSeries | ( | const std::string & | aDirectory | ) |
void gVirtualXRay::Image< T >::loadMHA | ( | const char * | aFileName | ) |
void gVirtualXRay::Image< T >::loadMHA | ( | const std::string & | aFileName | ) |
void gVirtualXRay::Image< T >::loadMHD | ( | const char * | aFileName | ) |
void gVirtualXRay::Image< T >::loadMHD | ( | const std::string & | aFileName | ) |
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 |
||
) |
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 = "" |
||
) |
void gVirtualXRay::Image< T >::loadSeries | ( | const char * | aPattern, |
int | aFirstSliceIndex, | ||
int | aLastSliceIndex, | ||
int | anIncrementIndex = 1 |
||
) |
void gVirtualXRay::Image< T >::loadSeries | ( | const std::string & | aPattern, |
int | aFirstSliceIndex, | ||
int | aLastSliceIndex, | ||
int | anIncrementIndex = 1 |
||
) |
void gVirtualXRay::Image< T >::loadUsingITK | ( | const char * | aFileName | ) |
void gVirtualXRay::Image< T >::loadUsingITK | ( | const std::string & | aFileName | ) |
Image< T > gVirtualXRay::Image< T >::log | ( | ) | const |
void gVirtualXRay::Image< T >::makeBlank | ( | const T & | aDefaultColour = 0 | ) |
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.
aFirstThresholdValue | the first threshold |
aSecondThresholdValue | the second threshold (optional) |
aTwoThresholdFlag | if 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) |
aVerboseLevel | the level of statements in the standard output. For no output, use 0 (default value: 0) |
Image< T > gVirtualXRay::Image< T >::normalised | ( | ) | const |
Image< T > gVirtualXRay::Image< T >::normalized | ( | ) | const |
Image< unsigned char > gVirtualXRay::Image< T >::opening | ( | unsigned int | aRadius | ) | const |
Image< T > gVirtualXRay::Image< T >::operator! | ( | ) | const |
bool gVirtualXRay::Image< T >::operator!= | ( | const Image< T > & | anImage | ) | const |
T & gVirtualXRay::Image< T >::operator() | ( | unsigned int | i, |
unsigned int | j, | ||
unsigned int | k | ||
) |
const T & gVirtualXRay::Image< T >::operator() | ( | unsigned int | i, |
unsigned int | j, | ||
unsigned int | k | ||
) | const |
Image< T > gVirtualXRay::Image< T >::operator* | ( | const Image< T > & | anImage | ) | const |
Image< T > gVirtualXRay::Image< T >::operator* | ( | T | aValue | ) | const |
Image< T > & gVirtualXRay::Image< T >::operator*= | ( | const Image< T > & | anImage | ) |
Image< T > & gVirtualXRay::Image< T >::operator*= | ( | T | aValue | ) |
Image< T > gVirtualXRay::Image< T >::operator+ | ( | const Image< T > & | anImage | ) | const |
Image< T > gVirtualXRay::Image< T >::operator+ | ( | T | aValue | ) | const |
Image< T > & gVirtualXRay::Image< T >::operator+= | ( | const Image< T > & | anImage | ) |
Image< T > & gVirtualXRay::Image< T >::operator+= | ( | T | aValue | ) |
Image< T > gVirtualXRay::Image< T >::operator- | ( | const Image< T > & | anImage | ) | const |
Image< T > gVirtualXRay::Image< T >::operator- | ( | T | aValue | ) | const |
Image< T > & gVirtualXRay::Image< T >::operator-= | ( | const Image< T > & | anImage | ) |
Image< T > & gVirtualXRay::Image< T >::operator-= | ( | T | aValue | ) |
Image< T > gVirtualXRay::Image< T >::operator/ | ( | const Image< T > & | anImage | ) | const |
Image< T > gVirtualXRay::Image< T >::operator/ | ( | T | aValue | ) | const |
Image< T > & gVirtualXRay::Image< T >::operator/= | ( | const Image< T > & | anImage | ) |
Image< T > & gVirtualXRay::Image< T >::operator/= | ( | T | aValue | ) |
Image< T > & gVirtualXRay::Image< T >::operator= | ( | const Image< T > & | anImage | ) |
Image< T > & gVirtualXRay::Image< T >::operator= | ( | const T * | apImage | ) |
bool gVirtualXRay::Image< T >::operator== | ( | const Image< T > & | anImage | ) | const |
T & gVirtualXRay::Image< T >::operator[] | ( | unsigned | anIndex | ) |
const T & gVirtualXRay::Image< T >::operator[] | ( | unsigned | anIndex | ) | const |
Sinogram< T > gVirtualXRay::Image< T >::radonTransform | ( | double | aFirstAngle, |
double | anAngleStep, | ||
double | aLastAngle | ||
) | const |
Image< T > gVirtualXRay::Image< T >::resize | ( | unsigned int | aNewWidth, |
unsigned int | aNewHeightunsigned, | ||
unsigned int | aNewNumberOfSlices | ||
) | const |
Image< T > gVirtualXRay::Image< T >::rotate | ( | float | anAngleInDegrees | ) | const |
void gVirtualXRay::Image< T >::save | ( | const char * | aFileName, |
bool | anInvertLUTFlag = false , |
||
const char * | aComment = "" , |
||
bool | useDeflateCompressionIfPossible = false |
||
) | const |
Save the image in a file.
aFileName | the name of the file to write |
anInvertLUTFlag | invert the LUT if it is supported by the file format (default value: false) |
aComment | add a comment if it is supported by the file format (default value: "") |
useDeflateCompressionIfPossible | use compression if possible (default value: false) |
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.
aFileName | the name of the file to write |
anInvertLUTFlag | invert the LUT if it is supported by the file format (default value: false) |
aComment | add a comment if it is supported by the file format (default value: "") |
useDeflateCompressionIfPossible | use compression if possible (default value: false) |
void gVirtualXRay::Image< T >::saveASCII | ( | const char * | aFileName | ) | const |
void gVirtualXRay::Image< T >::saveASCII | ( | const std::string & | aFileName | ) | const |
void gVirtualXRay::Image< T >::saveDCM | ( | const char * | aFileName, |
bool | anInvertLUTFlag = false , |
||
const char * | aComment = "" |
||
) | const |
void gVirtualXRay::Image< T >::saveDCM | ( | const std::string & | aFileName, |
bool | anInvertLUTFlag = false , |
||
const std::string & | aComment = "" |
||
) | const |
void gVirtualXRay::Image< T >::saveMHA | ( | const char * | aFileName, |
bool | useDeflateCompressionIfPossible = false |
||
) | const |
void gVirtualXRay::Image< T >::saveMHA | ( | const std::string & | aFileName, |
bool | useDeflateCompressionIfPossible = false |
||
) | const |
void gVirtualXRay::Image< T >::saveMHD | ( | const char * | aFileName, |
bool | useDeflateCompressionIfPossible = false |
||
) | const |
void gVirtualXRay::Image< T >::saveMHD | ( | const std::string & | aFileName, |
bool | useDeflateCompressionIfPossible = false |
||
) | const |
void gVirtualXRay::Image< T >::savePGM | ( | const char * | aFileName | ) | const |
void gVirtualXRay::Image< T >::savePGM | ( | const std::string & | aFileName | ) | const |
void gVirtualXRay::Image< T >::saveRaw | ( | const char * | aFileName, |
bool | useDeflateCompressionIfPossible | ||
) | const |
void gVirtualXRay::Image< T >::saveRaw | ( | const std::string & | aFileName, |
bool | useDeflateCompressionIfPossible | ||
) | const |
void gVirtualXRay::Image< T >::saveRAW | ( | const char * | aFileName, |
bool | useDeflateCompressionIfPossible | ||
) | const |
void gVirtualXRay::Image< T >::saveRAW | ( | const std::string & | aFileName, |
bool | useDeflateCompressionIfPossible | ||
) | const |
void gVirtualXRay::Image< T >::saveTIFF | ( | const char * | aFileName, |
bool | anInvertLUTFlag = false |
||
) | const |
void gVirtualXRay::Image< T >::saveTIFF | ( | const std::string & | aFileName, |
bool | anInvertLUTFlag = false |
||
) | const |
void gVirtualXRay::Image< T >::saveUsingITK | ( | const char * | aFileName, |
bool | useDeflateCompressionIfPossible = false |
||
) | const |
void gVirtualXRay::Image< T >::saveUsingITK | ( | const std::string & | aFileName, |
bool | useDeflateCompressionIfPossible = false |
||
) | const |
Image< T > gVirtualXRay::Image< T >::setCanvasSize | ( | unsigned int | aNewWidth, |
unsigned int | aNewHeight, | ||
unsigned int | aNewNumberOfSlices | ||
) | const |
void gVirtualXRay::Image< T >::setPixel | ( | unsigned int | i, |
unsigned int | j, | ||
unsigned int | k, | ||
T | aValue | ||
) |
void gVirtualXRay::Image< T >::setSpacing | ( | const VEC3 & | aPixelSize | ) |
void gVirtualXRay::Image< T >::setSpacing | ( | const double & | aPixelWidth, |
const double & | aPixelHeight = 0.0 , |
||
const double & | aPixelDepth = 0.0 |
||
) |
Image< T > gVirtualXRay::Image< T >::shiftScaleFilter | ( | double | aShiftValue, |
double | aScaleValue, | ||
bool | aRunOnGPUFlag = true |
||
) | const |
unsigned int gVirtualXRay::Image< T >::sizeOf | ( | const char * | anElementType | ) | const |
unsigned int gVirtualXRay::Image< T >::sizeOf | ( | const std::string & | anElementType | ) | const |
Image< unsigned char > gVirtualXRay::Image< T >::threshold | ( | const T & | aLowerThreshold, |
const T & | aUpperThreshold, | ||
unsigned char | anInValue, | ||
unsigned char | anOutValue, | ||
bool | aRunOnGPUFlag = true |
||
) | const |
Image< unsigned char > gVirtualXRay::Image< T >::threshold | ( | const T & | aThreshold, |
unsigned char | aValueIn = 1 , |
||
unsigned char | aValueOut = 0 |
||
) | const |
Image<unsigned char> gVirtualXRay::Image< T >::threshold | ( | const T & | aLowerThreshold, |
const T & | aUpperThreshold, | ||
unsigned char | aValueIn = 1 , |
||
unsigned char | aValueOut = 0 |
||
) | const |
void gVirtualXRay::Image< T >::transferDeviceToHost | ( | ) |
void gVirtualXRay::Image< T >::transferHostToDevice | ( | ) |
Image< T > gVirtualXRay::Image< T >::transpose | ( | ) | const |
|
protected |
|
staticprotected |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |