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

Home » Public Forums » archive » Re: shifting a mask over an image
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: shifting a mask over an image [message #82258 is a reply to message #82251] Mon, 26 November 2012 04:21 Go to previous messageGo to previous message
tom.grydeland is currently offline  tom.grydeland
Messages: 51
Registered: September 2012
Member
On Monday, November 26, 2012 12:13:49 PM UTC+1, haik...@gmail.com wrote:
> Hi,

[...]

> Has anyone an idea how I can shift in both directions?

The following works for me:

template = bytarr(8,8)
template[0:2,0:2] = 1
print, template
print, shift(template, 1, 2)

Does this work for you? If so, your problem lies elsewhere. You have not shown us how 'template' or 'shift_x' and 'shift_y' were generated.

--T
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: SVN Toolkit - IDL8.2.1 Linux not working
Next Topic: repeat vs. while

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

Current Time: Fri Oct 10 05:27:41 PDT 2025

Total time taken to generate the page: 0.07976 seconds