Which unit of measurement are the cameraParameters?
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Joep
el 17 de Feb. de 2015
Comentada: Pattabhi Dyta
el 9 de Mayo de 2020
I'm searching for the unit of measurement from the camera Parameters especially of the radial and tangential distortion.
The answer to my question is not mm / m, because I already try to change the change my squarsize and it does not influence the radial and tangential distortion at all. So morelikely it would be like degree or pixels. I thought it would be degrees but I don't see any lecture about it, to confirm my idea.
0 comentarios
Respuesta aceptada
Dima Lisin
el 17 de Feb. de 2015
Editada: Dima Lisin
el 17 de Feb. de 2015
Hi Joep,
The correct answer is that the distortion coefficients are dimensionless, and they do not depend on the checkerboard square size at all. In fact, none of the intrinsic camera parameters depend on the square size. The optical center (cx,cy) is in pixels. The focal lengths (fx,fy) are also in pixels. fx = f / px, where px is the pixel size in world units (e.g. mm) and f is the actual focal length of the lens, also in world units. So the world units cancel out, and fx and fy are in pixels.
Now let us look at the equations for the radial distortion:
Xdist = X(1 + k1 * r^2 + k2 * r^4 + k3 * r^6)
Ydist = Y(1 + k1 * r^2 + k2 * r^4 + k3 * r^6)
In these equations X and Y are normalized image coordinates with the origin is at the optical center. Let (i,j) be the row-column pixel coordinates. The normalized image coordinates are computed as follows (assuming that the skew is 0):
X = (j - cx) / fx
Y = (i - cy) / fy
Since all the values here are in pixels, (X,Y) end up being dimensionless. Thus r = sqrt(X^2 + Y^2) and the coefficients also have no units.
So, if you change the square size, the only thing that will change in cameraParameters are the extrinsics.
3 comentarios
Dima Lisin
el 18 de Feb. de 2015
Thank you. And thanks for asking the question. I helped me clear up a few things too.
Pattabhi Dyta
el 9 de Mayo de 2020
After correction in normalized units, how do i obtain the corrected and un-normalized pixel units and then go on to real world units?
Más respuestas (0)
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!