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

Home » Public Forums » archive » IDL ROI Objects
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: IDL ROI Objects [message #90102 is a reply to message #90101] Tue, 27 January 2015 11:00 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

>
> David B writes:
>
>> My question is:
>>
>> Does this seem a reasonable solution? Or am I being very stupid? I can understand what the ROI is doing, but a little unsure exactly what the issue is?
>
> The ROI code has a left-bottom bias. That is, it treats the lower-left
> corner of a pixel as the [0,0] location of the pixel. This is sort of
> standard IDL behavior. But, you don't have to add *anything* to the
> roibox in your code. All you really have to do is make sure the code
> uses the center of the pixel for doing its calculations. You do this by
> making the PIXEL_CENTER=[0.5, 0.5].
>
> Here is slightly better code that will allow you to see what is
> happening a bit easier.
>
> http://www.idlcoyote.com/misc/box_test.pro
>

Whoops! I was wrong about that. (I shouldn't use main-level programs for
testing purposes. Something I know well, yet often seem to ignore!)
Clearly, something screwy is going on here. Someone else will have to
explain it to us. :-)

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[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
Read Message
Read Message
Previous Topic: Krig2d from point to image
Next Topic: Re: Why did IDL just start crashing

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

Current Time: Wed Oct 08 16:00:09 PDT 2025

Total time taken to generate the page: 0.00262 seconds