mmcfilters
Public API documentation
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
mmcfilters::EdgeSaliencyMap< Value > Struct Template Reference

Edge-indexed saliency map induced by a morphological hierarchy. More...

#include <HierarchySaliencyMap.hpp>

Public Member Functions

std::size_t size () const noexcept
 Returns the number of edge values.
 
bool empty () const noexcept
 Returns whether the edge map has no values.
 

Public Attributes

int numRows = 0
 Number of rows in the image grid.
 
int numColumns = 0
 Number of columns in the image grid.
 
double adjacencyRadius = 0.0
 Radius of the adjacency used to enumerate the edges.
 
std::vector< NodeIdsources
 Source pixel identifier of each undirected edge.
 
std::vector< NodeIdtargets
 Target pixel identifier of each undirected edge.
 
std::vector< Valuevalues
 Saliency value parallel to sources and targets.
 

Detailed Description

template<class Value>
struct mmcfilters::EdgeSaliencyMap< Value >

Edge-indexed saliency map induced by a morphological hierarchy.

The arrays are parallel: sources[i], targets[i], and values[i] describe one undirected image-domain graph edge and its saliency value. The edge set is generated by the forward-only half of the supplied adjacency relation, so each undirected edge appears exactly once.

Definition at line 34 of file HierarchySaliencyMap.hpp.

Member Function Documentation

◆ empty()

template<class Value >
bool mmcfilters::EdgeSaliencyMap< Value >::empty ( ) const
inlinenoexcept

Returns whether the edge map has no values.

Returns
Whether the edge map has no values.

Definition at line 60 of file HierarchySaliencyMap.hpp.

◆ size()

template<class Value >
std::size_t mmcfilters::EdgeSaliencyMap< Value >::size ( ) const
inlinenoexcept

Returns the number of edge values.

Returns
The number of edge values.

Definition at line 53 of file HierarchySaliencyMap.hpp.

Member Data Documentation

◆ adjacencyRadius

template<class Value >
double mmcfilters::EdgeSaliencyMap< Value >::adjacencyRadius = 0.0

Radius of the adjacency used to enumerate the edges.

Definition at line 40 of file HierarchySaliencyMap.hpp.

◆ numColumns

template<class Value >
int mmcfilters::EdgeSaliencyMap< Value >::numColumns = 0

Number of columns in the image grid.

Definition at line 38 of file HierarchySaliencyMap.hpp.

◆ numRows

template<class Value >
int mmcfilters::EdgeSaliencyMap< Value >::numRows = 0

Number of rows in the image grid.

Definition at line 36 of file HierarchySaliencyMap.hpp.

◆ sources

template<class Value >
std::vector<NodeId> mmcfilters::EdgeSaliencyMap< Value >::sources

Source pixel identifier of each undirected edge.

Definition at line 42 of file HierarchySaliencyMap.hpp.

◆ targets

template<class Value >
std::vector<NodeId> mmcfilters::EdgeSaliencyMap< Value >::targets

Target pixel identifier of each undirected edge.

Definition at line 44 of file HierarchySaliencyMap.hpp.

◆ values

template<class Value >
std::vector<Value> mmcfilters::EdgeSaliencyMap< Value >::values

Saliency value parallel to sources and targets.

Definition at line 46 of file HierarchySaliencyMap.hpp.


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