pub struct MedicalImaging { /* private fields */ }Expand description
Medical imaging
Implementations§
Source§impl MedicalImaging
impl MedicalImaging
pub fn new() -> Self
pub fn initialize(&mut self) -> Result<(), MedicalError>
pub fn validate_image(&self, image: &MedicalImage) -> Result<(), MedicalError>
Sourcepub fn analyze_grid(
&self,
data: &[f64],
width: usize,
height: usize,
bins: usize,
threshold: SegmentationThreshold,
window: Option<(f64, f64)>,
) -> Result<ImageAnalysisResult, MedicalError>
pub fn analyze_grid( &self, data: &[f64], width: usize, height: usize, bins: usize, threshold: SegmentationThreshold, window: Option<(f64, f64)>, ) -> Result<ImageAnalysisResult, MedicalError>
Real 2-D DSP over a caller-provided intensity grid (delegates to
super::analyze_intensity_grid). Returns metrics + masks + Sobel map, each
honestly labeled as signal processing, never a diagnosis.
Sourcepub fn process_image(
&mut self,
image: &MedicalImage,
processing_type: ImageProcessingType,
) -> Result<ProcessedImage, MedicalError>
pub fn process_image( &mut self, image: &MedicalImage, processing_type: ImageProcessingType, ) -> Result<ProcessedImage, MedicalError>
Process a MedicalImage by real DSP. The raw image_data bytes are decoded as
row-major grayscale intensities; the grid dimensions are inferred as a square
(sqrt(len)), since MedicalImage carries no width/height metadata. If the byte
count is not a perfect square this fails closed with InsufficientData rather than
guessing. The returned ProcessedImage carries the window/level-normalized bytes
plus honestly-labeled DSP metrics in processing_metadata — it is NOT a diagnosis.
Auto Trait Implementations§
impl Freeze for MedicalImaging
impl RefUnwindSafe for MedicalImaging
impl Send for MedicalImaging
impl Sync for MedicalImaging
impl Unpin for MedicalImaging
impl UnsafeUnpin for MedicalImaging
impl UnwindSafe for MedicalImaging
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
§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