[vtkusers] Re: DICOM2 to vtk *.raw !!!!Error!!!Help!!!
Peter
meancity at gmail.com
Sun Aug 14 01:38:37 EDT 2005
hi JJ,
i guess u r doing some assignment for Cranio-Facial Visualization :P.
first, the file extension of dc and dcm does not matter at all. if you
r uneasy about the extension , u can just go to ur windows command
line (assuming u r using windows) and rename all files with wildcard.
u may refer the medical1.tcl, but i bet if u just borrow some
lines from there it won't work at all...
there is a clumsy solution if you dare to try.
change all you imxxx.dc.raw to im001....im123 without any exention.
then all the files can be loaded. while u might need to change one
file by one file,
alternatively, u may go back dicom2 website, see there is a renmae
function for dicom2, which means u can change the name of resulting
files.
for example
u can set ur file name like test-1.raw test-2.raw..... test-123.raw rather than
im001.dc.raw .......im123.dc.raw.
and there is another very critical issue, r u really sure about the
dataspacing of the raw ??? i guess u just randomly put some numbers
there.... so please think a way to find the dataspacing....
by the way ,the assignment takes lots of time to search and read...
that is what i did....
please try harder
hope it helps
Yours
Pan
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