I have found strange syntax in some of Aruco files:
vector< cv::Mat > thres_images(n_param1);
Seems like thres_images is function, but if yes then what is vector< cv::Mat > in front of it? It is not declaration nor definition. Later it is used as array:
thres = thres_images[n_param1 / 2];
PS: full code can be found here
 
    