gauss2ellipse

PURPOSE ^

Creates an ellipse representing the 2D Gaussian distribution.

SYNOPSIS ^

function [ crow, ccol, ra, rb, phi ] = gauss2ellipse( mu, C, d )

DESCRIPTION ^

 Creates an ellipse representing the 2D Gaussian distribution.
 
 Creates an ellipse representing the 2D Gaussian distribution with mean mu and covariance
 matrix C.  Returns 5 parameters that specify the ellipse: a semimajor axis of ra, a
 semiminor axis of radius rb, angle phi, centered at (crow,ccol).  

 INPUTS
   mu  - 1x2 vector representing the center of the ellipse
   C   - 2x2 cov matrix
   d   - [optional] Number of std to create the ellipse to (2 is default)

 OUTPUTS
   crow    - the row location of the center of the ellipse
   ccol    - the column location of the center of the ellipse
   ra      - semi-major axis length (in pixels) of the ellipse
   rb      - semi-minor axis length (in pixels) of the ellipse
   phi     - rotation angle (in radians) of the semimajor axis from the x-axis

 DATESTAMP
   29-Sep-2005  2:00pm

 See also PLOT_ELLIPSE, PLOT_GAUSSELLIPSES, MASK_ELLIPSE

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Wed 03-May-2006 23:48:50 by m2html © 2003