Changeset 1840 for trunk/psLib/src/imageops/psImageConvolve.c
- Timestamp:
- Sep 21, 2004, 12:30:19 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/imageops/psImageConvolve.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/imageops/psImageConvolve.c
r1653 r1840 5 5 * @author Robert DeSonia, MHPCC 6 6 * 7 * @version $Revision: 1. 1$ $Name: not supported by cvs2svn $8 * @date $Date: 2004-0 8-28 01:18:28$7 * @version $Revision: 1.2 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2004-09-21 22:30:19 $ 9 9 * 10 10 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 16 16 #include "psLogMsg.h" 17 17 #include "psError.h" 18 19 #include "psImageErrors.h" 18 20 19 21 static void freeKernel(psKernel* ptr); … … 76 78 } 77 79 78 psKernel *psKernelGenerate(const psVector *xShifts, const psVector *yShifts)80 psKernel* psKernelGenerate(const psVector* xShifts, const psVector* yShifts) 79 81 { 80 82 int x = 0; … … 91 93 // got non-NULL vectors? 92 94 if (xShifts == NULL || yShifts == NULL) { 93 psError(__func__,"Shift vectors can not be NULL."); 95 psErrorMsg(PS_ERRORNAME_DOMAIN "psKernelGenerate", 96 PS_ERR_BAD_PARAMETER_NULL, true, 97 PS_ERRORTEXT_psImageConvolve_SHIFT_NULL); 94 98 return NULL; 95 99 } 96 100 101 // types match? 97 102 if (xShifts->type.type != yShifts->type.type) { 98 psError(__func__,"Shift vectors can not be different data types."); 103 char* typeXStr; 104 char* typeYStr; 105 PS_TYPE_NAME(typeXStr,xShifts->type.type); 106 PS_TYPE_NAME(typeYStr,yShifts->type.type); 107 psErrorMsg(PS_ERRORNAME_DOMAIN "psKernelGenerate", 108 PS_ERR_BAD_PARAMETER_TYPE, true, 109 PS_ERRORTEXT_psImageConvolve_SHIFT_TYPE_MISMATCH, 110 typeXStr, typeYStr); 99 111 return NULL; 100 112 } … … 158 170 KERNEL_GENERATE_CASE(C32); 159 171 KERNEL_GENERATE_CASE(C64); 160 default: 161 psError(__func__,"Shift vector datatype not supported."); 172 173 default: { 174 char* typeStr; 175 PS_TYPE_NAME(typeStr,xShifts->type.type); 176 psErrorMsg(PS_ERRORNAME_DOMAIN "psKernelGenerate", 177 PS_ERR_BAD_PARAMETER_TYPE, true, 178 PS_ERRORTEXT_psImage_IMAGE_TYPE_UNSUPPORTED, 179 typeStr); 180 } 162 181 } 163 182
Note:
See TracChangeset
for help on using the changeset viewer.
