When I set the params as follows:
init_params.camera_resolution = RESOLUTION_HD1080;
init_params.depth_mode = DEPTH_MODE_PERFORMANCE;
init_params.coordinate_units = UNIT_METER;
And I use these codes to save depth image:
strdepth ="../data/depth/depth"+std::to_string(i)+".png";
saveDepth(zed, str_depth);
I choose the format as DEPTH_FORMAT_PNG. The code run successful, but the depth image has saved is in error like this
I can't open this png picture!!
When I change the params to init_params.camera_resolution = RESOLUTION_VGA.
It shows correct.
If you know how to fix this problem, tell me please!
Thanks!
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment otherwise it will be automatically closed in 5 days
When I set the params as follows: init_params.camera_resolution = RESOLUTION_HD1080; init_params.depth_mode = DEPTH_MODE_PERFORMANCE; init_params.coordinate_units = UNIT_METER;
And I use these codes to save depth image: strdepth ="../data/depth/depth"+std::to_string(i)+".png"; saveDepth(zed, str_depth);
I choose the format as DEPTH_FORMAT_PNG. The code run successful, but the depth image has saved is in error like this
I can't open this png picture!!
When I change the params to init_params.camera_resolution = RESOLUTION_VGA.
It shows correct.
If you know how to fix this problem, tell me please!
Thanks!