gVirtualXRay  2.0.10
VirtualX-RayImagingLibraryonGPU
Namespaces | Functions
Utilities.h File Reference

Some utility functions that do not fit anywhere else. More...

#include <string>
#include "gVirtualXRay/gVirtualXRayConfig.h"
#include "Utilities.inl"
Include dependency graph for Utilities.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 gVirtualXRay
 

Functions

int gVirtualXRay::inflate (const void *src, int srcLen, char **apDst)
 Uncompress data using the Zlib. More...
 
int gVirtualXRay::deflate (const void *src, int srcLen, char **apDst)
 Compress data using the Zlib. More...
 
bool gVirtualXRay::isMAT (const char *aFileName)
 Check if the extension of a file name is MAT. More...
 
bool gVirtualXRay::isDAT (const char *aFileName)
 Check if the extension of a file name is DAT. More...
 
bool gVirtualXRay::isTXT (const char *aFileName)
 Check if the extension of a file name is TXT. More...
 
bool gVirtualXRay::isPGM (const char *aFileName)
 Check if the extension of a file name is PGM. More...
 
bool gVirtualXRay::isRAW (const char *aFileName)
 Check if the extension of a file name is RAW. More...
 
bool gVirtualXRay::isMHA (const char *aFileName)
 Check if the extension of a file name is MHA. More...
 
bool gVirtualXRay::isMHD (const char *aFileName)
 Check if the extension of a file name is MHD. More...
 
bool gVirtualXRay::isDCM (const char *aFileName)
 Check if the extension of a file name is DCM. More...
 
bool gVirtualXRay::isJPEG (const char *aFileName)
 Check if the extension of a file name is JPEG. More...
 
bool gVirtualXRay::isTIFF (const char *aFileName)
 Check if the extension of a file name is TIFF. More...
 
bool gVirtualXRay::isMAT (const std::string &aFileName)
 Check if the extension of a file name is MAT. More...
 
bool gVirtualXRay::isDAT (const std::string &aFileName)
 Check if the extension of a file name is DAT. More...
 
bool gVirtualXRay::isTXT (const std::string &aFileName)
 Check if the extension of a file name is TXT. More...
 
bool gVirtualXRay::isPGM (const std::string &aFileName)
 Check if the extension of a file name is PGM. More...
 
bool gVirtualXRay::isRAW (const std::string &aFileName)
 Check if the extension of a file name is RAW. More...
 
bool gVirtualXRay::isMHA (const std::string &aFileName)
 Check if the extension of a file name is MHA. More...
 
bool gVirtualXRay::isMHD (const std::string &aFileName)
 Check if the extension of a file name is MHD. More...
 
bool gVirtualXRay::isDCM (const std::string &aFileName)
 Check if the extension of a file name is DCM. More...
 
bool gVirtualXRay::isJPEG (const std::string &aFileName)
 Check if the extension of a file name is JPEG. More...
 
bool gVirtualXRay::isTIFF (const std::string &aFileName)
 Check if the extension of a file name is TIFF. More...
 
bool gVirtualXRay::checkExtension (const char *aFileName, const char *anExtension)
 
bool gVirtualXRay::checkExtension (const std::string &aFileName, const std::string &anExtension)
 
bool gVirtualXRay::isBigEndian ()
 
bool gVirtualXRay::isLittleEndian ()
 
bool gVirtualXRay::isLetter (char aValue)
 
bool gVirtualXRay::isUpperCase (char aValue)
 
bool gVirtualXRay::isLowerCase (char aValue)
 
bool gVirtualXRay::isNumber (char aValue)
 
template<typename T >
void gVirtualXRay::swapBytes (T &aValue)
 
template<typename T >
gVirtualXRay::degreeToRadian (const T &aAngleInDegree)
 
template<typename T >
gVirtualXRay::radianToDegree (const T &aAngleInRadian)
 
template<typename T >
int gVirtualXRay::sgn (const T &aValue)
 
double gVirtualXRay::interpolate (const double &a_low, const double &a_high, const double &a0, const double &b_low, const double &b_high)
 
float gVirtualXRay::interpolate (const float &a_low, const float &a_high, const float &a0, const float &b_low, const float &b_high)
 

Detailed Description

Some utility functions that do not fit anywhere else.

Version
1.0
Date
13/01/2017
Author
Dr Franck P. Vidal

License BSD 3-Clause License.

For details on use and redistribution please refer to http://opensource.org/licenses/BSD-3-Clause

Copyright (c) by Dr Franck P. Vidal (franc.nosp@m.k.p..nosp@m.vidal.nosp@m.@fpv.nosp@m.idal..nosp@m.net), http://www.fpvidal.net/, Jan 2017, 2017, version 1.1, BSD 3-Clause License

Definition in file Utilities.h.