VMTKIMAGEVIEWER(1)

πŸ“¦ version 1.5.0, in ubuntu stonking

🌸 VMTKIMAGEVIEWER 🌸

okay bestie, gather round, because today we're talking about vmtkimageviewer, which is a vmtk script β€” yes, its name is literally just its own name, the selfie of script names, iconic behavior πŸ’… β€” and it lives in the User Commands section of the manual, so you already know it's a "run it in your terminal and vibe" situation.


✨ DESCRIPTION ✨

So here's the tea: there's automatic piping happening with vmtkimageviewer, and there's option parsing happening with vmtkimageviewer. That's the whole opening act, fr fr.

Then the main character moment:

vmtkimageviewer : display a 3D image πŸ¦‹

That's it. That's the job. You feed it a 3D image and it shows you the 3D image. Slay.


πŸ’– INPUT ARGUMENTS πŸ’–

these are the things you hand to the script, like lil gifts πŸŽ€

  • -id Id (str,1); default=0 β€” the script id. yes, the script has an id. every diva needs one. πŸ‘‘
  • -handle Self (self,1) β€” a handle to self. that's the script holding its own hand, which is, honestly, self-care. 🫢
  • -disabled Disabled (bool,1); default=0 β€” turns off execution and piping. so if you set it, the whole thing just… doesn't. it's giving "not today." πŸ’€
  • -i Image (vtkImageData,1) β€” the input image. the actual star of the show. ✨
  • -ifile ImageInputFileName (str,1) β€” filename for the default Image reader, i.e. the "just give me a path and I'll handle it" option. πŸ“
  • -array ArrayName (str,1) β€” name of the array to display. because sometimes the image has layers and you gotta pick which one eats. πŸ”₯
  • -renderer vmtkRenderer (vmtkRenderer,1) β€” an external renderer. bring your own, bestie. 🎨
  • -windowlevel WindowLevel (float,2); default=[0.0, 0.0] β€” the window/level for displaying the image, and yes it's two floats, it's a lil duo, a matching set. 🌈
  • -display Display (bool,1); default=1 β€” toggle rendering. it's on by default because obviously we're showing the thing, that's literally the point. πŸ‘€
  • -margins Margins (bool,1); default=0 β€” toggle margins for tilting image planes. off by default, your planes stay un-margined unless you say otherwise. πŸ™ˆ
  • -textureinterpolation TextureInterpolation (bool,1); default=1 β€” toggle interpolation of graylevels on image planes. on by default, so it stays smooth and pretty instead of crunchy. πŸ“
  • -continuouscursor ContinuousCursor (bool,1); default=0 β€” toggle use of physical continuous coordinates for the cursor. off by default β€” flip it if you want your cursor living in physical continuous coordinates, which sounds incredibly fancy and lowkey is. 🧚
  • -ofile ImageOutputFileName (str,1) β€” filename for the default Image writer. so it can save the image back out. the full circle moment. πŸ’œ

🌟 OUTPUT ARGUMENTS 🌟

and these are the lil treats it hands back to you when it's done, we love a generous queen πŸ’–

  • -id Id (str,1); default=0 β€” the script id again. same energy, now on the way out. ✨
  • -handle Self (self,1) β€” handle to self again. still holding its own hand. still valid. still iconic. 🫢
  • -o Image (vtkImageData,1) β€” the output image. the after picture. πŸ”₯
  • -xplane PlaneWidgetX (vtkImagePlaneWidget,1) β€” the X image plane widget. that's the left-right one, do not come for me. πŸ¦‹
  • -yplane PlaneWidgetY (vtkImagePlaneWidget,1) β€” the Y image plane widget. the other one. πŸ¦‹
  • -zplane PlaneWidgetZ (vtkImagePlaneWidget,1) β€” the Z image plane widget. completes the trio, the friend group is fully assembled. πŸ¦‹
also quick heads up bestie: -id and -handle show up in both the input list and the output list. that's not a typo, that's just how this script rolls. go with it. πŸ’…
vmtkimageviewer 1.5                April 2026                VMTKIMAGEVIEWER(1)

and that's the whole page, no cap β€” vmtkimageviewer, version 1.5, dated April 2026, straight out of the User Commands chapter of the manual. periodt. πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from