Index: trunk/psphot/src/psphotFindFootprints.c
===================================================================
--- trunk/psphot/src/psphotFindFootprints.c	(revision 30624)
+++ trunk/psphot/src/psphotFindFootprints.c	(revision 31154)
@@ -1,5 +1,5 @@
 # include "psphotInternal.h"
 
-bool psphotFindFootprints (pmDetections *detections, psImage *significance, pmReadout *readout, psMetadata *recipe, const float threshold, const int pass, psImageMaskType maskVal) {
+bool psphotFindFootprints (pmDetections *detections, pmReadout *significance, pmReadout *readout, psMetadata *recipe, const float threshold, const int pass, psImageMaskType maskVal) {
 
     bool status;
@@ -18,6 +18,6 @@
     PS_ASSERT (status, false);
 
-    // find the raw footprints & assign the peaks to those footprints
-    psArray *footprints = pmFootprintsFind (significance, threshold, npixMin);
+    // find the raw footprints in the smoothed significance image & assign the peaks to those footprints
+    psArray *footprints = pmFootprintsFind (significance->variance, threshold, npixMin);
 
     if (pmFootprintsAssignPeaks(footprints, detections->peaks) != PS_ERR_NONE) {
@@ -56,5 +56,5 @@
     }
 
-    psphotCullPeaks(readout, recipe, detections->footprints);
+    psphotCullPeaks(readout, significance, recipe, detections->footprints);
     detections->peaks = pmFootprintArrayToPeaks(detections->footprints);
     psLogMsg ("psphot", PS_LOG_INFO, "%ld peaks, %ld total footprints: %f sec\n", detections->peaks->n, detections->footprints->n, psTimerMark ("psphot.footprints"));
