Changeset 1951
- Timestamp:
- Oct 4, 2004, 3:03:11 PM (22 years ago)
- Location:
- trunk/psLib/src
- Files:
-
- 5 edited
-
image/psImageErrors.dat (modified) (1 diff)
-
image/psImageStats.c (modified) (3 diffs)
-
image/psImageStats.h (modified) (2 diffs)
-
imageops/psImageStats.c (modified) (3 diffs)
-
imageops/psImageStats.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/image/psImageErrors.dat
r1929 r1951 73 73 psImageConvolve_FFT_FAILED Failed to perform a fourier transform of input image. 74 74 psImageConvolve_KERNEL_FFT_FAILED Failed to perform a fourier transform of kernel. 75 psImageConvolve_KERNEL_TOO_LARGE Specified psKernel size, %dx%d, can not be larger than input psImage size, %dx%d. 75 psImageConvolve_KERNEL_TOO_LARGE Specified psKernel size, %dx%d, can not be larger than input psImage size, %dx%d. 76 psImage_COEFF_NULL Polynomial coefficients cannot be NULL. -
trunk/psLib/src/image/psImageStats.c
r1939 r1951 10 10 * @author George Gusciora, MHPCC 11 11 * 12 * @version $Revision: 1.3 8$ $Name: not supported by cvs2svn $13 * @date $Date: 2004- 09-30 23:06:36$12 * @version $Revision: 1.39 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2004-10-05 01:03:11 $ 14 14 * 15 15 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 236 236 over all pixels (x,y) in the image. 237 237 *****************************************************************************/ 238 psPolynomial2D* psImageFitPolynomial( const psImage* input, psPolynomial2D* coeffs)238 psPolynomial2D* psImageFitPolynomial(psPolynomial2D* coeffs, const psImage* input) 239 239 { 240 240 int x = 0; … … 247 247 float *cScalingFactors = NULL; 248 248 float *rScalingFactors = NULL; 249 250 // Check for null inputs 251 if (input == NULL) { 252 psErrorMsg(PS_ERRORNAME_DOMAIN "psImageFitPolynomial", 253 PS_ERR_BAD_PARAMETER_NULL, true, 254 PS_ERRORTEXT_psImage_IMAGE_NULL); 255 return NULL; 256 } 257 258 if (coeffs == NULL) { 259 psErrorMsg(PS_ERRORNAME_DOMAIN "psImageFitPolynomial", 260 PS_ERR_BAD_PARAMETER_NULL, true, 261 PS_ERRORTEXT_psImage_COEFF_NULL); 262 return NULL; 263 } 249 264 250 265 // Create the sums[][] data structure. This -
trunk/psLib/src/image/psImageStats.h
r1448 r1951 9 9 * @author George Gusciora, MHPCC 10 10 * 11 * @version $Revision: 1.1 6$ $Name: not supported by cvs2svn $12 * @date $Date: 2004- 08-10 01:55:34$11 * @version $Revision: 1.17 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-10-05 01:03:11 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 68 68 */ 69 69 psPolynomial2D* psImageFitPolynomial( 70 const psImage* input, ///< image to fit71 psPolynomial2D* coeffs ///< coefficient structure carries in desired terms & target70 psPolynomial2D* coeffs, ///< coefficient structure carries in desired terms & target 71 const psImage* input 72 72 ); 73 73 -
trunk/psLib/src/imageops/psImageStats.c
r1939 r1951 10 10 * @author George Gusciora, MHPCC 11 11 * 12 * @version $Revision: 1.3 8$ $Name: not supported by cvs2svn $13 * @date $Date: 2004- 09-30 23:06:36$12 * @version $Revision: 1.39 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2004-10-05 01:03:11 $ 14 14 * 15 15 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 236 236 over all pixels (x,y) in the image. 237 237 *****************************************************************************/ 238 psPolynomial2D* psImageFitPolynomial( const psImage* input, psPolynomial2D* coeffs)238 psPolynomial2D* psImageFitPolynomial(psPolynomial2D* coeffs, const psImage* input) 239 239 { 240 240 int x = 0; … … 247 247 float *cScalingFactors = NULL; 248 248 float *rScalingFactors = NULL; 249 250 // Check for null inputs 251 if (input == NULL) { 252 psErrorMsg(PS_ERRORNAME_DOMAIN "psImageFitPolynomial", 253 PS_ERR_BAD_PARAMETER_NULL, true, 254 PS_ERRORTEXT_psImage_IMAGE_NULL); 255 return NULL; 256 } 257 258 if (coeffs == NULL) { 259 psErrorMsg(PS_ERRORNAME_DOMAIN "psImageFitPolynomial", 260 PS_ERR_BAD_PARAMETER_NULL, true, 261 PS_ERRORTEXT_psImage_COEFF_NULL); 262 return NULL; 263 } 249 264 250 265 // Create the sums[][] data structure. This -
trunk/psLib/src/imageops/psImageStats.h
r1448 r1951 9 9 * @author George Gusciora, MHPCC 10 10 * 11 * @version $Revision: 1.1 6$ $Name: not supported by cvs2svn $12 * @date $Date: 2004- 08-10 01:55:34$11 * @version $Revision: 1.17 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-10-05 01:03:11 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 68 68 */ 69 69 psPolynomial2D* psImageFitPolynomial( 70 const psImage* input, ///< image to fit71 psPolynomial2D* coeffs ///< coefficient structure carries in desired terms & target70 psPolynomial2D* coeffs, ///< coefficient structure carries in desired terms & target 71 const psImage* input 72 72 ); 73 73
Note:
See TracChangeset
for help on using the changeset viewer.
