Maria GDK 5.0.0.738
Documentation of native code in develop branch
Loading...
Searching...
No Matches
STK::ScaleImage Class Reference
Inheritance diagram for STK::ScaleImage:
STK::ImageTransform

Classes

struct  Clist
 
struct  Contrib
 

Public Member Functions

 ScaleImage ()
 
 ScaleImage (int dst_width, int dst_height, ResampMethod method=ResampMethod::BOX_NEAREST)
 
virtual bool transform (const Image &src, Image &dst)
 
void setDestSize (int dst_width, int dst_height)
 
void setMethod (ResampMethod method)
 Set scaling method.
 
bool scale (const Image &src, Image &dst, double(*filterf)(double), double fwidth)
 
bool nearestScale (const Image &src, Image &dst)
 
bool boxScale (const Image &src, Image &dst)
 
- Public Member Functions inherited from STK::ImageTransform
virtual bool transform (Image &img)
 
virtual bool transform (const Image &src, Image &dst)
 

Protected Attributes

int dst_width_
 
int dst_height_
 
double support_
 
ResampMethod method_
 
double(* filter_ )(double)
 

Constructor & Destructor Documentation

◆ ScaleImage() [1/2]

ScaleImage::ScaleImage ( )

Default Constructor. This constructor creates an image scaling transform with the BOX_NEAREST method and 0 height and width. setDestSize() must be called before use.

◆ ScaleImage() [2/2]

ScaleImage::ScaleImage ( int  dst_width,
int  dst_height,
ResampMethod  method = ResampMethod::BOX_NEAREST 
)

Constructor. This contructor takes the desired destination width and height as paramters, as well as the scaling method. If no method is given, BOX_NEAREST is assumed.

Member Function Documentation

◆ setDestSize()

void STK::ScaleImage::setDestSize ( int  dst_width,
int  dst_height 
)
inline

Set desired dimensions. This method sets the desired destination dimensions of the image.

◆ transform()

bool ScaleImage::transform ( const Image src,
Image dst 
)
virtual

Perform image scaling. This method scales the input image, src and puts the result in dst.

Reimplemented from STK::ImageTransform.


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