|
| 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) |
|
virtual bool | transform (Image &img) |
|
virtual bool | transform (const Image &src, Image &dst) |
|
|
int | dst_width_ |
|
int | dst_height_ |
|
double | support_ |
|
ResampMethod | method_ |
|
double(* | filter_ )(double) |
|
◆ 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]
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.
◆ 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:
- Native/SilentToolkit/StkImage/StkScaleImage.h
- Native/SilentToolkit/StkImage/StkScaleImage.cpp