[Insight-users] Memory-related Question
salah
salah at gris.uni-tuebingen.de
Wed Jul 7 06:44:28 EDT 2004
> Hello all,
>
> I have a question related to memory allocation in itk filters.
>
> when I have an itk image in some program, defined in terms of a smartpointer. For example:
>
> ImageType::Pointer exampleImage = ImageType::New();
> exampleImage->SetRegions( region);
> exampleImage->Allocate();
>
> Now if I feed this image as input to some itk filter that inherits
> from ItkImageToImageFilter (by filter->SetInput(exampleImage); ),
> would this filter create/allocate a copy of the exampleImage? Or it
> just uses the one allocated by/in the calling module?
>
> My question is due to the fact that an itk program of me hangs (sometimes
> terminates abnormally, reporting an error with the graphic card) with
> big images (512x512x150) but behaves well with smaller ones.
>
> Many thanks,
>
> Zein
More information about the Insight-users
mailing list