Packages

  • package root
    Definition Classes
    root
  • package scalismo
    Definition Classes
    root
  • package io
    Definition Classes
    scalismo
  • object ImageIO

    Implements methods for reading and writing D-dimensional images

    Implements methods for reading and writing D-dimensional images

    WARNING! WE ARE USING an LPS WORLD COORDINATE SYSTEM

    VTK file format does not indicate the orientation of the image. Therefore, when reading from VTK, we assume that it is in RAI orientation. Hence, no magic is done, the same information (coordinates) present in the VTK file header are directly mapped to our coordinate system.

    This is also the case when writing VTK. Our image domain information (origin, spacing ..) is mapped directly into the written VTK file header.

    This is however not the case for Nifti files! Nifti file headers contain an affine transform from the ijk image coordinates to an RAS World Coordinate System (therefore supporting different image orientations). In order to read Nifti files coherently, we need to adapt the obtained RAS coordinates to our LPS system :

    This is done by mirroring the first two dimensions of each point after applying the affine transform

    The same mirroring is done again when writing an image to the Nifti format.

    Important for oblique images : The Nifti standard supports oblique images, that is images with a bounding box rotated compared to the world dimensions. Scalismo does not support such images. For such images, we offer the user a possibility to resample the image to a domain aligned with the world dimensions and with an RAI orientation. The integrity of the oblique image will be contained in the resampled one. This functionality can be activated by setting a flag appropriately in the scalismo.io.ImageIO.read3DScalarImage method.

    Note on Nifti's qform and sform :

    As mentioned above, the Nifti header contains a transform from the unit ijk grid to the RAS world coordinates of the grid. This transform can be encoded in 2 entries of the Nifti header, the qform and the sform. In some files, these 2 entries can both be present, and in some cases could even indicate different transforms. In Scalismo, when such a case happens, we favour the sform entry by default. If you wish instead to favour the qform transform, you can do so by setting a flag appropriately in the scalismo.io.ImageIO.read3DScalarImage method.

    Documentation on orientation :

    http://www.grahamwideman.com/gw/brain/orientation/orientterms.htm

    http://www.slicer.org/slicerWiki/index.php/Coordinate_systems

    http://brainder.org/2012/09/23/the-nifti-file-format/

    Definition Classes
    io
  • object ScalarType extends Enumeration

    An enumeration comprising all the data types that we can read and write, in VTK and Nifti formats.

    An enumeration comprising all the data types that we can read and write, in VTK and Nifti formats.

    Definition Classes
    ImageIO
  • Val
  • Value
  • ValueOrdering
  • ValueSet

case class Val[O](vtkId: Int, niftiId: Short)(implicit evidence$1: Scalar[O], evidence$2: ClassTag[O]) extends ScalarType.Val with Product with Serializable

Attributes
protected
Linear Supertypes
Product, Equals, ScalarType.Val, ScalarType.Value, Serializable, Ordered[ScalarType.Value], Comparable[ScalarType.Value], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Val
  2. Product
  3. Equals
  4. Val
  5. Value
  6. Serializable
  7. Ordered
  8. Comparable
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Val(vtkId: Int, niftiId: Short)(implicit arg0: Scalar[O], arg1: ClassTag[O])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def +(v: ScalarType.Value): ScalarType.ValueSet
    Definition Classes
    Value
  4. def <(that: ScalarType.Value): Boolean
    Definition Classes
    Ordered
  5. def <=(that: ScalarType.Value): Boolean
    Definition Classes
    Ordered
  6. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  7. def >(that: ScalarType.Value): Boolean
    Definition Classes
    Ordered
  8. def >=(that: ScalarType.Value): Boolean
    Definition Classes
    Ordered
  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  11. def compare(that: ScalarType.Value): Int
    Definition Classes
    Value → Ordered
  12. def compareTo(that: ScalarType.Value): Int
    Definition Classes
    Ordered → Comparable
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(other: Any): Boolean
    Definition Classes
    Value → AnyRef → Any
  15. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  16. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. def hashCode(): Int
    Definition Classes
    Value → AnyRef → Any
  18. def id: Int
    Definition Classes
    Val → Value
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. val niftiId: Short
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. def productElementNames: Iterator[String]
    Definition Classes
    Product
  25. def readResolve(): AnyRef
    Attributes
    protected
    Definition Classes
    Val
  26. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  27. def toString(): String
    Definition Classes
    Val → AnyRef → Any
  28. val vtkId: Int
  29. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  30. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  31. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Product

Inherited from Equals

Inherited from ScalarType.Val

Inherited from ScalarType.Value

Inherited from Serializable

Inherited from Ordered[ScalarType.Value]

Inherited from Comparable[ScalarType.Value]

Inherited from AnyRef

Inherited from Any

Ungrouped