drawing a ROI on a zoomed image [message #50088] |
Thu, 31 August 2006 05:15 |
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
|
|
|