Open tfoote opened 6 years ago
Thanks for reporting, I'll take a look into it.
@tfoote I can't see the issue here. In case you know, please shed some light.
I think that the underlying issue is that it does not have a channel type unsigned int defined https://github.com/ros-gbp/opencv3-release/blob/debian/kinetic/xenial/opencv3/modules/core/include/opencv2/core/traits.hpp
There appears to be an option OPENCV_TRAITS_ENABLE_DEPRECATED
to enable deprecated functionality to do most datatypes: https://github.com/ros-gbp/opencv3-release/blob/debian/kinetic/xenial/opencv3/modules/core/include/opencv2/core/traits.hpp#L115
This flag looks new. Perhaps we need to turn it back on for Kinetic. @vrabaud
Looks like there is no cv::Mat_
Issue here: https://github.com/opencv/opencv/issues/7599 Is it possible to change stereo_image_proc speckle removal to use signed 32bit integers instead?
Is there any update to this?
I am also experiencing this in ROS kinetic. The problem, as others have noted, is due to image_proc and stereo_image_proc packages using deprecated cv matrix types. However I did find a workaround.
Adding
#define OPENCV_TRAITS_ENABLE_DEPRECATED
to the top of extract_images.cpp, extract_stereo_images.cpp and process_stereo.cpp will allow bag_tools to build.
It's a little bit hacky but this might be an acceptable solution for ROS Kinetic. I don't know if this reliance on deprecated OpenCV types for image_proc stereo_image_proc is present in ROS Hydro and beyond.
@jonnydark Thanks!
Re: ros-infrastructure/rep#140 @vrabaud @mikaelarguedas FYI
http://build.ros.org/view/Kbin_uX64/job/Kbin_uX64__bag_tools__ubuntu_xenial_amd64__binary/25/console