[vtkusers] vtkSelectEnclosedPoints.Update() doesn't finish

Sam sistephan at gmail.com
Sun Nov 21 16:13:27 EST 2010


Hello,

I'm using vtkSelectEnclosedPoints to check how many voxels from my model
exist in my image.  However, the update function of vtkSelectEnclosedPoints
never returns.  Please help, here is my pipeline:

            //Read in Model PolyData vtk file.
            vtkPolyDataReader polyDataReader = new vtkPolyDataReader();
            polyDataReader.SetFileName("C:\\DICOModel\\OriginalModel.vtk");
            polyDataReader.Update();
            vtkPolyData model = polyDataReader.GetOutput();

            //Read in MRI Volume
            itkImageBase imageInput = ImageType.New();
            imageInput.ReadSeries("C:\\DICOMVolume", "*.dcm");

            //Convert itkImagebase into a vtkImageData
            vtkImageData dicomImageData = new vtkImageData();
            itkImageToVTKImageFilter_IUC3 convertITKToVTK =
itkImageToVTKImageFilter_IUC3.New();
            convertITKToVTK.SetInput(imageInput);
            convertITKToVTK.Update();
            
            dicomImageData = convertITKToVTK.GetOutput();

            vtkSelectEnclosedPoints vtkModelRegion = new
vtkSelectEnclosedPoints();
            vtkModelRegion.SetInput(dicomImageData);
            //vtkModelRegion.SetCheckSurface(1);
            vtkModelRegion.SetSurface(model);
            vtkModelRegion.Update();   //Never returns, I let it run for 20
minutes and stopped it.

-- 
View this message in context: http://vtk.1045678.n5.nabble.com/vtkSelectEnclosedPoints-Update-doesn-t-finish-tp3274677p3274677.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list