mia-mesh-d...mable-model(1)

πŸ“¦
version 2.4.7 Β· 3 versions
, in debian bookworm, ubuntu jammy

πŸ’– mia-mesh-deformable-model(1) πŸ’– β€” General Commands Manual

Okay so bestie, welcome to mia-mesh-deformable-model(1). Yes, the header is giving β€œlong name, tiny terminal”, but we’re folding the manual name right here near the top: this is a General Commands Manual page for mia-mesh-deformable-model. Grab a boba, we’re fitting meshes to images. 🫢✨


✨ NAME ✨

mia-mesh-deformable-model β€” Fit a mesh by using a deformable model.


🌈 SYNOPSIS 🌈

mia-mesh-deformable-model -i <in-file> -o <out-file> -r <ref-file>
[options]

πŸ¦‹ DESCRIPTION πŸ¦‹

mia-mesh-deformable-model This program runs a deformable model to adapt a mesh to an iso-value within a given image. <FIXME: Reference>

Not me leaving the reference as a <FIXME> β€” literally iconic behavior, but it is what the page says. πŸ’€

πŸŽ€ OPTIONS πŸŽ€

πŸ’Ύ File I/O πŸ’Ύ

  • -i, --in-file=(input, required); io β€” input mesh to be adapted. For supported file types see PLUGINS:mesh/io.
  • -o, --out-file=(output, required); io β€” output mesh that has been deformed. For supported file types see PLUGINS:mesh/io.
  • -r, --ref-file=(input, required); io β€” reference image. For supported file types see PLUGINS:3dimage/io.

🫢 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

πŸ’… Model parameters πŸ’…

  • --smoothing-weight=0.04; float in [0, inf) β€” Weight of the inner force used to smooth the mesh
  • --gradient-weight=0.04 β€” Weight of the gradient force drive the mesh deformation. Use a negative value to invert the search direction.
  • --intensity-weight=0.02; float in [0, inf) β€” Weight of the force resulting from the intensity difference at the vertex position versus the reference intensity 'iso'.
  • --intensity-scaling=1; float in (0, inf) β€” Scaling of the raw intensity difference.
  • -s, --iso=64 β€” Intensity value the mesh verices should adapt to.

🧼 Preprocessing 🧼

  • --image-smoothing=gauss:w=2 β€” Prefilter to smooth the reference image. For supported plugins see PLUGINS:3dimage/filter.

πŸ”₯ 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).
  • -m, --maxiter=200; uint in (0, inf) β€” Maximum number of iterations.
  • -e, --epsilon=0.001; float in (0, inf) β€” Stop iteration when the maximum shift of the vertices falls below this value
  • --reorient β€” Reorientate the mesh triangles

🧩 PLUGINS: 1d/spacialkernel 🧩

  • cdiff β€” Central difference filter kernel, mirror boundary conditions are used.
    • (no parameters)
  • gauss β€” spacial Gauss filter kernel, supported parameters are:
    • w = 1; uint in [0, inf) β€” half filter width.
  • scharr β€” This plugin provides the 1D folding kernel for the Scharr gradient filter
    • (no parameters)

🧩 PLUGINS: 1d/splinebc 🧩

  • mirror β€” Spline interpolation boundary conditions that mirror on the boundary
    • (no parameters)
  • repeat β€” Spline interpolation boundary conditions that repeats the value at the boundary
    • (no parameters)
  • zero β€” Spline interpolation boundary conditions that assumes zero for values outside
    • (no parameters)

🧩 PLUGINS: 1d/splinekernel 🧩

  • bspline β€” B-spline kernel creation , supported parameters are:
    • d = 3; int in [0, 5] β€” Spline degree.
  • omoms β€” OMoms-spline kernel creation, supported parameters are:
    • d = 3; int in [3, 3] β€” Spline degree.

🧩 PLUGINS: 3dimage/combiner 🧩

  • absdiff β€” Image combiner 'absdiff'
    • (no parameters)
  • add β€” Image combiner 'add'
    • (no parameters)
  • div β€” Image combiner 'div'
    • (no parameters)
  • mul β€” Image combiner 'mul'
    • (no parameters)
  • sub β€” Image combiner 'sub'
    • (no parameters)

