28 #include <sys/types.h> 59 T temp = *a; *a = *b; *b = temp;
75 for(
int i = 0; i < size; i++, dp++ )
89 for(
int i = 0; i < size; i++, dp++ )
103 for(
int i = 0; i < size; i++, dp++ )
105 *dp = (*dp < threshold ? (T) 0.0 : (T) 1.0);
114 for(
int i = 0; i < size; i++, dp++ )
116 *dp = (*dp > threshold ? (T) 0.0 : (T) 1.0);
void ipUpperBinaryThreshold(T *data, const int size, const T threshold)
void * ipAllocateData(const int size, const size_t elemsize)
void ipLowerThreshold(T *data, const int size, const T threshold)
void ipUpperThreshold(T *data, const int size, const T threshold)
void ipLowerBinaryThreshold(T *data, const int size, const T threshold)
size_t ipGetDataSize(const ipDataType type)