ImageDev

MorphologicalLut2d

Represents a set of 3x3 morphological kernels stored as a one-dimensional array.

Syntax

Method Description
Ptr New() Constructor returning an empty MorphologicalLut2d
Ptr New( const MorphologicalKernel2d::Ptr kernel, const size_t rotation ) Constructor returning a MorphologicalLut2d with a kernel with a specific rotation
  • kernel: the MorphologicalKernel2d object to be inserted into the MorphologicalLut2d.
  • rotation: the number of PI/4 rotations to apply on the kernel before inserting it.
  • Ptr New( const MorphologicalKernel2d::Ptr kernel ) Constructor returning a MorphologicalLut2d with a kernel in all possible rotations
  • kernel: the MorphologicalKernel2d object to be inserted into the MorphologicalLut2d.
  • void addKernel( const MorphologicalKernel2d::Ptr kernel, const size_t rotation = 0 ) Adds a morphological kernel to the morphological LUT.
  • kernel: the MorphologicalKernel2d object to be inserted into the MorphologicalLut2d.
  • rotation: the number of PI/4 rotations to apply on the kernel before inserting it.
  • void addKernels( const MorphologicalKernel2d::Ptr kernel ) Adds a morphological kernel to the morphological LUT in all possible rotations.
  • kernel: the MorphologicalKernel2d object to be inserted into the MorphologicalLut2d.
  • void reset() Resets the LUT to initial values; that is, remove all kernels from the morphological LUT.
    size_t kernelCount() Returns the number of kernels in the LUT.
    Method Description
    MorphologicalLut2d() Constructor returning an empty MorphologicalLut2d
    MorphologicalLut2d(kernel, rotation) Constructor returning a MorphologicalLut2d with a kernel with a specific rotation
  • kernel: the MorphologicalKernel2d object to be inserted into the MorphologicalLut2d.
  • rotation: the number of PI/4 rotations to apply on the kernel before inserting it.
  • MorphologicalLut2d(kernel) Constructor returning a MorphologicalLut2d with a kernel in all possible rotations
  • kernel: the MorphologicalKernel2d object to be inserted into the MorphologicalLut2d.
  • add_kernel(kernel, rotation) Adds a morphological kernel to the morphological LUT.
  • kernel: the MorphologicalKernel2d object to be inserted into the MorphologicalLut2d.
  • rotation: the number of PI/4 rotations to apply on the kernel before inserting it.
  • add_kernels(kernel) Adds a morphological kernel to the morphological LUT in all possible rotations.
  • kernel: the MorphologicalKernel2d object to be inserted into the MorphologicalLut2d.
  • reset() Resets the LUT to initial values; that is, remove all kernels from the morphological LUT.
    kernel_count() Returns the number of kernels in the LUT.
    Method Description
    public MorphologicalLut2d() Constructor returning an empty MorphologicalLut2d
    public MorphologicalLut2d(MorphologicalKernel2d kernel, int rotation) Constructor returning a MorphologicalLut2d with a kernel with a specific rotation
  • kernel: the MorphologicalKernel2d object to be inserted into the MorphologicalLut2d.
  • rotation: the number of PI/4 rotations to apply on the kernel before inserting it.
  • public MorphologicalLut2d(MorphologicalKernel2d kernel) Constructor returning a MorphologicalLut2d with a kernel in all possible rotations
  • kernel: the MorphologicalKernel2d object to be inserted into the MorphologicalLut2d.
  • void AddKernel(MorphologicalKernel2d kernel, int rotation = 0) Adds a morphological kernel to the morphological LUT.
  • kernel: the MorphologicalKernel2d object to be inserted into the MorphologicalLut2d.
  • rotation: the number of PI/4 rotations to apply on the kernel before inserting it.
  • void AddKernels(MorphologicalKernel2d kernel) Adds a morphological kernel to the morphological LUT in all possible rotations.
  • kernel: the MorphologicalKernel2d object to be inserted into the MorphologicalLut2d.
  • void Reset() Resets the LUT to initial values; that is, remove all kernels from the morphological LUT.
    int KernelCount() Returns the number of kernels in the LUT.