--- ray/src/common/falsecolor.h 2005/11/14 22:18:18 3.1 +++ ray/src/common/falsecolor.h 2005/11/15 20:04:50 3.3 @@ -1,4 +1,4 @@ -/* RCSid $Id: falsecolor.h,v 3.1 2005/11/14 22:18:18 greg Exp $ */ +/* RCSid $Id: falsecolor.h,v 3.3 2005/11/15 20:04:50 greg Exp $ */ /* * Header file for false color tone-mapping. * @@ -53,7 +53,7 @@ fcFixedLog(FCstruct *fcs, double Lwmin, double Lwmax); */ extern int -fcLinearMapping(FCstruct *fcs, TMstruct *tms, int pctile); +fcLinearMapping(FCstruct *fcs, TMstruct *tms, double pctile); /* Compute linear false color map. @@ -65,7 +65,7 @@ fcLinearMapping(FCstruct *fcs, TMstruct *tms, int pcti */ extern int -fcLogMapping(FCstruct *fcs, TMstruct *tms, int pctile); +fcLogMapping(FCstruct *fcs, TMstruct *tms, double pctile); /* Compute logarithmic false color map. @@ -88,6 +88,26 @@ fcMapPixels(FCstruct *fcs, BYTE *ps, TMbright *ls, int returns - 0 on success, TM_E_* on failure. */ + +extern int +fcIsLogMap(FCstruct *fcs); +/* + Determine if false color mapping is logarithmic. + + fcs - false color structure pointer. + + returns - 1 if map follows logarithmic mapping, -1 on error. +*/ + +extern FCstruct * +fcDup(FCstruct *fcs); +/* + Duplicate a false color structure. + + fcs - false color structure pointer. + + returns - duplicate structure, or NULL if no memory. +*/ extern void fcDone(FCstruct *fcs);