Information That You WILL Need
- The camera height above the seafloor
- The vertical angular field of view, alpha
- The horizontal angular field of view, beta
- The tilt angle of the camera from horizontal, theta
Known Camera Parameters
Rover (as of 2012-12-10)
- Camera Height = 112 cm
- Alpha = 33.6 degrees
- Beta = 42 degrees
- Theta = 39 degrees
How to Generate Areas
- Perform a query using the VARS query for imaging
- Save the results of the query to a text file
- Put the query results someplace that the computer Seaspray can see them from. Your directory on Tempbox is an excellent choice.
- ssh onto Seaspray from a terminal and go to the vars-imaging directory. If you're unfortunate enough to be running Windows, you may need to go and download PuTTY.
ssh seaspray.shore.mbari.org cd /opt/vars-imaging/bin - Run the process_area script like so:
./gsh ../scripts/groovy/process_area [cameraHeight] [alpha] [beta] [theta] [infile] [outfile]Substitute in your cameraHeight, alpha, beta, and theta values you looked up earlier. Infile is the file of annotations you saved earlier. Outfile is the file you want to write out to. Here's an example for the rover using a file stored in the tempbox brian./gsh ../scripts/groovy/process_area 112 33.6 42 39 /mbari/Tempbox/brian/my_infile.txt /mbari/Tempbox/brian/my_outfile.txt
References
[1] W. Wakefield and A. Genin, The use of a Canadian (perspective) grid in deep-sea photography, Deep Sea Research Part A. Oceanographic, vol. 34, no. 3, pp. 469-478, 1987.
[2] Wolfram MathWorld, Polygon Area, 2012, http://mathworld.wolfram.com/PolygonArea.html