|
pulsatrix
|
Every transform in this file operates on sample.fields[0], assumed to be an image Tensor of shape (1, channels, height, width) – the convention MnistDatasetAdapter, CsvDataset, and ImageDecoder all already share (image/features first, label last). More...
#include <image_transforms.hpp>


Public Member Functions | |
| ResizeTransform (int64_t target_height, int64_t target_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 |
Every transform in this file operates on sample.fields[0], assumed to be an image Tensor of shape (1, channels, height, width) – the convention MnistDatasetAdapter, CsvDataset, and ImageDecoder all already share (image/features first, label last).
Nearest-neighbor resize to (target_height, target_width).
|
inline |
Applies this transform to a sample.
| sample | Input sample. |
Implements pulsatrix::Transform.