Package org.itk.simple
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 Summary
Fields inherited from class org.itk.simple.ProcessObject
swigCMemOwn
-
Constructor Summary
ConstructorsModifierConstructorDescriptionitk::simple::PasteImageFilter::PasteImageFilter() Default Constructor that takes no arguments and initializes default parametersprotected
PasteImageFilter
(long cPtr, boolean cMemoryOwn) -
Method Summary
Modifier and TypeMethodDescriptionvoid
delete()
virtual itk::simple::PasteImageFilter::~PasteImageFilter() DestructorImage itk::simple::PasteImageFilter::Execute(Image &&destinationImage, double constant)Image itk::simple::PasteImageFilter::Execute(Image &&destinationImage, double constant)protected void
finalize()
protected static long
getCPtr
(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() constvoid
setDestinationIndex
(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.void
setDestinationSkipAxes
(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.void
setSourceIndex
(VectorInt32 SourceIndex) Self& itk::simple::PasteImageFilter::SetSourceIndex(std::vector< int > SourceIndex)void
setSourceSize
(VectorUInt32 SourceSize) Self& itk::simple::PasteImageFilter::SetSourceSize(std::vector< unsigned int > SourceSize)protected static long
toString()
std::string itk::simple::PasteImageFilter::ToString() const Print ourselves outMethods inherited from class org.itk.simple.ImageFilter
getCPtr, swigRelease
Methods inherited from class org.itk.simple.ProcessObject
abort, 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
-
PasteImageFilter
protected PasteImageFilter(long cPtr, boolean cMemoryOwn) -
PasteImageFilter
public PasteImageFilter()itk::simple::PasteImageFilter::PasteImageFilter() Default Constructor that takes no arguments and initializes default parameters
-
-
Method Details
-
getCPtr
-
swigRelease
-
finalize
protected void finalize()- Overrides:
finalize
in classImageFilter
-
delete
public void delete()virtual itk::simple::PasteImageFilter::~PasteImageFilter() Destructor- Overrides:
delete
in classImageFilter
-
setSourceSize
Self& itk::simple::PasteImageFilter::SetSourceSize(std::vector< unsigned int > SourceSize) -
getSourceSize
std::vector<unsigned int> itk::simple::PasteImageFilter::GetSourceSize() const -
setSourceIndex
Self& itk::simple::PasteImageFilter::SetSourceIndex(std::vector< int > SourceIndex) -
getSourceIndex
std::vector<int> itk::simple::PasteImageFilter::GetSourceIndex() const -
setDestinationIndex
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. -
getDestinationIndex
std::vector<int> itk::simple::PasteImageFilter::GetDestinationIndex() const Set/Get the destination index (where in the first input the second input will be pasted. -
setDestinationSkipAxes
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. 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. -
getDestinationSkipAxes
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. 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. -
getName
std::string itk::simple::PasteImageFilter::GetName() const Name of this class- Overrides:
getName
in classProcessObject
-
toString
std::string itk::simple::PasteImageFilter::ToString() const Print ourselves out- Overrides:
toString
in classProcessObject
-
execute
Image itk::simple::PasteImageFilter::Execute(Image &&destinationImage, double constant) -
execute
Image itk::simple::PasteImageFilter::Execute(Image &&destinationImage, double constant)
-