[vtkusers] Crossfade volumes

Biddiscombe, John A. biddisco at cscs.ch
Wed May 15 14:47:05 EDT 2013


Have a look at vtkImageBlend for ideas on how to combine two images

JB

From: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] On Behalf Of Eduardo Poyart
Sent: 15 May 2013 07:24
To: vtkusers at vtk.org
Subject: Re: [vtkusers] Crossfade volumes

I actually had no success using vtkSimpleImageToImageFilter. The filter works if I use SetInputData to set one single input image. However if I use AddInputData to add two images, the RequestData method in the filter never gets called.

Any pointers as to why?

Thanks
Eduardo


On Tue, May 14, 2013 at 4:08 PM, Eduardo Poyart <poyart at gmail.com<mailto:poyart at gmail.com>> wrote:
Hello,

I'm working with 3D images (volumes). I need to take two volumes and their respective transformations, and combine them into one single volume by cross-fading between them.

That is: if you define a line between the two centroids, a point in the middle of this line will have 50% of the intensity of the first volume and 50% of the second volume. Other points will proportionally have more of the first or of the second volume.

What would be a recommended way to do it?

I'm trying to implement it as a vtkSimpleImageToImageFilter. I modified RequestData so I can get access to two input images. What would be a good way to find the extents of the output image?

Maybe there is a standard way to do that, but I haven't found it...

Thanks
Eduardo


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130515/a081913b/attachment.htm>


More information about the vtkusers mailing list