IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 5351


Ignore:
Timestamp:
Oct 17, 2005, 9:04:33 AM (21 years ago)
Author:
eugene
Message:

problems with psLib:psImageCountPixelMask, resort to internal version

Location:
trunk/psphot/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/pmObjects_EAM.c

    r5350 r5351  
    66 *  @author EAM, IfA: significant modifications.
    77 *
    8  *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2005-10-17 18:07:54 $
     8 *  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2005-10-17 19:04:33 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    999999    int Ncr      = 0;
    10001000    int Nsatstar = 0;
    1001     psRegion allArray = {0, 0, 0, 0};
     1001    // psRegion allArray;
    10021002
    10031003    psVector *starsn = psVectorAlloc (sources->n, PS_TYPE_F32);
     
    10311031
    10321032        // XXX EAM : can we use the value of SATURATE if mask is NULL?
    1033         int Nsatpix = psImageCountPixelMask (tmpSrc->mask, allArray, PSPHOT_MASK_SATURATED);
     1033        // XXX EAM *** serious errors in psImageCountPixelMask: inconsistent with psRegion and subimage
     1034        // allArray = psRegionSet (1, tmpSrc->mask->numCols, 1, tmpSrc->mask->numRows);
     1035        // int Nsatpix = psImageCountPixelMask (tmpSrc->mask, allArray, PSPHOT_MASK_SATURATED);
     1036        int Nsatpix = psImageCountPixelMask_EAM (tmpSrc->mask, PSPHOT_MASK_SATURATED);
    10341037
    10351038        // saturated star (size consistent with PSF or larger)
  • trunk/psphot/src/psLibUtils.c

    r5134 r5351  
    280280}           
    281281
    282 # if (0)
    283282// now in psLib (v8)
    284283// count number of pixels with given mask value
    285 int psImageCountPixelMask (psImage *mask, psU8 value)
     284// XXX EAM : version in psLib is broken
     285int psImageCountPixelMask_EAM (psImage *mask, psU8 value)
    286286{
    287287    int Npixels = 0;
     
    296296    return (Npixels);
    297297}
    298 # endif
    299298
    300299// define a square region centered on the given coordinate
  • trunk/psphot/src/psLibUtils.h

    r5134 r5351  
    2929psF64        p_psMinLM_dLinear (const psVector *Beta, const psVector *beta, psF64 lambda);
    3030
     31int          psImageCountPixelMask_EAM (psImage *mask, psU8 value); // added to SDRS
     32
    3133// psLib extra utilities
    3234# if (0) // added to psLib v8
     
    3436int          psArgumentRemove (int N, int *argc, char **argv); // added to SDRS
    3537bool         psTimerClear (char *name);   // added to SDRS
    36 int          psImageCountPixelMask (psImage *mask, psU8 value); // added to SDRS
    3738psVector    *psVectorCreate (double lower, double upper, double delta, psElemType type); // added to SDRS
    3839# endif
Note: See TracChangeset for help on using the changeset viewer.