<div>tcl code is below</div>
<div><br><font face="Courier New" size="2">vtkVolume16Reader reader <br>reader SetDataByteOrderToLittleEndian;<br>reader SetFilePrefix "d:\\rawdata\\"<br>reader SetFilePattern "%s%d.dcm.raw"<br>reader SetImageRange 2 123
<br>[reader GetOutput] ReleaseDataFlagOn<br>reader SetDataSpacing ChangeToUrOwnValue</font></div>
<div><font face="Courier New" size="2">reader SetDataDimensions <font face="Courier New" size="2">ChangeToUrOwnValue</font><br>reader Update</font></div>
<p><font face="Courier New" size="2"></font> </p>
<div> </div>
<div> </div>
<div><br> </div>
<div><span class="gmail_quote">On 12/25/06, <b class="gmail_sendername">iii-lin</b> <<a href="mailto:iii-lin@163.com">iii-lin@163.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>hello everyone,</div>
<div> I use dicom2 to convert 002.dcm....123.dcm to 002.dcm.raw....123.dcm.raw,and use the vtkVolume16Reader to read the raw files,but the v16.SetFilePattern("%s%3d.dcm.raw") has something wrong, In the output window:can not find d:\rawdata\
2.dcm.raw ,how to set the patterns?Let d:\rawdata\002.dcm.raw could be readed.</div>
<div> </div>
<div>here are the codes.I use Java language</div>
<div>//////////////////////////////////////////////////////////////</div>
<div>vtkDICOMImageReader dicomReader = new vtkDICOMImageReader();<br> dicomReader.SetDirectoryName("d:/dicom");<br> dicomReader.Update(); <br> double[] dataSpacing = dicomReader.GetDataSpacing();<br> System.out.println
(dataSpacing[0] + ":" + dataSpacing[1] + ":" + dataSpacing[2]);<br> vtkVolume16Reader v16 = new vtkVolume16Reader();<br> v16.SetDataByteOrderToLittleEndian();<br> v16.SetFilePrefix("d:/rawdata/");
<br> v16.SetFilePattern("%s%3d.dcm.raw");<br> v16.SetImageRange(2, 123);<br> v16.GetOutput().ReleaseDataFlagOn();<br> v16.SetDataSpacing(dicomReader.GetDataSpacing());<br> v16.SetDataDimensions(dicomReader.GetOutput
().GetDimensions());<br> v16.Update();<br> <br> Thread.sleep(10000);<br> vtkImageGaussianSmooth GaussianSmooth = new vtkImageGaussianSmooth();<br> GaussianSmooth.SetInput(v16.GetOutput());<br> GaussianSmooth.SetDimensionality
(3);<br> GaussianSmooth.SetStandardDeviations(0.0,4.0);<br> vtkContourFilter skinExtractor = new vtkContourFilter();<br> skinExtractor.SetInput((vtkDataSet)GaussianSmooth.GetOutput());<br> skinExtractor.SetValue(0, 500);
<br> skinExtractor.Update();</div>
<div> vtkSmoothPolyDataFilter smoother=new vtkSmoothPolyDataFilter();<br> smoother.SetInput(skinExtractor.GetOutput());<br> smoother.SetNumberOfIterations(70);</div>
<div> vtkPolyDataNormals skinNormals = new vtkPolyDataNormals();<br> skinNormals.SetInput(smoother.GetOutput());<br> skinNormals.SetFeatureAngle(60.0);</div>
<div><br> vtkPolyDataWriter pdw=new vtkPolyDataWriter();<br> pdw.SetInput(skinNormals.GetOutput());<br> pdw.SetFileName("d:/out.vtk");<br> pdw.Write();</div>
<div> </div>
<div> </div>
<div>/////////////////////////////////////////</div>
<div> </div><br><br>
<div style="BORDER-BOTTOM: #999 1px solid"></div><br><font style="FONT-SIZE: 14px" color="black">昨 天 和 女 友 b u y 疯 了 ! ! ! </font><br><a style="FONT-SIZE: 13px; COLOR: blue; LINE-HEIGHT: 160%" onclick="return top.js.OpenExtLink(window,event,this)" href="http://adtaobao.allyes.com/main/adfclick?db=adtaobao&bid=600,597,58&cid=29985,198,1&sid=32501&show=ignore&url=http://www.taobao.com/theme/lucky_new_year/index.php" target="_blank">
年 末 万 种 精 品 大 促 销 , 8 0 万 大 奖 天 天 送 ( 绝 对 保 真 ) </a><br>_______________________________________________<br>This is the private VTK discussion list.<br>Please keep messages on-topic. Check the FAQ at: <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">
http://www.vtk.org/Wiki/VTK_FAQ</a><br>Follow this link to subscribe/unsubscribe:<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers
</a><br><br><br></blockquote></div><br>