mat.At<double>(1,2)か、mat.At<float>(1,2)か、その辺だと思う

参考:https://gist.github.com/ochilab/d720c9d961ed04b8c707