How can I get index of the gratest element in a Mat
I know that opencv has sort method, but I want to get something like argmax method. How can I get indices of the gratest element, and second, an third, and so on, from a 2D Mat?