Packages

  • package root
    Definition Classes
    root
  • package scalismo
    Definition Classes
    root
  • package image

    Contains classes for representing discrete and continuous images as well as filters for filtering both types of images.

    Contains classes for representing discrete and continuous images as well as filters for filtering both types of images.

    In this library, the standard type of images are just functions, defined on some domain. There is also the more traditional discrete image type, which represents image data on a regular pixel/voxel grid.

    DiscreteImages are mainly used for reading/writing and simple manipulation of image values. The continuous representation of images is much more flexible and most method for manipulating images are defined only on this image type. A discrete image can be converted to a continuous image by using an interpolation procedure:

    val domain = StructuredPoints(Point(0,0), Vector(1,1), Index(255,255))
    val di = DiscreteImage(domain)(0)
    val discreteImage =  DiscreteImage(domain, (_ : Point[_2D]) => 1.0f)
    val continuousImage = discreteImage.interpolate(3)

    To get back the discrete representation, we can sample the image values on a regular grid:

    val newDomain = StructuredPoints(Point(0,0), Vector(1,1), Index(128,128))
    val resampledDiscreteImage = continuousImage.sample(domain, 0)
    Definition Classes
    scalismo
  • package filter
    Definition Classes
    image
  • CreateStructuredPoints
  • DiscreteImage
  • DiscreteImage1D
  • DiscreteImage2D
  • DiscreteImage3D
  • DiscreteImageDomain
  • DiscreteImageDomain1D
  • DiscreteImageDomain2D
  • DiscreteImageDomain3D
  • DiscreteImageOps
  • StructuredPoints
  • StructuredPoints1D
  • StructuredPoints2D
  • StructuredPoints3D

case class StructuredPoints2D(origin: Point[_2D], spacing: EuclideanVector[_2D], size: IntVector[_2D], phi: Double) extends StructuredPoints[_2D] with Product with Serializable

Linear Supertypes
Serializable, Product, StructuredPoints[_2D], PointSet[_2D], Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. StructuredPoints2D
  2. Serializable
  3. Product
  4. StructuredPoints
  5. PointSet
  6. Equals
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new StructuredPoints2D(origin: Point[_2D], spacing: EuclideanVector[_2D], size: IntVector[_2D], phi: Double)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def boundingBox: BoxDomain[_2D]

    a rectangular region that represents the area, which defines the bounding box of the points

    a rectangular region that represents the area, which defines the bounding box of the points

    Definition Classes
    StructuredPoints2DStructuredPointsPointSet
  6. def canEqual(a: Any): Boolean
    Definition Classes
    StructuredPointsPointSet → Equals
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  8. val dimensionality: Int

    the dimensionality of the domain

    the dimensionality of the domain

    Definition Classes
    StructuredPoints
  9. val directions: SquareMatrix[_2D]

    Direction cosine matrix

    Direction cosine matrix

    Definition Classes
    StructuredPoints2DStructuredPoints
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(a: Any): Boolean
    Definition Classes
    StructuredPointsPointSet → Equals → AnyRef → Any
  12. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  13. def findClosestPoint(pt: Point[_2D]): PointWithId[_2D]

    returns the closest point in this set to the given point

    returns the closest point in this set to the given point

    Definition Classes
    StructuredPointsPointSet
  14. def findNClosestPoints(pt: Point[_2D], n: Int): Seq[PointWithId[_2D]]

    returns the n closest points to the given set of points

    returns the n closest points to the given set of points

    Definition Classes
    StructuredPointsPointSet
  15. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. def hashCode(): Int
    Definition Classes
    StructuredPointsPointSet → AnyRef → Any
  17. def index(ptId: PointId): IntVector2D

    The index for the given point id

    The index for the given point id

    Definition Classes
    StructuredPoints2DStructuredPoints
  18. val indexToPhysicalCoordinateTransform: Transformation[_2D]

    the anisotropic similarity transform that maps between the index and physical coordinates

    the anisotropic similarity transform that maps between the index and physical coordinates

    Definition Classes
    StructuredPoints2DStructuredPoints
  19. def indexToPoint(i: IntVector[_2D]): Point2D
    Definition Classes
    StructuredPoints2DStructuredPoints
  20. def isDefinedAt(idx: IntVector[_2D]): Boolean

    true if the point is part of the grid points

    true if the point is part of the grid points

    Definition Classes
    StructuredPoints
  21. def isDefinedAt(pt: Point[_2D]): Boolean

    true if the point is part of the grid points

    true if the point is part of the grid points

    Definition Classes
    StructuredPointsPointSet
  22. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  26. def numberOfPoints: Int
    Definition Classes
    StructuredPointsPointSet
  27. val origin: Point[_2D]

    the first point (lower-left corner in 2D) of the grid

    the first point (lower-left corner in 2D) of the grid

    Definition Classes
    StructuredPoints2DStructuredPoints
  28. val phi: Double
  29. def point(id: PointId): Point[_2D]

    returns the points belonging to the given id

    returns the points belonging to the given id

    Definition Classes
    StructuredPointsPointSet
  30. def pointId(idx: IntVector[_2D]): PointId

    converts a grid index into a id that identifies a point

    converts a grid index into a id that identifies a point

    Definition Classes
    StructuredPoints2DStructuredPoints
  31. def pointId(pt: Point[_2D]): Option[PointId]

    returns the point id in case it is defined, None otherwise.

    returns the point id in case it is defined, None otherwise.

    Definition Classes
    StructuredPointsPointSet
  32. def pointIds: Iterator[PointId]
    Definition Classes
    PointSet
  33. def points: Iterator[Point2D]
    Definition Classes
    StructuredPoints2DPointSet
  34. def pointsInChunks(nbChunks: Int): IndexedSeq[Iterator[Point2D]]

    * Returns the domain points in n chunks.

    * Returns the domain points in n chunks. Each chunk of the points is given as an iterator

    The main idea behind this method is to be able to easily parallelize on the domain points, as parallel operations on a single iterator in Scala end up more costly than sequential access in our case. Using this method, one would parallelize on the Seq of iterators instead.

    Definition Classes
    StructuredPoints2DStructuredPointsPointSet
  35. def pointsWithId: Iterator[(Point[_2D], PointId)]
    Definition Classes
    PointSet
  36. def productElementNames: Iterator[String]
    Definition Classes
    Product
  37. val size: IntVector[_2D]

    the number of points in each direction

    the number of points in each direction

    Definition Classes
    StructuredPoints2DStructuredPoints
  38. val spacing: EuclideanVector[_2D]

    the distance (in mm) between two points in each space direction

    the distance (in mm) between two points in each space direction

    Definition Classes
    StructuredPoints2DStructuredPoints
  39. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  40. def toString(): String
    Definition Classes
    StructuredPoints2D → AnyRef → Any
  41. def transform(t: (Point[_2D]) => Point[_2D]): UnstructuredPoints[_2D]
    Definition Classes
    StructuredPoints2DPointSet
  42. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  43. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  44. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Serializable

Inherited from Product

Inherited from StructuredPoints[_2D]

Inherited from PointSet[_2D]

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped