I have spent the last couple hours scouring the Internet for a solution to my problem, and while I have seen some “answers” on other forums, none of them suit my needs…
I have a binary file, which I am creating in Matlab using fwrite (although, if someone has a better way to generate a binary file in Matlab, I’m open to suggestions). Back to my problem – I have this binary file, and I want to convert it to a jpeg. Nevermind where the binary data comes from, I just want to generate a jpeg image of the binary data.
Is this even possible? – Like I said, lots of “solutions” out there to similar problems, but none match up to my needs.
I can write code in C++, if necessary, but for simplicity, I’d like to stay in Matlab.
Any help will be appreciated.
EDIT:
from binary to array:
Reshape to array according to image dimensions
Upon having the array of strings just use: