#include <itkPyImageFilter.h>
ImageToImageFilter subclass that calls a Python callable object, e.g. a Python function or a class with a call method.
For more information on ITK filters, the GenerateData() method, and other filter pipeline methods, see the ITK Software Guide.
Definition at line 42 of file itkPyImageFilter.h.
Static Public Member Functions | |
static Pointer | New () |
![]() | |
static double | GetGlobalDefaultCoordinateTolerance () |
static double | GetGlobalDefaultDirectionTolerance () |
static void | SetGlobalDefaultCoordinateTolerance (double) |
static void | SetGlobalDefaultDirectionTolerance (double) |
![]() | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool val) |
![]() | |
static void | BreakOnError () |
static Pointer | New () |
Static Public Attributes | |
static constexpr unsigned int | InputImageDimension = TInputImage::ImageDimension |
static constexpr unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
![]() | |
static constexpr unsigned int | InputImageDimension = TInputImage::ImageDimension |
static constexpr unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
![]() | |
static constexpr unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Private Attributes | |
PyObject * | m_EnlargeOutputRequestedRegionCallable { nullptr } |
PyObject * | m_GenerateDataCallable { nullptr } |
PyObject * | m_GenerateInputRequestedRegionCallable { nullptr } |
PyObject * | m_GenerateOutputInformationCallable { nullptr } |
PyObject * | m_Self |
Additional Inherited Members | |
![]() | |
using | InputToOutputRegionCopierType |
using | OutputToInputRegionCopierType |
![]() | |
static const ImageRegionSplitterBase * | GetGlobalDefaultSplitter () |
static ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION | ThreaderCallback (void *arg) |
![]() | |
template<typename TSourceObject> | |
static void | MakeRequiredOutputs (TSourceObject &sourceObject, const DataObjectPointerArraySizeType numberOfRequiredOutputs) |
static constexpr float | progressFixedToFloat (uint32_t fixed) |
static uint32_t | progressFloatToFixed (float f) |
![]() | |
bool | m_DynamicMultiThreading { true } |
![]() | |
TimeStamp | m_OutputInformationMTime {} |
bool | m_Updating {} |
![]() | |
std::atomic< int > | m_ReferenceCount {} |
using itk::PyImageFilter< TInputImage, TOutputImage >::ConstPointer = SmartPointer<const Self> |
Definition at line 51 of file itkPyImageFilter.h.
using itk::PyImageFilter< TInputImage, TOutputImage >::InputImagePixelType = typename InputImageType::PixelType |
Definition at line 63 of file itkPyImageFilter.h.
using itk::PyImageFilter< TInputImage, TOutputImage >::InputImagePointer = typename InputImageType::Pointer |
Definition at line 61 of file itkPyImageFilter.h.
using itk::PyImageFilter< TInputImage, TOutputImage >::InputImageRegionType = typename InputImageType::RegionType |
Definition at line 62 of file itkPyImageFilter.h.
using itk::PyImageFilter< TInputImage, TOutputImage >::InputImageType = TInputImage |
Some convenient type alias.
Definition at line 60 of file itkPyImageFilter.h.
using itk::PyImageFilter< TInputImage, TOutputImage >::OutputImagePixelType = typename OutputImageType::PixelType |
Definition at line 67 of file itkPyImageFilter.h.
using itk::PyImageFilter< TInputImage, TOutputImage >::OutputImagePointer = typename OutputImageType::Pointer |
Definition at line 65 of file itkPyImageFilter.h.
using itk::PyImageFilter< TInputImage, TOutputImage >::OutputImageRegionType = typename OutputImageType::RegionType |
Definition at line 66 of file itkPyImageFilter.h.
using itk::PyImageFilter< TInputImage, TOutputImage >::OutputImageType = TOutputImage |
Definition at line 64 of file itkPyImageFilter.h.
using itk::PyImageFilter< TInputImage, TOutputImage >::Pointer = SmartPointer<Self> |
Definition at line 50 of file itkPyImageFilter.h.
using itk::PyImageFilter< TInputImage, TOutputImage >::Self = PyImageFilter |
Standard class type aliases.
Definition at line 48 of file itkPyImageFilter.h.
using itk::PyImageFilter< TInputImage, TOutputImage >::Superclass = ImageToImageFilter<TInputImage, TOutputImage> |
Definition at line 49 of file itkPyImageFilter.h.
|
protecteddefault |
Referenced by GetNameOfClass().
|
overrideprotected |
|
inline |
Python internal method to pass a pointer to the wrapping Python object.
Definition at line 99 of file itkPyImageFilter.h.
References m_Self.
|
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 |
Give the process object a chance to indicate that it will produce more output than it was requested to produce. For example, many imaging filters must compute the entire output at once or can only produce output in complete slices. Such filters cannot handle smaller requested regions. These filters must provide an implementation of this method, setting the output requested region to the size they will produce. By default, a process object does not modify the size of the output requested region.
Reimplemented from itk::ProcessObject.
|
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 >.
|
overrideprotectedvirtual |
What is the input requested region that is required to produce the output requested region? The base assumption for image processing filters is that the input requested region can be set to match the output requested region. If a filter requires more input (for instance a filter that uses neighborhoods needs more input than output to avoid introducing artificial boundary conditions) or less input (for instance a magnify filter) will have to override this method. In doing so, it should call its superclass' implementation as its first step. Note that imaging filters operate differently than the classes to this point in the class hierarchy. Up till now, the base assumption has been that the largest possible region will be requested of the input.
This implementation of GenerateInputRequestedRegion() only processes the inputs that are a subclass of the ImageBase<InputImageDimension>. If an input is another type of DataObject (including an Image of a different dimension), they are skipped by this method. The subclasses of ImageToImageFilter are responsible for providing an implementation of GenerateInputRequestedRegion() when there are multiple inputs of different types.
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
|
overrideprotectedvirtual |
Generate the information describing the output data. The default implementation of this method will copy information from the input to the output. A filter may override this method if its output will have different information than its input. For instance, a filter that shrinks an image will need to provide an implementation for this method that changes the spacing of the pixels. Such filters should call their superclass' implementation of this method prior to changing the information values they need (i.e. GenerateOutputInformation() should call Superclass::GenerateOutputInformation() prior to changing the information.
Reimplemented from itk::ProcessObject.
|
overridevirtual |
Run-time type information (and related methods).
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
References PyImageFilter().
|
static |
Method for creation through the object factory.
void itk::PyImageFilter< TInputImage, TOutputImage >::SetPyEnlargeOutputRequestedRegion | ( | PyObject * | obj | ) |
Python callable called during the filter's EnlargeOutputRequestedRegion.
The callable takes two arguments: the PyImageFilter Python instance and the output image instance.
void itk::PyImageFilter< TInputImage, TOutputImage >::SetPyGenerateData | ( | PyObject * | obj | ) |
Python callable called during the filter's GenerateData.
The callable takes one argument: the PyImageFilter Python instance.
void itk::PyImageFilter< TInputImage, TOutputImage >::SetPyGenerateInputRequestedRegion | ( | PyObject * | obj | ) |
Python callable called during the filter's GenerateInputRequestedRegion.
The callable takes one argument: the PyImageFilter Python instance.
void itk::PyImageFilter< TInputImage, TOutputImage >::SetPyGenerateOutputInformation | ( | PyObject * | obj | ) |
Python callable called during the filter's GenerateOutputInformation.
The callable takes one argument: the PyImageFilter Python instance.
|
staticconstexpr |
ImageDimension enumeration
Definition at line 70 of file itkPyImageFilter.h.
|
private |
Definition at line 124 of file itkPyImageFilter.h.
|
private |
Definition at line 125 of file itkPyImageFilter.h.
|
private |
Definition at line 122 of file itkPyImageFilter.h.
|
private |
Definition at line 123 of file itkPyImageFilter.h.
|
private |
Definition at line 121 of file itkPyImageFilter.h.
Referenced by _SetSelf().
|
staticconstexpr |
Definition at line 71 of file itkPyImageFilter.h.