Re: CSMI of a region [message #41467] |
Thu, 28 October 2004 01:00 |
Karsten Rodenacker
Messages: 98 Registered: July 1997
|
Member |
|
|
On 27 Oct 2004 18:32:27 -0700, Pravesh <praveshsubramanian@yahoo.com>
wrote:
> Hello Friends:
> Do we have code written in IDL for Cross sectional Moment of Inertia
> of a given region??
Cross sectional moments ? Here is a short calculation of 2-d moments of
order ij
;+
; NAME:
; i_moment
;
function i_moment,im,i,j
dim=double(im)
sdim=size(dim)
x=dindgen(sdim(1))
y=dindgen(sdim(2))
return,total(dim*(x^i#y^j))
end
;-
Maybe that ...
> Can someone give any tips on that...
>
> thanks
> pravesh
Regards
--
Karsten Rodenacker
------------------------------------------------------------ -------- :-)
GSF - Forschungszentrum Institute of Biomathematics and Biometry
D-85758 Oberschleissheim Postfach 11 29
Karsten._R_odenacker@gsf.de | http://ibb.gsf.de/ | DEL _ for reply
http://ibb.gsf.de/homepage/karsten.rodenacker/
Tel: +49 89 31873401 | FAX: ..3369
|
|
|
Re: CSMI of a region [message #41471 is a reply to message #41467] |
Thu, 28 October 2004 00:32  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Pravesh writes:
> Do we have code written in IDL for Cross sectional Moment of Inertia
> of a given region??
>
> Can someone give any tips on that...
I don't know anything about this. I know how to fit
an ellipse to a blob. Maybe what you are looking for
are the axes of the ellipse.
http:/www.dfanning.com/ip_tips/fit_ellipse.html
Cheers,
David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http:/www.dfanning.com/
Phone: 970-221-0438, IDL Book Orders: 1-888-461-0155
|
|
|