🧩 PLUGINS: 3dimage/filter 🧩

  • bandpass β€” intensity bandpass filter, supported parameters are:
    • max = 3.40282e+38; float β€” maximum of the band.
    • min = 0; float β€” minimum of the band.
  • binarize β€” image binarize filter, supported parameters are:
    • max = 3.40282e+38; float β€” maximum of accepted range.
    • min = 0; float β€” minimum of accepted range.
  • close β€” morphological close, supported parameters are:
    • hint = black; string β€” a hint at the main image content (black|white).
    • shape = [sphere:r=2]; factory β€” structuring element. For supported plug-ins see PLUGINS:3dimage/shape
  • combiner β€” Combine two images with the given combiner operator. if 'reverse' is set to false, the first operator is the image passed through the filter pipeline, and the second image is loaded from the file given with the 'image' parameter the moment the filter is run., supported parameters are:
    • image =(input, required, io) β€” second image that is needed in the combiner. For supported file types see PLUGINS:3dimage/io
    • op =(required, factory) β€” Image combiner to be applied to the images. For supported plug-ins see PLUGINS:3dimage/combiner
    • reverse = 0; bool β€” reverse the order in which the images passed to the combiner.
  • convert β€” image pixel format conversion filter, supported parameters are:
    • a = 1; float β€” linear conversion parameter a.
    • b = 0; float β€” linear conversion parameter b.
    • map = opt; dict β€” conversion mapping. Supported values are:
      • copy β€” copy data when converting
      • linear β€” apply linear transformation x -> a*x+b
      • range β€” apply linear transformation that maps the input data type range to the output data type range
      • opt β€” apply a linear transformation that maps the real input range to the full output range
      • optstat β€” apply a linear transform that maps based on input mean and variation to the full output range
    • repn = ubyte; dict β€” output pixel type. Supported values are:
      • 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
  • crop β€” Crop a region of an image, the region is always clamped to the original image size in the sense that the given range is kept., supported parameters are:
    • end = [[4294967295,4294967295,4294967295]]; streamable β€” end of cropping range, maximum = (-1,-1,-1).
    • start = [[0,0,0]]; streamable β€” begin of cropping range.
  • dilate β€” 3d image stack dilate filter, supported parameters are:
    • hint = black; string β€” a hint at the main image content (black|white).
    • shape = [sphere:r=2]; factory β€” structuring element. For supported plug-ins see PLUGINS:3dimage/shape
  • distance β€” Evaluate the 3D distance transform of an image. If the image is a binary mask, then result of the distance transform in each point corresponds to the Euclidian distance to the mask. If the input image is of a scalar pixel value, then the this scalar is interpreted as heighfield and the per pixel value adds to the distance.
    • (no parameters)
  • downscale β€” Downscale the input image by using a given block size to define the downscale factor. Prior to scaling the image is filtered by a smoothing filter to eliminate high frequency data and avoid aliasing artifacts., supported parameters are:
    • b = [[1,1,1]]; 3dbounds β€” blocksize.
    • bx = 1; uint in [1, inf) β€” blocksize in x direction.
    • by = 1; uint in [1, inf) β€” blocksize in y direction.
    • bz = 1; uint in [1, inf) β€” blocksize in z direction.
    • kernel = gauss; factory β€” smoothing filter kernel to be applied, the size of the filter is estimated based on the blocksize.. For supported plug-ins see PLUGINS:1d/spacialkernel
  • erode β€” 3d image stack erode filter, supported parameters are:
    • hint = black; string β€” a hint at the main image content (black|white).
    • shape = [sphere:r=2]; factory β€” structuring element. For supported plug-ins see PLUGINS:3dimage/shape
  • gauss β€” isotropic 3D gauss filter, supported parameters are:
    • w = 1; int in [0, inf) β€” filter width parameter.
  • gradnorm β€” 3D image to gradient norm filter
    • (no parameters)
  • growmask β€” Use an input binary mask and a reference gray scale image to do region growing by adding the neighborhood pixels of an already added pixel if the have a lower intensity that is above the given threshold., supported parameters are:
    • min = 1; float β€” lower threshold for mask growing.

invert πŸ™ƒ

Intensity invert filter. That's it, that's the whole thing.

  • no parameters β€” zero. none. she just flips your intensities and goes.

isovoxel πŸ“

This filter scales an image to make the voxel size isometric and its size to correspond to the given value. the params are:

  • interp = [bspline:d=3]; factory β€” the interpolation kernel to be used. for which plug-ins are allowed see PLUGINS:1d/splinekernel
  • size = 1; float in (0, inf) β€” the isometric target voxel size.

kmeans 🧩

3D image k-means filter. bestie listen: in the output image the pixel value represents the class membership, and the class centers get stored as an attribute in the image. params:

  • c = 3; int in [2, inf) β€” number of classes.

label 🏷️

A filter to label the connected components of a binary image. params:

  • n = 6n; factory β€” neighborhood mask. supported plug-ins live at PLUGINS:3dimage/shape

labelmap πŸ—ΊοΈ

Image filter to remap label id's. only applicable to images with integer valued intensities/labels, so don't try it on your floaty bois. params:

  • map =(input, required, string) β€” Label mapping file.

labelscale πŸ“Š

