VMTKIMAGEBINARIZE(1)

πŸ“¦ version 1.5.0, in ubuntu stonking

πŸ¦‹ NAME πŸ¦‹

okay so bestie, meet vmtkimagebinarize β€” it's a vmtk script, manual page vmtkimagebinarize(1), and it's literally the moment your grayscale image becomes a label map. two moods only. no in-between. periodt. πŸ’…


✨ DESCRIPTION ✨

the way this thing works: vmtkimagebinarize does automatic piping 🫢, then it does its parsing-options thing, and then β€” the main character move β€” vmtkimagebinarize : binarize the input image producing a label map. that's the whole vibe. you give it an image, it splits every pixel into "below the threshold" and "above the threshold", and hands you back a label map. iconic behaviour, honestly. πŸ”₯

🌸 Input arguments 🌸

these are the ones you feed it going in, bestie. all of them. yes, all.

  • -id Id (str,1); default=0 β€” the script id. housekeeping, but make it cute.
  • -handle Self (self,1) β€” a handle to self. it's giving self-care, but for objects. πŸ’–
  • -disabled Disabled (bool,1); default=0 β€” flips execution and piping off. like, ghost mode. the script simply does not run.
  • -i Image (vtkImageData,1) β€” THE input image. the star of the show. πŸ‘‘
  • -ifile ImageInputFileName (str,1) β€” filename for the default Image reader. point it at your file and let the reader cook.
  • -threshold Threshold (float,1); default=0.0 β€” the threshold at which the image should be binarized. this is the line. below it? one label. above it? another. ✨
  • -lowerlabel LowerLabel (int,1); default=0 β€” the label to associate to the pixels lower than the threshold.
  • -upperlabel UpperLabel (int,1); default=1 β€” the label to associate to the pixels higher than the threshold.
  • -ofile ImageOutputFileName (str,1) β€” filename for the default Image writer. where your little label map goes to live. πŸŽ€

πŸ¦‹ Output arguments πŸ¦‹

and here's what it hands back to you when it's done slaying:

  • -id Id (str,1); default=0 β€” the script id, again, bc it's an output arg too. consistency queen.
  • -handle Self (self,1) β€” a handle to self. yes bestie, it also outputs one. symmetry.
  • -o Image (vtkImageData,1) β€” the output image. your label map. the binarized baddie. 🌈
ngl, the defaults are doing a lot of work here: -threshold 0.0, -lowerlabel 0, -upperlabel 1. if you just run it with an input image, you already get 0s and 1s. lowkey perfect. 😭

and that's the tea, fr fr. no cap, every single flag is up there β€” nothing skipped, nothing merged, nothing invented. iykyk. 🧚

stay binarized, bestie πŸ’œ

vmtkimagebinarize version 1.5 β€” dated April 2026. mwah. πŸ’‹

πŸ“¦ where this page comes from