Changeset 31451 for trunk/psModules/src/objects/pmPCMdata.c
- Timestamp:
- May 5, 2011, 11:02:53 AM (15 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/objects/pmPCMdata.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/objects/pmPCMdata.c
r31153 r31451 263 263 bool pmPCMupdate(pmPCMdata *pcm, pmSource *source, pmSourceFitOptions *fitOptions, pmModel *model) { 264 264 265 bool newWindow = (source->pixels->numRows != pcm->modelFlux->numRows) || (source->pixels->numCols != pcm->modelFlux->numCols); 265 bool sameWindow = (source->pixels->numRows == pcm->modelFlux->numRows); 266 sameWindow &= (source->pixels->numCols == pcm->modelFlux->numCols); 267 sameWindow &= (source->pixels->col0 == pcm->modelFlux->col0); 268 sameWindow &= (source->pixels->row0 == pcm->modelFlux->row0); 266 269 267 270 // re-count the number of unmasked pixels: 268 if ( newWindow) {271 if (!sameWindow) { 269 272 for (psS32 i = 0; i < source->pixels->numRows; i++) { 270 273 for (psS32 j = 0; j < source->pixels->numCols; j++) { … … 346 349 347 350 // has the source pixel window changed? 348 if ( newWindow) {351 if (!sameWindow) { 349 352 350 353 // adjust all supporting images:
Note:
See TracChangeset
for help on using the changeset viewer.
