StructuredPoints1D

scalismo.image.StructuredPoints1D
See theStructuredPoints1D companion object
case class StructuredPoints1D(origin: Point[_1D], spacing: EuclideanVector[_1D], size: IntVector[_1D], iVec: EuclideanVector[_1D]) extends StructuredPoints[_1D]

Attributes

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait PointSet[_1D]
trait Equals
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

override def boundingBox: BoxDomain[_1D]

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

Attributes

Definition Classes
override def index(linearIdx: PointId): IntVector[_1D]

The index for the given point id

The index for the given point id

Attributes

Definition Classes
override def indexToPoint(idx: IntVector[_1D]): Point[_1D]

Attributes

Definition Classes
override def pointId(idx: IntVector[_1D]): PointId

converts a grid index into a id that identifies a point

converts a grid index into a id that identifies a point

Attributes

Definition Classes

Attributes

Definition Classes
override def points: Iterator[Point1D]

Attributes

Definition Classes
override def pointsInChunks(nbChunks: Int): IndexedSeq[Iterator[Point1D]]

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.

  • 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.

Attributes

Definition Classes
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
Any

Attributes

Definition Classes

Inherited methods

override def canEqual(a: Any): Boolean

Attributes

Definition Classes
Inherited from:
StructuredPoints
def centerOfMass(implicit ndSpace: NDSpace[_1D]): Point[D]

Computes the center of moss of the points in this pointSet

Computes the center of moss of the points in this pointSet

Attributes

Inherited from:
PointSet

Attributes

Inherited from:
StructuredPoints
override def equals(a: 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
StructuredPoints -> PointSet -> Equals -> Any
Inherited from:
StructuredPoints
override def findClosestPoint(pt: Point[_1D]): PointWithId[D]

returns the closest point in this set to the given point

returns the closest point in this set to the given point

Attributes

Definition Classes
Inherited from:
StructuredPoints
override def findNClosestPoints(pt: Point[_1D], n: Int): Seq[PointWithId[D]]

returns the n closest points to the given set of points

returns the n closest points to the given set of points

Attributes

Definition Classes
Inherited from:
StructuredPoints
override def hashCode(): Int

Calculate a hash code value for the object.

Calculate a hash code value for the object.

The default hashing algorithm is platform dependent.

Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)) yet not be equal (o1.equals(o2) returns false). A degenerate implementation could always return 0. However, it is required that if two objects are equal (o1.equals(o2) returns true) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals method.

Attributes

Returns:

the hash code value for this object.

Definition Classes
Inherited from:
StructuredPoints
def isDefinedAt(idx: IntVector[_1D]): Boolean

true if the point is part of the grid points

true if the point is part of the grid points

Attributes

Inherited from:
StructuredPoints
override def isDefinedAt(pt: Point[_1D]): Boolean

true if the point is part of the grid points

true if the point is part of the grid points

Attributes

Definition Classes
Inherited from:
StructuredPoints
override def numberOfPoints: Int

Attributes

Definition Classes
Inherited from:
StructuredPoints
override def point(id: PointId): Point[D]

returns the points belonging to the given id

returns the points belonging to the given id

Attributes

Definition Classes
Inherited from:
StructuredPoints
override def pointId(pt: Point[_1D]): Option[PointId]

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

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

Attributes

Definition Classes
Inherited from:
StructuredPoints
def pointIds: Iterator[PointId]

Attributes

Inherited from:
PointSet

Attributes

Inherited from:
StructuredPoints
def pointsWithId: Iterator[(Point[D], PointId)]

Attributes

Inherited from:
PointSet
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

override val directions: SquareMatrix[_1D]

Direction cosine matrix

Direction cosine matrix

Attributes

Inherited fields

the dimensionality of the domain

the dimensionality of the domain

Attributes

Inherited from:
StructuredPoints