<!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>Dear Friends,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have converted my dicom files into raw files.I
want to display volume as a image.I have written code as follows.I am not
getting exact image.If anybody knows pls.give me advice.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>
<DIV><FONT face=Arial size=2>Dear Dave,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I am a new user of vtk.I converted my dicom files
into raw files.I want to display volume as a image in vtk.I have written code as
folllows.But I am not getting exact figure.If u know pls.help me.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>vtkRenderer *ren1 =
vtkRenderer::New();<BR> <BR> vtkRenderWindow *renWin =
vtkRenderWindow::New();<BR> renWin->AddRenderer(ren1);<BR> <BR> vtkRenderWindowInteractor
*iren1 =
vtkRenderWindowInteractor::New();<BR> iren1->SetRenderWindow(renWin);<BR> vtkVolume16Reader
*reader = vtkVolume16Reader::New(); <BR>
reader->SetDataByteOrderToLittleEndian();<BR>
reader->SetFilePrefix("C:\\DicomFiles\\DownLoad\\xyz\\");
<BR>
reader->SetFilePattern("%s%d.raw");<BR>
reader->SetImageRange(1,109); <BR>
reader->SetDataSpacing(0.57,0.57,2); <BR>
reader->SetDataDimensions(256,256); </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> vtkImageActor
*Actor=vtkImageActor::New();<BR> Actor->SetInput(reader->GetOutput());<BR> renWin->SetSize(300,300);<BR> ren1->SetBackground(0.1,
0.2,
0.4);<BR> ren1->AddActor(Actor);<BR> iren1->Initialize();<BR> renWin->Render();<BR> SAVEIMAGE(
renWin );<BR> iren1->Start();<BR>Is there any alter.pls.give me
reply.Don't mind.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Regards,</FONT></DIV>
<DIV><FONT face=Arial size=2>Ramakrishna</FONT></DIV></DIV></BODY></HTML>