Slicer 4.2
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

enum ipDataType
Enumerator:
IP_BYTE 
IP_INT 
IP_FLOAT 
IP_DOUBLE 
IP_SHORT 

Definition at line 30 of file misc.h.


Function Documentation

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 
) [inline]

Definition at line 110 of file misc.h.

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

Definition at line 85 of file misc.h.

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

Definition at line 57 of file misc.h.

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

Definition at line 99 of file misc.h.

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

Definition at line 71 of file misc.h.

template<class T >
T sqr ( x) [inline]

Definition at line 64 of file misc.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines