KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
DTLib::CSparsePatImg Class Reference

#include <sparsepat.h>

Inheritance diagram for DTLib::CSparsePatImg:
DTLib::CImg< BYTE >

Public Member Functions

 CSparsePatImg (const int &DenseRad, const int &MaxRad, const int &nTotalSamples, const bool &bHalf=true, const bool &bCenterPixOn=true)
 
- Public Member Functions inherited from DTLib::CImg< BYTE >
 CImg ()
 
 CImg (const int Width, const int Height, const bool bMakeBuf=true, const bool bZero=false)
 
 CImg (const BYTE *pBuf, const int Width, const int Height, const bool bCopy=false)
 
 CImg (CImg< BYTE > &Img, const bool bCopy)
 
 CImg (CImg< BYTE > &InImg, const int &Padding=0)
 
 CImg (CImgVec< BYTE > &ImgVec, const int &iFrame, const bool &bCopy=false)
 
 CImg (CImgVec< BYTE > &ImgVec, const int &nCols, const int &nRows)
 
 ~CImg ()
 
BYTE GetPix (const int &x, const int &y)
 
BYTE GetPix (const int &i)
 
void SetPix (const int &x, const int &y, const BYTE &Val)
 
void SetPix (const int &i, const BYTE &Val)
 
void AddToPix (const int &x, const int &y, const BYTE &Val)
 
void Set_pBuffer (const BYTE *pBuf, const int Width, const int Height, const bool bCopy=false)
 IMPLEMENTATION. More...
 
int Width () const
 
int Height () const
 
int nPixels () const
 
bool bDelete ()
 
BYTEpBuffer ()
 
BYTEpROI ()
 
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 BYTE &Val)
 
void SetOutROIVal (const BYTE &TopVal, const BYTE &BotVal, const BYTE &LeftVal, const BYTE &RightVal)
 
void ReflectToROI ()
 
void SetROIVal (const BYTE &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 (BYTE *pBuf)
 
void CopyFromBuf (BYTE *pBuf, const int &StartX, const int &EndX, const int &StartY, const int &EndY)
 
void CopyToBuf (BYTE *pBuf)
 
void Attach (BYTE *pBuf)
 
void Attach (BYTE *pBuf, const int Width, const int Height, const bool bDelete=false)
 
BYTEDetach ()
 
void Minpix (int &x, int &y, BYTE &Val)
 
void Maxpix (int &x, int &y, BYTE &Val)
 
void Maxpix (BYTE &Val)
 
void MinMax (BYTE &Min, BYTE &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< BYTE > &DestImg, const int Left, const int Top, const BYTE &Val=(BYTE) 0)
 
void Extract (CImg< BYTE > &DestImg, const int &Left=0, const int &Top=0)
 
void Square ()
 
void Zero ()
 
void Mul (CImg< BYTE > &Img)
 
void Mul (const BYTE &Val)
 
void Div (CImg< BYTE > &Img)
 
void Div (const BYTE &Val)
 
void Add (CImg< BYTE > &Img)
 
void Add (const BYTE &Val)
 
void Sub (CImg< BYTE > &Img)
 
void Sub (const BYTE &Val)
 
void Neg ()
 
void Log (const float &z=0.0f)
 
void HardOR (CImg< BYTE > &Img, const BYTE &Val=(BYTE) 255)
 
void SoftOR (CImg< BYTE > &Img)
 
void HardAND (CImg< BYTE > &Img, const BYTE &Val=(BYTE) 255)
 
void SoftAND (CImg< BYTE > &Img)
 
void SwapPointers (CImg< BYTE > &InImg)
 
void SwapAll (CImg< BYTE > &InImg)
 
void NormalizeL1 ()
 
float L2Norm ()
 
kjb_int32 nNonZeros ()
 
void Sqrt ()
 
void Val2Probability (const float &Sigma)
 
void CopyPixelsFromImgROI (CImg< BYTE > &Img)
 

Additional Inherited Members

- Protected Attributes inherited from DTLib::CImg< BYTE >
BYTEm_pBuffer
 
int m_Width
 
int m_Height
 
int m_nPixels
 
bool m_bDelete
 
BYTEm_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
 

Constructor & Destructor Documentation

DTLib::CSparsePatImg::CSparsePatImg ( const int &  DenseRad,
const int &  MaxRad,
const int &  nTotalSamples,
const bool &  bHalf = true,
const bool &  bCenterPixOn = true 
)

The documentation for this class was generated from the following files: