[vtkusers] Custom Text Overlay Annotations on vtkResliceImageViewer
Dean Inglis
inglis.dl at gmail.com
Wed Apr 12 09:45:23 EDT 2017
Hi Randy,
I have had success with vtkCornerAnnotation in single view and multi-view
scenarios.
The pipeline you could use might be:
vtkImageData -> vtkImageMapToWindowLevelColors -> vtkCornerAnnotation
The output of the map to window level colors would also be input into a
vtkImageActor in a vtkRenderer.
You can use callbacks to transmit shared window level interaction and
values among multiple renderers.
vtkImageViewer2 is an example of how to get this kind of interaction
working in a single view.
- Dean
On Wed, Apr 12, 2017 at 1:11 AM, Randy Underwood <river165 at gmail.com> wrote:
> Hi,
> I would like to add some custom text annotation information to the
> display of each image displayed in vtkResliceImageViewer (or other viewer
> or window is fine too). Suppose I have a volumetric dataset (a stack of
> axial CT images) loaded in the viewer. As the user scrolls through the
> images I would like to display the current window width and level, the
> location of the current slice within the volume and some additional
> information the current slice. What is the correct (or preferred) mechanism
> for modifying vtkResliceImageViewer to display my custom information for
> each displayed slice.
> Thank you.
> Randy
>
> _______________________________________________
> 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
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170412/d18cdbb7/attachment.html>
More information about the vtkusers
mailing list