pub struct SegmentationDocument { /* private fields */ }Implementations§
Source§impl SegmentationDocument
impl SegmentationDocument
pub fn binary( source: DicomAnnotationContext, segments: Vec<SegmentationSegment>, ) -> Result<Self>
pub fn read_seg( path: impl AsRef<Path>, source: &DicomAnnotationContext, ) -> Result<Self>
Sourcepub fn with_producer(self, producer: DerivedObjectProducer) -> Self
pub fn with_producer(self, producer: DerivedObjectProducer) -> Self
Replaces the neutral library identity with caller-owned producer metadata.
pub fn producer(&self) -> &DerivedObjectProducer
pub fn rasterized_frames(&self) -> Result<Vec<BinarySegmentationFrame>>
pub fn binary_runs(&self) -> Result<Vec<BinaryMaskRun>>
pub fn fractional_runs(&self) -> Result<Vec<FractionalMaskRun>>
pub fn mask_digest(&self) -> Result<String>
pub fn fractional_frames(&self) -> Option<&[FractionalSegmentationFrame]>
pub fn write_seg(&self, path: impl AsRef<Path>) -> Result<()>
pub fn write_seg_with_loss_policy( &self, path: impl AsRef<Path>, allow_lossy: bool, ) -> Result<()>
pub fn revised(&self) -> Self
Sourcepub fn vectorized_annotations(
&self,
policy: SegToAnnConversionPolicy,
) -> Result<VectorizedAnnotations>
pub fn vectorized_annotations( &self, policy: SegToAnnConversionPolicy, ) -> Result<VectorizedAnnotations>
Projects binary or label-map pixels into exact pixel-edge ANN rectangles.
Representable coded semantics are preserved. Identity that ANN cannot encode
is reported through typed diagnostics and rejected unless AllowLoss is used.
pub const fn kind(&self) -> SegmentationKind
pub const fn editable(&self) -> bool
pub fn source(&self) -> &DicomAnnotationContext
pub fn sop_instance_uid(&self) -> &str
pub fn segments(&self) -> &[SegmentationSegment]
pub fn series_instance_uid(&self) -> &str
pub fn content_label(&self) -> &str
pub fn content_description(&self) -> &str
pub fn content_creator_name(&self) -> Option<&str>
pub fn diagnostics(&self) -> &[InteroperabilityDiagnostic]
pub fn segment_for_number(&self, number: u16) -> Option<&SegmentationSegment>
Trait Implementations§
Source§impl Clone for SegmentationDocument
impl Clone for SegmentationDocument
Source§impl Debug for SegmentationDocument
impl Debug for SegmentationDocument
Source§impl PartialEq for SegmentationDocument
impl PartialEq for SegmentationDocument
impl StructuralPartialEq for SegmentationDocument
Auto Trait Implementations§
impl Freeze for SegmentationDocument
impl RefUnwindSafe for SegmentationDocument
impl Send for SegmentationDocument
impl Sync for SegmentationDocument
impl Unpin for SegmentationDocument
impl UnsafeUnpin for SegmentationDocument
impl UnwindSafe for SegmentationDocument
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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
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