[vtk-developers] The ImageStencil Issue
dean.inglis at camris.ca
dean.inglis at camris.ca
Wed Aug 23 14:19:52 EDT 2006
Hi David,
the fix works, thanks! Looking forward
to more stencil possibilities.
Dean
> I just committed a fix, so please try again when you have a chance. The
> whole reason that the trick of calling SetSpacing() and SetOrigin() on
> the stencil inputs of a vtkImageFilter works is because it bypasses the
> pipeline, so converting that bit of code to the new pipeline made it
> completely nonfunctional. I just had to set two lines of code back to
> the way they were.
>
> This fix will have to be considered "good enough" until stencils are
> made to use the pipeline properly.
>
> - David
>
>
> dean.inglis at camris.ca wrote:
> > David,
> >
> > have a look at php bug tracker item #1452.
> > If I run the tcl script as is, the ROI
> > is not updated correctly. If I modify the
> > script to delay updating the vtkImageAccumulate
> > and vtkTextActor pipeline until after the
> > first render, things work out (see modified
> > tcl script below). Prior to executives,
> > the submitted bug script would work. I believe
> > there is still a pipeline issue here. Sorry I
> > can't be of much help: I still haven't found time
> > to dive into and figure out executives...
> >
> >
> >>> The vtkImageStencilSource class requires the Spacing and Origin of
> >>> whichever image eventually uses the stencil to be propagated the wrong
> >>> way along the pipeline. Ouch!
> >>>
> >>>
More information about the vtk-developers
mailing list