IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 31, 2011, 12:47:55 PM (15 years ago)
Author:
eugene
Message:

use R1 to scale moments-based size guess

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110710/psModules/src/objects/pmModelUtils.c

    r31153 r32244  
    122122    if (!isfinite(axes.theta)) return false;
    123123
     124    // Mxx, Mxy, Myy define the elliptical shape, but Mrf defines the width
     125    float scale = (isfinite(moments->Mrf) && (moments->Mrf > 0.0) ? moments->Mrf / axes.major : 1.0;
     126    axes.major *= scale;
     127    axes.minor *= scale;
     128
    124129    psEllipseShape shape = psEllipseAxesToShape (axes);
    125130
Note: See TracChangeset for help on using the changeset viewer.