pub fn rectangle_def( img: &mut impl ToInputOutputArray, rec: Rect, color: Scalar, ) -> Result<()>
@overload
use rec parameter as alternative specification of the drawn rectangle: r.tl() and r.br()-Point(1,1) are opposite corners
rec
r.tl() and r.br()-Point(1,1)
This alternative version of rectangle function uses the following default values for its arguments: