[vtkusers] Blending images with non-zero origin

ferrant ferrant at tele.ucl.ac.be
Fri Jul 13 11:55:25 EDT 2001


Hi,

I need to blend two images that have different origins and different
sizes. When they get blended, this is not taken into account, i.e. the
origin of the images is assumed to be 0,0,0. I assume this is the way it
is supposed to work. However, I would like this to be taken into account.

To solve my problem, I would need a class that resamples an image given
new bounds, and that takes the origin into account, so that if for
instance the origin is 30,30,30 and the image size 100,100,100 and that I
want to blend it with a 256,256,256 image whose origin is 0,0,0, the first
image gets black pixels up the the bounds of the second image. I tried
ImageConstantPad, but that sets the origin to 0 before extending the
image, and ImageResample does not work the way I want either.

Is there a filter that provides this functionality, or do I need to write
it myself ?

thanks,

matt

M.Ferrant, Ph.D.
UCL/TELE Room A-157 Place du Levant, 2 B-1348LLN - Belgium
Tel. +32-10-478073 Fax. : +32-10-472089
http://www.tele.ucl.ac.be/MEMBERS/Ferrant_Matthieu_e.html






More information about the vtkusers mailing list