object ModelMetrics
Implements utility functions for evaluating the quality of a StatisticalMeshModel
- Alphabetic
- By Inheritance
- ModelMetrics
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def generalization[D](pcaModel: PointDistributionModel[_3D, TriangleMesh], dc: DataCollection[_3D, TriangleMesh, EuclideanVector[_3D]])(implicit warper: DomainWarp[_3D, TriangleMesh]): Try[Double]
Returns the generalization metric of the Statistical Mesh Model, that is how well the model can represent unseen data
Returns the generalization metric of the Statistical Mesh Model, that is how well the model can represent unseen data
- pcaModel
Statistical Mesh Model to be evaluated
- dc
test data collection that is in correspondence with the model reference The implementation of this metric is inspired from : Styner, Martin A., et al. "Evaluation of 3D correspondence methods for model building." Information processing in medical imaging. Springer Berlin Heidelberg, 2003. For every mesh in the test data, we project the mesh into the model (that is find the closest shape in the model space to the given mesh) and compute the average mesh distance (see scalismo.mesh.MeshMetrics) between the mesh and the projection. To be able to perform the projection, it is important that the data collection is in correspondence with the model. The returned value is a scala.util.Try containing the average over all test data in case of success, or an Exception otherwise
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def specificity(pcaModel: PointDistributionModel[_3D, TriangleMesh], data: Iterable[TriangleMesh[_3D]], nbSamples: Int)(implicit rng: Random): Double
Returns the specificity metric of the Statistical Mesh Model, that is how close the model remains to the category of shapes it is supposed to represent
Returns the specificity metric of the Statistical Mesh Model, that is how close the model remains to the category of shapes it is supposed to represent
- pcaModel
model to be evaluated
- data
test data to verify specificity against
- nbSamples
number of samples drawn to compute the average The implementation of this metric is inspired from : Styner, Martin A., et al. "Evaluation of 3D correspondence methods for model building." Information processing in medical imaging. Springer Berlin Heidelberg, 2003. The general idea is as follows : 1 - sample a shape from the mesh model 2- compute the average mesh distance (see scalismo.mesh.MeshMetrics) of the sample to all elements of the given sequence of meshes and select the minimum distance These steps are then repeated nbSamples times and the average value is returned.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()