【发布时间】:2011-07-04 00:29:28
【问题描述】:
我正在尝试将 3D 模型投影到 2D 平面,我发现我应该使用投影方程 C*((R*X)+T) 来执行此操作。 C,也就是相机标定矩阵,计算如下:
C =[f 0 px;
0 f py;
0 0 1];
首先,我想问一下相机标定矩阵中使用的焦距f。我应该以像素或毫米为单位使用它吗?如果以mm为单位,如何获取?
其次,我真的不知道 px 和 py 变量代表什么我得到了一些关于我正在处理的数据的信息,再见了 MATLAB 中的 exifread 函数,这些是我得到的信息:
Sharpness: 0
Contrast: 0
SceneCaptureType: 0
FocalLengthIn35mmFilm: 27
DigitalZoomRatio: 1
WhiteBalance: 0
ExposureMode: 0
SceneType: 1
FileSource: 3
SensingMethod: 2
PixelYDimension: 3000
PixelXDimension: 4000
ColorSpace: 1
FlashpixVersion: '0100'
FocalLength: 4.9000
Flash: 1
LightSource: 0
MeteringMode: 4
MaxApertureValue: 3.6150
ExposureBiasValue: 0
ApertureValue: 3.6150
ShutterSpeedValue: 2.3220
CompressedBitsPerPixel: 2.8149
ComponentsConfiguration: [1 2 3 0]
DateTimeDigitized: '2011:06:26 16:55:08'
DateTimeOriginal: '2011:06:26 16:55:08'
ExifVersion: '0221'
ISOSpeedRatings: 100
ExposureProgram: 2
FNumber: 3.5000
ExposureTime: 0.2000
Copyright: 'Copyright 2010'
YCbCrPositioning: 2
DateTime: '2011:06:26 16:55:08'
Software: ' 0.8913'
ResolutionUnit: 2
YResolution: 96
XResolution: 96
Orientation: 1
Model: 'SAMSUNG ES30/VLUU ES30'
Make: 'SAMSUNG'
Thumbnail: [1x1 struct]
px 和 py 是否指代其中的任何一个?
【问题讨论】:
标签: matlab