VMTKSURFACETOBINARYIMAGE(1)
π NAME π
vmtksurfacetobinaryimage β bestie, it's the vmtk script vmtksurfacetobinaryimage, and yes the name is a whole mouthful, we love her anyway π«Ά
β¨ DESCRIPTION β¨
okay so first things first, the vibes: this script does automatic piping for vmtksurfacetobinaryimage and it's also busy parsing options, all on its own, main character energy fr fr. Then:
vmtksurfacetobinaryimage : Convert a surface to a binary image mask
where voxels are labeled if they lie inside the surface or not. Like, that's the whole gig π
π₯ Input arguments
these are the things you can hand her on the way in πΈ
-idId (str,1); default=0β the script id. it's giving "who am I" but for scripts.-handleSelf (self,1) β a handle to self. self-love, literally π-disabledDisabled (bool,1); default=0β turns execution and piping OFF. set it and she simply will not run, no cap.-iSurface (vtkPolyData,1) β the input surface. the star of the show π-ifileSurfaceInputFileName (str,1) β filename for the default Surface reader. so you can just point her at a file bestie.-invalueInsideValue (int,1) >=0and <=255; default=1β the value used to label voxels which contain points inside the surface.-outvalueOutsideValue (int,1) >=0and <=255; default=0β the value to label voxels which contain points inside the surface. (yes, that's literally what the manpage says, I'm not editing her words, only reporting them π)-imagespacingPolyDataToImageDataSpacing (float,3) >=0.0; default=[0.3, 0.3, 0.3]β the sample spacing for the polydata to image data conversion. three floats, three chances to slay.-ofileImageOutputFileName (str,1) β filename for the default Image writer. where the glow-up gets saved β¨
π€ Output arguments
and these are what she gives you back, iconic behavior:
-idId (str,1); default=0β script id, again, because consistency is a vibe.-handleSelf (self,1) β handle to self. still self-love.-oImage (vtkImageData,1) β the binary surface image. the moment we've all been waiting for π
heads up bestie:-invalueand-outvalueare both strictly in the0β255range and-imagespacinghas to be>= 0.0. no negative spacing, we do not do that here π¦
omg and a lil sign-off to close the loop: this is vmtksurfacetobinaryimage version 1.5, dated April 2026. periodt π
π¦ where this page comes from
- ubuntu stonking: vmtk 1.5.0+dfsg1-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms