Re: IDL: XROI and data saving [message #39069] |
Mon, 26 April 2004 07:15 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Francois Leduc writes:
> The command
>> xroi, image, statistics = S, /block
> allows to draw ROIs and to save statistics (count, min. max, mean, stdev)
> into a variable S.
>
> But how to save ROI original pixel values for a further use ? In order, for
> example, to be able to compute other statistics based on the histogram like
> entropy, kurtosis, etc ?
Use the REGIONS_OUT keyword to obtain a copy of the IDLanROI object
that XROI creates. Then you can manipulate the region data any way
you like. Here is an example:
http://www.dfanning.com/ip_tips/xroi.html
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|