Unverified Commit 16ea18ea authored by Kyle Siefring's avatar Kyle Siefring Committed by GitHub
Browse files

Use integral images in the self guided filter (#1396)

parent 3566d1af
...@@ -303,7 +303,7 @@ impl<T: Pixel> Plane<T> { ...@@ -303,7 +303,7 @@ impl<T: Pixel> Plane<T> {
} }
#[inline] #[inline]
fn row_range(&self, x: isize, y: isize) -> Range<usize> { pub fn row_range(&self, x: isize, y: isize) -> Range<usize> {
debug_assert!(self.cfg.yorigin as isize + y >= 0); debug_assert!(self.cfg.yorigin as isize + y >= 0);
debug_assert!(self.cfg.xorigin as isize + x >= 0); debug_assert!(self.cfg.xorigin as isize + x >= 0);
let base_y = (self.cfg.yorigin as isize + y) as usize; let base_y = (self.cfg.yorigin as isize + y) as usize;
......
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment