mmcfilters
Public API documentation
Loading...
Searching...
No Matches
Public Types | Static Public Member Functions | List of all members
mmcfilters::ToSUInt8AltitudeEncoding Struct Reference

Exact encoding in 8-bit source-level units. More...

#include <TreeOfShapesProducer.hpp>

Public Types

using value_type = std::uint8_t
 Scalar type storing source gray levels.
 

Static Public Member Functions

static value_type encode (ToSGrayLevel constructionLevel, detail::TopographicImmersionMode immersionMode)
 Converts one transient construction level to 8-bit source units.
 

Detailed Description

Exact encoding in 8-bit source-level units.

A complementary-grid immersion floods the interpolated domain over the source level set itself, so its construction levels are already source gray levels. A self-dual span immersion floods in doubled units, so its construction levels are halved; they are guaranteed to be even only when no half level can enter the active domain, which the convention validation establishes before this encoding is selected.

Definition at line 68 of file TreeOfShapesProducer.hpp.

Member Typedef Documentation

◆ value_type

Scalar type storing source gray levels.

Definition at line 70 of file TreeOfShapesProducer.hpp.

Member Function Documentation

◆ encode()

static value_type mmcfilters::ToSUInt8AltitudeEncoding::encode ( ToSGrayLevel  constructionLevel,
detail::TopographicImmersionMode  immersionMode 
)
inlinestatic

Converts one transient construction level to 8-bit source units.

Parameters
constructionLevelAltitude or level.
immersionModeActive topographic immersion mode.
Returns
The converted one transient construction level to 8-bit source units.

Definition at line 79 of file TreeOfShapesProducer.hpp.


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