IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 4, 2005, 11:37:01 AM (21 years ago)
Author:
Paul Price
Message:

Updated to psLib rel5alpha1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/stac/src/stacAreaOfInterest.c

    r2783 r3375  
    11#include <stdio.h>
     2#include <assert.h>
    23#include "pslib.h"
    34#include "stac.h"
     
    1516    psDPolynomial2D *yPoly = transform->y;
    1617
    17     if (xPoly->type != PS_POLYNOMIAL_ORD || yPoly->type != PS_POLYNOMIAL_ORD) {
    18         psError("stac.area.deriv", "Transformation polynomials aren't ordinary polynomials.\n");
    19         return false;
    20     }
     18    assert(xPoly->type == PS_POLYNOMIAL_ORD);
     19    assert(yPoly->type == PS_POLYNOMIAL_ORD);
    2120
    2221    // Initialise derivatives
     
    6463{
    6564    // Input checks
    66     if (mask == NULL) {
    67         psError("stac.area", "Input mask is NULL for some weird reason.\n");
    68         return NULL;
    69     }
    70     if (map == NULL) {
    71         psError("stac.area", "Input map is NULL for some weird reason.\n");
    72         return NULL;
    73     }
    74     if (mask->type.type != PS_TYPE_U8) {
    75         psError("stac.area", "Input mask must be of type U8.\n");
    76         return NULL;
    77     }
     65    assert(mask);
     66    assert(map);
     67    assert(mask->type.type == PS_TYPE_U8);
    7868   
    7969    // Number of pixels in x and y
Note: See TracChangeset for help on using the changeset viewer.