Ask Your Question

Pavan J's profile - activity

2019-03-05 07:22:03 -0600 commented answer Theory behind "center" of top-left pixel considered as (0, 0)

Hi Barna, Thanks for the answer. I have one correction. For resize factor of k, the translated coordinates are (Kx, Ky)

2019-02-19 07:12:57 -0600 marked best answer Theory behind "center" of top-left pixel considered as (0, 0)

Hello,

I learnt from "resize bi-linear" implementation that the "center" of the (left top) pixel is considered as "origin" (0, 0). It appears that if "top left corner" were considered as origin then it would have actually simplified the equations. But as this is not done, there must be some theoretical reason behind choosing center as origin. I got one hint from below comment on http://answers.opencv.org/question/87... by @StevenPuttemans: "origin is at the center of the top-left pixel, because else there would be an imbalance in coordinate systems with negative valued axes ..."

But unfortunately I'm unable to fully grasp it with above hint. Could Steven or anybody else provide some more theoretical details for clearing the concept...

Please let me know if you need any more info.

Thanks in adavance. -Pavan

2019-02-15 10:30:38 -0600 asked a question Theory behind "center" of top-left pixel considered as (0, 0)

Theory behind "center" of top-left pixel considered as (0, 0) Hello, I learnt from "resize bi-linear" implementation th