コンテンツにスキップ
STAGING SERVER
DEVELOPMENT SERVER

Component Selector (Stereo ace)#

コンポーネントセレクター機能を使用すると、カメラが送信するコンポーネントを選択できます。

Basler Stereo ace cameras generate a frame-based data stream. Each frame consists of one or multiple components. For each individual component, you can select a pixel format to control how the component's data is represented.

コンポーネント#

次のコンポーネントを使用できます。

  • Intensity: Left rectified camera image
  • IntensityCombined: Left rectified camera image stacked on right rectified camera image
  • Disparity: Disparity image in desired resolution, i.e., BslDepthQuality set to Full, High, Medium, or Low
  • Confidence: Confidence image
  • Error: Disparity error image

To simplify image processing, the Stereo ace camera rectifies all camera images based on the camera's calibration. This means that lens distortion is removed and the principal point is located exactly in the center of the image. After rectification, an object point is guaranteed to be projected onto the same pixel row in both left and right image. That point's pixel column in the right image is always lower than or equal to the same point's pixel column in the left image. The term disparity describes the difference between the pixel columns in the right and left images and expresses the depth or distance of the object point from the camera. The disparity image stores the disparity values of all pixels in the left camera image.

The larger the disparity, the closer the object point. Often, there are pixels for which the disparity can't be determined. This is the case for occlusions that appear on the left sides of objects because these areas can't be seen by the right camera. Pixels for which the disparity can't be determined are marked as invalid with the special disparity value of 0.

To compute disparity values, the stereo matching algorithm has to find corresponding object points in the left and right camera images. These are points that represent the same object point in the scene. For stereo matching, the Stereo ace camera uses SGM (Semi-Global Matching).

For each disparity image, an error image and a confidence image are provided as well. These images indicate uncertainty regarding the accuracy of each disparity value. They have the same resolution and the same frame rate as the disparity image. The error image contains the disparity error deps in pixels corresponding to the disparity value at the same image coordinates in the disparity image. The confidence image contains the corresponding confidence value c, specified by a value between 0 and 1. The confidence is defined as the probability of the true disparity value being within a range of three times the error around the disparity d measured, i.e., [d-3deps, d+3deps]. Thus, the disparity image with error and confidence values can be used in applications requiring probabilistic inference. The confidence and error values corresponding to an invalid disparity measurement will be 0.

Each image comes with a Component ID Value specified in the following table. This unique identifier value should be used to distinguish between the different component types.

Component Name Component ID
輝度 1
IntensityCombined 65281
Disparity 8
信頼性 6
エラー 65282

コンポーネントの選択#

ComponentSelectorパラメーターを使用して、それぞれのコンポーネントを有効にすることで、カメラが送信するコンポーネントを選択できます。

コンポーネントを有効にするには:

  1. [ComponentSelector]パラメーターを目的のコンポーネントに設定します。

    • [Intensity]:強度コンポーネントが選択されます。
    • IntensityCombined: The IntensityCombined component will be selected.
    • Disparity: The Disparity component will be selected.
    • [Confidence]:信頼性コンポーネントが選択されます。
    • Error: The Error component will be selected.
  2. ComponentEnableパラメーターをtrueに設定します。

  3. PixelFormatパラメーターをコンポーネントに必要なピクセルフォーマットに設定します。
  4. 必要に応じて、他のコンポーネントについても繰り返します。