lib/tracksperanto/uv_coordinates.rb in tracksperanto-2.1.1 vs lib/tracksperanto/uv_coordinates.rb in tracksperanto-2.2.0

- old
+ new

@@ -1,5 +1,7 @@ -# Y down X right, 0 is center and values are UV float -1 to 1, doubled +# Syntheyes and some other apps use a relative UV coordinate sustem. For Syntheyes, zero is at the +# optical center of the image, and goes positive right and up. Since Tracksperanto works in absolute +# pixels we need to convert to and fro. module Tracksperanto::UVCoordinates # UV coords used by Syntheyes and it's lens distortion algos. def absolute_to_uv(abs_x, abs_y, w, h) [convert_to_uv(abs_x, w), convert_to_uv(abs_y, h) * -1] \ No newline at end of file