[vtkusers] vtkImageStencil too slow for large images

David Gobbi david.gobbi at gmail.com
Mon Jul 25 08:18:30 EDT 2011


Hi Jothy,

How are you creating the stencil?  The reason that I ask is that
vtkImageStencil is a fast filter, so I doubt that it is what is causing
the slowdown.  But some of the stencil source filters, especially
vtkImplicitFunctionToImageStencil, can be slow depending on how
they are used.

 - David

On Mon, Jul 25, 2011 at 3:09 AM, Jothy <jothybasu at gmail.com> wrote:
>
> I am running in release mode in QtCreator. I even tried running from outside and also copiling with -o2 and -03 optimization flags, but there is no improvement.
>
> Jothy
>
> On Sun, Jul 24, 2011 at 4:18 AM, John Drescher <drescherjm at gmail.com> wrote:
>>
>> On Sat, Jul 23, 2011 at 3:48 PM, Jothy <jothybasu at gmail.com> wrote:
>> > Hi all,
>> >
>> > In my program vtkImageStencil take alomost 2-3 mins for vtkImageData with
>> > 160 slices with 0.9x0.9x2.5 spacing. Is there any way to speed up this?
>> >
>> > Thanks
>> >
>>
>> Are you running release mode? And also not inside the debugger?
>> Running debug mode or inside the Visual Studio can slow down some
>> applications considerably ( I am talking about > 10 times slower).
>>
>> John



More information about the vtkusers mailing list