mia-mesh-to-maskimage {-i io} {-o io} [ options ...]


This program converts a 3D mesh into a binary mask comprising the mesh surface. The output image size is either given on the command line or deducted from the mesh dimensions.


File I/O

-i, --in-file=(input, required); io

input mesh to be adapted. For supported file types see Plugin type: mesh/io

-o, --out-file=(required, output); io

output image containing the binary mask. For supported file types see Plugin type: 3dimage/io

Help & Info

-V, --verbose=warning; dict

verbosity of output, print messages of given level and higher priorities. Supported priorities starting at lowest level are:

debug:Debug output
message:Normal messages
info:Low level messages
error:Report errors
fatal:Report only fatal errors
trace:Function call trace
fail:Report test failures
--copyright=(); bool

print copyright information

-h, --help=(); bool

print this help

-?, --usage=(); bool

print a short help

--version=(); bool

print the version number and exit


--threads=-1; int

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).


--origin=[0,0,0]; 3dfvector

coordinate of pixel at index 0,0,0

--spacing=[1,1,1]; 3dfvector

voxel spacing in the output image, all values must be positive.

--size=[0,0,0]; 3dbounds

size of the output image (0,0,0 = deduct)


The input mesh input.vmesh is 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


Gert Wollny