Problem: I have printed some binary data from gdb which I'd like to inspect as an image. I am able to do this with gimp
if I parse the data as an RGBA raw image with width 251 and height 261. However, I'd like to use Wolfram to do this programatically.
I have tried
Import["/path/to/my/raw/image.bin", {"RawBitMap",
"Summary"}, ImageSize -> 251]
which almost works. The issue is that it parses as an RGB file (without an alpha channel), and so the image is totally corrupted.
Question: Is this possible in Wolfram?
BinaryReadList
. It's hard to be more specific without an example file. $\endgroup$