Biomedical Image Analysis Library
The Biomedical Image Analysis Library is a poweful tool for developers, physicians, researchers, engineers, and so on.
Bial common

Bial global functions and classes. More...

Namespaces

 Bial
 Adjacency relation with indexes following gray code sequency.
Future add-on's: none.
 

Classes

class  Bial::Common
 Commonly used macros, types, static variables and functions. More...
 

Macros

#define DIR_SEPARATOR   '/'
 

Functions

static void Bial::Common::Randomize (bool random)
 Generates numbers in pseudo-random or fixed sequence. More...
 
bool Bial::Equals (float value, float other, float factor)
 Useful function to compare floating point numbers. More...
 
bool Bial::Equals (double value, double other, double factor)
 
float Bial::Radians (float angle)
 Useful function to convert degrees ro radians. More...
 
double Bial::Radians (double angle)
 
float Bial::Degrees (float rad)
 Useful function to convert radians to degrees. More...
 
double Bial::Degrees (double rad)
 
FILE * Bial::Bial_popen (const char *command, const char *type)
 Same as popen for Linux and Apple, and _popen for Windows. More...
 
int Bial::Bial_pclose (FILE *stream)
 Same as pclose for Linux and Apple, and _pclose for Windows. More...
 
std::string Bial::DirectoryExistsCommand (const std::string &dirname)
 Generates a command for terminal to check if directory exists. More...
 
std::string Bial::FileDirectoryListCommand (const std::string &dirname)
 Generates a command for terminal to list files and directories in given directory. More...
 
std::string Bial::DirectoryListCommand (const std::string &dirname)
 Generates a command for terminal to list subdirectories in given directory. More...
 
std::string Bial::FileListCommand (const std::string &dirname)
 Generates a command for terminal to list files in given directory. More...
 
std::string Bial::FileListCommand (const std::string &dirname, const std::string &extension)
 Generates a command for terminal to list files in given directory with a given extension. More...
 
std::string Bial::MakeDirCommand (const std::string &dirname)
 Generates a command for terminal to create a directory. More...
 

Variables

int Bial::verbose
 Determines the COMMENT macro verbosity. More...
 
const double Bial::Pi = std::atan( 1.0 ) * 4.0
 

Detailed Description

Bial global functions and classes.


Class Documentation

class Bial::Common

Commonly used macros, types, static variables and functions.

Definition at line 187 of file Common.hpp.

Collaboration diagram for Bial::Common:
Collaboration graph

Static Public Member Functions

static void Randomize (bool random)
 Generates numbers in pseudo-random or fixed sequence. More...
 

Macro Definition Documentation

#define DIR_SEPARATOR   '/'

Definition at line 340 of file Common.hpp.

Function Documentation

int Bial::Bial_pclose ( FILE *  stream)

Same as pclose for Linux and Apple, and _pclose for Windows.

Date
2013/Oct/29
Version
1.0.00
Warning
none.
FILE* Bial::Bial_popen ( const char *  command,
const char *  type 
)

Same as popen for Linux and Apple, and _popen for Windows.

Date
2013/Oct/29
Version
1.0.00
Warning
none.
float Bial::Degrees ( float  rad)
inline

Useful function to convert radians to degrees.

Date
2015/Jul/22
Version
1.0.00
Warning
none.

Definition at line 243 of file Common.hpp.

double Bial::Degrees ( double  rad)
inline

Definition at line 246 of file Common.hpp.

std::string Bial::DirectoryExistsCommand ( const std::string &  dirname)

Generates a command for terminal to check if directory exists.

Date
2013/Oct/29
Version
1.0.00
Parameters
dirnamename of a directory.
Returns
A command for terminal to check if directory exists.
Warning
none.
std::string Bial::DirectoryListCommand ( const std::string &  dirname)

Generates a command for terminal to list subdirectories in given directory.

Date
2013/Oct/29
Version
1.0.00
Parameters
dirnamename of a directory.
Returns
A command for terminal to list subdirectories in given directory.
Warning
none.
bool Bial::Equals ( float  value,
float  other,
float  factor 
)
inline

Useful function to compare floating point numbers.

Date
2015/Jul/22
Version
1.0.00
Warning
none.

Definition at line 217 of file Common.hpp.

bool Bial::Equals ( double  value,
double  other,
double  factor 
)
inline

Definition at line 220 of file Common.hpp.

std::string Bial::FileDirectoryListCommand ( const std::string &  dirname)

Generates a command for terminal to list files and directories in given directory.

Date
2013/Oct/29
Version
1.0.00
Parameters
dirnamename of a directory.
Returns
A command for terminal to list files and directories in given directory.
Warning
none.
std::string Bial::FileListCommand ( const std::string &  dirname)

Generates a command for terminal to list files in given directory.

Date
2013/Oct/29
Version
1.0.00
Parameters
dirnamename of a directory.
Returns
A command for terminal to list files in given directory.
Warning
none.
std::string Bial::FileListCommand ( const std::string &  dirname,
const std::string &  extension 
)

Generates a command for terminal to list files in given directory with a given extension.

Date
2015/May/25
Version
1.0.00
Parameters
dirnamename of a directory.
extensiona file extension.
Returns
A command for terminal to list files in given directory with a given extension.
Warning
none.
std::string Bial::MakeDirCommand ( const std::string &  dirname)

Generates a command for terminal to create a directory.

Date
2015/Apr/18
Version
1.0.00
Parameters
dirnamename of a directory.
Returns
A command for terminal to list files in given directory.
Warning
none.
float Bial::Radians ( float  angle)
inline

Useful function to convert degrees ro radians.

Date
2015/Jul/22
Version
1.0.00
Warning
none.

Definition at line 230 of file Common.hpp.

double Bial::Radians ( double  angle)
inline

Definition at line 233 of file Common.hpp.

static void Bial::Common::Randomize ( bool  random)
inlinestatic

Generates numbers in pseudo-random or fixed sequence.

Date
2014/May/01
Parameters
randomizeFixed or variable pseudo-random sampling.
Returns
none.
Warning
none.

Definition at line 198 of file Common.hpp.

Variable Documentation

const double Bial::Pi = std::atan( 1.0 ) * 4.0

Definition at line 209 of file Common.hpp.

int Bial::verbose

Determines the COMMENT macro verbosity.