[Insight-users] Image in Buffer

Luis Ibanez luis.ibanez at kitware.com
Fri Jan 22 09:58:49 EST 2010


Hi Paulo,


There are three areas that you may be interested on.


1) InPlace filters:
                                 many filters in ITK can run by
    reusing the memory of the input image to store
    the pixel values of the output image.


2) You can get the memory buffer of an image and
    perform "manual" changes to it.  To do this safely
    you must first disconnect the image from the filter
    or reader that created it (if any).

    The key methods will be

                image->DisconnectPipeline();
                image->GetBufferPointer();


3) You can create ITK images that reuse a memory
     buffer that you have already allocated through other
     means. This is a typical way of interfacing ITK
     with existing applications (or existing libraries).

    The key class here is the ImageImageFilter.


You will find all this described in detail in the ITK
Software Guide

     http://www.itk.org/ItkSoftwareGuide.pdf

In the "Image" section of the "Data Representation"
chapter.

and in the Tutorials

   http://www.itk.org/ITK/help/tutorials.html

in particular in the Session:

"Getting Started V: Integrating ITK in your Application. "
http://www.itk.org/CourseWare/Training/GettingStarted-V.pdf



           Regards,


                  Luis



----------------------------------------------------------------
On Thu, Jan 21, 2010 at 8:05 PM, Paulo Henrique Junqueira Amorim
<paulojamorim at gmail.com> wrote:
> Hi all,
>
> It seems that there is some way to work with images in a buffer (not to
> occupy too much memory), is there any example?
>
> Regards,
> Paulo
>
> _____________________________________
> 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
>
>


More information about the Insight-users mailing list