This is an old revision of the document!
Optic Nerve Diameter Calculator
- use to estimate optic nerve size with the Heidelberg Spectralis OCT optic nerve scan report.
to reload calculator→ Click HERE
<html> <head>
<meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Calculate Optic Nerve Diameter</title>
</head> <body>
<h3>Calculate optic nerve diameter Using Heidelberg Spectralis OCT optic nerve report</h3>
<label for="a">Measure green ring diameter from OCT report and enter here (mm):</label> <input type="number" id="a" step="any" placeholder="Ring Diameter"><br><br>
<label for="b">Measure optic nerve diameter from OCT report and enter here (mm):</label> <input type="number" id="b" step="any" placeholder="Optic Nerve Diameter"><br><br>
<button onclick="calculateC()">Calculate</button> <br><br> <p id="result"></p>
<script>
function calculateC() {
// Get input values
const a = parseFloat(document.getElementById("a").value);
const b = parseFloat(document.getElementById("b").value);
// Check if inputs are valid numbers
if (isNaN(a) || isNaN(b) || a === 0) {
document.getElementById("result").textContent = "Please enter valid numbers. They must not be zero.";
return;
}
// Calculate C using the formula
const c = (b / a) * 3.5;
// Display the result in bold
document.getElementById("result").innerHTML = `The optic nerve diameter is: <strong>${c.toFixed(2)}</strong>`;
}
</script>
</body> </html>