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

Home » Public Forums » archive » drawing a ROI on a zoomed image
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
drawing a ROI on a zoomed image [message #50088] Thu, 31 August 2006 05:15
jesscobrien is currently offline  jesscobrien
Messages: 6
Registered: August 2006
Junior Member
Hi,

I regularily use XROI to define a region on an image, which I later use
to mask it, as follows
;;;;;;;;;
image_scl = BYTSCL(image)
XROI, image_scl, REGIONS_OUT = ROIout, $
TITLE=title, $
ROI_GEOMETRY = regGeom, $
STATISTICS = regStats, $
/BLOCK

maskResult = ROIout -> ComputeMask(DIMENSIONS = dims)
mask = (maskResult GT 0)
masked_image = image * mask
;;;;;;;

As the image I wish to mask is quite small, is it possible to define
the ROI on a enlarged image using rebin, and then shrink the ROI
afterwards before applying to the image. Or is it easier to just apply
it to the enlarged image and then shrink the masked image back to the
original size.

Also, I often use the same colour table, XROI doesn't use the loaded
colour table. Is it possible to adapt XROI such that the colour table
can be set? Going into Edit->Colour Table each time, can be tiresome
when defining a new region on each plane of a cube.

Thanks,
Jess
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Read Zipped files
Next Topic: Re: drawing a ROI on a zoomed image

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

Current Time: Sat Oct 11 03:51:33 PDT 2025

Total time taken to generate the page: 2.16143 seconds