A filter that only creates output voxels that are already created in the input image. the scaling is done by a voting algorithm that selects the target pixel value based on the highest pixel count of a certain label in the corresponding source region. and if the region has two labels with the same count, the one with the lower number wins. params:

  • out-size =(required, 3dbounds) β€” target size given as two coma separated values.

load πŸ“‚

Load the input image from a file and use it to replace the current image in the pipeline. params:

  • file =(input, required, io) β€” name of the input file to load from. for supported file types see PLUGINS:3dimage/io

lvdownscale πŸ”½

This is a label voting downscale filter. it downscales a 3D image by blocks. for each block, the (non-zero) label that shows up the most times in the block gets issued as the output pixel in the target image. and if two labels appear the same number of times, the one with the lower absolute value wins. params:

  • b = [[1,1,1]]; 3dbounds β€” blocksize for the downscaling. each block will be represented by one pixel in the target image.

mask 🎭

Mask an image β€” one image comes from the parameters list, the other from the normal filter input. both images must be of the same dimensions and one must be binary. the attributes of the image coming through the filter pipeline are preserved. the output pixel type corresponds to the input image that is not binary. params:

  • input =(input, required, io) β€” second input image file name. for supported file types see PLUGINS:3dimage/io

mean 🌫️

3D image mean filter. params:

  • w = 1; int in [1, inf) β€” half filter width.

median 🫧

median 3d filter. params:

  • w = 1; int in [1, inf) β€” filter width parameter.

mlv πŸƒ

Mean of Least Variance 3D image filter. params:

  • w = 1; int in [1, inf) β€” filter width parameter.

msnormalizer βš–οΈ

3D image mean-sigma normalizing filter. params:

  • w = 1; int in [1, inf) β€” half filter width.

open 🌸

morphological open. params:

  • hint = black; string β€” a hint at the main image content (black|white).
  • shape = [sphere:r=2]; factory β€” structuring element. supported plug-ins at PLUGINS:3dimage/shape

reorient πŸ”„

3D image reorientation filter. params:

  • map = xyz; dict β€” oriantation mapping to be applied. supported values are:
    • xyz ‐ keep orientation
    • p-yzx ‐ permutate x->z->y->x
    • p-zxy ‐ permutate x->y->z->x
    • f-yz ‐ flip y-z
    • f-xy ‐ flip x-y
    • f-xz ‐ flip x-z
    • r-x90 ‐ rotate around x-axis clockwise 90 degree
    • r-x180 ‐ rotate around x-axis clockwise 180 degree
    • r-x270 ‐ rotate around x-axis clockwise 270 degree
    • r-y90 ‐ rotate around y-axis clockwise 90 degree
    • r-y180 ‐ rotate around y-axis clockwise 180 degree
    • r-y270 ‐ rotate around y-axis clockwise 270 degree
    • r-z90 ‐ rotate around z-axis clockwise 90 degree
    • r-z180 ‐ rotate around z-axis clockwise 180 degree
    • r-z270 ‐ rotate around z-axis clockwise 270 degree

resize πŸ–ΌοΈ

Resize an image. the original data is centered within the new sized image. params:

  • size = [[0,0,0]]; streamable β€” new size of the image. a size 0 indicates to keep the size for the corresponding dimension.

sandp πŸ§‚

salt and pepper 3d filter. params:

  • thresh = 100; float in [0, inf) β€” thresh value.
  • w = 1; int in [1, inf) β€” filter width parameter.

scale πŸ“

3D image filter that scales to a given target size. params:

  • interp = [bspline:d=3]; factory β€” interpolation kernel to be used. supported plug-ins at PLUGINS:1d/splinekernel
  • s = [[0,0,0]]; 3dbounds β€” target size to set all components at once (component 0: use input image size).
  • sx = 0; uint in [0, inf) β€” target size in x direction (0: use input image size).
  • sy = 0; uint in [0, inf) β€” target size in y direction (0: use input image size).
  • sz = 0; uint in [0, inf) β€” target size in y direction (0: use input image size).

scharr 🌊

The 3D Scharr filter for gradient evaluation. note that the output pixel type of the filtered image is the same as the input pixel type, so converting the input beforehand to a floating point valued image is recommendable. params:

  • dir = x; dict β€” Gradient direction. supported values are:
    • x ‐ gradient in x-direction
    • y ‐ gradient in y-direction
    • z ‐ gradient in z-direction

selectbig πŸ‘‘

A filter that creats a binary mask representing the intensity with the highest pixel count. the pixel value 0 will be ignored, and if two intensities have the same pixel count, then the result is undefined 😭. the input pixel must have an integral pixel type.

  • no parameters β€” she takes no orders, she just finds the biggest one.

sepconv 🧡

