Index: /trunk/psLib/src/imageops/psImageGeomManip.c
===================================================================
--- /trunk/psLib/src/imageops/psImageGeomManip.c	(revision 10547)
+++ /trunk/psLib/src/imageops/psImageGeomManip.c	(revision 10548)
@@ -10,6 +10,6 @@
  *  @author Ross Harman, MHPCC
  *
- *  @version $Revision: 1.32 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-11-09 20:20:27 $
+ *  @version $Revision: 1.33 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-12-08 11:37:31 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -134,5 +134,5 @@
                 vec->n = n; \
                 maskVec->n = n; \
-                myStats = psVectorStats(myStats, vec, NULL, maskVec, maskVal); \
+                psVectorStats(myStats, vec, NULL, maskVec, maskVal); \
                 outRowData[col] = (ps##TYPE)psStatsGetValue(myStats, statistic); \
             } \
Index: /trunk/psLib/src/imageops/psImagePixelExtract.c
===================================================================
--- /trunk/psLib/src/imageops/psImagePixelExtract.c	(revision 10547)
+++ /trunk/psLib/src/imageops/psImagePixelExtract.c	(revision 10548)
@@ -8,6 +8,6 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.28 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-10-24 22:52:55 $
+ *  @version $Revision: 1.29 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-12-08 11:37:31 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -436,5 +436,5 @@
                     } \
                 } \
-                myStats = psVectorStats(myStats,imgVec,NULL,maskVec,maskVal); \
+                psVectorStats(myStats,imgVec,NULL,maskVec,maskVal); \
                 *outData = psStatsGetValue(myStats, statistic); \
                 if (outPosition != NULL) { \
@@ -516,5 +516,5 @@
                 maskVec->data.U8 = (psPtr )(mask->data.U8[r] + col0 * sizeof(psMaskType));
             }
-            myStats = psVectorStats(myStats, imgVec, NULL, maskVec, maskVal);
+            psVectorStats(myStats, imgVec, NULL, maskVec, maskVal);
             *outData = psStatsGetValue(myStats, statistic);
             if (outPosition != NULL) {
@@ -905,5 +905,5 @@
 
     for (psS32 r = 0; r < numOut; r++) {
-        myStats = psVectorStats(myStats,buffer[r], NULL, bufferMask[r],maskVal);
+        psVectorStats(myStats,buffer[r], NULL, bufferMask[r],maskVal);
         outData[r] = psStatsGetValue(myStats, statistic);
     }
Index: /trunk/psLib/src/imageops/psImageStats.c
===================================================================
--- /trunk/psLib/src/imageops/psImageStats.c	(revision 10547)
+++ /trunk/psLib/src/imageops/psImageStats.c	(revision 10548)
@@ -9,6 +9,6 @@
  *  @author GLG, MHPCC
  *
- *  @version $Revision: 1.101 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-10-24 22:52:55 $
+ *  @version $Revision: 1.102 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-12-08 11:37:31 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -108,5 +108,5 @@
     }
 
-    stats = psVectorStats(stats, junkData, NULL, junkMask, maskVal);
+    psVectorStats(stats, junkData, NULL, junkMask, maskVal);
 
     psFree(junkMask);
@@ -588,9 +588,9 @@
         return -1;
     }/* else if (col0 == col1 && row0 == row1) {
-                                                    psError(PS_ERR_BAD_PARAMETER_VALUE, true,
-                                                            "Invalid psRegion specified.  Region contains only 1 pixel.\n");
-                                                    return -1;
-                                                }
-                                            */
+                                                        psError(PS_ERR_BAD_PARAMETER_VALUE, true,
+                                                                "Invalid psRegion specified.  Region contains only 1 pixel.\n");
+                                                        return -1;
+                                                    }
+                                                */
     x0 = col0;
     x1 = col1;
Index: /trunk/psLib/src/imageops/psImageStats.h
===================================================================
--- /trunk/psLib/src/imageops/psImageStats.h	(revision 10547)
+++ /trunk/psLib/src/imageops/psImageStats.h	(revision 10548)
@@ -9,6 +9,6 @@
 *  @author GLG, MHPCC
 *
-*  @version $Revision: 1.28 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2006-04-17 22:00:03 $
+*  @version $Revision: 1.29 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2006-12-08 11:37:31 $
 *
 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -21,4 +21,5 @@
 #include "psImage.h"
 #include "psStats.h"
+#include "psHistogram.h"
 #include "psPolynomial.h"
 #include "psRegion.h"
Index: /trunk/psLib/src/math/psMinimizePolyFit.c
===================================================================
--- /trunk/psLib/src/math/psMinimizePolyFit.c	(revision 10547)
+++ /trunk/psLib/src/math/psMinimizePolyFit.c	(revision 10548)
@@ -10,6 +10,6 @@
  *  @author EAM, IfA
  *
- *  @version $Revision: 1.24 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-10-24 22:52:56 $
+ *  @version $Revision: 1.25 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-12-08 11:37:31 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -855,6 +855,5 @@
         }
 
-        stats  = psVectorStats(stats, resid, NULL, mask, maskValue);
-        if (stats == NULL) {
+        if (!psVectorStats(stats, resid, NULL, mask, maskValue)) {
             psError(PS_ERR_UNKNOWN, false, "Could not compute statistics on the resid vector.  Returning NULL.\n");
             psFree(resid)
@@ -1304,6 +1303,5 @@
         }
 
-        stats  = psVectorStats(stats, resid, NULL, mask, maskValue);
-        if (stats == NULL) {
+        if (!psVectorStats(stats, resid, NULL, mask, maskValue)) {
             psError(PS_ERR_UNKNOWN, false, "Could not compute statistics on the resid vector.  Returning NULL.\n");
             psFree(resid)
@@ -1835,6 +1833,5 @@
         }
 
-        stats  = psVectorStats(stats, resid, NULL, mask, maskValue);
-        if (stats == NULL) {
+        if (!psVectorStats(stats, resid, NULL, mask, maskValue)) {
             psError(PS_ERR_UNKNOWN, false, "Could not compute statistics on the resid vector.  Returning NULL.\n");
             psFree(resid)
@@ -2412,6 +2409,5 @@
         }
 
-        stats  = psVectorStats (stats, resid, NULL, mask, maskValue);
-        if (stats == NULL) {
+        if (!psVectorStats (stats, resid, NULL, mask, maskValue)) {
             psError(PS_ERR_UNKNOWN, false, "Could not compute statistics on the resid vector.  Returning NULL.\n");
             psFree(resid)
