|
pulsatrix
|
Crops the centered (crop_height, crop_width) region of the image. More...
#include <image_transforms.hpp>


Public Member Functions | |
| CenterCropTransform (int64_t crop_height, int64_t crop_width, DeviceBackend *backend) | |
| Sample | apply (Sample sample) const override |
| Applies this transform to a sample. | |
Public Member Functions inherited from pulsatrix::Transform | |
| virtual | ~Transform ()=default |
Crops the centered (crop_height, crop_width) region of the image.
| std::invalid_argument | if the crop size exceeds the image's actual size – external boundary: crop dimensions are caller-supplied configuration. |
|
inline |
Applies this transform to a sample.
| sample | Input sample. |
Implements pulsatrix::Transform.