3D image intensity separaple convolution filter. params:

  • kx = [gauss:w=1]; factory β€” filter kernel in x-direction. supported plug-ins at PLUGINS:1d/spacialkernel
  • ky = [gauss:w=1]; factory β€” filter kernel in y-direction. supported plug-ins at PLUGINS:1d/spacialkernel
  • kz = [gauss:w=1]; factory β€” filter kernel in z-direction. supported plug-ins at PLUGINS:1d/spacialkernel

sobel ⚑

The 2D Sobel filter for gradient evaluation. again bestie, the output pixel type of the filtered image is the same as the input pixel type, so convert the input to a floating point valued image beforehand β€” it's recommendable. params:

  • dir = x; dict β€” Gradient direction. supported values are:
    • x ‐ gradient in x-direction
    • y ‐ gradient in y-direction
    • z ‐ gradient in z-direction

sws πŸ’§

seeded watershead. the algorithm extracts exactly as many reagions as initial labels are given in the seed image. params:

  • grad = 0; bool β€” Interpret the input image as gradient.
  • mark = 0; bool β€” Mark the segmented watersheds with a special gray scale value.
  • n = [sphere:r=1]; factory β€” Neighborhood for watershead region growing. supported plug-ins at PLUGINS:3dimage/shape
  • seed =(input, required, string) β€” seed input image containing the lables for the initial regions.

tee πŸ«–

Save the input image to a file and also pass it through to the next filter. icon behavior honestly, having it both ways. params:

  • file =(output, required, io) β€” name of the output file to save the image too. for supported file types see PLUGINS:3dimage/io

thinning 🦴

3D morphological thinning, based on: Lee and Kashyap, 'Building Skeleton Models via 3-D Medial Surface/Axis Thinning Algorithms', Graphical Models and Image Processing, 56(6):462-478, 1994. this implementation only supports the 26 neighbourhood.

  • no parameters β€” just vibes and skeletonization.

transform πŸŒ€

Transform the input image with the given transformation. params:

  • file =(input, required, io) β€” Name of the file containing the transformation. for supported file types see PLUGINS:3dtransform/io
  • imgboundary = ; factory β€” override image interpolation boundary conditions. supported plug-ins at PLUGINS:1d/splinebc
  • imgkernel = ; factory β€” override the image interpolator kernel. Wanna know which plug-ins you can throw in here? Go peek at PLUGINS:1d/splinekernel πŸ’«

variance πŸ“

3D image variance filter. The parameters it vibes with are:

  • w = 1; int in [1, inf) β€” half filter width.

ws πŸ‘‘

basic watershed segmentation. Here's what it takes:

  • evalgrad = 0; bool β€” set this to 1 if your input image is not representing a gradient norm image. (like, flip it on and it'll behave, bestie)
  • mark = 0; bool β€” set to 1 to mark the segmented watersheds with a special gray scale value.
  • n = [sphere:r=1]; factory β€” neighborhood for watershed region growing. Supported plug-ins live over in PLUGINS:3dimage/shape.
  • thresh = 0; float in [0, 1) β€” relative gradient norm threshold. The actual threshold value is thresh * (max_grad - min_grad) + min_grad. Basins separated by gradients with a lower norm will be joined. periodt.

✨ 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: 3dimage/shape 🌟

18n

18n neighborhood 3D shape creator.

(no parameters)

26n

26n neighborhood 3D shape creator.

(no parameters)

6n

6n neighborhood 3D shape creator.

(no parameters)

sphere πŸ“

Closed spherical shape neighborhood including the pixels within a given radius r. β€” yes, that's the parameter list:

  • r = 2; float in (0, inf) β€” sphere radius.

πŸ’– PLUGINS: 3dtransform/io πŸ’–

bbs

Binary (non-portable) serialized IO of 3D transformations.

Recognized file extensions: .bbs

datapool 🫢

Virtual IO to and from the internal data pool.

Recognized file extensions: .@

vista πŸ¦‹

Vista storage of 3D transformations.

Recognized file extensions: .v, .v3dt

xml ✨

XML serialized IO of 3D transformations.

Recognized file extensions: .x3dt


🌈 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 normals 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. no cap.

Recognized file extensions: .VTK, .VTKMESH, .vtk, .vtkmesh


🌸 EXAMPLE 🌸

Run the deformable model on input.vmesh with 200 iterations adapting to a value of 128 in the image ref.v and save the result to deformed.vmesh:

mia-mesh-deformable-model -i input.vmesh -o deformed.vmesh --iso 128 --maxiter 200

πŸ’– AUTHOR(s) πŸ’–

Gert Wollny


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.


okay that's a wrap bestie 🫢 this whole thing lives under USER COMMANDS, version v2.4.7, in the mia-mesh-d...mable-model(1) page. go forth and mesh, you absolute icon πŸ’…βœ¨

πŸ“¦ where this page comes from