[vtkusers] Show/Hide voxels based on combination of two scalars
David E DeMarle
dave.demarle at kitware.com
Tue Sep 17 10:06:12 EDT 2013
Simplest way to do it is probably two threshold filters. One on x, the the
other on y (either order). Then specify the color as normal with y as the
input to the lookup table. Another alternative that comes to mind is using
a vtkArrayCalculator with an if(condition,true_expression,false_expression)
to make a derived attribute that you cull off of directly.
David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909
On Tue, Sep 17, 2013 at 2:45 AM, Perryn Fowler <pezlists at gmail.com> wrote:
>
> I have some volume data that has 2 scalar values (x and y) at each voxel.
>
> I want to be able to render the volume where the colour is determined by
> the x value.
> I also want to be able to show only parts of the volume that meet range
> criteria on both values. I don't mind if this is done via thresholding or
> opacity.
>
> For example, I want to be able to say thing like:
>
> "Only show voxels for which the x value is between 10 and 20 AND the y
> value is between 0.5 and 0.6. Set the colour of the shown voxels based on
> the x value"
>
> I have confused myself looking through the documentation to see if this
> can be done - any pointers would be greatly appreciated :)
>
> cheers
> Perryn
>
>
> _______________________________________________
> 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/20130917/62685fb1/attachment.htm>
More information about the vtkusers
mailing list