Index: trunk/psphot/src/psphot.h
===================================================================
--- trunk/psphot/src/psphot.h	(revision 19888)
+++ trunk/psphot/src/psphot.h	(revision 19917)
@@ -34,5 +34,5 @@
 
 psArray        *psphotSourceStats (pmReadout *readout, psMetadata *recipe, pmDetections *detections);
-bool            psphotRoughClass (psArray *sources, psMetadata *recipe, const bool findPsfClump);
+bool            psphotRoughClass (pmReadout *readout, psArray *sources, psMetadata *recipe, const bool findPsfClump);
 bool            psphotBasicDeblend (psArray *sources, psMetadata *recipe);
 pmPSF          *psphotChoosePSF (pmReadout *readout, psArray *sources, psMetadata *recipe);
@@ -46,5 +46,5 @@
 bool            psphotRemoveAllSources (psArray *sources, psMetadata *recipe);
 bool            psphotApResid (pmReadout *readout, psArray *sources, psMetadata *recipe, pmPSF *psf);
-bool            psphotMagnitudes (psArray *sources, psMetadata *recipe, pmPSF *psf, pmReadout *background);
+bool            psphotMagnitudes (pmConfig *config, const pmFPAview *view, psArray *sources, psMetadata *recipe, pmPSF *psf);
 bool            psphotSkyReplace (pmConfig *config, const pmFPAview *view);
 bool            psphotExtendedSourceAnalysis (pmReadout *readout, psArray *sources, psMetadata *recipe);
@@ -80,5 +80,6 @@
 int             psphotSaveImage (psMetadata *header, psImage *image, char *filename);
 bool            psphotDumpConfig (pmConfig *config);
-pmReadout      *psphotSelectBackground (pmConfig *config, const pmFPAview *view, const bool stdev);
+pmReadout      *psphotSelectBackground (pmConfig *config, const pmFPAview *view);
+pmReadout      *psphotSelectBackgroundStdev (pmConfig *config, const pmFPAview *view);
 
 // PSF / DBL / EXT evaluation functions
@@ -135,20 +136,24 @@
 // psphotVisual functions
 bool psphotSetVisual (bool mode);
-bool psphotVisualShowImage (pmConfig *config, pmReadout *readout);
+bool psphotVisualShowImage (pmReadout *readout);
 bool psphotVisualShowBackground (pmConfig *config, const pmFPAview *view, pmReadout *readout);
 bool psphotVisualShowSignificance (psImage *image);
-bool psphotVisualShowPeaks (pmConfig *config, const pmFPAview *view, pmDetections *detections);
-bool psphotVisualShowFootprints (pmConfig *config, const pmFPAview *view, pmDetections *detections);
-bool psphotVisualShowMoments (pmConfig *config, const pmFPAview *view, psArray *sources);
-bool psphotVisualPlotMoments (pmConfig *config, const pmFPAview *view, psArray *sources);
-bool psphotVisualShowRoughClass (pmConfig *config, const pmFPAview *view, psArray *sources);
-bool psphotVisualShowPSFStars (pmConfig *config, const pmFPAview *view, pmPSF *psf, psArray *sources);
-bool psphotVisualShowSatStars (pmConfig *config, const pmFPAview *view, pmPSF *psf, psArray *sources);
-bool psphotVisualShowPSFModel (pmConfig *config, pmReadout *readout, pmPSF *psf);
-bool psphotVisualShowFlags (pmConfig *config, const pmFPAview *view, psArray *sources);
-bool psphotVisualShowSourceSize (pmConfig *config, const pmFPAview *view, psArray *sources);
-bool psphotVisualShowResidualImage (pmConfig *config, pmReadout *readout);
-bool psphotVisualPlotApResid (pmConfig *config, psArray *sources);
-bool psphotVisualPlotSourceSize (pmConfig *config, psArray *sources);
+bool psphotVisualShowPeaks (pmDetections *detections);
+bool psphotVisualShowFootprints (pmDetections *detections);
+bool psphotVisualShowMoments (psArray *sources);
+bool psphotVisualPlotMoments (psMetadata *recipe, psArray *sources);
+bool psphotVisualShowRoughClass (psArray *sources);
+bool psphotVisualShowPSFStars (psMetadata *recipe, pmPSF *psf, psArray *sources);
+bool psphotVisualShowSatStars (psMetadata *recipe, pmPSF *psf, psArray *sources);
+bool psphotVisualShowPSFModel (pmReadout *readout, pmPSF *psf);
+bool psphotVisualPlotRadialProfile (int myKapa, pmSource *source, psMaskType maskVal);
+bool psphotVisualPlotRadialProfiles (psMetadata *recipe, psArray *sources);
+bool psphotVisualShowFlags (psArray *sources);
+bool psphotVisualShowSourceSize (psArray *sources);
+bool psphotVisualShowResidualImage (pmReadout *readout);
+bool psphotVisualPlotApResid (psArray *sources);
+bool psphotVisualPlotSourceSize (psArray *sources);
+
+bool psphotImageQuality (psMetadata *recipe, psArray *sources);
 
 // structures & functions to support psf-convolved model fitting
