Ask Your Question

Revision history [back]

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:

  1. 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.

  2. Reduce the includes to a bare minimum: you shouldn't need all of those opencv includes to just do an imread.