Image Component Library (ICL)
Namespaces | Functions
CoreFunctions.h File Reference
#include <ICLUtils/Macros.h>
#include <ICLUtils/Point32f.h>
#include <ICLUtils/ClippedCast.h>
#include <ICLUtils/PThreadFix.h>
#include <ICLUtils/SSEUtils.h>
#include <ICLCore/Types.h>
#include <ICLCore/ImgParams.h>
#include <string>
#include <cstring>
#include <iostream>
#include <vector>

Go to the source code of this file.

Namespaces

 icl
 undocument this line if you encounter any issues!
 
 icl::core
 

Functions

ICLCore_API ImgBase * icl::core::imgNew (depth d=depth8u, const ImgParams &params=ImgParams::null)
 create a new image instance of the given depth type and with given parameters More...
 
ImgBase * icl::core::imgNew (depth d, const utils::Size &size, format fmt, const utils::Rect &roi=utils::Rect::null)
 creates a new Img (see the above function for more details) More...
 
ImgBase * icl::core::imgNew (depth d, const utils::Size &size, int channels=1, const utils::Rect &roi=utils::Rect::null)
 creates a new Img (see the above function for more details) More...
 
ImgBase * icl::core::imgNew (depth d, const utils::Size &size, int channels, format fmt, const utils::Rect &roi=utils::Rect::null)
 creates a new Img (see the above function for more details) More...
 
ICLCore_API ImgBase * icl::core::ensureDepth (ImgBase **ppoImage, depth eDepth)
 ensures that an image has the specified depth More...
 
ICLCore_API ImgBase * icl::core::ensureCompatible (ImgBase **dst, depth d, const ImgParams &params)
 ensures that an image has given depth and parameters More...
 
ImgBase * icl::core::ensureCompatible (ImgBase **dst, depth d, const utils::Size &size, int channels, const utils::Rect &roi=utils::Rect::null)
 ensures that an image has given depth, size, number of channels and ROI More...
 
ImgBase * icl::core::ensureCompatible (ImgBase **dst, depth d, const utils::Size &size, format fmt, const utils::Rect &roi=utils::Rect::null)
 ensures that an image has given depth, size, format and ROI More...
 
ICLCore_API ImgBase * icl::core::ensureCompatible (ImgBase **dst, depth d, const utils::Size &size, int channels, format fmt, const utils::Rect &roi=utils::Rect::null)
 ensures that an image has given parameters More...
 
ICLCore_API ImgBase * icl::core::ensureCompatible (ImgBase **dst, const ImgBase *src)
 ensures that the destination image gets same depth, size, channel count, depth, format and ROI as source image 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 std::ostream & icl::core::operator<< (std::ostream &s, const format &f)
 puts a string representation of format into the given stream More...
 
ICLCore_API std::ostream & icl::core::operator<< (std::ostream &s, const depth &d)
 puts a string representation of depth into the given stream More...
 
ICLCore_API std::istream & icl::core::operator>> (std::istream &s, format &f)
 puts a string representation of format into the given stream More...
 
ICLCore_API std::istream & icl::core::operator>> (std::istream &s, depth &d)
 puts a string representation of depth into the given stream 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...
 
ICLCore_API std::vector< double > icl::core::mean (const ImgBase *poImg, int iChannel=-1, bool roiOnly=false)
 Computes the mean value of a ImgBase* ingroup MATH. More...
 
ICLCore_API std::vector< double > icl::core::variance (const ImgBase *poImg, const std::vector< double > &mean, bool empiricMean=true, int iChannel=-1, bool roiOnly=false)
 Compute the variance value of an image a with given mean. More...
 
ICLCore_API std::vector< double > icl::core::variance (const ImgBase *poImg, int iChannel=-1, bool roiOnly=false)
 Compute the variance value of an image a. More...
 
ICLCore_API std::vector< double > icl::core::stdDeviation (const ImgBase *poImage, int iChannel=-1, bool roiOnly=false)
 Compute the std::deviation of an image. More...
 
ICLCore_API std::vector< double > icl::core::stdDeviation (const ImgBase *poImage, const std::vector< double > mean, bool empiricMean=true, int iChannel=-1, bool roiOnly=false)
 Compute the std::deviation of an image with given channel means. More...
 
ICLCore_API std::vector< std::pair< double, double > > icl::core::meanAndStdDev (const ImgBase *image, int iChannel=-1, bool roiOnly=false)
 Calculates mean and standard deviation of given image simultanously. More...
 
ICLCore_API std::vector< int > icl::core::channelHisto (const ImgBase *image, int channel, int levels=256, bool roiOnly=false)
 computes the color histogramm of given image channel More...
 
ICLCore_API std::vector< std::vector< int > > icl::core::hist (const ImgBase *image, int levels=256, bool roiOnly=false)
 computes the color histogramm of given image More...