Changeset 5351
- Timestamp:
- Oct 17, 2005, 9:04:33 AM (21 years ago)
- Location:
- trunk/psphot/src
- Files:
-
- 3 edited
-
pmObjects_EAM.c (modified) (3 diffs)
-
psLibUtils.c (modified) (2 diffs)
-
psLibUtils.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/pmObjects_EAM.c
r5350 r5351 6 6 * @author EAM, IfA: significant modifications. 7 7 * 8 * @version $Revision: 1. 9$ $Name: not supported by cvs2svn $9 * @date $Date: 2005-10-17 1 8:07:54$8 * @version $Revision: 1.10 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2005-10-17 19:04:33 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 999 999 int Ncr = 0; 1000 1000 int Nsatstar = 0; 1001 psRegion allArray = {0, 0, 0, 0};1001 // psRegion allArray; 1002 1002 1003 1003 psVector *starsn = psVectorAlloc (sources->n, PS_TYPE_F32); … … 1031 1031 1032 1032 // 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); 1034 1037 1035 1038 // saturated star (size consistent with PSF or larger) -
trunk/psphot/src/psLibUtils.c
r5134 r5351 280 280 } 281 281 282 # if (0)283 282 // now in psLib (v8) 284 283 // count number of pixels with given mask value 285 int psImageCountPixelMask (psImage *mask, psU8 value) 284 // XXX EAM : version in psLib is broken 285 int psImageCountPixelMask_EAM (psImage *mask, psU8 value) 286 286 { 287 287 int Npixels = 0; … … 296 296 return (Npixels); 297 297 } 298 # endif299 298 300 299 // define a square region centered on the given coordinate -
trunk/psphot/src/psLibUtils.h
r5134 r5351 29 29 psF64 p_psMinLM_dLinear (const psVector *Beta, const psVector *beta, psF64 lambda); 30 30 31 int psImageCountPixelMask_EAM (psImage *mask, psU8 value); // added to SDRS 32 31 33 // psLib extra utilities 32 34 # if (0) // added to psLib v8 … … 34 36 int psArgumentRemove (int N, int *argc, char **argv); // added to SDRS 35 37 bool psTimerClear (char *name); // added to SDRS 36 int psImageCountPixelMask (psImage *mask, psU8 value); // added to SDRS37 38 psVector *psVectorCreate (double lower, double upper, double delta, psElemType type); // added to SDRS 38 39 # endif
Note:
See TracChangeset
for help on using the changeset viewer.
