[vtkusers] [Insight-users] Overlay segmented binary image on vtkImageViewer2

Xiaopeng Yang yxp233 at postech.ac.kr
Thu Feb 17 08:24:00 EST 2011


Thanks you for the immediate and precious information.

 

Best,

Yang

 

发件人: Karthik Krishnan [mailto:karthik.krishnan at kitware.com] 
发送时间: 2011년 2월 17일 목요일 오후 10:03
收件人: John Drescher
抄送: Xiaopeng Yang; insight-users at itk.org; vtk
主题: Re: [vtkusers] [Insight-users] Overlay segmented binary image on vtkImageViewer2

 

You need to update just the slice extent and it should be razor fast, not blend the whole image.

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.

On Thu, Feb 17, 2011 at 6:29 PM, John Drescher <drescherjm at gmail.com> wrote:

On Thu, Feb 17, 2011 at 7:40 AM, Xiaopeng Yang <yxp233 at postech.ac.kr> wrote:
>
> 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?
>
>

Is that fast enough for you? When I wrote my CT Viewer 2 years ago
using a vtkImageBlend to blend a mask image with my CT data sets ended
up taking a ridiculously large amount of memory (800+ MB per view
axial, coronal,sagittal) and had a 20 to 60 second setup time.
Overlaying a color mask slice over a grayscale slice was my solution
and that was instant.

John
_______________________________________________
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/20110217/9e8617b6/attachment.htm>


More information about the vtkusers mailing list