<div dir="ltr"><div><div>Hi Jamie,<br><br>Have you looked at vesKiwiImagePlaneDataRepresentation and vesKiwiImageWidgetRepresentation?<br><br></div>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.<br>

<br></div><div>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.<br>

</div><div><br></div>Pat<br><div><br><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jun 3, 2014 at 5:51 PM, Wright James (NHS Greater Glasgow & Clyde) <span dir="ltr"><<a href="mailto:jamie.wright@nhs.net" target="_blank">jamie.wright@nhs.net</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear All,<br>
<br>
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.<br>


<br>
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.<br>


<br>
Any help on understanding how each of the datasets are processed would be appreciated<br>
<br>
<br>
<br>
Jamie Wright | Clinical Scientist | Nuclear Medicine | NHSGGC<br>
<br>
********************************************************************************************************************<br>
<br>
This message may contain confidential information. If you are not the intended recipient please inform the<br>
sender that you have received the message in error before deleting it.<br>
Please do not disclose, copy or distribute information in this e-mail or take any action in reliance on its contents:<br>
to do so is strictly prohibited and may be unlawful.<br>
<br>
Thank you for your co-operation.<br>
<br>
NHSmail is the secure email and directory service available for all NHS staff in England and Scotland<br>
NHSmail is approved for exchanging patient data and other sensitive information with NHSmail and GSi recipients<br>
NHSmail provides an email address for your career in the NHS and can be accessed anywhere<br>
<br>
********************************************************************************************************************<br>
_______________________________________________<br>
Ves mailing list<br>
<a href="mailto:Ves@public.kitware.com">Ves@public.kitware.com</a><br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/ves" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/ves</a><br>
</blockquote></div><br></div>