mmcfilters
Public API documentation
Loading...
Searching...
No Matches
mmcfilters::DirectAttributeFilter< T > Class Template Reference

Direct attribute filter using reconstructed-parent altitude propagation. More...

#include <AttributeReconstructionFilters.hpp>

Public Types

using ReconstructionPolicy = DirectReconstruction
 Reconstruction policy implemented by this filter.

Public Member Functions

 DirectAttributeFilter (ValuedMorphologicalTreeView< T > valuedTree)
 Creates a direct filter over a valued-tree view.
 DirectAttributeFilter (const ValuedMorphologicalTree< T > &valuedTree)
 Creates a direct filter over an owning valued tree.
template<detail::NodePreservationDecisions Mask>
ImagePtr< T > applyDirectAttributeFilter (const Mask &nodePreservationMask) const
 Applies direct reconstruction under node-preservation decisions.

Detailed Description

template<AltitudeValue T>
class mmcfilters::DirectAttributeFilter< T >

Direct attribute filter using reconstructed-parent altitude propagation.

Template Parameters
TNode-altitude value type.

Definition at line 153 of file AttributeReconstructionFilters.hpp.

Member Typedef Documentation

◆ ReconstructionPolicy

template<AltitudeValue T>
using mmcfilters::DirectAttributeFilter< T >::ReconstructionPolicy = DirectReconstruction

Reconstruction policy implemented by this filter.

Definition at line 159 of file AttributeReconstructionFilters.hpp.

Constructor & Destructor Documentation

◆ DirectAttributeFilter() [1/2]

template<AltitudeValue T>
mmcfilters::DirectAttributeFilter< T >::DirectAttributeFilter ( ValuedMorphologicalTreeView< T > valuedTree)
inlineexplicit

Creates a direct filter over a valued-tree view.

Parameters
valuedTreeValued tree whose topology and altitudes drive reconstruction.

Definition at line 165 of file AttributeReconstructionFilters.hpp.

◆ DirectAttributeFilter() [2/2]

template<AltitudeValue T>
mmcfilters::DirectAttributeFilter< T >::DirectAttributeFilter ( const ValuedMorphologicalTree< T > & valuedTree)
inlineexplicit

Creates a direct filter over an owning valued tree.

Parameters
valuedTreeValued tree whose topology and altitudes drive reconstruction.

Definition at line 171 of file AttributeReconstructionFilters.hpp.

Member Function Documentation

◆ applyDirectAttributeFilter()

template<AltitudeValue T>
template<detail::NodePreservationDecisions Mask>
ImagePtr< T > mmcfilters::DirectAttributeFilter< T >::applyDirectAttributeFilter ( const Mask & nodePreservationMask) const
inlinenodiscard

Applies direct reconstruction under node-preservation decisions.

The root altitude is always retained, regardless of its mask decision.

Parameters
nodePreservationMaskDense mask where true preserves the node altitude.
Returns
Reconstructed image in the original altitude type.

Definition at line 180 of file AttributeReconstructionFilters.hpp.


The documentation for this class was generated from the following file: