Changeset 2650 for trunk/psLib/src/dataManip/psMinimize.c
- Timestamp:
- Dec 7, 2004, 12:28:29 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/dataManip/psMinimize.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/dataManip/psMinimize.c
r2583 r2650 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.9 2$ $Name: not supported by cvs2svn $12 * @date $Date: 2004-12-0 1 19:56:06$11 * @version $Revision: 1.93 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-12-07 22:28:29 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 455 455 } 456 456 457 /* 458 XXX: from bug 230: 459 460 We first perform a rotation: 461 u = - (x-x0)*cos(theta) + (y-y0)*sin(theta) 462 v = (x-x0)*cos(theta) + (y-y0)*sin(theta) 463 464 Here u is the major axis, and v is the minor axis, x0,y0 is the centre, and 465 theta is the position angle. 466 467 Then the flux is 468 469 flux = norm * exp(-( u*u/2.0/sigmau/sigmau + v*v/2.0/sigmav/sigmav) 470 )/2.0/pi/sigmau/sigmav 471 472 Here sigmau and sigmav are the widths of the major and minor axes. 473 474 The "norm" parameter in the equation above corresponds to the normalisation. 475 476 Suggest order: 477 478 norm 479 x0 480 y0 481 sigma_u 482 sigma_v 483 theta 484 */ 457 485 458 486 psVector *psMinimizeLMChi2Gauss2D(psImage *deriv,
Note:
See TracChangeset
for help on using the changeset viewer.
