Skip to main content

PathologyAnnotationSet

Struct PathologyAnnotationSet 

Source
pub struct PathologyAnnotationSet { /* private fields */ }

Implementations§

Source§

impl PathologyAnnotationSet

Source

pub fn to_ann(&self) -> Result<AnnotationDocument>

Build one DICOM ANN group per source feature so feature identity remains exact.

Source

pub fn to_ann_with_companion_sr(&self) -> Result<AnnotationDocument>

Build ANN geometry and measurements when a companion SR preserves coded evaluations.

Source

pub fn to_seg(&self, companion_sr: bool) -> Result<SegmentationDocument>

Build a sparse binary SEG with one segment per source feature.

companion_sr must be true when mapped measurements or qualitative evaluations need the companion SR object selected by the caller.

Source§

impl PathologyAnnotationSet

Source

pub fn to_sr( &self, segmentation: Option<&SegmentationDocument>, ) -> Result<StructuredReportDocument>

Build a Comprehensive 3D SR measurement report.

Polygon holes and disconnected polygon components require a companion SEG from this annotation set. Lines and multipoints are represented only as coordinate references for mapped numeric measurements.

Source§

impl PathologyAnnotationSet

Source

pub fn from_json( geojson: &[u8], mapping: &[u8], source: &DicomAnnotationContext, canonical_source: &DicomAnnotationContext, coordinate_space: PathologyCoordinateSpace, allow_lossy: bool, ) -> Result<Self>

Parse and validate pathology-profiled GeoJSON and its explicit DICOM mapping.

Coordinates are transformed into the referenced source WSI’s Total Pixel Matrix coordinate system. canonical_source is used only when the declared coordinate space is level-zero pixels.

Source

pub fn feature_count(&self) -> usize

Source

pub fn feature_geometry_kind( &self, index: usize, ) -> Option<PathologyGeometryKind>

Source

pub fn feature_tracking_id(&self, index: usize) -> Option<&str>

Source

pub fn feature_tracking_uid(&self, index: usize) -> Option<&str>

Source

pub fn diagnostics(&self) -> &[InteroperabilityDiagnostic]

Source

pub fn into_preview(self) -> PathologyPreview

Consume the normalized annotation set and transfer its geometry into a read-only viewer preview without retaining a second full geometry copy. Mixed feature collections and polygon interior rings remain intact, and coordinates are in the source WSI’s Total Pixel Matrix space.

Source

pub fn semantic_sha256(&self) -> String

SHA-256 over the normalized profile semantics and source-space geometry.

Trait Implementations§

Source§

impl Debug for PathologyAnnotationSet

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more