# FILTER.STACK

Sets or gets the stacked filter configuration.

The first value sets the order of the filter steps. Filter step 1 is the first step, filter step 2 is the second, and so on. The second value sets the filter to be used. The third value contains the additional properties that you can set for the given filter.

For example:

- SET FILTER.STACK 2 2 0 100 0: sets the second step in the filter, to stretch from 0 to 100, leaving the third value unused (0).
- GET FILTER.STACK 3: returns 5 4 3, which means that for the third filter step, filter number 5 (erode) is on, with parameters 4 and 3.

Note: You cannot configure the whole filter stack with one statement, only one filter at a time.

## Actions

SET/GET Property

## Arguments

Name | Type | Range | Meaning
--- | --- | --- | ---
step |  | [1-4] | Filter step
method |  | [0-11] | 0: no filtering 1: equalize 2: stretch 3: low pass 4: dilate 5: erode 6: open 7: close 8: auto stretch 9: optical density 10: invert 11: median 12: gamma correction 13: scale
value1 value2 value3 |  | [0-255] | method parameter

## Platforms

DM50, DM60, DM70, DM80, DM150, DM260, DM280, DM290, DM300, DM360, DM370, DM390, DM470.

## Notes

Version: 4.3.0