matlab - Submatrix in C++ -
i have programming issue regarding extraction of subimage (submatrix) bigger image (matrix). have 2 points (upper , lower bound of subimage want extract) , want extract subimage bigger 1 based on these points. can't find how thins c/c++. i know it's easy matlab. suppose these 2 points (x_max,y_max) , (x_min,y_min). extract subimage need code following: (matlab code)-> small_image=big_image(x_min:x_max,y_min,y_max); but in c can't use interval of indexes : matlab. here faced problem before? if doing image processing in c/c++, should use opencv . the cv::mat class can using region of interest (roi) .