How to differentiate a simulated camera function?
16 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Ali Haktan
el 7 de Nov. de 2025 a las 14:41
Respondida: William Rose
el 8 de Nov. de 2025 a las 3:27
I am interested in autonomous driving and computer vision. I want to simulate a moving and
rotating camera. I want to have fixed 3-D points as inputs to the camera. I want to calculate the
derivatives of their images wrt camera position and orientation using automatic differentiation.
How can I do that?
0 comentarios
Respuestas (1)
William Rose
hace alrededor de 1 hora
You state "I want to have fixed 3-D points as inputs to the camera. I want to calculate the derivatives of their images wrt camera position and orientation using automatic differentiation."
Step 1 is to identify the 2D image coordinates of the fixed 3D points, on each image. That is an image recognition problem. The solution depends on the nature of the 3D points you are tracking. If you need assistance with this step, provide more information about the points and how they can be recognized in each image. Include some sample images, please.
If you have solved step 1, then you have the image coordinates of each 3D point on each image frame. If you are tracking one 3D point, then let us call its image coordinates u(k), v(k), which are the row and column pixel indices of the 3D point in frame k.
I assume that you also know the position of the camera at each frame: x(k), y(k), z(k). I will assume the camera rotates about a known axis. Then the camera orientation is specified by a single angle, theta. I assume you know theta at each frame: theta(k).
Then you can compute the derivative of image position with respect to camera position:
You can compute derivatives
the same way.
The same approach applies to derivatives with respect to camera orientation. If the rotation rate is constant, rr degrees (or radians) per frame, then the derivative of image position with respect to rotation is
0 comentarios
Ver también
Categorías
Más información sobre Computer Vision Toolbox en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!