[vtkusers] vtkImageStencil problem
David Gobbi
david.gobbi at gmail.com
Thu Aug 23 18:33:34 EDT 2012
Hi Lewes,
If there is a bug, I suspect it would be in the Subtract() method, rather
than in the vtkImageStencil filter. I can look through the Subtract()
code to see if there is anything that looks wrong. Is there a way that
you can create a minimal program+data that I can run on my own
system to duplicate the crash?
- David
On Thu, Aug 23, 2012 at 2:52 PM, liulewes <lewes_infor at hotmail.com> wrote:
> Hi all, I'm using vtkImageStencil to create ROIs on an image. The
> vtkImageStencilData::Add() works well for me, but
> vtkImageStencilData::Subtract() will cause my program to crash form time to
> time.
> By looking at the source code, the program crashes in vtkImageStencil.cxx
> line 194 where "tmpPtr" becomes invalid and (outSpanEndPtr - outPtr) becomes
> negative. I'm not sure whether vtkImageStencilData::Subtract() causes this
> problem or it's sth. else. Can anyone give some suggestions?
> Lewes.
More information about the vtkusers
mailing list