跳转到内容

Pixel Format (blaze)#

blaze 相机提供的 Pixel Format 功能允许您选择传输的组件数据的格式。

根据所选组件的不同,有不同的像素格式。例如,像素格式控制“范围”组件是作为深度图还是点云输出。

该功能的使用#

可用像素格式#

范围#

对于深度分量,可以使用以下像素格式:

  • Coord3D_C16
    A monochrome image using unsigned 16-bit integer values (little-endian). Darker areas represent objects close to the camera while lighter areas represent objects farther away.
    Note that objects outside of the camera's selected measurement range (at the front or the back of the ROI) will also appear black in the image.
    This is the recommended pixel format for working with depth maps.
  • Mono16
    A monochrome image using unsigned 16-bit integer values (little-endian). This is equivalent to the Coord3D_C16 pixel format. It should be used if your software can't handle Coord3D_C16.
  • Coord3D_ABC32f (point cloud)
    This is the point cloud representation using 32-bit floating point values (single plane). Each point in the cloud holds three values representing the XYZ coordinates of the surface from which the light pulse has been reflected in a Cartesian coordinate system (in mm) in little-endian format. The image ordering is line by line and pixel by pixel.
    The origin of the coordinate system is defined by the following positions:

    • x 和 y 坐标在传感器中心的像素处为 0(零)。
    • 在距离相机前方特定设备距离处,Z 坐标为 0(零)。有关这方面的更多信息,请参阅相机模型主题的“相机坐标系”部分。

    For pixels with unreliable distance data (i.e., a low confidence value) or pixels that represent objects in the areas outside the ROI, the coordinates are set to the value specified by the Scan3dInvalidDataValue parameter.
    For more information about the camera's coordinate system, see your camera model topic.

强度#

对于强度分量,可以使用以下像素格式:

  • Mono16
    A monochrome image using unsigned 16-bit integer values (little-endian).

置信度#

对于置信度分量,可以使用以下像素格式:

  • Confidence16
    A monochrome image using unsigned 16-bit integer values (little-endian). This is the recommended pixel format for working with confidence maps.
  • Mono16
    A monochrome image using unsigned 16-bit integer values (little-endian). This is equivalent to the Confidence16 pixel format. It should be used if your software can't handle Confidence16.

选择 Pixel Format#

为分量选择像素格式:

  1. Set the ComponentSelector parameter to the component for which you want to specify a pixel format.
  2. Set the ComponentEnable parameter to true if it isn't enabled already.
  3. Set the PixelFormat parameter to the desired pixel format for the component.
  4. 如果需要,请对其他组件重复执行上述步骤。