Module imagingbook.common
Class ComponentTreeLinearTime<T>
java.lang.Object
imagingbook.common.mser.components.ComponentTree<T>
imagingbook.common.mser.components.ComponentTreeLinearTime<T>
- Type Parameters:
T
- the type of properties to be attached to components
This class implements the "linear-time" ("local flooding") component tree algorithm described in [1]. See Section 26.2.3 of [2] for a detailed description (Algs. 26.3 - 26.4).
[1] D. Nister and H. Stewenius, "Linear Time Maximally Stable Extremal Regions", Computer Vision - ECCV 2008. pp.
183-196, Springer Berlin/Heidelberg (2008).
[2] W. Burger, M.J. Burge, Digital Image Processing – An Algorithmic Introduction, 3rd ed, Springer
(2022).
- Version:
- 2022/11/19
-
Nested Class Summary
Nested classes/interfaces inherited from class imagingbook.common.mser.components.ComponentTree
ComponentTree.Method
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor, creates a new component tree from aPixelMap
representing a gray-level image. -
Method Summary
Modifier and TypeMethodDescriptionReturns an unordered collection of all tree components.getRoot()
Returns the root component of this component tree.Methods inherited from class imagingbook.common.mser.components.ComponentTree
from, from, from, getLeaves, iterator, toString, validate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
Method Details
-
getRoot
Description copied from class:ComponentTree
Returns the root component of this component tree. To be implemented by concrete subclasses.- Specified by:
getRoot
in classComponentTree<T>
- Returns:
- the root component
-
getComponents
Description copied from class:ComponentTree
Returns an unordered collection of all tree components. To be implemented by concrete subclasses.- Specified by:
getComponents
in classComponentTree<T>
- Returns:
- all tree components
-