Loading [MathJax]/extensions/tex2jax.js
PISM, A Parallel Ice Sheet Model 2.2.1-cd005eec8 committed by Constantine Khrulev on 2025-03-07
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages

◆ final_labels()

std::map< int, int > pism::details::final_labels ( array::Scalar1 input,
bool  subdomain_is_not_empty,
bool  mark_isolated_patches 
)

Compute the map from intermediate to final labels given a ghosted array input.

The value of the flag subdomain_is_not_empty varies from one subdomain to the next depending on whether it has any foreground pixels.

Definition at line 303 of file label_components_parallel.cc.

References assemble_graph(), detect_connections(), pism::array::Array::grid(), and resolve_labels().

Referenced by pism::label_components_impl().