[Insight-users] writing ImageRegistration1 results back to an image buffer

Luis Ibanez luis.ibanez at kitware.com
Tue, 17 Feb 2004 01:34:59 -0500


Hi Michael,

The methods for passing data between an application and
an ITK filter are described in detail on the tutorial
presentations

http://www.itk.org/HTML/Tutorials.htm

In particular in
http://www.itk.org/CourseWare/Training/GettingStarted-V.pdf


Regards,


    Luis


------------------
Michael G wrote:

> Hello All,
> 
> I've just got reading from image buffers for use with itk motion 
> register functions working ok. I wanted to inquire about writing the 
> results of the registration back to an image buffer as opposed to a file 
> as in ImageRegistration1 - I have set this up:
> 
> // motion registration has already been performed at this point
> // the resampler's input gets the data from the image buffer ok
> resample->SetInput( movedItkBuffer->GetOutput() );
> 
> // the caster's input is the image buffer
> caster->SetInput( resample->GetOutput() );
> 
> // here how could i go about writing the result of caster
> // to a buffer - or is 'movedItkBuffer' being overwritten
> // with the resampled data already because it was set as
> // the input of 'resample' in the first place?
> 
> // ImageRegistration1 simply writes it out with an image writer
> writer->SetInput( caster->GetOutput() );
> writer->Update();
> 
> // I would like to do something like
> movedItkBuffer->SetInput( caster->GetOuput() );
> movedItkBuffer->Update();
> // but that is illegal
> 
> 
> Thank you for your time and any pointers,
> Michael.
> 
> _________________________________________________________________
> Create your own personal Web page with the info you use most, at My MSN. 
> http://click.atdmt.com/AVE/go/onm00200364ave/direct/01/
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>