pub struct Placement {
pub canvas: String,
pub region: Rect,
pub code: u8,
pub owned_pixels: f64,
pub x: f64,
pub y: f64,
pub frame: u32,
pub time: f64,
pub confidence: f64,
pub uncertain: bool,
pub occlusions: Vec<Rect>,
pub fixed: bool,
}Expand description
One placement of a region on a canvas.
Fields§
§canvas: String§region: RectThe region’s rect on screen.
code: u8The region’s code in the atlas label plane.
owned_pixels: f64Pixels the atlas assigns to the region; equal to the rect’s area for a rectangular region.
x: f64The region’s pose on the canvas (rounded to the raster pose here).
y: f64§frame: u32§time: f64§confidence: f64§uncertain: bool§occlusions: Vec<Rect>§fixed: boolA screen-fixed region, placed at the origin in every frame: each consistent pixel takes the latest observation and no temporal record is kept (docs/ARCHITECTURE.md §十 “合成与瞬态像素”).
Trait Implementations§
impl StructuralPartialEq for Placement
Auto Trait Implementations§
impl Freeze for Placement
impl RefUnwindSafe for Placement
impl Send for Placement
impl Sync for Placement
impl Unpin for Placement
impl UnsafeUnpin for Placement
impl UnwindSafe for Placement
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> 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