Device

DeviceInfo

struct DeviceInfo

Device information.

Public Members

std::int32_t index

The device index.

std::string name

The device name.

std::uint16_t type

The device type.

std::uint16_t pid

The product id.

std::uint16_t vid

The vendor id.

std::uint16_t chip_id

The chip id.

std::string fw_version

The firmware version.

std::string sn

The serial number.

Image

class Image

Subclassed by mynteyed::ImageColor, mynteyed::ImageDepth

OpenParams

struct OpenParams

Device open parameters.

Public Functions

OpenParams()

Constructor.

~OpenParams()

Destructor.

Public Members

std::int32_t dev_index

Device index.

std::int32_t framerate

Framerate, range [0,60], [0,30](STREAM_2560x720), default 10.

DeviceMode dev_mode

Device mode, default DEVICE_ALL.

  • DEVICE_COLOR: IMAGE_LEFT_COLOR y IMAGE_RIGHT_COLOR - IMAGE_DEPTH n

  • DEVICE_DEPTH: IMAGE_LEFT_COLOR n IMAGE_RIGHT_COLOR n IMAGE_DEPTH y

  • DEVICE_ALL: IMAGE_LEFT_COLOR y IMAGE_RIGHT_COLOR - IMAGE_DEPTH y

Could detect image type is enabled after opened through Camera::IsStreamDataEnabled().

Note: y: available, n: unavailable, -: depends on stream_mode

ColorMode color_mode

Color mode, default COLOR_RAW.

DepthMode depth_mode

Depth mode, default DEPTH_COLORFUL.

StreamMode stream_mode

Stream mode of color & depth, default STREAM_1280x720.

StreamFormat color_stream_format

Stream format of color, default STREAM_YUYV.

StreamFormat depth_stream_format

Stream format of depth, default STREAM_YUYV.

bool state_ae

Auto-exposure, default true.

bool state_awb

Auto-white balance, default true.

std::uint8_t ir_intensity

IR (Infrared), range [0,10], default 0.

bool ir_depth_only

IR Depth Only mode, default false.

Note: When frame rate less than 30fps, IR Depth Only will be not available.

float colour_depth_value

Colour depth image, default 5000.

[0, 16384]

StreamInfo

struct StreamInfo

Stream information.

Public Members

std::int32_t index

The stream index.

std::int32_t width

The stream width.

std::int32_t height

The stream height.

StreamFormat format

The stream format.