<div>tcl code is below</div>
<div><br><font face="Courier New" size="2">vtkVolume16Reader reader <br>reader SetDataByteOrderToLittleEndian;<br>reader SetFilePrefix &quot;d:\\rawdata\\&quot;<br>reader SetFilePattern &quot;%s%d.dcm.raw&quot;<br>reader SetImageRange&nbsp;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>&nbsp;</p>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div><br>&nbsp;</div>
<div><span class="gmail_quote">On 12/25/06, <b class="gmail_sendername">iii-lin</b> &lt;<a href="mailto:iii-lin@163.com">iii-lin@163.com</a>&gt; 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>&nbsp;&nbsp; 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(&quot;%s%3d.dcm.raw&quot;) has something wrong, In the output window:can not find d:\rawdata\&nbsp; 
2.dcm.raw ,how to set the patterns?Let d:\rawdata\002.dcm.raw could be readed.</div>
<div>&nbsp;</div>
<div>here are the codes.I use Java language</div>
<div>//////////////////////////////////////////////////////////////</div>
<div>vtkDICOMImageReader dicomReader = new vtkDICOMImageReader();<br>&nbsp;&nbsp;dicomReader.SetDirectoryName(&quot;d:/dicom&quot;);<br>&nbsp;&nbsp;dicomReader.Update(); <br>&nbsp;&nbsp;double[] dataSpacing = dicomReader.GetDataSpacing();<br>&nbsp;&nbsp;System.out.println
(dataSpacing[0] + &quot;:&quot; + dataSpacing[1] + &quot;:&quot; + dataSpacing[2]);<br>&nbsp;&nbsp;vtkVolume16Reader v16 = new vtkVolume16Reader();<br>&nbsp;&nbsp;v16.SetDataByteOrderToLittleEndian();<br>&nbsp;&nbsp;v16.SetFilePrefix(&quot;d:/rawdata/&quot;);
<br>&nbsp;&nbsp;v16.SetFilePattern(&quot;%s%3d.dcm.raw&quot;);<br>&nbsp;&nbsp;v16.SetImageRange(2, 123);<br>&nbsp;&nbsp;v16.GetOutput().ReleaseDataFlagOn();<br>&nbsp;&nbsp;v16.SetDataSpacing(dicomReader.GetDataSpacing());<br>&nbsp;&nbsp;v16.SetDataDimensions(dicomReader.GetOutput
().GetDimensions());<br>&nbsp;&nbsp;v16.Update();<br>&nbsp;&nbsp;<br>&nbsp;&nbsp;Thread.sleep(10000);<br>&nbsp;&nbsp;vtkImageGaussianSmooth GaussianSmooth = new vtkImageGaussianSmooth();<br>&nbsp;&nbsp;GaussianSmooth.SetInput(v16.GetOutput());<br>&nbsp;&nbsp;GaussianSmooth.SetDimensionality
 (3);<br>&nbsp;&nbsp;GaussianSmooth.SetStandardDeviations(0.0,4.0);<br>&nbsp;&nbsp;vtkContourFilter skinExtractor = new vtkContourFilter();<br>&nbsp;&nbsp;skinExtractor.SetInput((vtkDataSet)GaussianSmooth.GetOutput());<br>&nbsp;&nbsp;&nbsp;&nbsp; skinExtractor.SetValue(0, 500);
<br>&nbsp;&nbsp;skinExtractor.Update();</div>
<div>&nbsp;&nbsp;vtkSmoothPolyDataFilter smoother=new vtkSmoothPolyDataFilter();<br>&nbsp;&nbsp;smoother.SetInput(skinExtractor.GetOutput());<br>&nbsp;&nbsp;smoother.SetNumberOfIterations(70);</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp; vtkPolyDataNormals skinNormals = new vtkPolyDataNormals();<br>&nbsp;&nbsp;skinNormals.SetInput(smoother.GetOutput());<br>&nbsp;&nbsp;&nbsp;&nbsp; skinNormals.SetFeatureAngle(60.0);</div>
<div><br>&nbsp;&nbsp;vtkPolyDataWriter pdw=new vtkPolyDataWriter();<br>&nbsp;&nbsp;pdw.SetInput(skinNormals.GetOutput());<br>&nbsp;&nbsp;&nbsp;&nbsp; pdw.SetFileName(&quot;d:/out.vtk&quot;);<br>&nbsp;&nbsp;&nbsp;&nbsp; pdw.Write();</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>/////////////////////////////////////////</div>
<div>&nbsp;</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&amp;bid=600,597,58&amp;cid=29985,198,1&amp;sid=32501&amp;show=ignore&amp;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>