Hi all, I need some help. How can i load a bmp file and trasform it into a matrix of floating point elements? I have read about the internal structure of a bmp file: should I create a struct with that specification? And then just using fread and create the matrix m*n with m and n read from bmp info header?

what are you trying to do?? If you just read the bytes from the file you don't need floating point matrix but unsigned char matrix as it will consume a whole lot less memory and more accurate.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.