Skip to content

Commit

Permalink
Fix Save 16-bits Raw Depth Image
Browse files Browse the repository at this point in the history
  • Loading branch information
UnaNancyOwen committed Jul 5, 2018
1 parent 4a94eac commit cf1a3f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rs_bag2image/realsense.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ inline void RealSense::drawDepth()
}

// Create cv::Mat form Depth Frame
depth_mat = cv::Mat( depth_height, depth_width, CV_16SC1, const_cast<void*>( depth_frame.get_data() ) ).clone();
depth_mat = cv::Mat( depth_height, depth_width, CV_16UC1, const_cast<void*>( depth_frame.get_data() ) ).clone();
}

// Draw Infrared
Expand Down

0 comments on commit cf1a3f7

Please sign in to comment.