[Insight-developers] any ObjectToObject filter ?

gang song songgang97 at gmail.com
Thu Sep 16 16:13:08 EDT 2010


Hi,

Does ITK have a base filter class for a filter from non-image object to
non-image object?

One scenario is in the registration pipeline, it would be nice to use an
image metric object as the input to the registration filter, the output
would be a transform. Something like:

MetricTypePointer metric = MetricType::New();
TransformTypePointer initial_transform = TransformType::New();
RegistrationTypePointer registration = RegistrationType::New();

metric->SetFixImage(I1);
metric->SetMovImage(I2);
metric->SetTransform(initial_transform);
registration->SetInput(metric);
registration->Update();

TrnasformTypePointer transform_final = registration->GetOutput();


And the other question is that registration filter may needs more than one
metrics as input. How to make a filter accept any number of inputs, like a
list?

Thanks

-Gang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20100916/deeedf93/attachment.htm>


More information about the Insight-developers mailing list