IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 13, 2004, 3:22:59 PM (22 years ago)
Author:
desonia
Message:

added test for psImageResample.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/image/psImageExtraction.c

    r2093 r2105  
    99 *  @author Robert DeSonia, MHPCC
    1010 *
    11  *  @version $Revision: 1.25 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2004-10-13 23:34:57 $
     11 *  @version $Revision: 1.26 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2004-10-14 01:22:59 $
    1313 *
    1414 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    543543    }
    544544
     545    if (mode < PS_INTERPOLATE_FLAT || mode >= PS_INTERPOLATE_NUM_MODES) {
     546        psErrorMsg(PS_ERRORNAME_DOMAIN "psImageResample",
     547                   PS_ERR_BAD_PARAMETER_VALUE, true,
     548                   PS_ERRORTEXT_psImageManip_INTERPOLATION_MODE_UNSUPPORTED,
     549                   mode);
     550        psFree(out);
     551        return NULL;
     552    }
     553
    545554    if (mask != NULL) {
    546555        if (numRows != mask->numRows || numCols != mask->numCols) {
Note: See TracChangeset for help on using the changeset viewer.