# Resize image, compute, resize back to original

Hello,

This might seem like a simple issue but here is what I need help with:

- for example I receive a 1280
*960 image, I then resize it to 640*480 or 320*240 pixels - I do some processing and I end up with 2 points: P1 at (x1,y1) and P2 at (x2,y2)
- how do I draw these points on the original input image with the corresponding location?

I got to resize the image and computed the 2 points describing a line. I am stuck in the last part, resizing & displaying the 2 points back to the original image.

I am using Android for development. Regards!

May be you can use the scale factor for x & y (used for reducing size) to map the point P1 in original image.

Scale factor didn't work as expected, maybe it's an error from my algorithm but if I reduce the image to half ( /2 ) then to map the points back they should be multiplied by 2 ( x1 *= 2, y1 *= 2, etc.) but they show in wrong places..