com.aspose.ocr.filters

Class GaussBlurFilter



  • public class GaussBlurFilter
    extends Filter

    Represents Gauss blur filtration.


     
     [C#]
     OcrEngine ocrEngine = new OcrEngine();
     // Add Gauss blur filtration.
     ocrEngine.Config.CorrectionFilters.Add(new GaussBlurFilter());
     

    • Constructor Summary

      Constructors 
      Constructor and Description
      GaussBlurFilter()
      Initializes a new instance of the GaussBlurFilterOld class.
      GaussBlurFilter(int size, float sigm)
      Initializes a new instance of the GaussBlurFilterOld class.
    • Constructor Detail

      • GaussBlurFilter

        public GaussBlurFilter()

        Initializes a new instance of the GaussBlurFilterOld class.

      • GaussBlurFilter

        public GaussBlurFilter(int size,
                       float sigm)

        Initializes a new instance of the GaussBlurFilterOld class.

        Parameters:
        size - Window size.
        sigm - Sigma parameter.
    • Method Detail

      • correct

        public com.aspose.enhence.ocr.sharedlibrary.bitmap.IBitmap correct(com.aspose.enhence.ocr.sharedlibrary.bitmap.IBitmap bitmap)

        Applies correction to image

        Specified by:
        correct in class Filter
        Parameters:
        bitmap - input image
        Returns:
        corrected image
      • getSigm

        public float getSigm()

        Gets or sets sigm parameter.

      • getSize

        public int getSize()

        Gets or sets Size of a filter.

      • setSigm

        public void setSigm(float value)

        Gets or sets sigm parameter.

      • setSize

        public void setSize(int value)

        Gets or sets Size of a filter.