nexxT.examples.framework.ImageBlur module

This module defines the filter ImageBlur as a little showcase for a long-running algorithm

class nexxT.examples.framework.ImageBlur.ImageBlur(env)[source]

Bases: Filter

A filter providing the parameter kernelSize. A box filter of this size is applied to the input image and the output is transferred over the output port.

__init__(env)[source]

Filter Constructor.

Parameters:
  • dynInPortsSupported – Flag whether this filter supports dynamic input ports

  • dynOutPortsSupported – Flag whether this filter supports dynamic output ports

  • environment – FilterEnvironment instance which shall be passed through from the filter constructor.

onPortDataChanged(port)[source]

Overloaded from Filter base class. The method is called whenever new data arrives at an input port. :param port: the port which has new data. :return:

staticMetaObject = PySide6.QtCore.QMetaObject("ImageBlur" inherits "Filter": )
nexxT.examples.framework.ImageBlur.boxFilter(img, kernelSize)[source]

2D box filter operating on single or multichannel input images :param img: the image as a numpy array :param kernel_size: the size of the filter (must be odd) :return: the filtered image (same type as input image)