MICONV(1)
π MICONV(1) π
okay bestie, pull up a chair, hydrate, and let's talk about miconv, because this little icon of a program is about to carry your entire medical-imaging workflow and she deserves her moment β¨
π NAME
miconv β Converts medical image data between formats.
π¦ SYNOPSIS
miconv [options] <input-file> [<output-file>]
β¨ DESCRIPTION
miconv: Converts medical image data between formats. (yes she says it twice, that's just her energy, we respect it π )
File formats are automatically identified by their file extension. It expects at least two filenames/directories (for the input and output file) at the end of the command line. An exception is the option -l which requires only one filename/directory to list its content.
This program is part of odin 2.0.5 with configuration using_gcc debug gui(:5) standalone dl posix_threads libz gsl nifti vtk dicom png ismrmrd gdb
πΈ General options:
-lβ Lists space-separated set of protocol parameters and exits. Use-l helpto get a list of possible parameters and-l allto list all parameters. The parameteroutput-filemust be omitted when using this option.-pβ Load this protocol for defaults-qβ Quiet mode: do not print progress
π Protocol options (overrides parameters in input data):
-aaβ azimuthal rotation angle [deg] (default=0.0)-ahβ height rotation angle [deg] (default=0.0)-aiβ inplane rotation angle [deg] (default=0.0)-dateβ Date of scan [yyyymmdd] (default=20211015)-fpβ FOV in phase direction [mm] (default=220.0)-frβ FOV in read direction [mm] (default=220.0)-fsβ FOV in slice direction [mm] (default=5.0)-nrβ Number of consecutive measurements (default=1)-nxβ Number of points in read direction (default=128)-nyβ Number of points in phase direction (default=128)-nzβ Number of points in slice direction (default=1)-pbirthβ Patients date of birth [yyyymmdd] (default=00000000)-pidβ Unique patient identifier (default=Unknown)-pnameβ Full patient name (default=Unknown)-psexβ Patients sex (options=M F O , default=O)-psizeβ Patients size/height [mm] (default=2000.0)-pweightβ Patients weight [kg] (default=50.0)-rcnameβ Name of receive coil (default=Unknown)-scientβ Scientist Name (default=Unknown)-sdβ Inter-slice distance (from center to center) [mm] (default=10.0)-serdβ Series Description (default=Unknown)-sernoβ Series Number (default=1)-stβ Slice thickness [mm] (default=5.0)-studβ Study Description (default=Unknown)-tcnameβ Name of transmit coil (default=Unknown)-teβ Time-to-echo of the sequence [ms] (default=80.0)-timeβ Time of scan [hhmmss] (default=104559)-trβ Time between consecutive excitations [ms] (default=1000.0)
π§ File read options (will be applied to input data before processing):
-cplxβ Treat data as complex and extract the given component (options=none abs pha real imag , default=none)-dsβ Dataset index to extract if multiple datasets are read-filterβ Read only those datasets which protocol parameterkeycontains the stringvalue(given in the formatkey=value)-fmapβ For reduced memory usage, keep filemapping after reading (raw) data, but writing into the array will result in a crash-framesplitβ Force splitting frames with different acquisition times into separate protocol-data pairs-ldrβ If multiple LDR (labeled data record) arrays are present, select this-rdialectβ Read data using given dialect of the format (default is no dialect)-rfβ Read format, use it to override file extension (options=autodetect 3db analyze asc coi dat dcm double float gz h5 hdr idx ima interfile jdx mag mhd nii ph png pos pro reg s16bit s32bit s8bit smp u16bit u32bit u8bit vtk xml xpro , default=autodetect)-skipβ Skip this amount of bytes before reading the raw data (default=0)
π File write options (will be applied to output data after processing):
-appendβ Append to existing file, only for raw data-fnameparβ Space-separated list of protocol parameters to include when creating unique file names-noscaleβ Do not rescale values when storing integers-splitβ Force splitting of protocol-data pairs into separate files.-typeβ Image representation type (options=automatic float double s32bit u32bit s16bit u16bit s8bit u8bit , default=automatic)-wdialectβ Write data using given dialect of the format (default is no dialect)-wfβ Write format, use it to override file extension (options=autodetect 3db analyze asc coi dat dcm double float gz h5 hdr idx ima interfile jdx mag mhd nii ph png pos pro reg s16bit s32bit s8bit smp u16bit u32bit u8bit vtk xml xpro , default=autodetect)-wpβ Store the protocol separately to this file.
π₯ Filters/processing, applied in the order they appear on the command line:
okay this is the part where the order you type things in actually matters, bestie. they run in the order they appear on the command line. no cap.
-align <filename,In-plane blowup factor (default=0)>: Align data to the geometry (voxel locations) of an external file-automask <skip leftmost slots (default=0),dump histogram,dump histogram fit>: Create binary mask using automatic histogram-based threshold-cluster: Create clusters of non-zero adjacent/next-neighbours voxels, sorted by size-convolve <convolution kernel (default=noFunction) (Gauss NoFilter Triangle Hann Hamming CosSq Blackman BlackmanNuttall Exp ),full-width-at-half-maximum of kernel [mm] (default=0.0)>: Convolution in spatial dimensions-detrend <Number of low frequency components to be removed (default=5),Zero mean of resulting timecourse (default=No)>: Remove slow drift over time-dilate <radius of kernel [mm] (default=0.0)>: dilate image using spherical kernel as structuring element-edit <string in the format (timerange,slicerange,phaserange,readrange),value (default=0.0)>: Edit voxel values with range specified as single position, or 'all', or explicit range, optionally with increment (e.g. 1-10:3)-erode <radius of kernel [mm] (default=0.0)>: erode image using spherical kernel as structuring element-genmask <lower threshold (default=0.0),upper threshold (default=0.0)>: Create binary mask including all voxels with value in given range-inv: Invert image values, i.e. lowest to highest and vice versa-isotrop <voxelsize [mm] (default=0.0)>: make image voxels isotrop through interpolation (image geometry will not change), set to zero for minimum extent-lowpass <Cut-off frequency [Hz] (default=0.0)>: Lowpass filtering-max <Maximum value (default=0.0)>: Clip all values above maximum value-maxip <direction (time slice phase read none )>: Perform maximum intensity projection over given direction-merge: Merge datasets into a single dataset by expanding the time dimension-min <Minimum value (default=0.0)>: Clip all values below minimum value-minip <direction (time slice phase read none )>: Perform minimum intensity projection over given direction-noNaN <Replacement value (default=0.0)>: Replaces every NaN by the given value-nonzeromask: Create binary mask including all voxels with non-zero value-pflip: Flip data in phase direction-prange <single position, or 'all', or explicit range, optionally with increment (e.g. 1-10:3)>: Select range in phase direction-proj <direction (time slice phase read none )>: Perform mean projection over given direction-quantilmask <quantil (default=0.0)>: Create binary mask including all voxels above the given fractional threshold-resample <new size (default=0)>: Temporal resize of image data-resize <slice-size (default=0),phase-size (default=0),read-size (default=0)>: Spatial resize of image data-reslice <requested orientation (default=coronal) (sagittal coronal axial )>: reslices the image to a given orientation-rflip: Flip data in read direction-rot <angle [deg] (default=0.0),kernel size [pixel] (default=1.41421)>: In-plane rotation-rrange <single position, or 'all', or explicit range, optionally with increment (e.g. 1-10:3)>: Select range in read direction-scale <Slope (default=1.0),Offset (default=0.0)>: Rescale image values-sflip: Flip data in slice direction-shift <readDirection shift [pixel] (default=0.0),phaseDirection shift [pixel] (default=0.0),sliceDirection shift [pixel] (default=0.0)>: Shift data spatially-slicetime <space-separated list of slice indices in order of acquisition>: Correct for different acquisition time points of slices-spheremask <Position string in the format (slicepos,phasepos,readpos),radius [mm] (default=0.0)>: Create binary spherical mask-splice <dimension of the data to be spliced (time slice phase read none )>: splices the image in the given direction-srange <single position, or 'all', or explicit range, optionally with increment (e.g. 1-10:3)>: Select range in slice direction-sum <direction (time slice phase read none )>: Perform sum projection over given direction-swapdim <[rps][-],[rps][-],[rps][-]>: swap/reflect/transpose dimensions by specifying a direction triple with optional reflection sign appended-tile <columns (default=0)>: Combine slices into a square 2D image-trange <single position, or 'all', or explicit range, optionally with increment (e.g. 1-10:3)>: Select range in time direction-tshift <time shift [frames] (default=0.0)>: Shift data in time-typemax <Datatype>: Clip all values above maximum of a specific datatype-typemin <Datatype>: Clip all values below minimum of a specific datatype-usemask <filename>: Create 1D dataset including all values within binary mask from file
π«Ά Other options:
-v <loglevel>or<component:loglevel>for debugging/tracing all components or a single component, respectively. Possible values for loglevel are:0(noLog),1(errorLog),2(warningLog),3(infoLog),4(significantDebug),5(normalDebug),6(verboseDebug).-h,--help,-help,--version: Print help text or version information
π Supported file extensions(formats):
3dbβ (Iris3D binary data)analyzeβ (NIFTI/ANALYZE, dialects: fsl)ascβ (ASCII, dialects: tcourse)coiβ (JCAMP-DX data sets)datβ (Matlab ascii 2D data matrix)dcmβ (DICOM, dialects: siemens)doubleβ (double raw data)floatβ (float raw data)gzβ (GNU-Zip container for other formats)h5β (ISMRMRD Image)hdrβ (Interfile, dialects: neurostat)hdrβ (NIFTI/ANALYZE, dialects: fsl)idxβ (3D-indices of non-zeroes in ASCII, dialects: addval)imaβ (DICOM, dialects: siemens)interfileβ (Interfile, dialects: neurostat)jdxβ ODIN Image based on JCAMP-DX (Joint Committee on Atomic and Molecular Physical Data) π the acronym alone is a whole personalitymagβ DICOM, dialects:siemensmhdβ MetaImage β¨niiβ NIFTI/ANALYZE, dialects:fslphβ DICOM, dialects:siemens(yes bestie, same dialect list asmag, that's not a typo, that's just the lore)pngβ Portable Network Graphics πposβ x-y positions of non-zeroes in ASCII πproβ ODIN protocols based on JCAMP-DX (Joint Committee on Atomic and Molecular Physical Data)regβ Ansoft HFSS ASCIIs16bitβ signed 16 bit raw datas32bitβ signed 32 bit raw datas8bitβ signed 8 bit raw datasmpβ JCAMP-DX data sets πΈu16bitβ unsigned 16 bit raw datau32bitβ unsigned 32 bit raw datau8bitβ unsigned 8 bit raw datavtkβ Visualization Toolkit,vtkStructuredPointsπ¦xmlβ ODIN Image based on XML (Extensible Markup Language)xproβ ODIN protocols based on XML (Extensible Markup Language) π
and that's the whole roster bestie π every single format, no skips, no gatekeeping. pick your fighter, pass it to miconv, and let it cook. β¨
okay that's the page!! this lil legend is miconv version 2.0.5, dated October 2021, and it lives in section MICONV(1) of your manual β go forth and convert responsibly π«Άπ
π¦ where this page comes from
- debian bookworm: mitools 2.0.5-3+b1 Β· GPL-2.0-or-later
- debian trixie: mitools 2.0.5-7+b1 Β· GPL-2.0-or-later
- ubuntu jammy: mitools 2.0.5-2 Β· GPL-2.0-or-later
- ubuntu noble: mitools 2.0.5-5build4 Β· GPL-2.0-or-later
- ubuntu questing: mitools 2.0.5-7build1
- ubuntu resolute: mitools 2.0.5-8build2 Β· GPL-2.0-or-later
- ubuntu stonking: mitools 2.0.5-10build1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms