ITK
4.6.0
Insight Segmentation and Registration Toolkit
|
#include <itkPasteImageFilter.h>
Paste an image into another image.
PasteImageFilter allows you to take a section of one image and paste into another image. The SetDestinationIndex() method prescribes where in the first input to start pasting data from the second input. The SetSourceRegion method prescribes the section of the second image to paste into the first. If the output requested region does not include the SourceRegion after it has been repositioned to DestinationIndex, then the output will just be a copy of the input.
The two inputs and output image will have the same pixel type.
Definition at line 48 of file itkPasteImageFilter.h.
Public Types | |
typedef SmartPointer< const Self > | ConstPointer |
typedef InputImageType::IndexType | InputImageIndexType |
typedef InputImageType::PixelType | InputImagePixelType |
typedef Superclass::InputImagePointer | InputImagePointer |
typedef InputImageType::RegionType | InputImageRegionType |
typedef InputImageType::SizeType | InputImageSizeType |
typedef TInputImage | InputImageType |
typedef OutputImageType::IndexType | OutputImageIndexType |
typedef OutputImageType::PixelType | OutputImagePixelType |
typedef Superclass::OutputImagePointer | OutputImagePointer |
typedef OutputImageType::RegionType | OutputImageRegionType |
typedef OutputImageType::SizeType | OutputImageSizeType |
typedef TOutputImage | OutputImageType |
typedef SmartPointer< Self > | Pointer |
typedef PasteImageFilter | Self |
typedef SourceImageType::ConstPointer | SourceImageConstPointer |
typedef SourceImageType::IndexType | SourceImageIndexType |
typedef SourceImageType::PixelType | SourceImagePixelType |
typedef SourceImageType::Pointer | SourceImagePointer |
typedef SourceImageType::RegionType | SourceImageRegionType |
typedef SourceImageType::SizeType | SourceImageSizeType |
typedef TSourceImage | SourceImageType |
typedef InPlaceImageFilter < TInputImage, TOutputImage > | Superclass |
Public Types inherited from itk::InPlaceImageFilter< TInputImage, TOutputImage > | |
typedef SmartPointer< const Self > | ConstPointer |
typedef InputImageType::ConstPointer | InputImageConstPointer |
typedef InputImageType::PixelType | InputImagePixelType |
typedef InputImageType::Pointer | InputImagePointer |
typedef InputImageType::RegionType | InputImageRegionType |
typedef TInputImage | InputImageType |
typedef Superclass::OutputImagePixelType | OutputImagePixelType |
typedef Superclass::OutputImagePointer | OutputImagePointer |
typedef Superclass::OutputImageRegionType | OutputImageRegionType |
typedef Superclass::OutputImageType | OutputImageType |
typedef SmartPointer< Self > | Pointer |
typedef InPlaceImageFilter | Self |
typedef ImageToImageFilter < TInputImage, TOutputImage > | Superclass |
Public Types inherited from itk::ImageToImageFilter< TInputImage, TOutputImage > | |
typedef SmartPointer< const Self > | ConstPointer |
typedef InputImageType::ConstPointer | InputImageConstPointer |
typedef InputImageType::PixelType | InputImagePixelType |
typedef InputImageType::Pointer | InputImagePointer |
typedef InputImageType::RegionType | InputImageRegionType |
typedef TInputImage | InputImageType |
typedef Superclass::OutputImagePixelType | OutputImagePixelType |
typedef Superclass::OutputImageRegionType | OutputImageRegionType |
typedef SmartPointer< Self > | Pointer |
typedef ImageToImageFilter | Self |
typedef ImageSource< TOutputImage > | Superclass |
Public Types inherited from itk::ImageSource< TOutputImage > | |
typedef SmartPointer< const Self > | ConstPointer |
typedef Superclass::DataObjectIdentifierType | DataObjectIdentifierType |
typedef DataObject::Pointer | DataObjectPointer |
typedef Superclass::DataObjectPointerArraySizeType | DataObjectPointerArraySizeType |
typedef OutputImageType::PixelType | OutputImagePixelType |
typedef OutputImageType::Pointer | OutputImagePointer |
typedef OutputImageType::RegionType | OutputImageRegionType |
typedef TOutputImage | OutputImageType |
typedef SmartPointer< Self > | Pointer |
typedef ImageSource | Self |
typedef ProcessObject | Superclass |
Public Types inherited from itk::ProcessObject | |
typedef SmartPointer< const Self > | ConstPointer |
typedef DataObject::DataObjectIdentifierType | DataObjectIdentifierType |
typedef DataObject::Pointer | DataObjectPointer |
typedef std::vector < DataObjectPointer > | DataObjectPointerArray |
typedef DataObjectPointerArray::size_type | DataObjectPointerArraySizeType |
typedef std::vector < DataObjectIdentifierType > | NameArray |
typedef SmartPointer< Self > | Pointer |
typedef ProcessObject | Self |
typedef Object | Superclass |
Public Types inherited from itk::Object | |
typedef SmartPointer< const Self > | ConstPointer |
typedef SmartPointer< Self > | Pointer |
typedef Object | Self |
typedef LightObject | Superclass |
Public Types inherited from itk::LightObject | |
typedef SmartPointer< const Self > | ConstPointer |
typedef SmartPointer< Self > | Pointer |
typedef LightObject | Self |
Static Public Member Functions | |
static Pointer | New () |
Static Public Member Functions inherited from itk::Object | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool flag) |
Static Public Member Functions inherited from itk::LightObject | |
static void | BreakOnError () |
static Pointer | New () |
Static Public Attributes | |
static const unsigned int | InputImageDimension = InputImageType::ImageDimension |
static const unsigned int | OutputImageDimension = OutputImageType::ImageDimension |
static const unsigned int | SourceImageDimension = SourceImageType::ImageDimension |
Static Public Attributes inherited from itk::InPlaceImageFilter< TInputImage, TOutputImage > | |
static const unsigned int | InputImageDimension = TInputImage::ImageDimension |
static const unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Static Public Attributes inherited from itk::ImageToImageFilter< TInputImage, TOutputImage > | |
static const unsigned int | InputImageDimension = TInputImage::ImageDimension |
static const unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Static Public Attributes inherited from itk::ImageSource< TOutputImage > | |
static const unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Protected Attributes | |
InputImageIndexType | m_DestinationIndex |
SourceImageRegionType | m_SourceRegion |
Protected Attributes inherited from itk::ProcessObject | |
TimeStamp | m_OutputInformationMTime |
bool | m_Updating |
Protected Attributes inherited from itk::LightObject | |
InternalReferenceCountType | m_ReferenceCount |
SimpleFastMutexLock | m_ReferenceCountLock |
Private Member Functions | |
void | operator= (const Self &) |
PasteImageFilter (const Self &) | |
Additional Inherited Members | |
Protected Types inherited from itk::ImageToImageFilter< TInputImage, TOutputImage > | |
typedef ImageToImageFilterDetail::ImageRegionCopier < itkGetStaticConstMacro(OutputImageDimension), itkGetStaticConstMacro(InputImageDimension) > | InputToOutputRegionCopierType |
typedef ImageToImageFilterDetail::ImageRegionCopier < itkGetStaticConstMacro(InputImageDimension), itkGetStaticConstMacro(OutputImageDimension) > | OutputToInputRegionCopierType |
Protected Types inherited from itk::LightObject | |
typedef int | InternalReferenceCountType |
Static Protected Member Functions inherited from itk::ImageSource< TOutputImage > | |
static const ImageRegionSplitterBase * | GetGlobalDefaultSplitter () |
static ITK_THREAD_RETURN_TYPE | ThreaderCallback (void *arg) |
typedef SmartPointer< const Self > itk::PasteImageFilter< TInputImage, TSourceImage, TOutputImage >::ConstPointer |
Definition at line 56 of file itkPasteImageFilter.h.
typedef InputImageType::IndexType itk::PasteImageFilter< TInputImage, TSourceImage, TOutputImage >::InputImageIndexType |
Definition at line 87 of file itkPasteImageFilter.h.
typedef InputImageType::PixelType itk::PasteImageFilter< TInputImage, TSourceImage, TOutputImage >::InputImagePixelType |
Definition at line 81 of file itkPasteImageFilter.h.
typedef Superclass::InputImagePointer itk::PasteImageFilter< TInputImage, TSourceImage, TOutputImage >::InputImagePointer |
Typedefs from Superclass
Definition at line 62 of file itkPasteImageFilter.h.
typedef InputImageType::RegionType itk::PasteImageFilter< TInputImage, TSourceImage, TOutputImage >::InputImageRegionType |
Definition at line 73 of file itkPasteImageFilter.h.
typedef InputImageType::SizeType itk::PasteImageFilter< TInputImage, TSourceImage, TOutputImage >::InputImageSizeType |
Definition at line 88 of file itkPasteImageFilter.h.
typedef TInputImage itk::PasteImageFilter< TInputImage, TSourceImage, TOutputImage >::InputImageType |
Typedef to describe the output and input image region types.
Definition at line 69 of file itkPasteImageFilter.h.
typedef OutputImageType::IndexType itk::PasteImageFilter< TInputImage, TSourceImage, TOutputImage >::OutputImageIndexType |
Typedef to describe the output and input image index and size types.
Definition at line 85 of file itkPasteImageFilter.h.
typedef OutputImageType::PixelType itk::PasteImageFilter< TInputImage, TSourceImage, TOutputImage >::OutputImagePixelType |
Typedef to describe the type of pixel.
Definition at line 80 of file itkPasteImageFilter.h.
typedef Superclass::OutputImagePointer itk::PasteImageFilter< TInputImage, TSourceImage, TOutputImage >::OutputImagePointer |
Definition at line 66 of file itkPasteImageFilter.h.
typedef OutputImageType::RegionType itk::PasteImageFilter< TInputImage, TSourceImage, TOutputImage >::OutputImageRegionType |
Definition at line 72 of file itkPasteImageFilter.h.
typedef OutputImageType::SizeType itk::PasteImageFilter< TInputImage, TSourceImage, TOutputImage >::OutputImageSizeType |
Definition at line 86 of file itkPasteImageFilter.h.
typedef TOutputImage itk::PasteImageFilter< TInputImage, TSourceImage, TOutputImage >::OutputImageType |
Definition at line 70 of file itkPasteImageFilter.h.
typedef SmartPointer< Self > itk::PasteImageFilter< TInputImage, TSourceImage, TOutputImage >::Pointer |
Definition at line 55 of file itkPasteImageFilter.h.
typedef PasteImageFilter itk::PasteImageFilter< TInputImage, TSourceImage, TOutputImage >::Self |
Standard class typedefs.
Definition at line 53 of file itkPasteImageFilter.h.
typedef SourceImageType::ConstPointer itk::PasteImageFilter< TInputImage, TSourceImage, TOutputImage >::SourceImageConstPointer |
Definition at line 77 of file itkPasteImageFilter.h.
typedef SourceImageType::IndexType itk::PasteImageFilter< TInputImage, TSourceImage, TOutputImage >::SourceImageIndexType |
Definition at line 89 of file itkPasteImageFilter.h.
typedef SourceImageType::PixelType itk::PasteImageFilter< TInputImage, TSourceImage, TOutputImage >::SourceImagePixelType |
Definition at line 82 of file itkPasteImageFilter.h.
typedef SourceImageType::Pointer itk::PasteImageFilter< TInputImage, TSourceImage, TOutputImage >::SourceImagePointer |
Definition at line 76 of file itkPasteImageFilter.h.
typedef SourceImageType::RegionType itk::PasteImageFilter< TInputImage, TSourceImage, TOutputImage >::SourceImageRegionType |
Definition at line 74 of file itkPasteImageFilter.h.
typedef SourceImageType::SizeType itk::PasteImageFilter< TInputImage, TSourceImage, TOutputImage >::SourceImageSizeType |
Definition at line 90 of file itkPasteImageFilter.h.
typedef TSourceImage itk::PasteImageFilter< TInputImage, TSourceImage, TOutputImage >::SourceImageType |
Definition at line 71 of file itkPasteImageFilter.h.
typedef InPlaceImageFilter< TInputImage, TOutputImage > itk::PasteImageFilter< TInputImage, TSourceImage, TOutputImage >::Superclass |
Definition at line 54 of file itkPasteImageFilter.h.
|
protected |
|
inlineprotected |
Definition at line 146 of file itkPasteImageFilter.h.
|
private |
|
virtual |
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from itk::Object.
|
virtual |
PasteImageFilter needs to set the input requested regions for its inputs. The first input's requested region will be set to match the output requested region. The second input's requested region will be set to the value of the m_SourceRegion ivar. Note that if the output requested region is a portion of the image that is outside the DestinationIndex + size of the source region, then the first input is copied to the output.
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
const InputImageType* itk::PasteImageFilter< TInputImage, TSourceImage, TOutputImage >::GetDestinationImage | ( | ) | const |
|
virtual |
Set/Get the destination index (where in the first input the second input will be pasted.
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::InPlaceImageFilter< TInputImage, TOutputImage >.
const SourceImageType* itk::PasteImageFilter< TInputImage, TSourceImage, TOutputImage >::GetSourceImage | ( | ) | const |
|
virtual |
Set/Get the source region (what part of the second input will be pasted.
|
static |
Method for creation through the object factory.
|
private |
|
protectedvirtual |
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from itk::InPlaceImageFilter< TInputImage, TOutputImage >.
void itk::PasteImageFilter< TInputImage, TSourceImage, TOutputImage >::SetDestinationImage | ( | const InputImageType * | dest | ) |
Set/Get the "destination" image. This is the image that will be obscured by the paste operation.
|
virtual |
Set/Get the destination index (where in the first input the second input will be pasted.
void itk::PasteImageFilter< TInputImage, TSourceImage, TOutputImage >::SetSourceImage | ( | const SourceImageType * | src | ) |
Set/Get the "source" image. This is the image that will be pasted over the destination image.
|
virtual |
Set/Get the source region (what part of the second input will be pasted.
|
protectedvirtual |
PasteImageFilter can be implemented as a multithreaded filter. Therefore, this implementation provides a ThreadedGenerateData() routine which is called for each processing thread. The output image data is allocated automatically by the superclass prior to calling ThreadedGenerateData(). ThreadedGenerateData can only write to the portion of the output image specified by the parameter "outputRegionForThread"
Reimplemented from itk::ImageSource< TOutputImage >.
|
inlinevirtual |
Override VeriyInputInformation() since this filter's inputs do not need to occoupy the same physical space.
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
Definition at line 142 of file itkPasteImageFilter.h.
|
static |
ImageDimension enumeration
Definition at line 94 of file itkPasteImageFilter.h.
|
protected |
Definition at line 163 of file itkPasteImageFilter.h.
|
protected |
Definition at line 161 of file itkPasteImageFilter.h.
|
static |
ImageDimension enumeration
Definition at line 96 of file itkPasteImageFilter.h.
|
static |
ImageDimension enumeration
Definition at line 98 of file itkPasteImageFilter.h.