Astra S 1280x1024 Depth resolution set

Astra SDK v0.5.0 fixes 1280x1024 (SXGA) support.

Note: Only Astra cameras shipped with 1.05+ firmware (shipped after October 2015) support SXGA.

To enable SXGA for depth, please use this code:

auto depthStream = reader.stream<astra::DepthStream>();
astra::ImageStreamMode depthMode;
depthMode.set_width(1280);
depthMode.set_height(1024);
depthMode.set_pixel_format(astra_pixel_formats::ASTRA_PIXEL_FORMAT_DEPTH_MM);
depthMode.set_fps(5);

depthStream.set_mode(depthMode);

For SXGA color:

auto colorStream = reader.stream<astra::ColorStream>();
astra::ImageStreamMode colorMode;
colorMode.set_width(1280);
colorMode.set_height(1024);
colorMode.set_pixel_format(astra_pixel_formats::ASTRA_PIXEL_FORMAT_RGB888);
colorMode.set_fps(30); //NOTE: for now you need to set 30 fps but it will only produce 5 fps.

colorStream.set_mode(colorMode);
1 Like