Changeset 17818 for branches/eam_branch_20080511/ppSim/src/ppSimLoop.c
- Timestamp:
- May 27, 2008, 7:12:46 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20080511/ppSim/src/ppSimLoop.c
r17705 r17818 13 13 14 14 // in this program, we are looping over the output image, rather than the input as in ppImage 15 pmFPAfile *file = psMetadataLookupPtr(NULL, config->files, OUTPUT_FILE); // Output file15 pmFPAfile *file = psMetadataLookupPtr(NULL, config->files, "PPSIM.OUTPUT"); // Output file 16 16 assert(file); 17 18 // if we have an input image, we need to add the synthetic data on top of it below19 // XXX we may potentially use this input file to skip missing elements20 pmFPAfile *input = psMetadataLookupPtr(NULL, config->files, "PPIMAGE.INPUT");21 17 22 18 pmFPA *fpa = file->fpa; // FPA for file … … 111 107 112 108 psVector *biasCols = ppSimMakeBiassec (cell, config); 113 114 pmCell *inputCell = NULL;115 if (input) {116 inputCell = pmFPAviewThisCell (view, input->fpa);117 }118 109 119 110 for (int i = 0; i < cell->readouts->n; i++) { … … 169 160 readout->parent->parent->data_exists = true; 170 161 171 if (inputCell && inputCell->readouts->data[i]) { 172 pmReadout *inReadout = inputCell->readouts->data[i]; 173 if (!inReadout->weight) { 174 if (!pmReadoutGenerateWeight(inReadout, true)) { 175 psError (PS_ERR_UNKNOWN, false, "trouble creating weight"); 176 return false; 177 } 178 } 179 if (!ppSimMergeReadouts (readout, inReadout)) ESCAPE (PS_ERR_UNKNOWN, "problem merging input image with simulated image"); 180 } 162 // if there is an input image, merge it with the simulated image 163 if (!ppSimMergeReadouts (config, view)) ESCAPE (PS_ERR_UNKNOWN, "problem merging input image with simulated image"); 181 164 } 182 165 psFree(biasCols);
Note:
See TracChangeset
for help on using the changeset viewer.
