VMTKSURFACETRANSFORMTORAS(1)
π 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 β¨
-idId (str,1); default=0β the script id, it's how the script knows who it is πͺͺ-handleSelf (self,1) β a handle to self. yes it's holding its own hand, we love that for it π«Ά-disabledDisabled (bool,1); default=0β turn this on and you're straight up disabling execution and piping. no running, no passing things along π-iSurface (vtkPolyData,1) β the input surface. the star of the show π-ifileSurfaceInputFileName (str,1) β filename for the default Surface reader π-matrixXyzToRasMatrixCoefficients (float,16); default=Noneβ the coefficients of the XYZToRAS transform matrix. sixteen floats of pure transformation energy π₯-invertInvertMatrix (bool,1); default=0β inverts theXyzToRasMatrixCoefficientsmatrix. 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" π-ofileSurfaceOutputFileName (str,1) β filename for the default Surface writer βοΈ
π Output arguments π
-idId (str,1); default=0β the script id again, still the script id, always the script id πͺͺ-handleSelf (self,1) β handle to self, again. consistency icon π-oSurface (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
- 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