Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
acfr
jai-ros
Commits
751171af
Commit
751171af
authored
Feb 12, 2021
by
Digifarm
Browse files
output is BGR (we may need to check this...)
parent
55a30819
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/jai_base_node.cpp
View file @
751171af
...
...
@@ -40,7 +40,7 @@
std
::
string
ros_image_format
(
uint32_t
const
pixel_type
)
{
if
(
pixel_type
&
J_GVSP_PIX_MONO
)
{
return
sensor_msgs
::
image_encodings
::
MONO8
;
}
if
(
pixel_type
&
J_GVSP_PIX_RGB
)
{
return
sensor_msgs
::
image_encodings
::
RGB
8
;
}
if
(
pixel_type
&
J_GVSP_PIX_RGB
)
{
return
sensor_msgs
::
image_encodings
::
BGR
8
;
}
throw
std
::
runtime_error
(
"neither mono or rgb bits set in jai image"
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment