Class MaskedAssignImageFilter
java.lang.Object
org.itk.simple.ProcessObject
org.itk.simple.ImageFilter
org.itk.simple.MaskedAssignImageFilter
Mask an image with a mask.
This class is templated over the types of the input image type, the
mask image type and the type of the output image. Numeric conversions
(castings) are done by the C++ defaults.
The pixel type of the input 2 image must have a valid definition of
the operator != with zero. This condition is required because
internally this filter will perform the operation
The pixel from the input 1 is cast to the pixel type of the output
image.
Note that the input and the mask images must be of the same size.
WARNING:
Any pixel value other than masking value (0 by default) will not be
masked out.
See:
MaskNegatedImageFilter
itk::simple::MaskedAssign for the procedural interface
itk::MaskedAssignImageFilter for the Doxygen on the original ITK
class.
C++ includes: sitkMaskedAssignImageFilter.h
-
Field Summary
Fields inherited from class ProcessObject
swigCMemOwn -
Constructor Summary
ConstructorsModifierConstructorDescriptionitk::simple::MaskedAssignImageFilter::MaskedAssignImageFilter() Default Constructor that takes no arguments and initializes default parametersprotectedMaskedAssignImageFilter(long cPtr, boolean cMemoryOwn) -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()virtual itk::simple::MaskedAssignImageFilter::~MaskedAssignImageFilter() DestructorImage itk::simple::MaskedAssignImageFilter::Execute(Image &&image, const Image &maskImage, const Image &assignImage) Execute the filter on the input imageImage itk::simple::MaskedAssignImageFilter::Execute(Image &&image, const Image &maskImage, const Image &assignImage) Execute the filter on the input imageprotected voidfinalize()doubledouble itk::simple::MaskedAssignImageFilter::GetAssignConstant() constprotected static longgetName()std::string itk::simple::MaskedAssignImageFilter::GetName() const Name of this classvoidsetAssignConstant(double AssignConstant) Self& itk::simple::MaskedAssignImageFilter::SetAssignConstant(double AssignConstant) Method to explicitly set the outside value of the mask when AssignImage is undefined.protected static longtoString()std::string itk::simple::MaskedAssignImageFilter::ToString() const Print ourselves outMethods inherited from class ImageFilter
getCPtr, swigReleaseModifier and TypeMethodDescriptionprotected static longgetCPtr(ImageFilter obj) protected static longswigRelease(ImageFilter obj) Methods inherited from class 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, swigReleaseModifier and TypeMethodDescriptionvoidabort()virtual void itk::simple::ProcessObject::Abort() Sets an abort flag on the active process.intaddCommand(EventEnum event, Command cmd) virtual int itk::simple::ProcessObject::AddCommand(itk::simple::EventEnum event, itk::simple::Command &cmd) Add a Command Object to observer the event.voiddebugOff()voiddebugOn()protected static longgetCPtr(ProcessObject obj) booleangetDebug()static doublestatic booleanstatic doublestatic longstatic Stringstatic booleanlonglongfloatvirtual float itk::simple::ProcessObject::GetProgress() const An Active Measurement of the progress of execution.static voidstatic voidstatic voidstatic voidbooleanhasCommand(EventEnum event) virtual bool itk::simple::ProcessObject::HasCommand(itk::simple::EventEnum event) const Query of this object has any registered commands for event.voidvirtual void itk::simple::ProcessObject::RemoveAllCommands() Remove all registered commands.voidsetDebug(boolean debugFlag) static voidsetGlobalDefaultCoordinateTolerance(double arg0) static voidsetGlobalDefaultDebug(boolean debugFlag) static voidsetGlobalDefaultDirectionTolerance(double arg0) static voidsetGlobalDefaultNumberOfThreads(long n) static booleansetGlobalDefaultThreader(String threader) static voidsetGlobalWarningDisplay(boolean flag) voidsetNumberOfThreads(long n) voidsetNumberOfWorkUnits(long n) protected static longswigRelease(ProcessObject obj)
-
Constructor Details
-
MaskedAssignImageFilter
protected MaskedAssignImageFilter(long cPtr, boolean cMemoryOwn) -
MaskedAssignImageFilter
public MaskedAssignImageFilter()itk::simple::MaskedAssignImageFilter::MaskedAssignImageFilter() Default Constructor that takes no arguments and initializes default parameters
-
-
Method Details
-
getCPtr
-
swigRelease
-
finalize
protected void finalize()- Overrides:
finalizein classImageFilter
-
delete
public void delete()virtual itk::simple::MaskedAssignImageFilter::~MaskedAssignImageFilter() Destructor- Overrides:
deletein classImageFilter
-
setAssignConstant
public void setAssignConstant(double AssignConstant) Self& itk::simple::MaskedAssignImageFilter::SetAssignConstant(double AssignConstant) Method to explicitly set the outside value of the mask when AssignImage is undefined. Defaults to 0 -
getAssignConstant
public double getAssignConstant()double itk::simple::MaskedAssignImageFilter::GetAssignConstant() const -
getName
std::string itk::simple::MaskedAssignImageFilter::GetName() const Name of this class- Overrides:
getNamein classProcessObject
-
toString
std::string itk::simple::MaskedAssignImageFilter::ToString() const Print ourselves out- Overrides:
toStringin classProcessObject
-
execute
-
execute
-