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

Run error--Assertion failed #36

Open
zxdragon21 opened this issue May 28, 2021 · 1 comment
Open

Run error--Assertion failed #36

zxdragon21 opened this issue May 28, 2021 · 1 comment

Comments

@zxdragon21
Copy link

Dear Author.
Thank you for your great work.
I have complied the repo, however, when I run the exe file, an error occured that "Assertion failed: rgba_img.channels() >= 3, file F:\User\zhouxian\ImageStitching\NISwGSP-master\NISwGSP\Feature\ImageData.cpp, line 68".
I have no idea, could you please help me to fix it?

捕获

@Sad-Snow
Copy link

make sure that your pictures have no less than 3 channels, or convert the mat data to 3 or 4 channels format use opencv api before the line "assert(rgba_img.channels() >= 3);" in ImageData.cpp;

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