I am trying to do the equivalent in c++ of some code written in python.
In the following link:
How to automatically detect and crop individual sprite bounds in sprite sheet?
thresh = cv2.threshold(gray, 0, 255, cv2.THRESH_BINARY_INV + cv2.THRESH_OTSU)[1]
The output of threshold is a Mat. What is thresh ? The convention in c++ is different, because there is no subscript operator for Mat in opencv c++.