2D Color Spaces and Output Formats

Zivid cameras can output colors as part of the 3D data or separately as a 2D image. Different camera models have different resolutions for capturing 2D images. The resolutions are shown below:

Camera

Megapixels (MP)

Resolution

Zivid 2+

5

2448 x 2048

Zivid 2

2.3

1944 x 1200

Color spaces

Color spaces define how color values in an image are interpreted and represented. The color space of an image will affect both how the image looks to human eyes, and how a device will interpret and display the image. Zivid SDK supports two color spaces for 2D data:

  • sRGB:
    • Ensures consistent color reproduction across devices such as monitors and printers.

    • Default for most consumer electronics and the internet.

    • Suitable for machine learning tasks like image classification and object detection as pre-trained models are trained on sRGB images.

    • Includes gamma correction (2.2), making intensity values non-linear.

  • Linear RGB:
    • No gamma correction; intensity values are directly proportional to light intensity.

    • Suitable for precise color manipulation and physical modeling.

    • Common in traditional image processing and computer vision.

The main difference is how intensity values are encoded. Choose based on your application needs:

  • sRGB: For ML models, displaying and interchanging images.

  • Linear RGB: For traditional image processing.

Zivid Studio represents colors in sRGB, but you can decide which color space to save the data as.

Note

Zivid Studio displays colors in sRGB. The histogram and the RGB color channel values for a given pixel are displayed in linear color space.

Below you can see the same image stored as sRGB and linear RGB. Monitors expect sRGB and will apply inverse gamma correction, making linear RGB images appear darker. This will make linear RGB images look darker when displayed on a monitor than they truly are. We recommend viewing 2D data in sRGB for manual evaluation.

fig_srgb_mode

fig_linear_rgb_mode

Color represented in sRGB space.

Color represented in linear RGB space.

2D color output formats

From Zivid Studio, you can save the color image (FileSave Color Image) in the following formats:

Zivid studio export options