<div dir="ltr"><div>This example:<br><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Medical/GenerateModelsFromLabels">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Medical/GenerateModelsFromLabels</a><br><br></div>has logic to process non-consecutive labels. You should be able to include this logic in your example.<br>
<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jul 1, 2013 at 3:53 PM, cjayjones <span dir="ltr"><<a href="mailto:cjayjones@gmail.com" target="_blank">cjayjones@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have a 3d volume that as been segmented into several hundred regions with a<br>
scalar value using the label. I am trying to display a non-consecutive<br>
number of these. I have been able to display consecutive regions following<br>
the " GenerateCubesFromLabels.cxx<br>
<<a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Medical/GenerateCubesFromLabels" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Medical/GenerateCubesFromLabels</a>><br>
" example, however I am struggling to display non-consecutive regions. Is<br>
there a way to apply "ThresholdBetween" cascaded so that it is effectively<br>
an ideal multi-band pass filter? My other approach was to use<br>
"vtkImageMathematics" to do "SetOperationToReplaceCByK" and replace all of<br>
the region labels of interest to be consecutive and then use<br>
"ThresholdBetween" on the result, however, I'm also not able to cascade<br>
these operations it seems. My attempt at using "vtkImageMathematics" is as<br>
follows:<br>
<br>
<br>
<br>
Thank you for your help.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Displaying-Segmented-Data-tp5721706.html" target="_blank">http://vtk.1045678.n5.nabble.com/Displaying-Segmented-Data-tp5721706.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Unpaid intern in BillsBasement at noware dot com<br>
</div>