Thanks Kevin,<br><br>There is a last think I want to know.<br><br>I'd like to generate a MIP without displaying it on the screen.<br>I mean : I just want to save the MIP as a file " ***.png ", without displaying it, in order to accelerate the process.<br>
<br>After that, I will display all the png files and it will look like a volume which revloves on himself, you see?<br><br>Is it possible to do that ?<br><br>I've tried "->SetOffScreenRendering( 1 );" but it didn't work.<br>
<br><br>There is an other reason why I want to do that. When I use "vtkWindowToImageFilter", I can't minimize the window... otherwise the printscreens don't contain the MIP rendering but a part of my computer desktop... Not really practice because I always must keep the vtk window on top (for a couple a minutes).<br>
<br><br><br>Thank you again for your help Kevin,<br><br><br>Best regards,<br><br><br>Stéphane<br><br><br><br><br><br><div class="gmail_quote">2009/1/26 Kevin H. Hobbs <span dir="ltr"><<a href="mailto:hobbsk@ohiou.edu">hobbsk@ohiou.edu</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On Mon, 2009-01-26 at 16:52 +0100, Stéphane CALANDE wrote:<br>
> Hi vtkusers,<br>
<div class="Ih2E3d">><br>
<br>
> 1) I find that the rendering is not so beautiful. The picture is a<br>
> little vagueness. Can I do something to improve that?<br>
<br>
</div>vol_mapper->SetImageSampleDistance( 0.25 );<br>
vol_mapper->SetSampleDistance( pix_diag / 5.0 );<br>
<br>
<br>
vol_prop->SetScalarOpacityUnitDistance( pix_diag );<br>
<div class="Ih2E3d"><br>
> 2) It takes a lot of time to display one MIP (about 2.83 second per<br>
> MIP on my computer (WinXPx64))<br>
<br>
</div>Don't do 1) above.<br>
<div class="Ih2E3d"><br>
> 3) The distance between the focal point and the camera position is<br>
> determined by the variable "distanceFocale". But I've some trouble<br>
> with the value of that variable. I don't know which value I have to<br>
> assign to it, because : if I assign it a too high or too low value,<br>
> there is no result (black window). The rest of the time, the maximum<br>
> intensity projection doesn't take into account all the volume but only<br>
> a part of it (it seems that the distance is too small).<br>
><br>
<br>
</div>camera->SetFocalPoint ( center );<br>
<br>
camera->SetViewUp ( view_up );<br>
camera->SetPosition ( view_pos );<br>
<br>
camera->ComputeViewPlaneNormal(); // Maybe ?<br>
<div class="Ih2E3d"><br>
<br>
> PS: thanks for your help, Kevin.<br>
<br>
</div>You're welcome.<br>
<br>
I pulled my comments from the attached file.<br>
</blockquote></div><br>