Slicer  4.10
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Classes | Enumerations | Functions
misc.h File Reference
#include <cstdlib>
#include <cstdio>
#include <cerrno>
#include <sys/types.h>
Include dependency graph for misc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

union  ipDataUnion
 

Enumerations

enum  ipDataType {
  IP_BYTE = 0, IP_INT, IP_FLOAT, IP_DOUBLE,
  IP_SHORT
}
 

Functions

void * ipAllocateData (const int size, const size_t elemsize)
 
size_t ipGetDataSize (const ipDataType type)
 
template<class T >
void ipLowerBinaryThreshold (T *data, const int size, const T threshold)
 
template<class T >
void ipLowerThreshold (T *data, const int size, const T threshold)
 
template<class T >
void ipSwap (T *a, T *b)
 
template<class T >
void ipUpperBinaryThreshold (T *data, const int size, const T threshold)
 
template<class T >
void ipUpperThreshold (T *data, const int size, const T threshold)
 
template<class T >
sqr (T x)
 

Enumeration Type Documentation

◆ ipDataType

enum ipDataType
Enumerator
IP_BYTE 
IP_INT 
IP_FLOAT 
IP_DOUBLE 
IP_SHORT 

Definition at line 30 of file misc.h.

Function Documentation

◆ ipAllocateData()

void* ipAllocateData ( const int  size,
const size_t  elemsize 
)

◆ ipGetDataSize()

size_t ipGetDataSize ( const ipDataType  type)

◆ ipLowerBinaryThreshold()

template<class T >
void ipLowerBinaryThreshold ( T *  data,
const int  size,
const T  threshold 
)
inline

Definition at line 110 of file misc.h.

◆ ipLowerThreshold()

template<class T >
void ipLowerThreshold ( T *  data,
const int  size,
const T  threshold 
)
inline

Definition at line 85 of file misc.h.

◆ ipSwap()

template<class T >
void ipSwap ( T *  a,
T *  b 
)
inline

Definition at line 57 of file misc.h.

◆ ipUpperBinaryThreshold()

template<class T >
void ipUpperBinaryThreshold ( T *  data,
const int  size,
const T  threshold 
)
inline

Definition at line 99 of file misc.h.

◆ ipUpperThreshold()

template<class T >
void ipUpperThreshold ( T *  data,
const int  size,
const T  threshold 
)
inline

Definition at line 71 of file misc.h.

◆ sqr()

template<class T >
T sqr ( x)
inline

Definition at line 64 of file misc.h.