Skip to content

Commit

Permalink
kRawDepthColorSpace for depth image
Browse files Browse the repository at this point in the history
  • Loading branch information
kochigami committed Jun 9, 2016
1 parent 40abe40 commit d8ce964
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/converters/camera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ CameraConverter::CameraConverter( const std::string& name, const float& frequenc
camera_source_(camera_source),
resolution_(resolution),
// change in case of depth camera
colorspace_( (camera_source_!=AL::kDepthCamera)?AL::kRGBColorSpace:AL::kDepthColorSpace ),
colorspace_( (camera_source_!=AL::kDepthCamera)?AL::kRGBColorSpace:AL::kRawDepthColorSpace ),
msg_colorspace_( (camera_source_!=AL::kDepthCamera)?"rgb8":"16UC1" ),
cv_mat_type_( (camera_source_!=AL::kDepthCamera)?CV_8UC3:CV_16U ),
camera_info_( camera_info_definitions::getCameraInfo(camera_source, resolution) )
Expand Down
3 changes: 2 additions & 1 deletion src/tools/alvisiondefinitions.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ namespace AL
const int kXYZColorSpace = 19;
const int kInfraredColorSpace = 20;
const int kDistanceColorSpace = 21;

const int kRawDepthColorSpace = 23;

const int kCameraBrightnessID = 0;
const int kCameraContrastID = 1;
const int kCameraSaturationID = 2;
Expand Down

0 comments on commit d8ce964

Please sign in to comment.