Median Filter.  
More...
|  | 
| array | medfilt (const array &in, const dim_t wind_length=3, const dim_t wind_width=3, const borderType edge_pad=AF_PAD_ZERO) | 
|  | C++ Interface for median filter. 
 | 
|  | 
| array | medfilt1 (const array &in, const dim_t wind_width=3, const borderType edge_pad=AF_PAD_ZERO) | 
|  | C++ Interface for median filter. 
 | 
|  | 
| array | medfilt2 (const array &in, const dim_t wind_length=3, const dim_t wind_width=3, const borderType edge_pad=AF_PAD_ZERO) | 
|  | C++ Interface for median filter. 
 | 
|  | 
| af_err | af_medfilt (af_array *out, const af_array in, const dim_t wind_length, const dim_t wind_width, const af_border_type edge_pad) | 
|  | C Interface for median filter. 
 | 
|  | 
| af_err | af_medfilt1 (af_array *out, const af_array in, const dim_t wind_width, const af_border_type edge_pad) | 
|  | C Interface for 1D median filter. 
 | 
|  | 
| af_err | af_medfilt2 (af_array *out, const af_array in, const dim_t wind_length, const dim_t wind_width, const af_border_type edge_pad) | 
|  | C Interface for median filter. 
 | 
|  | 
Median Filter. 
A median filter is similar to the arbitrary filter except that instead of a weighted sum, the median value of the pixels covered by the kernel is returned.
 
◆ af_medfilt()
C Interface for median filter. 
- Parameters
- 
  
    | [out] | out | array is the processed image |  | [in] | in | array is the input image |  | [in] | wind_length | is the kernel height |  | [in] | wind_width | is the kernel width |  | [in] | edge_pad | value will decide what happens to border when running filter in their neighborhood. It takes one of the values [AF_PAD_ZERO | AF_PAD_SYM] |  
 
- Returns
- AF_SUCCESS if the median filter is applied successfully, otherwise an appropriate error code is returned. 
 
 
◆ af_medfilt1()
C Interface for 1D median filter. 
- Parameters
- 
  
    | [out] | out | array is the processed signal |  | [in] | in | array is the input signal |  | [in] | wind_width | is the kernel width |  | [in] | edge_pad | value will decide what happens to border when running filter in their neighborhood. It takes one of the values [AF_PAD_ZERO | AF_PAD_SYM] |  
 
- Returns
- AF_SUCCESS if the median filter is applied successfully, otherwise an appropriate error code is returned. 
 
 
◆ af_medfilt2()
C Interface for median filter. 
- Parameters
- 
  
    | [out] | out | array is the processed image |  | [in] | in | array is the input image |  | [in] | wind_length | is the kernel height |  | [in] | wind_width | is the kernel width |  | [in] | edge_pad | value will decide what happens to border when running filter in their neighborhood. It takes one of the values [AF_PAD_ZERO | AF_PAD_SYM] |  
 
- Returns
- AF_SUCCESS if the median filter is applied successfully, otherwise an appropriate error code is returned. 
 
 
◆ medfilt()
C++ Interface for median filter. 
    array a = array(4, 4, input);
    
    
    
    
    
    
    
    
    
    
- Parameters
- 
  
    | [in] | in | array is the input image |  | [in] | wind_length | is the kernel height |  | [in] | wind_width | is the kernel width |  | [in] | edge_pad | value will decide what happens to border when running filter in their neighborhood. It takes one of the values [AF_PAD_ZERO | AF_PAD_SYM] |  
 
- Returns
- the processed image 
 
 
◆ medfilt1()
C++ Interface for median filter. 
    array a = array(4, 4, input);
    
    
    
    
    
    
    
    
    
    
- Parameters
- 
  
    | [in] | in | array is the input signal |  | [in] | wind_width | is the kernel width |  | [in] | edge_pad | value will decide what happens to border when running filter in their neighborhood. It takes one of the values [AF_PAD_ZERO | AF_PAD_SYM] |  
 
- Returns
- the processed signal 
 
 
◆ medfilt2()
C++ Interface for median filter. 
    array a = array(4, 4, input);
    
    
    
    
    
    
    
    
    
    
- Parameters
- 
  
    | [in] | in | array is the input image |  | [in] | wind_length | is the kernel height |  | [in] | wind_width | is the kernel width |  | [in] | edge_pad | value will decide what happens to border when running filter in their neighborhood. It takes one of the values [AF_PAD_ZERO | AF_PAD_SYM] |  
 
- Returns
- the processed image