[Ves] ves kiwi visualisation pipelines

Pat Marion james.patrick.marion at gmail.com
Tue Jun 3 19:32:53 EDT 2014


vesKiwiImageWidgetRepresentation and vesKiwiImagePlaneDataRepresentation
both have a method called setImage(vtkImageData*).  It's up to the
application to load vtkImageData from a file and construct a representation
class.  For an example, look in vesKiwiViewerApp and search for
setImageData.

The vesKiwiImageWidgetRepresentation takes a 3d image and renders it as
three slices on the x,y,z axes.  It has a rather complex implementation
because of the touch gesture support, but the meat of it can be found in
vesKiwiImageWidgetRepresentation::setSliceIndex().

Volume rendering isn't supported in VES currently, only
vesKiwiImageWidgetRepresentation is provided for volumes.

Pat


On Tue, Jun 3, 2014 at 7:07 PM, Wright James (NHS Greater Glasgow & Clyde) <
jamie.wright at nhs.net> wrote:

> Hi Pat,
>
> Yes I had seen those files, but what I can't see is where the head.vti
> file would be used as a parameter to access the methods of
> vesKiwiImagePlaneRepresentation.
>
> Re. not being able to use vtk 's rendering classes, does that mean that
> volume rendering using for example a VolumeRaycastMapper is not possible?
>
> thanks for your help
>
>
> Jamie Wright | Clinical Scientist | Nuclear Medicine | NHSGGC (Southern
> General and Glasgow Royal Infirmary)
> jamie.wright at nhs.net
> ________________________________________
> From: Pat Marion [james.patrick.marion at gmail.com]
> Sent: 03 June 2014 23:11
> To: Wright James (NHS Greater Glasgow & Clyde)
> Cc: ves at public.kitware.com
> Subject: Re: [Ves] ves kiwi visualisation pipelines
>
> Hi Jamie,
>
> Have you looked at vesKiwiImagePlaneDataRepresentation and
> vesKiwiImageWidgetRepresentation?
>
> For contouring, you can use the vtkContourFilter on a vtkImageData and get
> a vtkPolyData result.  The vtkPolyData is rendered using
> vesKiwiPolyDataRepresentation.  Tthe vesKiwiImagePlaneDataRepresentation is
> a subclass of vesKiwiPolyDataRepresentation, it takes a 2d vtkImageData and
> renders it as a textured quad.  For coloring, see line 120 in
> vesKiwiImagePlaneDataRepresentation.  It uses a vesKiwiColorMapCollection
> class, which is basically just a container of preferred color maps.  If no
> preferred color map is set, then you see on line 122 it defaults to a
> grayscale map.  The color map can be any subclass of vtkScalarsToColors, so
> that includes a vtkColorTransferFunction is that's what you want to use.
>
> In general, you can use any vtk data filters in ves/kiwi, but you can't
> use vtk's rendering classes and widgets, because of the OpenGL ES 2.0
> requirement.  Your processing pipeline should eventually generate
> vtkPolyData to be rendered.
>
> Pat
>
>
>
>
> On Tue, Jun 3, 2014 at 5:51 PM, Wright James (NHS Greater Glasgow & Clyde)
> <jamie.wright at nhs.net<mailto:jamie.wright at nhs.net>> wrote:
> Dear All,
>
> I am looking through the vesKiwi*.cpp source code in an attempt to figure
> out the various visualisation pipelines used on the inbuilt datasets on
> KiwiViewer. I cannot find where the visualisation pipelines take place on
> each of the inbuilt datasets.
>
> For Example, in VTK desktop for the headCT dataset I would use something
> like vtkImagePlaneWidget() to slice the data into the three orthogonal
> planes, a vtkColorTransferFunction() to set the color table to greyscale,
> and a vtkContourFilter() to extract the isosurface. But I don't seem to be
> able to find this pipeline in the kiwi source files.
>
> Any help on understanding how each of the datasets are processed would be
> appreciated
>
>
>
> Jamie Wright | Clinical Scientist | Nuclear Medicine | NHSGGC
>
>
> ********************************************************************************************************************
>
> This message may contain confidential information. If you are not the
> intended recipient please inform the
> sender that you have received the message in error before deleting it.
> Please do not disclose, copy or distribute information in this e-mail or
> take any action in reliance on its contents:
> to do so is strictly prohibited and may be unlawful.
>
> Thank you for your co-operation.
>
> NHSmail is the secure email and directory service available for all NHS
> staff in England and Scotland
> NHSmail is approved for exchanging patient data and other sensitive
> information with NHSmail and GSi recipients
> NHSmail provides an email address for your career in the NHS and can be
> accessed anywhere
>
>
> ********************************************************************************************************************
> _______________________________________________
> Ves mailing list
> Ves at public.kitware.com<mailto:Ves at public.kitware.com>
> http://public.kitware.com/cgi-bin/mailman/listinfo/ves
>
>
>
> ********************************************************************************************************************
>
> This message may contain confidential information. If you are not the
> intended recipient please inform the
> sender that you have received the message in error before deleting it.
> Please do not disclose, copy or distribute information in this e-mail or
> take any action in reliance on its contents:
> to do so is strictly prohibited and may be unlawful.
>
> Thank you for your co-operation.
>
> NHSmail is the secure email and directory service available for all NHS
> staff in England and Scotland
> NHSmail is approved for exchanging patient data and other sensitive
> information with NHSmail and GSi recipients
> NHSmail provides an email address for your career in the NHS and can be
> accessed anywhere
>
>
> ********************************************************************************************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/ves/attachments/20140603/f74bfb02/attachment-0003.html>


More information about the Ves mailing list