1 | initial version |
This code ran just fine for me: no segfault. I'm not sure that means much though. Here's the two things I'd try next:
A different image file than eagle.jpg. I'd expect opencv to handle anything that might be invalid about an input file better than segfaulting, but who knows.
Reduce the includes to a bare minimum: you shouldn't need all of those opencv includes to just do an imread.