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

Home » Public Forums » archive » Re: adding subset image into larger one
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: adding subset image into larger one [message #70169 is a reply to message #70168] Tue, 23 March 2010 18:01 Go to previous messageGo to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On Mar 23, 9:53 pm, Suguru Amakubo <sfa2...@googlemail.com> wrote:
> I am under the impression that
>
> new_image[tr_point[0,a]:tr_point[0,a] $
> +L-1,tr_point[1,a]:tr_point[1,a]+L-1] += temp_image
>
> will define the portion of new_image as temp_image (please tell me if
> I am making a critical mistake) :)

Yes, it is a critical mistake. You are not seeing the difference
between the operators (=) and (+=). As Jeremy said,

a+=b

means*

a=a+b

Which seems to be what you want.

(*) The two expressions do not mean the same when evaluating a has
side effects, which is not the case here.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Calculating the Exponential using IDL
Next Topic: Detecting whether a user-defined System Variable is in use

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

Current Time: Wed Oct 08 17:43:32 PDT 2025

Total time taken to generate the page: 0.00376 seconds