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

Home » Public Forums » archive » Image warping in IDL
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: Image warping in IDL [message #51539 is a reply to message #51400] Tue, 21 November 2006 09:10 Go to previous messageGo to previous message
JD Smith is currently offline  JD Smith
Messages: 850
Registered: December 1999
Senior Member
On Tue, 21 Nov 2006 10:18:02 +0100, Wox wrote:

> This is because I added a "boarder" of two pixels to the output image.
>
> interimg=MAKE_ARRAY(imgs[1]+4,imgs[2]+4,type=size(*img,/type ))
>
> I did this for the pixels that "fall-off". I just have to use < and >
> as in:
>
> off_x=0>(rebin(outpix[0,*],4,npix)+off_x)<(imgsinter[1]-1)
> off_y=0>(rebin(outpix[1,*],4,npix)+off_y)<(imgsinter[2]-1)
>
> After that, I cut off the 2 pixel boarder that accumulated all
> fall-off pixels. I thought this was the most efficient way. Otherwise
> I had to use if statements or something.

Interesting method. What I was specificially referring to is that you
have no "sign" term for dx or dy, so I'm not sure how you know which
quadrant relative to the target pixel your 4 output pixels occupy (UL,
UR, LL, LR). It seems you're always hitting a single quadrant. For the
final fsum eq 0. test for empty pix, a simple where(fsum eq 0.) should
suffice.

JD
[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
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Making movies
Next Topic: Re: Pair Counts in an Annulus, for large data sets

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

Current Time: Wed Oct 08 14:32:47 PDT 2025

Total time taken to generate the page: 0.00373 seconds