|
| | DepthStableRegionComputer (const MorphologicalTree &tree, std::vector< Real > attr) |
| | Creates a detector backed by an owned increasing-attribute buffer.
|
| | DepthStableRegionComputer (const MorphologicalTree &tree, const Real *attr) |
| | Creates a detector backed by a non-owning attribute buffer.
|
| | DepthStableRegionComputer (const MorphologicalTree &tree) |
| | Creates a detector that lazily computes topology-only AREA.
|
|
| DepthStableRegionComputer (const DepthStableRegionComputer &)=default |
| | Copies the evaluator while preserving owned-buffer safety.
|
|
| DepthStableRegionComputer (DepthStableRegionComputer &&) noexcept=default |
| | Moves the evaluator while preserving its referenced tree.
|
|
DepthStableRegionComputer & | operator= (const DepthStableRegionComputer &)=delete |
| | Assignment is unavailable because the evaluator stores a tree reference.
|
|
DepthStableRegionComputer & | operator= (DepthStableRegionComputer &&)=delete |
| | Move assignment is unavailable because the evaluator stores a tree reference.
|
| std::vector< uint8_t > | computeByDepth (int depthWindowRadius) |
| | Computes the stable-region indicator vector for a positive depth-window radius.
|
| Real | getVariation (NodeId node) |
| | Returns the variation score currently associated with a node.
|
| Real | getAttribute (NodeId node) |
| | Returns the increasing attribute used by the stability measure.
|
| NodeId | nodeWithMinimumVariationInWindow (NodeId node) const |
| | Returns the node with minimum variation in the depth window.
|
| NodeId | ancestorInStabilityWindow (NodeId node) const |
| | Returns the ancestor used in the current depth window.
|
| NodeId | descendantInStabilityWindow (NodeId node) const |
| | Returns the descendant used in the current depth window.
|
| std::vector< Real > & | getVariations () |
| | Returns the current variation array, indexed by node slot.
|
| int | numNodes () const |
| | Returns the number of nodes selected in the last run.
|
| void | setMaxVariation (Real value) |
| | Sets the maximum accepted variation value.
|
| void | setMinAttribute (Real value) |
| | Sets the lower bound of the accepted attribute interval.
|
| void | setMaxAttribute (Real value) |
| | Sets the upper bound of the accepted attribute interval.
|
template<std::floating_point Real = float>
class mmcfilters::DepthStableRegionComputer< Real >
Detects stable regions from a topological depth window.
This class is the self-dual/topological counterpart of MSERComputer. depthWindowRadius is a number of tree edges, not an altitude distance:
- the ancestor of a node is obtained by climbing exactly depthWindowRadius parent links;
- the descendant is selected among nodes exactly depthWindowRadius child links below the node;
- when several descendants exist, the largest-area one is selected, with ties resolved by the smallest row-major pixel in the support;
- altitude is never read.
The variation value uses the same area-variation form as MSER:
variation(node) = (attr(ancestor(node)) - attr(descendant(node))) / attr(node)
and selected nodes are strict local minima of this variation. The default attribute is AREA, computed from topology only.
Definition at line 41 of file DepthStableRegionComputer.hpp.