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

Home » Public Forums » archive » What could cause disappearing array?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: What could cause disappearing array? [message #69545 is a reply to message #69482] Thu, 21 January 2010 15:17 Go to previous messageGo to previous message
Karl[1] is currently offline  Karl[1]
Messages: 79
Registered: October 2005
Member
On Jan 21, 4:08 pm, Mark <mark.h...@gmail.com> wrote:
> On Jan 20, 9:42 pm, Robin Wilson <r.t.wil...@rmplc.co.uk> wrote:
> ...
>
>>    FOR win_size = 5, 8 DO BEGIN
>>      TRY_PLACING_REGION, WholeImage, edge_map, 8
>>    ENDFOR
>
> I'm curious about that code. As far as I can see, the loop index,
> win_size, is not used inside the loop, so this code has the effect of
> calling TRY_PLACING_REGION four times with the same arguments. Is that
> what you intended?

Good point, but not relevant.

What does ENVI_ENTER_DATA do with your segment_image parm?

Try checking the status of segment_image before and after the call to
ENVI_ENTER_DATA.

If ENVI_ENTER_DATA clobbers that parm somehow, then that would explain
why a single call to TRY_PLACING_REGION works, but more than one call
does not.

Perhaps you want:

FOR win_size = 5, 8 DO BEGIN
segment_image = lonarr(dims[2] + 1, dims[4] + 1)
TRY_PLACING_REGION, WholeImage, edge_map, win_size
ENDFOR

assuming that you want a fresh segment_image (zero filled) for each
iteration.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Calculate sensor response functions
Next Topic: IDL installation tip for Linux

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

Current Time: Wed Oct 08 17:34:37 PDT 2025

Total time taken to generate the page: 0.00411 seconds