> For the complete documentation index, see [llms.txt](https://interopxyz.gitbook.io/bitmap-plus/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://interopxyz.gitbook.io/bitmap-plus/components/filter/difference-filter.md).

# Difference Filter

Apply a Difference filter to an Image

## Description

Apply a Difference filter to an Image

{% tabs %}
{% tab title="Preview" %}
![](https://3118158252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhT7C2oduVfvz0FwKt3nj%2Fuploads%2FnGoRdwjQDwc2v0QB46w7%2FComponent-FilterDifference.png?alt=media\&token=5f20c5d4-291a-46de-96c3-e640286437a6)
{% endtab %}

{% tab title="Location" %}
**Name** | Difference Filter

**Nickname** | Difference

**Tab** | Bitmap

**Panel** | Filter

**Division** | 2
{% endtab %}

{% tab title="Inputs" %}
**I** | **Image** (*B+ Image, Bitmap*) | A Bitmap Plus Image or Bitmap

<mark style="color:blue;">**M**</mark> <mark style="color:blue;"></mark><mark style="color:blue;">|</mark> <mark style="color:blue;"></mark><mark style="color:blue;">**Mode**</mark> <mark style="color:blue;"></mark><mark style="color:blue;">(</mark>*<mark style="color:blue;">Integer</mark>*<mark style="color:blue;">) | Select filter mode</mark>

<mark style="color:orange;">**V**</mark> <mark style="color:orange;"></mark><mark style="color:orange;">|</mark> <mark style="color:orange;"></mark><mark style="color:orange;">**Parameter**</mark> <mark style="color:orange;"></mark><mark style="color:orange;">(</mark>*<mark style="color:orange;">Interval</mark>*<mark style="color:orange;">) |</mark> <mark style="color:orange;"></mark>*<mark style="color:orange;">This variable's use changes depending on the mode</mark>*

**B** | **Image** (*B+ Image, Bitmap*) | A Bitmap Plus Image or Bitmap
{% endtab %}

{% tab title="Ouputs" %}
**I** | **Image** (*B+ Image*) | A Bitmap Plus Image
{% endtab %}

{% tab title="Mode" %}
![](https://3118158252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhT7C2oduVfvz0FwKt3nj%2Fuploads%2FeV1ulrSGqAXPXGlo6uDD%2Fimage.png?alt=media\&token=fb42f272-523b-4276-8531-df4f25a0a55c)

**Save Image** | Opens a file save dialog to save a raster file of the current image.

**Copy Image to Clipboard** | Copies the image to the clipboard (no alpha)
{% endtab %}
{% endtabs %}

### **Filter** Mode

<details>

<summary><strong>Filter</strong> Mode Enumerable</summary>

* Add = 0
* Subtract = 1
* Multiply = 2
* Divide = 3
* Merge = 4
* Flat Field = 5
* Intersect = 6
* Euclidean = 7
  * **V** | **Threshold** | Threshold Value Unitized adjustment value (0-1)
* Morph = 8
  * **V** | **Percent** | Percent Value Unitized adjustment value (0-1)
* Move Towards = 9
  * **V** | **Size** | Size Value Unitized adjustment value (0-1)
* Simple = 10
  * **V** | **Threshold** | Threshold Value Unitized adjustment value (0-1)

</details>

## Usage

### Difference Mode Samples

![Add](https://3118158252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhT7C2oduVfvz0FwKt3nj%2Fuploads%2F6XXgjoKysmwudMMwX1T3%2F1-Add.jpg?alt=media\&token=a6e5fa79-3474-4c9a-aedb-03a7a8f6b638) ![Divide](https://3118158252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhT7C2oduVfvz0FwKt3nj%2Fuploads%2F7wCuAaLZPCnzd4EMrigT%2F1-Divide.jpg?alt=media\&token=7be6badd-0b09-4e24-9d4b-5966ebc8e05f) ![Subtract](https://3118158252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhT7C2oduVfvz0FwKt3nj%2Fuploads%2FLAzlGEOQ1yUC8oVznwNe%2F1-Subtract.jpg?alt=media\&token=7fae46c3-4971-4025-8e2c-b8b6a4d3359e)

![Flat Field](https://3118158252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhT7C2oduVfvz0FwKt3nj%2Fuploads%2FdsB5giMqBAewdD67ag70%2F1-FlatField.jpg?alt=media\&token=26920fd5-cb63-4781-a935-5010b19cfcd6) ![Intersect](https://3118158252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhT7C2oduVfvz0FwKt3nj%2Fuploads%2FnCcVCCh9gli49ShHXLUs%2F1-Intersect.jpg?alt=media\&token=3ac2e20c-023e-4d65-ab2d-55155464a880) ![Merge](https://3118158252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhT7C2oduVfvz0FwKt3nj%2Fuploads%2FGfsIcBNu8mLXeH9VssNd%2F1-Merge.jpg?alt=media\&token=d908e43b-ab98-40b0-8d84-d489555278aa)

![Morph](https://3118158252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhT7C2oduVfvz0FwKt3nj%2Fuploads%2F4ZAyAT0XWFNZKTKuAhWl%2F1-Morph.jpg?alt=media\&token=50afec3e-c210-4a07-b881-832f91e44eda) ![Move Towards](https://3118158252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhT7C2oduVfvz0FwKt3nj%2Fuploads%2Fmm3QNANI2Pq6EOfnhcLk%2F1-MoveTowards.jpg?alt=media\&token=d44653dd-fe32-40e4-a850-36e25f59274f) ![Multiply](https://3118158252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhT7C2oduVfvz0FwKt3nj%2Fuploads%2Fll0GmNygCRHlv0rucMIZ%2F1-Multiply.jpg?alt=media\&token=ef72df57-2b7b-49f5-b348-92a511f5ee6c)

![Simple](https://3118158252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhT7C2oduVfvz0FwKt3nj%2Fuploads%2FCLHn3Mxfa5SLtWrOfDqm%2F1-Simple.jpg?alt=media\&token=035efd64-16fa-4a33-8095-72edf52e840f) ![Euclidean](https://3118158252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhT7C2oduVfvz0FwKt3nj%2Fuploads%2Fhar1IobuwODgRBNSRO4a%2F1-Euclidean.jpg?alt=media\&token=853e50b6-df55-4d7e-a2a5-94fe5c52a197)
