There is a reported crash when running in debug with access out of bound raised by OpenCV,
In reality, there is no real access to the memory but just the declaration of a pointer that may point outside the memory. All the operations are then made in the safe bound.
The solution is to move the declaration inside the good range.
fix #179
Note: to reproduce this behavior on a non-windows machine the _DEBUG preprocessor must be defined because the assert raising the error is defined based on that definition in OpenCV
There is a reported crash when running in debug with access out of bound raised by OpenCV, In reality, there is no real access to the memory but just the declaration of a pointer that may point outside the memory. All the operations are then made in the safe bound.
The solution is to move the declaration inside the good range.
fix #179
Note: to reproduce this behavior on a non-windows machine the
_DEBUG
preprocessor must be defined because the assert raising the error is defined based on that definition in OpenCV