IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 31, 2006, 4:43:57 PM (20 years ago)
Author:
drobbin
Message:

Made several changes to image functions/tests w.r.t. subimage v. parent image issue.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/imageops/psImageGeomManip.c

    r6484 r6750  
    1010 *  @author Ross Harman, MHPCC
    1111 *
    12  *  @version $Revision: 1.20 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2006-02-24 23:43:15 $
     12 *  @version $Revision: 1.21 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2006-04-01 02:43:57 $
    1414 *
    1515 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    749749        col0 = region.x0;
    750750        col1 = region.x1;
     751        //If [0,0,0,0] specified, the whole image is to be included
     752        if (row0 == 0 && col0 == 0 && row1 == 0 && col1 == 0) {
     753            row0 = input->row0;
     754            col0 = input->col0;
     755            row1 = input->row0 + input->numRows;
     756            col1 = input->col0 + input->numCols;
     757        }
    751758        if (col1 < 1) {
    752             col1 += input->numCols;
     759            col1 += input->col0 + input->numCols;
    753760        }
    754761
    755762        if (row1 < 1) {
    756             row1 += input->numRows;
     763            row1 += input->row0 + input->numRows;
    757764        }
    758765
Note: See TracChangeset for help on using the changeset viewer.