Functions | |
int | imRound (float x) |
int | imResampleInt (int x, double factor) |
template<class T , class TU > | |
T | imZeroOrderDecimation (int width, int height, T *map, double xl, double yl, double box_width, double box_height, TU Dummy) |
template<class T , class TU > | |
T | imBilinearDecimation (int width, int height, T *map, double xl, double yl, double box_width, double box_height, TU Dummy) |
template<class T > | |
T | imZeroOrderInterpolation (int width, int height, T *map, double xl, double yl) |
template<class T > | |
T | imBilinearInterpolation (int width, int height, T *map, double xl, double yl) |
template<class T , class TU > | |
T | imBicubicInterpolation (int width, int height, T *map, double xl, double yl, TU Dummy) |
template<class T > | |
void | imMinMax (const T *map, int count, T &min, T &max, int absolute=0) |
template<class T > | |
void | imMinMaxType (const T *map, int count, T &min, T &max, int absolute=0) |
int imRound | ( | float | x | ) | [inline] |
Round a real to the nearest integer.
Referenced by imColorQuantize(), and imZeroOrderInterpolation().
int imResampleInt | ( | int | x, | |
double | factor | |||
) | [inline] |
Converts between two discrete grids. factor is "dst_size/src_size".
T imZeroOrderDecimation | ( | int | width, | |
int | height, | |||
T * | map, | |||
double | xl, | |||
double | yl, | |||
double | box_width, | |||
double | box_height, | |||
TU | Dummy | |||
) | [inline] |
Does Zero Order Decimation (Mean).
T imBilinearDecimation | ( | int | width, | |
int | height, | |||
T * | map, | |||
double | xl, | |||
double | yl, | |||
double | box_width, | |||
double | box_height, | |||
TU | Dummy | |||
) | [inline] |
Does Bilinear Decimation.
T imZeroOrderInterpolation | ( | int | width, | |
int | height, | |||
T * | map, | |||
double | xl, | |||
double | yl | |||
) | [inline] |
Does Zero Order Interpolation (Nearest Neighborhood).
References imRound().
T imBilinearInterpolation | ( | int | width, | |
int | height, | |||
T * | map, | |||
double | xl, | |||
double | yl | |||
) | [inline] |
Does Bilinear Interpolation.
T imBicubicInterpolation | ( | int | width, | |
int | height, | |||
T * | map, | |||
double | xl, | |||
double | yl, | |||
TU | Dummy | |||
) | [inline] |
Does Bicubic Interpolation.
void imMinMax | ( | const T * | map, | |
int | count, | |||
T & | min, | |||
T & | max, | |||
int | absolute = 0 | |||
) | [inline] |
Calculates minimum and maximum values.
Referenced by imMinMaxType().
void imMinMaxType | ( | const T * | map, | |
int | count, | |||
T & | min, | |||
T & | max, | |||
int | absolute = 0 | |||
) | [inline] |
Calculates minimum and maximum values with additional considerations for data type conversion and normalized operations.
References imMinMax().