pub enum MarkingMethod {
Standard,
Modified,
}Expand description
The algorithm that determines which pixels are removed during the edge thinning process.
§Reference
Zhang, T. Y. & Suen, C. Y. (1984). A fast parallel algorithm for thinning digital patterns. Commun. ACM 27, 3 (March 1984), 236–239. DOI:10.1145/357994.358023
Chen, Yung-Sheng & Hsu, Wen-Hsing. (1988). A modified fast parallel algorithm for thinning digital patterns. Pattern Recognition Letters. 7. 99-106. DOI:10.1016/0167-8655(88)90124-9
Variants§
Standard
An algorithm based on Zhang and Suen, 1984.
See MarkingMethod for reference.
Modified
An improved and slightly more complex algorithm than Standard based on
Chen and Hsu, 1988. This algorithm improves on the original’s
weaknesses with generally thinner lines and better line connectivity.
See MarkingMethod for reference.
Trait Implementations§
Source§impl Clone for MarkingMethod
impl Clone for MarkingMethod
Source§fn clone(&self) -> MarkingMethod
fn clone(&self) -> MarkingMethod
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 MarkingMethod
impl Debug for MarkingMethod
Source§impl Default for MarkingMethod
impl Default for MarkingMethod
Source§impl PartialEq for MarkingMethod
impl PartialEq for MarkingMethod
impl Copy for MarkingMethod
impl StructuralPartialEq for MarkingMethod
Auto Trait Implementations§
impl Freeze for MarkingMethod
impl RefUnwindSafe for MarkingMethod
impl Send for MarkingMethod
impl Sync for MarkingMethod
impl Unpin for MarkingMethod
impl UnwindSafe for MarkingMethod
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