18 #ifndef sitkPasteImageFilter_h
19 #define sitkPasteImageFilter_h
62 SITK_RETURN_SELF_TYPE_HEADER
SetSourceSize (
const std::vector<unsigned int> & SourceSize ) { this->m_SourceSize = SourceSize;
return *
this; }
66 std::vector<unsigned int>
GetSourceSize()
const {
return this->m_SourceSize; }
70 SITK_RETURN_SELF_TYPE_HEADER
SetSourceIndex (
const std::vector<int> & SourceIndex ) { this->m_SourceIndex = SourceIndex;
return *
this; }
79 SITK_RETURN_SELF_TYPE_HEADER
SetDestinationIndex (
const std::vector<int> & DestinationIndex ) { this->m_DestinationIndex = DestinationIndex;
return *
this; }
86 std::string
GetName()
const {
return std::string (
"PasteImageFilter"); }
89 std::string ToString()
const;
93 Image Execute (
const Image & destinationImage,
const Image & sourceImage );
97 Image Execute (
const Image & destinationImage,
const Image & sourceImage,
const std::vector<unsigned int> & sourceSize,
const std::vector<int> & sourceIndex,
const std::vector<int> & destinationIndex );
103 typedef Image (Self::*MemberFunctionType)(
const Image * destinationImage,
const Image * sourceImage );
104 template <
class TImageType>
Image ExecuteInternal (
const Image * destinationImage,
const Image * sourceImage );
126 SITKBasicFilters_EXPORT Image Paste (
const Image & destinationImage,
const Image & sourceImage,
const std::vector<unsigned int> & sourceSize = std::vector<unsigned int>(3, 1),
const std::vector<int> & sourceIndex = std::vector<int>(3, 0),
const std::vector<int> & destinationIndex = std::vector<int>(3, 0) );
typelist::Append< typelist::Append< BasicPixelIDTypeList, ComplexPixelIDTypeList >::Type, VectorPixelIDTypeList >::Type NonLabelPixelIDTypeList
#define SITKBasicFilters_EXPORT
Self & SetDestinationIndex(const std::vector< int > &DestinationIndex)
std::vector< unsigned int > GetSourceSize() const
std::vector< int > m_DestinationIndex
NonLabelPixelIDTypeList PixelIDTypeList
std::string GetName() const
Paste an image into another image.
Self & SetSourceIndex(const std::vector< int > &SourceIndex)
Self & SetSourceSize(const std::vector< unsigned int > &SourceSize)
std::vector< int > GetSourceIndex() const
Image Paste(const Image &destinationImage, const Image &sourceImage, const std::vector< unsigned int > &sourceSize=std::vector< unsigned int >(3, 1), const std::vector< int > &sourceIndex=std::vector< int >(3, 0), const std::vector< int > &destinationIndex=std::vector< int >(3, 0))
Paste an image into another image.
The Image class for SimpleITK.
std::vector< unsigned int > m_SourceSize
std::vector< int > GetDestinationIndex() const
std::vector< int > m_SourceIndex
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
The base interface for SimpleITK filters that take one input image.