Closed cospectrum closed 1 month ago
I think the whole boundary should be included. At the moment, the rectangle is half open, half closed:
use imageproc::rect::{Rect, Region}; let rect = Rect::at(0, 0).of_size(1, 1); assert!(rect.contains(0, 0)); // success assert!(rect.contains(1, 0)); // fail
Maybe I'm wrong. (0, 0) is the upper-left pixel, not a point on the "grid", right?
(0, 0)
I think the whole boundary should be included. At the moment, the rectangle is half open, half closed: