|
mmcfilters
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 thresholds. | |
Public Member Functions | |
| UltimateAttributeOpening (const AltitudeView &view, const std::shared_ptr< Real[]> &attrs_increasing) | |
| Creates a UAO computation over a non-owning valued-tree view. | |
| UltimateAttributeOpening (const AltitudeView &view, const std::vector< Real > &attrs_increasing) | |
| Creates a UAO computation over a non-owning valued-tree view. | |
| UltimateAttributeOpening (const AltitudeView &view, const Real *attrs_increasing) | |
| Creates a UAO computation over a non-owning valued-tree view. | |
| UltimateAttributeOpening (const ValuedMorphologicalTree< T > &valuedTree, const std::shared_ptr< Real[]> &attrs_increasing) | |
| Creates a UAO computation over a borrowed valued tree. | |
| UltimateAttributeOpening (const ValuedMorphologicalTree< T > &valuedTree, const std::vector< Real > &attrs_increasing) | |
| Creates a UAO computation over a borrowed valued tree. | |
| UltimateAttributeOpening (const ValuedMorphologicalTree< T > &valuedTree, const Real *attrs_increasing) | |
| Creates a UAO computation over a borrowed valued tree. | |
| ~UltimateAttributeOpening ()=default | |
| Destroys the ultimate-attribute-opening evaluator. | |
| void | execute (Real maximumAttributeThreshold) |
| Executes UAO using all internal tree nodes as selectable candidates. | |
| void | execute (Real maximumAttributeThreshold, const std::vector< uint8_t > &selectedForFiltering) |
| Executes UAO with an explicit node-selection mask. | |
| void | executeWithMSER (Real maximumAttributeThreshold, AltitudeDifference< T > altitudeWindowRadius) |
| Executes UAO with an MSER-derived node-selection mask. | |
| void | executeWithDepthStability (Real maximumAttributeThreshold, int depthWindowRadius) |
| 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 valued-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 valued tree or valued-tree view. |
| Real | Attribute-buffer floating-point type. |
Definition at line 38 of file UltimateAttributeOpening.hpp.
| using mmcfilters::UltimateAttributeOpening< T, Real >::attribute_value_type = Real |
Floating-point type used for the input attribute buffer and thresholds.
Definition at line 41 of file UltimateAttributeOpening.hpp.
|
inline |
Creates a UAO computation over a non-owning valued-tree view.
| view | Valued tree view whose topology and altitude define the reconstruction domain. |
| attrs_increasing | Shared increasing-attribute buffer indexed by dense internal NodeId. |
Definition at line 250 of file UltimateAttributeOpening.hpp.
|
inline |
Creates a UAO computation over a non-owning valued-tree view.
| view | Valued 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 265 of file UltimateAttributeOpening.hpp.
|
inline |
Creates a UAO computation over a non-owning valued-tree view.
| view | Valued 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 278 of file UltimateAttributeOpening.hpp.
|
inline |
Creates a UAO computation over a borrowed valued tree.
The valued tree is borrowed; it must outlive this object.
| valuedTree | Valued tree whose topology and altitude define the reconstruction domain. |
| attrs_increasing | Shared increasing-attribute buffer indexed by dense internal NodeId. |
Definition at line 296 of file UltimateAttributeOpening.hpp.
|
inline |
Creates a UAO computation over a borrowed valued tree.
The valued tree is borrowed; it must outlive this object.
| valuedTree | Valued 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 313 of file UltimateAttributeOpening.hpp.
|
inline |
Creates a UAO computation over a borrowed valued tree.
The valued tree is borrowed; it must outlive this object.
| valuedTree | Valued tree whose topology and altitude define the reconstruction domain. |
| attrs_increasing | Non-null increasing-attribute buffer indexed by dense internal NodeId. |
Definition at line 328 of file UltimateAttributeOpening.hpp.
|
inline |
Executes UAO using all internal tree nodes as selectable candidates.
| maximumAttributeThreshold | Maximum increasing-attribute threshold considered by the UAO traversal. |
| std::logic_error | If the tree topology changed after construction. |
Definition at line 346 of file UltimateAttributeOpening.hpp.
|
inline |
Executes UAO with an explicit node-selection mask.
| maximumAttributeThreshold | 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 363 of file UltimateAttributeOpening.hpp.
|
inline |
Executes UAO with a depth-stability node-selection mask.
| maximumAttributeThreshold | Maximum increasing-attribute threshold considered by the UAO traversal. |
| depthWindowRadius | Positive number of tree edges used to build the stability window. Altitude is not read by the stability selection. |
| std::invalid_argument | If depthWindowRadius is not positive. |
| std::logic_error | If the tree topology changed after construction. |
Definition at line 401 of file UltimateAttributeOpening.hpp.
|
inline |
Executes UAO with an MSER-derived node-selection mask.
| maximumAttributeThreshold | Maximum increasing-attribute threshold considered by the UAO traversal. |
| altitudeWindowRadius | Radius of the altitude-based stability window. |
| std::logic_error | If this object was constructed from a view rather than a valued tree owner, or if the tree topology changed after construction. |
Definition at line 381 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 449 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 431 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 413 of file UltimateAttributeOpening.hpp.