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

Segmentation fault in Compare::runDijkstra #9

Open
anmoineau opened this issue May 25, 2022 · 0 comments
Open

Segmentation fault in Compare::runDijkstra #9

anmoineau opened this issue May 25, 2022 · 0 comments

Comments

@anmoineau
Copy link

anmoineau commented May 25, 2022

Hello,

I tried running your test and I get a segmentation fault at line 89 of Compare.cpp : resize(dist, dist, Size(400, 400));

I don't know if it can be related but in the for loop just above, the one filling dist, There are several warning about uncompatible types.
The line : dist.at<Vec3b>(j,i)={255-0.6*shortest_2d[i][j], 200-0.6*shortest_2d[i][j], 200-0.6*shortest_2d[i][j]};
There are doubles and ints being forced into unsigned char.

Edit : I'm using OpenCV 4.5.5.

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

1 participant