MorphologicalAttributeFilters
Public API documentation
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
mmcfilters::IncrementalNodeContourMap Struct Reference

Per-node incremental contour edges induced by a hierarchy. More...

#include <HierarchySaliencyMapProjection.hpp>

Public Member Functions

std::size_t size () const noexcept
 Returns the total number of stored contour edges.
 
bool empty () const noexcept
 Returns whether no contour edge is stored.
 
std::size_t nodeBegin (NodeId nodeId) const
 Returns the inclusive edge offset for nodeId.
 
std::size_t nodeEnd (NodeId nodeId) const
 Returns the exclusive edge offset for nodeId.
 
std::size_t nodeSize (NodeId nodeId) const
 Returns the number of contour edges owned by nodeId.
 

Public Attributes

int numRows = 0
 Number of rows in the proper-part grid.
 
int numColumns = 0
 Number of columns in the proper-part grid.
 
int numNodeSlots = 0
 Number of slots in the dense node-id domain.
 
double adjacencyRadius = 0.0
 Radius of the adjacency used to enumerate the edges.
 
std::vector< std::size_t > offsets
 CSR-style boundaries of the edge slice owned by each node.
 
std::vector< NodeIdsources
 Source pixel ids grouped by boundary-owning node.
 
std::vector< NodeIdtargets
 Target pixel ids parallel to sources.
 

Detailed Description

Per-node incremental contour edges induced by a hierarchy.

For a node u, the slice sources[offsets[u]:offsets[u + 1]] and targets[offsets[u]:offsets[u + 1]] stores exactly the transition adjacency edges whose endpoint smallest nodes are distinct and whose endpoint-smallest-node LCA is u. Edges whose endpoints already belong to the same finest region are omitted; in the full formal saliency map they have the implicit base value 0.

Definition at line 106 of file HierarchySaliencyMapProjection.hpp.

Member Function Documentation

◆ empty()

bool mmcfilters::IncrementalNodeContourMap::empty ( ) const
inlinenoexcept

Returns whether no contour edge is stored.

Returns
Whether no contour edge is stored.

Definition at line 134 of file HierarchySaliencyMapProjection.hpp.

◆ nodeBegin()

std::size_t mmcfilters::IncrementalNodeContourMap::nodeBegin ( NodeId  nodeId) const
inline

Returns the inclusive edge offset for nodeId.

Parameters
nodeIdDense internal node identifier.
Returns
The inclusive edge offset for nodeId.

Definition at line 142 of file HierarchySaliencyMapProjection.hpp.

◆ nodeEnd()

std::size_t mmcfilters::IncrementalNodeContourMap::nodeEnd ( NodeId  nodeId) const
inline

Returns the exclusive edge offset for nodeId.

Parameters
nodeIdDense internal node identifier.
Returns
The exclusive edge offset for nodeId.

Definition at line 150 of file HierarchySaliencyMapProjection.hpp.

◆ nodeSize()

std::size_t mmcfilters::IncrementalNodeContourMap::nodeSize ( NodeId  nodeId) const
inline

Returns the number of contour edges owned by nodeId.

Parameters
nodeIdDense internal node identifier.
Returns
The number of contour edges owned by nodeId.

Definition at line 158 of file HierarchySaliencyMapProjection.hpp.

◆ size()

std::size_t mmcfilters::IncrementalNodeContourMap::size ( ) const
inlinenoexcept

Returns the total number of stored contour edges.

Returns
The total number of stored contour edges.

Definition at line 127 of file HierarchySaliencyMapProjection.hpp.

Member Data Documentation

◆ adjacencyRadius

double mmcfilters::IncrementalNodeContourMap::adjacencyRadius = 0.0

Radius of the adjacency used to enumerate the edges.

Definition at line 114 of file HierarchySaliencyMapProjection.hpp.

◆ numColumns

int mmcfilters::IncrementalNodeContourMap::numColumns = 0

Number of columns in the proper-part grid.

Definition at line 110 of file HierarchySaliencyMapProjection.hpp.

◆ numNodeSlots

int mmcfilters::IncrementalNodeContourMap::numNodeSlots = 0

Number of slots in the dense node-id domain.

Definition at line 112 of file HierarchySaliencyMapProjection.hpp.

◆ numRows

int mmcfilters::IncrementalNodeContourMap::numRows = 0

Number of rows in the proper-part grid.

Definition at line 108 of file HierarchySaliencyMapProjection.hpp.

◆ offsets

std::vector<std::size_t> mmcfilters::IncrementalNodeContourMap::offsets

CSR-style boundaries of the edge slice owned by each node.

Definition at line 116 of file HierarchySaliencyMapProjection.hpp.

◆ sources

std::vector<NodeId> mmcfilters::IncrementalNodeContourMap::sources

Source pixel ids grouped by boundary-owning node.

Definition at line 118 of file HierarchySaliencyMapProjection.hpp.

◆ targets

std::vector<NodeId> mmcfilters::IncrementalNodeContourMap::targets

Target pixel ids parallel to sources.

Definition at line 120 of file HierarchySaliencyMapProjection.hpp.


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