IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 7, 2004, 12:28:29 PM (22 years ago)
Author:
gusciora
Message:

...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/dataManip/psMinimize.c

    r2583 r2650  
    99 *  @author GLG, MHPCC
    1010 *
    11  *  @version $Revision: 1.92 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2004-12-01 19:56:06 $
     11 *  @version $Revision: 1.93 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2004-12-07 22:28:29 $
    1313 *
    1414 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    455455}
    456456
     457/*
     458XXX: from bug 230:
     459 
     460We first perform a rotation:
     461u = - (x-x0)*cos(theta) + (y-y0)*sin(theta)
     462v = (x-x0)*cos(theta) + (y-y0)*sin(theta)
     463 
     464Here u is the major axis, and v is the minor axis, x0,y0 is the centre, and
     465theta is the position angle.
     466 
     467Then the flux is
     468 
     469flux = norm * exp(-( u*u/2.0/sigmau/sigmau + v*v/2.0/sigmav/sigmav)
     470)/2.0/pi/sigmau/sigmav
     471 
     472Here sigmau and sigmav are the widths of the major and minor axes.
     473 
     474The "norm" parameter in the equation above corresponds to the normalisation.
     475 
     476Suggest order:
     477 
     478norm
     479x0
     480y0
     481sigma_u
     482sigma_v
     483theta
     484*/
    457485
    458486psVector *psMinimizeLMChi2Gauss2D(psImage *deriv,
Note: See TracChangeset for help on using the changeset viewer.