IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29457


Ignore:
Timestamp:
Oct 17, 2010, 9:22:28 AM (16 years ago)
Author:
eugene
Message:

use the moments for the guess source position, not the peak pixel

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20100823/psphot/src/psphotGuessModels.c

    r29004 r29457  
    176176
    177177        // We have two options to get a guess for the object position: the position from the
    178         // peak and the position from the moments.  Use the peak position if (a) there are no
    179         // moments and (b) the sources is not saturated
    180 
     178        // peak and the position from the moments.  Use the peak position if there are no
     179        // moments
     180
     181# if (0)
     182        bool useMoments = true;
     183# else
    181184        bool useMoments = false;
    182185        useMoments = (source->mode & PM_SOURCE_MODE_SATSTAR);  // we only want to try if SATSTAR is set, but..
     186# endif
     187
    183188        useMoments = (useMoments && source->moments);          // can't if there are no moments
    184189        useMoments = (useMoments && source->moments->nPixels); // can't if the moments were not measured
Note: See TracChangeset for help on using the changeset viewer.