<DIV >hello everyone,</DIV>
<DIV> </DIV>
<DIV> I want to convert dicom data to raw data like VTKData/headsq/quarter.1--93,I use codes follow,I use the Java language.</DIV>
<DIV>/////////////////////////////////////////////////////////////////</DIV>
<DIV> vtkDICOMImageReader reader = new vtkDICOMImageReader();<BR> reader.SetDirectoryName(dir);<BR> reader.Update(); <BR> <BR> DataFormat dataFormat = new DataFormat();<BR> <BR> <BR> vtkImageWriter writer = new vtkImageWriter();//vtkImageWriter::New()<BR> writer.SetInput(reader.GetOutput());<BR> writer.SetFilePrefix("test");<BR> writer.SetFilePattern("%s.%d");<BR> writer.Write();</DIV>
<DIV>//////////////////////////////////////////////////////////////////</DIV>
<DIV>Is this codes work well?I don't know how to do.the raw data genetated may be wrong,because these data can not be viewed from another application.</DIV>
<DIV> </DIV>
<DIV>How can I do this?</DIV>
<DIV>thanks everyone's advice.</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV ></DIV><br><!-- footer --><br><hr>
<a style="font-size:12px;line-height:15px; color:#000; text-decoration:none" href="http://www.126.com/">想免费获得高速稳定的3G邮箱吗? <span style="font-family:Tahoma; text-decoration:underline; color:blue">www.126.com</span> </a>