You need to update just the slice extent and it should be razor fast, not blend the whole image.<br><br>Take a look at the paintbrush widgets in VTKEdge. They do pretty much all of what you are asking for and more. There's ample documentation and plenty of tests to help you get started.<br>
<br><div class="gmail_quote">On Thu, Feb 17, 2011 at 6:29 PM, John Drescher <span dir="ltr"><<a href="mailto:drescherjm@gmail.com">drescherjm@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Thu, Feb 17, 2011 at 7:40 AM, Xiaopeng Yang <<a href="mailto:yxp233@postech.ac.kr">yxp233@postech.ac.kr</a>> wrote:<br>
><br>
> Wow, that’s a great project! But it is hard for me to understand it. I applied vtkImageBlend to combine the original and mask images. That’s a pretty easy way for me. But I cannot change the mask image color. Do you have any idea to change the mask image color?<br>
><br>
><br>
</div>Is that fast enough for you? When I wrote my CT Viewer 2 years ago<br>
using a vtkImageBlend to blend a mask image with my CT data sets ended<br>
up taking a ridiculously large amount of memory (800+ MB per view<br>
axial, coronal,sagittal) and had a 20 to 60 second setup time.<br>
Overlaying a color mask slice over a grayscale slice was my solution<br>
and that was instant.<br>
<br>
John<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>