IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 16, 2007, 1:31:03 PM (19 years ago)
Author:
Paul Price
Message:

Adding psImageConvolveMaskFFT to use FFT convolution to convolve mask --- should be faster than direct convolution for large kernels.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/imageops/psImageConvolve.h

    r14866 r15320  
    55 * @author Robert DeSonia, MHPCC
    66 *
    7  * @version $Revision: 1.29 $ $Name: not supported by cvs2svn $
    8  * @date $Date: 2007-09-17 20:49:51 $
     7 * @version $Revision: 1.30 $ $Name: not supported by cvs2svn $
     8 * @date $Date: 2007-10-16 23:31:03 $
    99 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
    1010 */
     
    153153);
    154154
    155 /// Convolve a mask image with a kernel
     155/// Convolve a mask image with a kernel, using direct convolution
    156156///
    157157/// Returns a mask, grown by the supplied kernel.  Only those pixels specified by the maskVal are grown; the
    158158/// rest are simply propagated.
    159 psImage *psImageConvolveMask(const psImage *mask, ///< Mask to convolve
    160                              psMaskType maskVal, ///< Mask value to convolve
    161                              const psKernel *kernel ///< Kernel by which to convolve
     159psImage *psImageConvolveMaskDirect(const psImage *mask, ///< Mask to convolve
     160                                   psMaskType maskVal, ///< Mask value to convolve
     161                                   const psKernel *kernel ///< Kernel by which to convolve
     162    );
     163
     164/// Convolve a mask image with a kernel, using the FFT
     165///
     166/// Returns a mask, grown by the supplied kernel.  Only those pixels specified by the maskVal are grown; the
     167/// rest are simply propagated.  Uses psImageConvolveFFT to convolve the mask, and then thresholds at the
     168/// specified level.
     169psImage *psImageConvolveMaskFFT(const psImage *mask, ///< Mask to convolve
     170                                psMaskType maskVal, ///< Mask value to convolve
     171                                const psKernel *kernel, ///< Kernel by which to convolve
     172                                float thresh ///< Threshold (0..1) for convolved floating-point image
    162173    );
    163174
Note: See TracChangeset for help on using the changeset viewer.