Changeset 16580 for trunk/psModules/src/camera/pmFPARead.c
- Timestamp:
- Feb 21, 2008, 3:20:24 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/camera/pmFPARead.c (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPARead.c
r16575 r16580 142 142 pmReadout *readout, // Readout of interest 143 143 int numScans, // Number of scans to read at a time 144 int overlap, // Number of scans to overlap with previous read145 144 fpaReadType type // Type of image 146 145 ) … … 192 191 *next = (readdir == 1) ? trimsec->x0 : trimsec->y0; 193 192 } else { 194 *next = image ? *readoutScansByType(readout, type) + numScans - overlap: 0;193 *next = image ? *readoutScansByType(readout, type) + numScans : 0; 195 194 } 196 195 *last = (readdir == 1) ? trimsec->y1 : trimsec->x1; … … 203 202 int z, // Plane number 204 203 int numScans, // Number of scans to read at a time 205 int overlap, // Number of scans to overlap with last read206 204 fpaReadType type // Type of image 207 205 ) … … 232 230 int next; // Next position 233 231 int last; // Last position 234 if (!readoutScanProperties(&next, &last, readout, numScans, overlap,type)) {232 if (!readoutScanProperties(&next, &last, readout, numScans, type)) { 235 233 psError(PS_ERR_UNKNOWN, false, "Unable to determine readout properties."); 236 234 return false; … … 419 417 int next; // Next position 420 418 int last; // Last position 421 if (!readoutScanProperties(&next, &last, readout, numScans, overlap,type)) {419 if (!readoutScanProperties(&next, &last, readout, numScans, type)) { 422 420 psError(PS_ERR_UNKNOWN, false, "Unable to determine readout properties."); 423 421 return false; … … 464 462 int *scansTracker = readoutScansByType(readout, type); // Tracker for how many scans have been read 465 463 *scansTracker = next; 464 if (next == 0) { 465 overlap = 0; 466 } 467 next -= overlap; 466 468 467 469 // Calculate limits, adjust readout->row0,col0 … … 477 479 readout->row0 = trimsec->y0; 478 480 } 479 int upper = next + numScans; // Upper limit to next section 480 if (next != 0) { 481 upper += overlap; 482 *scansTracker += overlap; 483 } 481 int upper = next + numScans + overlap; // Upper limit to next section 482 printf("READ: %d --> %d\n", next, upper); 484 483 485 484 // Blow away existing data. … … 882 881 883 882 884 bool pmReadoutMore(pmReadout *readout, psFits *fits, int z, int numScans , int overlap)883 bool pmReadoutMore(pmReadout *readout, psFits *fits, int z, int numScans) 885 884 { 886 885 PS_ASSERT_PTR_NON_NULL(readout, false); 887 886 PS_ASSERT_FITS_NON_NULL(fits, false); 888 887 889 return readoutMore(readout, fits, z, numScans, overlap,FPA_READ_TYPE_IMAGE);888 return readoutMore(readout, fits, z, numScans, FPA_READ_TYPE_IMAGE); 890 889 } 891 890 … … 945 944 ////////////////////////////////////////////////////////////////////////////////////////////////////////////// 946 945 947 bool pmReadoutMoreMask(pmReadout *readout, psFits *fits, int z, int numScans , int overlap)946 bool pmReadoutMoreMask(pmReadout *readout, psFits *fits, int z, int numScans) 948 947 { 949 948 PS_ASSERT_PTR_NON_NULL(readout, false); 950 949 PS_ASSERT_FITS_NON_NULL(fits, false); 951 950 952 return readoutMore(readout, fits, z, numScans, overlap,FPA_READ_TYPE_MASK);951 return readoutMore(readout, fits, z, numScans, FPA_READ_TYPE_MASK); 953 952 } 954 953 … … 999 998 ////////////////////////////////////////////////////////////////////////////////////////////////////////////// 1000 999 1001 bool pmReadoutMoreWeight(pmReadout *readout, psFits *fits, int z, int numScans , int overlap)1000 bool pmReadoutMoreWeight(pmReadout *readout, psFits *fits, int z, int numScans) 1002 1001 { 1003 1002 PS_ASSERT_PTR_NON_NULL(readout, false); 1004 1003 PS_ASSERT_FITS_NON_NULL(fits, false); 1005 1004 1006 return readoutMore(readout, fits, z, numScans, overlap,FPA_READ_TYPE_WEIGHT);1005 return readoutMore(readout, fits, z, numScans, FPA_READ_TYPE_WEIGHT); 1007 1006 } 1008 1007
Note:
See TracChangeset
for help on using the changeset viewer.
