Fix infinite loop on ArUco apriltag refinement
* Fix infinite loop on ArUco apriltag refinement
Software entered infinite loop when image height
was smaller than 10*cv::getNumThreads(). With high
core count machines this could happen with very
reasonable image sizes.
Fix is to ensure that chunksize is at least 1.
* Test aruco detection with different number of threads
Test ensures that different aruco detection methods do not
produce different results based on number of threads.
Test was created after observing infinite loop caused
by small image and large number of threads when using
apriltag corner refinement.
* Test refactoring.
* Syntax fix for pre-C++11 compilers.
Co-authored-by: Alexander Smorkalov <alexander.smorkalov@xperience.ai>