Changeset 34257 for trunk/psLib/src/math/psEllipse.c
- Timestamp:
- Jul 31, 2012, 3:55:33 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/math/psEllipse.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psEllipse.c
r19996 r34257 8 8 #include "psTrace.h" 9 9 #include "psEllipse.h" 10 11 // we have four representations of the elliptical profile of a Gaussian 12 // f = exp(-z) where z describes the elliptical contour at any flux level: 13 14 // sigma shape: z = 0.5((x/sx)^2 + (y/sy)^2 + sxy*x*y) 15 // sigma axes : z = 0.5((x/sa)^2 + (y/sb)^2), x,y rotated by theta 16 // moments : z = 0.5(x^2/Mxx + y^2/Myy + x*y*Mxy) 17 // polarization : e0, e1, e2 10 18 11 19 // ellipse rotation (major, minor, theta) -> (x2, y2, xy) … … 107 115 } 108 116 109 // ellipse rotation (x2, y2, xy) -> (major, minor, theta) 117 // ellipse rotation (x2, y2, xy) -> (major, minor, theta). NOTE: major, minor are the 118 // 1-sigma lengths in the major,minor directions assuming the moments represent a Gaussian 119 // profile 110 120 psEllipseAxes psEllipseMomentsToAxes(psEllipseMoments moments, double maxAR) 111 121 {
Note:
See TracChangeset
for help on using the changeset viewer.
