Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pls has anyone run the grayscale image of the euroc dataset played by rosbag? #27

Closed
zwq-slamer opened this issue Sep 12, 2024 · 5 comments

Comments

@zwq-slamer
Copy link

No description provided.

@deepConnectionism
Copy link

can run

@zwq-slamer
Copy link
Author

can run

#13 Thank you very much for the proposal.
I am now running into some problems that should be the number of image channels, about openCV error, can you share the code you modified? Thank you very much for your help

@deepConnectionism
Copy link

@zwq-slamer #18 (comment)

@zwq-slamer
Copy link
Author

@zwq-slamer #18 (comment)

感谢!我注意到了您提供的修改方案,我已作了修改,但是好像并不work,
我运行了roslaunch vins_estimator euroc.launch 以及 播放了euroc的MH01.bag包

terminate called after throwing an instance of 'cv::Exception'
  what():  OpenCV(4.2.0) ../modules/imgproc/src/color.simd_helpers.hpp:92: error: (-2:Unspecified error) in function 'cv::impl::{anonymous}::CvtHelper<VScn, VDcn, VDepth, sizePolicy>::CvtHelper(cv::InputArray, cv::OutputArray, int) [with VScn = cv::impl::{anonymous}::Set<3, 4>; VDcn = cv::impl::{anonymous}::Set<1>; VDepth = cv::impl::{anonymous}::Set<0, 2, 5>; cv::impl::{anonymous}::SizePolicy sizePolicy = cv::impl::<unnamed>::NONE; cv::InputArray = const cv::_InputArray&; cv::OutputArray = const cv::_OutputArray&]'
> Invalid number of channels in input image:
>     'VScn::contains(scn)'
> where
>     'scn' is 1

[feature_tracker-1] process has died [pid 61273, exit code -6, cmd /home/zwq/LET-NET/assets/vins_mono/devel/lib/feature_tracker/feature_tracker __name:=feature_tracker __log:=/home/zwq/.ros/log/2fb5f034-7175-11ef-8096-55fc09344e93/feature_tracker-1.log].
log file: /home/zwq/.ros/log/2fb5f034-7175-11ef-8096-55fc09344e93/feature_tracker-1*.log

看起来应该就是图像通道数的问题,在源代码其他部分您是否还做了其他修改以适应灰度图的输入

@deepConnectionism
Copy link

@zwq-slamer You specify the COLOR space conversion code as COLOR. This means that your input should be in RGB format and your output should be in gray format.

The problem is that you create the input as a CV_8UC1) . You can solve the problem by creating it as a CV_8UC3 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants