pub struct XYCutConfig {
pub min_cut_threshold: f32,
pub histogram_resolution_scale: f32,
pub same_row_tolerance: f32,
}Expand description
Configuration for XY-Cut algorithm
Fields§
§min_cut_threshold: f32Minimum gap size (in pixels) to consider for cutting
histogram_resolution_scale: f32Resolution for projection histogram (bin per 100 pixels)
same_row_tolerance: f32Tolerance for considering elements in the same row (pixels)
Trait Implementations§
Source§impl Clone for XYCutConfig
impl Clone for XYCutConfig
Source§fn clone(&self) -> XYCutConfig
fn clone(&self) -> XYCutConfig
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 XYCutConfig
impl Debug for XYCutConfig
Auto Trait Implementations§
impl Freeze for XYCutConfig
impl RefUnwindSafe for XYCutConfig
impl Send for XYCutConfig
impl Sync for XYCutConfig
impl Unpin for XYCutConfig
impl UnwindSafe for XYCutConfig
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