- Timestamp:
- Feb 2, 2010, 7:06:18 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20091201/ppImage/src/ppImageBurntoolMask.c
r25299 r26764 3 3 #endif 4 4 5 /* #define PPIMAGE_BURNTOOL_DEBUG 1 */ 5 #define PPIMAGE_BURNTOOL_DEBUG 1 6 6 7 7 #include "ppImage.h" … … 47 47 48 48 if (psMetadataLookupS32(&status,rowMD,"cell") == burntool_cell) { 49 if (( (options->burntoolTrails & 0x01)&&(psMetadataLookupS32(&status,rowMD,"nfit") == 0))||50 (( options->burntoolTrails & 0x02)&&(psMetadataLookupS32(&status,rowMD,"up") == 1))||51 ((options->burntoolTrails & 0x04)&&(psMetadataLookupS32(&status,rowMD,"up") == 0))) {49 if ((psMetadataLookupS32(&status,rowMD,"nfit") != 0)&& 50 (((options->burntoolTrails & 0x02)&&(psMetadataLookupS32(&status,rowMD,"up") == 1))|| 51 ((options->burntoolTrails & 0x04)&&(psMetadataLookupS32(&status,rowMD,"up") == 0)))) { 52 52 /* If the fit fails, burntool reports zero here. This 53 53 signifies that it expected to see a trail (else why … … 70 70 if (psMetadataLookupS32(&status,rowMD,"up") == 0) { 71 71 for (int j = 0; j <= psMetadataLookupS32(&status,rowMD,"y1p"); j++) { 72 /* #ifdef PPIMAGE_BURNTOOL_DEBUG */ 73 /* psLogMsg("ppImageBurntoolMask", 4, "Noisy!: %d %d %d %d\n", */ 74 /* i,j,image->data.PS_TYPE_IMAGE_MASK_DATA[j][i],maskValue); */ 75 /* #endif */ 72 #ifdef PPIMAGE_BURNTOOL_DEBUG 73 psLogMsg("ppImageBurntoolMask", 4, "Noisy!: %d %d %d %d\n", 74 i,j,image->data.PS_TYPE_IMAGE_MASK_DATA[j][i],maskValue); 75 #endif 76 76 image->data.PS_TYPE_IMAGE_MASK_DATA[j][i] |= maskValue; 77 77 } … … 79 79 else { 80 80 for (int j = psMetadataLookupS32(&status,rowMD,"y1m"); j < image->numRows ; j++) { 81 /* #ifdef PPIMAGE_BURNTOOL_DEBUG */ 82 /* psLogMsg("ppImageBurntoolMask", 4, "Noisy!: %d %d %d %d\n", */ 83 /* i,j,image->data.PS_TYPE_IMAGE_MASK_DATA[j][i],maskValue); */ 84 /* #endif */ 81 #ifdef PPIMAGE_BURNTOOL_DEBUG 82 psLogMsg("ppImageBurntoolMask", 4, "Noisy!: %d %d %d %d\n", 83 i,j,image->data.PS_TYPE_IMAGE_MASK_DATA[j][i],maskValue); 84 #endif 85 85 image->data.PS_TYPE_IMAGE_MASK_DATA[j][i] |= maskValue; 86 86 }
Note:
See TracChangeset
for help on using the changeset viewer.
