Supply grid dimensions to cv.* constructors