I have a database of image patches i.e. a 300*300 images with each patch of size 60*60. Thus giving me a grid of 5*5. I want to store some information against each of these patch. Since, my database can consist of millions of images, I wanted to use unordered_map so that finding a patch become easy.
My patch information consist of imgId, x_position of patch and y_position of patch (all integers). I don't have much experience with unordered_map. But going through some tutorials, I realised that I will have to use my own hash function. Can anyone suggest some efficient way of storing the above info in unordered_map with proper hash function.