pub struct MaskValidationResult {Show 17 fields
pub original_with_seg: usize,
pub restored_with_seg: usize,
pub matched_pairs_with_seg: usize,
pub polygon_pairs: usize,
pub rle_pairs: usize,
pub vertex_count_exact_match: usize,
pub vertex_count_close_match: usize,
pub part_count_match: usize,
pub area_within_1pct: usize,
pub area_within_5pct: usize,
pub bbox_iou_high: usize,
pub bbox_iou_low: usize,
pub sum_area_ratio: f64,
pub min_area_ratio: f64,
pub max_area_ratio: f64,
pub sum_bbox_iou: f64,
pub zero_area_count: usize,
}Expand description
Segmentation mask validation results.
Fields§
§original_with_seg: usizeAnnotations with segmentation in original.
restored_with_seg: usizeAnnotations with segmentation in restored.
matched_pairs_with_seg: usizeMatched pairs where both have segmentation.
polygon_pairs: usizePolygon pairs (for vertex comparison).
rle_pairs: usizeRLE pairs converted to polygon.
vertex_count_exact_match: usizePairs where vertex count matches exactly.
vertex_count_close_match: usizePairs where vertex count is within 10%.
part_count_match: usizePairs where part count matches.
area_within_1pct: usizePairs with area within 1%.
area_within_5pct: usizePairs with area within 5%.
bbox_iou_high: usizePairs with bbox IoU >= 0.9.
bbox_iou_low: usizePairs with bbox IoU < 0.5.
sum_area_ratio: f64Sum of area ratios.
min_area_ratio: f64Minimum area ratio.
max_area_ratio: f64Maximum area ratio.
sum_bbox_iou: f64Sum of bbox IoU values.
zero_area_count: usizeCount of zero-area segmentations.
Implementations§
Source§impl MaskValidationResult
impl MaskValidationResult
Sourcepub fn preservation_rate(&self) -> f64
pub fn preservation_rate(&self) -> f64
Returns the segmentation preservation rate.
Sourcepub fn avg_area_ratio(&self) -> f64
pub fn avg_area_ratio(&self) -> f64
Returns the average area ratio.
Sourcepub fn avg_bbox_iou(&self) -> f64
pub fn avg_bbox_iou(&self) -> f64
Returns the average bbox IoU.
Sourcepub fn aggregate_comparison(&mut self, cmp: &SegmentationPairComparison)
pub fn aggregate_comparison(&mut self, cmp: &SegmentationPairComparison)
Aggregate a single segmentation comparison into the result.
Trait Implementations§
Source§impl Clone for MaskValidationResult
impl Clone for MaskValidationResult
Source§fn clone(&self) -> MaskValidationResult
fn clone(&self) -> MaskValidationResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MaskValidationResult
impl Debug for MaskValidationResult
Source§impl Default for MaskValidationResult
impl Default for MaskValidationResult
Source§fn default() -> MaskValidationResult
fn default() -> MaskValidationResult
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MaskValidationResult
impl RefUnwindSafe for MaskValidationResult
impl Send for MaskValidationResult
impl Sync for MaskValidationResult
impl Unpin for MaskValidationResult
impl UnsafeUnpin for MaskValidationResult
impl UnwindSafe for MaskValidationResult
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
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 moreSource§impl<T> Key for Twhere
T: Clone,
impl<T> Key for Twhere
T: Clone,
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more