next up previous contents
Next: Function rescale() Up: GRASP Routines: Time-Frequency Methods Previous: Function: time_freq_map()   Contents

Function compute_scalefactor()

float compute_scalefactor(float **pic,float rescale, int pdim)

This function is used to compute the rescale value for the TF maps. Such a rescaling is required for instance if the line recognition algorithm requires input maps whose pixels are of type unsigned char or short. It returns the maximum pixel value in the TF map multiplied by the argument rescale. The arguments are:

float **pic: Input. The pointer to the TF map.
float rescale: Input. The factor by which to multiply the maximum pixel value.
int pdim: Input. The size of the TF map.

Author: R. Balasubramanian,

Bruce Allen 2000-11-19