[Radiance-general] Perspective Projection: Camera Matrix

Volker Hilsenstein [email protected]
Fri, 01 Feb 2002 14:59:16 +0100


Hello everyone,

I am currently using Radiance to generate some test images
for computer vision algorithms.
It would be quite helpful to have a program that calculates
the  3x4 projection matrix (let's call it P) from Euclidian 3-space
to image pixel coordinates for a given set of Radiance view parameters.

That is,  for a given Point (X,Y,Z) in the Radiance scene
file I want to find P (depends on the view-parameters) so that
the pixel coordinates x,y of the point in the rendered image are given
by

                     X
          u          Y
          v  = P *   Z
          w          1


     x=u/w
     y=v/w.


It should not be very difficult to do this. But nevertheless
I'd  like to know whether somebody already did this before
I waste time on re-doing it.


Thanks,

Volker

--
Volker Hilsenstein                      phone: +49 6221 546542
Institute for Environmental Physics                     546628
University of Heidelberg
INF 229 Room 116
69120 Heidelberg
Germany                 [email protected]