VMTKSURFACETRANSFORMTORAS(1)

πŸ“¦ version 1.5.0, in ubuntu stonking

πŸ’– NAME πŸ’–

vmtksurfacetransformtoras β€” bestie it's a vmtk script, and its whole Thing is taking a surface that was made over in XYZ image space and sliding it on over into RAS space ✨


🌸 DESCRIPTION 🌸

okay so first things first: Automatic piping. vmtksurfacetransformtoras parses its options, no cap. That's literally what it does on the setup side πŸ’…

Then the actual glow-up, and I'm gonna say it plainly:

vmtksurfacetransformtoras : transform a surface generated in XYZ image space into RAS space πŸ¦‹

like. XYZ in. RAS out. that's the vibe. moving on bestie, because there are inputs to feed it and outputs it hands back πŸŽ€


✨ Input arguments ✨

  • -id Id (str,1); default=0 β€” the script id, it's how the script knows who it is πŸͺͺ
  • -handle Self (self,1) β€” a handle to self. yes it's holding its own hand, we love that for it 🫢
  • -disabled Disabled (bool,1); default=0 β€” turn this on and you're straight up disabling execution and piping. no running, no passing things along πŸ™ˆ
  • -i Surface (vtkPolyData,1) β€” the input surface. the star of the show πŸ‘‘
  • -ifile SurfaceInputFileName (str,1) β€” filename for the default Surface reader πŸ“‚
  • -matrix XyzToRasMatrixCoefficients (float,16); default=None β€” the coefficients of the XYZToRAS transform matrix. sixteen floats of pure transformation energy πŸ”₯
  • -invert InvertMatrix (bool,1); default=0 β€” inverts the XyzToRasMatrixCoefficients matrix. here's the important part, don't skip it: additional transforms to surface in RAS space require the inverse transform reverting the surface back to an axis aligned frame. it's giving "undo so you can redo" 😭
  • -ofile SurfaceOutputFileName (str,1) β€” filename for the default Surface writer ✍️

πŸ’œ Output arguments πŸ’œ

  • -id Id (str,1); default=0 β€” the script id again, still the script id, always the script id πŸͺͺ
  • -handle Self (self,1) β€” handle to self, again. consistency icon 🌈
  • -o Surface (vtkPolyData,1) β€” the output surface. the transformation is complete, she's in RAS now and she's flawless ⭐

πŸ’€ reminder bestie: -invert is the one with the long explanation. if you're doing additional transforms to a surface in RAS space, you need the inverse transform to revert the surface back to an axis aligned frame. that's not me being dramatic, that's just the facts 🫢

and that's the whole page, periodt πŸ’… written by the vmtksurfacetransformtoras 1.5 girlies, dated April 2026, and yes, obviously it lives under VMTKSURFACETRANSFORMTORAS(1) in the User Commands section. iykyk πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from