mia-mesh-to-maskimage(1)
β¨ mia-mesh-to-maskimage β¨
okay bestie, welcome to the mia-mesh-to-maskimage(1) page π this is one of those General Commands Manual girlies, and she's here to turn your 3D mesh into a mask. no cap.
π NAME π
mia-mesh-to-maskimage β makes a binary mask out of the mesh surface. that's it, that's the gig π
π¦ SYNOPSIS π¦
mia-mesh-to-maskimage -i <in-file> -o <out-file> [options]
πΈ DESCRIPTION πΈ
so like, this program takes a 3D mesh and converts it into a binary mask that is made up of the mesh surface. literally that simple π«Ά
the output image size? you either hand it over on the command line, or it gets deducted from the mesh dimensions all on its own. main character energy honestly β¨
π OPTIONS π
π File I/O
-i,--in-file=(input, required); ioβ the input mesh that's gonna get adapted. for the file types it can vibe with, go checkPLUGINS:mesh/ioπ-o,--out-file=(output, required); ioβ the output image holding your binary mask. for supported file types, seePLUGINS:3dimage/ioπ
π Help & Info
-V,--verbose=warningβ how chatty the output is. it prints messages of the given level and higher priorities. the supported priorities, starting at the 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). π₯
π§ Properties
--origin=[0,0,0]β coordinate of pixel at index 0,0,0--spacing=[1,1,1]β voxel spacing in the output image, all values must be positive.--size=[0,0,0]β size of the output image (0,0,0= deduct)
πΌοΈ PLUGINS: 3dimage/io πΌοΈ
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
datapool β Virtual IO to and from the internal data pool
- Recognized file extensions:
.@
dicom β Dicom image series as 3D
- Recognized file extensions:
.DCM,.dcm - Supported element types: signed 16 bit, unsigned 16 bit
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
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
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
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
vff β VFF Sun raster format
- Recognized file extensions:
.VFF,.vff - Supported element types: unsigned 8 bit, signed 16 bit
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
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
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
π§΅ PLUGINS: mesh/io π§΅
datapool β Virtual IO to and from the internal data pool
- Recognized file extensions:
.@
off β plugin to load/store some Geomview OFF files. Supported is only the ASCII format 3D meshes with normales and per-vertex RGB colors. Alpha values and texture coordinates, as well as per face properties are ignored. Polygons are read and triangulated.
- Recognized file extensions:
.OFF,.off
ply β Ply triangle mesh input/output support
- Recognized file extensions:
.PLY,.ply
stl β STL mesh io plugin
- Recognized file extensions:
.STL,.stl
vista β Vista/Simbio triangle mesh input/output support
- Recognized file extensions:
.-,.V,.VMESH,.v,.vmesh
vtk β A subset of VTK mesh in-and output: Triangle meshes are written, and triangle meshes and triangle strips are read. Additional per-vertex attributes are supported: 'normals', 'colors' for three component colors, and 'scale' for a scalar value attached to each vertex. The data is written by the vtkPolyDataWriter in binary format.
- Recognized file extensions:
.VTK,.VTKMESH,.vtk,.vtkmesh
π EXAMPLE π
so the input mesh input.vmesh gets converted into the binary mask mask.v. the image size is set to 50,50,50 and the size is obtained automatically to include the whole mesh π«
mia-mesh-to-maskimage -i input.vmesh -o mask.v --origin 0,0,0
π 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'.
ok that last part is the serious bit bestie, no skipping it π
and that's the whole page, you ate that π
this was USER COMMANDS v2.4.7 of mia-mesh-to-maskimage(1), mwah, go mask some meshes π¦β¨
π¦ where this page comes from
- ubuntu noble: mia-tools 2.4.7-13build4 Β· GPL-3.0-or-later
- ubuntu resolute: mia-tools 2.4.7-18 Β· GPL-3.0-or-later
- ubuntu stonking: mia-tools 2.4.7-19build1 Β· 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