Class PasteImageFilter
java.lang.Object
org.itk.simple.ProcessObject
org.itk.simple.ImageFilter
org.itk.simple.PasteImageFilter
Paste an image (or a constant value) into another image.
PasteImageFilter allows a region in a destination image to be filled with a source
image or a constant pixel value. The SetDestinationIndex() method prescribes where in the destination input to start pasting
data from the source input. The SetSourceRegion method prescribes the
section of the second image to paste into the first. When a constant
pixel value is set, the SourceRegion describes the size of the region
filled. 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.
This filter supports running "InPlace" to efficiently reuses the
destination image buffer for the output, removing the need to copy the
destination pixels to the output.
When the source image is a lower dimension than the destination image
then the DestinationSkipAxes parameter specifies which axes in the
destination image are set to 1 when copying the region or filling with
a constant.
C++ includes: sitkPasteImageFilter.h
- 
Field SummaryFields inherited from class org.itk.simple.ProcessObjectswigCMemOwn
- 
Constructor SummaryConstructorsModifierConstructorDescriptionitk::simple::PasteImageFilter::PasteImageFilter() Default Constructor that takes no arguments and initializes default parametersprotectedPasteImageFilter(long cPtr, boolean cMemoryOwn) 
- 
Method SummaryModifier and TypeMethodDescriptionvoiddelete()virtual itk::simple::PasteImageFilter::~PasteImageFilter() DestructorImage itk::simple::PasteImageFilter::Execute(Image &&destinationImage, double constant)Image itk::simple::PasteImageFilter::Execute(Image &&destinationImage, double constant)protected voidfinalize()protected static longgetCPtr(PasteImageFilter obj) std::vector<int> itk::simple::PasteImageFilter::GetDestinationIndex() const Set/Get the destination index (where in the first input the second input will be pasted.std::vector<bool> itk::simple::PasteImageFilter::GetDestinationSkipAxes() const Set/Get the array describing which axes in the destination image to skip The axes with true values are set to 1, to fill the difference between the dimension of the input and source image.getName()std::string itk::simple::PasteImageFilter::GetName() const Name of this classstd::vector<int> itk::simple::PasteImageFilter::GetSourceIndex() conststd::vector<unsigned int> itk::simple::PasteImageFilter::GetSourceSize() constvoidsetDestinationIndex(VectorInt32 DestinationIndex) Self& itk::simple::PasteImageFilter::SetDestinationIndex(std::vector< int > DestinationIndex) Set/Get the destination index (where in the first input the second input will be pasted.voidsetDestinationSkipAxes(VectorBool DestinationSkipAxes) Self& itk::simple::PasteImageFilter::SetDestinationSkipAxes(std::vector< bool > DestinationSkipAxes) Set/Get the array describing which axes in the destination image to skip The axes with true values are set to 1, to fill the difference between the dimension of the input and source image.voidsetSourceIndex(VectorInt32 SourceIndex) Self& itk::simple::PasteImageFilter::SetSourceIndex(std::vector< int > SourceIndex)voidsetSourceSize(VectorUInt32 SourceSize) Self& itk::simple::PasteImageFilter::SetSourceSize(std::vector< unsigned int > SourceSize)protected static longtoString()std::string itk::simple::PasteImageFilter::ToString() const Print ourselves outMethods inherited from class org.itk.simple.ImageFiltergetCPtr, swigReleaseMethods inherited from class org.itk.simple.ProcessObjectabort, addCommand, debugOff, debugOn, getCPtr, getDebug, getGlobalDefaultCoordinateTolerance, getGlobalDefaultDebug, getGlobalDefaultDirectionTolerance, getGlobalDefaultNumberOfThreads, getGlobalDefaultThreader, getGlobalWarningDisplay, getNumberOfThreads, getNumberOfWorkUnits, getProgress, globalDefaultDebugOff, globalDefaultDebugOn, globalWarningDisplayOff, globalWarningDisplayOn, hasCommand, removeAllCommands, setDebug, setGlobalDefaultCoordinateTolerance, setGlobalDefaultDebug, setGlobalDefaultDirectionTolerance, setGlobalDefaultNumberOfThreads, setGlobalDefaultThreader, setGlobalWarningDisplay, setNumberOfThreads, setNumberOfWorkUnits, swigRelease
- 
Constructor Details- 
PasteImageFilterprotected PasteImageFilter(long cPtr, boolean cMemoryOwn) 
- 
PasteImageFilterpublic PasteImageFilter()itk::simple::PasteImageFilter::PasteImageFilter() Default Constructor that takes no arguments and initializes default parameters
 
- 
- 
Method Details- 
getCPtr
- 
swigRelease
- 
finalizeprotected void finalize()- Overrides:
- finalizein class- ImageFilter
 
- 
deletepublic void delete()virtual itk::simple::PasteImageFilter::~PasteImageFilter() Destructor- Overrides:
- deletein class- ImageFilter
 
- 
setSourceSizeSelf& itk::simple::PasteImageFilter::SetSourceSize(std::vector< unsigned int > SourceSize)
- 
getSourceSizestd::vector<unsigned int> itk::simple::PasteImageFilter::GetSourceSize() const
- 
setSourceIndexSelf& itk::simple::PasteImageFilter::SetSourceIndex(std::vector< int > SourceIndex)
- 
getSourceIndexstd::vector<int> itk::simple::PasteImageFilter::GetSourceIndex() const
- 
setDestinationIndexSelf& itk::simple::PasteImageFilter::SetDestinationIndex(std::vector< int > DestinationIndex) Set/Get the destination index (where in the first input the second input will be pasted.
- 
getDestinationIndexstd::vector<int> itk::simple::PasteImageFilter::GetDestinationIndex() const Set/Get the destination index (where in the first input the second input will be pasted.
- 
setDestinationSkipAxesSelf& itk::simple::PasteImageFilter::SetDestinationSkipAxes(std::vector< bool > DestinationSkipAxes) Set/Get the array describing which axes in the destination image to skip The axes with true values are set to 1, to fill the difference between the dimension of the input and source image. The number of true value in DestinationSkipAxes plus the DestinationImageDimension must equal the InputImageDimension. By default this array contains SourceImageDimension false values followed by true values for the remainder.
- 
getDestinationSkipAxesstd::vector<bool> itk::simple::PasteImageFilter::GetDestinationSkipAxes() const Set/Get the array describing which axes in the destination image to skip The axes with true values are set to 1, to fill the difference between the dimension of the input and source image. The number of true values in DestinationSkipAxes plus the DestinationImageDimension must equal the InputImageDimension. By default this array contains SourceImageDimension false values followed by true values for the remainder.
- 
getNamestd::string itk::simple::PasteImageFilter::GetName() const Name of this class- Overrides:
- getNamein class- ProcessObject
 
- 
toStringstd::string itk::simple::PasteImageFilter::ToString() const Print ourselves out- Overrides:
- toStringin class- ProcessObject
 
- 
execute
- 
execute
 
-