Changeset 20211
- Timestamp:
- Oct 16, 2008, 3:32:49 PM (18 years ago)
- Location:
- trunk/psLib/src/imageops
- Files:
-
- 2 edited
-
psImageConvolve.c (modified) (5 diffs)
-
psImageConvolve.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/imageops/psImageConvolve.c
r19895 r20211 7 7 /// @author Eugene Magnier, IfA 8 8 /// 9 /// @version $Revision: 1.7 7$ $Name: not supported by cvs2svn $10 /// @date $Date: 2008-10- 04 02:37:51$9 /// @version $Revision: 1.78 $ $Name: not supported by cvs2svn $ 10 /// @date $Date: 2008-10-17 01:32:49 $ 11 11 /// 12 12 /// Copyright 2004-2007 Institute for Astronomy, University of Hawaii … … 466 466 } 467 467 468 bool psImageSmooth (psImage *image,469 double sigma,470 double Nsigma)468 bool psImageSmooth(psImage *image, 469 double sigma, 470 double Nsigma) 471 471 { 472 472 PS_ASSERT_IMAGE_NON_NULL(image, NULL); … … 670 670 sumG += *gaussData; \ 671 671 } \ 672 if (sumG > MIN_GAUSS_FRAC) { \672 if (sumG > minGauss) { \ 673 673 /* BW */ \ 674 674 calculation->data.TYPE[i][j] = sumIG / sumG; \ … … 700 700 sumG += *gaussData; \ 701 701 } \ 702 output->data.TYPE[j][i] = (sumG > MIN_GAUSS_FRAC) ? sumIG / sumG : NAN; \702 output->data.TYPE[j][i] = (sumG > minGauss) ? sumIG / sumG : NAN; \ 703 703 } \ 704 704 } \ … … 717 717 const psImage *mask, 718 718 psMaskType maskVal, 719 double sigma, 720 double numSigma) 719 float sigma, 720 float numSigma, 721 float minGauss) 721 722 { 722 723 PS_ASSERT_IMAGE_NON_NULL(image, NULL); -
trunk/psLib/src/imageops/psImageConvolve.h
r19895 r20211 5 5 * @author Robert DeSonia, MHPCC 6 6 * 7 * @version $Revision: 1.3 5$ $Name: not supported by cvs2svn $8 * @date $Date: 2008-10- 04 02:37:51$7 * @version $Revision: 1.36 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2008-10-17 01:32:49 $ 9 9 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii 10 10 */ … … 202 202 const psImage *mask, ///< Mask image 203 203 psMaskType maskVal, ///< Mask value 204 double sigma, ///< Width of the smoothing kernel (pixels) 205 double numSigma ///< Size of the smoothing box (sigma) 204 float sigma, ///< Width of the smoothing kernel (pixels) 205 float numSigma, ///< Size of the smoothing box (sigma) 206 float minGauss ///< Minimum fraction of Gaussian to accept 206 207 ); 207 208
Note:
See TracChangeset
for help on using the changeset viewer.
