pub struct TileComplexity {
pub col: u32,
pub row: u32,
pub variance: f64,
pub edge_density: f64,
pub score: f64,
}Expand description
Content complexity metric for a tile region.
Fields§
§col: u32Tile column index.
row: u32Tile row index.
variance: f64Variance of pixel values (higher = more complex).
edge_density: f64Mean absolute difference between adjacent pixels (edge density).
score: f64Normalised complexity score in [0.0, 1.0].
Trait Implementations§
Source§impl Clone for TileComplexity
impl Clone for TileComplexity
Source§fn clone(&self) -> TileComplexity
fn clone(&self) -> TileComplexity
Returns a duplicate of the value. Read more
1.0.0 · 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 TileComplexity
impl Debug for TileComplexity
Source§impl PartialEq for TileComplexity
impl PartialEq for TileComplexity
impl StructuralPartialEq for TileComplexity
Auto Trait Implementations§
impl Freeze for TileComplexity
impl RefUnwindSafe for TileComplexity
impl Send for TileComplexity
impl Sync for TileComplexity
impl Unpin for TileComplexity
impl UnsafeUnpin for TileComplexity
impl UnwindSafe for TileComplexity
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