IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 4, 2004, 3:46:02 PM (22 years ago)
Author:
evanalst
Message:

Add additional conditional logic of null inputs.

File:
1 edited

Legend:

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

    r1951 r1955  
    1010*  @author George Gusciora, MHPCC
    1111*
    12 *  @version $Revision: 1.39 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2004-10-05 01:03:11 $
     12*  @version $Revision: 1.40 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2004-10-05 01:46:02 $
    1414*
    1515*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    381381    //    }
    382382
     383
     384    // Check for null inputs
     385    if (input == NULL) {
     386        psErrorMsg(PS_ERRORNAME_DOMAIN "psImageEvalPolynomial",
     387                   PS_ERR_BAD_PARAMETER_NULL, true,
     388                   PS_ERRORTEXT_psImage_IMAGE_NULL);
     389        return NULL;
     390    }
     391
     392    if (coeffs == NULL) {
     393        psErrorMsg(PS_ERRORNAME_DOMAIN "psImageEvalPolynomial",
     394                   PS_ERR_BAD_PARAMETER_NULL, true,
     395                   PS_ERRORTEXT_psImage_COEFF_NULL);
     396        return NULL;
     397    }
     398
    383399    // We scale the pixel positions to values
    384400    // between -1.0 and 1.0
Note: See TracChangeset for help on using the changeset viewer.