IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 15517


Ignore:
Timestamp:
Nov 8, 2007, 1:00:10 PM (19 years ago)
Author:
eugene
Message:

no-kapa versio

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20071023/psphot/src/psphotDiagnosticPlots.c

    r15119 r15517  
    145145    // do we want the requested plot?
    146146    if (!psMetadataLookupBool (&status, plots, name)) return false;
    147    
     147
    148148    // Get the variable list parameters to pass to allocation function
    149149    va_start(argPtr, name);
     
    151151    if (!strcmp(name, "IMAGE.BACKGROUND.CELL.HISTOGRAM")) {
    152152
    153         int ix = va_arg(argPtr, psS32);
    154         int iy = va_arg(argPtr, psS32);
    155         float mean  = va_arg(argPtr, double);
    156         float sigma = va_arg(argPtr, double);
    157         psVector *values = va_arg(argPtr, psPtr);
    158        
    159         int xPlot = psMetadataLookupS32 (&status, plots, "IMAGE.BACKGROUND.CELL.HISTOGRAM.X");
    160         assert (status);
    161         int yPlot = psMetadataLookupS32 (&status, plots, "IMAGE.BACKGROUND.CELL.HISTOGRAM.Y");
    162         assert (status);
     153        int ix = va_arg(argPtr, psS32);
     154        int iy = va_arg(argPtr, psS32);
     155        float mean  = va_arg(argPtr, double);
     156        float sigma = va_arg(argPtr, double);
     157        psVector *values = va_arg(argPtr, psPtr);
    163158
    164         bool gotX = (xPlot < 0) || (xPlot == ix);
    165         bool gotY = (yPlot < 0) || (yPlot == iy);
     159        int xPlot = psMetadataLookupS32 (&status, plots, "IMAGE.BACKGROUND.CELL.HISTOGRAM.X");
     160        assert (status);
     161        int yPlot = psMetadataLookupS32 (&status, plots, "IMAGE.BACKGROUND.CELL.HISTOGRAM.Y");
     162        assert (status);
    166163
    167         if (gotX && gotY) {
    168             psphotImageBackgroundCellHistogram (values, mean, sigma, ix, iy);
    169             goto done;
    170         }
     164        bool gotX = (xPlot < 0) || (xPlot == ix);
     165        bool gotY = (yPlot < 0) || (yPlot == iy);
     166
     167        if (gotX && gotY) {
     168            psphotImageBackgroundCellHistogram (values, mean, sigma, ix, iy);
     169            goto done;
     170        }
    171171    }
    172172
     
    181181int psphotKapaOpen () { return -1; }
    182182bool psphotKapaClose () { return true; }
    183 bool psphotImageBackgroundCellHistogram (psVector *values) { return true; }
     183bool psphotImageBackgroundCellHistogram (psVector *values, float mean, float sigma, int ix, int iy)
     184{
     185    return true;
     186}
    184187bool psphotDiagnosticPlots (pmConfig *config, char *name, ...) { return true; }
    185188
Note: See TracChangeset for help on using the changeset viewer.