![]() am I doing things right or are there 'smarter' ways of getting an image out of this hex data? While ((array != ',')) counter++ Īfter this step, the data in uint8_t pixelValues should be a Bitarray of the Data in the File. ![]() Infile.rdbuf()->pubseekoff(0, std::ios_base::beg) Length = infile.rdbuf()->pubseekoff(0, std::ios_base::end) Infile.open(filename, std::ios_base::binary) Infile.exceptions ( std::ifstream::failbit ) So the first step I did was, to load the file and stream the data to a char array. I'm in this case sure, that this is RGB888 because I converted it. The Data I created looks something like this: 0xf3, 0x8d, 0x4c, 0xff, 0xf2, 0x8f, 0x4b, 0xff, 0xef. 400 * 600) of the data, that's why I made a sample data of a picture, where I exactly know which format the hex data has.) I got the following problem, that I got image files in (supposed to be RGB888) but I'm not sure if it realy is this kind of data.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |