|
pulsatrix
|
Per-channel normalization: pixel = (pixel - mean[c]) / std[c]. In-place, no backend needed (same shape in and out). More...
#include <image_transforms.hpp>


Public Member Functions | |
| NormalizeTransform (std::vector< float > mean, std::vector< float > std) | |
| Sample | apply (Sample sample) const override |
| Applies this transform to a sample. | |
Public Member Functions inherited from pulsatrix::Transform | |
| virtual | ~Transform ()=default |
Per-channel normalization: pixel = (pixel - mean[c]) / std[c]. In-place, no backend needed (same shape in and out).
| std::invalid_argument | if mean/std size doesn't match the image's channel count. |
|
inline |
Applies this transform to a sample.
| sample | Input sample. |
Implements pulsatrix::Transform.