IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 14, 2005, 3:23:24 AM (21 years ago)
Author:
eugene
Message:

mask/noise are working

File:
1 edited

Legend:

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

    r4114 r4251  
    88    int   Nfit = 0;
    99    int   Niter = 0;
    10 
    11     float XBORDER  = psMetadataLookupF32 (&status, config, "XBORDER");
    12     float YBORDER  = psMetadataLookupF32 (&status, config, "YBORDER");
    13     psRegion *keep = psRegionAlloc (XBORDER, -XBORDER, YBORDER, -YBORDER);
    14     keep           = psRegionForImage (keep, image, keep);
    1510
    1611    float RADIUS   = psMetadataLookupF32 (&status, config, "FIT_RADIUS");
     
    2520
    2621        // need a better model guess and a better radius choice
    27         pmSourceSetPixelCircle (source, image, RADIUS);
    28         pmSourceMaskRegion (source, keep);
     22        // when radius is not fixed, we will need to check if new radius fits on image
     23# if (0)
     24        if (model->radius > OUTER) {
     25          // allocate image, noise, mask arrays for each peak (square of radius OUTER)
     26          pmSourceDefinePixels (source, imdata, x, y, OUTER);
     27        }
     28# endif
    2929        psModel  *model  = pmSourceModelGuess (source, modelType);
    3030
Note: See TracChangeset for help on using the changeset viewer.