Changeset 15517
- Timestamp:
- Nov 8, 2007, 1:00:10 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20071023/psphot/src/psphotDiagnosticPlots.c
r15119 r15517 145 145 // do we want the requested plot? 146 146 if (!psMetadataLookupBool (&status, plots, name)) return false; 147 147 148 148 // Get the variable list parameters to pass to allocation function 149 149 va_start(argPtr, name); … … 151 151 if (!strcmp(name, "IMAGE.BACKGROUND.CELL.HISTOGRAM")) { 152 152 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); 163 158 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); 166 163 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 } 171 171 } 172 172 … … 181 181 int psphotKapaOpen () { return -1; } 182 182 bool psphotKapaClose () { return true; } 183 bool psphotImageBackgroundCellHistogram (psVector *values) { return true; } 183 bool psphotImageBackgroundCellHistogram (psVector *values, float mean, float sigma, int ix, int iy) 184 { 185 return true; 186 } 184 187 bool psphotDiagnosticPlots (pmConfig *config, char *name, ...) { return true; } 185 188
Note:
See TracChangeset
for help on using the changeset viewer.
