ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
The code says that format is unsupported:
...
else
{
/* Unsupported are:
* - Mono10
* - Mono10p
* - Mono12
* - Mono12p
* - BayerGR10
...
You could open an issue at https://github.com/magazino/pylon_camera/issues
It may not be very difficult to add support for 12 bit images yourself. There would probably need to be a new grab method in include/pylon_camera/internal/impl/pylon_camera_base.hpp alongside the 8-bit grabs() that are there now:
bool PylonCameraImpl<CameraTrait>::grab(std::vector<uint8_t>& image)
The Basler Pylon examples may have some code that grabs 12-bit images.
12 bit images are usually re-encoded into 16 bit images- image_encodings.h lists rgb16, bgr16, and mono16 and others but no 12 bit types.
There may be issues with 16 bit image handling in image processing nodes and image viewers (like image_proc and rqt_image_view).
2 | No.2 Revision |
The code says that format is unsupported:
...
else
{
/* Unsupported are:
* - Mono10
* - Mono10p
* - Mono12
* - Mono12p
* - BayerGR10
...
You could open an issue at https://github.com/magazino/pylon_camera/issues
It may not be very difficult to add support for 12 bit images yourself. There would probably need to be a new grab method in include/pylon_camera/internal/impl/pylon_camera_base.hpp alongside the 8-bit grabs() that are there now:
bool PylonCameraImpl<CameraTrait>::grab(std::vector<uint8_t>& image)
The Basler Pylon SDK examples may have some code that grabs 12-bit images.
12 bit images are usually re-encoded into 16 bit images- image_encodings.h lists rgb16, bgr16, and mono16 and others but no 12 bit types.
There may be issues with 16 bit image handling in image processing nodes and image viewers (like image_proc and rqt_image_view).
3 | No.3 Revision |
The code says that format is unsupported:
...
else
{
/* Unsupported are:
* - Mono10
* - Mono10p
* - Mono12
* - Mono12p
* - BayerGR10
...
You could open There is an issue at https://github.com/magazino/pylon_camera/issuesabout it https://github.com/magazino/pylon_camera/issues/17 .
It may not be very difficult to add support for 12 bit images yourself. There would probably need to be a new grab method in include/pylon_camera/internal/impl/pylon_camera_base.hpp alongside the 8-bit grabs() that are there now:
bool PylonCameraImpl<CameraTrait>::grab(std::vector<uint8_t>& image)
The Basler Pylon SDK examples may have some code that grabs 12-bit images.
12 bit images are usually re-encoded into 16 bit images- image_encodings.h lists rgb16, bgr16, and mono16 and others but no 12 bit types.
There may be issues with 16 bit image handling in image processing nodes and image viewers (like image_proc and rqt_image_view).
4 | No.4 Revision |
The code says that format is unsupported:
...
else
{
/* Unsupported are:
* - Mono10
* - Mono10p
* - Mono12
* - Mono12p
* - BayerGR10
...
There is an issue about it https://github.com/magazino/pylon_camera/issues/17 .
It may not be very difficult to add support for 12 bit images yourself. There would probably need to be a new grab method in include/pylon_camera/internal/impl/pylon_camera_base.hpp alongside the 8-bit grabs() that are there now:
bool PylonCameraImpl<CameraTrait>::grab(std::vector<uint8_t>& image)
The Basler Pylon SDK examples may have some code that grabs 12-bit images.
12 bit images are usually re-encoded into 16 bit images- image_encodings.h lists rgb16, bgr16, and mono16 and others but no 12 bit types.
There may be issues with 16 bit image handling in image processing nodes and image viewers (like image_proc and rqt_image_view).
https://github.com/lucasw/image_manip/blob/master/image_manip/src/convert.cpp is an image format conversion nodelet that wraps opencv convertTo and cvtColor and is possibly useful here.