Changeset 4029 for trunk/psLib/src/imageops/psImageStats.c
- Timestamp:
- May 25, 2005, 10:26:55 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/imageops/psImageStats.c (modified) (13 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/imageops/psImageStats.c
r3884 r4029 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.7 3$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-05- 11 22:02:16$11 * @version $Revision: 1.74 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-05-25 20:26:55 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 52 52 psVector *junkMask = NULL; 53 53 54 PS_ PTR_CHECK_NULL(stats, NULL);55 PS_ INT_CHECK_ZERO(stats->options, NULL);56 PS_ IMAGE_CHECK_NULL(in, NULL)54 PS_ASSERT_PTR_NON_NULL(stats, NULL); 55 PS_ASSERT_INT_NONZERO(stats->options, NULL); 56 PS_ASSERT_IMAGE_NON_NULL(in, NULL) 57 57 if (mask != NULL) { 58 PS_ IMAGE_CHECK_TYPE(mask, PS_TYPE_U8, NULL);59 PS_ IMAGE_CHECK_SIZE_EQUAL(in, mask, NULL);58 PS_ASSERT_IMAGE_TYPE(mask, PS_TYPE_U8, NULL); 59 PS_ASSERT_IMAGES_SIZE_EQUAL(in, mask, NULL); 60 60 } 61 61 … … 124 124 psU32 maskVal) 125 125 { 126 PS_ PTR_CHECK_NULL(out, NULL);127 PS_ PTR_CHECK_NULL(in, NULL);126 PS_ASSERT_PTR_NON_NULL(out, NULL); 127 PS_ASSERT_PTR_NON_NULL(in, NULL); 128 128 if (mask != NULL) { 129 PS_ IMAGE_CHECK_TYPE(mask, PS_TYPE_U8, NULL);130 PS_ IMAGE_CHECK_SIZE_EQUAL(in, mask, NULL);129 PS_ASSERT_IMAGE_TYPE(mask, PS_TYPE_U8, NULL); 130 PS_ASSERT_IMAGES_SIZE_EQUAL(in, mask, NULL); 131 131 } 132 132 psVector* junkData = NULL; … … 200 200 double* calcScaleFactors(psS32 n) 201 201 { 202 PS_ INT_CHECK_NON_NEGATIVE(n, NULL);202 PS_ASSERT_INT_NONNEGATIVE(n, NULL); 203 203 psS32 i = 0; 204 204 double tmp = 0.0; … … 217 217 psPolynomial1D **p_psCreateChebyshevPolys(psS32 maxChebyPoly) 218 218 { 219 PS_ INT_CHECK_POSITIVE(maxChebyPoly, NULL);219 PS_ASSERT_INT_POSITIVE(maxChebyPoly, NULL); 220 220 psPolynomial1D **chebPolys = NULL; 221 221 psS32 i = 0; … … 265 265 const psImage* input) 266 266 { 267 PS_ IMAGE_CHECK_NULL(input, NULL);268 PS_ IMAGE_CHECK_EMPTY(input, NULL);267 PS_ASSERT_IMAGE_NON_NULL(input, NULL); 268 PS_ASSERT_IMAGE_NON_EMPTY(input, NULL); 269 269 if ((input->type.type != PS_TYPE_S8) && 270 270 (input->type.type != PS_TYPE_U16) && … … 273 273 psError(PS_ERR_BAD_PARAMETER_TYPE, true, "Unallowable image type.\n"); 274 274 } 275 PS_ POLY_CHECK_NULL(coeffs, NULL);276 PS_ POLY_CHECK_TYPE(coeffs, PS_POLYNOMIAL_CHEB, NULL);275 PS_ASSERT_POLY_NON_NULL(coeffs, NULL); 276 PS_ASSERT_POLY_TYPE(coeffs, PS_POLYNOMIAL_CHEB, NULL); 277 277 psS32 x = 0; 278 278 psS32 y = 0; … … 388 388 const psImage* input) 389 389 { 390 PS_ IMAGE_CHECK_NULL(input, NULL);391 PS_ IMAGE_CHECK_EMPTY(input, NULL);390 PS_ASSERT_IMAGE_NON_NULL(input, NULL); 391 PS_ASSERT_IMAGE_NON_EMPTY(input, NULL); 392 392 if ((input->type.type != PS_TYPE_S8) && 393 393 (input->type.type != PS_TYPE_U16) && … … 396 396 psError(PS_ERR_BAD_PARAMETER_TYPE, true, "Unallowable image type.\n"); 397 397 } 398 PS_ POLY_CHECK_NULL(coeffs, NULL);399 PS_ POLY_CHECK_TYPE(coeffs, PS_POLYNOMIAL_CHEB, NULL);398 PS_ASSERT_POLY_NON_NULL(coeffs, NULL); 399 PS_ASSERT_POLY_TYPE(coeffs, PS_POLYNOMIAL_CHEB, NULL); 400 400 psS32 x = 0; 401 401 psS32 y = 0; … … 519 519 const psPolynomial2D* coeffs) 520 520 { 521 PS_ POLY_CHECK_TYPE(coeffs, PS_POLYNOMIAL_CHEB, NULL);521 PS_ASSERT_POLY_TYPE(coeffs, PS_POLYNOMIAL_CHEB, NULL); 522 522 523 523 psS32 x = 0; … … 586 586 const psPolynomial2D* coeffs) 587 587 { 588 PS_ POLY_CHECK_TYPE(coeffs, PS_POLYNOMIAL_ORD, NULL);588 PS_ASSERT_POLY_TYPE(coeffs, PS_POLYNOMIAL_ORD, NULL); 589 589 590 590 for (int row = 0; row < input->numRows ; row++) { … … 613 613 const psPolynomial2D* coeffs) 614 614 { 615 PS_ IMAGE_CHECK_NULL(input, NULL);616 PS_ IMAGE_CHECK_EMPTY(input, NULL);615 PS_ASSERT_IMAGE_NON_NULL(input, NULL); 616 PS_ASSERT_IMAGE_NON_EMPTY(input, NULL); 617 617 if ((input->type.type != PS_TYPE_S8) && 618 618 (input->type.type != PS_TYPE_U16) && … … 622 622 "Unallowable image type.\n"); 623 623 } 624 PS_ POLY_CHECK_NULL(coeffs, NULL);624 PS_ASSERT_POLY_NON_NULL(coeffs, NULL); 625 625 626 626 if (coeffs->type == PS_POLYNOMIAL_ORD) {
Note:
See TracChangeset
for help on using the changeset viewer.
