Ask Your Question

Revision history [back]

Simply put, use the functionality provided by the C++ cv::Mat class interface :)

Mat inputImage = imread(location);
Mat window = inputImage( Rect(xWindowUpperLeft, yWindowUpperLeft, widthWindow, heigthWindow) );