mirror of
https://github.com/opencv/opencv.git
synced 2026-12-02 21:22:43 -06:00
Merge branch 4.x
This commit is contained in:
@@ -1158,11 +1158,11 @@ Mat& Mat::adjustROI( int dtop, int dbottom, int dleft, int dright )
|
||||
std::swap(col1, col2);
|
||||
|
||||
if (dims == 1) {
|
||||
data += (col1 - ofs.x)*esz;
|
||||
data += (col1 - ofs.x)*(std::ptrdiff_t)esz;
|
||||
cols = col2 - col1;
|
||||
size.p[0] = cols;
|
||||
} else {
|
||||
data += (row1 - ofs.y)*step + (col1 - ofs.x)*esz;
|
||||
data += (row1 - ofs.y)*(std::ptrdiff_t)step + (col1 - ofs.x)*(std::ptrdiff_t)esz;
|
||||
rows = row2 - row1; cols = col2 - col1;
|
||||
size.p[0] = rows; size.p[1] = cols;
|
||||
updateContinuityFlag();
|
||||
|
||||
Reference in New Issue
Block a user