I would like to write an algorithm in C++ that solves mazes. I would like to import an png or a bit image that contains only black and white pixels, my goal is to convert the image into a 2d array containing true and false values.
My main problem is importing of the image itself, something I have no idea how to do properly.
I'd be even glad to learn how to implement it by myself if this is a viable option. If the simplest solution is downloading a library, I'm happy to do so as well.
EDIT:
Ive yet to find a library which allows me to include a filename and somehow get a 2d array.
download openCV (aint sure it is the right library) as well as "LoadPNG" library