[vtkusers] Re: *dc to vtk *.raw !!!!Error!!!Help!!!
Joshua Thomas
joshua.j.thomas at gmail.com
Sat Aug 13 07:53:40 EDT 2005
Dear All,
I am using vtk with tcl. I am sorry i still cannot figure it out.
Is the file extension *.dc represent *.dcm?
My data file is with the extension *.dc and i convert it into *.raw
but the file extension is again with im001.dc.raw (two extension)
I used dicom2.exe from the below website
http://www.barre.nom.fr/medical/dicom2/index.html#TOC
I used this command
c:\temp>dicom2 --to=rawdir -r *
But i still have two extensions (im001.dc.raw), then i refer back to
the below website with the help of vtk users
http://dicom.online.fr/
There i found out the export wizard has *.dcm, *.png etc IT DOESNOT
have *.raw file extension.
If i convert back the images into vtk raw format then i can use
vtkvolume16Reader to map the image.
I tried with the vtk42\examples\medical\tcl\medical1.tcl ( i changed
the file path)
i cannot see the output image, just only the outline.
Really Really need your help..............
Regards
JJ
On 8/12/05, Goodwin Lawlor <goodwin.lawlor at ucd.ie> wrote:
> Hi Joshua,
>
> Try this application... may make things easier.
>
> http://dicom.online.fr/
>
> hth
>
> Goodwin
>
> Joshua Thomas wrote:
> > Dear All,
> >
> > I am using VTK with TCL
> >
> > I used dicom2 to convert the *.dc into vtk raw format. But in my
> > folder after converting the *.dc files i can see the file extension of
> > my 123 files as
> > im001.dc.raw
> >
> > But i used the C:\Programfiles\vtk42\medical\tcl\medical1.tcl as an
> > example to read the images ( convert the im.1 im.2 ........im.123.) Is
> > this the correct way of doing it?
> >
> > Now the problem my image size inside the folder temp is 512 X 512 X 123
> >
> > vtkVolume16Reader v16
> > v16 SetDataDimensions 512 512
> > v16 SetDataByteOrderToLittleEndian
> > v16 SetFilePrefix "$VTK_DATA_ROOT/Data/temp/im"
> > v16 SetImageRange 1 123
> > v16 SetDataSpacing 20 20 10
> >
> > After doing this and i render the output, It took 4- 5 minutes then
> > POP UP the Error
> >
> > ERROR:InC:\Martin\vtk42\VTK\Common\VTKDataObject.cxx line 555
> > vtkImageData[0x02542A9D0]:Whole extent is: 512 512 0 63 0 92
> >
> > ERROR:InC:\Martin\vtk42\VTK\Common\VTKDataObject.cxx line 556
> > vtkImageData[0x02542A9D0]:Whole extent is: 512 512 0 63 0 92
> > ..........................................
> > ...............................
> > Really Need Your Help!!
> >
> > Thanks in Advance,
> > JJ
> > _______________________________________________
> > 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
> >
>
> _______________________________________________
> 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