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 #90101 is a reply to message #90100] Tue, 27 January 2015 10:53 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
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

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 11:48:01 PDT 2025

Total time taken to generate the page: 0.00270 seconds