#ifndef pst_map_rescale_values_H #define pst_map_rescale_values_H /* pst_map_rescale_values.h -- procedures for working with height maps. */ /* Last edited on 2025-02-27 12:08:59 by stolfi */ #include #include void pst_map_rescale_values ( float_image_t *A, int32_t wch, float a0, float a1, float z0, float z1 ); /* Maps every sample of every channel {c}, except {wch}, by the affine function that takes {[a0 _ a1]} to {[z0 _ z1]}. If {wch} is a valid channel index of {A}, every sample {A[wch,X,Y]} is interpreted as a reliability weight for the samples {A[c,X,Y]} in channels {c != wch}. If any input or output sample {A[c,X,Y]} is not finite or its weight is zero, then {A[wch,X,Y]} (if it exists) is set to zero and other samples {A[c,X,Y]} of that pixels are set to {NAN}. Otherwise the weights are not affected. */ #endif