Fix pointPolygonTest for large coordinate values (#10222)
authorJuha Reunanen <juha.reunanen@gmail.com>
Tue, 5 Dec 2017 12:49:44 +0000 (14:49 +0200)
committerVadim Pisarevsky <vadim.pisarevsky@gmail.com>
Tue, 5 Dec 2017 12:49:44 +0000 (15:49 +0300)
commit5b4159991158ab0aa9ffbf52e203230923b154a9
treed6eb4e471a3687e30360ea0f9516ec8535ddb949
parent5ce38e516e554ed64106350c929127adae9d908f
Fix pointPolygonTest for large coordinate values (#10222)

* Add test that fails

* Fix integer pointPolygonTest for large coordinate values

* Review fixes:
- change type from long long to int64
- move test code to test_contours.cpp, and make it C++98 compliant

* Hopefully fix compiler error by using push_back instead of emplace_back
modules/imgproc/src/geometry.cpp
modules/imgproc/test/test_contours.cpp