IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 1350


Ignore:
Timestamp:
Jul 29, 2004, 6:18:01 PM (22 years ago)
Author:
evanalst
Message:

Add check for image FFT for forward needing type psF32.

Location:
trunk/psLib/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/dataManip/psFFT.c

    r1349 r1350  
    55*  @author Robert DeSonia, MHPCC
    66*
    7 *  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
    8 *  @date $Date: 2004-07-30 04:03:51 $
     7*  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
     8*  @date $Date: 2004-07-30 04:18:01 $
    99*
    1010*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    5555            return NULL;
    5656           
     57        }
     58       
     59    if ( type != PS_TYPE_F32 && direction == PS_FFT_FORWARD ) {
     60            psError( __func__, "Input image must be real image for forward FFT (type=%d).",
     61                     type );
     62            psFree( out );
     63            return NULL;
    5764        }
    5865       
  • trunk/psLib/src/dataManip/psVectorFFT.c

    r1349 r1350  
    55*  @author Robert DeSonia, MHPCC
    66*
    7 *  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
    8 *  @date $Date: 2004-07-30 04:03:51 $
     7*  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
     8*  @date $Date: 2004-07-30 04:18:01 $
    99*
    1010*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    5555            return NULL;
    5656           
     57        }
     58       
     59    if ( type != PS_TYPE_F32 && direction == PS_FFT_FORWARD ) {
     60            psError( __func__, "Input image must be real image for forward FFT (type=%d).",
     61                     type );
     62            psFree( out );
     63            return NULL;
    5764        }
    5865       
  • trunk/psLib/src/fft/psVectorFFT.c

    r1349 r1350  
    55*  @author Robert DeSonia, MHPCC
    66*
    7 *  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
    8 *  @date $Date: 2004-07-30 04:03:51 $
     7*  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
     8*  @date $Date: 2004-07-30 04:18:01 $
    99*
    1010*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    5555            return NULL;
    5656           
     57        }
     58       
     59    if ( type != PS_TYPE_F32 && direction == PS_FFT_FORWARD ) {
     60            psError( __func__, "Input image must be real image for forward FFT (type=%d).",
     61                     type );
     62            psFree( out );
     63            return NULL;
    5764        }
    5865       
Note: See TracChangeset for help on using the changeset viewer.