|
|
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
|
|