[vtkusers] change imagedata during runtime

Divya Rathore divyarathore at gmail.com
Thu Oct 27 09:39:06 EDT 2011


yourInteractor->Render();


On Thu, Oct 27, 2011 at 2:17 PM, Hikaruchan
<Sandra.Schroetter.fl at ait.ac.at>wrote:

> Hi!
>
> I am new to VTK, and maybe it is an too simple question, but I do not get
> it
> work. Hope you can help me.
>
> I have an application with four renderviews (three 2D, one 3D), where I
> show
> my different MRI Slices (sagittal, coronal and axial, and in 3D all of
> them). Now I wanted to make a new Imagedata (which is no problem) and draw
> to it (which is no problem). After a user input I change some of the
> scalars
> of the imagedata (using GetScalarPointer()), but my changes are not
> displayed. I called
>
> electricDensityIma->Update(); //thats the vtkImageData
>
> after I have made my changes to imagedata.
>
> I don't know if it is important, but I make my image, then put a
> vtkImageGaussianSmooth on it, then a vtkImageMedian3D then a
> vtkImageReslice
> and so on.
>
> But I don't get it work, that the display is updated. Hope someone can help
> me and explain me how a imagedata can be changed during runtime and
> correcty
> updated and displayed.
>
> Thank you in advance and please excuse my bad english. :-)
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/change-imagedata-during-runtime-tp4942953p4942953.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20111027/3a7750c9/attachment.htm>


More information about the vtkusers mailing list