Changeset 13064 for trunk/psModules/src/camera/pmFPAMosaic.c
- Timestamp:
- Apr 27, 2007, 12:14:08 PM (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
r12701 r13064 632 632 if (!mdok || xBin->data.S32[index] == 0) { 633 633 psError(PS_ERR_UNKNOWN, true, "CELL.XBIN for cell is not set.\n"); 634 good =false;634 return false; 635 635 } else if (xBin->data.S32[index] < *xBinMin) { 636 636 *xBinMin = xBin->data.S32[index]; … … 639 639 if (!mdok || yBin->data.S32[index] == 0) { 640 640 psError(PS_ERR_UNKNOWN, true, "CELL.YBIN for cell is not set.\n"); 641 good =false;641 return false; 642 642 } else if (yBin->data.S32[index] < *yBinMin) { 643 643 *yBinMin = yBin->data.S32[index]; … … 648 648 if (!mdok || (xParityCell != 1 && xParityCell != -1)) { 649 649 psError(PS_ERR_UNKNOWN, true, "CELL.XPARITY for cell is not set.\n"); 650 good =false;650 return false; 651 651 } 652 652 int yParityCell = psMetadataLookupS32(&mdok, cell->concepts, "CELL.YPARITY"); 653 653 if (!mdok || (yParityCell != 1 && yParityCell != -1)) { 654 654 psError(PS_ERR_UNKNOWN, true, "CELL.YPARITY for cell is not set.\n"); 655 good =false;655 return false; 656 656 } 657 657 … … 663 663 if (!mdok || (xParityChip != 1 && xParityChip != -1)) { 664 664 psError(PS_ERR_UNKNOWN, true, "CHIP.XPARITY for chip is not set.\n"); 665 good =false;665 return false; 666 666 } 667 667 yParityChip = psMetadataLookupS32(&mdok, chip->concepts, "CHIP.YPARITY"); 668 668 if (!mdok || (yParityChip != 1 && yParityChip != -1)) { 669 669 psError(PS_ERR_UNKNOWN, true, "CHIP.YPARITY for chip is not set.\n"); 670 good =false;670 return false; 671 671 } 672 672 } … … 792 792 continue; 793 793 } 794 allGood |= addCell(images, masks, weights, x0, y0, xBin, yBin, xFlip, yFlip,794 allGood &= addCell(images, masks, weights, x0, y0, xBin, yBin, xFlip, yFlip, 795 795 cell, xBinChip, yBinChip, false, x0Target, y0Target, 796 796 xParityTarget, yParityTarget);
Note:
See TracChangeset
for help on using the changeset viewer.
