Class/Object

libcog.fields

SymmetricTensor

Related Docs: object SymmetricTensor | package fields

Permalink

class SymmetricTensor extends cogx.Vector

A symmetric, positive semidefinite, order-2 tensor in 2 dimensions. See the paper "An efficient method for tensor voting using steerable filters," Franken et al, 2006, for a description.

This is implemented as a vector for efficiency because the matrix representation is redundant. The matrix form of a symmetric tensor:

Axx    Axy

Axy    Ayy

is represented as a length 3 vector:

Axx

Axy

Ayy
Linear Supertypes
cogx.cogmath.algebra.real.Vector, Tensor, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SymmetricTensor
  2. Vector
  3. Tensor
  4. Serializable
  5. Serializable
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SymmetricTensor(stickTensor: StickTensor)

    Permalink

    Create a symmetric tensor from a stick tensor.

    Create a symmetric tensor from a stick tensor.

    stickTensor

    The stick tensor to convert to a symmetric tensor.

  2. new SymmetricTensor(stickness: Float, ballness: Float, orientation: Float)

    Permalink

    Create a symmetric tensor.

    Create a symmetric tensor.

    stickness

    Stickness of the tensor.

    ballness

    Ballness of the tensor.

    orientation

    Orientation of the tensor; must be in (0, Pi].

  3. new SymmetricTensor(vector: cogx.Vector)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. def !===(v: cogx.cogmath.algebra.real.Vector): Boolean

    Permalink
    Definition Classes
    Vector
  3. def !~==(v: cogx.cogmath.algebra.real.Vector): Boolean

    Permalink
    Definition Classes
    Vector
  4. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  5. def *(that: cogx.cogmath.algebra.real.Matrix): cogx.cogmath.algebra.real.Matrix

    Permalink
    Definition Classes
    Vector
  6. def *(s: Float): cogx.cogmath.algebra.real.Vector

    Permalink
    Definition Classes
    Vector
  7. def *=(s: Float): Unit

    Permalink
    Definition Classes
    Vector
  8. def +(that: SymmetricTensor): SymmetricTensor

    Permalink

    Add two symmetric tensors.

    Add two symmetric tensors.

    that

    Symmetric tensor to add to this.

  9. def +(v: cogx.cogmath.algebra.real.Vector): cogx.cogmath.algebra.real.Vector

    Permalink
    Definition Classes
    Vector
  10. def +(s: Float): cogx.cogmath.algebra.real.Vector

    Permalink
    Definition Classes
    Vector
  11. def +=(v: cogx.cogmath.algebra.real.Vector): Unit

    Permalink
    Definition Classes
    Vector
  12. def +=(s: Float): Unit

    Permalink
    Definition Classes
    Vector
  13. def -(v: cogx.cogmath.algebra.real.Vector): cogx.cogmath.algebra.real.Vector

    Permalink
    Definition Classes
    Vector
  14. def -(): cogx.cogmath.algebra.real.Vector

    Permalink
    Definition Classes
    Vector
  15. def -(s: Float): cogx.cogmath.algebra.real.Vector

    Permalink
    Definition Classes
    Vector
  16. def -=(v: cogx.cogmath.algebra.real.Vector): Unit

    Permalink
    Definition Classes
    Vector
  17. def -=(s: Float): Unit

    Permalink
    Definition Classes
    Vector
  18. def /(s: Float): cogx.cogmath.algebra.real.Vector

    Permalink
    Definition Classes
    Vector
  19. def /=(s: Float): Unit

    Permalink
    Definition Classes
    Vector
  20. def :*(v: cogx.cogmath.algebra.real.Vector): cogx.cogmath.algebra.real.Vector

    Permalink
    Definition Classes
    Vector
  21. def :*=(v: cogx.cogmath.algebra.real.Vector): Unit

    Permalink
    Definition Classes
    Vector
  22. def :/(v: cogx.cogmath.algebra.real.Vector): cogx.cogmath.algebra.real.Vector

    Permalink
    Definition Classes
    Vector
  23. def :/=(v: cogx.cogmath.algebra.real.Vector): Unit

    Permalink
    Definition Classes
    Vector
  24. def :=(v: cogx.cogmath.algebra.real.Vector): Unit

    Permalink
    Definition Classes
    Vector
  25. def :=(s: Float): Unit

    Permalink
    Definition Classes
    Vector
  26. def :\(v: cogx.cogmath.algebra.real.Vector): cogx.cogmath.algebra.real.Vector

    Permalink
    Definition Classes
    Vector
  27. def :\=(v: cogx.cogmath.algebra.real.Vector): Unit

    Permalink
    Definition Classes
    Vector
  28. def <(v: Float): cogx.cogmath.algebra.real.Vector

    Permalink
    Definition Classes
    Vector
  29. def <=(v: Float): cogx.cogmath.algebra.real.Vector

    Permalink
    Definition Classes
    Vector
  30. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  31. def ===(v: cogx.cogmath.algebra.real.Vector): Boolean

    Permalink
    Definition Classes
    Vector
  32. def >(v: Float): cogx.cogmath.algebra.real.Vector

    Permalink
    Definition Classes
    Vector
  33. def >=(v: Float): cogx.cogmath.algebra.real.Vector

    Permalink
    Definition Classes
    Vector
  34. def abs: cogx.cogmath.algebra.real.Vector

    Permalink
    Definition Classes
    Vector
  35. def apply(index: Int): Float

    Permalink
    Definition Classes
    Vector
  36. def argmax: Int

    Permalink
    Definition Classes
    Vector
  37. final def asArray: Array[Float]

    Permalink

    View this Vector as an array with full read and write access.

    View this Vector as an array with full read and write access.

    Definition Classes
    Vector
  38. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  39. def ballness: Float

    Permalink

    Ballness of the tensor.

  40. def canEqual(other: Any): Boolean

    Permalink

    Helper for equals.

    Helper for equals.

    Definition Classes
    Tensor
  41. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. def concat(that: cogx.cogmath.algebra.real.Vector): cogx.cogmath.algebra.real.Vector

    Permalink
    Definition Classes
    Vector
  43. def copy: cogx.cogmath.algebra.real.Vector

    Permalink
    Definition Classes
    Vector
  44. def dot(that: cogx.cogmath.algebra.real.Vector): Float

    Permalink

    Compute the dot product of "this" and "that".

    Compute the dot product of "this" and "that".

    Definition Classes
    Vector
  45. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  46. def equals(other: Any): Boolean

    Permalink

    Test "this" and "other" for deep equality.

    Test "this" and "other" for deep equality. Allows "==" to work.

    Definition Classes
    Tensor → AnyRef → Any
  47. def expand(bigSize: Int, borderFill: Boolean): cogx.cogmath.algebra.real.Vector

    Permalink

    Expand the vector, optionally extending the border into the expanded region.

    Expand the vector, optionally extending the border into the expanded region. This operation is a key part of the FFT. The new vector is of size "bigSize" element (0) of this is anchored at (0) in the larger vector. If "borderFill" is true, then the two edges of the vector are extended evenly in all directions, as though the bigger vector were actually a loop with opposite edges touching.

    Definition Classes
    Vector
  48. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  49. def flip: cogx.cogmath.algebra.real.Vector

    Permalink

    Reverses the order of the elements in this

    Reverses the order of the elements in this

    Definition Classes
    Vector
  50. def fold(initValue: Float)(f: (Float, Float) ⇒ Float): Float

    Permalink
    Definition Classes
    Vector
  51. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  52. def getData: Array[Float]

    Permalink

    Get the data in the tensor, flattened to a linear array.

    Get the data in the tensor, flattened to a linear array.

    Attributes
    protected[cogx]
    Definition Classes
    Vector
  53. def hashCode(): Int

    Permalink

    Required because of overriding equals.

    Required because of overriding equals.

    Definition Classes
    Tensor → AnyRef → Any
  54. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  55. def length: Int

    Permalink

    The number of "numbers" held in the tensor.

    The number of "numbers" held in the tensor.

    Definition Classes
    Tensor
  56. def map(f: (Float) ⇒ Float): cogx.cogmath.algebra.real.Vector

    Permalink
    Definition Classes
    Vector
  57. def mapSelf(f: (Float) ⇒ Float): Unit

    Permalink
    Definition Classes
    Vector
  58. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  59. def normL1: Float

    Permalink
    Definition Classes
    Vector
  60. def normL2: Float

    Permalink
    Definition Classes
    Vector
  61. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  62. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  63. def orientation: Float

    Permalink

    Orientation of the tensor, in (0, Pi].

  64. def outerProduct(that: cogx.cogmath.algebra.real.Vector): cogx.cogmath.algebra.real.Matrix

    Permalink
    Definition Classes
    Vector
  65. def print: Unit

    Permalink
    Definition Classes
    Vector
  66. def randomize: cogx.cogmath.algebra.real.Vector

    Permalink
    Definition Classes
    Vector
  67. def read(index: Int): Float

    Permalink

    Tensor accessor.

    Tensor accessor.

    Definition Classes
    VectorTensor
  68. def reciprocal: cogx.cogmath.algebra.real.Vector

    Permalink
    Definition Classes
    Vector
  69. def rectangularize: cogx.cogmath.algebra.real.Matrix

    Permalink
    Definition Classes
    Vector
  70. def rectify: cogx.cogmath.algebra.real.Vector

    Permalink
    Definition Classes
    Vector
  71. def reduce(f: (Float, Float) ⇒ Float): Float

    Permalink

    Reduce a Vector to a scalar using "f".

    Reduce a Vector to a scalar using "f".

    Definition Classes
    Vector
  72. def sgn: cogx.cogmath.algebra.real.Vector

    Permalink
    Definition Classes
    Vector
  73. def shape(rows: Int, columns: Int): cogx.cogmath.algebra.real.Matrix

    Permalink
    Definition Classes
    Vector
  74. def shape: cogx.cogmath.geometry.Shape

    Permalink

    Shape of the vector.

    Shape of the vector.

    Definition Classes
    VectorTensor
  75. def shiftCyclic(delta: Int): cogx.cogmath.algebra.real.Vector

    Permalink

    Rotates the elements of a vector, wrapping around the left side to the right side.

    Rotates the elements of a vector, wrapping around the left side to the right side.

    The rotation is specified by "delta"; for example, delta=2 would cause the element at location (0) to be moved to location (2). Returns the rotated vector. This was added in support of the LowPassFunction kernel, and because Matrix has a similar method. Not currently tested. -RJC XXX

    Definition Classes
    Vector
  76. def size: Int

    Permalink
    Definition Classes
    Vector
  77. def sort: cogx.cogmath.algebra.real.Vector

    Permalink

    Sort vector elements in ascending order (creates new Vector, "this" unchanged).

    Sort vector elements in ascending order (creates new Vector, "this" unchanged).

    Definition Classes
    Vector
  78. def stickness: Float

    Permalink

    Stickness of the tensor.

  79. def subvector(indexRange: Range): cogx.cogmath.algebra.real.Vector

    Permalink
    Definition Classes
    Vector
  80. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  81. def toArray: Array[Float]

    Permalink

    Convert Vector to an array of doubles (copy).

    Convert Vector to an array of doubles (copy).

    Definition Classes
    Vector
  82. def toString(): String

    Permalink
    Definition Classes
    Vector → AnyRef → Any
  83. def transpose: cogx.cogmath.algebra.real.Matrix

    Permalink
    Definition Classes
    Vector
  84. def trim(smallSize: Int): cogx.cogmath.algebra.real.Vector

    Permalink

    Trim "this" to a Vector of length smallSize.

    Trim "this" to a Vector of length smallSize.

    Definition Classes
    Vector
  85. def unary_-(): cogx.cogmath.algebra.real.Vector

    Permalink
    Definition Classes
    Vector
  86. def update(index: Int, value: Float): Unit

    Permalink
    Definition Classes
    Vector
  87. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  88. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  89. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  90. def ~==(v: cogx.cogmath.algebra.real.Vector): Boolean

    Permalink
    Definition Classes
    Vector

Inherited from Tensor

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped