mia-raw2image(1)

πŸ“¦
version 2.4.7 Β· 2 versions
, in debian bookworm, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– mia-raw2image(1) πŸ’–

okay bestie, welcome to the General Commands Manual glow-up edition β€” this is mia-raw2image, and she is literally here to take your raw data and turn it into a 2D image. no cap. πŸ¦‹


✨ NAME ✨

mia-raw2image β€” Convert raw data into a 2D image πŸ’…


🌸 SYNOPSIS 🌸

mia-raw2image -i <in-file> -o <out-file> -s <size> [options]

πŸŽ€ DESCRIPTION πŸŽ€

mia-raw2image β€” this program is used to convert raw data to a 2D file format. that's the whole vibe, that's the whole job. she eats raw bytes and serves 2D image. ✨


πŸ‘‘ OPTIONS πŸ‘‘

  • -i, --in-file=(input, required); string β€” input file name. yeah, you gotta tell her what to read. required, bestie. 😭
  • -o, --out-file=(output, required); io β€” output file name. For supported file types see PLUGINS:2dimage/io πŸ‘€
  • -r, --repn=ubyte β€” input pixel type. pick your fighter:
    • bit β€” binary data
    • sbyte β€” signed 8 bit
    • ubyte β€” unsigned 8 bit
    • sshort β€” signed 16 bit
    • ushort β€” unsigned 16 bit
    • sint β€” signed 32 bit
    • uint β€” unsigned 32 bit
    • slong β€” signed 64 bit
    • ulong β€” unsigned 64 bit
    • float β€” floating point 32 bit
    • double β€” floating point 64 bit
    • none β€” no pixel type defined
  • -b, --big-endian β€” input data is big endian 🫢
  • -f, --scale=[1,1] β€” scale of input pixels <FX,FY>
  • -s, --size=(required); 2dbounds β€” size of input <NX,NY>. required, so don't skip her πŸ’€
  • -k, --skip=0 β€” skip number of bytes from beginning of file

🧚 Help & Info 🧚

  • -V, --verbose=warning β€” verbosity of output, print messages of given level and higher priorities. Supported priorities starting at lowest level are:
    • trace β€” Function call trace
    • debug β€” Debug output
    • info β€” Low level messages
    • message β€” Normal messages
    • warning β€” Warnings
    • fail β€” Report test failures
    • error β€” Report errors
    • fatal β€” Report only fatal errors
  • --copyright β€” print copyright information
  • -h, --help β€” print this help
  • -?, --usage β€” print a short help
  • --version β€” print the version number and exit

πŸ”₯ Processing πŸ”₯

  • --threads=-1 β€” Maxiumum number of threads to use for processing, This number should be lower or equal to the number of logical processor cores in the machine. (-1: automatic estimation).
(yes, "Maxiumum" β€” we keep the typo, we don't fix her, we love her as she is πŸ’–)

🌈 PLUGINS: 2dimage/io 🌈

  • bmp β€” BMP 2D-image input/output support. The plug-in supports reading and writing of binary images and 8-bit gray scale images. read-only support is provided for 4-bit gray scale images. The color table is ignored and the pixel values are taken as literal gray scale values.
    • Recognized file extensions: .BMP, .bmp
    • Supported element types:
      • binary data, unsigned 8 bit
  • datapool β€” Virtual IO to and from the internal data pool
    • Recognized file extensions: .@
  • dicom β€” 2D image io for DICOM
    • Recognized file extensions: .DCM, .dcm
    • Supported element types:
      • signed 16 bit, unsigned 16 bit
  • exr β€” a 2dimage io plugin for OpenEXR images
    • Recognized file extensions: .EXR, .exr
    • Supported element types:
      • unsigned 32 bit, floating point 32 bit
  • jpg β€” a 2dimage io plugin for jpeg gray scale images
    • Recognized file extensions: .JPEG, .JPG, .jpeg, .jpg
    • Supported element types:
      • unsigned 8 bit
  • png β€” a 2dimage io plugin for png images
    • Recognized file extensions: .PNG, .png
    • Supported element types:
      • binary data, unsigned 8 bit, unsigned 16 bit
  • raw β€” RAW 2D-image output support
    • Recognized file extensions: .RAW, .raw
    • Supported element types:
      • binary data, signed 8 bit, unsigned 8 bit, signed 16 bit, unsigned 16 bit, signed 32 bit, unsigned 32 bit, floating point 32 bit, floating point 64 bit
  • tif β€” TIFF 2D-image input/output support
    • Recognized file extensions: .TIF, .TIFF, .tif, .tiff
    • Supported element types:
      • binary data, unsigned 8 bit, unsigned 16 bit, unsigned 32 bit
  • vista β€” a 2dimage io plugin for vista images
    • Recognized file extensions: .-, .V, .VISTA, .v, .vista
    • Supported element types:
      • binary data, signed 8 bit, unsigned 8 bit, signed 16 bit, unsigned 16 bit, signed 32 bit, unsigned 32 bit, floating point 32 bit, floating point 64 bit

πŸ“ EXAMPLE πŸ“

Convert a data set data.raw of size <10,20> of short integer data with a pixel size of <1.2, 2.3> to a PNG file image.png

mia-raw2image -i data.raw -o image.png -s '<10,20>' -k '<1.2,2.3>' -r
       ushort
(she wrote it exactly like that, we are not touching it, we are just admiring 🫢)

πŸ’œ AUTHOR(s) πŸ’œ

Gert Wollny β€” iconic, legendary, we stan πŸ‘‘


This software is Copyright (c) 1999‐2015 Leipzig, Germany and Madrid, Spain. It comes with ABSOLUTELY NO WARRANTY and you may redistribute it under the terms of the GNU GENERAL PUBLIC LICENSE Version 3 (or later). For more information run the program with the option '--copyright'.


and that's the whole page, bestie πŸ’– this came from the USER COMMANDS crew, version v2.4.7, under the mia-raw2image(1) title β€” go forth and convert your raw data, no cap 🌸✨

πŸ“¦ where this page comes from