look2motion
Convert "look-at" camera specification to matrices
[R,T]=LOOK2MOTION(POS, LOOK, UP) take postion POS, "look at"
vector LOOK and "up" vector UP and returns camera rotation R
and translation T.
[R,T] specifies the transformation from the inertial ref. frame to
the camera ref. frame.
See also VEC2MOTION().
povread
Reads POV-Ray output
[I,XI,YI,Z] = POVREAD(FILE) reads the files FILE.TXT (camera
parameters), FILE.PNG (rendered scene), FILE.DEPTH (Z buffer)
returns the radience image I, the pixel coordinates XI,YI and the
z-buffer Z. The convention is as such the 3D backprojection of the
pixels is given by (XI.*Z, YI.*Z, Z).
[I,XI,YI,Z,INTR] = POVREAD(FILE) returns the intrisic paramters
INTR as well. These are
- R camera rotation
- T camera translation
- angle full horizontal view angle [rad]
- focal focal length (always =1)
- aspect aspect ratio
- psx x size of pixels
- psy y size of pixels
- prx x pixel range
- pry y pixel range
vec2motion
Convert "look-at" camera specification to matrices
[R,T]=VEC2MOTION(POS, DIR, UP) take postion POS, "direction"
vector DIR and "up" vector UP and returns camera rotation R
and translation T.
[R,T] specifies the transformation from the inertial ref. frame to
the camera ref. frame.
See also LOOK2MOTION().