brainrat-private
5.1.2
|
A Rescaler allows one to apply a linear transformation to a value of any type. More...
#include <brainrat/utility/channelextractor.h>
Classes | |
class | bad_options_exception |
Public Member Functions | |
Rescaler () | |
virtual | ~Rescaler () |
template<typename T , typename C > | |
C | rescale (T val) |
void | setRescale (bool val=true) |
void | setInputMin (double val) |
void | setInputMax (double val) |
void | setOutputMin (double val) |
void | setOutputMax (double val) |
void | resetInputMin () |
void | resetInputMax () |
void | resetOutputMin () |
void | resetOutputMax () |
void | setInputDynMinMax (bool val=true) |
template<typename T > | |
void | setInputDynMinMax (carto::VolumeRef< T > in) |
void | reset () |
Protected Member Functions | |
template<typename T > | |
void | computeInputDynMin (carto::VolumeRef< T > in, int ch=0) |
template<typename T > | |
void | computeInputDynMax (carto::VolumeRef< T > in, int ch=0) |
template<typename T > | |
void | computeInputTypeMin () |
template<typename T > | |
void | computeInputTypeMax () |
template<typename C > | |
void | computeOutputMin () |
template<typename C > | |
void | computeOutputMax () |
void | AB () |
template<typename T , typename C > | |
void | computeRuntimeMinMax (carto::VolumeRef< T > in, int ch=0) |
template<> | |
void | computeInputDynMin (carto::VolumeRef< AimsRGB > in, int ch) |
template<> | |
void | computeInputDynMax (carto::VolumeRef< AimsRGB > in, int ch) |
template<> | |
void | computeInputTypeMin () |
template<> | |
void | computeInputTypeMax () |
template<> | |
void | computeInputDynMin (carto::VolumeRef< AimsRGBA > in, int ch) |
template<> | |
void | computeInputDynMax (carto::VolumeRef< AimsRGBA > in, int ch) |
template<> | |
void | computeInputTypeMin () |
template<> | |
void | computeInputTypeMax () |
template<> | |
void | computeInputDynMin (carto::VolumeRef< AimsHSV > in, int ch) |
template<> | |
void | computeInputDynMax (carto::VolumeRef< AimsHSV > in, int ch) |
template<> | |
void | computeInputTypeMin () |
template<> | |
void | computeInputTypeMax () |
Protected Attributes | |
bool | _rescale |
double | _imin |
double | _imax |
double | _omin |
double | _omax |
bool | _iminset |
bool | _imaxset |
bool | _ominset |
bool | _omaxset |
bool | _dynlimits |
double | _a |
double | _b |
bool | _abset |
A Rescaler allows one to apply a linear transformation to a value of any type.
The linear coefficients may be computed using the extrem values of of volume (dynamic scaling), or the extrem values of input and output types.
Definition at line 42 of file channelextractor.h.
|
inline |
Definition at line 48 of file channelextractor.h.
|
inlinevirtual |
Definition at line 63 of file channelextractor.h.
|
inlineprotected |
Definition at line 163 of file channelextractor.h.
References _a, _abset, _b, _imax, _imin, _omax, and _omin.
Referenced by computeRuntimeMinMax(), setInputDynMinMax(), setInputMax(), setInputMin(), setOutputMax(), and setOutputMin().
|
protected |
Definition at line 306 of file channelextractor.h.
|
protected |
Definition at line 232 of file channelextractor.h.
|
protected |
Definition at line 269 of file channelextractor.h.
|
inlineprotected |
Definition at line 139 of file channelextractor.h.
References _imax.
Referenced by computeRuntimeMinMax(), and setInputDynMinMax().
|
protected |
Definition at line 294 of file channelextractor.h.
|
protected |
Definition at line 220 of file channelextractor.h.
|
protected |
Definition at line 257 of file channelextractor.h.
|
inlineprotected |
Definition at line 134 of file channelextractor.h.
References _imin.
Referenced by setInputDynMinMax().
|
inlineprotected |
Definition at line 149 of file channelextractor.h.
References _imax.
|
protected |
Definition at line 250 of file channelextractor.h.
|
protected |
Definition at line 287 of file channelextractor.h.
|
protected |
Definition at line 324 of file channelextractor.h.
|
inlineprotected |
Definition at line 144 of file channelextractor.h.
References _imin.
|
protected |
Definition at line 244 of file channelextractor.h.
|
protected |
Definition at line 281 of file channelextractor.h.
|
protected |
Definition at line 318 of file channelextractor.h.
|
inlineprotected |
Definition at line 159 of file channelextractor.h.
References _omax.
|
inlineprotected |
Definition at line 154 of file channelextractor.h.
References _omin.
|
inlineprotected |
Definition at line 173 of file channelextractor.h.
References _dynlimits, _imaxset, _iminset, _omaxset, _ominset, _rescale, AB(), and computeInputDynMax().
|
inline |
|
inline |
Definition at line 118 of file channelextractor.h.
References _abset, _dynlimits, _imaxset, _iminset, _omaxset, _ominset, and _rescale.
|
inline |
Definition at line 105 of file channelextractor.h.
References _imaxset.
|
inline |
Definition at line 104 of file channelextractor.h.
References _iminset.
|
inline |
Definition at line 107 of file channelextractor.h.
References _omaxset.
|
inline |
Definition at line 106 of file channelextractor.h.
References _ominset.
|
inline |
Definition at line 108 of file channelextractor.h.
References _dynlimits.
|
inline |
Definition at line 110 of file channelextractor.h.
References _imaxset, _iminset, AB(), computeInputDynMax(), and computeInputDynMin().
|
inline |
Definition at line 101 of file channelextractor.h.
|
inline |
Definition at line 100 of file channelextractor.h.
|
inline |
Definition at line 103 of file channelextractor.h.
|
inline |
Definition at line 102 of file channelextractor.h.
|
inline |
Definition at line 99 of file channelextractor.h.
References _rescale.
|
protected |
Definition at line 213 of file channelextractor.h.
|
protected |
Definition at line 215 of file channelextractor.h.
|
protected |
Definition at line 214 of file channelextractor.h.
|
protected |
Definition at line 212 of file channelextractor.h.
Referenced by computeRuntimeMinMax(), reset(), and setInputDynMinMax().
|
protected |
Definition at line 205 of file channelextractor.h.
Referenced by AB(), computeInputDynMax(), computeInputTypeMax(), and setInputMax().
|
protected |
Definition at line 209 of file channelextractor.h.
Referenced by computeRuntimeMinMax(), reset(), resetInputMax(), setInputDynMinMax(), and setInputMax().
|
protected |
Definition at line 204 of file channelextractor.h.
Referenced by AB(), computeInputDynMin(), computeInputTypeMin(), and setInputMin().
|
protected |
Definition at line 208 of file channelextractor.h.
Referenced by computeRuntimeMinMax(), reset(), resetInputMin(), setInputDynMinMax(), and setInputMin().
|
protected |
Definition at line 207 of file channelextractor.h.
Referenced by AB(), computeOutputMax(), and setOutputMax().
|
protected |
Definition at line 211 of file channelextractor.h.
Referenced by computeRuntimeMinMax(), reset(), resetOutputMax(), and setOutputMax().
|
protected |
Definition at line 206 of file channelextractor.h.
Referenced by AB(), computeOutputMin(), and setOutputMin().
|
protected |
Definition at line 210 of file channelextractor.h.
Referenced by computeRuntimeMinMax(), reset(), resetOutputMin(), and setOutputMin().
|
protected |
Definition at line 203 of file channelextractor.h.
Referenced by computeRuntimeMinMax(), rescale(), reset(), and setRescale().