Skip to main content

normalize

Function normalize 

Source
fn normalize(data: &[u8]) -> Vec<f32>
Expand description

brainchop’s qnormalize: map the 2nd..98th percentile (numpy’s linear interpolation) to [0, 1] and clip. Returns the network input in C order (x, y, z) — brainchop feeds the conformed volume to the network as (x, y, z), the transpose of its column-major layout.