CvMat* cvGetSubRect(const CvArr* arr, CvMat* submat, CvRect rect); /* arr Input array submat Pointer to the resultant sub-array header rect Zero-based coordinates of the rectangle of interest The function returns header, corresponding to a specified rectangle of the input array. In other words, it allows the user to treat a rectangular part of input array as a stand-alone array. ROI is taken into account by the function so the sub-array of ROI is actually extracted. */