[vtkusers] How can I extract an image plane from image reslice object?
    jose manjon 
    jmanjon at fis.upv.es
       
    Fri Jul  5 05:27:10 EDT 2002
    
    
  
Hi there,
How can I extract an image plane from image reslice object?
I use this:
reslice=vtkImageReslice::New();
reslice->SetInput(data);
reslice->SetResliceTransform(transform);
reslice->InterpolateOn();
reslice->SetOutputSpacing(pDoc->resx,pDoc->resy,pDoc->resz);
reslice->SetBackgroundLevel(0);
reslice->GetInput()->SetUpdateExtentToWholeExtent(); // to speed up
reslice->GetInput()->Update();
now I want to get an arbitrary image plane on a  vtkImageData object:
 vtkImageData * ima=reslice->GetOutput();
but it is very slow!!!!
there is any other way to access image data without using image viewer output?
I need the images to show them on a MFC CView derived class...
thanks in advance
jose
##########################################################
        Prof.  Jose Vicente Manjón Herrera
        Dept. Fisica Aplicada
        Escuela Universitaria de Informatica
        Universidad Politécnica de Valencia
##########################################################
    
    
More information about the vtkusers
mailing list