[vtkusers] strange output, any advice please

Ali Habib ali.mahmoud.habib at gmail.com
Thu Dec 17 08:08:38 EST 2009


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());







An output appear with triangle not clear verywell , and the area of it is
larrge , and  warning messeges appear to me wich are:

Generic Warning: In m:\dev\cur\vtkdotnet\branch\50\Common\vtkMath.cxx, line
394

Unable to factor linear system



Generic Warning: In m:\dev\cur\vtkdotnet\branch\50\Common\vtkMath.cxx, line
394

Unable to factor linear system



Generic Warning: In m:\dev\cur\vtkdotnet\branch\50\Common\vtkMath.cxx, line
394

Unable to factor linear system



Generic Warning: In m:\dev\cur\vtkdotnet\branch\50\Common\vtkMath.cxx, line
394

Unable to factor linear system



Generic Warning: In m:\dev\cur\vtkdotnet\branch\50\Common\vtkMath.cxx, line
394

Unable to factor linear system



Warning: In m:\dev\cur\vtkdotnet\branch\50\Graphics\vtkDelaunay3D.cxx, line
487
vtkDelaunay3D (055A2FE8): 233 degenerate triangles encountered, mesh quality
suspect

any advice please
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20091217/bf7a9fc0/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Delunary3D.jpg
Type: image/jpeg
Size: 37448 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20091217/bf7a9fc0/attachment.jpg>


More information about the vtkusers mailing list