Changeset 15321 for trunk/psLib/src/imageops/psImageConvolve.h
- Timestamp:
- Oct 16, 2007, 3:49:12 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/imageops/psImageConvolve.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/imageops/psImageConvolve.h
r15320 r15321 5 5 * @author Robert DeSonia, MHPCC 6 6 * 7 * @version $Revision: 1.3 0$ $Name: not supported by cvs2svn $8 * @date $Date: 2007-10-1 6 23:31:03$7 * @version $Revision: 1.31 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2007-10-17 01:49:12 $ 9 9 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii 10 10 */ … … 155 155 /// Convolve a mask image with a kernel, using direct convolution 156 156 /// 157 /// Returns a mask, grown by the supplied kernel. Only those pixels specified by the maskVal are grown; the 158 /// rest are simply propagated. 159 psImage *psImageConvolveMaskDirect(const psImage *mask, ///< Mask to convolve 157 /// Returns a mask, grown by the supplied convolution bounds. Only those pixels specified by the maskVal are 158 /// grown, being ORed with setVal; the rest are simply propagated. If setVal is zero, then individual bits 159 /// matching maskVal are grown. 160 psImage *psImageConvolveMaskDirect(psImage *out, ///< Output image, or NULL 161 const psImage *mask, ///< Mask to convolve 160 162 psMaskType maskVal, ///< Mask value to convolve 161 const psKernel *kernel ///< Kernel by which to convolve 163 psMaskType setVal, ///< Mask value to set; 0 to propagate maskVal 164 int xMin, int xMax, int yMin, int yMax ///< Convolution bounds 162 165 ); 163 166 164 167 /// Convolve a mask image with a kernel, using the FFT 165 168 /// 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. 169 psImage *psImageConvolveMaskFFT(const psImage *mask, ///< Mask to convolve 169 /// Returns a mask, grown by the supplied convolution bounds. Only those pixels specified by the maskVal are 170 /// grown, being ORed with setVal; the rest are simply propagated. If setVal is zero, uses maskVal; note that 171 /// the mode of growing individual bits in maskVal is NOT supported because this algorithm does not enable it. 172 /// Uses psImageConvolveFFT to convolve those pixels which are masked, and then thresholds at the specified 173 /// level. 174 psImage *psImageConvolveMaskFFT(psImage *out, ///< Output image, or NULL 175 const psImage *mask, ///< Mask to convolve 170 176 psMaskType maskVal, ///< Mask value to convolve 171 const psKernel *kernel, ///< Kernel by which to convolve 177 psMaskType setVal, ///< Mask value to set; 0 to use maskVal 178 int xMin, int xMax, int yMin, int yMax, ///< Convolution bounds 172 179 float thresh ///< Threshold (0..1) for convolved floating-point image 173 180 ); 174 175 181 176 182 /// Smooths an image by parts using 1D Gaussian independently in x and y.
Note:
See TracChangeset
for help on using the changeset viewer.
