Image Component Library (ICL)
Functions
General Utility and Support Functions

Functions

template<class T >
icl::utils::clip (T tX, T tMin, T tMax)
 clips a value into the range [tMin,tMax] More...
 
ICLCore_API int icl::core::getChannelsOfFormat (format fmt)
 determines the count of channels, for each color format More...
 
template<class T >
depth icl::core::getDepth ()
 getDepth<T> returns to depth enum associated to type T More...
 
ICLCore_API unsigned int icl::core::getSizeOf (depth eDepth)
 return sizeof value for the given depth type More...
 
template<class T >
void icl::core::copy (const T *src, const T *srcEnd, T *dst)
 moves data from source to destination array (no casting possible) More...
 
template<class srcT , class dstT >
void icl::core::convert (const srcT *poSrcStart, const srcT *poSrcEnd, dstT *poDst)
 moves value from source to destination array (with casting on demand) More...
 
template<class T >
ICLCore_API void icl::core::getMinAndMax (T a, T b, T c, T &minVal, T &maxVal)
 function, that calculates the mininum and the maximum value of three value More...
 

Detailed Description

Function Documentation

◆ clip()

template<class T >
T icl::utils::clip ( tX,
tMin,
tMax 
)
inline

clips a value into the range [tMin,tMax]

◆ convert()

template<class srcT , class dstT >
void icl::core::convert ( const srcT *  poSrcStart,
const srcT *  poSrcEnd,
dstT *  poDst 
)
inline

moves value from source to destination array (with casting on demand)

◆ copy()

template<class T >
void icl::core::copy ( const T *  src,
const T *  srcEnd,
T *  dst 
)
inline

moves data from source to destination array (no casting possible)

◆ getChannelsOfFormat()

ICLCore_API int icl::core::getChannelsOfFormat ( format  fmt)

determines the count of channels, for each color format

Parameters
fmtsource format which channel count should be returned
Returns
channel count of format eFormat

◆ getDepth()

template<class T >
depth icl::core::getDepth ( )
inline

getDepth<T> returns to depth enum associated to type T

◆ getMinAndMax()

template<class T >
ICLCore_API void icl::core::getMinAndMax ( a,
b,
c,
T &  minVal,
T &  maxVal 
)
inline

function, that calculates the mininum and the maximum value of three value

Parameters
afirst input value
bsecond input value
cthird input value
minValreturn value for the minimum
maxValreturn value for the maximum

◆ getSizeOf()

ICLCore_API unsigned int icl::core::getSizeOf ( depth  eDepth)

return sizeof value for the given depth type