#[repr(C)]pub struct EfSegmentation {
pub xmin: f32,
pub ymin: f32,
pub xmax: f32,
pub ymax: f32,
pub mask: *const u8,
pub width: u32,
pub height: u32,
}Expand description
One segmentation result, as plain values.
Crosses library boundaries by the same rule as EfDetectBox: plain
values, never a handle. mask borrows the producing list’s buffer and
is valid only until that list is freed — stated here because C gives a
caller no way to discover it.
The bounds describe the mask region, which is snapped to the proto grid and therefore encloses rather than equals the companion detection’s box.
Fields§
§xmin: f32§ymin: f32§xmax: f32§ymax: f32§mask: *const u8Row-major mask bytes, height * width, borrowed from the list.
width: u32§height: u32Trait Implementations§
Source§impl Clone for EfSegmentation
impl Clone for EfSegmentation
impl Copy for EfSegmentation
Auto Trait Implementations§
impl !Send for EfSegmentation
impl !Sync for EfSegmentation
impl Freeze for EfSegmentation
impl RefUnwindSafe for EfSegmentation
impl Unpin for EfSegmentation
impl UnsafeUnpin for EfSegmentation
impl UnwindSafe for EfSegmentation
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