{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

elec_ellipse_fit_optim

# elec_ellipse_fit_optim - ellipse equation of ellipsoid with...

This preview shows page 1. Sign up to view the full content.

function [f] = elec_ellipse_fit_optim(r, X, Y, Z, xo, yo, zo) % elec_ellipse_fit_optim - Optimization for elec_ellipse_fit.m % % Called from elec_ellipse_fit.m % % \$Revision: 1.1 \$ \$Date: 2009/04/28 22:13:54 \$ % Licence: GNU GPL, no implied or express warranties % History: 02/2002, Darren.Weber_at_radiology.ucsf.edu % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % r is a 3x1 vector of radius values for each x,y,z axis component of
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: % ellipse % % equation of ellipsoid with center (xo,yo,zo) and radius for each axis (x,y,z) = (a,b,c): % (( x - xo )^2 / a^2) + (( y - yo )^2 / b^2) + (( z - zo )^2 / c^2) = 1 % % This function below creates a scalar value to % return to the fminsearch function in elec_ellipse_fit. E = ( (X-xo).^2 )/r(1).^2 + ((Y-yo).^2)/r(2).^2 + ((Z-zo).^2)/r(3).^2 - 1; f = sum( E .* E ); % sum of squares returned return...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online