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.