85 py::class_<ImageScalingOptions>
cls(mod,
"ImageScalingOptions");
86 py::enum_<ImageScalingOptions::ScalingAlgorithm>(
cls,
"ScalingAlgorithm").
87 value(
"NONE", ImageScalingOptions::ScalingAlgorithm::NONE).
88 value(
"RANGE", ImageScalingOptions::ScalingAlgorithm::RANGE).
89 value(
"STDEV_POSITIVE", ImageScalingOptions::ScalingAlgorithm::STDEV_POSITIVE).
90 value(
"STDEV_NEGATIVE", ImageScalingOptions::ScalingAlgorithm::STDEV_NEGATIVE).
91 value(
"STDEV_BOTH", ImageScalingOptions::ScalingAlgorithm::STDEV_BOTH).
92 value(
"MANUAL", ImageScalingOptions::ScalingAlgorithm::MANUAL).
95 cls.def(py::init<>());
97 unsigned long,
float,
float,
bool,
double,
double>(),
99 "quantizeLevel"_a=4.0,
"quantizePad"_a=5.0,
"fuzz"_a=
true,
"bscale"_a=1.0,
"bzero"_a=0.0);
101 cls.def_readonly(
"algorithm", &ImageScalingOptions::algorithm);
102 cls.def_readonly(
"bitpix", &ImageScalingOptions::bitpix);
103 cls.def_readonly(
"maskPlanes", &ImageScalingOptions::maskPlanes);
104 cls.def_readonly(
"seed", &ImageScalingOptions::seed);
105 cls.def_readonly(
"quantizeLevel", &ImageScalingOptions::quantizeLevel);
106 cls.def_readonly(
"quantizePad", &ImageScalingOptions::quantizePad);
107 cls.def_readonly(
"fuzz", &ImageScalingOptions::fuzz);
108 cls.def_readonly(
"bscale", &ImageScalingOptions::bscale);
109 cls.def_readonly(
"bzero", &ImageScalingOptions::bzero);
111 declareImageScalingOptionsTemplates<float>(
cls);
112 declareImageScalingOptionsTemplates<double>(
cls);