Skip to main content

Module cost

Module cost 

Source
Expand description

Layer 3 — adaptive cost analysis.

Builds the HILL cost map used to steer embedding towards textured regions. The 'img lifetime carried by the cost map ties it to the borrow of the validated image buffer, so the compiler — not convention — guarantees that the pixels cannot be mutated while the map is alive.

This module holds the vocabulary of the layer: the map itself and the trait every cost model implements. The HILL model lives in hill.

Modules§

hill
HILL adaptive cost map with rejection of smooth regions.

Structs§

CostMap
Per-pixel embedding cost of a container image, in row-major order.

Traits§

CostProvider
A model that assigns an embedding cost to every pixel of a container image.