|
Enrollment 28.2.0
|
Image resampler for DPI-change operations, including upsampling and downsampling using area interpolation resampling algorithm. More...
#include <Image.h>
Public Member Functions | |
| AreaImageResampler (ImageDpi targetDpi) | |
| Constructs pixel-area-relation interpolation image resampler for a target DPI. | |
| std::shared_ptr< Image > | Resample (const inno::Image &image) const final |
| Resample image to a target DPI using pixel-area-relation interpolation. | |
Protected Member Functions | |
| ImageDpi | GetDpi () const |
| Retrieves target DPI of the resampler. | |
Image resampler for DPI-change operations, including upsampling and downsampling using area interpolation resampling algorithm.
|
inlineexplicit |
Constructs pixel-area-relation interpolation image resampler for a target DPI.
This constructor initializes the image resampler to resample an image to the specified DPI using pixel-area-relation interpolation. In most cases, this resampler provides the fastest resampling among the Enrollment SDK resamplers.
| targetDpi | The DPI (dots per inch) of the new image. |
| EnrollmentInvalidArgumentException | when targetDpi is 0 |
References Image::ImageResampler::ImageResampler().
|
inlinenodiscardprotectedinherited |
Retrieves target DPI of the resampler.
Referenced by Image::AreaImageResampler::Resample(), Image::BicubicImageResampler::Resample(), and Image::NISTImageResampler::Resample().
|
inlinenodiscardfinalvirtual |
Resample image to a target DPI using pixel-area-relation interpolation.
It creates new image as result of resampling with factor target DPI/original DPI. In most cases, this resampling method provides the fastest resampling among the Enrollment SDK resamplers.
| image | Image to resize. |
| ImageException | when there is an processing error |
Implements Image::ImageResampler.
References Image::ImageResampler::GetDpi().