pub struct ImageAnalysisResult {Show 17 fields
pub epistemic_status: &'static str,
pub width: usize,
pub height: usize,
pub min: f64,
pub max: f64,
pub mean: f64,
pub std_dev: f64,
pub histogram: Vec<u32>,
pub hist_min: f64,
pub hist_max: f64,
pub hist_bin_width: f64,
pub threshold: f64,
pub mask: Vec<bool>,
pub segmented_area: usize,
pub segmented_mean_intensity: f64,
pub sobel_magnitude: Vec<f64>,
pub windowed: Vec<f64>,
}Expand description
Result of processing one intensity grid. All fields are computed from the input;
none is fabricated. Foreground of mask is defined as intensity > threshold.
Fields§
§epistemic_status: &'static strHonest label — DSP metrics only, never a clinical interpretation.
width: usize§height: usize§min: f64§max: f64§mean: f64§std_dev: f64Population standard deviation of the intensities.
histogram: Vec<u32>Equal-width histogram counts (length = requested bin count).
hist_min: f64§hist_max: f64§hist_bin_width: f64§threshold: f64Threshold actually used for segmentation (Otsu-derived or caller-fixed).
mask: Vec<bool>Binary segmentation mask, row-major, true where intensity > threshold.
segmented_area: usizeNumber of foreground pixels (true entries in mask).
segmented_mean_intensity: f64Mean intensity over the foreground region (0.0 if the region is empty).
sobel_magnitude: Vec<f64>Per-pixel Sobel edge-gradient magnitude, row-major (length = width*height).
windowed: Vec<f64>Window/level normalized intensities in [0,1], row-major.
Trait Implementations§
Source§impl Clone for ImageAnalysisResult
impl Clone for ImageAnalysisResult
Source§fn clone(&self) -> ImageAnalysisResult
fn clone(&self) -> ImageAnalysisResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ImageAnalysisResult
impl RefUnwindSafe for ImageAnalysisResult
impl Send for ImageAnalysisResult
impl Sync for ImageAnalysisResult
impl Unpin for ImageAnalysisResult
impl UnsafeUnpin for ImageAnalysisResult
impl UnwindSafe for ImageAnalysisResult
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more