<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:'Times New Roman',Times,serif;" dir="ltr">
<p>Dear VTK users,</p>
<p><br>
</p>
<p>I have an issue related to the <span>Setting camera to view the rendered slice to the whole viewport.</span></p>
<p>For the axial plane, the formula which I am using is the following: <br>
</p>
<p><br>
</p>
<p></p>
<div>float yd = (image_vtk->GetExtent()[3] - image_vtk->GetExtent()[2] + 1)*image_vtk->GetSpacing()[1];<br>
<br>
float d = camera->GetDistance();<br>
camera->SetParallelScale(0.5f*yd);</div>
<br>
<p></p>
<p><br>
</p>
<p>I would like to change it in order to get the Coronal plane.</p>
<p><br>
Thank you in advance.<br>
</p>
<p><br>
</p>
<p>Best regards,</p>
<p><br>
</p>
<div id="Signature"><font size="3" face="Garamond">Abdelkhalek Bakkari</font>
<div><br>
</div>
</div>
</div>
</body>
</html>