[Insight-users] Cancel Filter Computation

Vincent LEFORT vincent.lefort at gmail.com
Mon Jun 7 10:19:24 EDT 2010


Hi,

We currently use SetAbortGenerateData(true) for cancel computation.

But we have some crash with this.

If I use on MedianFilter (for example) and force SetNumberOfThreads(1) this
will not crash, but if we dont use SetNumberOfThread before computation, my
program crash.

Do you have any idea ?
Or perhaps it's a missuse of this functionality ?

Thanks

On Mon, May 10, 2010 at 15:32, Vincent LEFORT <vincent.lefort at gmail.com>wrote:

> Hi,
>
> It seems to be ok on my filter.
>
> Thanks.
>
> On Fri, May 7, 2010 at 16:53, Dan Mueller <dan.muel at gmail.com> wrote:
>
>> Hi Vincent,
>>
>> Try the following:
>>    processObject->AbortGenerateDataOn();
>>
>> The documentation says:
>>  /** Set the AbortGenerateData flag for the process object. Process
>> objects
>>   *  may handle premature termination of execution in different ways.  */
>>
>> Translation: this only works if the filter has internal support for
>> early termination.
>>
>> Hope this helps.
>>
>> Cheers, Dan
>>
>> On 7 May 2010 16:40, Vincent LEFORT <vincent.lefort at gmail.com> wrote:
>> > Hello, i have some filters connected together.
>> > I want to stop (i have a user interface) filters computation but a don't
>> see
>> > any function or any way to do.
>> > Someone have an idea ?
>> > Thanks a lot.
>> > Vincent LEFORT
>> > _____________________________________
>> > Powered by www.kitware.com
>> >
>> > Visit other Kitware open-source projects at
>> > http://www.kitware.com/opensource/opensource.html
>> >
>> > Kitware offers ITK Training Courses, for more information visit:
>> > http://www.kitware.com/products/protraining.html
>> >
>> > Please keep messages on-topic and check the ITK FAQ at:
>> > http://www.itk.org/Wiki/ITK_FAQ
>> >
>> > Follow this link to subscribe/unsubscribe:
>> > http://www.itk.org/mailman/listinfo/insight-users
>> >
>> >
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100607/d1016e35/attachment.htm>


More information about the Insight-users mailing list