Changeset 8232 for trunk/psLib/src/imageops/psImageConvolve.c
- Timestamp:
- Aug 8, 2006, 1:32:23 PM (20 years ago)
- Location:
- trunk/psLib/src
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
imageops/psImageConvolve.c (modified) (13 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src
- Property svn:ignore
-
old new 10 10 libpslib.la.temp 11 11 config.h.in 12 psErrorText.h13 12 *.bb 14 13 *.bbg
-
- Property svn:ignore
-
trunk/psLib/src/imageops/psImageConvolve.c
r7914 r8232 5 5 * @author Robert DeSonia, MHPCC 6 6 * 7 * @version $Revision: 1.3 7$ $Name: not supported by cvs2svn $8 * @date $Date: 2006-0 7-15 02:57:12$7 * @version $Revision: 1.38 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2006-08-08 23:32:23 $ 9 9 * 10 10 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 21 21 #include "psError.h" 22 22 23 #include "psErrorText.h" 23 24 24 25 25 #define FOURIER_PADDING 32 /* padding amount in every side of the image for fourier convolution */ … … 120 120 if (tShifts == NULL || xShifts == NULL || yShifts == NULL) { 121 121 psError(PS_ERR_BAD_PARAMETER_NULL, true, 122 PS_ERRORTEXT_psImageConvolve_SHIFT_NULL);122 _("Specified shift vectors can not be NULL.")); 123 123 return NULL; 124 124 } … … 134 134 PS_TYPE_NAME(typeTStr,tShifts->type.type); 135 135 psError(PS_ERR_BAD_PARAMETER_TYPE, true, 136 PS_ERRORTEXT_psImageConvolve_SHIFT_TYPE_MISMATCH,136 _("Input t-, x-, and y-shift vector types (%s/%s/%s) must match."), 137 137 typeTStr, typeXStr, typeYStr); 138 138 return NULL; … … 257 257 PS_TYPE_NAME(typeStr,xShifts->type.type); 258 258 psError(PS_ERR_BAD_PARAMETER_TYPE, true, 259 PS_ERRORTEXT_psImage_IMAGE_TYPE_UNSUPPORTED,259 _("Specified psImage type, %s, is not supported."), 260 260 typeStr); 261 261 } … … 280 280 PS_TYPE_NAME(typeStr,xShifts->type.type); 281 281 psError(PS_ERR_BAD_PARAMETER_TYPE, true, 282 PS_ERRORTEXT_psImage_IMAGE_TYPE_UNSUPPORTED,282 _("Specified psImage type, %s, is not supported."), 283 283 typeStr); 284 284 } … … 301 301 if (kernel == NULL) { 302 302 psError(PS_ERR_BAD_PARAMETER_NULL, true, 303 PS_ERRORTEXT_psImageConvolve_KERNEL_NULL);303 _("Specified psKernel can not be NULL.")); 304 304 psFree(out); 305 305 return NULL; … … 361 361 PS_TYPE_NAME(typeStr,in->type.type); 362 362 psError(PS_ERR_BAD_PARAMETER_TYPE, true, 363 PS_ERRORTEXT_psImage_IMAGE_TYPE_UNSUPPORTED,363 _("Specified psImage type, %s, is not supported."), 364 364 typeStr); 365 365 psFree(out); … … 380 380 if (kRows >= numRows || kCols >= numCols) { 381 381 psError(PS_ERR_BAD_PARAMETER_SIZE, true, 382 PS_ERRORTEXT_psImageConvolve_KERNEL_TOO_LARGE,382 _("Specified psKernel size, %dx%d, can not be larger than input psImage size, %dx%d."), 383 383 kCols,kRows, 384 384 numCols, numRows); … … 434 434 if (kernelFourier == NULL) { 435 435 psError(PS_ERR_UNKNOWN, false, 436 PS_ERRORTEXT_psImageConvolve_KERNEL_FFT_FAILED);436 _("Failed to perform a fourier transform of kernel.")); 437 437 psFree(out); 438 438 return NULL; … … 442 442 if (inFourier == NULL) { 443 443 psError(PS_ERR_UNKNOWN, false, 444 PS_ERRORTEXT_psImageConvolve_FFT_FAILED);444 _("Failed to perform a fourier transform of input image.")); 445 445 psFree(out); 446 446 return NULL; … … 460 460 if (complexOut == NULL) { 461 461 psError(PS_ERR_UNKNOWN, false, 462 PS_ERRORTEXT_psImageConvolve_FFT_FAILED);462 _("Failed to perform a fourier transform of input image.")); 463 463 psFree(out); 464 464 return NULL; … … 665 665 PS_TYPE_NAME(typeStr,image->type.type); 666 666 psError(PS_ERR_BAD_PARAMETER_TYPE, true, 667 PS_ERRORTEXT_psImage_IMAGE_TYPE_UNSUPPORTED,667 _("Specified psImage type, %s, is not supported."), 668 668 typeStr); 669 669 return false;
Note:
See TracChangeset
for help on using the changeset viewer.
