KJB
|
#include <img.h>
Public Member Functions | |
CImg () | |
~CImg () | |
CImg (const int Width, const int Height, const bool bMakeBuf=true, const bool bZero=false) | |
CImg (const T *pBuf, const int Width, const int Height, const bool bCopy=false) | |
CImg (CImg< T > &Img, const bool bCopy) | |
CImg (CImg< T > &InImg, const int &Padding=0) | |
CImg (CImgVec< T > &ImgVec, const int &iFrame, const bool &bCopy=false) | |
CImg (CImgVec< T > &ImgVec, const int &nCols, const int &nRows) | |
T | GetPix (const int &x, const int &y) |
T | GetPix (const int &i) |
void | SetPix (const int &x, const int &y, const T &Val) |
void | SetPix (const int &i, const T &Val) |
void | AddToPix (const int &x, const int &y, const T &Val) |
void | Set_pBuffer (const T *pBuf, const int Width, const int Height, const bool bCopy=false) |
IMPLEMENTATION. More... | |
int | Width () const |
int | Height () const |
int | nPixels () const |
bool | bDelete () |
T * | pBuffer () |
T * | pROI () |
int | ROIStartX () |
int | ROIEndX () |
int | ROIStartY () |
int | ROIEndY () |
int | ROISkipCols () |
int | ROIWidth () |
int | ROIHeight () |
int | ROIOffset () |
int | ROISize () |
void | Report () |
bool | IsEmpty () |
bool | IsNotEmpty () |
bool | ReadRaw (const char *strFilename) |
bool | WriteRaw (const char *strFilename) |
void | ClearROI () |
void | ChangeROI (const int StartX, const int EndX, const int StartY, const int EndY) |
void | SafeChangeROI (const int StartX, const int EndX, const int StartY, const int EndY) |
void | ReduceROI (int N=1) |
void | SetOutROIVal (const T &Val) |
void | SetOutROIVal (const T &TopVal, const T &BotVal, const T &LeftVal, const T &RightVal) |
void | ReflectToROI () |
void | SetROIVal (const T &Val) |
void | OutPadROI (const int &Padding) |
void | f2b (CImg< BYTE > &ByteImg, BYTE BGVal=0) |
void | f2b (CImg< BYTE > &ByteImg, float Min, float Max, BYTE BGVal=0) |
void | f2bNoscale (CImg< BYTE > &ByteImg, BYTE BGVal=0) |
void | b2f (CImg< float > &FloatImg, float BGVal=0.0f) |
void | i2f (CImg< float > &FloatImg, float BGVal=0.0f) |
void | ToFloat (CImg< float > &FloatImg, float BGVal=0.0f) |
void | ReduceSize (const int &NewWidth, const int &NewHeight) |
void | Crop (const int &N) |
void | FreeMemory () |
void | CopyFromBuf (T *pBuf) |
void | CopyFromBuf (T *pBuf, const int &StartX, const int &EndX, const int &StartY, const int &EndY) |
void | CopyToBuf (T *pBuf) |
void | Attach (T *pBuf) |
void | Attach (T *pBuf, const int Width, const int Height, const bool bDelete=false) |
T * | Detach () |
void | Minpix (int &x, int &y, T &Val) |
void | Maxpix (int &x, int &y, T &Val) |
void | Maxpix (T &Val) |
void | MinMax (T &Min, T &Max) |
void | ReportMinMax () |
float | MeanLuminance () |
void | MuSig (float &mu, float &sig) |
float | SumAbs () |
void | Normalize (bool full_range=false) |
void | ChangeRange (const BYTE &NewMin, const BYTE &NewMax) |
void | ChangeRange (const float &NewMin, const float &NewMax) |
void | FixThetaRanges (const bool &bHalfPhase=true) |
void | MuFilter (CImg< float > &MuImg, CImg< float > &TImg, int dx, int dy) |
void | MuFilter (CImg< float > &MuImg, int dx, int dy) |
void | MuSigFilter (CImg< float > &MuImg, CImg< float > &SigImg, CImg< float > &TImg, CImg< float > &UImg, int dx, int dy) |
void | MuSigFilter (CImg< float > &MuImg, CImg< float > &SigImg, int dx, int dy) |
void | Pad (CImg< T > &DestImg, const int Left, const int Top, const T &Val=(T) 0) |
void | Extract (CImg< T > &DestImg, const int &Left=0, const int &Top=0) |
void | Square () |
void | Zero () |
void | Mul (CImg< T > &Img) |
void | Mul (const T &Val) |
void | Div (CImg< T > &Img) |
void | Div (const T &Val) |
void | Add (CImg< T > &Img) |
void | Add (const T &Val) |
void | Sub (CImg< T > &Img) |
void | Sub (const T &Val) |
void | Neg () |
void | Log (const float &z=0.0f) |
void | HardOR (CImg< T > &Img, const T &Val=(T) 255) |
void | SoftOR (CImg< T > &Img) |
void | HardAND (CImg< T > &Img, const T &Val=(T) 255) |
void | SoftAND (CImg< T > &Img) |
void | SwapPointers (CImg< T > &InImg) |
void | SwapAll (CImg< T > &InImg) |
void | NormalizeL1 () |
float | L2Norm () |
kjb_int32 | nNonZeros () |
void | Sqrt () |
void | Val2Probability (const float &Sigma) |
void | CopyPixelsFromImgROI (CImg< T > &Img) |
template<> | |
void | f2b (CImg< BYTE > &ByteImg, BYTE BGVal) |
template<> | |
void | f2bNoscale (CImg< BYTE > &ByteImg, BYTE BGVal) |
template<> | |
void | f2b (CImg< BYTE > &ByteImg, float Min, float Max, BYTE BGVal) |
template<> | |
void | b2f (CImg< float > &FloatImg, float BGVal) |
template<> | |
void | i2f (CImg< float > &FloatImg, float BGVal) |
template<> | |
float | MeanLuminance () |
template<> | |
float | MeanLuminance () |
template<> | |
void | MuSig (float &mu, float &sig) |
template<> | |
void | MuSig (float &mu, float &sig) |
template<> | |
float | SumAbs () |
template<> | |
float | SumAbs () |
template<> | |
void | Normalize (bool full_range) |
template<> | |
void | Normalize (bool full_range) |
template<> | |
void | ChangeRange (const BYTE &NewMin, const BYTE &NewMax) |
template<> | |
void | ChangeRange (const float &NewMin, const float &NewMax) |
template<> | |
void | FixThetaRanges (const bool &bHalfPhase) |
template<> | |
void | Square () |
template<> | |
void | Neg () |
template<> | |
void | Log (const float &z) |
template<> | |
void | NormalizeL1 () |
template<> | |
float | L2Norm () |
template<> | |
float | L2Norm () |
template<> | |
void | Sqrt () |
template<> | |
void | Val2Probability (const float &Sigma) |
Protected Attributes | |
T * | m_pBuffer |
int | m_Width |
int | m_Height |
int | m_nPixels |
bool | m_bDelete |
T * | m_pROI |
int | m_ROIStartX |
int | m_ROIStartY |
int | m_ROIEndX |
int | m_ROIEndY |
int | m_ROISkipCols |
int | m_ROIWidth |
int | m_ROIHeight |
int | m_ROIOffset |
int | m_ROISize |
DTLib::CImg< T >::CImg | ( | ) |
DTLib::CImg< T >::~CImg | ( | ) |
DTLib::CImg< T >::CImg | ( | const int | Width, |
const int | Height, | ||
const bool | bMakeBuf = true , |
||
const bool | bZero = false |
||
) |
DTLib::CImg< T >::CImg | ( | const T * | pBuf, |
const int | Width, | ||
const int | Height, | ||
const bool | bCopy = false |
||
) |
|
inline |
|
inline |
|
inline |
|
inline |
void DTLib::CImg< T >::Add | ( | CImg< T > & | Img | ) |
void DTLib::CImg< T >::Add | ( | const T & | Val | ) |
|
inline |
|
inline |
|
inline |
void DTLib::CImg< T >::b2f | ( | CImg< float > & | FloatImg, |
float | BGVal = 0.0f |
||
) |
|
inline |
|
inline |
void DTLib::CImg< T >::ChangeRange | ( | const BYTE & | NewMin, |
const BYTE & | NewMax | ||
) |
void DTLib::CImg< T >::ChangeRange | ( | const float & | NewMin, |
const float & | NewMax | ||
) |
|
inline |
|
inline |
void DTLib::CImg< T >::ChangeROI | ( | const int | StartX, |
const int | EndX, | ||
const int | StartY, | ||
const int | EndY | ||
) |
void DTLib::CImg< T >::ClearROI | ( | ) |
void DTLib::CImg< T >::CopyFromBuf | ( | T * | pBuf | ) |
void DTLib::CImg< T >::CopyFromBuf | ( | T * | pBuf, |
const int & | StartX, | ||
const int & | EndX, | ||
const int & | StartY, | ||
const int & | EndY | ||
) |
void DTLib::CImg< T >::CopyPixelsFromImgROI | ( | CImg< T > & | Img | ) |
void DTLib::CImg< T >::CopyToBuf | ( | T * | pBuf | ) |
void DTLib::CImg< T >::Crop | ( | const int & | N | ) |
|
inline |
void DTLib::CImg< T >::Div | ( | CImg< T > & | Img | ) |
void DTLib::CImg< T >::Div | ( | const T & | Val | ) |
void DTLib::CImg< T >::Extract | ( | CImg< T > & | DestImg, |
const int & | Left = 0 , |
||
const int & | Top = 0 |
||
) |
void DTLib::CImg< T >::f2b | ( | CImg< BYTE > & | ByteImg, |
BYTE | BGVal = 0 |
||
) |
void DTLib::CImg< T >::f2b | ( | CImg< BYTE > & | ByteImg, |
float | Min, | ||
float | Max, | ||
BYTE | BGVal = 0 |
||
) |
|
inline |
|
inline |
void DTLib::CImg< T >::f2bNoscale | ( | CImg< BYTE > & | ByteImg, |
BYTE | BGVal = 0 |
||
) |
|
inline |
void DTLib::CImg< T >::FixThetaRanges | ( | const bool & | bHalfPhase = true | ) |
|
inline |
void DTLib::CImg< T >::FreeMemory | ( | ) |
|
inline |
|
inline |
void DTLib::CImg< T >::HardAND | ( | CImg< T > & | Img, |
const T & | Val = (T)255 |
||
) |
void DTLib::CImg< T >::HardOR | ( | CImg< T > & | Img, |
const T & | Val = (T)255 |
||
) |
|
inline |
void DTLib::CImg< T >::i2f | ( | CImg< float > & | FloatImg, |
float | BGVal = 0.0f |
||
) |
|
inline |
|
inline |
|
inline |
float DTLib::CImg< T >::L2Norm | ( | ) |
|
inline |
|
inline |
void DTLib::CImg< T >::Log | ( | const float & | z = 0.0f | ) |
|
inline |
void DTLib::CImg< T >::Maxpix | ( | int & | x, |
int & | y, | ||
T & | Val | ||
) |
void DTLib::CImg< T >::Maxpix | ( | T & | Val | ) |
float DTLib::CImg< T >::MeanLuminance | ( | ) |
|
inline |
|
inline |
void DTLib::CImg< T >::MinMax | ( | T & | Min, |
T & | Max | ||
) |
void DTLib::CImg< T >::Minpix | ( | int & | x, |
int & | y, | ||
T & | Val | ||
) |
void DTLib::CImg< T >::MuFilter | ( | CImg< float > & | MuImg, |
CImg< float > & | TImg, | ||
int | dx, | ||
int | dy | ||
) |
void DTLib::CImg< T >::MuFilter | ( | CImg< float > & | MuImg, |
int | dx, | ||
int | dy | ||
) |
void DTLib::CImg< T >::Mul | ( | CImg< T > & | Img | ) |
void DTLib::CImg< T >::Mul | ( | const T & | Val | ) |
void DTLib::CImg< T >::MuSig | ( | float & | mu, |
float & | sig | ||
) |
|
inline |
|
inline |
|
inline |
void DTLib::CImg< T >::MuSigFilter | ( | CImg< float > & | MuImg, |
CImg< float > & | SigImg, | ||
int | dx, | ||
int | dy | ||
) |
void DTLib::CImg< T >::Neg | ( | ) |
|
inline |
kjb_int32 DTLib::CImg< T >::nNonZeros | ( | ) |
void DTLib::CImg< T >::Normalize | ( | bool | full_range = false | ) |
|
inline |
|
inline |
void DTLib::CImg< T >::NormalizeL1 | ( | ) |
|
inline |
|
inline |
|
inline |
void DTLib::CImg< T >::Pad | ( | CImg< T > & | DestImg, |
const int | Left, | ||
const int | Top, | ||
const T & | Val = (T)0 |
||
) |
|
inline |
|
inline |
bool DTLib::CImg< T >::ReadRaw | ( | const char * | strFilename | ) |
void DTLib::CImg< T >::ReduceROI | ( | int | N = 1 | ) |
void DTLib::CImg< T >::ReduceSize | ( | const int & | NewWidth, |
const int & | NewHeight | ||
) |
void DTLib::CImg< T >::ReflectToROI | ( | ) |
|
inline |
void DTLib::CImg< T >::ReportMinMax | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void DTLib::CImg< T >::SafeChangeROI | ( | const int | StartX, |
const int | EndX, | ||
const int | StartY, | ||
const int | EndY | ||
) |
void DTLib::CImg< T >::Set_pBuffer | ( | const T * | pBuf, |
const int | Width, | ||
const int | Height, | ||
const bool | bCopy = false |
||
) |
IMPLEMENTATION.
void DTLib::CImg< T >::SetOutROIVal | ( | const T & | Val | ) |
void DTLib::CImg< T >::SetOutROIVal | ( | const T & | TopVal, |
const T & | BotVal, | ||
const T & | LeftVal, | ||
const T & | RightVal | ||
) |
|
inline |
|
inline |
void DTLib::CImg< T >::SetROIVal | ( | const T & | Val | ) |
void DTLib::CImg< T >::SoftAND | ( | CImg< T > & | Img | ) |
void DTLib::CImg< T >::SoftOR | ( | CImg< T > & | Img | ) |
void DTLib::CImg< T >::Sqrt | ( | ) |
|
inline |
void DTLib::CImg< T >::Square | ( | ) |
|
inline |
void DTLib::CImg< T >::Sub | ( | CImg< T > & | Img | ) |
void DTLib::CImg< T >::Sub | ( | const T & | Val | ) |
float DTLib::CImg< T >::SumAbs | ( | ) |
|
inline |
|
inline |
void DTLib::CImg< T >::SwapAll | ( | CImg< T > & | InImg | ) |
void DTLib::CImg< T >::SwapPointers | ( | CImg< T > & | InImg | ) |
void DTLib::CImg< T >::ToFloat | ( | CImg< float > & | FloatImg, |
float | BGVal = 0.0f |
||
) |
void DTLib::CImg< T >::Val2Probability | ( | const float & | Sigma | ) |
|
inline |
|
inline |
bool DTLib::CImg< T >::WriteRaw | ( | const char * | strFilename | ) |
void DTLib::CImg< T >::Zero | ( | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |