I have cv :: Mat of type CV_8UC1 (8-bit single-channel image), and I would like to access the elements using the at<> operator as follows: image.at<char>(row, column) . However, when you press int : (int) image.at<char>(row, column) some values ββbecome negative, for example, 255 becomes -1.
This may be a stupid question, but I canβt understand why this is happening, and what would be the best way to convert records to int .
Thanks in advance!
source share