[vtkusers] Image Filtering of Volume Data

jimham008 jim.hamilton at revealimaging.com
Sat Jun 11 16:16:42 EDT 2011


I was able to insert the filter into my pipeline as follows and it seems to
work.  Here is my code sample:

                // m_dataImport is vtkImageImport and reads in my slices
                // m_input is vtkImageData which is what gets passed to the
mapper
                 
		vtkImageMedian3D* medianFilter = vtkImageMedian3D::New();
		medianFilter->SetKernelSize(5,5,1);

		medianFilter->SetInput(m_dataImport->GetOutput());
		medianFilter->Update();
		
		m_input = medianFilter->GetOutput();

Thanks for your reply.

--
View this message in context: http://vtk.1045678.n5.nabble.com/Image-Filtering-of-Volume-Data-tp4479420p4479557.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list