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 #82251] Mon, 26 November 2012 07:41 Go to previous message
haikoley is currently offline  haikoley
Messages: 5
Registered: November 2012
Junior Member
On Monday, November 26, 2012 12:13:49 PM UTC+1, haik...@gmail.com wrote:
> Hi,
>
>
>
> I'm trying to move a mask over an image using the shift function. But I'm not sure if I really understood the description in the IDL help.
>
>
>
> Let's say I have a 10x10 mask and a 100x100 image. In this case I have to create an array with the same size as my image. It is filles with 0 and my mask. Then I start moving the mask inside that array (in x direction and y direction). But every time I do it with both direction, there is an error message telling me that I have an incorrect number of arguments. It works fine for one dimension, though.
>
>
>
> Has anyone an idea how I can shift in both directions?
>
>
>
> Btw, my code looks like this:
>
>
>
> for i=0, n-1 do begin
>
> for j=0, n-1 do begin
>
> result=shift(template, shift_x[i], shift_y[j])
>
> cor=where(max(correlate(result, image))
>
> endfor
>
> endfor
>
>
>
>
>
> thanks,
>
> max

Yes, it does work now, thank you very much.
[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: Wed Oct 08 20:11:15 PDT 2025

Total time taken to generate the page: 0.00422 seconds