|
MorphologicalAttributeFilters
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. | |
| std::vector< uint8_t > | computeByDepth (int depthDelta) |
| Computes the stable-region indicator vector for a positive depth delta. | |
| Real | getVariation (NodeId node) |
| Returns the variation score currently associated with a node. | |
| Real | getAttribute (NodeId node) |
| Returns the increasing attribute used by the criterion. | |
| NodeId | nodeWithMinimumVariationInWindow (NodeId node) const |
| Returns the node with minimum variation in the depth window. | |
| NodeId | ascendantInStabilityWindow (NodeId node) const |
| Returns the ascendant 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 | getNumNodes () 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. depthDelta is a number of tree edges, not an altitude distance:
depthDelta parent links;depthDelta child links below the node;NodeId;The variation value uses the same area-variation form as MSER:
variation(node) = (attr(asc(node)) - attr(desc(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 40 of file DepthStableRegionComputer.hpp.
| using mmcfilters::DepthStableRegionComputer< Real >::variation_value_type = Real |
Floating-point type used to store variation scores.
Definition at line 43 of file DepthStableRegionComputer.hpp.
|
inline |
Creates a detector backed by an owned increasing-attribute buffer.
Definition at line 75 of file DepthStableRegionComputer.hpp.
|
inline |
Creates a detector backed by a non-owning attribute buffer.
Definition at line 84 of file DepthStableRegionComputer.hpp.
|
inlineexplicit |
Creates a detector that lazily computes topology-only AREA.
Definition at line 94 of file DepthStableRegionComputer.hpp.
|
inline |
Returns the ascendant used in the current depth window.
Definition at line 183 of file DepthStableRegionComputer.hpp.
|
inline |
Computes the stable-region indicator vector for a positive depth delta.
Definition at line 100 of file DepthStableRegionComputer.hpp.
|
inline |
Returns the descendant used in the current depth window.
Definition at line 188 of file DepthStableRegionComputer.hpp.
|
inline |
Returns the increasing attribute used by the criterion.
Definition at line 152 of file DepthStableRegionComputer.hpp.
|
inline |
Returns the number of nodes selected in the last run.
Definition at line 198 of file DepthStableRegionComputer.hpp.
|
inline |
Returns the variation score currently associated with a node.
Definition at line 130 of file DepthStableRegionComputer.hpp.
|
inline |
Returns the current variation array, indexed by node slot.
Definition at line 193 of file DepthStableRegionComputer.hpp.
|
inline |
Returns the node with minimum variation in the depth window.
Definition at line 164 of file DepthStableRegionComputer.hpp.
|
inline |
Sets the upper bound of the accepted attribute interval.
Definition at line 213 of file DepthStableRegionComputer.hpp.
|
inline |
Sets the maximum accepted variation value.
Definition at line 203 of file DepthStableRegionComputer.hpp.
|
inline |
Sets the lower bound of the accepted attribute interval.
Definition at line 208 of file DepthStableRegionComputer.hpp.