pulsatrix
Loading...
Searching...
No Matches
image_transforms.hpp File Reference

Sample-level image Transforms – resize, center-crop, normalize, horizontal flip. More...

#include <vector>
#include "pulsatrix/device_backend.hpp"
#include "pulsatrix/transform.hpp"
Include dependency graph for image_transforms.hpp:

Go to the source code of this file.

Classes

class  pulsatrix::ResizeTransform
 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...
 
class  pulsatrix::CenterCropTransform
 Crops the centered (crop_height, crop_width) region of the image. More...
 
class  pulsatrix::NormalizeTransform
 Per-channel normalization: pixel = (pixel - mean[c]) / std[c]. In-place, no backend needed (same shape in and out). More...
 
class  pulsatrix::HorizontalFlipTransform
 Mirrors the image left-right. In-place, no backend needed (same shape). More...
 

Namespaces

namespace  pulsatrix
 

Detailed Description

Sample-level image Transforms – resize, center-crop, normalize, horizontal flip.