Skip to content

Commit

Permalink
Ressurected black levels at approriate levels
Browse files Browse the repository at this point in the history
  • Loading branch information
treideme committed Sep 12, 2023
1 parent e7210da commit f21ff4c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ ros2 run image_view image_view --ros-args --remap /image:=/image_raw
| ```wbBlue``` | White balance for blue component | ```1.0``` | :heavy_check_mark: |
| ```wbGreen``` | White balance for green component | ```1.0``` | :heavy_check_mark: |
| ```wbRed``` | White balance for red component | ```1.0``` | :heavy_check_mark: |
| ```blackBlue``` | Black level for blue pixels in Bayer array | ```4200``` | :heavy_check_mark: |
| ```blackGB``` | Black level for green-blue pixels in Bayer array | ```4200``` | :heavy_check_mark: |
| ```blackGR``` | Black level for green-red pixels in Bayer array | ```4200``` | :heavy_check_mark: |
| ```blackRed``` | Black level for red pixels in Bayer array | ```4200``` | :heavy_check_mark: |

| **Color Correction Controls** | | | |
| ```CCMColorProfile``` | Color correction profile preset | ```IndoorWarmLightCurtainOpen``` | :x: |
| **GigE Vision Stream Parameters** | | | |
Expand Down
5 changes: 5 additions & 0 deletions include/bottlenose_parameters.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ const parameter_t bottlenose_parameters[] = {
{"CCMColorProfile", rclcpp::ParameterValue("IndoorWarmLightCurtainOpen")},
/* Reception timeout */
{"Timeout", rclcpp::ParameterValue(5000)},
/* Black level controls */
{"blackBlue", rclcpp::ParameterValue(4200)},
{"blackGB", rclcpp::ParameterValue(4200)},
{"blackGR", rclcpp::ParameterValue(4200)},
{"blackRed", rclcpp::ParameterValue(4200)},

// /* Lens and extrinsic parameters -> not used FIXME: figure out ROS2 calibration files */
// {"Rectification", rclcpp::ParameterValue(false)},
Expand Down
6 changes: 5 additions & 1 deletion src/bottlenose_camera_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,11 @@ bool CameraDriver::update_runtime_parameters() {
for(auto param : {"dgainBlue",
"dgainGB",
"dgainGR",
"dgainRed"}) {
"dgainRed",
"blackBlue",
"blackGB",
"blackGR",
"blackRed"}) {
PvGenInteger *intval = static_cast<PvGenInteger *>( m_device->GetParameters()->Get(param));
int64_t val = get_parameter(param).as_int();
try {
Expand Down

0 comments on commit f21ff4c

Please sign in to comment.