<DIV>Exact. But why do I have to pass with another filter whereas that my pixel data is already saved in memory? </DIV>
<DIV> </DIV>
<DIV>Have someone already used <STRONG>vtkImageData->GetScalarPointer(x,y,slice)</STRONG>. </DIV>
<DIV> </DIV>
<DIV>Maybe THIS could help me</DIV>
<DIV> </DIV>
<DIV>Isa<BR><BR><B><I>Amy Squillacote <amy.squillacote@kitware.com></I></B> a écrit :</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">vtkWindowToImageFilter does not require you to render the image on-screen. It only requires that you use a vtkRenderWindow, and by using vtkImageViewer, you are using a vtkRenderWindow.<BR><BR>- Amy<BR><BR>At 01:44 PM 6/8/2005, Renaud Isabelle wrote:<BR>
<BLOCKQUOTE class=cite cite="" type="cite">Hi,<BR> <BR>I'm sorry but this is not what I'm looking for. I have no image on the screen. <BR> <BR>By using <B>vtkImageActor</B> I can display one slice of my 3D image. This will be rendered off screen.<BR> <BR>All I want is retrieve the pixel data of this slice from memory to display it on .<BR> <BR>Do you have another idea?<BR> <BR>Thanks,<BR>Isa<BR><BR><B><I>Randall Hand <randall.hand@gmail.com></I></B> a écrit :<BR>
<DL>
<DD>to get the screen image, you can use vtkWindowToImageFilter.. that'll turn the screen display into a 2d vtkImageData object that you can pass to other VTK filters (or in my case, vtkPNGWriter).<BR><BR>
<DD><A href="http://www.vtk.org/doc/nightly/html/classvtkWindowToImageFilter.html">http://www.vtk.org/doc/nightly/html/classvtkWindowToImageFilter.html</A> <BR><BR><BR><BR>
<DD>On 6/8/05, Renaud Isabelle</B> <<A href="mailto:renauisa@yahoo.fr">renauisa@yahoo.fr</A>> wrote: <BR>
<DL>
<DD>I'm got really crazy</B>. I don't manage to use double buffering</B> in order to avoid flickering</B> on screen.<BR>
<DD><BR>
<DD>I'm using ImageSliceViewer</B> to render a 2D slice of my 3D image on screen</B>. It works well without double buffering except for flickering on screen.<BR>
<DD><BR>
<DD>I have already use double buffering in MFC and I have a class CMemDC that works fine to use memory buffering. <BR>
<DD><BR>
<DD>-> All I need is a method to get the pixel data of my 2D slice displayed on screen</B>.Then I can use it to create a DIB Bitmap from what is rendered off screen. <BR>
<DD><BR>
<DD>I found the example of rendering in MFC and I tried the series of instructions:<BR>
<DD><BR>
<DD>this->window->SetupMemoryRendering(x,y,hdc);<BR>
<DD>this->window->Render();<BR>
<DD>StretchBlt(dc,0,0,x,y,memDC,0,0,x,y,SRCCOPY);<BR>
<DD>this->window->ResumeScreenRendering();<BR></B>
<DD><BR>
<DD>but all is displayed is a white </B>page. Especially because during process, unsigned char* MemoryData</B> should be NULL.<BR>
<DD><BR>
<DD>Please help me. <BR>
<DD><BR>
<DD><BR>
<DD><BR><BR><BR>
<DD>Découvrez le nouveau Yahoo! Mail : <FONT color=#ff0000>1 Go d'espace</FONT> de stockage pour vos mails, photos et vidéos !<BR>
<DD><A href="http://us.rd.yahoo.com/mail_fr/mail_campaigns/splash/taglines_1go/default/*http://fr.promotions.yahoo.com/mail/creer28.html">Créez votre Yahoo! Mail</A> <BR><BR><BR>
<DD>_______________________________________________<BR>
<DD>This is the private VTK discussion list.<BR>
<DD>Please keep messages on-topic. Check the FAQ at: <A href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</A><BR>
<DD>Follow this link to subscribe/unsubscribe:<BR>
<DD><A href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers </A><BR><BR><BR></DD></DL><BR><BR><BR>
<DD>-- <BR>
<DD>Randall Hand<BR>
<DD><A href="http://www.yeraze.com/">http://www.yeraze.com</A> <BR><BR></DD></DL><BR>Découvrez le nouveau Yahoo! Mail : <FONT color=#ff0000>1 Go d'espace</FONT> de stockage pour vos mails, photos et vidéos !<BR><A href="http://us.rd.yahoo.com/mail_fr/mail_campaigns/splash/taglines_1go/default/*http://fr.promotions.yahoo.com/mail/creer28.html">Créez votre Yahoo! Mail</A> <BR>_______________________________________________<BR>This is the private VTK discussion list. <BR>Please keep messages on-topic. Check the FAQ at: <A href="http://www.vtk.org/Wiki/VTK_FAQ" eudora="autourl">http://www.vtk.org/Wiki/VTK_FAQ</A><BR>Follow this link to subscribe/unsubscribe:<BR><A href="http://www.vtk.org/mailman/listinfo/vtkusers" eudora="autourl">http://www.vtk.org/mailman/listinfo/vtkusers</A></BLOCKQUOTE></BLOCKQUOTE><p>
                <hr size=1>
Découvrez le nouveau Yahoo! Mail : <font color="red">1 Go d'espace</font> de stockage pour vos mails, photos et vidéos !<br><a href="http://us.rd.yahoo.com/mail_fr/mail_campaigns/splash/taglines_1go/default/*http://fr.promotions.yahoo.com/mail/creer28.html" target="_blank">Créez votre Yahoo! Mail</a>