IIXC_Page::FilterMedian Method

From PDF XChange PDF SDK
Jump to: navigation, search
m (Automatic page editing by robot)
m (Automatic page editing by robot)
Line 11: Line 11:
  
 
== Syntax ==
 
== Syntax ==
<pre class="brush:cpp;gutter:false">HRESULT FilterMedian([in]  ULONG  nLevel,
+
<pre class="brush:cpp;gutter:false">HRESULT FilterMedian([in]  ULONG  Level,
                     [in]  ULONG  nThresold,
+
                     [in]  ULONG  Thresold,
                     [in]  ULONG  nFlags);</pre>
+
                     [in]  ULONG  Flags);</pre>
  
 
== Parameters ==
 
== Parameters ==
;nLevel
+
;Level
 
:[in]  Specifies the radius of a pixel where median brughtness value are searched. This value can be in range from 1 to 100.
 
:[in]  Specifies the radius of a pixel where median brughtness value are searched. This value can be in range from 1 to 100.
;nThresold
+
;Thresold
 
:[in]  Specifies the threshold for filter. This value can be in range from 0 to 255.
 
:[in]  Specifies the threshold for filter. This value can be in range from 0 to 255.
;nFlags
+
;Flags
 
:[in] Combination of [[PXV:IXC_FilterFlags|flags]] which specifies how the data will be processed.
 
:[in] Combination of [[PXV:IXC_FilterFlags|flags]] which specifies how the data will be processed.
  

Revision as of 06:50, 12 June 2015


The method applies Median filtering to the specified page.

Median filtering reduces noise in an image by blending the brightness of pixels within a selection. The filter searches the radius of a pixel selection for pixels of similar brightness, discarding pixels that differ too much from adjacent pixels, and replaces the center pixel with the median brightness value of the searched pixels. This filter is useful for eliminating or reducing the effect of motion on an image.

Syntax

HRESULT FilterMedian([in]  ULONG  Level,
                     [in]  ULONG  Thresold,
                     [in]  ULONG  Flags);

Parameters

Level
[in] Specifies the radius of a pixel where median brughtness value are searched. This value can be in range from 1 to 100.
Thresold
[in] Specifies the threshold for filter. This value can be in range from 0 to 255.
Flags
[in] Combination of flags which specifies how the data will be processed.

Return Value

Returns S_OK if operation was successful or error code in other cases.

See Also

IIXC_Page