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

Home » Public Forums » archive » Re: is there a 3D equivalent of CONTOUR?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: is there a 3D equivalent of CONTOUR? [message #68246 is a reply to message #68240] Thu, 08 October 2009 02:11 Go to previous messageGo to previous message
dorthe is currently offline  dorthe
Messages: 12
Registered: April 2007
Junior Member
On Oct 7, 9:05 am, David Fanning <n...@dfanning.com> wrote:
> Dorthe Wildenschild writes:
>> I'm trying to use the ComputeGeometry function in 3 dimensions, but to
>> define my ROI, I need to outline (contour, or at least that's how I do
>> it 2D) my objects - and they're 3D. Any suggestions out there?
>
> ISOSURFACE?
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Coyote's Guide to IDL Programming (www.dfanning.com)
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

excellent, - but I can't get it to work.. not very good at working
with objects I'm afraid - I do it once every 3 years or so :-)

Here's what I do:

I use LABEL_REGION to separate all the objects in my image and then I
pick one in a loop structure, representing "t" below

ISOSURFACE, label_image,
t, Outverts, Outconn
; print, outverts
Roi=Obj_New('IDLanROI', Outverts, type=2)

Status = Roi-> ComputeGeometry(Area=area,Perimeter=perimeter,
Centroid=centroid)

t_perimeter(r)=perimeter
t_area(r-1)=area
t_x_center(r)=centroid[0]
t_y_center(r)=centroid[1]
blob_siz(r)=blob_size[1]

I get lots of values in Outverts, but area, perimeter etc. are all
zero?
Any ideas for the slightly incompetent...?

BTW, nice to see you're still very active on this site.
Dorthe
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: writing large 3D data file fails
Next Topic: Status reporting box

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

Current Time: Sat Oct 11 02:01:01 PDT 2025

Total time taken to generate the page: 0.08160 seconds