
Represents multiple methods for transforming image dimensions. More...
#include <Image/ResizeSpec.H>

Public Member Functions | |
| ResizeSpec (const Dims &d) | |
| implicit conversion constructor from Dims to a fixed ResizeSpec | |
| bool | operator== (const ResizeSpec &that) const |
| std::string | toString () const |
| Dims | transformDims (const Dims &in) |
Static Public Member Functions | |
| static ResizeSpec | noOp () |
| static ResizeSpec | fixed (const Dims &d) |
| static ResizeSpec | scaleUp (const double f) |
| static ResizeSpec | scaleUp (const double fw, const double fh) |
| static ResizeSpec | scaleDown (const double f) |
| static ResizeSpec | scaleDown (const double fw, const double fh) |
| static ResizeSpec | fromString (const std::string &str) |
Represents multiple methods for transforming image dimensions.
A ResizeSpec object represents some method for transforming an original set of image dimensions (A) into a new set of image dimensions (B). Supported methods include:
Definition at line 59 of file ResizeSpec.H.
| ResizeSpec::ResizeSpec | ( | const Dims & | d | ) | [inline] |
implicit conversion constructor from Dims to a fixed ResizeSpec
Definition at line 83 of file ResizeSpec.H.
1.6.3