14 #ifndef GDCMRESCALER_H
15 #define GDCMRESCALER_H
71 Rescaler():Intercept(0),Slope(1),PF(
PixelFormat::UNKNOWN),TargetScalarType(
PixelFormat::UNKNOWN), ScalarRangeMin(0), ScalarRangeMax(0), UseTargetPixelType(false) {}
75 bool Rescale(
char *out,
const char *in,
size_t n);
78 bool InverseRescale(
char *out,
const char *in,
size_t n);
92 void SetTargetPixelType(
PixelFormat const & targetst );
95 void SetUseTargetPixelType(
bool b);
108 ScalarRangeMin = min;
109 ScalarRangeMax = max;
117 template <
typename TIn>
118 void RescaleFunctionIntoBestFit(
char *out,
const TIn *in,
size_t n);
119 template <
typename TIn>
120 void InverseRescaleFunctionIntoBestFit(
char *out,
const TIn *in,
size_t n);
127 double ScalarRangeMin;
128 double ScalarRangeMax;
129 bool UseTargetPixelType;
134 #endif //GDCMRESCALER_H
double GetIntercept() const
Definition: gdcmRescaler.h:82
#define GDCM_EXPORT
Definition: gdcmWin32.h:34
~Rescaler()
Definition: gdcmRescaler.h:72
void SetIntercept(double i)
Set Intercept: used for both direct&inverse transformation.
Definition: gdcmRescaler.h:81
void SetMinMaxForPixelType(double min, double max)
Definition: gdcmRescaler.h:106
void SetPixelFormat(PixelFormat const &pf)
Set Pixel Format of input data.
Definition: gdcmRescaler.h:98
Rescale class This class is meant to apply the linear transform of Stored Pixel Value to Real World V...
Definition: gdcmRescaler.h:68
void SetSlope(double s)
Set Slope: user for both direct&inverse transformation.
Definition: gdcmRescaler.h:85
Definition: gdcmASN1.h:20
double GetSlope() const
Definition: gdcmRescaler.h:86
Rescaler()
Definition: gdcmRescaler.h:71