[Insight-developers] Disable concept checking for a specific file?
Brad King
brad.king at kitware.com
Fri Dec 31 10:31:48 EST 2010
On 12/31/2010 10:12 AM, Dan Mueller wrote:
> At run-time the user will be able to choose the algorithm strategy. For example:
> typedef SimpleUnaryPixelMathImageFilter<ImageType,ImageType> UnaryPixelMathImageType;
> UnaryPixelMathImageType::Pointer filter = UnaryPixelMathImageType::New();
> filter->SetStrategy(UnaryPixelMathStrategy::Add); // <<<<
At some point SimpleUnaryPixelMathImageFilter needs to instantiate
the underlying filters. You should be able to use template
meta-programming to avoid instantiating filters whose concept
checks are known to fail for the given ImageType.
-Brad
More information about the Insight-developers
mailing list