class_docstr: A medpy header object.
  
  Stores spacing, offset/origin, direction, and possibly further meta information.
  Provide at least one of the parameters. Missing information is extracted from
  the ``sitkimage`` or, if not supplied, set to a default value. 
  
  Parameters
  ----------
  spacing : tuple of floats
      the image's voxel spacing
      defaults to a tuple of `1.0`s
  offset : tuple of floats
      the image's offset/origin
      defaults to a tuple of `0.0`s
  direction : ndarray
      the image's affine transformation matrix
      must be of square shape
      default to the identity matrix
  sitkimage : sitk.Image
      the simple itk image as loaded
class_docstr_tok: ["A","medpy","header","object",".","Stores","spacing",",","offset\/origin",",","direction",",","and","possibly","further","meta","information",".","Provide","at","least","one","of","the","parameters",".","Missing","information","is","extracted","from","the","``","sitkimage","``","or",",","if","not","supplied",",","set","to","a","default","value",".","Parameters","--","--","--","--","--","spacing",":","tuple","of","floats","the","image","'s","voxel","spacing","defaults","to","a","tuple","of","`","1.0","`","s","offset",":","tuple","of","floats","the","image","'s","offset\/origin","defaults","to","a","tuple","of","`","0.0","`","s","direction",":","ndarray","the","image","'s","affine","transformation","matrix","must","be","of","square","shape","default","to","the","identity","matrix","sitkimage",":","sitk.Image","the","simple","itk","image","as","loaded"]
docstr: Get image's direction.
  
  Returns
  -------
  direction : ndarray
      the image's direction / affine transformation matrix
      of square shape
docstr_tok: ["Get","image","'s","direction",".","Returns","--","--","--","-","direction",":","ndarray","the","image","'s","direction","\/","affine","transformation","matrix","of","square","shape"]
code: def get_direction(self):
      """
      Get image's direction.
  
      Returns
      -------
      direction : ndarray
          the image's direction / affine transformation matrix
          of square shape
      """
      return self.direction
  
imports: import warnings
  import numpy
  from ..core import Logger
label_desc: Use image node_id 9 for calling the Header obj's underlying member method code with example usage: obj.get_direction() and returns: self