Skip to main content

sample_set

Function sample_set 

Source
fn sample_set(
    fixed: &Volume<'_>,
    mask: Option<&[u8]>,
    max_samples: usize,
) -> Vec<Sample>
Expand description

Pick the fixed voxels the metric looks at: the smallest integer stride whose masked sample count fits max_samples.

Striding rather than blurring is deliberate at the finest level — it keeps full spatial detail at a bounded cost. Coarse levels are already blurred and decimated, which is where the smooth cost landscape comes from.