Changeset 3375 for trunk/stac/src/stacAreaOfInterest.c
- Timestamp:
- Mar 4, 2005, 11:37:01 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/stac/src/stacAreaOfInterest.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/stac/src/stacAreaOfInterest.c
r2783 r3375 1 1 #include <stdio.h> 2 #include <assert.h> 2 3 #include "pslib.h" 3 4 #include "stac.h" … … 15 16 psDPolynomial2D *yPoly = transform->y; 16 17 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); 21 20 22 21 // Initialise derivatives … … 64 63 { 65 64 // 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); 78 68 79 69 // Number of pixels in x and y
Note:
See TracChangeset
for help on using the changeset viewer.
