IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 4, 2006, 3:49:41 PM (20 years ago)
Author:
drobbin
Message:

Edited functions wrt subimage v parent image issue.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/mathtypes/psImage.c

    r6750 r6778  
    99 *  @author Ross Harman, MHPCC
    1010 *
    11  *  @version $Revision: 1.100 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2006-04-01 02:43:57 $
     11 *  @version $Revision: 1.101 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2006-04-05 01:49:41 $
    1313 *
    1414 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    703703}
    704704
    705 bool p_psImagePrint (int fd, psImage *a, char *name)
     705bool p_psImagePrint (int fd,
     706                     psImage *a,
     707                     char *name)
    706708{
    707709    write(fd,"matrix: ",8);
     
    730732{
    731733
    732     /*    if (input == NULL) {
    733             psError(PS_ERR_BAD_PARAMETER_NULL,true,
    734                     PS_ERRORTEXT_psImage_IMAGE_NULL);
     734    PS_ASSERT_IMAGE_NON_NULL(input, unexposedValue);
     735    /*    if ( x < input->col0 || x >= (input->col0 + input->numCols) ) {
     736            psError(PS_ERR_BAD_PARAMETER_VALUE, true,
     737                "x-input in psImagePixelInterpolate is outside of image region.\n");
    735738            return unexposedValue;
    736739        }
     740        if ( y < input->row0 || y >= (input->row0 + input->numRows) ) {
     741            psError(PS_ERR_BAD_PARAMETER_VALUE, true,
     742                "y-input in psImagePixelInterpolate is outside of image region.\n");
     743            return unexposedValue;
     744        }
     745        x -= input->col0;
     746        y -= input->row0;
    737747    */
    738     PS_ASSERT_IMAGE_NON_NULL(input, unexposedValue);
    739     if (input->row0 != 0 || input->col0 != 0) {
    740         x += input->col0;
    741         y += input->row0;
    742     }
    743748
    744749    #define PSIMAGE_PIXEL_INTERPOLATE_CASE(TYPE)                             \
Note: See TracChangeset for help on using the changeset viewer.