pub struct PathologyAnnotationSet { /* private fields */ }Implementations§
Source§impl PathologyAnnotationSet
impl PathologyAnnotationSet
Sourcepub fn to_ann(&self) -> Result<AnnotationDocument>
pub fn to_ann(&self) -> Result<AnnotationDocument>
Build one DICOM ANN group per source feature so feature identity remains exact.
Sourcepub fn to_ann_with_companion_sr(&self) -> Result<AnnotationDocument>
pub fn to_ann_with_companion_sr(&self) -> Result<AnnotationDocument>
Build ANN geometry and measurements when a companion SR preserves coded evaluations.
Sourcepub fn to_seg(&self, companion_sr: bool) -> Result<SegmentationDocument>
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
impl PathologyAnnotationSet
Sourcepub fn to_sr(
&self,
segmentation: Option<&SegmentationDocument>,
) -> Result<StructuredReportDocument>
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
impl PathologyAnnotationSet
Sourcepub fn from_json(
geojson: &[u8],
mapping: &[u8],
source: &DicomAnnotationContext,
canonical_source: &DicomAnnotationContext,
coordinate_space: PathologyCoordinateSpace,
allow_lossy: bool,
) -> Result<Self>
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.
pub fn feature_count(&self) -> usize
pub fn feature_geometry_kind( &self, index: usize, ) -> Option<PathologyGeometryKind>
pub fn feature_tracking_id(&self, index: usize) -> Option<&str>
pub fn feature_tracking_uid(&self, index: usize) -> Option<&str>
pub fn diagnostics(&self) -> &[InteroperabilityDiagnostic]
Sourcepub fn into_preview(self) -> PathologyPreview
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.
Sourcepub fn semantic_sha256(&self) -> String
pub fn semantic_sha256(&self) -> String
SHA-256 over the normalized profile semantics and source-space geometry.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PathologyAnnotationSet
impl RefUnwindSafe for PathologyAnnotationSet
impl Send for PathologyAnnotationSet
impl Sync for PathologyAnnotationSet
impl Unpin for PathologyAnnotationSet
impl UnsafeUnpin for PathologyAnnotationSet
impl UnwindSafe for PathologyAnnotationSet
Blanket Implementations§
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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> ⓘ
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