Slicing operation help

Hello,

As far as I know, operating on a ROI only creates a view of the original Mat, not a new data buffer, so any computation performed on the ROI will effectively be reflected in the original Mat as well.

You might be interested in functions
operator() and locateROI