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

Home » Public Forums » archive » Re: Filling a 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: Filling a contour [message #60674 is a reply to message #60673] Wed, 11 June 2008 18:02 Go to previous messageGo to previous message
Loren Anderson is currently offline  Loren Anderson
Messages: 22
Registered: August 2007
Junior Member
You could also create a ROI object and use the compute_mask function.

contour, image, Path_XY = path_xy ....
roi = Object_New('IDLANROI', path_xy)
mask = roi->Compute_Mask(dimensions = size(image, /Dim))
indices = where(mask EQ 255B)

There is a run_length keyword to compute_mask that you can use if you
don't want to create the entire mask.

-Loren
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: efficient comparing 1D and 3D arrays
Next Topic: Re: Best inverse of IDLanROI::ComputeMask

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

Current Time: Fri Oct 10 06:20:58 PDT 2025

Total time taken to generate the page: 0.56280 seconds