[Insight-developers] memory usage

Bill Lorensen bill.lorensen at gmail.com
Fri Feb 20 12:43:37 EST 2009


Leila,

You can try a couple of thing:

If you are running through parts of your pipeline in one pass, use
ReleaseDataFlagOn() on those filters.

If you are running pixel wise operations, use InPlaceOn().

There is an itkMemoryProbe class that might help monitoring usage.
I've never used it, but there is an illustrative test.

Regards,

Bill

On Fri, Feb 20, 2009 at 12:37 PM, Leila Baghdadi
<baghdadi at phenogenomics.ca> wrote:
> Hi guys,
>
> I have a large program that uses various itk filters and performs
> segmentation on deformable models on more than one object at a time. I
> calculate various images including the gradient to help the deformable
> model and also have the original high resolution MR image.
>
> so right now for a 500 MB image I require about 14 GB of memory,
>
> just wondering how can I watch the memory usage at every stage of the
> program and if there are ways to reduce it.
>
> Leila
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.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-developers
>


More information about the Insight-developers mailing list