Image Component Library (ICL)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
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

namespace  icl
 

The ICL-namespace.


namespace  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
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)
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)
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)
ICLCore_API ImgBase * icl::core::ensureDepth (ImgBase **ppoImage, depth eDepth)
 ensures that an image has the specified depth
ICLCore_API ImgBase * icl::core::ensureCompatible (ImgBase **dst, depth d, const ImgParams &params)
 ensures that an image has given depth and parameters
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
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
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
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
ICLCore_API int icl::core::getChannelsOfFormat (format fmt)
 determines the count of channels, for each color format
template<class T >
depth icl::core::getDepth ()
 getDepth<T> returns to depth enum associated to type T
ICLCore_API std::ostream & icl::core::operator<< (std::ostream &s, const format &f)
 puts a string representation of format into the given stream
ICLCore_API std::ostream & icl::core::operator<< (std::ostream &s, const depth &d)
 puts a string representation of depth into the given stream
ICLCore_API std::istream & icl::core::operator>> (std::istream &s, format &f)
 puts a string representation of format into the given stream
ICLCore_API std::istream & icl::core::operator>> (std::istream &s, depth &d)
 puts a string representation of depth into the given stream
ICLCore_API unsigned int icl::core::getSizeOf (depth eDepth)
 return sizeof value for the given depth type
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)
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)
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
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.
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.
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.
ICLCore_API std::vector< double > icl::core::stdDeviation (const ImgBase *poImage, int iChannel=-1, bool roiOnly=false)
 Compute the std::deviation of an image.
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.
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.
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
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
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines