Maps source image coordinates to target coordinates. Plain objects, so they can be saved as JSON and sent to workers.
Image coordinates are continuous: pixel (i, j) covers [i, i+1) × [j, j+1) and its center is (i + 0.5, j + 0.5).
(i, j)
[i, i+1) × [j, j+1)
(i + 0.5, j + 0.5)
Maps source image coordinates to target coordinates. Plain objects, so they can be saved as JSON and sent to workers.
Image coordinates are continuous: pixel
(i, j)covers[i, i+1) × [j, j+1)and its center is(i + 0.5, j + 0.5).