Friday, 3 May 2019

linux - How to view raw binary data as an image with given width and height?


Does there exist a program for Linux that can display raw binary data?


Each byte in my binary files represent a pixel, so it would be very useful if something like this exists where I could say


program_name --input=dat001.bin --width=200 --height=100

and it would display the pixels.


I wonder if gnuplot, can be used for this...?



Answer



Okay, gnuplot can do it.


http://gnuplot.sourceforge.net/demo_4.4/image.html


No comments:

Post a Comment

How can I VLOOKUP in multiple Excel documents?

I am trying to VLOOKUP reference data with around 400 seperate Excel files. Is it possible to do this in a quick way rather than doing it m...