|
mmcfilters
Public API documentation
|
Detects stable regions from a topological depth window. More...
#include <DepthStableRegionComputer.hpp>
Public Types | |
| using | variation_value_type = Real |
| Floating-point type used to store variation scores. | |
Public Member Functions | |
| 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. | |
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:
depthWindowRadius parent links;depthWindowRadius child links below the node;NodeId;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.
| using mmcfilters::DepthStableRegionComputer< Real >::variation_value_type = Real |
Floating-point type used to store variation scores.
Definition at line 44 of file DepthStableRegionComputer.hpp.
|
inline |
Creates a detector backed by an owned increasing-attribute buffer.
| tree | Tree topology. |
| attr | Attribute requested by the operation. |
Definition at line 115 of file DepthStableRegionComputer.hpp.
|
inline |
Creates a detector backed by a non-owning attribute buffer.
| tree | Tree topology. |
| attr | Attribute requested by the operation. |
Definition at line 127 of file DepthStableRegionComputer.hpp.
|
inlineexplicit |
Creates a detector that lazily computes topology-only AREA.
| tree | Tree topology. |
Definition at line 138 of file DepthStableRegionComputer.hpp.
|
inline |
Returns the ancestor used in the current depth window.
| node | Node identifier. |
Definition at line 218 of file DepthStableRegionComputer.hpp.
|
inline |
Computes the stable-region indicator vector for a positive depth-window radius.
| depthWindowRadius | Positive depth-window radius in tree edges. |
Definition at line 155 of file DepthStableRegionComputer.hpp.
|
inline |
Returns the descendant used in the current depth window.
| node | Node identifier. |
Definition at line 229 of file DepthStableRegionComputer.hpp.
|
inline |
Returns the increasing attribute used by the stability measure.
| node | Node identifier. |
Definition at line 187 of file DepthStableRegionComputer.hpp.
|
inline |
Returns the variation score currently associated with a node.
| node | Node identifier. |
Definition at line 174 of file DepthStableRegionComputer.hpp.
|
inline |
Returns the current variation array, indexed by node slot.
Definition at line 239 of file DepthStableRegionComputer.hpp.
|
inline |
Returns the node with minimum variation in the depth window.
| node | Node identifier. |
Definition at line 205 of file DepthStableRegionComputer.hpp.
|
inline |
Returns the number of nodes selected in the last run.
Definition at line 249 of file DepthStableRegionComputer.hpp.
|
inline |
Sets the upper bound of the accepted attribute interval.
| value | Value. |
Definition at line 273 of file DepthStableRegionComputer.hpp.
|
inline |
Sets the maximum accepted variation value.
| value | Value. |
Definition at line 259 of file DepthStableRegionComputer.hpp.
|
inline |
Sets the lower bound of the accepted attribute interval.
| value | Value. |
Definition at line 266 of file DepthStableRegionComputer.hpp.