Changeset 26429
- Timestamp:
- Dec 15, 2009, 6:39:24 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20091201/psModules/src/imcombine/pmSubtractionVisual.c
r26373 r26429 242 242 243 243 overlay[Noverlay].type = KII_OVERLAY_BOX; 244 if ((stamp->x < 1.0) && (stamp->y < 1.0)) { 245 fprintf (stderr, "stamp zero: %f %f\n", stamp->x, stamp->y); 246 continue; 247 } 248 if (!isfinite(stamp->x) && !isfinite(stamp->y)) { 249 fprintf (stderr, "stamp nan: %f %f\n", stamp->x, stamp->y); 250 continue; 251 } 244 252 overlay[Noverlay].x = stamp->x; 245 253 overlay[Noverlay].y = stamp->y; … … 269 277 bool pmSubtractionVisualShowFitInit(pmSubtractionStampList *stamps) { 270 278 271 //if (!pmVisualIsVisual()) return true;279 if (!pmVisualIsVisual()) return true; 272 280 273 281 // generate 4 storage images large enough to hold the N stamps: … … 306 314 bool pmSubtractionVisualShowFitAddStamp(psKernel *target, psKernel *source, psKernel *convolution, double background, double norm, int index) { 307 315 308 //if (!pmVisualIsVisual()) return true;316 if (!pmVisualIsVisual()) return true; 309 317 310 318 double sum; … … 377 385 bool pmSubtractionVisualShowFit() { 378 386 379 //if (!pmVisualIsVisual()) return true;387 if (!pmVisualIsVisual()) return true; 380 388 if (!pmVisualInitWindow(&kapa1, "ppSub:Images")) return false; 381 389 if (!pmVisualInitWindow(&kapa2, "ppSub:Misc")) return false; … … 387 395 pmVisualScaleImage(kapa1, sourceImage, "Source Stamps", 1, true); 388 396 pmVisualScaleImage(kapa1, convolutionImage, "Convolution Stamps", 2, true); 397 KiiCenter (kapa1, 0.5*targetImage->numCols, 0.5*targetImage->numRows, 1); 389 398 390 399 pmVisualScaleImage(kapa2, fresidualImage, "Frac Residual Stamps", 2, true); 400 pmVisualScaleImage(kapa2, differenceImage, "Difference Stamps", 0, true); 391 401 pmVisualScaleImage(kapa2, residualImage, "Residual Stamps", 1, true); 392 pmVisualScaleImage(kapa2, differenceImage, "Difference Stamps", 0, true); 402 KiiCenter (kapa2, 0.5*residualImage->numCols, 0.5*residualImage->numRows, 1); 403 393 404 pmVisualAskUser(NULL); 394 405 … … 414 425 Graphdata graphdata; 415 426 416 //if (!pmVisualIsVisual()) return true;427 if (!pmVisualIsVisual()) return true; 417 428 if (!pmVisualInitWindow(&kapa3, "ppSub:plots")) return false; 418 429
Note:
See TracChangeset
for help on using the changeset viewer.
