Index: trunk/psLib/src/imageops/psImageMap.h
===================================================================
--- trunk/psLib/src/imageops/psImageMap.h	(revision 15598)
+++ trunk/psLib/src/imageops/psImageMap.h	(revision 15841)
@@ -7,6 +7,6 @@
  *  @author Eugene Magnier, IfA
  *
- *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2007-11-13 18:23:17 $
+ *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2007-12-15 01:20:03 $
  *
  *  Copyright 2007 Institute for Astronomy, University of Hawaii
@@ -18,4 +18,9 @@
 /// @addtogroup ImageOps Image Operations
 /// @{
+
+#include <psStats.h>
+#include <psImage.h>
+#include <psImageBinning.h>
+#include <psVector.h>
 
 // a structure to describe the 2D variations of some quantity as a function of position the
@@ -33,4 +38,5 @@
     int nPoor;
     int nGood;
+    psStatsOptions singleMean, singleStdev;  // Statistics for mean and stdev when there's a single pixel
 } psImageMap;
 
@@ -43,22 +49,13 @@
 
 // generate a psImageMap (or NULL) with the given number of superpixels in X and Y
-bool psImageMapGenerate (psImageMap *map, psVector *x, psVector *y, psVector *f, psVector *df, float badFrac);
+bool psImageMapGenerate (psImageMap *map, const psVector *x, const psVector *y, const psVector *f, const psVector *df, float badFrac);
 
-bool psImageMapGenerateScale (psImageMap *map, psVector *x, psVector *y, psVector *f, psVector *df, float badFrac);
+bool psImageMapGenerateScale (psImageMap *map, const psVector *x, const psVector *y, const psVector *f, const psVector *df, float badFrac);
 
 // apply the psImageMap to the given coordinate (fine image pixels)
-double psImageMapEval (psImageMap *map, float x, float y);
+double psImageMapEval (const psImageMap *map, float x, float y);
 
 // apply the psImageMap to the given coordinate vectors (fine image pixels)
-psVector *psImageMapEvalVector (psImageMap *map, psVector *x, psVector *y);
-
-// fit the image map to a set of points
-bool psImageMapFit (psImageMap *map, psVector *mask, psMaskType maskValue, psVector *x, psVector *y, psVector *f, psVector *df);
-
-// fit the image map to a set of points
-bool psImageMapClipFit (psImageMap *map, psStats *stats, psVector *mask, psMaskType maskValue, psVector *x, psVector *y, psVector *f, psVector *df);
-
-bool psImageMapFit1DinY (psImageMap *map, psVector *mask, psMaskType maskValue, psVector *x, psVector *y, psVector *f, psVector *df);
-bool psImageMapFit1DinX (psImageMap *map, psVector *mask, psMaskType maskValue, psVector *x, psVector *y, psVector *f, psVector *df);
+psVector *psImageMapEvalVector (const psImageMap *map, const psVector *x, const psVector *y);
 
 /// @}
