|
MorphologicalAttributeFilters
Public API documentation
|
Computes an Ultimate Attribute Opening by accumulating maximal contrasts. More...
#include <UltimateAttributeOpening.hpp>
Public Types | |
| using | attribute_value_type = Real |
| Floating-point type used for the input attribute buffer and criteria. | |
Public Member Functions | |
| UltimateAttributeOpening (const AltitudeView &view, const std::shared_ptr< Real[]> &attrs_increasing) | |
| Creates a UAO computation over a non-owning weighted view. | |
| UltimateAttributeOpening (const AltitudeView &view, const std::vector< Real > &attrs_increasing) | |
| Creates a UAO computation over a non-owning weighted view. | |
| UltimateAttributeOpening (const AltitudeView &view, const Real *attrs_increasing) | |
| Creates a UAO computation over a non-owning weighted view. | |
| UltimateAttributeOpening (const WeightedMorphologicalTree< T > &weighted, const std::shared_ptr< Real[]> &attrs_increasing) | |
| Creates a UAO computation over a borrowed weighted tree. | |
| UltimateAttributeOpening (const WeightedMorphologicalTree< T > &weighted, const std::vector< Real > &attrs_increasing) | |
| Creates a UAO computation over a borrowed weighted tree. | |
| UltimateAttributeOpening (const WeightedMorphologicalTree< T > &weighted, const Real *attrs_increasing) | |
| Creates a UAO computation over a borrowed weighted tree. | |
| void | execute (Real maxCriterion) |
| Executes UAO using all internal tree nodes as selectable candidates. | |
| void | execute (Real maxCriterion, const std::vector< uint8_t > &selectedForFiltering) |
| Executes UAO with an explicit node-selection mask. | |
| void | executeWithMSER (Real maxCriterion, AltitudeDiff< T > deltaMSER) |
| Executes UAO with an MSER-derived node-selection mask. | |
| void | executeWithDepthStability (Real maxCriterion, int depthDelta) |
| Executes UAO with a depth-stability node-selection mask. | |
| ImagePtr< T > | getMaxContrastImage () const |
| Returns the per-pixel maximum UAO contrast image. | |
| ImageInt32Ptr | getAssociatedImage () const |
| Returns the per-pixel associated attribute-index image. | |
| ImageUInt8Ptr | getAssociatedColorImage () const |
| Returns a color rendering of the associated-index image. | |
Computes an Ultimate Attribute Opening by accumulating maximal contrasts.
The object consumes an increasing attribute buffer indexed by dense internal NodeId and computes, for each image point, the maximum altitude contrast and the associated attribute index selected by the UAO traversal. The result is materialised through image-producing accessors after execute(...) or executeWithMSER(...).
Like other weighted-tree filter objects, it captures the tree mutation version at construction time and rejects public operations after topology mutation.
| T | Altitude type used by the weighted tree or weighted view. |
| Real | Attribute-buffer floating-point type. |
Definition at line 37 of file UltimateAttributeOpening.hpp.
| using mmcfilters::UltimateAttributeOpening< T, Real >::attribute_value_type = Real |
Floating-point type used for the input attribute buffer and criteria.
Definition at line 40 of file UltimateAttributeOpening.hpp.
|
inline |
Creates a UAO computation over a non-owning weighted view.
| view | Weighted tree view whose topology and altitude define the reconstruction domain. |
| attrs_increasing | Shared increasing-attribute buffer indexed by dense internal NodeId. |
Definition at line 181 of file UltimateAttributeOpening.hpp.
|
inline |
Creates a UAO computation over a non-owning weighted view.
| view | Weighted tree view whose topology and altitude define the reconstruction domain. |
| attrs_increasing | Increasing-attribute values indexed by dense internal NodeId. |
| std::invalid_argument | If attrs_increasing does not match the internal node slot count. |
Definition at line 196 of file UltimateAttributeOpening.hpp.
|
inline |
Creates a UAO computation over a non-owning weighted view.
| view | Weighted tree view whose topology and altitude define the reconstruction domain. |
| attrs_increasing | Non-null increasing-attribute buffer indexed by dense internal NodeId. |
| std::invalid_argument | If attrs_increasing is null or if the view topology is stale. |
Definition at line 209 of file UltimateAttributeOpening.hpp.
|
inline |
Creates a UAO computation over a borrowed weighted tree.
The weighted tree is borrowed; it must outlive this object.
| weighted | Weighted tree whose topology and altitude define the reconstruction domain. |
| attrs_increasing | Shared increasing-attribute buffer indexed by dense internal NodeId. |
Definition at line 231 of file UltimateAttributeOpening.hpp.
|
inline |
Creates a UAO computation over a borrowed weighted tree.
The weighted tree is borrowed; it must outlive this object.
| weighted | Weighted tree whose topology and altitude define the reconstruction domain. |
| attrs_increasing | Increasing-attribute values indexed by dense internal NodeId. |
| std::invalid_argument | If attrs_increasing does not match the internal node slot count. |
Definition at line 248 of file UltimateAttributeOpening.hpp.
|
inline |
Creates a UAO computation over a borrowed weighted tree.
The weighted tree is borrowed; it must outlive this object.
| weighted | Weighted tree whose topology and altitude define the reconstruction domain. |
| attrs_increasing | Non-null increasing-attribute buffer indexed by dense internal NodeId. |
Definition at line 263 of file UltimateAttributeOpening.hpp.
|
inline |
Executes UAO using all internal tree nodes as selectable candidates.
| maxCriterion | Maximum increasing-attribute threshold considered by the UAO traversal. |
| std::logic_error | If the tree topology changed after construction. |
Definition at line 278 of file UltimateAttributeOpening.hpp.
|
inline |
Executes UAO with an explicit node-selection mask.
| maxCriterion | Maximum increasing-attribute threshold considered by the UAO traversal. |
| selectedForFiltering | Dense internal-node mask marking selectable primitive nodes. |
| std::invalid_argument | If selectedForFiltering does not match the internal node slot count. |
| std::logic_error | If the tree topology changed after construction. |
Definition at line 295 of file UltimateAttributeOpening.hpp.
|
inline |
Executes UAO with a depth-stability node-selection mask.
| maxCriterion | Maximum increasing-attribute threshold considered by the UAO traversal. |
| depthDelta | Positive number of tree edges used to build the stability window. Altitude is not read by the stability selection. |
| std::invalid_argument | If depthDelta is not positive. |
| std::logic_error | If the tree topology changed after construction. |
Definition at line 333 of file UltimateAttributeOpening.hpp.
|
inline |
Executes UAO with an MSER-derived node-selection mask.
| maxCriterion | Maximum increasing-attribute threshold considered by the UAO traversal. |
| deltaMSER | Altitude delta used to compute the MSER stability mask. |
| std::logic_error | If this object was constructed from a view rather than a weighted tree owner, or if the tree topology changed after construction. |
Definition at line 313 of file UltimateAttributeOpening.hpp.
|
inline |
Returns a color rendering of the associated-index image.
getAssociatedImage(). | std::logic_error | If the tree topology changed after construction. |
Definition at line 382 of file UltimateAttributeOpening.hpp.
|
inline |
Returns the per-pixel associated attribute-index image.
| std::logic_error | If the tree topology changed after construction. |
Definition at line 364 of file UltimateAttributeOpening.hpp.
|
inline |
Returns the per-pixel maximum UAO contrast image.
T. | std::logic_error | If the tree topology changed after construction. |
Definition at line 346 of file UltimateAttributeOpening.hpp.