[vtkusers] How to convert dcm data to raw data like VTKData/headsq/quarter.1--93??
Peter Spring
meancity at gmail.com
Sun Dec 24 06:09:53 EST 2006
u may go and find dicom2 to convert your dicom files. go google and
type dicom2 to find relavent info.
u may find link below is useful. but the author of the page was using tcl/tk.
http://www.devpub.net/research/
but u may also directly use dicom reader to deal with ur data. why
bother to convert the dicom data.
On 12/23/06, iii-lin <iii-lin at 163.com> wrote:
> hello everyone,
>
> I want to convert dicom data to raw data like
> VTKData/headsq/quarter.1--93,I use codes follow,I use the Java language.
> /////////////////////////////////////////////////////////////////
> vtkDICOMImageReader reader = new vtkDICOMImageReader();
> reader.SetDirectoryName(dir);
> reader.Update();
>
> DataFormat dataFormat = new DataFormat();
>
>
> vtkImageWriter writer = new
> vtkImageWriter();//vtkImageWriter::New()
> writer.SetInput(reader.GetOutput());
> writer.SetFilePrefix("test");
> writer.SetFilePattern("%s.%d");
> writer.Write();
> //////////////////////////////////////////////////////////////////
> 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.
>
> How can I do this?
> thanks everyone's advice.
>
>
>
>
>
>
>
> ________________________________
> 想免费获得高速稳定的3G邮箱吗? www.126.com
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
>
More information about the vtkusers
mailing list