Which unit of measurement are the cameraParameters?
7 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Dima Lisin
2015-2-17
编辑:Dima Lisin
2015-2-17
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 个评论
Dima Lisin
2015-2-18
Thank you. And thanks for asking the question. I helped me clear up a few things too.
Pattabhi Dyta
2020-5-9
After correction in normalized units, how do i obtain the corrected and un-normalized pixel units and then go on to real world units?
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Computer Vision Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!