I got an OpenCV pHash code from following url:
https://gist.github.com/msly/bb0bff63914d54fed88f
And i want to port the code to Java.
But really what does
Mat mask = (dst >= imageMean[0]);
and
mask.at<uchar>(i, j) == 0 ? (hash[i*mask.cols + j] = '0') :
(hash[i*mask.cols + j] = '1');
mean? Is there some java wrapper method for ">=", and the "at<uchar>"?
I found the up ">=" mask as
Core.compare(Mat, Scalar, Core.CMP_GE)
But while imageMean is Scalar in java, what's the imageMean[0] mean in C++ code?