VMTKIMAGEREADER(1)

πŸ“¦ version 1.5.0, in ubuntu stonking

✨ NAME ✨

vmtkimagereader β€” bestie, it's a vmtk script, and yes it's literally called vmtkimagereader πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

Automatic piping vmtkimagereader Parsing options vmtkimagereader

vmtkimagereader : read an image and stores it in a vtkImageData object

Okay so that's the official little blurb, and here's the vibe: this thing takes your image, whatever format it's being dramatic in, and hands it back as a vtkImageData object. That's the whole main character moment. 🌟


πŸ“₯ Input arguments:

  • -id Id (str,1); default=0 β€” the script id, yeah it's here twice, she contains multitudes πŸ™ˆ
  • -handle Self (self,1) β€” a handle to self. self-care fr fr 🫢
  • -disabled Disabled (bool,1); default=0 β€” set this and execution and piping both get switched off. she's on strike πŸ’€
  • -f Format (str,1) in [vtkxml, vtk, dicom, raw, meta, tiff, png] β€” the file format, pick your fighter
  • -guessformat GuessFormat (bool,1); default=1 β€” guess the file format from the extension, detective mode on πŸ”
  • -useitk UseITKIO (bool,1); default=1 β€” use the ITKIO mechanism
  • -i Image (vtkImageData,1) β€” the input image, hi bestie πŸ‘‹
  • -ifile InputFileName (str,1) β€” the input file name
  • -prefix InputFilePrefix (str,1) β€” the input file prefix (e.g. foo_)
  • -pattern InputFilePattern (str,1) β€” the input file pattern (e.g. %s%04d.png)
  • -extent DataExtent (int,6); default=[-1, -1, -1, -1, -1, -1] β€” the 3D extent of the image β€” raw and png
  • -headersize HeaderSize (int,1) >= 0; default=0 β€” the size of the image header β€” raw only
  • -spacing DataSpacing (float,3); default=[1.0, 1.0, 1.0] β€” the spacing of the image β€” raw, tiff, png, itk
  • -origin DataOrigin (float,3); default=[0.0, 0.0, 0.0] β€” the origin of the image β€” raw, tiff, png, itk
  • -orientation DesiredOrientation (str,1) in [native, axial, coronal, sagittal]; default=native β€” the desired data orientation β€” itk only
  • -byteorder DataByteOrder (str,1) in [littleendian, bigendian]; default=littleendian β€” byte ordering β€” raw only
  • -scalartype DataScalarType (str,1) in [float, double, int, short, ushort, uchar]; default=float β€” scalar type β€” raw only
  • -filedimensionality FileDimensionality (int,1) >= 2 and <= 3; default=3 β€” dimensionality of the file to read β€” raw only
  • -flip Flip (bool,3); default=[0, 0, 0] β€” toggle flipping of the corresponding axis. three whole booleans, one per axis, go off πŸ‘‘
  • -autoorientdicom AutoOrientDICOMImage (bool,1); default=1 β€” flip a dicom stack in order to have a left-to-right, posterio-toanterior, inferior-to-superior image; this is based on the "image orientation (patient)" field in the dicom header. yes the header said what it said, we don't gatekeep 🩻
  • -ofile ImageOutputFileName (str,1) β€” filename for the default Image writer

πŸ“€ Output arguments:

  • -id Id (str,1); default=0 β€” the script id, again, iconic of her honestly ✨
  • -handle Self (self,1) β€” handle to self
  • -o Image (vtkImageData,1) β€” the output image, the moment we've all been waiting for πŸŽ€
  • -rastoijkmatrix RasToIjkMatrixCoefficients (float,16); default=[1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]
  • -xyztorasmatrix XyzToRasMatrixCoefficients (float,16); default=[1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]
heads up bestie πŸ’– the self and id options show up in both the input and the output lists, and -i / -o are their own thing. that's just how she is, no cap.

okay that's the whole page!! go read some images, you ate πŸ“βœ¨

this was vmtkimagereader version 1.5, dated April 2026, brought to you from the User Commands manual β€” mwah, ily, bye πŸ’œπŸ¦‹

πŸ“¦ where this page comes from