Skip to main content

reslice_linear

Function reslice_linear 

Source
fn reslice_linear(
    img: &[f32],
    (nx, ny, nz): (usize, usize, usize),
    m: &[[f32; 4]; 4],
) -> Vec<u8> ⓘ
Expand description

niimath’s linear doReslice onto the 256³ grid, rounded to u8 (-odt char).

A conformed voxel whose 2×2×2 input neighbourhood is not wholly inside the input keeps the image minimum, as niimath fills it.