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

Home » Public Forums » archive » Fractional Pixels Origin?
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: Fractional Pixels Origin? [message #47632 is a reply to message #47583] Fri, 17 February 2006 07:40 Go to previous messageGo to previous message
CJCrockett is currently offline  CJCrockett
Messages: 3
Registered: February 2006
Junior Member
Okay, may be this bad form, but I'm going to respond to my own
question. :-)

I tried a very simple test:
a = fltarr(100,100)
a[49:51,49:51] = 1.
cntrd,a,50,50,xcen,ycen,1.5

print,xcen,ycen
50.0000 50.0000

So, I made a 3x3 box centered on [50,50]. The centroid algorithm
reports that the centroid is located at 50.000,50.000. This tells me
that CNTRD sets the pixel origin at the center of the pixel. Does this
seem like a reasonable test?

Regards,
Christopher Crockett
University of Maryland
[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
Previous Topic: Re: Processing getting slower and slower?
Next Topic: how to get scale info from a transform matrix?

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

Current Time: Sat Oct 11 19:15:07 PDT 2025

Total time taken to generate the page: 0.99362 seconds