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 aPixelMaprepresenting 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, validateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
Method Details
-
getRoot
Description copied from class:ComponentTreeReturns the root component of this component tree. To be implemented by concrete subclasses.- Specified by:
getRootin classComponentTree<T>- Returns:
- the root component
-
getComponents
Description copied from class:ComponentTreeReturns an unordered collection of all tree components. To be implemented by concrete subclasses.- Specified by:
getComponentsin classComponentTree<T>- Returns:
- all tree components
-