<div dir="ltr"><div> </div>
<div> </div>
<div>to create a tetra hedral mesh , I created a mesh but no appear like the image at the below link </div>
<div>I used vtktriangle filter , then vtkquadric clustering , I got the attached output , any suggestion to enhance it </div>
<div> </div>
<div>Best regards <br><br></div>
<div class="gmail_quote">On Fri, Dec 18, 2009 at 6:28 AM, Bill Lorensen <span dir="ltr"><<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="im">What is the problem you are trying to solve?<br><br>On Thu, Dec 17, 2009 at 9:10 AM, InfoSeekerr<br></div>
<div class="im"><<a href="mailto:ali.mahmoud.habib@gmail.com">ali.mahmoud.habib@gmail.com</a>> wrote:<br>><br></div>> it should be like the photo at the following link<br>> <a href="http://www.iue.tuwien.ac.at/phd/fleischmann/img346.gif" target="_blank">http://www.iue.tuwien.ac.at/phd/fleischmann/img346.gif</a><br>
><br>> do u have any suggestion regards that<br>><br>> Best regards<br>><br>> David Doria-2 wrote:<br>
<div>
<div></div>
<div class="h5">>><br>>> On Thu, Dec 17, 2009 at 8:08 AM, Ali Habib <<a href="mailto:ali.mahmoud.habib@gmail.com">ali.mahmoud.habib@gmail.com</a>><br>>> wrote:<br>>>> Dear Bill,<br>>>> I used VtkDelunary3D instead of 2D, and I used before reconstruction<br>
>>> series<br>>>> of fillters to decrease the dataset ,attached is the output<br>>>><br>>>> The code I used is :<br>>>><br>>>> vtkDICOMImageReader v16 = vtkDICOMImageReader::New();<br>
>>><br>>>> v16->SetDirectoryName(@"D:\work\Master<br>>>> Degree\DataSet\case2\DICOM\PA1\ST1\SE2");<br>>>><br>>>> v16->SetDataOrigin(2, 2, 1);<br>
>>><br>>>> v16->Update();<br>>>><br>>>> /////////////////////Pre processing<br>>>><br>>>> // STEP 1:<br>>>><br>>>> vtkImageShrink3D VIS = vtkImageShrink3D::New();<br>
>>><br>>>> VIS->SetInputConnection(v16->GetOutputPort());<br>>>><br>>>> VIS->SetShrinkFactors(2, 2, 1);<br>>>><br>>>> VIS->Update();<br>
>>><br>>>> // STEP 2:<br>>>><br>>>> vtkImageThreshold VIT = vtkImageThreshold::New();<br>>>><br>>>> VIT->SetInputConnection(VIS->GetOutputPort());<br>
>>><br>>>> VIT->ThresholdByLower(200);<br>>>><br>>>> VIT->ThresholdByUpper(2000);<br>>>><br>>>> VIT->Update();<br>>>><br>
>>> //step3<br>>>><br>>>> vtkImageGaussianSmooth VIG = vtkImageGaussianSmooth::New();<br>>>><br>>>> VIG->SetInputConnection(VIS->GetOutputPort());<br>
>>><br>>>> VIG->SetStandardDeviation(1.4, 1.4, 1.4);<br>>>><br>>>> VIG->Update();<br>>>><br>>>><br>>>><br>>>> //////////////// Create the 3d volume /////////////////<br>
>>><br>>>><br>>>><br>>>> vtkMarchingCubes skinExtractor = vtkMarchingCubes::New();<br>>>><br>>>> skinExtractor->GetOutput()->ReleaseDataFlagOff();<br>
>>><br>>>> skinExtractor->SetInputConnection(VIG->GetOutputPort());<br>>>><br>>>> skinExtractor->SetValue(0, 500);<br>>>><br>>>> skinExtractor->ComputeGradientsOn();<br>
>>><br>>>> skinExtractor->Update();<br>>>><br>>>><br>>>><br>>>> vtkTriangleFilter VTF = vtkTriangleFilter::New();<br>>>><br>>>> VTF->SetInputConnection(skinExtractor->GetOutputPort());<br>
>>><br>>>> VTF->GetOutput()->ReleaseDataFlagOff();<br>>>><br>>>> VTF->Update();<br>>>><br>>>><br>>>><br>>>> vtkDelaunay3D stripper = vtkDelaunay3D::New();<br>
>>><br>>>> stripper->SetInputConnection(VTF->GetOutputPort());<br>>>><br>>>> stripper->GetOutput()->ReleaseDataFlagOff();<br>>>><br>>>> stripper->Update();<br>
>>><br>>>><br>>>><br>>>> // Create Mapper<br>>>><br>>>> vtkDataSetMapper skinMapper = vtkDataSetMapper::New();<br>>>><br>>>> skinMapper->SetInputConnection(stripper->GetOutputPort());<br>
>>><br>>>><br>>>><br>>>><br>>>><br>>>><br>>><br></div></div>>> That is the expected output of Delaunay3D. I never understood what it<br>>> would be used for myself. It is very "convex-hull-ish".<br>
>><br>>> I'm not exactly sure what the output of this example is, and I'm also<br>>> not very familiar with DICOM, but maybe you can look at:<br>>> <a href="http://www.vtk.org/Wiki/VTK/Examples/Medical/Cxx/GenerateModelsFromLabels" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Medical/Cxx/GenerateModelsFromLabels</a><br>
>><br>>> (Bill - we should try to add images to a lot of these as we have time).<br>>><br>>> Thanks,<br>>><br>>> David<br>
<div class="im">>> _______________________________________________<br>>> Powered by <a href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br>>><br>>> Visit other Kitware open-source projects at<br>
>> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>>><br>>> Please keep messages on-topic and check the VTK FAQ at:<br>
>> <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>>><br>>> Follow this link to subscribe/unsubscribe:<br>>> <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
>><br>>><br>><br></div>> --<br>> View this message in context: <a href="http://old.nabble.com/strange-output%2C-any-advice-please-tp26818802p26828525.html" target="_blank">http://old.nabble.com/strange-output%2C-any-advice-please-tp26818802p26828525.html</a><br>
> Sent from the VTK - Users mailing list archive at Nabble.com.<br>
<div>
<div></div>
<div class="h5">><br>> _______________________________________________<br>> Powered by <a href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br>><br>> Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>> Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>><br>> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>><br></div></div></blockquote></div><br></div>