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

Home » Public Forums » archive » How to define resolution (not dimension!) for IDLanRoi->computeMask
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
How to define resolution (not dimension!) for IDLanRoi->computeMask [message #65057] Mon, 09 February 2009 06:04
justspam03 is currently offline  justspam03
Messages: 36
Registered: October 2003
Member
Hi all,

I'm stuck with the following:
I got a 2-dim image, say 256x256 pixels which spans (in real world
coordinates) the region from [1,1] to [5,5].
Plus I got ROIs defined on this image, say a rectangular ROI with x/y
coords [2,2], [2,4], [3,4], [3,2].

Now I'd like to have a mask for this ROI with the pixel dimensions of
the image.

roi = obj_new('IDLanRoi', .... real world ROI coordinates here )
mask = roi->computeMask( dimensions=[256,256], location=[1.,1.], ...
and now? )

Is there a way to specify the 'real world' size of the mask pixels
(i.e. 1 pixel = 1/64 cm)?

Cheers
Oliver
[Message index]
 
Read Message
Previous Topic: Has anyone worked with ARF files and brought them into IDL successfully?
Next Topic: Re: How to define resolution (not dimension!) for IDLanRoi->computeMask

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

Current Time: Sun Oct 12 11:11:10 PDT 2025

Total time taken to generate the page: 1.97644 seconds