#include <itkMaskedAssignImageFilter.h>
Assign values to a masked set of pixels.
This class is templated over the types of the input image, the mask image and the type of the output image. Numeric conversions (castings) are done by the C++ defaults.
The first input is the "input image", the second is the "mask image", the third is the "assign image". Any of the images can be set as constants, and the third input can also be set as a constant using the SetAssignConstant method.
For the "masked input" non-zero values are considered the mask, and assigned values from the "assign input".
The following is the logic applied per pixel (pixel value or constant value) :
The pixel from the "input image" is cast to the pixel type of the output image.
Note all images must be geometrically congruent.
Definition at line 60 of file itkMaskedAssignImageFilter.h.
Inheritance diagram for itk::MaskedAssignImageFilter< TInputImage, TMaskImage, TOutputImage >:
Collaboration diagram for itk::MaskedAssignImageFilter< TInputImage, TMaskImage, TOutputImage >:Public Member Functions | |
| virtual::itk::LightObject::Pointer | CreateAnother () const |
| virtual OutputPixelType | GetAssignConstant () const |
| virtual const AssignImageType * | GetAssignImage () const |
| virtual const MaskImageType * | GetMaskImage () const |
| virtual const char * | GetNameOfClass () const |
| virtual void | SetAssignConstant (const OutputPixelType &v) |
| virtual void | SetAssignImage (const AssignImageType *assign) |
| virtual void | SetMaskImage (const MaskImageType *mask) |
Public Member Functions inherited from itk::TernaryGeneratorImageFilter< TInputImage, TMaskImage, TInputImage, TInputImage > | |
| virtual::itk::LightObject::Pointer | CreateAnother () const |
| virtual const Input1ImagePixelType & | GetConstant1 () const |
| virtual const Input2ImagePixelType & | GetConstant2 () const |
| virtual const Input3ImagePixelType & | GetConstant3 () const |
| virtual void | SetConstant1 (const Input1ImagePixelType &input1) |
| virtual void | SetConstant2 (const Input2ImagePixelType &input2) |
| virtual void | SetConstant3 (const Input3ImagePixelType &input3) |
| void | SetFunctor (const TFunctor &functor) |
| void | SetInput1 (const TInputImage *image1) |
| virtual void | SetInput1 (const DecoratedInput1ImagePixelType *input1) |
| virtual void | SetInput1 (const Input1ImagePixelType &input1) |
| void | SetInput2 (const TMaskImage *image2) |
| virtual void | SetInput2 (const DecoratedInput2ImagePixelType *input2) |
| virtual void | SetInput2 (const Input2ImagePixelType &input2) |
| void | SetInput3 (const TInputImage *image3) |
| virtual void | SetInput3 (const DecoratedInput3ImagePixelType *input3) |
| virtual void | SetInput3 (const Input3ImagePixelType &input3) |
| void | SetFunctor (const std::function< ConstRefFunctionType > &f) |
| void | SetFunctor (const std::function< ValueFunctionType > &f) |
| void | SetFunctor (ConstRefFunctionType *funcPointer) |
| void | SetFunctor (ValueFunctionType *funcPointer) |
Public Member Functions inherited from itk::InPlaceImageFilter< TInputImage, TInputImage > | |
| virtual bool | CanRunInPlace () const |
| virtual void | SetInPlace (bool _arg) |
| virtual bool | GetInPlace () const |
| virtual void | InPlaceOn () |
| virtual void | InPlaceOff () |
Public Member Functions inherited from itk::ImageToImageFilter< TInputImage, TInputImage > | |
| const InputImageType * | GetInput () const |
| const InputImageType * | GetInput () const |
| const InputImageType * | GetInput (unsigned int idx) const |
| const InputImageType * | GetInput (unsigned int idx) const |
| void | PopBackInput () override |
| void | PopBackInput () override |
| void | PopFrontInput () override |
| void | PopFrontInput () override |
| virtual void | PushBackInput (const InputImageType *input) |
| virtual void | PushBackInput (const InputImageType *input) |
| virtual void | PushFrontInput (const InputImageType *input) |
| virtual void | PushFrontInput (const InputImageType *input) |
| virtual void | SetInput (const InputImageType *input) |
| virtual void | SetInput (const InputImageType *input) |
| virtual void | SetInput (unsigned int, const TInputImage *image) |
| virtual void | SetInput (unsigned int, const TInputImage *image) |
| virtual void | SetCoordinateTolerance (double _arg) |
| virtual double | GetCoordinateTolerance () const |
| virtual void | SetCoordinateTolerance (double _arg) |
| virtual double | GetCoordinateTolerance () const |
| virtual void | SetDirectionTolerance (double _arg) |
| virtual double | GetDirectionTolerance () const |
| virtual void | SetDirectionTolerance (double _arg) |
| virtual double | GetDirectionTolerance () const |
Public Member Functions inherited from itk::ImageSource< TInputImage > | |
| OutputImageType * | GetOutput (unsigned int idx) |
| virtual void | GraftNthOutput (unsigned int idx, DataObject *graft) |
| virtual void | GraftOutput (const DataObjectIdentifierType &key, DataObject *graft) |
| virtual void | GraftOutput (DataObject *graft) |
| OutputImageType * | GetOutput () |
| const OutputImageType * | GetOutput () const |
| ProcessObject::DataObjectPointer | MakeOutput (ProcessObject::DataObjectPointerArraySizeType idx) override |
| ProcessObject::DataObjectPointer | MakeOutput (const ProcessObject::DataObjectIdentifierType &) override |
Public Member Functions inherited from itk::ProcessObject | |
| virtual void | AbortGenerateDataOff () |
| virtual void | AbortGenerateDataOn () |
| virtual void | EnlargeOutputRequestedRegion (DataObject *output) |
| virtual const bool & | GetAbortGenerateData () const |
| DataObjectPointerArray | GetIndexedInputs () |
| DataObjectPointerArray | GetIndexedOutputs () |
| NameArray | GetInputNames () const |
| DataObjectPointerArray | GetInputs () |
| MultiThreaderBase * | GetMultiThreader () const |
| DataObjectPointerArraySizeType | GetNumberOfIndexedInputs () const |
| DataObjectPointerArraySizeType | GetNumberOfIndexedOutputs () const |
| DataObjectPointerArraySizeType | GetNumberOfInputs () const |
| DataObjectPointerArraySizeType | GetNumberOfOutputs () const |
| virtual DataObjectPointerArraySizeType | GetNumberOfValidRequiredInputs () const |
| NameArray | GetOutputNames () const |
| DataObjectPointerArray | GetOutputs () |
| virtual float | GetProgress () const |
| NameArray | GetRequiredInputNames () const |
| bool | HasInput (const DataObjectIdentifierType &key) const |
| bool | HasOutput (const DataObjectIdentifierType &key) const |
| void | IncrementProgress (float increment) |
| virtual void | PrepareOutputs () |
| virtual void | PropagateRequestedRegion (DataObject *output) |
| virtual void | ResetPipeline () |
| virtual void | SetAbortGenerateData (bool _arg) |
| void | SetMultiThreader (MultiThreaderBase *threader) |
| virtual void | Update () |
| virtual void | UpdateLargestPossibleRegion () |
| virtual void | UpdateOutputData (DataObject *output) |
| virtual void | UpdateOutputInformation () |
| void | UpdateProgress (float progress) |
| virtual void | SetReleaseDataFlag (bool val) |
| virtual bool | GetReleaseDataFlag () const |
| void | ReleaseDataFlagOn () |
| void | ReleaseDataFlagOff () |
| virtual void | SetReleaseDataBeforeUpdateFlag (bool _arg) |
| virtual const bool & | GetReleaseDataBeforeUpdateFlag () const |
| virtual void | ReleaseDataBeforeUpdateFlagOn () |
| virtual void | ReleaseDataBeforeUpdateFlagOff () |
| itkVirtualSetClampMacro (NumberOfWorkUnits, ThreadIdType, 1, ITK_MAX_THREADS) | |
| virtual const ThreadIdType & | GetNumberOfWorkUnits () const |
Public Member Functions inherited from itk::Object | |
| unsigned long | AddObserver (const EventObject &event, Command *cmd) const |
| unsigned long | AddObserver (const EventObject &event, std::function< void(const EventObject &)> function) const |
| virtual void | DebugOff () const |
| virtual void | DebugOn () const |
| Command * | GetCommand (unsigned long tag) |
| bool | GetDebug () const |
| MetaDataDictionary & | GetMetaDataDictionary () |
| const MetaDataDictionary & | GetMetaDataDictionary () const |
| virtual ModifiedTimeType | GetMTime () const |
| virtual const TimeStamp & | GetTimeStamp () const |
| bool | HasObserver (const EventObject &event) const |
| void | InvokeEvent (const EventObject &) |
| void | InvokeEvent (const EventObject &) const |
| virtual void | Modified () const |
| void | Register () const override |
| void | RemoveAllObservers () |
| void | RemoveObserver (unsigned long tag) const |
| void | SetDebug (bool debugFlag) const |
| void | SetReferenceCount (int) override |
| void | UnRegister () const noexcept override |
| void | SetMetaDataDictionary (const MetaDataDictionary &rhs) |
| void | SetMetaDataDictionary (MetaDataDictionary &&rrhs) |
| virtual void | SetObjectName (std::string _arg) |
| virtual const std::string & | GetObjectName () const |
Public Member Functions inherited from itk::LightObject | |
| Pointer | Clone () const |
| virtual void | Delete () |
| virtual int | GetReferenceCount () const |
| void | Print (std::ostream &os, Indent indent=0) const |
Additional Inherited Members | |
Static Public Attributes inherited from itk::TernaryGeneratorImageFilter< TInputImage, TMaskImage, TInputImage, TInputImage > | |
| static constexpr unsigned int | Input1ImageDimension |
| static constexpr unsigned int | Input2ImageDimension |
| static constexpr unsigned int | Input3ImageDimension |
| static constexpr unsigned int | OutputImageDimension |
Static Public Attributes inherited from itk::InPlaceImageFilter< TInputImage, TInputImage > | |
| static constexpr unsigned int | InputImageDimension |
| static constexpr unsigned int | OutputImageDimension |
Static Public Attributes inherited from itk::ImageToImageFilter< TInputImage, TInputImage > | |
| static constexpr unsigned int | InputImageDimension |
| static constexpr unsigned int | InputImageDimension |
| static constexpr unsigned int | OutputImageDimension |
| static constexpr unsigned int | OutputImageDimension |
Static Public Attributes inherited from itk::ImageSource< TInputImage > | |
| static constexpr unsigned int | OutputImageDimension |
Protected Types inherited from itk::ImageToImageFilter< TInputImage, TInputImage > | |
| using | InputToOutputRegionCopierType |
| using | OutputToInputRegionCopierType |
Static Protected Member Functions inherited from itk::ImageSource< TInputImage > | |
| static const ImageRegionSplitterBase * | GetGlobalDefaultSplitter () |
| static ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION | ThreaderCallback (void *arg) |
Static Protected Member Functions inherited from itk::ProcessObject | |
| template<typename TSourceObject> | |
| static void | MakeRequiredOutputs (TSourceObject &sourceObject, const DataObjectPointerArraySizeType numberOfRequiredOutputs) |
| static constexpr float | progressFixedToFloat (uint32_t fixed) |
| static uint32_t | progressFloatToFixed (float f) |
Protected Attributes inherited from itk::ImageSource< TInputImage > | |
| bool | m_DynamicMultiThreading |
Protected Attributes inherited from itk::ProcessObject | |
| TimeStamp | m_OutputInformationMTime {} |
| bool | m_Updating {} |
Protected Attributes inherited from itk::LightObject | |
| std::atomic< int > | m_ReferenceCount {} |
| using itk::MaskedAssignImageFilter< TInputImage, TMaskImage, TOutputImage >::AssignImageType = TOutputImage |
Definition at line 81 of file itkMaskedAssignImageFilter.h.
| using itk::MaskedAssignImageFilter< TInputImage, TMaskImage, TOutputImage >::ConstPointer = SmartPointer<const Self> |
Definition at line 70 of file itkMaskedAssignImageFilter.h.
| using itk::MaskedAssignImageFilter< TInputImage, TMaskImage, TOutputImage >::InputImageType = TInputImage |
Typedefs
Definition at line 79 of file itkMaskedAssignImageFilter.h.
| using itk::MaskedAssignImageFilter< TInputImage, TMaskImage, TOutputImage >::MaskImageType = TMaskImage |
Definition at line 80 of file itkMaskedAssignImageFilter.h.
| using itk::MaskedAssignImageFilter< TInputImage, TMaskImage, TOutputImage >::OutputImageType = TOutputImage |
Definition at line 82 of file itkMaskedAssignImageFilter.h.
| using itk::MaskedAssignImageFilter< TInputImage, TMaskImage, TOutputImage >::OutputPixelType = typename OutputImageType::PixelType |
Definition at line 84 of file itkMaskedAssignImageFilter.h.
| using itk::MaskedAssignImageFilter< TInputImage, TMaskImage, TOutputImage >::Pointer = SmartPointer<Self> |
Definition at line 69 of file itkMaskedAssignImageFilter.h.
| using itk::MaskedAssignImageFilter< TInputImage, TMaskImage, TOutputImage >::Self = MaskedAssignImageFilter |
Standard class type aliases.
Definition at line 66 of file itkMaskedAssignImageFilter.h.
| using itk::MaskedAssignImageFilter< TInputImage, TMaskImage, TOutputImage >::Superclass = TernaryGeneratorImageFilter<TInputImage, TMaskImage, TOutputImage, TOutputImage> |
Definition at line 67 of file itkMaskedAssignImageFilter.h.
|
protected |
Referenced by GetNameOfClass().
|
overrideprotecteddefault |
|
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::LightObject.
|
inlinevirtual |
Definition at line 114 of file itkMaskedAssignImageFilter.h.
References itk::TernaryGeneratorImageFilter< TInputImage, TMaskImage, TInputImage, TInputImage >::GetConstant3().
|
inlinevirtual |
Definition at line 103 of file itkMaskedAssignImageFilter.h.
References itk::ProcessObject::GetInput().
|
inlinevirtual |
Definition at line 92 of file itkMaskedAssignImageFilter.h.
References itk::ProcessObject::GetInput().
|
virtual |
Runtime information support.
Reimplemented from itk::TernaryGeneratorImageFilter< TInputImage, TMaskImage, TInputImage, TInputImage >.
References MaskedAssignImageFilter().
|
static |
Method for creation through the object factory.
|
inlinevirtual |
Definition at line 109 of file itkMaskedAssignImageFilter.h.
References itk::TernaryGeneratorImageFilter< TInputImage, TMaskImage, TInputImage, TInputImage >::SetConstant3().
|
inlinevirtual |
Definition at line 98 of file itkMaskedAssignImageFilter.h.
References itk::TernaryGeneratorImageFilter< TInputImage, TMaskImage, TInputImage, TInputImage >::SetInput3().
|
inlinevirtual |
Definition at line 87 of file itkMaskedAssignImageFilter.h.
References itk::TernaryGeneratorImageFilter< TInputImage, TMaskImage, TInputImage, TInputImage >::SetInput2().