mirror of
https://github.com/Laex/Delphi-OpenCV.git
synced 2024-11-15 07:45:53 +01:00
Merge pull request #164 from micha137/master
CV_MAT_ELEM_PTR_FAST(): Fix 64 bit bug
This commit is contained in:
commit
109571055b
@ -2425,7 +2425,7 @@ end;
|
||||
function CV_MAT_ELEM_PTR_FAST(const mat: TCvMat; const row, col, pix_size: Integer): Pointer;
|
||||
begin
|
||||
Assert((row < mat.rows) and (col < mat.cols) and (row >= 0) and (col >= 0));
|
||||
Result := Pointer(Integer(mat.data.ptr) + mat.step * row + pix_size * col);
|
||||
Result := Pointer(IntPtr(mat.data.ptr) + mat.step * row + pix_size * col);
|
||||
end;
|
||||
|
||||
function CV_MAT_ELEM(const mat: TCvMat; const elemsize: Integer; const row, col: Integer): Pointer;
|
||||
|
Loading…
Reference in New Issue
Block a user