[ITK-users] Connecting multiframe dicom file to VTK

Marcos fotosentido at gmail.com
Fri Aug 28 20:04:35 EDT 2015


Hi Matt,

yes, otherwise I guess I couldn't see anything:

con->SetInput(itkImage);

con->Update();


imageData->DeepCopy(con->GetOutput());

imageViewer->SetInputData(imageData);

imageViewer->GetRenderer()->ResetCamera();


// some renderwindow and interactor settings for the widget


widget->update()



I'd like to change frames, but I guess I'm sending just one frame.

Also, I can't find an example from ITK to access each frame. If I
can't set a pipeline so I can do it from VTK, maybe I can read a slice
in ITK when I need it and pass that frame through the connector and
update.


Maybe I shouldn't use an itk::ImageFileReader, I don't know.



2015-08-29 1:52 GMT+02:00 Matt McCormick <matt.mccormick at kitware.com>:

> Hi Marcos,
>
> Are you calling ->Update() on connector?
>
> Matt
>
> On Fri, Aug 28, 2015 at 7:37 PM, Marcos <fotosentido at gmail.com> wrote:
> > Hi,
> >
> > I'm using itk::ImageToVTKImageFilter to connect itk::ImageFileReader with
> > vtkImageViewer2.
> >
> > I can visualize my image in QVTKWidget.
> >
> > I don't know if I'm reading correctly with ITK to pass that to VTK:
> >
> > 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);
> >
> >
> >
> > Any ideas?
> >
> > Thanks.
> >
> > _____________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Kitware offers ITK Training Courses, for more information visit:
> > http://www.kitware.com/products/protraining.php
> >
> > Please keep messages on-topic and check the ITK FAQ at:
> > http://www.itk.org/Wiki/ITK_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://public.kitware.com/mailman/listinfo/insight-users
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/insight-users/attachments/20150829/1b185fa6/attachment.html>


More information about the Insight-users mailing list