[vtkusers] Crossfade volumes

Eduardo Poyart poyart at gmail.com
Wed May 15 01:24:28 EDT 2013


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> 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/20130514/8d9335d8/attachment.htm>


More information about the vtkusers mailing list