Changeset 1010
- Timestamp:
- Jun 11, 2004, 4:17:25 PM (22 years ago)
- Location:
- trunk/psLib/src
- Files:
-
- 3 edited
-
dataManip/psFFT.c (modified) (20 diffs)
-
dataManip/psVectorFFT.c (modified) (20 diffs)
-
fft/psVectorFFT.c (modified) (20 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/dataManip/psFFT.c
r1008 r1010 5 5 * @author Robert DeSonia, MHPCC 6 6 * 7 * @version $Revision: 1. 9$ $Name: not supported by cvs2svn $8 * @date $Date: 2004-06-12 0 1:33:16$7 * @version $Revision: 1.10 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2004-06-12 02:17:25 $ 9 9 * 10 10 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 35 35 /* got good image data? */ 36 36 if (in==NULL) { 37 psImageFree(out); 37 38 return NULL; 38 39 } … … 43 44 psError(__func__,"Input image must be a 32-bit float or complex image (type=%d)", 44 45 type); 46 psImageFree(out); 45 47 return NULL; 46 48 } … … 49 51 psError(__func__,"Input image must be complex image for reverse FFT (type=%d).", 50 52 type); 53 psImageFree(out); 51 54 return NULL; 52 55 … … 95 98 96 99 if (in == NULL) { 100 psImageFree(out); 97 101 return NULL; 98 102 } … … 154 158 155 159 if (in == NULL) { 160 psImageFree(out); 156 161 return NULL; 157 162 } … … 215 220 216 221 if (real == NULL || imag == NULL) { 222 psImageFree(out); 217 223 return NULL; 218 224 } … … 224 230 if (imag->type.type != type) { 225 231 psError(__func__,"The inputs to psImageComplex must be the same type."); 232 psImageFree(out); 226 233 return NULL; 227 234 } … … 230 237 imag->numRows != numRows) { 231 238 psError(__func__,"The inputs to psImageComplex must be the same dimensions."); 239 psImageFree(out); 232 240 return NULL; 233 241 } … … 235 243 if (PS_IS_PSELEMTYPE_COMPLEX(type)) { 236 244 psError(__func__,"The inputs to psImageComplex can not be complex."); 245 psImageFree(out); 237 246 return NULL; 238 247 } … … 240 249 if (type != PS_TYPE_F32 && type != PS_TYPE_F64) { 241 250 psError(__func__,"The input type to psImageComplex must be a floating point."); 251 psImageFree(out); 242 252 return NULL; 243 253 } … … 292 302 293 303 if (in == NULL) { 304 psImageFree(out); 294 305 return NULL; 295 306 } … … 351 362 352 363 if (in == NULL) { 364 psImageFree(out); 353 365 return NULL; 354 366 } … … 362 374 if (! PS_IS_PSELEMTYPE_COMPLEX(type)) { 363 375 psError(__func__,"Power Spectrum for non-complex inputs is not implemented."); 376 psImageFree(out); 364 377 return NULL; 365 378 } … … 422 435 /* got good image data? */ 423 436 if (in==NULL) { 437 psVectorFree(out); 424 438 return NULL; 425 439 } … … 430 444 psError(__func__,"Input image must be a 32-bit float or complex image (type=%d)", 431 445 type); 446 psVectorFree(out); 432 447 return NULL; 433 448 } … … 436 451 psError(__func__,"Input image must be complex image for reverse FFT (type=%d).", 437 452 type); 453 psVectorFree(out); 438 454 return NULL; 439 455 … … 494 510 495 511 if (in == NULL) { 512 psVectorFree(out); 496 513 return NULL; 497 514 } … … 539 556 540 557 if (in == NULL) { 558 psVectorFree(out); 541 559 return NULL; 542 560 } … … 636 654 637 655 if (in == NULL) { 656 psVectorFree(out); 638 657 return NULL; 639 658 } -
trunk/psLib/src/dataManip/psVectorFFT.c
r1008 r1010 5 5 * @author Robert DeSonia, MHPCC 6 6 * 7 * @version $Revision: 1. 9$ $Name: not supported by cvs2svn $8 * @date $Date: 2004-06-12 0 1:33:16$7 * @version $Revision: 1.10 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2004-06-12 02:17:25 $ 9 9 * 10 10 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 35 35 /* got good image data? */ 36 36 if (in==NULL) { 37 psImageFree(out); 37 38 return NULL; 38 39 } … … 43 44 psError(__func__,"Input image must be a 32-bit float or complex image (type=%d)", 44 45 type); 46 psImageFree(out); 45 47 return NULL; 46 48 } … … 49 51 psError(__func__,"Input image must be complex image for reverse FFT (type=%d).", 50 52 type); 53 psImageFree(out); 51 54 return NULL; 52 55 … … 95 98 96 99 if (in == NULL) { 100 psImageFree(out); 97 101 return NULL; 98 102 } … … 154 158 155 159 if (in == NULL) { 160 psImageFree(out); 156 161 return NULL; 157 162 } … … 215 220 216 221 if (real == NULL || imag == NULL) { 222 psImageFree(out); 217 223 return NULL; 218 224 } … … 224 230 if (imag->type.type != type) { 225 231 psError(__func__,"The inputs to psImageComplex must be the same type."); 232 psImageFree(out); 226 233 return NULL; 227 234 } … … 230 237 imag->numRows != numRows) { 231 238 psError(__func__,"The inputs to psImageComplex must be the same dimensions."); 239 psImageFree(out); 232 240 return NULL; 233 241 } … … 235 243 if (PS_IS_PSELEMTYPE_COMPLEX(type)) { 236 244 psError(__func__,"The inputs to psImageComplex can not be complex."); 245 psImageFree(out); 237 246 return NULL; 238 247 } … … 240 249 if (type != PS_TYPE_F32 && type != PS_TYPE_F64) { 241 250 psError(__func__,"The input type to psImageComplex must be a floating point."); 251 psImageFree(out); 242 252 return NULL; 243 253 } … … 292 302 293 303 if (in == NULL) { 304 psImageFree(out); 294 305 return NULL; 295 306 } … … 351 362 352 363 if (in == NULL) { 364 psImageFree(out); 353 365 return NULL; 354 366 } … … 362 374 if (! PS_IS_PSELEMTYPE_COMPLEX(type)) { 363 375 psError(__func__,"Power Spectrum for non-complex inputs is not implemented."); 376 psImageFree(out); 364 377 return NULL; 365 378 } … … 422 435 /* got good image data? */ 423 436 if (in==NULL) { 437 psVectorFree(out); 424 438 return NULL; 425 439 } … … 430 444 psError(__func__,"Input image must be a 32-bit float or complex image (type=%d)", 431 445 type); 446 psVectorFree(out); 432 447 return NULL; 433 448 } … … 436 451 psError(__func__,"Input image must be complex image for reverse FFT (type=%d).", 437 452 type); 453 psVectorFree(out); 438 454 return NULL; 439 455 … … 494 510 495 511 if (in == NULL) { 512 psVectorFree(out); 496 513 return NULL; 497 514 } … … 539 556 540 557 if (in == NULL) { 558 psVectorFree(out); 541 559 return NULL; 542 560 } … … 636 654 637 655 if (in == NULL) { 656 psVectorFree(out); 638 657 return NULL; 639 658 } -
trunk/psLib/src/fft/psVectorFFT.c
r1008 r1010 5 5 * @author Robert DeSonia, MHPCC 6 6 * 7 * @version $Revision: 1. 9$ $Name: not supported by cvs2svn $8 * @date $Date: 2004-06-12 0 1:33:16$7 * @version $Revision: 1.10 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2004-06-12 02:17:25 $ 9 9 * 10 10 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 35 35 /* got good image data? */ 36 36 if (in==NULL) { 37 psImageFree(out); 37 38 return NULL; 38 39 } … … 43 44 psError(__func__,"Input image must be a 32-bit float or complex image (type=%d)", 44 45 type); 46 psImageFree(out); 45 47 return NULL; 46 48 } … … 49 51 psError(__func__,"Input image must be complex image for reverse FFT (type=%d).", 50 52 type); 53 psImageFree(out); 51 54 return NULL; 52 55 … … 95 98 96 99 if (in == NULL) { 100 psImageFree(out); 97 101 return NULL; 98 102 } … … 154 158 155 159 if (in == NULL) { 160 psImageFree(out); 156 161 return NULL; 157 162 } … … 215 220 216 221 if (real == NULL || imag == NULL) { 222 psImageFree(out); 217 223 return NULL; 218 224 } … … 224 230 if (imag->type.type != type) { 225 231 psError(__func__,"The inputs to psImageComplex must be the same type."); 232 psImageFree(out); 226 233 return NULL; 227 234 } … … 230 237 imag->numRows != numRows) { 231 238 psError(__func__,"The inputs to psImageComplex must be the same dimensions."); 239 psImageFree(out); 232 240 return NULL; 233 241 } … … 235 243 if (PS_IS_PSELEMTYPE_COMPLEX(type)) { 236 244 psError(__func__,"The inputs to psImageComplex can not be complex."); 245 psImageFree(out); 237 246 return NULL; 238 247 } … … 240 249 if (type != PS_TYPE_F32 && type != PS_TYPE_F64) { 241 250 psError(__func__,"The input type to psImageComplex must be a floating point."); 251 psImageFree(out); 242 252 return NULL; 243 253 } … … 292 302 293 303 if (in == NULL) { 304 psImageFree(out); 294 305 return NULL; 295 306 } … … 351 362 352 363 if (in == NULL) { 364 psImageFree(out); 353 365 return NULL; 354 366 } … … 362 374 if (! PS_IS_PSELEMTYPE_COMPLEX(type)) { 363 375 psError(__func__,"Power Spectrum for non-complex inputs is not implemented."); 376 psImageFree(out); 364 377 return NULL; 365 378 } … … 422 435 /* got good image data? */ 423 436 if (in==NULL) { 437 psVectorFree(out); 424 438 return NULL; 425 439 } … … 430 444 psError(__func__,"Input image must be a 32-bit float or complex image (type=%d)", 431 445 type); 446 psVectorFree(out); 432 447 return NULL; 433 448 } … … 436 451 psError(__func__,"Input image must be complex image for reverse FFT (type=%d).", 437 452 type); 453 psVectorFree(out); 438 454 return NULL; 439 455 … … 494 510 495 511 if (in == NULL) { 512 psVectorFree(out); 496 513 return NULL; 497 514 } … … 539 556 540 557 if (in == NULL) { 558 psVectorFree(out); 541 559 return NULL; 542 560 } … … 636 654 637 655 if (in == NULL) { 656 psVectorFree(out); 638 657 return NULL; 639 658 }
Note:
See TracChangeset
for help on using the changeset viewer.
