33#ifndef AIMSALGO_REGISTRATION_PREPROCESSING_H
34#define AIMSALGO_REGISTRATION_PREPROCESSING_H
36#include <cartodata/volume/volume.h>
60 carto::VolumeRef<T>
clipDynamic(
const carto::VolumeRef<T> & in,
61 bool flatten_mask =
true,
62 float pct_kept = 1. );
65 carto::VolumeRef<T>
clipDynamic( carto::VolumeRef<T> & in,
66 bool flatten_mask =
true,
68 bool in_place =
true );
83 std::vector<T> percentile(
const carto::VolumeRef<T> & in,
84 const std::vector<float> & pct,
85 bool interpolate =
true,
88 T percentile(
const carto::VolumeRef<T> & in,
90 bool interpolate =
true,
100 carto::VolumeRef<T>
clip(
const carto::VolumeRef<T> & in,
101 const T & min,
const T & max );
103 template <
typename T>
104 carto::VolumeRef<T>
clip( carto::VolumeRef<T> & in,
105 const T & min,
const T & max,
106 bool in_place =
false );
carto::VolumeRef< T > clip(const carto::VolumeRef< T > &in, const T &min, const T &max)
\function clip
carto::VolumeRef< T > clipDynamic(const carto::VolumeRef< T > &in, bool flatten_mask=true, float pct_kept=1.)
\function clipDynamic