【问题标题】:Perspective projection of a 3D model to a 2D plane3D 模型到 2D 平面的透视投影
【发布时间】: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为单位,如何获取?

其次,我真的不知道 pxpy 变量代表什么我得到了一些关于我正在处理的数据的信息,再见了 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]

pxpy 是否指代其中的任何一个?

【问题讨论】:

    标签: matlab


    【解决方案1】:

    px 和 py 是主点的坐标。在将成为图像中心的理想相机上,因此您可以使用 width/2, height/2 作为开始。对于实际值,您应该使用校准算法。

    f 应该以像素为单位。

    【讨论】:

      猜你喜欢
      • 2017-10-06
      • 2018-05-03
      • 2013-11-09
      • 1970-01-01
      • 2012-08-17
      • 1970-01-01
      • 2023-03-08
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多