comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » finding the center of gravity of an irregularly shaped roi within a 2d array
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
finding the center of gravity of an irregularly shaped roi within a 2d array [message #81260] Mon, 03 September 2012 06:30
ian.j.ashpole is currently offline  ian.j.ashpole
Messages: 5
Registered: September 2012
Junior Member
Hi all,

I have an array (e.g. fltarr[1133,751]) with a range of different flag values, and i want to find the center of gravity of irregularly shaped regions of interest within this array that consist of units sharing the same value. Units which make up a roi will all be connected.

e.g. i=where(array eq 1,ict)
Find center of gravity of i.

I want the result to be a location that makes sense within the parent array.

Is anybody able to help?

Thanks,
Ian
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Cost of student version of IDL
Next Topic: Re: IDL hangs on futex_wait_private

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 11:45:10 PDT 2025

Total time taken to generate the page: 0.00945 seconds