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

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

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

Go to the source code of this file.

Namespaces

 gVirtualXRay
 

Functions

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::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
17/04/2024
Author
Prof 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, Bangor University, Aug 2016-Sept 2023, version 1.1, BSD 3-Clause License (c) by Prof Franck P. Vidal (franc.nosp@m.k.vi.nosp@m.dal@s.nosp@m.tfc..nosp@m.ac.uk), UK Research and Innovation, Oct 2023-present, version 1.1, BSD 3-Clause License

Definition in file Utilities.inl.