Package

scalismo

image

Permalink

package image

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 = DiscreteImageDomain(Point(0,0), Vector(1,1), Index(255,255))
val di = DiscreteScalarImage(domain)(0)
val discreteImage =  DiscreteScalarImage(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 = DiscreteImageDomain(Point(0,0), Vector(1,1), Index(128,128))
val resampledDiscreteImage = continuousImage.sample(domain, 0)
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. image
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. sealed trait CreateDiscreteImageDomain[D <: Dim] extends AnyRef

    Permalink

    Typeclass for creating domains of arbitrary dimensionality

  2. class DifferentiableScalarImage[D <: Dim] extends ScalarImage[D]

    Permalink

    A scalar image that is once differentiable

  3. trait DiscreteImage[D <: Dim, Pixel] extends DiscreteField[D, Pixel]

    Permalink

    Basic interface for a discrete image of arbitrary Pixel type

    Basic interface for a discrete image of arbitrary Pixel type

    D

    The dimensionality of the image

    Pixel

    The type of the pixel (usually a scalar or a vector)

  4. abstract class DiscreteImageDomain[D <: Dim] extends DiscreteDomain[D] with Equals

    Permalink

    Defines points in D dimension which are aligned on a regular grid.

    Defines points in D dimension which are aligned on a regular grid.

    The grid points are defined by specifying an origin, a spacing between the grid points, and the size (number of points) in each direction.

    A global coordinate system is assumed, and all units are measured in mm.

    D

    The dimensionality of the domain

  5. case class DiscreteImageDomain1D(size: IntVector[_1D], indexToPhysicalCoordinateTransform: AnisotropicSimilarityTransformation[_1D]) extends DiscreteImageDomain[_1D] with Product with Serializable

    Permalink
  6. case class DiscreteImageDomain2D(size: IntVector[_2D], indexToPhysicalCoordinateTransform: AnisotropicSimilarityTransformation[_2D]) extends DiscreteImageDomain[_2D] with Product with Serializable

    Permalink
  7. case class DiscreteImageDomain3D(size: IntVector[_3D], indexToPhysicalCoordinateTransform: AnisotropicSimilarityTransformation[_3D]) extends DiscreteImageDomain[_3D] with Product with Serializable

    Permalink
  8. abstract class DiscreteScalarImage[D <: Dim, A] extends DiscreteScalarField[D, A] with DiscreteImage[D, A]

    Permalink

    A scalar valued discrete image.

    A scalar valued discrete image.

    D

    The dimensionality of the image

    A

    The type of the pixel (needs to implement Scalar).

  9. class ScalarImage[D <: Dim] extends ScalarField[D, Float]

    Permalink

    An image whose values are scalar.

Value Members

  1. object CreateDiscreteImageDomain

    Permalink
  2. object DifferentiableScalarImage extends Serializable

    Permalink

    Factory methods to create a differentiableScalarImage

  3. object DiscreteImageDomain

    Permalink

    Factory methods for creating DiscreteImageDomain objects

  4. object DiscreteScalarImage

    Permalink

    Factory methods for creating a new DiscreteScalarImage, as well as method to interpolate and resample images.

  5. object ScalarImage extends Serializable

    Permalink

    Factory methods for creating scalar images

  6. package filter

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped