Skip to main content

evaluate_display_slice_rgba8

Function evaluate_display_slice_rgba8 

Source
pub fn evaluate_display_slice_rgba8(
    cells: &[DisplayEmfCell],
    optical: &[DisplayOpticalCell],
    nx: u32,
    ny: u32,
    nz: u32,
    nt: u32,
    slice_z: u32,
    slice_t: u32,
    amplitude_scale: f32,
    phase_offset: f32,
    manifold_gain: f32,
    projection_mode: u32,
) -> Result<Vec<u8>, String>
Expand description

CPU slice evaluator with parity to GPU EmfSliceUniform::projection_mode (0 = full volumetric spectral + Stokes, 1 = nearest-cell grayscale |E| derivative).