2.8.20 medianflt2


Menu Information

Analysis: Mathematics: Median Filter

Brief Information

Apply median filter to a matrix

Command Line Usage

1. medianflt2 im:=MSource;

2. medianflt2 im:=MSource om:=MOutput;

3. medianflt2 n:=3;

4. medianflt2 po:=repeat;

5. medianflt2 im:=MSource om:=Moutput n:=3 po:=map;

X-Function Execution Options

Please refer to the page for additional option switches when accessing the x-function from script

Variables

Display
Name
Variable
Name
I/O
and
Type
Default
Value
Description
Input Matrix im

Input

MatrixObject

<active>

The input Matrix

Output Matrix om

Output

MatrixObject

<new>

The output matrix See the syntax here.

Window size n

Input

int

3

The filter window size

Padding Option po

Input

int

zero

Specifies how to pad cells outside borders.
Option list

  • Zero:ZeroPadding
    Pads with zeros.
  • MapPadding
    Uses reflect padding.
  • RepeatPadding
    Repeats edge values.


More Information

Please refer to this page in the User Guide for more information:

  • Description
  • Algorithm

Related X-Functions

filter2, specialflt2