NormalDirectionFeatureExtractor

scalismo.statisticalmodel.asm.NormalDirectionFeatureExtractor
See theNormalDirectionFeatureExtractor companion object
case class NormalDirectionFeatureExtractor(numberOfPoints: Int, spacing: Double, ioMetadata: IOMetadata) extends FeatureExtractor

Attributes

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait (PreprocessedImage, Point[_3D], TriangleMesh[_3D], PointId) => Option[DenseVector[Double]]
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

override def apply(image: PreprocessedImage, point: Point[_3D], mesh: TriangleMesh[_3D], profilePointId: PointId): Option[DenseVector[Double]]

Actually extracts features from an image. The image and featurePoint arguments are arguably necessary for all feature extractor implementations. The additional two parameters (mesh and point id) are passed in because the feature extractor might need that information. For instance, the NormalDirectionFeatureExtractor needs that information to determine the "spatial orientation" of the line on which the image points to be examined have to lie.

Actually extracts features from an image. The image and featurePoint arguments are arguably necessary for all feature extractor implementations. The additional two parameters (mesh and point id) are passed in because the feature extractor might need that information. For instance, the NormalDirectionFeatureExtractor needs that information to determine the "spatial orientation" of the line on which the image points to be examined have to lie.

Attributes

featurePoint

the point in space to extract features at

image

the image to extract features in

mesh

a mesh instance in correspondence with the image

profilePointId

a point id on the mesh, corresponding to a profiled point id.

Definition Classes
FeatureExtractor -> Function4
override def featurePoints(mesh: TriangleMesh[_3D], profilePointId: PointId, centerPoint: Point[_3D]): Option[IndexedSeq[Point[_3D]]]

Return the points at which feature components are extracted for a given mesh and point. This is mainly intended for visualization, and only really makes sense if there exists a one-to-one correspondence between such points and the actual feature components returned by the apply().

Return the points at which feature components are extracted for a given mesh and point. This is mainly intended for visualization, and only really makes sense if there exists a one-to-one correspondence between such points and the actual feature components returned by the apply().

In other words: if a particular implementation uses a method for determining features where there is no correspondence between the feature components and particular points, the method should return None. Otherwise, it should return Some(IndexedSeq(...)), where the length of the sequence matches the length of the feature vector.

For the difference between profilePointId and featurePoint, see the documentation of the apply method.

Attributes

featurePoint

the actual point in space where the features are to be extracted

mesh

the mesh to determine the feature points for

profilePointId

the profile point id to determine the feature points for

Returns:

a sequence of points, or None if there is no sensible correspondence between feature and points, as outlined above.

Definition Classes

Inherited methods

def curried: T1 => T2 => T3 => T4 => R

Attributes

Inherited from:
Function4
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
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
Function4 -> Any
Inherited from:
Function4
def tupled: ((T1, T2, T3, T4)) => R

Attributes

Inherited from:
Function4