Ask Your Question

Revision history [back]

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 1280960 image, I then resize it to 640480 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!

Resize image, compute, resize back to original

Hello,

This might seem like a simple issue but here is what I need help with: - 1. for example I receive a 1280960 image, I then resize it to 640480 or 320*240 pixels - 2. I do some processing and I end up with 2 points: P1 at (x1,y1) and P2 at (x2,y2) - 3. 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!

Resize image, compute, resize back to original

Hello,

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

  1. for example I receive a 1280960 960 image, I then resize it to 640480 480 or 320*240 pixels 2. pixels
  2. I do some processing and I end up up with 2 points: P1 at (x1,y1) and P2 P2 at (x2,y2) 3. (x2,y2)
  3. how do I draw these points on the the original input image with the 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!