Changeset 12958
- Timestamp:
- Apr 23, 2007, 8:04:18 AM (19 years ago)
- Location:
- branches/eam_02_branch/psModules/src/objects
- Files:
-
- 16 edited
-
pmModel.c (modified) (4 diffs)
-
pmModel.h (modified) (3 diffs)
-
pmPSF.c (modified) (2 diffs)
-
pmPSFtry.c (modified) (4 diffs)
-
pmSource.c (modified) (6 diffs)
-
pmSource.h (modified) (2 diffs)
-
pmSourceFitModel.c (modified) (5 diffs)
-
pmSourceIO_CMF.c (modified) (2 diffs)
-
pmSourceIO_CMP.c (modified) (2 diffs)
-
pmSourceIO_OBJ.c (modified) (2 diffs)
-
pmSourceIO_PS1_DEV_0.c (modified) (2 diffs)
-
pmSourceIO_SMPDATA.c (modified) (2 diffs)
-
pmSourceIO_SX.c (modified) (2 diffs)
-
pmSourcePhotometry.c (modified) (8 diffs)
-
pmSourcePhotometry.h (modified) (2 diffs)
-
pmSourceSky.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_02_branch/psModules/src/objects/pmModel.c
r12956 r12958 6 6 * @author EAM, IfA 7 7 * 8 * @version $Revision: 1.9.6. 3$ $Name: not supported by cvs2svn $9 * @date $Date: 2007-04-23 03:26:23$8 * @version $Revision: 1.9.6.4 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2007-04-23 18:04:18 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 135 135 psImage *mask, 136 136 pmModel *model, 137 pmModel AddMode mode,137 pmModelOpMode mode, 138 138 bool add 139 139 ) … … 275 275 psImage *mask, 276 276 pmModel *model, 277 pmModel AddMode mode)277 pmModelOpMode mode) 278 278 { 279 279 psTrace("psModules.objects", 3, "---- %s() begin ----\n", __func__); … … 288 288 psImage *mask, 289 289 pmModel *model, 290 pmModel AddMode mode)290 pmModelOpMode mode) 291 291 { 292 292 psTrace("psModules.objects", 3, "---- %s() begin ----\n", __func__); -
branches/eam_02_branch/psModules/src/objects/pmModel.h
r12956 r12958 5 5 * @author EAM, IfA 6 6 * 7 * @version $Revision: 1.6.6. 3$ $Name: not supported by cvs2svn $8 * @date $Date: 2007-04-23 03:26:23$7 * @version $Revision: 1.6.6.4 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2007-04-23 18:04:18 $ 9 9 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii 10 10 */ … … 105 105 psImage *mask, ///< The image pixel mask (valid == 0) 106 106 pmModel *model, ///< The input pmModel 107 pmModel AddMode mode ///< mode to control how the model is added into the image107 pmModelOpMode mode ///< mode to control how the model is added into the image 108 108 ); 109 109 … … 122 122 psImage *mask, ///< The image pixel mask (valid == 0) 123 123 pmModel *model, ///< The input pmModel 124 pmModel AddMode mode ///< mode to control how the model is added into the image124 pmModelOpMode mode ///< mode to control how the model is added into the image 125 125 ); 126 126 -
branches/eam_02_branch/psModules/src/objects/pmPSF.c
r12956 r12958 6 6 * @author EAM, IfA 7 7 * 8 * @version $Revision: 1.19.2. 4$ $Name: not supported by cvs2svn $9 * @date $Date: 2007-04-23 03:26:23$8 * @version $Revision: 1.19.2.5 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2007-04-23 18:04:18 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 437 437 psImageKeepCircle (mask, xc, yc, radius, "OR", PM_MASK_MARK); 438 438 pmSourcePhotometryAper (&apMag, model, image, mask); 439 440 // XXX since we re-mask on each pass, this could be dropped. 439 441 psImageKeepCircle (mask, xc, yc, radius, "AND", PS_NOT_U8(PM_MASK_MARK)); 440 442 -
branches/eam_02_branch/psModules/src/objects/pmPSFtry.c
r12943 r12958 5 5 * @author EAM, IfA 6 6 * 7 * @version $Revision: 1.34.6. 2$ $Name: not supported by cvs2svn $8 * @date $Date: 2007-04-2 1 00:03:31$7 * @version $Revision: 1.34.6.3 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2007-04-23 18:04:18 $ 9 9 * 10 10 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 99 99 { 100 100 bool status; 101 float x;102 float y;103 101 int Next = 0; 104 102 int Npsf = 0; … … 120 118 return NULL; 121 119 } 122 x = source->peak->x; 123 y = source->peak->y;124 125 // set temporary object mask and fit object 120 121 // set object mask to define valid pixels 122 psImageKeepCircle (source->maskObj, source->peak->x, source->peak->y, RADIUS, "OR", PM_MASK_MARK); 123 126 124 // fit model as EXT, not PSF 127 128 psImageKeepCircle (source->mask, x, y, RADIUS, "OR", PM_MASK_MARK);129 125 status = pmSourceFitModel (source, source->modelEXT, PM_SOURCE_FIT_EXT); 130 psImageKeepCircle (source->mask, x, y, RADIUS, "AND", PS_NOT_U8(PM_MASK_MARK));131 126 132 127 // exclude the poor fits … … 158 153 source->modelPSF = pmModelFromPSF (source->modelEXT, psfTry->psf); 159 154 source->modelPSF->radiusFit = RADIUS; 160 x = source->peak->x; 161 y = source->peak->y;162 163 // set the mask and fit the PSF model 164 psImageKeepCircle (source->mask, x, y, RADIUS, "OR", PM_MASK_MARK);155 156 // set object mask to define valid pixels 157 psImageKeepCircle (source->maskObj, source->peak->x, source->peak->y, RADIUS, "OR", PM_MASK_MARK); 158 159 // fit the PSF model to the source 165 160 status = pmSourceFitModel (source, source->modelPSF, PM_SOURCE_FIT_PSF); 166 psImageKeepCircle (source->mask, x, y, RADIUS, "AND", PS_NOT_U8(PM_MASK_MARK));167 161 168 162 // skip poor fits -
branches/eam_02_branch/psModules/src/objects/pmSource.c
r12956 r12958 6 6 * @author EAM, IfA: significant modifications. 7 7 * 8 * @version $Revision: 1.25.4. 3$ $Name: not supported by cvs2svn $9 * @date $Date: 2007-04-23 03:26:23$8 * @version $Revision: 1.25.4.4 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2007-04-23 18:04:18 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 743 743 } 744 744 745 pmModel *pmSourceSelectModel (pmSource *source)746 {747 switch (source->type) {748 case PM_SOURCE_TYPE_STAR:749 return source->modelPSF;750 751 case PM_SOURCE_TYPE_EXTENDED:752 return source->modelEXT;753 754 default:755 return NULL;756 }757 return NULL;758 }759 760 745 // construct a realization of the source model 761 746 bool pmSourceCacheModel (pmSource *source) { … … 763 748 // select appropriate model 764 749 pmModel *model = pmSourceGetModel (NULL, source); 765 if (model == NULL) continue; // model must be defined750 if (model == NULL) return false; // model must be defined 766 751 767 752 // if we already have a cached image, re-use that memory 768 if (source->modelFlux) { 769 psImageRecycle (source->modelFlux); 770 } else { 771 source->modelFlux = psImageCopy (source->pixels); 772 } 753 source->modelFlux = psImageCopy (source->modelFlux, source->pixels, PS_TYPE_F32); 773 754 psImageInit (source->modelFlux, 0.0); 774 755 … … 782 763 bool pmSourceOp (pmSource *source, pmModelOpMode mode, bool add) { 783 764 765 bool status; 766 767 if (add) { 768 psTrace ("psphot", 3, "replacing object at %f,%f\n", source->peak->xf, source->peak->yf); 769 } else { 770 psTrace ("psphot", 3, "removing object at %f,%f\n", source->peak->xf, source->peak->yf); 771 } 772 784 773 pmModel *model = pmSourceGetModel (NULL, source); 785 if (model == NULL) continue; // model must be defined774 if (model == NULL) return false; // model must be defined 786 775 787 776 if (source->modelFlux) { … … 801 790 // XXX need to respect the source and model masks? 802 791 for (int iy = 0; iy < source->modelFlux->numRows; iy++) { 803 oy = iy + dY;792 int oy = iy + dY; 804 793 for (int ix = 0; ix < source->modelFlux->numCols; ix++) { 805 ox = ix + dX;794 int ox = ix + dX; 806 795 float value = Io*source->modelFlux->data.F32[iy][ix]; 807 796 if (add) { … … 812 801 } 813 802 } 803 return true; 804 } 805 806 if (add) { 807 status = pmModelAdd (source->pixels, source->maskObj, model, PM_MODEL_OP_FULL); 814 808 } else { 815 if (add) { 816 pmModelAdd (source->pixels, source->maskObj, model, PM_MODEL_OP_FULL); 817 } else { 818 pmModelSub (source->pixels, source->maskObj, model, PM_MODEL_OP_FULL); 809 status = pmModelSub (source->pixels, source->maskObj, model, PM_MODEL_OP_FULL); 810 } 811 812 return true; 813 } 814 815 bool pmSourceAdd (pmSource *source, pmModelOpMode mode) { 816 bool status = pmSourceOp (source, mode, true); 817 return status; 818 } 819 820 bool pmSourceSub (pmSource *source, pmModelOpMode mode) { 821 bool status = pmSourceOp (source, mode, false); 822 return status; 823 } 824 825 // given a source, which model is currently appropriate? 826 // choose PSF or EXT based on source->type, but fall back on PSF 827 // if the EXT model is NULL 828 pmModel *pmSourceGetModel (bool *isPSF, const pmSource *source) 829 { 830 831 pmModel *model; 832 833 if (isPSF) { 834 *isPSF = false; 835 } 836 837 switch (source->type) { 838 case PM_SOURCE_TYPE_STAR: 839 model = source->modelPSF; 840 if (model == NULL) 841 return NULL; 842 if (isPSF) { 843 *isPSF = true; 819 844 } 820 } 821 822 if (add) { 823 psTrace ("psphot", 3, "replacing object at %f,%f\n", source->peak->xf, source->peak->yf); 824 } else { 825 psTrace ("psphot", 3, "removing object at %f,%f\n", source->peak->xf, source->peak->yf); 826 } 827 return true; 828 } 829 830 bool pmSourceAdd (pmSource *source, pmSourceOpMode mode) { 831 pmSourceOp (source, mode, true); 832 } 833 834 bool pmSourceSub (pmSource *source, pmSourceOpMode mode) { 835 pmSourceOp (source, mode, false); 836 } 845 return model; 846 847 case PM_SOURCE_TYPE_EXTENDED: 848 model = source->modelEXT; 849 if (!model && source->modelPSF) { 850 if (isPSF) { 851 *isPSF = true; 852 } 853 return source->modelPSF; 854 } 855 return (model); 856 break; 857 858 default: 859 return NULL; 860 } 861 return NULL; 862 } -
branches/eam_02_branch/psModules/src/objects/pmSource.h
r12956 r12958 3 3 * @author EAM, IfA; GLG, MHPCC 4 4 * 5 * @version $Revision: 1.10.6. 2$ $Name: not supported by cvs2svn $6 * @date $Date: 2007-04-23 03:26:23$5 * @version $Revision: 1.10.6.3 $ $Name: not supported by cvs2svn $ 6 * @date $Date: 2007-04-23 18:04:18 $ 7 7 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii 8 8 */ … … 210 210 ); 211 211 212 213 // select the model used for this source 214 pmModel *pmSourceSelectModel (pmSource *source); 212 pmModel *pmSourceGetModel (bool *isPSF, const pmSource *source); 213 214 bool pmSourceAdd (pmSource *source, pmModelOpMode mode); 215 bool pmSourceSub (pmSource *source, pmModelOpMode mode); 216 217 bool pmSourceOp (pmSource *source, pmModelOpMode mode, bool add); 218 bool pmSourceCacheModel (pmSource *source); 215 219 216 220 /// @} -
branches/eam_02_branch/psModules/src/objects/pmSourceFitModel.c
r12943 r12958 6 6 * @author GLG, MHPCC 7 7 * 8 * @version $Revision: 1.19.4. 2$ $Name: not supported by cvs2svn $9 * @date $Date: 2007-04-2 1 00:03:31$8 * @version $Revision: 1.19.4.3 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2007-04-23 18:04:18 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 57 57 PS_ASSERT_PTR_NON_NULL(source, false); 58 58 PS_ASSERT_PTR_NON_NULL(source->pixels, false); 59 PS_ASSERT_PTR_NON_NULL(source->mask , false);59 PS_ASSERT_PTR_NON_NULL(source->maskObj, false); 60 60 PS_ASSERT_PTR_NON_NULL(source->weight, false); 61 61 … … 77 77 for (psS32 j = 0; j < source->pixels->numCols; j++) { 78 78 // skip masked points 79 if (source->mask ->data.U8[i][j]) {79 if (source->maskObj->data.U8[i][j]) { 80 80 continue; 81 81 } … … 334 334 PS_ASSERT_PTR_NON_NULL(source, false); 335 335 PS_ASSERT_PTR_NON_NULL(source->pixels, false); 336 PS_ASSERT_PTR_NON_NULL(source->mask , false);336 PS_ASSERT_PTR_NON_NULL(source->maskObj, false); 337 337 PS_ASSERT_PTR_NON_NULL(source->weight, false); 338 338 … … 354 354 for (psS32 j = 0; j < source->pixels->numCols; j++) { 355 355 // skip masked points 356 if (source->mask ->data.U8[i][j]) {356 if (source->maskObj->data.U8[i][j]) { 357 357 continue; 358 358 } -
branches/eam_02_branch/psModules/src/objects/pmSourceIO_CMF.c
r12943 r12958 3 3 * @author EAM, IfA 4 4 * 5 * @version $Revision: 1.18.2. 2$ $Name: not supported by cvs2svn $6 * @date $Date: 2007-04-2 1 00:03:31$5 * @version $Revision: 1.18.2.3 $ $Name: not supported by cvs2svn $ 6 * @date $Date: 2007-04-23 18:04:18 $ 7 7 * 8 8 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 56 56 for (i = 0; i < sources->n; i++) { 57 57 pmSource *source = (pmSource *) sources->data[i]; 58 pmModel *model = pmSourceSelectModel (source); 58 59 // no difference between PSF and non-PSF model 60 pmModel *model = pmSourceGetModel (NULL, source); 59 61 if (model == NULL) 60 62 continue; -
branches/eam_02_branch/psModules/src/objects/pmSourceIO_CMP.c
r12943 r12958 3 3 * @author EAM, IfA 4 4 * 5 * @version $Revision: 1.25.2. 2$ $Name: not supported by cvs2svn $6 * @date $Date: 2007-04-2 1 00:03:31$5 * @version $Revision: 1.25.2.3 $ $Name: not supported by cvs2svn $ 6 * @date $Date: 2007-04-23 18:04:18 $ 7 7 * 8 8 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 107 107 for (i = 0; i < sources->n; i++) { 108 108 pmSource *source = (pmSource *) sources->data[i]; 109 pmModel *model = pmSourceSelectModel (source); 109 110 // no difference between PSF and non-PSF model 111 pmModel *model = pmSourceGetModel (NULL, source); 110 112 if (model == NULL) 111 113 continue; -
branches/eam_02_branch/psModules/src/objects/pmSourceIO_OBJ.c
r12943 r12958 3 3 * @author EAM, IfA 4 4 * 5 * @version $Revision: 1.9.2. 2$ $Name: not supported by cvs2svn $6 * @date $Date: 2007-04-2 1 00:03:31$5 * @version $Revision: 1.9.2.3 $ $Name: not supported by cvs2svn $ 6 * @date $Date: 2007-04-23 18:04:18 $ 7 7 * 8 8 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 61 61 for (int i = 0; i < sources->n; i++) { 62 62 pmSource *source = (pmSource *) sources->data[i]; 63 pmModel *model = pmSourceSelectModel (source); 63 64 // no difference between PSF and non-PSF model 65 pmModel *model = pmSourceGetModel (NULL, source); 64 66 if (model == NULL) 65 67 continue; -
branches/eam_02_branch/psModules/src/objects/pmSourceIO_PS1_DEV_0.c
r12943 r12958 3 3 * @author EAM, IfA 4 4 * 5 * @version $Revision: 1.6.2. 2$ $Name: not supported by cvs2svn $6 * @date $Date: 2007-04-2 1 00:03:31$5 * @version $Revision: 1.6.2.3 $ $Name: not supported by cvs2svn $ 6 * @date $Date: 2007-04-23 18:04:18 $ 7 7 * 8 8 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 63 63 for (i = 0; i < sources->n; i++) { 64 64 pmSource *source = (pmSource *) sources->data[i]; 65 pmModel *model = pmSourceSelectModel (source); 65 66 // no difference between PSF and non-PSF model 67 pmModel *model = pmSourceGetModel (NULL, source); 66 68 67 69 if (model != NULL) { -
branches/eam_02_branch/psModules/src/objects/pmSourceIO_SMPDATA.c
r12943 r12958 3 3 * @author EAM, IfA 4 4 * 5 * @version $Revision: 1.5.2. 2$ $Name: not supported by cvs2svn $6 * @date $Date: 2007-04-2 1 00:03:31$5 * @version $Revision: 1.5.2.3 $ $Name: not supported by cvs2svn $ 6 * @date $Date: 2007-04-23 18:04:18 $ 7 7 * 8 8 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 62 62 for (i = 0; i < sources->n; i++) { 63 63 pmSource *source = (pmSource *) sources->data[i]; 64 pmModel *model = pmSourceSelectModel (source); 64 65 // no difference between PSF and non-PSF model 66 pmModel *model = pmSourceGetModel (NULL, source); 65 67 if (model != NULL) { 66 68 PAR = model->params->data.F32; -
branches/eam_02_branch/psModules/src/objects/pmSourceIO_SX.c
r12943 r12958 3 3 * @author EAM, IfA 4 4 * 5 * @version $Revision: 1.8.2. 2$ $Name: not supported by cvs2svn $6 * @date $Date: 2007-04-2 1 00:03:31$5 * @version $Revision: 1.8.2.3 $ $Name: not supported by cvs2svn $ 6 * @date $Date: 2007-04-23 18:04:18 $ 7 7 * 8 8 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 57 57 for (int i = 0; i < sources->n; i++) { 58 58 pmSource *source = (pmSource *) sources->data[i]; 59 pmModel *model = pmSourceSelectModel (source); 59 60 // no difference between PSF and non-PSF model 61 pmModel *model = pmSourceGetModel (NULL, source); 60 62 if (model == NULL) 61 63 continue; -
branches/eam_02_branch/psModules/src/objects/pmSourcePhotometry.c
r12956 r12958 3 3 * @author EAM, IfA; GLG, MHPCC 4 4 * 5 * @version $Revision: 1.22.4. 4$ $Name: not supported by cvs2svn $6 * @date $Date: 2007-04-23 03:26:23$5 * @version $Revision: 1.22.4.5 $ $Name: not supported by cvs2svn $ 6 * @date $Date: 2007-04-23 18:04:18 $ 7 7 * 8 8 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 109 109 // XXX use pmSourceAdd instead? 110 110 if (source->mode & PM_SOURCE_MODE_SUBTRACTED) { 111 pmModelAdd (source->pixels, source->mask , model, PM_MODEL_OP_FULL);111 pmModelAdd (source->pixels, source->maskObj, model, PM_MODEL_OP_FULL); 112 112 } 113 113 … … 182 182 // set aperture mask circle to model radius 183 183 // XXX use a different radius for apertures and fits... 184 psImageKeepCircle (source->mask, x, y, model->radiusFit, "OR", PM_MASK_MARK); 184 // XXX can I remove this? the source should have the mask defined when it is constructed or 185 // when the fit / aperture radius is changed... 186 psImageKeepCircle (source->maskObj, x, y, model->radiusFit, "OR", PM_MASK_MARK); 185 187 186 188 // measure the weight of included pixels 187 189 // XXX is this supposed to use the weight or the flux? 188 190 if (mode & PM_SOURCE_PHOT_WEIGHT) { 189 pmSourcePixelWeight (&source->pixWeight, model, source->pixels, source->mask );191 pmSourcePixelWeight (&source->pixWeight, model, source->pixels, source->maskObj); 190 192 } 191 193 192 194 // measure object aperture photometry 193 status = pmSourcePhotometryAper (&source->apMag, model, flux, source->mask );195 status = pmSourcePhotometryAper (&source->apMag, model, flux, source->maskObj); 194 196 195 197 // for PSFs, correct both apMag and psfMag to same system, consistent with infinite flux star in aperture RADIUS … … 208 210 209 211 // unmask aperture 210 psImageKeepCircle (source->mask, x, y, model->radiusFit, "AND", PS_NOT_U8(PM_MASK_MARK)); 212 // XXX can I remove this? this will probably break things downstream... 213 psImageKeepCircle (source->maskObj, x, y, model->radiusFit, "AND", PS_NOT_U8(PM_MASK_MARK)); 211 214 212 215 // if source was originally subtracted, re-subtract object, leave local sky 216 // XXX replace with pmSourceSub... 213 217 if (source->mode & PM_SOURCE_MODE_SUBTRACTED) { 214 pmModelSub (source->pixels, source->mask , model, PM_MODEL_OP_FULL);218 pmModelSub (source->pixels, source->maskObj, model, PM_MODEL_OP_FULL); 215 219 } 216 220 … … 381 385 const psImage *Wi = Mi->weight; 382 386 383 const psImage *Ti = Mi->mask ;384 const psImage *Tj = Mj->mask ;387 const psImage *Ti = Mi->maskObj; 388 const psImage *Tj = Mj->maskObj; 385 389 386 390 Xs = PS_MAX (Pi->col0, Pj->col0); … … 437 441 const psImage *Wi = Mi->weight; 438 442 439 const psImage *Ti = Mi->mask ;440 const psImage *Tj = Mj->mask ;443 const psImage *Ti = Mi->maskObj; 444 const psImage *Tj = Mj->maskObj; 441 445 442 446 Xs = PS_MAX (Pi->col0, Pj->col0); … … 485 489 const psImage *Pi = Mi->pixels; 486 490 const psImage *Wi = Mi->weight; 487 const psImage *Ti = Mi->mask ;491 const psImage *Ti = Mi->maskObj; 488 492 489 493 // note that this is addressing the same image pixels, … … 545 549 } 546 550 547 // given a source, which model is currently appropriate?548 // choose PSF or EXT based on source->type, but fall back on PSF549 // if the EXT model is NULL550 pmModel *pmSourceGetModel (bool *isPSF, const pmSource *source)551 {552 553 pmModel *model;554 555 switch (source->type) {556 case PM_SOURCE_TYPE_STAR:557 model = source->modelPSF;558 if (model == NULL)559 return NULL;560 if (isPSF)561 *isPSF = true;562 return model;563 564 case PM_SOURCE_TYPE_EXTENDED:565 model = source->modelEXT;566 if (isPSF)567 *isPSF = false;568 if (model == NULL) {569 model = source->modelPSF;570 if (isPSF)571 *isPSF = true;572 }573 if (model == NULL) {574 if (isPSF)575 *isPSF = FALSE;576 return NULL;577 }578 return (model);579 break;580 581 default:582 if (isPSF)583 *isPSF = false;584 return NULL;585 }586 return NULL;587 } -
branches/eam_02_branch/psModules/src/objects/pmSourcePhotometry.h
r11253 r12958 4 4 * @author EAM, IfA; GLG, MHPCC 5 5 * 6 * @version $Revision: 1.8 $ $Name: not supported by cvs2svn $7 * @date $Date: 2007-0 1-24 02:54:15$6 * @version $Revision: 1.8.6.1 $ $Name: not supported by cvs2svn $ 7 * @date $Date: 2007-04-23 18:04:18 $ 8 8 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii 9 9 */ … … 54 54 bool pmSourcePixelWeight (float *pixWeight, pmModel *model, psImage *image, psImage *mask); 55 55 bool pmSourceChisq (pmModel *model, psImage *image, psImage *mask, psImage *weight); 56 pmModel *pmSourceGetModel (bool *isPSF, const pmSource *source);57 56 58 57 double pmSourceWeight(const pmSource *Mi, int term, const bool unweighted_sum); -
branches/eam_02_branch/psModules/src/objects/pmSourceSky.c
r12943 r12958 6 6 * @author EAM, IfA: significant modifications. 7 7 * 8 * @version $Revision: 1.10.4. 1$ $Name: not supported by cvs2svn $9 * @date $Date: 2007-04-2 1 00:03:31$8 * @version $Revision: 1.10.4.2 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2007-04-23 18:04:18 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 49 49 PS_ASSERT_PTR_NON_NULL(source, false); 50 50 PS_ASSERT_IMAGE_NON_NULL(source->pixels, false); 51 PS_ASSERT_IMAGE_NON_NULL(source->mask , false);51 PS_ASSERT_IMAGE_NON_NULL(source->maskObj, false); 52 52 PS_ASSERT_PTR_NON_NULL(source->peak, false); 53 53 PS_ASSERT_INT_POSITIVE(Radius, false); … … 61 61 62 62 psImage *image = source->pixels; 63 psImage *mask = source->mask ;63 psImage *mask = source->maskObj; 64 64 pmPeak *peak = source->peak; 65 65 psRegion srcRegion; … … 100 100 PS_ASSERT_PTR_NON_NULL(source, false); 101 101 PS_ASSERT_IMAGE_NON_NULL(source->weight, false); 102 PS_ASSERT_IMAGE_NON_NULL(source->mask , false);102 PS_ASSERT_IMAGE_NON_NULL(source->maskObj, false); 103 103 PS_ASSERT_PTR_NON_NULL(source->peak, false); 104 104 PS_ASSERT_INT_POSITIVE(Radius, false); … … 112 112 113 113 psImage *image = source->weight; 114 psImage *mask = source->mask ;114 psImage *mask = source->maskObj; 115 115 pmPeak *peak = source->peak; 116 116 psRegion srcRegion;
Note:
See TracChangeset
for help on using the changeset viewer.
