mia-raw2volume(1)
β¨ mia-raw2volume β¨
okay bestie, so this is a page from the General Commands Manual β the command is mia-raw2volume, and it's literally the glow-up station where your raw, unhinged byte soup becomes a real 3D image with actual metadata. π Let's get into it.
πΈ NAME πΈ
mia-raw2volume β Convert raw data into a 3D image
π SYNOPSIS π
mia-raw2volume -i <in-file> -o <out-file> -s <size> [options]
π¦ DESCRIPTION π¦
mia-raw2volume β this program is used to convert raw data into 3D images with apropriate metadata. (yes, "apropriate" is spelled exactly like that in the original, we don't fix people's spelling here, we respect it π
)
Basically: you hand it a pile of raw bytes, you tell it how big the thing is, and it hands you back a proper 3D image. It's giving main character energy for your data. π
π OPTIONS π
-i,--in-file=(input, required); string β input file name. Required! No input, no party.-o,--out-file=(output, required); io β output file name. Also required! For supported file types seePLUGINS:3dimage/io-r,--repn=ubyteβ input pixel type. The options are:bitβ binary datasbyteβ signed 8 bitubyteβ unsigned 8 bitsshortβ signed 16 bitushortβ unsigned 16 bitsintβ signed 32 bituintβ unsigned 32 bitslongβ signed 64 bitulongβ unsigned 64 bitfloatβ floating point 32 bitdoubleβ floating point 64 bitnoneβ no pixel type defined
-b,--big-endianβ input data is big endian. Endianness check, bestie, don't skip it π-f,--scale=[1,1,1]β scale of input voxels<FX,FY,FZ>-k,--skip=0β skip number of bytes from beginning of file-s,--size=(required); 3dbounds β size of input<NX,NY,NZ>(yes, required, again π)
π 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 tracedebugβ Debug outputinfoβ Low level messagesmessageβ Normal messageswarningβ Warningsfailβ Report test failureserrorβ Report errorsfatalβ 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). (yep, "Maxiumum" and the missing space after the comma are both in the original β iconic, we keep them π«Ά)
π§ PLUGINS: 3dimage/io π§
These are all the file formats that can show up on either end of your conversion, plus what pixel types each one fucks with. Go off, format support.
analyzeβ Analyze 7.5 image- Recognized file extensions:
.HDR,.hdr - Supported element types:
- unsigned 8 bit, signed 16 bit, signed 32 bit, floating point 32 bit, floating point 64 bit
- Recognized file extensions:
datapoolβ Virtual IO to and from the internal data pool- Recognized file extensions:
.@
- Recognized file extensions:
dicomβ Dicom image series as 3D- Recognized file extensions:
.DCM,.dcm - Supported element types:
- signed 16 bit, unsigned 16 bit
- Recognized file extensions:
hdf5β HDF5 3D image IO- Recognized file extensions:
.H5,.h5 - Supported element types:
- binary data, signed 8 bit, unsigned 8 bit, signed 16 bit, unsigned 16 bit, signed 32 bit, unsigned 32 bit, signed 64 bit, unsigned 64 bit, floating point 32 bit, floating point 64 bit
- Recognized file extensions:
inriaβ INRIA image- Recognized file extensions:
.INR,.inr - Supported element types:
- 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
- Recognized file extensions:
mhdβ MetaIO 3D image IO using the VTK implementation (experimental).- Recognized file extensions:
.MHA,.MHD,.mha,.mhd - Supported element types:
- 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
- Recognized file extensions:
niftiβ NIFTI-1 3D image IO. The orientation is transformed in the same way like it is done with'dicomtonifti --no-reorder'from the vtk-dicom package.- Recognized file extensions:
.NII,.nii - Supported element types:
- signed 8 bit, unsigned 8 bit, signed 16 bit, unsigned 16 bit, signed 32 bit, unsigned 32 bit, signed 64 bit, unsigned 64 bit, floating point 32 bit, floating point 64 bit
- Recognized file extensions:
vffβ VFF Sun raster format- Recognized file extensions:
.VFF,.vff - Supported element types:
- unsigned 8 bit, signed 16 bit
- Recognized file extensions:
vistaβ Vista 3D- 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
- Recognized file extensions:
vtiβ 3D image VTK-XML in- and output (experimental).- Recognized file extensions:
.VTI,.vti - Supported element types:
- 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
- Recognized file extensions:
vtkβ 3D VTK image legacy in- and output (experimental).- Recognized file extensions:
.VTK,.VTKIMAGE,.vtk,.vtkimage - Supported element types:
- 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
- Recognized file extensions:
π EXAMPLE π
pixel size of <1.2, 2.3, 3.4> to an Analyze file image.hdr
mia-raw2volume -i data.raw -o image.hdr -s "<10,20,30>" -k "<1.2,2.3,3.4>" -r ushort
Look at that line going places. It's long, it's dramatic, it works. π
π AUTHOR(s) π
Gert Wollny
π COPYRIGHT π
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'.
bestie this is the real legal bit, don't sleep on it β ABSOLUTELY NO WARRANTY, fr fr. π
okay that's the whole page!! π this is from v2.4.7, filed under USER COMMANDS, and the page is literally called mia-raw2volume(1) β go convert something and slay, you got this π«Άβ¨
π¦ where this page comes from
- ubuntu jammy: mia-tools 2.4.7-8ubuntu1 Β· GPL-3.0-or-later
- ubuntu noble: mia-tools 2.4.7-13build4 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms