IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 20211


Ignore:
Timestamp:
Oct 16, 2008, 3:32:49 PM (18 years ago)
Author:
Paul Price
Message:

Adding parameter to psImageSmoothMask to control acceptance of masked regions.

Location:
trunk/psLib/src/imageops
Files:
2 edited

Legend:

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

    r19895 r20211  
    77/// @author Eugene Magnier, IfA
    88///
    9 /// @version $Revision: 1.77 $ $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 $
    1111///
    1212/// Copyright 2004-2007 Institute for Astronomy, University of Hawaii
     
    466466}
    467467
    468 bool psImageSmooth (psImage *image,
    469                     double  sigma,
    470                     double  Nsigma)
     468bool psImageSmooth(psImage *image,
     469                   double  sigma,
     470                   double  Nsigma)
    471471{
    472472    PS_ASSERT_IMAGE_NON_NULL(image, NULL);
     
    670670                sumG += *gaussData; \
    671671            } \
    672             if (sumG > MIN_GAUSS_FRAC) { \
     672            if (sumG > minGauss) { \
    673673                /* BW */ \
    674674                calculation->data.TYPE[i][j] = sumIG / sumG; \
     
    700700                sumG += *gaussData; \
    701701            } \
    702             output->data.TYPE[j][i] = (sumG > MIN_GAUSS_FRAC) ? sumIG / sumG : NAN; \
     702            output->data.TYPE[j][i] = (sumG > minGauss) ? sumIG / sumG : NAN; \
    703703        } \
    704704    } \
     
    717717                           const psImage *mask,
    718718                           psMaskType maskVal,
    719                            double sigma,
    720                            double numSigma)
     719                           float sigma,
     720                           float numSigma,
     721                           float minGauss)
    721722{
    722723    PS_ASSERT_IMAGE_NON_NULL(image, NULL);
  • trunk/psLib/src/imageops/psImageConvolve.h

    r19895 r20211  
    55 * @author Robert DeSonia, MHPCC
    66 *
    7  * @version $Revision: 1.35 $ $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 $
    99 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
    1010 */
     
    202202    const psImage *mask,                ///< Mask image
    203203    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
    206207    );
    207208
Note: See TracChangeset for help on using the changeset viewer.