IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 1864 for trunk/psLib/src/image


Ignore:
Timestamp:
Sep 23, 2004, 8:31:49 AM (22 years ago)
Author:
desonia
Message:

migrated more psError calls to new style (i.e., psErrorMsg).

Location:
trunk/psLib/src/image
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/image/psImageErrors.dat

    r1840 r1864  
    1111psImage_NOT_AN_IMAGE                   The input psImage must have a PS_DIMEN_IMAGE dimension type.
    1212psImage_IMAGE_NULL                     Can not operate on a NULL psImage.
    13 psImage_IMAGE_TYPE_UNSUPPORTED         Specified psImage type (%s) is not supported.
     13psImage_IMAGE_TYPE_UNSUPPORTED         Specified psImage type, %s, is not supported.
    1414psImage_INTERPOLATE_METHOD_INVALID     Specified interpolation method (%d) is not supported.
    1515psImage_SUBSET_RANGE_INVALID           Specified subset range, [%d:%d,%d:%d], lies outside psImage's boundaries, [0:%d,0:%d].
     
    6262psImageManip_SCALE_NOT_POSITIVE        Specified scale value, %d, must be a positive value.
    6363psImageManip_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.
     64psImageConvolve_SHIFT_NULL             Specified shift vectors can not be NULL.
     65psImageConvolve_KERNEL_NULL            Specified psKernel can not be NULL.
     66psImageConvolve_SHIFT_TYPE_MISMATCH    Input t-, x-, and y-shift vector types (%s/%s/%s) must match.
     67psImageConvolve_FFT_FAILED             Failed to perform a fourier transform of input image.
     68psImageConvolve_KERNEL_FFT_FAILED      Failed to perform a fourier transform of kernel.
     69psImageConvolve_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  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    9  *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2004-09-21 22:30:19 $
     9 *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2004-09-23 18:31:49 $
    1111 *
    1212 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3333#define PS_ERRORTEXT_psImage_NOT_AN_IMAGE "The input psImage must have a PS_DIMEN_IMAGE dimension type."
    3434#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."
    3636#define PS_ERRORTEXT_psImage_INTERPOLATE_METHOD_INVALID "Specified interpolation method (%d) is not supported."
    3737#define PS_ERRORTEXT_psImage_SUBSET_RANGE_INVALID "Specified subset range, [%d:%d,%d:%d], lies outside psImage's boundaries, [0:%d,0:%d]."
     
    8282#define PS_ERRORTEXT_psImageManip_INTERPOLATION_MODE_UNSUPPORTED "Specified interpolation mode, %d, is unsupported."
    8383#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.  "
    8589//~End
    8690
  • trunk/psLib/src/image/psImageExtraction.c

    r1840 r1864  
    1010*  @author Robert DeSonia, MHPCC
    1111*
    12 *  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2004-09-21 22:30:19 $
     12*  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2004-09-23 18:31:49 $
    1414*
    1515*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    100100}
    101101
    102 psImage* psImageSubsection(psImage* image, const char* section)
     102psImage* psImageSubsection(psImage* image,
     103                           const char* section)
    103104{
    104105    int x1;
     
    606607    return out;
    607608}
     609
     610psVector* 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
     626psVector* 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  
    1010*  @author Robert DeSonia, MHPCC
    1111*
    12 *  @version $Revision: 1.11 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2004-08-25 00:04:01 $
     12*  @version $Revision: 1.12 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2004-09-23 18:31:49 $
    1414*
    1515*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    145145psVector* psImageCut(
    146146    psVector* out,                     ///< psVector to recycle, or NULL.
     147    psVector* coords,                  ///< if not NULL, the calculated coordinates along the slice (output)
    147148    const psImage* input,              ///< the input image in which to perform the cut
    148149    const psImage* restrict mask,      ///< the mask for the input image.
     
    152153    float endCol,                      ///< the column of the end of the cut line
    153154    float endRow,                      ///< the row of the end of the cut line
    154     float width,                       ///< the distance about the line to perform the statistics
    155     const psStats* stats               ///< the statistic to perform in operation
     155    float nSamples,                    ///< the number of samples along the cut
     156    psImageInterpolateMode mode        ///< the interpolation method to use
    156157);
    157158
  • trunk/psLib/src/image/psImageFFT.c

    r1840 r1864  
    55 *  @author Robert DeSonia, MHPCC
    66 *
    7  *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2004-09-21 22:30:19 $
     7 *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2004-09-23 18:31:49 $
    99 *
    1010 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    2424#include "psImageErrors.h"
    2525
    26 #define P_FFTW_PLAN_RIGOR FFTW_ESTIMATE
     26#define PS_FFTW_PLAN_RIGOR FFTW_ESTIMATE
    2727
    2828static bool p_fftwWisdomImported = false;
     
    9090    plan = fftwf_plan_dft_2d(numCols, numRows,
    9191                             (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);
    9393
    9494    /* check if a plan exists now -- if not, it is a real problem */
     
    422422
    423423            for (unsigned int col = 0; col < numCols; col++) {
    424                 real = crealf(inRow[col]);
    425                 imag = cimagf(inRow[col]);
     424                real = creal(inRow[col]);
     425                imag = cimag(inRow[col]);
    426426                outRow[col] = real * real + imag * imag / numElementsSquared;
    427427            }
Note: See TracChangeset for help on using the changeset viewer.