Changeset 12654 for trunk/psModules/src/camera/pmFPAMosaic.c
- Timestamp:
- Mar 28, 2007, 1:45:31 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/camera/pmFPAMosaic.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPAMosaic.c
r12629 r12654 510 510 int yTargetBase = (y0->data.S32[i] - yMin) / yBinTarget; // The base y position in the target frame 511 511 512 // in the first case, we are just copy a section pixel-by-pixel513 if ((xBinSource->data.S32[i] == xBinTarget) && 514 (yBinSource->data.S32[i] == yBinTarget) && 515 (xFlip->data.U8[i] == 0) && 516 (yFlip->data.U8[i] == 0)) {512 // in the first case, we are just copy a section pixel-by-pixel 513 if ((xBinSource->data.S32[i] == xBinTarget) && 514 (yBinSource->data.S32[i] == yBinTarget) && 515 (xFlip->data.U8[i] == 0) && 516 (yFlip->data.U8[i] == 0)) { 517 517 // Let someone else do the hard work 518 518 psImageOverlaySection(mosaic, image, xTargetBase, yTargetBase, "+"); 519 continue;520 } 521 522 // in the second case, there's a difference with the parities, but we don't have to523 // worry about binning524 if (xBinSource->data.S32[i] == xBinTarget && yBinSource->data.S32[i] == yBinTarget) {519 continue; 520 } 521 522 // in the second case, there's a difference with the parities, but we don't have to 523 // worry about binning 524 if (xBinSource->data.S32[i] == xBinTarget && yBinSource->data.S32[i] == yBinTarget) { 525 525 switch (type) { 526 526 COPY_WITH_PARITY_DIFFERENCE(F32); 527 527 COPY_WITH_PARITY_DIFFERENCE(U8); 528 default:528 default: 529 529 psAbort("Should never get here.\n"); 530 530 } 531 continue;532 } 533 534 // In the third case, the images are flipped and have different binnnig.535 // We have to do all of the hard work ourselves536 switch (type) {537 FILL_IN(F32);538 FILL_IN(U8);539 default:540 psAbort("Should never get here.\n");541 }531 continue; 532 } 533 534 // In the third case, the images are flipped and have different binnnig. 535 // We have to do all of the hard work ourselves 536 switch (type) { 537 FILL_IN(F32); 538 FILL_IN(U8); 539 default: 540 psAbort("Should never get here.\n"); 541 } 542 542 } // Iterating over images 543 543 … … 1048 1048 } 1049 1049 chipRegion = psRegionAlloc(0, 0, 0, 0); // We've cut and paste, so there's no valid trimsec 1050 *chipRegion = psRegionForImage (mosaicImage, *chipRegion);1050 *chipRegion = psRegionForImage (mosaicImage, *chipRegion); 1051 1051 } 1052 1052 psTrace("psModules.camera", 1, "xBin,yBin: %d,%d\n", xBin, yBin); … … 1054 1054 // Set the concepts for the target cell 1055 1055 psList *sourceCells = psArrayToList(source->cells); // List of cells 1056 pmConceptsAverageCells(targetCell, sourceCells, chipRegion, NULL );1056 pmConceptsAverageCells(targetCell, sourceCells, chipRegion, NULL, false); 1057 1057 { 1058 1058 psMetadataItem *item = psMetadataLookup(targetCell->concepts, "CELL.X0"); … … 1182 1182 } 1183 1183 } 1184 pmConceptsAverageCells(targetCell, sourceCells, fpaRegion, NULL );1184 pmConceptsAverageCells(targetCell, sourceCells, fpaRegion, NULL, false); 1185 1185 { 1186 1186 psMetadataItem *item = psMetadataLookup(targetCell->concepts, "CELL.X0");
Note:
See TracChangeset
for help on using the changeset viewer.
