[vtkusers] strange output, any advice please

Ali Habib ali.mahmoud.habib at gmail.com
Fri Dec 18 06:21:47 EST 2009


to create a tetra hedral mesh , I created a mesh but no appear like the
image at the below link
I used vtktriangle filter , then vtkquadric clustering , I got the attached
output , any suggestion to enhance it

Best regards

On Fri, Dec 18, 2009 at 6:28 AM, Bill Lorensen <bill.lorensen at gmail.com>wrote:

> What is the problem you are trying to solve?
>
> On Thu, Dec 17, 2009 at 9:10 AM, InfoSeekerr
> <ali.mahmoud.habib at gmail.com> wrote:
> >
> > it should be like the photo at the following link
> > http://www.iue.tuwien.ac.at/phd/fleischmann/img346.gif
> >
> > do u have any suggestion regards that
> >
> > Best regards
> >
> > David Doria-2 wrote:
>  >>
> >> On Thu, Dec 17, 2009 at 8:08 AM, Ali Habib <ali.mahmoud.habib at gmail.com
> >
> >> wrote:
> >>> Dear Bill,
> >>> I used VtkDelunary3D instead of 2D, and I used before reconstruction
> >>> series
> >>> of fillters to decrease the dataset ,attached is the output
> >>>
> >>> The code I used is :
> >>>
> >>> vtkDICOMImageReader v16 =  vtkDICOMImageReader::New();
> >>>
> >>>             v16->SetDirectoryName(@"D:\work\Master
> >>> Degree\DataSet\case2\DICOM\PA1\ST1\SE2");
> >>>
> >>>             v16->SetDataOrigin(2, 2, 1);
> >>>
> >>>             v16->Update();
> >>>
> >>>             /////////////////////Pre processing
> >>>
> >>>             // STEP 1:
> >>>
> >>>             vtkImageShrink3D VIS =  vtkImageShrink3D::New();
> >>>
> >>>             VIS->SetInputConnection(v16->GetOutputPort());
> >>>
> >>>             VIS->SetShrinkFactors(2, 2, 1);
> >>>
> >>>             VIS->Update();
> >>>
> >>>             // STEP 2:
> >>>
> >>>             vtkImageThreshold VIT =  vtkImageThreshold::New();
> >>>
> >>>             VIT->SetInputConnection(VIS->GetOutputPort());
> >>>
> >>>             VIT->ThresholdByLower(200);
> >>>
> >>>             VIT->ThresholdByUpper(2000);
> >>>
> >>>             VIT->Update();
> >>>
> >>>             //step3
> >>>
> >>>             vtkImageGaussianSmooth VIG = vtkImageGaussianSmooth::New();
> >>>
> >>>             VIG->SetInputConnection(VIS->GetOutputPort());
> >>>
> >>>             VIG->SetStandardDeviation(1.4, 1.4, 1.4);
> >>>
> >>>             VIG->Update();
> >>>
> >>>
> >>>
> >>>             //////////////// Create the 3d volume /////////////////
> >>>
> >>>
> >>>
> >>>             vtkMarchingCubes skinExtractor =  vtkMarchingCubes::New();
> >>>
> >>>             skinExtractor->GetOutput()->ReleaseDataFlagOff();
> >>>
> >>>             skinExtractor->SetInputConnection(VIG->GetOutputPort());
> >>>
> >>>             skinExtractor->SetValue(0, 500);
> >>>
> >>>             skinExtractor->ComputeGradientsOn();
> >>>
> >>>             skinExtractor->Update();
> >>>
> >>>
> >>>
> >>>             vtkTriangleFilter VTF =  vtkTriangleFilter::New();
> >>>
> >>>             VTF->SetInputConnection(skinExtractor->GetOutputPort());
> >>>
> >>>             VTF->GetOutput()->ReleaseDataFlagOff();
> >>>
> >>>             VTF->Update();
> >>>
> >>>
> >>>
> >>>             vtkDelaunay3D stripper =  vtkDelaunay3D::New();
> >>>
> >>>             stripper->SetInputConnection(VTF->GetOutputPort());
> >>>
> >>>             stripper->GetOutput()->ReleaseDataFlagOff();
> >>>
> >>>             stripper->Update();
> >>>
> >>>
> >>>
> >>>             // Create Mapper
> >>>
> >>>            vtkDataSetMapper skinMapper =  vtkDataSetMapper::New();
> >>>
> >>>            skinMapper->SetInputConnection(stripper->GetOutputPort());
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>
> >> That is the expected output of Delaunay3D. I never understood what it
> >> would be used for myself. It is very "convex-hull-ish".
> >>
> >> I'm not exactly sure what the output of this example is, and I'm also
> >> not very familiar with DICOM, but maybe you can look at:
> >>
> http://www.vtk.org/Wiki/VTK/Examples/Medical/Cxx/GenerateModelsFromLabels
> >>
> >> (Bill - we should try to add images to a lot of these as we have time).
> >>
> >> Thanks,
> >>
> >> David
> >> _______________________________________________
> >> Powered by www.kitware.com
> >>
> >> Visit other Kitware open-source projects at
> >> http://www.kitware.com/opensource/opensource.html
> >>
> >> Please keep messages on-topic and check the VTK FAQ at:
> >> http://www.vtk.org/Wiki/VTK_FAQ
> >>
> >> Follow this link to subscribe/unsubscribe:
> >> http://www.vtk.org/mailman/listinfo/vtkusers
> >>
> >>
> >
> > --
> > View this message in context:
> http://old.nabble.com/strange-output%2C-any-advice-please-tp26818802p26828525.html
> > Sent from the VTK - Users mailing list archive at Nabble.com.
>  >
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20091218/5e9ed8da/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Decimate output.jpg
Type: image/jpeg
Size: 75876 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20091218/5e9ed8da/attachment.jpg>


More information about the vtkusers mailing list