- Timestamp:
- Jun 6, 2011, 1:56:22 PM (15 years ago)
- Location:
- branches/czw_branch/20110406
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
psModules/src/objects/pmPCMdata.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/czw_branch/20110406
- Property svn:mergeinfo changed
-
branches/czw_branch/20110406/psModules/src/objects/pmPCMdata.c
r31153 r31606 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.
