Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

imread not reading in BMP

Hello all,

I'm trying to read in a .bmp file using the following code:

cv::Mat image1 = cv::imread("SmallDog.bmp", CV_LOAD_IMAGE_COLOR);

And it is failing everytime. I can read in .jpg files just fine, but I need to load in a bmp file, as the noise library and texture generator I have writes to .bmp files and I plan to stitch generated bmp textures together. I can't get past this though -_- Any suggestions you may have are greatly appreciated

And yes, the directory location in Visual Studio is fine. I tested it with a few different file formats, and .bmp is the only one giving me issues (of course the one I need haha)