Changeset 1864 for trunk/psLib/src/image
- Timestamp:
- Sep 23, 2004, 8:31:49 AM (22 years ago)
- Location:
- trunk/psLib/src/image
- Files:
-
- 5 edited
-
psImageErrors.dat (modified) (2 diffs)
-
psImageErrors.h (modified) (3 diffs)
-
psImageExtraction.c (modified) (3 diffs)
-
psImageExtraction.h (modified) (3 diffs)
-
psImageFFT.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/image/psImageErrors.dat
r1840 r1864 11 11 psImage_NOT_AN_IMAGE The input psImage must have a PS_DIMEN_IMAGE dimension type. 12 12 psImage_IMAGE_NULL Can not operate on a NULL psImage. 13 psImage_IMAGE_TYPE_UNSUPPORTED Specified psImage type (%s)is not supported.13 psImage_IMAGE_TYPE_UNSUPPORTED Specified psImage type, %s, is not supported. 14 14 psImage_INTERPOLATE_METHOD_INVALID Specified interpolation method (%d) is not supported. 15 15 psImage_SUBSET_RANGE_INVALID Specified subset range, [%d:%d,%d:%d], lies outside psImage's boundaries, [0:%d,0:%d]. … … 62 62 psImageManip_SCALE_NOT_POSITIVE Specified scale value, %d, must be a positive value. 63 63 psImageManip_INTERPOLATION_MODE_UNSUPPORTED Specified interpolation mode, %d, is unsupported. 64 psImageConvolve_SHIFT_NULL Specified shift vectors can not be NULL. 65 psImageConvolve_SHIFT_TYPE_MISMATCH The X-shift vector type, %s, does not match the Y-shift vector type, %s. Types must match. 64 psImageConvolve_SHIFT_NULL Specified shift vectors can not be NULL. 65 psImageConvolve_KERNEL_NULL Specified psKernel can not be NULL. 66 psImageConvolve_SHIFT_TYPE_MISMATCH Input t-, x-, and y-shift vector types (%s/%s/%s) must match. 67 psImageConvolve_FFT_FAILED Failed to perform a fourier transform of input image. 68 psImageConvolve_KERNEL_FFT_FAILED Failed to perform a fourier transform of kernel. 69 psImageConvolve_KERNEL_TOO_LARGE Specified psKernel size, %dx%d, can not be larger than input psImage size, %dx%d. -
trunk/psLib/src/image/psImageErrors.h
r1840 r1864 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1. 3$ $Name: not supported by cvs2svn $10 * @date $Date: 2004-09-2 1 22:30:19 $9 * @version $Revision: 1.4 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2004-09-23 18:31:49 $ 11 11 * 12 12 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 33 33 #define PS_ERRORTEXT_psImage_NOT_AN_IMAGE "The input psImage must have a PS_DIMEN_IMAGE dimension type." 34 34 #define PS_ERRORTEXT_psImage_IMAGE_NULL "Can not operate on a NULL psImage." 35 #define PS_ERRORTEXT_psImage_IMAGE_TYPE_UNSUPPORTED "Specified psImage type (%s)is not supported."35 #define PS_ERRORTEXT_psImage_IMAGE_TYPE_UNSUPPORTED "Specified psImage type, %s, is not supported." 36 36 #define PS_ERRORTEXT_psImage_INTERPOLATE_METHOD_INVALID "Specified interpolation method (%d) is not supported." 37 37 #define PS_ERRORTEXT_psImage_SUBSET_RANGE_INVALID "Specified subset range, [%d:%d,%d:%d], lies outside psImage's boundaries, [0:%d,0:%d]." … … 82 82 #define PS_ERRORTEXT_psImageManip_INTERPOLATION_MODE_UNSUPPORTED "Specified interpolation mode, %d, is unsupported." 83 83 #define PS_ERRORTEXT_psImageConvolve_SHIFT_NULL "Specified shift vectors can not be NULL." 84 #define PS_ERRORTEXT_psImageConvolve_SHIFT_TYPE_MISMATCH "The X-shift vector type, %s, does not match the Y-shift vector type, %s. Types must match." 84 #define PS_ERRORTEXT_psImageConvolve_KERNEL_NULL "Specified psKernel can not be NULL." 85 #define PS_ERRORTEXT_psImageConvolve_SHIFT_TYPE_MISMATCH "Input t-, x-, and y-shift vector types (%s/%s/%s) must match." 86 #define PS_ERRORTEXT_psImageConvolve_FFT_FAILED "Failed to perform a fourier transform of input image." 87 #define PS_ERRORTEXT_psImageConvolve_KERNEL_FFT_FAILED "Failed to perform a fourier transform of kernel." 88 #define PS_ERRORTEXT_psImageConvolve_KERNEL_TOO_LARGE "Specified psKernel size, %dx%d, can not be larger than input psImage size, %dx%d. " 85 89 //~End 86 90 -
trunk/psLib/src/image/psImageExtraction.c
r1840 r1864 10 10 * @author Robert DeSonia, MHPCC 11 11 * 12 * @version $Revision: 1.1 3$ $Name: not supported by cvs2svn $13 * @date $Date: 2004-09-2 1 22:30:19 $12 * @version $Revision: 1.14 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2004-09-23 18:31:49 $ 14 14 * 15 15 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 100 100 } 101 101 102 psImage* psImageSubsection(psImage* image, const char* section) 102 psImage* psImageSubsection(psImage* image, 103 const char* section) 103 104 { 104 105 int x1; … … 606 607 return out; 607 608 } 609 610 psVector* psImageCut(psVector* out, 611 psVector* coords, 612 const psImage* input, 613 const psImage* restrict mask, 614 unsigned int maskVal, 615 float startCol, 616 float startRow, 617 float endCol, 618 float endRow, 619 float nSamples, 620 psImageInterpolateMode mode) 621 { 622 623 return NULL; 624 } 625 626 psVector* psImageRadialCut(psVector* out, 627 const psImage* input, 628 const psImage* restrict mask, 629 unsigned int maskVal, 630 float centerCol, 631 float centerRow, 632 const psVector* radii, 633 const psStats* stats) 634 { 635 636 return NULL; 637 } -
trunk/psLib/src/image/psImageExtraction.h
r1613 r1864 10 10 * @author Robert DeSonia, MHPCC 11 11 * 12 * @version $Revision: 1.1 1$ $Name: not supported by cvs2svn $13 * @date $Date: 2004-0 8-25 00:04:01$12 * @version $Revision: 1.12 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2004-09-23 18:31:49 $ 14 14 * 15 15 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 145 145 psVector* psImageCut( 146 146 psVector* out, ///< psVector to recycle, or NULL. 147 psVector* coords, ///< if not NULL, the calculated coordinates along the slice (output) 147 148 const psImage* input, ///< the input image in which to perform the cut 148 149 const psImage* restrict mask, ///< the mask for the input image. … … 152 153 float endCol, ///< the column of the end of the cut line 153 154 float endRow, ///< the row of the end of the cut line 154 float width, ///< the distance about the line to perform the statistics155 const psStats* stats ///< the statistic to perform in operation155 float nSamples, ///< the number of samples along the cut 156 psImageInterpolateMode mode ///< the interpolation method to use 156 157 ); 157 158 -
trunk/psLib/src/image/psImageFFT.c
r1840 r1864 5 5 * @author Robert DeSonia, MHPCC 6 6 * 7 * @version $Revision: 1. 2$ $Name: not supported by cvs2svn $8 * @date $Date: 2004-09-2 1 22:30:19 $7 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2004-09-23 18:31:49 $ 9 9 * 10 10 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 24 24 #include "psImageErrors.h" 25 25 26 #define P _FFTW_PLAN_RIGOR FFTW_ESTIMATE26 #define PS_FFTW_PLAN_RIGOR FFTW_ESTIMATE 27 27 28 28 static bool p_fftwWisdomImported = false; … … 90 90 plan = fftwf_plan_dft_2d(numCols, numRows, 91 91 (fftwf_complex *) out->data.C32[0], 92 (fftwf_complex *) out->data.C32[0], direction, P _FFTW_PLAN_RIGOR);92 (fftwf_complex *) out->data.C32[0], direction, PS_FFTW_PLAN_RIGOR); 93 93 94 94 /* check if a plan exists now -- if not, it is a real problem */ … … 422 422 423 423 for (unsigned int col = 0; col < numCols; col++) { 424 real = creal f(inRow[col]);425 imag = cimag f(inRow[col]);424 real = creal(inRow[col]); 425 imag = cimag(inRow[col]); 426 426 outRow[col] = real * real + imag * imag / numElementsSquared; 427 427 }
Note:
See TracChangeset
for help on using the changeset viewer.
