Changeset 21183 for trunk/psModules/src/camera/pmFPAMosaic.c
- Timestamp:
- Jan 26, 2009, 8:40:07 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/camera/pmFPAMosaic.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPAMosaic.c
r19073 r21183 471 471 numImages++; 472 472 473 // Only implemented for F32 and U8 images so far.474 assert(image->type.type == PS_TYPE_F32 || image->type.type == PS_TYPE_U8);475 473 // All input types must be the same 476 474 if (type == 0) { … … 537 535 if (xBinSource->data.S32[i] == xBinTarget && yBinSource->data.S32[i] == yBinTarget) { 538 536 switch (type) { 537 COPY_WITH_PARITY_DIFFERENCE(U8); 538 COPY_WITH_PARITY_DIFFERENCE(U16); 539 COPY_WITH_PARITY_DIFFERENCE(U32); 540 COPY_WITH_PARITY_DIFFERENCE(U64); 541 COPY_WITH_PARITY_DIFFERENCE(S8); 542 COPY_WITH_PARITY_DIFFERENCE(S16); 543 COPY_WITH_PARITY_DIFFERENCE(S32); 544 COPY_WITH_PARITY_DIFFERENCE(S64); 539 545 COPY_WITH_PARITY_DIFFERENCE(F32); 540 COPY_WITH_PARITY_DIFFERENCE( U8);546 COPY_WITH_PARITY_DIFFERENCE(F64); 541 547 default: 542 548 psAbort("Should never get here.\n"); … … 548 554 // We have to do all of the hard work ourselves 549 555 switch (type) { 550 FILL_IN(F32); 551 FILL_IN(U8); 556 FILL_IN(U8); 557 FILL_IN(U16); 558 FILL_IN(U32); 559 FILL_IN(U64); 560 FILL_IN(S8); 561 FILL_IN(S16); 562 FILL_IN(S32); 563 FILL_IN(S64); 564 FILL_IN(F32); 565 FILL_IN(F64); 552 566 default: 553 567 psAbort("Should never get here.\n"); … … 730 744 const pmChip *chip, // Chip to mosaic 731 745 const pmCell *targetCell, // Cell to which to mosaic 732 ps MaskType blank // Mask value to give blank pixels746 psImageMaskType blank // Mask value to give blank pixels 733 747 ) 734 748 { … … 838 852 const pmChip *targetChip, // Chip to which to mosaic 839 853 const pmCell *targetCell, // Cell to which to mosaic 840 ps MaskType blank // Mask value to give blank pixels854 psImageMaskType blank // Mask value to give blank pixels 841 855 ) 842 856 { … … 994 1008 // the mosaic image. 995 1009 996 bool pmChipMosaic(pmChip *target, const pmChip *source, bool deepCopy, ps MaskType blank)1010 bool pmChipMosaic(pmChip *target, const pmChip *source, bool deepCopy, psImageMaskType blank) 997 1011 { 998 1012 // Target exists, and has only a single cell … … 1225 1239 1226 1240 1227 bool pmFPAMosaic(pmFPA *target, const pmFPA *source, bool deepCopy, ps MaskType blank)1241 bool pmFPAMosaic(pmFPA *target, const pmFPA *source, bool deepCopy, psImageMaskType blank) 1228 1242 { 1229 1243 // Target exists, and has only a single chip with single cell
Note:
See TracChangeset
for help on using the changeset viewer.
