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

Michael G michaelguiliametti at hotmail.com
Tue, 17 Feb 2004 04:11:43 +0000


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/