|
GSI LENS CALCULATOR
<html><BR><head><BR><title>GOLDEN STATE INSTRUMENT Co. </title><BR><meta http-equiv="Content-Type" <BR> --><BR></style><BR> <script language="javascript"><BR><!--<BR>// Field of view calculator<BR> <BR>// Evaluates lens format selection<BR>function lens_format(){<BR> if (document.lenscalc.radio1[0].checked){<BR> var1 = 3.2<BR> var2 = 2.4<BR> show_format()<BR> }<BR> else if (document.lenscalc.radio1[1].checked){<BR> var1 = 4.8<BR> var2 = 3.6<BR> show_format()<BR> }<BR> else if (document.lenscalc.radio1[2].checked){<BR> var1 = 6.4<BR> var2 = 4.8<BR> show_format()<BR> }<BR> else if (document.lenscalc.radio1[3].checked){<BR> var1 = 8.8<BR> var2 = 6.6<BR> show_format()<BR> }<BR> else if (document.lenscalc.radio1[4].checked){<BR> var1 = 12.8<BR> var2 = 9.6<BR> show_format()<BR> }<BR> else {<BR> }<BR>//Performs calculations <BR>function show_format(){<BR> var distance = document.lenscalc.distance.value<BR> var horizontal = document.lenscalc.horizontal.value<BR> var lens_size = document.lenscalc.lens_size.value<BR> var vertical = document.lenscalc.vertical.value<BR> var angle_view = document.lenscalc.angle_view.value<BR> <BR> //calc h v<BR> if ((horizontal > 0) && (vertical == 0)) {<BR> vertical = horizontal*.75 <BR> document.lenscalc.vertical.value = Math.round(vertical*1000)/1000<BR> }<BR> else if ((horizontal == 0) && (vertical > 0)) {<BR> horizontal = vertical/3*4<BR> document.lenscalc.horizontal.value = Math.round(horizontal*1000)/1000<BR> } <BR> else if ((horizontal > 0) && (vertical > 0)) {<BR> horizontal = vertical/3*4<BR> document.lenscalc.horizontal.value = Math.round(horizontal*1000)/1000<BR> } <BR> //calc lens_size<BR> if ((distance > 0) && (horizontal > 0) && (vertical > 0) && (lens_size == 0)){<BR> lens_size = distance/horizontal*var1<BR> document.lenscalc.lens_size.value = Math.round(lens_size*1000)/1000<BR> }<BR> //calc distance <BR> else if ((distance == 0) && (horizontal > 0) && (vertical > 0) && (lens_size > 0)){<BR> distance = horizontal/var1*lens_size<BR> document.lenscalc.distance.value = Math.round(distance*1000)/1000<BR> }<BR> //calc h v <BR> else if ((distance > 0) && (horizontal == 0) && (vertical == 0) && (lens_size > 0)){<BR> horizontal = distance/lens_size*var1<BR> vertical = horizontal*.75<BR> document.lenscalc.horizontal.value = Math.round(horizontal*1000)/1000<BR> document.lenscalc.vertical.value = Math.round(vertical*1000)/1000<BR> }<BR> //error <BR> else {alert("Enter two of the three fields groups only. Please try again.")}<BR> //calc angle view <BR> angle_view = Math.atan((.5*horizontal)/distance)<BR> angle_view = angle_view*2*57.2957795<BR> //angle_view = (horizontal*57.29)/distance<BR> document.lenscalc.angle_view.value = Math.round(angle_view*10)/10<BR> } <BR>} <BR>//--><BR></script> <BR> <script type="text/javascript"><BR> function expand(sec,lin) <BR> {<BR> thisSec = document.getElementById(sec);<BR> thisLin = document.getElementById(lin);<BR> if (thisSec != null) <BR> {<BR> thisSec.style.display = (thisSec.style.display =='none') ?'block': 'none'<BR> }<BR> thisLin.style.display = 'none'<BR> return false<BR> }<BR> </script><BR> <BR> <script src="<a href="http://www.google-analytics.com/urchin.js" target=_blank >http://www.google-analytics.com/urchin.js</a>" type="text/javascript"><BR> </script><BR><BR> <script type="text/javascript"><BR> _uacct = "UA-1436932-2";<BR> urchinTracker();<BR> </script><BR> <BR><BR><BR><div style="font-family: sans-serif; font-weight:bold;">Lens Calculator:</div><BR><div style="height: 1px; width: 100%; background-color: #000; font-size: 0px; line-height: 0px;">&nbsp;</div><BR><img src="images/blank.gif" height="10"><br><BR><BR><div align="center"><BR> <table border="0" width="600px"><BR> <tr><BR> <td width="35%" valign="top"><BR> <strong>Instructions:</strong> <BR> <ul><BR> <li><BR><BR> Select the lens format you are using.<BR> </li><BR> <li><BR> Enter any 2 of the 3 field groups.<BR> </li><BR> <li><BR> Press the "Calculate" button to calculate the<BR> missing information.<BR> </li><BR> <li><BR> Press the "Reset" button to clear the form.<BR> </li><BR><BR> </ul><BR> </td><BR> <td width="5%"><BR> </td><BR> <td valign="top" align="left" nowrap><BR> <form name="lenscalc"><BR> <table border="0"><BR> <tr><BR> <td align="left" valign="top" nowrap="nowrap"><strong>Select Lens Format:</strong></td><BR><BR> <td align="right"><BR> 1/4 inch <input type="radio" name="radio1"<BR> value="quarter"><br><BR> 1/3 inch <input type="radio" name="radio1"<BR> value="third" checked><br><BR> 1/2 inch <input type="radio" name="radio1"<BR> value="half"><br><BR> 2/3 inch <input type="radio" name="radio1"<BR> value="twothirds"><br><BR> 1 inch <input type="radio" name="radio1"<BR> value="oneinch"><BR><BR> </td><BR> <td width="10%"><BR> </td><BR> </tr><BR> <tr><BR> <td align="left" nowrap="nowrap"><BR> <strong>Enter Distance to Object</strong> (in<BR> feet):<BR> </td><BR><BR> <td align="right"><BR> <input type="text" length="10" name=<BR> "distance" size="10"><BR> </td><BR> <td width="10%"><BR> </td><BR> </tr><BR> <tr><BR> <td height="15"><BR> </td><BR><BR> </tr><BR> <tr><BR> <td align="left" valign="center" nowrap=<BR> "nowrap"><BR> <strong>Enter Width of Picture</strong> (in<BR> feet):<BR> </td><BR> <td align="right" valign="center"><BR> <input type="text" length="10" name=<BR> "horizontal" size="10"><BR> </td><BR><BR> <td width="10%" valign="center">or</td><BR> </tr><BR> <tr><BR> <td align="left" valign="center" nowrap=<BR> "nowrap"><BR> <strong>Enter Height of Picture</strong> (in<BR> feet):<BR> </td><BR> <td align="right" valign="center"><BR> <input type="text" length="10" name=<BR> "vertical" size="10"><BR><BR> </td><BR> <td><BR> </td><BR> </tr><BR> <tr><BR> <td height="15"><BR> </td><BR> </tr><BR> <tr><BR><BR> <td align="left" nowrap="nowrap"><BR> <strong>Enter Size of Lens</strong> (in<BR> millimeters):<BR> </td><BR> <td align="right"><BR> <input type="text" length="10" name=<BR> "lens_size" size="10"><BR> </td><BR> <td><BR> </td><BR><BR> </tr><BR> <tr><BR> <td align="left" nowrap="nowrap"><BR> <strong>Angle of View</strong> (in<BR> degrees):<BR> </td><BR> <td align="right"><BR> <input type="text" length="10" name="angle_view" size="10" disabled="disabled"><BR> </td><BR><BR> <td><BR> </td><BR> </tr><BR> <tr><BR> <td align="right" colspan="2"><BR> <input type="button" value="Calculate"<BR> onclick="lens_format()"> <input type="reset"<BR> value="Reset" name="reset"><BR> </td><BR> <td><BR><BR> </td><BR> </tr><BR> </table><BR> </form><BR> </td><BR> </tr><BR> </table><BR> </div><BR><br><br> <!--//start of footer?>--><BR><BR> </td><BR> </tr><BR> </table><BR> </td><BR> </tr><BR> <tr> <BR> <td height="1" bgcolor="cc9900"></td><BR> </tr><BR> <tr> <BR> <td height="123" style="background: url(images/newfooter.jpg) no-repeat top center;" valign=bottom align=center><BR><BR> <table width=100% border="0" cellspacing="0" cellpadding="0"><tr><td width=150px></td><BR> <td align=center><div style="font-family: sans-serif; font-size:small;"><BR> &copy;COPYRIGHT, Golden State Instrument Co., ALL RIGHTS RESERVED </div></td><BR> <td width=150px align=right></td></table><BR> </tr><BR> </table><BR></div><BR></body><BR></html> GSI CAMERA APPLICATION GUIDE
Need advice or suggestions on which GSI Camera to use? We can help!
What type of surveillance do you need:
| ||||||
|
Please contact us if you need further suggestions or have any questions with regards to any of our products! |
||||||
|