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

Home » Public Forums » archive » Re: IDL5.5 XROI problem...
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
Re: IDL5.5 XROI problem... [message #30249] Fri, 12 April 2002 16:02
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
Hi Qi,

I have never used XROI but I just tried your test program with an 8 bit .png
file and it worked fine, returning multiple structures in Stat1 as well as
Geo1.

IDL> test1
{ 15609.0 134.500 244.500 0.000000 500.000}
{ 12032.0 110.000 91.0000 0.000000 444.000}
{ 15860 0.000000 255.000 166.542 72.6517}
{ 12255 0.000000 255.000 186.480 62.4564}

So either it is something specific to NT4 SP6 or it might be your data?

-Rick



"Qi Peng" <qi_p@hotmail.com> wrote in message
news:1a803a60.0204111838.2c513909@posting.google.com...
> Hi,
>
> My name is Qi(Chee), This is my first time posting here. I have a very
> strange problem when I use IDL XROI program. I wrote a short program
> as follows:
>
> pro test1
> image =READ_DICOM('E:\EllingtonK\46.dcm');whatever image
> XROI, image, $
> r,g,b,REGIONS_IN=region1,$
> REGIONS_OUT=region2, ROI_SELECT_COLOR=roi_select_color,$
> ROI_COLOR=roi_color, REJECTED=rejected, ROI_GEOMETRY=Geo1, $
> STATISTICS=Stat1,/BLOCK
> OBJ_DESTROY, rejected
> print, Geo1
> print,Stat1
> end
>
> When I run the program it will stop when the XROI interface appears.
> Then I draw a ROI and close the program. Everything is fine. But if I
> draw more than one ROIs IDL will corrupt.
>
> The error message says: the instruction at &#8220;0x04fe5317&#8221;
> referenced memory at &#8220;0x01bff25c&#8221;. The memory could not be
> &#8220;read&#8221;.
>
> If I delete "STATISTICS=Stat1" and leave "ROI_GEOMETRY=Geo1" there and
> run the program again, it will be always OK. So it means that
> "STATISTICS" function of XROI can't take more than one ROI but
> ROI_GEOMETRY can. I do not know if it is the same case for anybody
> else, or it is because of my IDL. I am using IDL5.5 on Windows NT4.0
> Sp6.
>
> Thanks a lot for your help.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Rotation of 3D image in Object Graphics
Next Topic: Re: basic soubt with fltarr

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

Current Time: Wed Oct 08 17:42:53 PDT 2025

Total time taken to generate the page: 0.00512 seconds