Changeset 12696 for trunk/psModules/src/camera/pmFPAMosaic.c
- Timestamp:
- Mar 30, 2007, 11:12:56 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/camera/pmFPAMosaic.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPAMosaic.c
r12654 r12696 6 6 #include <assert.h> 7 7 #include <pslib.h> 8 9 #include "pmHDU.h" 8 10 #include "pmFPA.h" 9 11 #include "pmFPAFlags.h" 10 #include "pmHDU.h"11 12 #include "pmConceptsAverage.h" 12 13 #include "pmHDUUtils.h" … … 444 445 445 446 // Get the maximum extent of the mosaic image 446 int xMin = INT_MAX;447 int xMax = - INT_MAX;448 int yMin = INT_MAX;449 int yMax = - INT_MAX;447 int xMin = +INT_MAX; 448 int xMax = -INT_MAX; 449 int yMin = +INT_MAX; 450 int yMax = -INT_MAX; 450 451 psElemType type = 0; 451 452 int numImages = 0; // Number of images … … 672 673 673 674 // Set the flips on the basis of the parity 675 // XXX if (level == CHIP) : only apply Cell parity 676 // XXX if (level == FPA) : apply Chip & Cell parity 674 677 if (xParityCell * xParityChip == xParityTarget) { 675 678 xFlip->data.U8[index] = 0; … … 758 761 yParityCellTarget = 1; 759 762 } 763 # if (0) 760 764 int xParityChipTarget = psMetadataLookupS32(&mdok, targetCell->parent->concepts, "CHIP.XPARITY"); 761 765 if (!mdok || (xParityChipTarget != -1 && xParityChipTarget != 1)) { … … 772 776 int xParityTarget = xParityChipTarget * xParityCellTarget; 773 777 int yParityTarget = yParityChipTarget * yParityCellTarget; 778 # endif 779 int xParityTarget = xParityCellTarget; 780 int yParityTarget = yParityCellTarget; 774 781 775 782 // Binning for the mosaicked chip is the minimum binning allowed by the cells
Note:
See TracChangeset
for help on using the changeset viewer.
