<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4134.600" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi Shyam,</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;&nbsp; Thanks for ur suggestion. 
</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Let me explain my 
problem in detail. I am applying MIP function on the input volume and rendering 
it to view it. Now i want to select the ROI in the rendered volume, clip the ROI 
and store the ROI in a file.&nbsp;I have my own algorithm of ROI. Now the 
problem is with saving the ROI. For saving ROI or atleast the entire rendered 
volume, i should get the rendered volume into a buffer for further processing. I 
think we can get the redered volume only from vtkrenderer or vtkrenderwindow or 
vtkrenderwindowinteractor.&nbsp;I could not find any function which serve my 
purpose. </FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I found a 
function "GetPixelData" in vtkRenderWindow class which returns the pixel data 
visible on the vtk window. But it is just a slice. What i want is the entire 
volume which i gave as input. I mean if i give, lets say, 10 images as 
input<FONT face="Times New Roman" size=3><FONT face=Arial size=2>, after 
redering i</FONT> <FONT face=Arial size=2>should able to get 10 slices as output 
in a buffer for further processing. Is there any class which exposes a function 
which help me in this regard.</FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Following are 
the classes i am using.</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
vtkPiecewiseFunction</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; 
vtkVolumeProperty</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
vtkVolumeRayCastMapper</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
vtkVolumeRayCastMIPFunction</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
vtkVolume</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
vtkRenderer</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
vtkRenderWindow</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
vtkRenderWindowInteractor</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I hope u 
got my problem.</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Please 
help in this regard.</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Thanks 
in advance.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>-Regards,</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; Sateesh.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV>----- Original Message ----- </DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=ramakrishna.prakash@quest-global.com 
  href="mailto:ramakrishna.prakash@quest-global.com">R K Shyamprakash</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=affable@hd2.dot.net.in 
  href="mailto:affable@hd2.dot.net.in">'cspl'</A> ; <A 
  title=vtkusers@public.kitware.com 
  href="mailto:vtkusers@public.kitware.com">vtkusers@public.kitware.com</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, March 27, 2003 11:04 
  AM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> RE: [vtkusers] How to store 
  rendered volume in memory :: Help Needed</DIV>
  <DIV><FONT face=Arial size=2></FONT><FONT face=Arial size=2></FONT><FONT 
  face=Arial size=2></FONT><FONT face=Arial size=2></FONT><BR></DIV>
  <DIV><SPAN class=817213305-27032003><FONT face=Arial color=#0000ff size=2>Hi 
  sateesh,</FONT></SPAN></DIV>
  <DIV><SPAN class=817213305-27032003><FONT face=Arial color=#0000ff 
  size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Are 
  you refering at vtkAppendPolydata? Just guessing!</FONT></SPAN></DIV>
  <DIV><SPAN class=817213305-27032003><FONT face=Arial color=#0000ff 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=817213305-27032003><FONT face=Arial color=#0000ff 
  size=2>regards</FONT></SPAN></DIV>
  <DIV><SPAN class=817213305-27032003><FONT face=Arial color=#0000ff 
  size=2>Shyam</FONT></SPAN></DIV>
  <BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
    <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
    size=2>-----Original Message-----<BR><B>From:</B> <A 
    href="mailto:vtkusers-admin@public.kitware.com">vtkusers-admin@public.kitware.com</A> 
    [mailto:vtkusers-admin@public.kitware.com]<B>On Behalf Of 
    </B>cspl<BR><B>Sent:</B> Thursday, March 27, 2003 10:52 AM<BR><B>To:</B> <A 
    href="mailto:vtkusers@public.kitware.com">vtkusers@public.kitware.com</A><BR><B>Subject:</B> 
    [vtkusers] How to store rendered volume in memory :: Help 
    Needed<BR><BR></FONT></DIV>
    <DIV><FONT face=Arial size=2>Hi all,<BR>&nbsp;&nbsp; Is there any way to 
    store the entire volume, after rendering, into a buffer. I have applied MIP 
    on the volume and rendered the volume. Now i&nbsp; want to store the 
    rendered volume into a buffer for further processing. If i give 5 images as 
    input then i should able to store all the 5 rendered images in buffer. Is 
    there any function which will help me in this regard.</FONT></DIV>
    <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2>&nbsp;&nbsp; Thanks in advance.</FONT></DIV>
    <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2>-Regard,<BR>&nbsp;&nbsp; 
  Sateesh.</FONT></DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>