pub struct MedicalImaging { /* private fields */ }Expand description
Medical imaging
Implementations§
Source§impl MedicalImaging
impl MedicalImaging
Sourcepub fn initialize(&mut self) -> Result<(), MedicalError>
pub fn initialize(&mut self) -> Result<(), MedicalError>
Mark the MedicalImaging subsystem initialized (ready flag).
Sourcepub fn validate_image(&self, image: &MedicalImage) -> Result<(), MedicalError>
pub fn validate_image(&self, image: &MedicalImage) -> Result<(), MedicalError>
Validate image metadata against acquisition/QC constraints.
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>,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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> ⓘ
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> ⓘ
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