POV-Ray : Newsgroups : povray.advanced-users : Image coord of a projected disc center : Re: Image coord of a projected disc center Server Time
4 Oct 2024 17:08:20 EDT (-0400)
  Re: Image coord of a projected disc center  
From: Christian Froeschlin
Date: 23 Mar 2007 16:54:36
Message: <46044c9c$1@news.povray.org>
Matheus wrote:
> Hi everyone!
> Is it possible to know the pixel coordinate with sub-pixel precision of a
> projected disc (or any object) center (in image coord)?
> I'm trying to simulate camera calibration generating images with Pov-Ray and
> I need to recover this kind of information.

I assume you are rendering a calibration object to obtain test images
for an image processing algorithm. Have a look at section 3.3.1.1 in
the documentation, which should give you enough information to
calculate the values you need.

It would probably be useful to place the camera at <0,0,-1> and specify
"direction z", so that your image plane is the x-y plane. Then, all you 
need to do is to calculate the intersection point of the line from the
object center point to <0,0,-1> with the x-y-plane, and scale this to
the actual pixel values considering image size and aspect ratio.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.