[Insight-users] ImageImportFilter : Application integration passing
data In/Out of ITK pipeline.
Luis Ibanez
luis.ibanez at kitware.com
Tue, 30 Dec 2003 17:00:22 -0500
Hi Hari,
Integration of ITK pipelines with non-ITK applications
is explained in detail in the Tutorial sessions
http://www . itk . org/HTML/Tutorials . htm
In particular in
http://www . itk . org/CourseWare/Training/GettingStarted-V . pdf
Several data transfer cases are discussed in this
document. You will find the following scenarios:
A) The case of copying the data from an input buffer into
an allocated ITK image is presented in page 5
B) The case of taking an image buffer from the application
and passing it to the ImportFilter in order to create
an ITK image that can be feed in the pipeline is treated
in page 10.
C) The case of taking the output of an ITK filter
and copying into a custom buffer is presented
in page 13.
D) An option for sharing the input buffer is presented
in page 17.
E) An option for sharing the output buffer is presented
in page 21.
Please let us know if you have further questions,
Thanks
Luis
-----------------------------
Hari Sundar wrote:
> Hi,
>
> I am trying to integrate itk with some other C++ code that I already
> have. I basically need to have an itk ImageToImageFilter pipeline
> integrated into my current application. That is I input an image buffer
> into the pipeline and need to get the filtered image buffer back.
>
> I plan on using the ImportImageFilter for this. I have 2 buffers ...
>
> unsigned short * buff_in;
> unsigned short * buff_out;
>
> I set up the input buffer the way it is described in the software guide.
> example Image5.cxx
>
> How do I get the output of the filter into my buffer buff_out ?
>
> thanks,
>
> -Hari
>
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk . org
> http://www . itk . org/mailman/listinfo/insight-users
>