How to create a empty rect?
How do i instantiate a empty Rect?
Rect ROI = NULL doesn't work...
How do i instantiate a empty Rect?
Rect ROI = NULL doesn't work...
It is very simple. Just think about your Rect element as a pointer to memory.
// Simply pointer initializing
Rect ROI;
// Pointer initializing and allocating memory
// Rect ROI (x, y, width, height);
Rect ROI (0, 0, 250, 250);
More information about every possible constructor of the Rect element can be found here.
Asked: 2015-04-01 07:42:08 -0600
Seen: 8,061 times
Last updated: Apr 01 '15
Initializing static cv::Mat with cv::Mat::zeros causes segmentation fault
Async Initialization of OpenCV on Android using OpenCVManager
How to remove detected human after DetectMultiScale?
Calc a bounding box with a binarized image?
How to cut an image in small images with opencv !!!
Estimation of 4-point Polygon in Contour
How pass Rect from Java code to Jni?