assume that I have a set of remap such as this: (assume that images are set and the code is working)
for(int i=0; i<NumberOfImages; i++)
{
remap( inputImage, outImages[i], m_mapX[i], m_mapY[i], CV_INTER_NN );
}
Now I want to find the position of pixel (X,Y) on input image on outputImages (assuming that remap is in a way that any pixel on input image is mapped to only one output image)
The simplest way is to do a search on all m_mapX and m_mapY and look for requested pixel, but it is very time consuming. is there any better way to do so?
Assume that I have a big list of points that I need to convert, so probably creating a reverse map is better, but how to create a reverse map?