IMAGE (kimage_proc) functions


LIBRARY ROUTINE

ligauss_func - generate 2D gaussian function data

LIBRARY CALL

int gauss_gen(
   int xpeak,
   int ypeak, 
   double xvar, 
   double yvar, 
   double corr_coeff, 
   double ampl, 
   int norm, 
   int size, 
   int start_xpos,
   int ypos, 
   int flag, 
   double **data)

INPUT

none

OUTPUT

none

RETURN VALUE

TRUE (1) on success, FALSE (0) otherwise

DESCRIPTION

library routine for igauss_func. ligauss_func creates a 2D gaussian function value data set containing one or many gaussian functions.For each gaussian function generated, 6 parameters are required: (x,y) coordinate of the peak, variance along x and y direction, correlation coefficient between the two variables of the 2D gaussian function and the peak value of the gaussian function. For generating more than one gaussian function this information must be stored in param_obj along its bands (elemets), stored in the order described above. If param_obj is NULL it is assumed that only one gaussian is to be generated. The parameters of that gaussian are passed in directly. For the multiple gaussian case the amplitude values are ignored if norm is TRUE. The output object, dst_obj has size rows*cols*1 and datatype given by type. Complex data types are not supported for ligauss_func.

ADDITIONAL INFORMATION

none

EXAMPLES

none

SIDE EFFECTS

none

RESTRICTIONS

none

MODIFICATION

none

FILES

$IMAGE/objects/library/kimage_proc/src/ligauss_func.c

SEE ALSO

kimage_proc(3)

COPYRIGHT

Copyright (C) 1993 - 1997, Khoral Research, Inc. ("KRI") All rights reserved.