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

Running the example, Assertion pops up #3

Closed
STDwang opened this issue Sep 20, 2022 · 2 comments
Closed

Running the example, Assertion pops up #3

STDwang opened this issue Sep 20, 2022 · 2 comments

Comments

@STDwang
Copy link

STDwang commented Sep 20, 2022

When I compile and execute: ./dctdenoising 15 ../noisy.tiff denoised.png
I get an error :Image.hpp:76: const float& imgutils::Image::val(int, int, int) const: Assertion `0 < = col && col < columns_' failed

I tried to debug to find the cause, but didn't find anything obviously wrong
Ask if you have encountered it too

@gfacciol
Copy link
Owner

Hi! I can't reproduce the error. What compiler are you using?

@STDwang
Copy link
Author

STDwang commented Sep 21, 2022

I compiled with msvc under windows, and also configured the environment to compile under Linux, but I encountered the error of Image row-column boundary check.

But when I modify both assert(0 <= col && col < columns) to assert(0 <= col && col <= columns_), the project runs successfully, I don't know if you have encountered this situation

@STDwang STDwang closed this as completed Sep 21, 2022
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