IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 13, 2006, 4:26:24 PM (20 years ago)
Author:
magnier
Message:

fixed error for trimsec = 0,0:0,0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPARead.c

    r10081 r10705  
    431431    }
    432432
     433    // rationalize trimsec against naxis1, naxis2
     434    // valid range for trimsec is 1-Nx,1-Ny
     435    // if (trimsec->x0 == 0) trimsec->x0 = 1;
     436    if (trimsec->x1 <  1)
     437        trimsec->x1 = naxis1 + trimsec->x1;
     438    // if (trimsec->y0 == 0) trimsec->y0 = 1;
     439    if (trimsec->y1 <  1)
     440        trimsec->y1 = naxis2 + trimsec->y1;
     441
    433442    int maxSize;                        // Number of cols,rows in image
    434443    if (readdir == 1) {
Note: See TracChangeset for help on using the changeset viewer.