[vtkusers] vtkImageOpenClose3D woes

Uriah Liggett uliggett at sark.com
Fri Mar 3 14:57:05 EST 2006


When I attempt to use vtkImageOpenClose3D I receieve the error "subclass 
must override ThreadedExecute".  I looked in the sources and 
vtkImageOpenClose3D does not seem to override ThreadedExecute.  I am 
using this filter correctly (code listed below)?  Is anyone else using 
vtkImageOpenClose3D?  I am using VTK version 4.2.3.   Thanks in advance.

        vtkMultiThreader * rtMultiThreader = vtkMultiThreader::New();
        rtMultiThreader->SetGlobalMaximumNumberOfThreads(1);
        vtkImageOpenClose3D * pOpener = vtkImageOpenClose3D::New();   

        pOpener->SetInput(pImageIn); // set to my image data
        pOpener->SetKernelSize(kernelX, kernelY, kernelZ);
        pOpener->SetReleaseDataFlag(0);
        pOpener->SetOpenValue(0);
        pOpener->SetCloseValue(1);
        pOpener->Update();



More information about the vtkusers mailing list