2.8.27 specialflt2

Menu Information

Analysis: Mathematics: Special Filter

Brief Information

Apply predefined special filter to a matrix

Command Line Usage

1. specialflt2 im:=MSource om:=MOut

2. specialflt2 im:=MSource om:=MOut po:=map

3. specialflt2 im:=MSource mo:=<new> filter:=vprew

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.

Special filter filter

Input

int

ave

The particular filter to be used

  • 0: Average filter
  • 1: Horizontal Prewitt filter
  • 2: Vertical Prewitt filter
  • 3: Horizontal Sobel filter
  • 4: Vertical Sobel filter


Padding Option po

Input

int

zero

Specifies how to pad cells outside borders.
Option list

  • 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

Related X-Functions

filter2, medianflt2