使用一个矩形表示 Mat g_bwImage; Rect maxRect; Mat imageROI; imageROI = g_bwImage(maxRect); imshow("感兴趣区域", imageROI);