[英]How to augument an image using homograph matrix in matlab
My problem is like this : I have an image of the checker board . 我的问题是这样的:我有一个棋盘的图像。 Using ginput,i calculated the camera coordinates.I have the world coordinates given.So,from image's world coordinates and camera coordinates , i calculated the homography matrix .
使用ginput,我计算了相机坐标。我得到了世界坐标。因此,从图像的世界坐标和相机坐标,我计算出了单应矩阵。 Now i would like to insert a new image into the image of checker board using the calculated homography.
现在,我想使用计算出的单应性将新图像插入棋盘格图像。 The image shouldn't look like its inserted.
图片看起来不应该像它插入的一样。
Can someone help me on this ? 有人可以帮我吗? I am doing this in Matlab.
我正在Matlab中执行此操作。
Assuming we have rotation (R) and translation (t) matrices, following code segment can be used to transform a set of coordinates (assume x,y,z coordinates are stored in data). 假设我们有旋转(R)和平移(t)矩阵,则可以使用以下代码段转换一组坐标(假设x,y,z坐标存储在数据中)。
data = R * data;
data = [data(1,:) + t(1); data(2,:) + t(2); data(3,:) + t(3)];
Please provide us more details about your code and inputs if this is not clear. 如果不清楚,请向我们提供有关您的代码和输入的更多详细信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.