CWO++library  0.32
 All Classes Functions Variables Groups
Functions
Image Processing

Functions

void CWO::Resize (int dNx, int dNy, int flag=CWO_INTER_LINEAR)
 resize an image

void CWO::Resize (const cwoVect2< int > &s, int flag=CWO_INTER_LINEAR)
void CWO::Resize (CWO *dst, float scale_x, float scale_y, int flag=CWO_INTER_LINEAR)
void CWO::Rotate (float deg)
virtual void CWO::AffineAngularSpectrum (float *mat_affine, float px, float py, int flag=CWO_INTER_LINEAR)
void CWO::AffineAngularSpectrum (float *mat_affine, const cwoVect2< float > &pitch, int flag=CWO_INTER_LINEAR)
virtual void CWO::ErrorDiffusion (CWO *a=nullptr, int flag=CWO_ED_FS)
virtual void CWO::ErrorDiffusionSegmented (CWO *output, int flag=CWO_ED_FS)
void CWO::RGB2YCbCr (CWO *rgb, CWO *ycbcr)
void CWO::YCbCr2RGB (CWO *rgb, CWO *ycbcr)
void CWO::MulMatrix (CWO *a, cwoComplex *b, CWO *c)

Detailed Description


Function Documentation

void CWO::Resize ( int  dNx,
int  dNy,
int  flag = CWO_INTER_LINEAR 
)

resize an image

   @param dNx new size along to horizontal direction 
   @param dNy new size along to vertical direction 
   @param flag interpolaion method (CWO_INTER_NEAREST, CWO_INTER_LINEAR, CWO_INTER_CUBIC,CWO_INTER_LANCSOZ)
   @note
   GetNx() and GetNy() returns new image sizes.    
CWO a;
a.Load("test.bmp");
a.Resize(a.GetNx()*1.5,a.GetNy()*1.2,CWO_INTER_LINEAR); // the image is resized by horizontally 1.5 times and vertically 1.2 times, respectively