SmoothImage Method of the ImageDocument Object

This method allows you to smooth the image by averaging over the square neighborhood. The method removes sharp differences from the image. It can be useful, for example, if the image contains some noise, i.e., random black dots or speckles. This method should not be used if the lines of letters on the image are thin.

Important! This method can be used for gray and color images only.

Syntax

C++

HRESULT SmoothImage(
  IRegion* Region,
  int      AreaSize
);
    

C#

void SmoothImage(
  IRegion Region,
  int    AreaSize
);
    

Visual Basic .NET

Sub SmoothImage( _
  Region As IRegion, _
  AreaSize As Integer _
)
    

Parameters

Region
[in] This parameter of the Region type specifies the set of rectangles to be smoothed. The coordinates of rectangles are related to the deskewed black-and-white page of the ImageDocument. This parameter may be 0. In this case, the whole image is smoothed.
AreaSize
[in] This variable specifies the side of the square neighborhood. Must be an odd number greater than or equal to 3.

Return values

This method has no specific return values. It returns the standard return values of ABBYY FineReader Engine functions.

Remarks

  • This method smoothes the color image plane of the ImageDocument. All the other pages are deleted from the ImageDocument. They will be created upon demand.
  • This method does not report events to the listeners attached to the IConnectionPointContainer interface of the ImageDocument object.

See also

ImageDocument

24.03.2023 8:51:52

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.