PostGIS
2.5.7dev-r@@SVN_REVISION@@
|
rt_errorstate rt_band_corrected_clamped_value | ( | rt_band | band, |
double | val, | ||
double * | newval, | ||
int * | corrected | ||
) |
Correct value when clamped value is equal to clamped NODATA value.
Correction does NOT occur if unclamped value is exactly unclamped NODATA value.
band | : the band whose NODATA value will be used for comparison |
val | : the value to compare to the NODATA value and correct |
*newval | : pointer to corrected value |
*corrected | : (optional) non-zero if val was corrected |
Definition at line 1834 of file rt_band.c.
References ovdump::band, ES_ERROR, ES_NONE, FLT_EQ, PT_16BSI, PT_16BUI, PT_1BB, PT_2BUI, PT_32BF, PT_32BSI, PT_32BUI, PT_4BUI, PT_64BF, PT_8BSI, PT_8BUI, rt_band_clamped_value_is_nodata(), rt_pixtype_get_min_value(), rt_util_clamp_to_16BSI(), rt_util_clamp_to_16BUI(), rt_util_clamp_to_2BUI(), rt_util_clamp_to_32BSI(), rt_util_clamp_to_32BUI(), rt_util_clamp_to_32F(), rt_util_clamp_to_4BUI(), rt_util_clamp_to_8BSI(), rt_util_clamp_to_8BUI(), and rterror().
Referenced by rt_band_set_pixel().