Changeset 14652 for trunk/psModules/src/objects/pmSource.c
- Timestamp:
- Aug 23, 2007, 2:11:02 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/objects/pmSource.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/objects/pmSource.c
r14529 r14652 6 6 * @author EAM, IfA: significant modifications. 7 7 * 8 * @version $Revision: 1.3 4$ $Name: not supported by cvs2svn $9 * @date $Date: 2007-08- 16 18:33:00$8 * @version $Revision: 1.35 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2007-08-24 00:11:02 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 27 27 #include "pmMoments.h" 28 28 #include "pmResiduals.h" 29 #include "pmGrowthCurve.h" 30 #include "pmPSF.h" 29 31 #include "pmModel.h" 30 32 #include "pmSource.h" … … 113 115 } 114 116 115 bool pm IsSource(const psPtr ptr)117 bool pmSourceTest(const psPtr ptr) 116 118 { 117 119 return (psMemGetDeallocator(ptr) == (psFreeFunc)sourceFree); … … 337 339 return emptyClump; 338 340 } 339 peaks = pm FindImagePeaks(splane, stats[0].max / 2);341 peaks = pmPeaksInImage (splane, stats[0].max / 2); 340 342 psTrace ("psModules.objects", 2, "clump threshold is %f\n", stats[0].max/2); 341 343 … … 797 799 798 800 // should we call pmSourceCacheModel if it does not exist? 799 bool pmSourceOp (pmSource *source, pmModelOpMode mode, bool add, psMaskType maskVal ) {801 bool pmSourceOp (pmSource *source, pmModelOpMode mode, bool add, psMaskType maskVal, int dx, int dy) { 800 802 801 803 bool status; … … 856 858 target = source->weight; 857 859 } 860 858 861 if (add) { 859 status = pmModelAdd (target, source->maskObj, model, PM_MODEL_OP_FULL, maskVal);862 status = pmModelAddWithOffset (target, source->maskObj, model, PM_MODEL_OP_FULL, maskVal, dx, dy); 860 863 } else { 861 status = pmModelSub (target, source->maskObj, model, PM_MODEL_OP_FULL, maskVal);864 status = pmModelSubWithOffset (target, source->maskObj, model, PM_MODEL_OP_FULL, maskVal, dx, dy); 862 865 } 863 866 … … 866 869 867 870 bool pmSourceAdd (pmSource *source, pmModelOpMode mode, psMaskType maskVal) { 868 return pmSourceOp (source, mode, true, maskVal );871 return pmSourceOp (source, mode, true, maskVal, 0, 0); 869 872 } 870 873 871 874 bool pmSourceSub (pmSource *source, pmModelOpMode mode, psMaskType maskVal) { 872 return pmSourceOp (source, mode, false, maskVal); 875 return pmSourceOp (source, mode, false, maskVal, 0, 0); 876 } 877 878 bool pmSourceAddWithOffset (pmSource *source, pmModelOpMode mode, psMaskType maskVal, int dx, int dy) { 879 return pmSourceOp (source, mode, true, maskVal, dx, dy); 880 } 881 882 bool pmSourceSubWithOffset (pmSource *source, pmModelOpMode mode, psMaskType maskVal, int dx, int dy) { 883 return pmSourceOp (source, mode, false, maskVal, dx, dy); 873 884 } 874 885
Note:
See TracChangeset
for help on using the changeset viewer.
