什么是你,v图像坐标?

问题描述 投票:0回答:1

我在u,v image coordinates底部看到了here。我下载了数据,一个样本是[214.65 222.52 145.72 165.42 96.492 114.22 64.985 71.877 43.323 33.477 128.98 173.29 120.12 160.49 121.11 134.89 128. 98.462 175.26 177.23 177.23 151.63 178.22 130.95 177.23 98.462 212.68 175.26 214.65 118.15 215.63 80.738 208.74 68.923 249.11 173.29 242.22 122.09 237.29 86.646 234.34 48.246]

我做了搜索,但没有找到u,v image coordinates的解释以及如何转换为x-y坐标。它不是UV mapping,因为数据不在[0,1]之间。我可能错了。

欢迎任何评论。谢谢

image-processing graphics 3d coordinate-transformation
1个回答
0
投票

为了更加自信,我们可以在相应的彩色图像上使用Matlab / Octave或OpenCV绘制这些点,并查看它们的位置是否与标记的关节匹配。对于关节结构,我们可以看到相同的README file W, T0, T1, T2, T3, I0, I1, I2, I3, M0, M1, M2, M3, R0, R1, R2, R3, L0, L1, L2, L3.每个关节有2个坐标,所以42个数字的序列对应于序列中相应关节的u,v(X,Y)坐标。

我尝试使用以下代码在Matlab / Octave中直接绘制图像和2D点:

clc; clear;

im = imread('0001_color_composed.png');
data = csvread('0001_joint2D.txt');
x = zeros(length(data)/2,1);
y = x;

for i = 1: length(data)/2
    x(i) = data(2*i-1);
    y(i) = data(2*i);
end

imshow(im);
hold on;
plot(x, y, 'go');

和这些imageannotation。正如您在下面的结果图像中看到的所有u,v坐标对应于从图像的左上角开始计算的X和Y中的像素坐标,即u = X,v = Y(就像使用imshow()显示的图像一样,连续图的坐标系的原点设置为图像坐标框原点,即左上角。

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.