# Revision history [back]

//if all you need is the cropped image inside the rect:
Mat cropped = img(Rect(40,40,300,300));