<!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 converted my DICOM files into .raw files
using DICOM2 tool.After that I read the data using vtkVolume16Reader.But I am
not getting exact volume.I have written code as follows.Total 51 files.Image
size is 512kb.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>vtkRenderer *ren1 =
vtkRenderer::New();<BR>vtkRenderWindow *renWin =
vtkRenderWindow::New();<BR>renWin->AddRenderer(ren1);<BR>vtkRenderWindowInteractor
*iren1 =
vtkRenderWindowInteractor::New();<BR>iren1->SetRenderWindow(renWin);<BR>vtkVolume16Reader
*reader = vtkVolume16Reader::New(); <BR>
reader->SetDataByteOrderToLittleEndian();<BR>
reader->SetFilePrefix("C:\\DicomFiles\\DownLoad\\xyz\\6554888");
<BR>
reader->SetFilePattern("C:\\DicomFiles\\DownLoad\\xyz\\6554888.raw");<BR>
reader->SetImageRange(6554888,6555788);
<BR> reader->SetDataSpacing(1,1,1);
<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();</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> </DIV>
<DIV><BR>If anybody knows pls.help me .</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</DIV></FONT></BODY></HTML>