Class

scalismo.faces.numerics

ConjugateGradientPoissonSolver

Related Doc: package numerics

Permalink

class ConjugateGradientPoissonSolver[A] extends LinearSystemPoissonSolver[A]

conjugate gradient solver for a Poisson system, no preconditioning (only for very small systems, prefer Preconditioned CG)

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ConjugateGradientPoissonSolver
  2. LinearSystemPoissonSolver
  3. ImageDomainPoissonSolver
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ConjugateGradientPoissonSolver(tolerance: Double = 1e-6, maxIterations: Int = Int.MaxValue)(implicit arg0: ClassTag[A], vec: ComponentRepresentation[A])

    Permalink

Type Members

  1. case class ImageLinearization(order: IndexedSeq[(Int, Int)], reducedIndex: (Int, Int) ⇒ Int) extends Product with Serializable

    Permalink

    provides a linearization (ordering of (x, y) pairs) and reduced index for each (x, y) pair

    provides a linearization (ordering of (x, y) pairs) and reduced index for each (x, y) pair

    Attributes
    protected
    Definition Classes
    LinearSystemPoissonSolver

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def apply(image: PixelImage[A], mask: PixelImage[Boolean], rhs: PixelImage[A]): PixelImage[A]

    Permalink

    solve Poisson's equation in bounding box of mask

    solve Poisson's equation in bounding box of mask

    Definition Classes
    ImageDomainPoissonSolver
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def buildNegativeLaplaceMatrix(linearization: ImageLinearization, mask: PixelImage[Boolean], addElement: (Int, Int, Double) ⇒ Unit): Unit

    Permalink

    constructs a Laplace matrix, (-Laplace(f) is positive definite) calls addElement for each matrix element

    constructs a Laplace matrix, (-Laplace(f) is positive definite) calls addElement for each matrix element

    Attributes
    protected
    Definition Classes
    LinearSystemPoissonSolver
  7. def buildNegativeRHS(linearization: ImageLinearization, image: PixelImage[A], rhs: PixelImage[A], component: Int): DenseVector[Double]

    Permalink

    negative of righthand side: actually solves (-Laplace(f)) = -rhs

    negative of righthand side: actually solves (-Laplace(f)) = -rhs

    Attributes
    protected
    Definition Classes
    LinearSystemPoissonSolver
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  11. def findLinearization(mask: PixelImage[Boolean]): ImageLinearization

    Permalink

    find a good linearization order (currently select column major or row major only)

    find a good linearization order (currently select column major or row major only)

    Attributes
    protected
    Definition Classes
    LinearSystemPoissonSolver
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  13. def getNeighbours4(x: Int, y: Int): IndexedSeq[(Int, Int)]

    Permalink

    find 4-neighbourhood

    find 4-neighbourhood

    Attributes
    protected
    Definition Classes
    LinearSystemPoissonSolver
  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. def linearizeImage(linearization: ImageLinearization, image: PixelImage[A], component: Int): DenseVector[Double]

    Permalink
    Attributes
    protected
    Definition Classes
    LinearSystemPoissonSolver
  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  20. def reconstructImageComponent(solution: DenseVector[Double], linearization: ImageLinearization, image: PixelImage[A], component: Int): PixelImage[Double]

    Permalink
    Attributes
    protected
    Definition Classes
    LinearSystemPoissonSolver
  21. def solvePoisson(image: PixelImage[A], mask: PixelImage[Boolean], rhs: PixelImage[A]): PixelImage[A]

    Permalink

    solve Poisson's equation

    solve Poisson's equation

    image

    initial and boundary values, fixed values of f

    mask

    marks domain where solution is required, (true: fill-in trough equation (with f), false: keep fixed (boundary value))

    rhs

    right-hand side of Poisson equation

    Definition Classes
    ConjugateGradientPoissonSolverImageDomainPoissonSolver
  22. def solvePoissonInBoundingBox(image: PixelImage[A], mask: PixelImage[Boolean], rhs: PixelImage[A]): PixelImage[A]

    Permalink

    solve Poisson's equation in bounding box of mask

    solve Poisson's equation in bounding box of mask

    Definition Classes
    ImageDomainPoissonSolver
  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  25. final def wait(arg0: Long, arg1: Int): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from LinearSystemPoissonSolver[A]

Inherited from ImageDomainPoissonSolver[A]

Inherited from AnyRef

Inherited from Any

Ungrouped