18 #ifndef sitkCheckerBoardImageFilter_h
19 #define sitkCheckerBoardImageFilter_h
63 SITK_RETURN_SELF_TYPE_HEADER
SetCheckerPattern (
const std::vector<uint32_t> & CheckerPattern ) { this->m_CheckerPattern = CheckerPattern;
return *
this; }
66 SITK_RETURN_SELF_TYPE_HEADER
SetCheckerPattern(
uint32_t value ) { this->m_CheckerPattern = std::vector<uint32_t>(3, value);
return *
this; }
74 std::string
GetName()
const {
return std::string (
"CheckerBoardImageFilter"); }
77 std::string ToString()
const;
85 Image Execute (
const Image& image1,
const Image& image2,
const std::vector<uint32_t> & checkerPattern );
91 typedef Image (Self::*MemberFunctionType)(
const Image& image1,
const Image& image2 );
92 template <
class TImageType>
Image ExecuteInternal (
const Image& image1,
const Image& image2 );
97 nsstd::auto_ptr<detail::MemberFunctionFactory<MemberFunctionType> >
m_MemberFactory;
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
typelist::Append< typelist::Append< BasicPixelIDTypeList, ComplexPixelIDTypeList >::Type, VectorPixelIDTypeList >::Type NonLabelPixelIDTypeList
#define SITKBasicFilters_EXPORT
std::string GetName() const
std::vector< uint32_t > m_CheckerPattern
Combines two images in a checkerboard pattern.
Image CheckerBoard(const Image &image1, const Image &image2, const std::vector< uint32_t > &checkerPattern=std::vector< uint32_t >(3, 4))
Combines two images in a checkerboard pattern.
std::vector< uint32_t > GetCheckerPattern() const
The Image class for SimpleITK.
Self & SetCheckerPattern(const std::vector< uint32_t > &CheckerPattern)
CheckerBoardImageFilter Self
Self & SetCheckerPattern(uint32_t value)
NonLabelPixelIDTypeList PixelIDTypeList
The base interface for SimpleITK filters that take one input image.