[vtkusers] ITK + VTK + multiframe dicom files: getMaxSlice() always 0

Marcos fotosentido at gmail.com
Fri Aug 28 20:31:59 EDT 2015


I finally found out that the problem was reading from itk.

My itk::Image object had 2 dimensions, so I set it to 3 and now I can get
the frames from vtk.

Hope that this helps somebody too.


2015-08-29 1:29 GMT+02:00 Marcos <fotosentido at gmail.com>:

> Hi,
>
> I'm using itk::ImageToVTKImageFilter to connect itk::ImageFileReader with
> vtkImageViewer2.
>
> I can visualize my image in QVTKWidget.
>
> I'd like to access every frame, but vtkImageViewer2::getMaxSlice() is
> returning 0 every time.
>
> I'm connecting the pipeline with:
>
> imageData->DeepCopy(connector->GetOutput());
>
> imageViewer->SetInputData(imageData);
>
>
> I understand that in VTK 6 this is the way.
>
> Could I access to every frame from VTK?
>
> Thanks.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150829/29272183/attachment.html>


More information about the vtkusers mailing list