<div dir="ltr"><div>Dear Jim,</div>
<div> </div>
<div>I use this pipline to extract the softtissue only (the human face skin ) but internal objects be extracted too , do you any suggestion regarding that </div>
<div> </div>
<div> </div>
<div>Best regards <br><br></div>
<div class="gmail_quote">On Wed, Oct 13, 2010 at 9:43 AM, Jim Peterson <span dir="ltr"><<a href="mailto:jimcp@cox.net">jimcp@cox.net</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div>
<div></div>
<div class="h5">Ali Habib wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Hi All,<br> I read a series of DICOM files , and I want to apply threshold (for further segmentation) but the below cod not effect any more<br>
vtk.vtkDICOMImageReader VDR = new vtk.vtkDICOMImageReader();<br> VDR.SetDirectoryName(@"E:\Master Degree\DataSet\case2\DICOM\PA1\ST1\SE2");<br> VDR.SetDataOrigin(0, 0, 0);<br> VDR.Update();<br>
vtkImageThreshold VIT = new vtkImageThreshold();<br> // VIT.ThresholdBetween(-300, 300);<br> VIT.ThresholdByLower(100);<br> VIT.SetInputConnection(VDR.GetOutputPort());<br> VIT.Update();<br>
vtk.vtkImageIslandRemoval2D ImageIslandRemoval2D = new vtk.vtkImageIslandRemoval2D();<br> ImageIslandRemoval2D.SetInput(VIT.GetOutput());<br> ImageIslandRemoval2D.SetAreaThreshold(1000);<br>
vtk.vtkContourFilter skinExtractor = new vtk.vtkContourFilter();<br> skinExtractor.SetInputConnection(ImageIslandRemoval2D.GetOutputPort());<br> //skinExtractor.SetValue(0, 500); // 1123 extract mandible //<br>
skinExtractor.GenerateValues(1, -300, 300);<br> skinExtractor.ComputeGradientsOn();<br> any suggestion pelase<br></blockquote></div></div>So what were you expecting to have happen and what happened for you? What did you change to cause this to "not effect any more"? Have you been reading the vtk class documentation? See <a href="http://www.vtk.org/doc/nightly/html/classvtkContourFilter.html" target="_blank">http://www.vtk.org/doc/nightly/html/classvtkContourFilter.html</a> for the contour filter class doc. what are you expecting GenerateValues(1,-300,300) to set as contour values? Does that sound like a appropriate use of that function? how is one output value supposed to include the min and max values?<br>
<br>My gut feeling is the island filter with threshold 1000 is removing all features.<br><br>HTH,<br><font color="#888888">Jim<br><br></font></blockquote></div><br></div>