设置信息

用于在不进行捕获的情况下查询给定 CameraInfo 和 Settings 组合的捕获分辨率的实验性 API。位于 Zivid::Experimental::SettingsInfo 中,可能会在没有事先通知的情况下发生变化。

        %%{init: {'themeVariables': {'fontSize': '18px'}, 'flowchart': {'nodeSpacing': 30, 'rankSpacing': 35}}}%%
flowchart LR
  CameraInfo
  Settings
  Settings2D

  resolutionOp(["resolution()"])
  resolution2DOp(["resolution2D()"])

  Resolution

  CameraInfo -.-> resolutionOp --> Resolution
  Settings -.-> resolutionOp
  CameraInfo -.-> resolution2DOp --> Resolution
  Settings -.-> resolution2DOp
  Settings2D -.-> resolution2DOp

  classDef zividClass fill:#4A8FA4,stroke:#34323D,color:#FFFFFF
  classDef api fill:#91D2C8,stroke:#4A8FA4,color:#000000
  class CameraInfo,Settings,Settings2D,Resolution zividClass
  class resolutionOp,resolution2DOp api
    

resolution

返回相机在给定 CameraInfo 和 Settings 下将生成的 3D 捕获分辨率(高 × 宽)。

Resolution resolution(const CameraInfo &cameraInfo, const Settings &settings)

Returns the resolution of captured frames according to the provided camera information and settings.

Note that for a 2D+3D capture, the 2D color image and 3D point cloud may have different resolutions, depending on the pixel sampling and resampling settings used in the Settings and in the Settings::Color. This function returns the resolution of the 3D Point Cloud for the frame, in other words, it returns the resolution of the PointCloud returned from Frame::pointCloud(). See also Frame::frame2D().

If no acquisitions have been specified in the provided settings this function will throw an exception.

class SettingsInfo

Public Static Functions

static Zivid::NET::Resolution ^ Resolution (Zivid::NET::CameraInfo ^ cameraInfo, Zivid::NET::Settings ^ settings)

Returns the resolution of captured frames according to the provided camera information and settings.

Note that for a 2D+3D capture, the 2D color image and 3D point cloud may have different resolutions, depending on the pixel sampling and resampling settings used in the Settings and in the Settings::Color. This function returns the resolution of the 3D Point Cloud for the frame, in other words, it returns the resolution of the PointCloud returned from Frame::PointCloud(). See also Frame::Frame2D().

If no acquisitions have been specified in the provided settings this function will throw an exception.

目前 Python API 中未提供根据设置计算输出分辨率的功能。

resolution2D

返回给定 CameraInfo 与 Settings (3D 捕获中经子采样的 2D 通道)或 Settings2D (纯 2D 捕获)配对时的 2D 捕获分辨率。

Resolution resolution2D(const CameraInfo &cameraInfo, const Settings &settings)

Returns the resolution of a 2D frame according to the provided camera information and settings.

Note that for a 2D+3D capture, the 2D color image and 3D point cloud may have different resolutions, depending on the pixel sampling and resampling settings used in the Settings and in the Settings::Color. This function returns the resolution of the 2D Color Image for the 2D frame, in other words, it returns the resolution of the Image returned from Frame2D::imageRGBA(). See also Frame::frame2D().

If no color settings have been specified in the provided settings this function will throw an exception. If no 2D acquisitions have been specified in the provided settings this function will throw an exception.

Resolution resolution2D(const CameraInfo &cameraInfo, const Settings2D &settings)

Returns the resolution of a 2D frame according to the provided camera information and 2D settings.

If no acquisitions have been specified in the provided settings this function will throw an exception.

class SettingsInfo

Public Static Functions

static Zivid::NET::Resolution ^ Resolution2D (Zivid::NET::CameraInfo ^ cameraInfo, Zivid::NET::Settings ^ settings)

Returns the resolution of a 2D frame according to the provided camera information and settings.

Note that for a 2D+3D capture, the 2D color image and 3D point cloud may have different resolutions, depending on the pixel sampling and resampling settings used in the Settings and in the Settings::Color. This function returns the resolution of the 2D Color Image for the 2D frame, in other words, it returns the resolution of the ImageRGBA returned from Frame2D::ImageRGBA(). See also Frame::Frame2D().

If no color settings have been specified in the provided settings this function will throw an exception. If no 2D acquisitions have been specified in the provided settings this function will throw an exception.

static Zivid::NET::Resolution ^ Resolution2D (Zivid::NET::CameraInfo ^ cameraInfo, Zivid::NET::Settings2D ^ settings)

Returns the resolution of a 2D frame according to the provided camera information and 2D settings.

If no acquisitions have been specified in the provided settings this function will throw an exception.

目前 Python API 中未提供根据设置计算输出分辨率的功能。

另请参阅