[vtkusers] Marking a pixel with a filled circle

David Doria daviddoria+vtk at gmail.com
Mon Dec 7 10:23:28 EST 2009


On Mon, Dec 7, 2009 at 8:54 AM, Francois Bertel
<francois.bertel at kitware.com> wrote:
> Hello,
>
> I don't know about this class but you can find quickly how to fix the
> error by looking at the documentation:
>
> If you go to the documentation of  vtkImageStencilData, you'll see
> that the "See also" section lists "vtkImageStencilSource" and
> "vtkImageStencil".
>
> "vtkImageStencilSource" is a superclass for sources that generate
> vtkImageStencilData.
>
> You'll see in the hierarchy diagram of "vtkImageStencilSource" a class
> called "vtkImageToImageStencil", it is probably what you want to
> connect to the second port of vtkImageBlend.
>
> Regards.

Francois,

I appreciate the pointers. I hope that you can appreciate how this
would be wildly confusing for someone setting out to combine two
images.  The thought process is:
"I have ImageA and ImageB and I want to combine the into ImageC".

I was expecting vtkImageBlend to simply take two vtkImageData's (as
David G. was thinking as well) and produce a third vtkImageData.

Based on what you said, there are now no errors, but the two images do
not seem to be combined in the display, I simply see the first image:
http://www.vtk.org/Wiki/VTK_Examples_Combine_Images

Thanks,

David



More information about the vtkusers mailing list