IIXC_Page::FilterMedian Method

From PDF XChange PDF SDK
Jump to: navigation, search
(Automatic page editing by robot)
 
m (Automatic page editing by robot)
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
__NOTOC__
 
[[Category:Editor]]
 
[[Category:Editor]]
 
{{#customTitle:IIXC_Page::FilterMedian Method}}
 
{{#customTitle:IIXC_Page::FilterMedian Method}}
 +
{{#parentPage:PXV:IIXC_Page#Methods|FilterMedian|method}}
 +
{{ToWrite}}
 +
{{ToReview}}
  
The method of interface of PDF-XChange Editor SDK.
+
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 ==
 
== Syntax ==
<pre class="brush:cpp;gutter:false">HRESULT FilterMedian([in] ULONG nLevel, [in] ULONG nThresold, [in] ULONG nFlags);</pre>
+
<pre class="brush:cpp;gutter:false">HRESULT FilterMedian([in] ULONG nLevel,
 +
                    [in] ULONG nThresold,
 +
                    [in] ULONG nFlags);</pre>
  
 
== Parameters ==
 
== Parameters ==
;''nLevel''
+
;nLevel
:[in]  Value of ULONG.
+
:[in]  Specifies the radius of a pixel where median brughtness value are searched. This value can be in range from 1 to 100.
;''nThresold''
+
;nThresold
:[in]  Value of ULONG.
+
:[in]  Specifies the threshold for filter. This value can be in range from 0 to 255.
;''nFlags''
+
;nFlags
:[in] Value of ULONG.
+
:[in] Combination of [[PXV:IXC_FilterFlags|flags]] which specifies how the data will be processed.
  
 
== Return Value ==
 
== Return Value ==
Line 19: Line 27:
  
 
== See Also ==
 
== See Also ==
See also [[PXV:IIXC_Page|IIXC_Page]].
+
[[PXV:IIXC_Page|IIXC_Page]]

Latest revision as of 03:16, 15 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  nLevel,
                     [in]  ULONG  nThresold,
                     [in]  ULONG  nFlags);

Parameters

nLevel
[in] Specifies the radius of a pixel where median brughtness value are searched. This value can be in range from 1 to 100.
nThresold
[in] Specifies the threshold for filter. This value can be in range from 0 to 255.
nFlags
[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