INNER CODE UNIT · Rust

count_of_bitmap

autopilot-rs/autopilot-rs · src/bitmap.rs:253

    pub fn count_of_bitmap(
        &self,
        needle: &Bitmap,
        tolerance: Option<f64>,
        rect: Option<Rect>,
        start_point: Option<Point>,
    ) -> u64 {
        if self.is_needle_oversized(needle) {
            return 0;
        }

        let mut count: u64 = 0;
        {
            let mut matched = |_| {
                count += 1;
            };
            self.find_all(
                rect,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…