[Insight-users] Does "InPlace" filters really work "In Place"?
Bill Lorensen
bill.lorensen at gmail.com
Sun Jul 27 09:03:31 EDT 2008
Yulia,
The example works fine for me when I add filter->InPlaceOn(). Are you
running the example data or your own?
Replace the first filter-<Update(); with
try
{
filter->Update();
}
catch (itk::ExceptionObject &ex)
{
std::cout << ex;
return EXIT_FAILURE;
}
and see if you get more information.
Actually, place a try/catch around each ->Update() just in case the
problem is with reading or writing.
Bill
On Fri, Jul 25, 2008 at 11:07 AM, <Yulia.Arzhaeva at csiro.au> wrote:
> Hello,
>
> I have just started using ITK, so I might have overlooked something..
>
> I have tried to use ThresholdImageFilter with "InPlace" feature ON, i.e. I called filter->InPlaceOn() before calling filter->Update(). As a result, I got a runtime error. I played with an example code, so it can be reproducible.
>
> If you take an example code ThresholdImageFilter.cxx from the ..\Examples\Filtering folder , leave just one filter update instead of three updates, for simplicity, and insert filter->InPlaceOn(), would you get a runtime error as well?
>
> Could you explain me what's wrong, either with my way to set InPlace feature, or with using such a filter "In Place" at all?
>
> Thanks,
> Yulia
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>
More information about the Insight-users
mailing list