#include <itkPolylineMask2DImageFilter.h>
Implements 2D image masking operation constrained by a contour.
This class is parameterized over input image type, contour defined by a polyline, and output image type. If the input image is three dimensional, the masking operation is performed on each slice (2D image). The output image will have two regions demarcated by the contour i.e inside(masked) and outside region. The pixels in the masked region will keep their original intensity values. Whereas, intensity value of pixels outside the masked region will be set to zero.
Definition at line 48 of file itkPolylineMask2DImageFilter.h.
Inheritance diagram for itk::PolylineMask2DImageFilter< TInputImage, TPolyline, TOutputImage >:
Collaboration diagram for itk::PolylineMask2DImageFilter< TInputImage, TPolyline, TOutputImage >:Static Public Member Functions | |
| static Pointer | New () |
Static Public Member Functions inherited from itk::ImageToImageFilter< TInputImage, TOutputImage > | |
| static double | GetGlobalDefaultCoordinateTolerance () |
| static double | GetGlobalDefaultDirectionTolerance () |
| static void | SetGlobalDefaultCoordinateTolerance (double) |
| static void | SetGlobalDefaultDirectionTolerance (double) |
Static Public Member Functions inherited from itk::Object | |
| static bool | GetGlobalWarningDisplay () |
| static void | GlobalWarningDisplayOff () |
| static void | GlobalWarningDisplayOn () |
| static Pointer | New () |
| static void | SetGlobalWarningDisplay (bool val) |
Static Public Member Functions inherited from itk::LightObject | |
| static void | BreakOnError () |
| static Pointer | New () |
Static Public Attributes | |
| static constexpr unsigned int | NDimensions = TInputImage::ImageDimension |
| static constexpr unsigned int | NOutputDimensions = TOutputImage::ImageDimension |
Static Public Attributes inherited from itk::ImageToImageFilter< TInputImage, TOutputImage > | |
| static constexpr unsigned int | InputImageDimension = TInputImage::ImageDimension |
| static constexpr unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Static Public Attributes inherited from itk::ImageSource< TOutputImage > | |
| static constexpr unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Additional Inherited Members | |
Protected Types inherited from itk::ImageToImageFilter< TInputImage, TOutputImage > | |
| using | InputToOutputRegionCopierType |
| using | OutputToInputRegionCopierType |
Static Protected Member Functions inherited from itk::ImageSource< TOutputImage > | |
| 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< TOutputImage > | |
| bool | m_DynamicMultiThreading { true } |
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::PolylineMask2DImageFilter< TInputImage, TPolyline, TOutputImage >::ConstPointer = SmartPointer<const Self> |
Definition at line 57 of file itkPolylineMask2DImageFilter.h.
| using itk::PolylineMask2DImageFilter< TInputImage, TPolyline, TOutputImage >::InputImageConstPointer = typename InputImageType::ConstPointer |
Definition at line 71 of file itkPolylineMask2DImageFilter.h.
| using itk::PolylineMask2DImageFilter< TInputImage, TPolyline, TOutputImage >::InputImagePixelType = typename InputImageType::PixelType |
Definition at line 74 of file itkPolylineMask2DImageFilter.h.
| using itk::PolylineMask2DImageFilter< TInputImage, TPolyline, TOutputImage >::InputImagePointer = typename InputImageType::Pointer |
Definition at line 72 of file itkPolylineMask2DImageFilter.h.
| using itk::PolylineMask2DImageFilter< TInputImage, TPolyline, TOutputImage >::InputImageRegionType = typename InputImageType::RegionType |
Definition at line 73 of file itkPolylineMask2DImageFilter.h.
| using itk::PolylineMask2DImageFilter< TInputImage, TPolyline, TOutputImage >::InputImageType = TInputImage |
Some convenient type alias for input image
Definition at line 70 of file itkPolylineMask2DImageFilter.h.
| using itk::PolylineMask2DImageFilter< TInputImage, TPolyline, TOutputImage >::OutputImagePixelType = typename OutputImageType::PixelType |
Definition at line 83 of file itkPolylineMask2DImageFilter.h.
| using itk::PolylineMask2DImageFilter< TInputImage, TPolyline, TOutputImage >::OutputImagePointer = typename OutputImageType::Pointer |
Definition at line 81 of file itkPolylineMask2DImageFilter.h.
| using itk::PolylineMask2DImageFilter< TInputImage, TPolyline, TOutputImage >::OutputImageRegionType = typename OutputImageType::RegionType |
Definition at line 82 of file itkPolylineMask2DImageFilter.h.
| using itk::PolylineMask2DImageFilter< TInputImage, TPolyline, TOutputImage >::OutputImageType = TOutputImage |
Definition at line 80 of file itkPolylineMask2DImageFilter.h.
| using itk::PolylineMask2DImageFilter< TInputImage, TPolyline, TOutputImage >::Pointer = SmartPointer<Self> |
Definition at line 56 of file itkPolylineMask2DImageFilter.h.
| using itk::PolylineMask2DImageFilter< TInputImage, TPolyline, TOutputImage >::PolylineType = TPolyline |
Definition at line 77 of file itkPolylineMask2DImageFilter.h.
| using itk::PolylineMask2DImageFilter< TInputImage, TPolyline, TOutputImage >::Self = PolylineMask2DImageFilter |
Standard class type aliases.
Definition at line 54 of file itkPolylineMask2DImageFilter.h.
| using itk::PolylineMask2DImageFilter< TInputImage, TPolyline, TOutputImage >::Superclass = ImageToImageFilter<TInputImage, TOutputImage> |
Definition at line 55 of file itkPolylineMask2DImageFilter.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::Object.
|
overrideprotectedvirtual |
A version of GenerateData() specific for image processing filters. This implementation will split the processing across multiple threads. The buffer is allocated by this method. Then the BeforeThreadedGenerateData() method is called (if provided). Then, a series of threads are spawned each calling DynamicThreadedGenerateData(). After all the threads have completed processing, the AfterThreadedGenerateData() method is called (if provided). If an image processing filter cannot be threaded, the filter should provide an implementation of GenerateData(). That implementation is responsible for allocating the output buffer. If a filter can be threaded, it should NOT provide a GenerateData() method but should provide a DynamicThreadedGenerateData() instead.
Reimplemented from itk::ImageSource< TOutputImage >.
|
virtual |
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
References PolylineMask2DImageFilter().
|
static |
Method for creation through the object factory.
| void itk::PolylineMask2DImageFilter< TInputImage, TPolyline, TOutputImage >::SetInput1 | ( | const InputImageType * | input | ) |
Read in image and polyline inputs
| void itk::PolylineMask2DImageFilter< TInputImage, TPolyline, TOutputImage >::SetInput2 | ( | const PolylineType * | input | ) |
References NDimensions, and NOutputDimensions.
|
staticconstexpr |
Number of dimensions.
Definition at line 66 of file itkPolylineMask2DImageFilter.h.
Referenced by SetInput2().
|
staticconstexpr |
Definition at line 67 of file itkPolylineMask2DImageFilter.h.
Referenced by SetInput2().