VMTKIMAGEWRITER(1)

πŸ“¦ version 1.5.0, in ubuntu stonking

πŸ’– VMTKIMAGEWRITER πŸ’–

okay so bestie, welcome to the vmtkimagewriter(1) page β€” it lives in the User Commands section of the manual, and it's literally the vmtk script that gets your image out of vmtk-land and onto your disk. sit down, hydrate, we're doing this 🫢


✨ NAME ✨

vmtkimagewriter β€” vmtk script vmtkimagewriter


🌸 DESCRIPTION 🌸

So here's the tea, bestie: vmtkimagewriter does the automatic piping thing, then it parses its options, and then β€” the main character moment β€” it writes an image to disk. that's the whole vibe. no cap. πŸ’…

vmtkimagewriter : write an image to disk


πŸŽ€ Input arguments πŸŽ€

these are the things you feed it. the input side of the relationship. the ✨receiving✨ energy. πŸ™ˆ

  • -id Id β€” script id (str,1); default=0
  • -handle Self β€” handle to self (self,1)
  • -disabled Disabled β€” disable execution and piping (bool,1); default=0
  • -i Image β€” the input image (vtkImageData,1). yes bb, the actual picture πŸ–ΌοΈ
  • -ifile ImageInputFileName β€” filename for the default Image reader (str,1)
  • -f Format β€” file format (str,1), and it has to be one of ['vtkxml', 'vtk', 'meta', 'tiff', 'png', 'pointdata', 'vtsxml']
  • -guessformat GuessFormat β€” guess file format from extension (bool,1); default=1. it's giving detective πŸ”
  • -useitk UseITKIO β€” use ITKIO mechanism (bool,1); default=1
  • -transform ApplyTransform β€” apply transform on writing - ITKIO only (bool,1); default=0
  • -ofile OutputFileName β€” output file name (str,1)
  • -o OutputFileName β€” output file name (str,1) β€” deprecated: use -ofile ⚠️ she's old, be nice to her but use the new one
  • -rawfile OutputRawFileName β€” name of the output raw file - meta image only (str,1)
  • -d OutputDirectoryName β€” output directory name - png, tiff (str,1)
  • -r PixelRepresentation β€” output scalar type (str,1) in ['double', 'float', 'short']
  • -windowlevel WindowLevel β€” window and level for mapping graylevels to 0-255 before writing - png, tiff (float,2); default=[1.0, 0.0]
  • -matrix RasToIjkMatrixCoefficients β€” (float,16); default=None

πŸ‘‘ Output arguments πŸ‘‘

and these are what it hands back to you. the giving side. slay 🫢

  • -id Id β€” script id (str,1); default=0
  • -handle Self β€” handle to self (self,1)

bestie reminder: -transform is ITKIO only, -rawfile is meta image only, and -d + -windowlevel are png, tiff girlies. don't mix up the friend groups πŸ’€

🌈 and that's the whole page!! this was vmtkimagewriter version 1.5, dated April 2026 β€” thank you for coming to my ted talk, go write some images, you absolute icon πŸ‘‘πŸ’œ

πŸ“¦ where this page comes from