DiscreteFeatureField

scalismo.statisticalmodel.asm.DiscreteFeatureField
See theDiscreteFeatureField companion object
class DiscreteFeatureField[D, DDomain <: (DiscreteDomain)](domain: DDomain[D], _values: IndexedSeq[DenseVector[Double]])(implicit evidence$1: NDSpace[D]) extends DiscreteField[D, DDomain, DenseVector[Double]]

Class of Discrete Fields where to each point, a DenseVector of arbitrary dimensionality is associated.

An example instance of such a class is the set of profile points and associated features in an Active Shape Model.

Attributes

Companion:
object
Graph
Supertypes
class DiscreteField[D, DDomain, DenseVector[Double]]
trait PartialFunction[PointId, DenseVector[Double]]
trait PointId => DenseVector[Double]
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

override def apply(id: PointId): DenseVector[Double]

Attributes

Definition Classes
DiscreteField -> Function1
override def isDefinedAt(id: PointId): Boolean

Attributes

Definition Classes
DiscreteField -> PartialFunction
override def values: Iterator[DenseVector[Double]]

Attributes

Definition Classes

Inherited methods

def andThen[C](k: PartialFunction[DenseVector[Double], C]): PartialFunction[A, C]

Attributes

Inherited from:
PartialFunction
override def andThen[C](k: DenseVector[Double] => C): PartialFunction[A, C]

Attributes

Definition Classes
PartialFunction -> Function1
Inherited from:
PartialFunction
def applyOrElse[A1 <: PointId, B1 >: DenseVector[Double]](x: A1, default: A1 => B1): B1

Attributes

Inherited from:
PartialFunction
def canEqual(other: Any): Boolean

Attributes

Inherited from:
DiscreteField
def compose[R](k: PartialFunction[R, PointId]): PartialFunction[R, B]

Attributes

Inherited from:
PartialFunction
def compose[A](g: A => PointId): A => R

Attributes

Inherited from:
Function1
def elementWise: ElementWiseExtractor[A, B]

Attributes

Inherited from:
PartialFunction
override def equals(other: Any): Boolean

Compares the receiver object (this) with the argument object (that) for equivalence.

Compares the receiver object (this) with the argument object (that) for equivalence.

Any implementation of this method should be an equivalence relation:

  • It is reflexive: for any instance x of type Any, x.equals(x) should return true.
  • It is symmetric: for any instances x and y of type Any, x.equals(y) should return true if and only if y.equals(x) returns true.
  • It is transitive: for any instances x, y, and z of type Any if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.

If you override this method, you should verify that your implementation remains an equivalence relation. Additionally, when overriding this method it is usually necessary to override hashCode to ensure that objects which are "equal" (o1.equals(o2) returns true) hash to the same scala.Int. (o1.hashCode.equals(o2.hashCode)).

Attributes

that

the object to compare against this object for equality.

Returns:

true if the receiver object is equivalent to the argument; false otherwise.

Definition Classes
Inherited from:
DiscreteField
def foreach(f: DenseVector[Double] => Unit): Unit

Attributes

Inherited from:
DiscreteField
def interpolate(interpolator: FieldInterpolator[D, DDomain, DenseVector[Double]]): Field[D, A]

Interpolates the discrete field using the given interpolator.

Interpolates the discrete field using the given interpolator.

Attributes

interpolator

Implements an interpolation scheme (e.g. Nearest Neighbor, B-Spline, ...)

Returns:

A continuous field of the same type.

Inherited from:
DiscreteField
def interpolateDifferentiable(interpolator: DifferentiableFieldInterpolator[D, DDomain, DenseVector[Double], EuclideanVector[D]])(implicit scalar: Scalar[DenseVector[Double]]): DifferentiableField[D, A]

Interpolates the discrete field using the given interpolator.

Interpolates the discrete field using the given interpolator.

Attributes

interpolator

Implements an interpolation scheme (e.g. Nearest Neighbor, B-Spline, ...)

Returns:

A continuous field of the same type.

Inherited from:
DiscreteField
def lift: A => Option[B]

Attributes

Inherited from:
PartialFunction
def map[B](f: DenseVector[Double] => B): DiscreteField[D, DDomain, B]

Attributes

Inherited from:
DiscreteField
def orElse[A1 <: PointId, B1 >: DenseVector[Double]](that: PartialFunction[A1, B1]): PartialFunction[A1, B1]

Attributes

Inherited from:
PartialFunction
def pointsWithIds: Iterator[(Point[D], PointId)]

Attributes

Inherited from:
DiscreteField
def pointsWithValues: Iterator[(Point[D], A)]

Attributes

Inherited from:
DiscreteField
def runWith[U](action: DenseVector[Double] => U): A => Boolean

Attributes

Inherited from:
PartialFunction
override def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns:

a string representation of the object.

Definition Classes
Function1 -> Any
Inherited from:
Function1
def transform(transformation: Transformation[D])(implicit canWarp: DomainWarp[D, DDomain], canWarpField: DiscreteFieldWarp[D, DDomain, DenseVector[Double]]): DiscreteField[D, DDomain, A]

Attributes

Inherited from:
DiscreteField
def unapply(a: PointId): Option[B]

Attributes

Inherited from:
PartialFunction
def valuesWithIds: Iterator[(A, PointId)]

Attributes

Inherited from:
DiscreteField

Inherited fields

val data: IndexedSeq[DenseVector[Double]]

Attributes

Inherited from:
DiscreteField