[Insight-users] Image and ImageFilter idioms.
Brady McCary
brady.mccary+ITK at gmail.com
Thu Dec 18 15:21:34 EST 2008
Insight-users,
What is the proper use of Image's and ImageFilter's? Here is an
example to clarify my question.
START
ImageType::Pointer filter_output;
FilterType::Pointer filter = FilterType::New();
/* execute filter */
filter_output = filter->GetOutput();
filter->Delete();
/* use filter_output */
END
So the question is something like this:
1. Were ImageFilter designed with SmartPointers to use this idiom or
2. does one need to allocate an Image and copy the contents of
filter->GetOutput() and then execute filter->Delete()?
Brady
More information about the Insight-users
mailing list