Re: Subset Image [message #45457] |
Fri, 16 September 2005 10:29  |
Julio[1]
Messages: 52 Registered: May 2005
|
Member |
|
|
Hi,
I want to subset the image using ROIs. I can't use SUB_RECT because I
don't know the limits (columns, rows) of each subset (it is specified
by ROIs).
Thanks at any rate,
Julio
|
|
|
|
Re: Subset Image [message #45638 is a reply to message #45457] |
Fri, 16 September 2005 18:32  |
Jeff N.
Messages: 120 Registered: April 2005
|
Senior Member |
|
|
The 'subset via ROI' function in ENVI sets every pixel outside of the
ROI to zero right? There are actually lots of ways to do this with
IDL. The answer really depends on your ROI. If your ROI is
rectangular, you can do it with array subscripting. If your ROI is an
irregular shape, you would probably use the WHERE() function. Are you
planning to draw the ROI's with IDL too? If so, you might try XROI.
Jeff
Julio wrote:
> Hi,
>
> I want to subset the image using ROIs. I can't use SUB_RECT because I
> don't know the limits (columns, rows) of each subset (it is specified
> by ROIs).
> Thanks at any rate,
> Julio
|
|
|