Module imagingbook.common
Class LucasKanadeInverseMatcher
java.lang.Object
imagingbook.common.image.matching.lucaskanade.LucasKanadeMatcher
imagingbook.common.image.matching.lucaskanade.LucasKanadeInverseMatcher
Lucas-Kanade elastic "Inverse Compositional" matcher, as described in [1]. See Sec. 24.3 (Alg. 4.2) of [2] for
additional details.
[1] Simon Baker and Iain Matthews, "Lucas-Kanade 20 Years On: A Unifying Framework: Part 1", CMU-RI-TR-02-16 (2002)
[2] W. Burger, M.J. Burge, Digital Image Processing – An Algorithmic Introduction, 3rd ed, Springer
(2022).
- Version:
- 2014/02/08
-
Nested Class Summary
Nested classes/interfaces inherited from class imagingbook.common.image.matching.lucaskanade.LucasKanadeMatcher
LucasKanadeMatcher.Parameters -
Constructor Summary
ConstructorsConstructorDescriptionConstructor using default parameters.Constructor. -
Method Summary
Modifier and TypeMethodDescriptiondoubleMeasures the RMS intensity difference between the reference image R and the patch in the search image I defined by the current warp Tp.booleanChecks if the matcher has converged.Performs a single matching iteration on the given image pair (I, R).Methods inherited from class imagingbook.common.image.matching.lucaskanade.LucasKanadeMatcher
getIteration, getMatch, getReferenceMappingTo, getReferencePoints
-
Constructor Details
-
LucasKanadeInverseMatcher
public LucasKanadeInverseMatcher(FloatProcessor I, FloatProcessor R, LucasKanadeMatcher.Parameters params) Constructor.- Parameters:
I- the search image (of typeFloatProcessor).R- the reference image (of typeFloatProcessor)params- a parameter object of typeLucasKanadeMatcher.Parameters.
-
LucasKanadeInverseMatcher
Constructor using default parameters.- Parameters:
I- the search image (of typeFloatProcessor).R- the reference image (of typeFloatProcessor)
-
-
Method Details
-
iterateOnce
Description copied from class:LucasKanadeMatcherPerforms a single matching iteration on the given image pair (I, R).- Specified by:
iterateOncein classLucasKanadeMatcher- Parameters:
Tp- the warp transformation from the reference image R to the initial search patch, assuming that R is centered at the coordinate origin!- Returns:
- a new warp transformation (again assuming that R is centered at the coordinate origin) or null if the iteration was unsuccessful.
-
hasConverged
Description copied from class:LucasKanadeMatcherChecks if the matcher has converged.- Specified by:
hasConvergedin classLucasKanadeMatcher- Returns:
- true if minimization criteria have been reached.
-
getRmsError
Description copied from class:LucasKanadeMatcherMeasures the RMS intensity difference between the reference image R and the patch in the search image I defined by the current warp Tp.- Specified by:
getRmsErrorin classLucasKanadeMatcher- Returns:
- the RMS error under the current warp
-