Changeset 34626
- Timestamp:
- Oct 30, 2012, 1:56:20 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/czw_branch/20120906/psModules/src/camera/pmFPABin.c
r34625 r34626 46 46 int *bitcounter = malloc(sizeof(int) * Nbits); 47 47 int pxlcount; 48 fprintf(stderr,">> %d %d %x\n",Nbits,maskVal,maskVal);49 48 50 49 int xLast = numColsIn - 1, yLast = numRowsIn - 1; // Last index … … 71 70 for (int j = 0; j < Nbits; j++) { 72 71 psImageMaskType M = (psImageMaskType) pow(2,j); 73 /* fprintf(stderr,"%x %d %x %x\n",inMask->data.PS_TYPE_IMAGE_MASK_DATA[y][x], */74 /* j,M,(inMask->data.PS_TYPE_IMAGE_MASK_DATA[y][x] & M)); */75 76 72 if (inMask->data.PS_TYPE_IMAGE_MASK_DATA[y][x] & M) { 77 73 bitcounter[j]++; … … 90 86 91 87 92 /* if ((yStart < 4561)&&(yStop > 4561)&& */93 /* (xStart < 3491)&&(xStop > 3491)) { */94 /* // fprintf(stderr,"%d %d %g %x %x \n",x,y,inImage->data.F32[y][x],inMask->data.PS_TYPE_IMAGE_MASK_DATA[y][x],maskVal); */95 /* for (int j = 0; j < Nbits; j++) { */96 /* fprintf(stderr,"%d %x %d\t",j,(int) pow(2,j), bitcounter[j]); */97 /* } */98 /* fprintf(stderr,"\n"); */99 /* } */100 88 } 101 89 } 102 /* fprintf(stderr,"%d %d\t",xOut,yOut); */103 /* for (int j = 0; j < Nbits; j++) { */104 /* fprintf(stderr,"%d %x %d\t",j,(int) pow(2,j), bitcounter[j]); */105 /* } */106 /* fprintf(stderr,"\n"); */107 90 108 91
Note:
See TracChangeset
for help on using the changeset viewer.
