Note that this will return either the value (56.7) or a reference to another image (=0). If you supply a Panotools::Script object as a parameter then the reference will be resolved and you will always get the value:

$fov = $i->v ($pto);

Get the absolute path to the image file

$i->Path ('/path/to/project.pto');

If a .pto project isn't specified then paths are assumed to be relatve to cwd

For any given coordinate in this image (top left is 0,0), calculate an x,y,z cartesian coordinate, accounting for lens distortion, projection and rotation.

$coor = $i->To_Cartesian ($pto, [23,45]);
($x, $y, $z) = @{$coor};

Query distance (radius) to photo in pixels:

$pix_radius = $i->Radius ($pto);

Module Install Instructions

To install Panotools::Script::Line::Image, simply copy and paste either of the commands in to your terminal