Metadata-Version: 2.4
Name: vapoursynth-edgemasks
Version: 5.0
Summary: Creates an edge mask using various operators
Keywords: vapoursynth,edgemasks
License-Expression: Apache-2.0 AND MIT
License-File: LICENSE
License-File: src/vectorclass/LICENSE
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Plugins
Classifier: Natural Language :: English
Classifier: Operating System :: MacOS
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX
Classifier: Operating System :: Unix
Classifier: Programming Language :: C++
Classifier: Topic :: Multimedia :: Video
Project-URL: Repository, https://github.com/HolyWu/VapourSynth-EdgeMasks
Project-URL: Issues, https://github.com/HolyWu/VapourSynth-EdgeMasks/issues
Requires-Python: >=3.12
Requires-Dist: VapourSynth>=82
Description-Content-Type: text/markdown

# EdgeMasks

Creates an edge mask using various operators.


## Parameters

```py
edgemasks.Tritical(vnode clip[, int[] planes=[0, 1, 2], float[] scale=1.0, int opt=0])
edgemasks.Cross(vnode clip[, int[] planes=[0, 1, 2], float[] scale=1.0, int opt=0])
edgemasks.Prewitt(vnode clip[, int[] planes=[0, 1, 2], float[] scale=1.0, int opt=0])
edgemasks.Sobel(vnode clip[, int[] planes=[0, 1, 2], float[] scale=1.0, int opt=0])
edgemasks.Scharr(vnode clip[, int[] planes=[0, 1, 2], float[] scale=1.0, int opt=0])
edgemasks.RScharr(vnode clip[, int[] planes=[0, 1, 2], float[] scale=1.0, int opt=0])
edgemasks.Kroon(vnode clip[, int[] planes=[0, 1, 2], float[] scale=1.0, int opt=0])
edgemasks.Robinson3(vnode clip[, int[] planes=[0, 1, 2], float[] scale=1.0, int opt=0])
edgemasks.Robinson5(vnode clip[, int[] planes=[0, 1, 2], float[] scale=1.0, int opt=0])
edgemasks.Kirsch(vnode clip[, int[] planes=[0, 1, 2], float[] scale=1.0, int opt=0])
edgemasks.ExPrewitt(vnode clip[, int[] planes=[0, 1, 2], float[] scale=1.0, int opt=0])
edgemasks.ExSobel(vnode clip[, int[] planes=[0, 1, 2], float[] scale=1.0, int opt=0])
edgemasks.FDoG(vnode clip[, int[] planes=[0, 1, 2], float[] scale=1.0, int opt=0])
edgemasks.ExKirsch(vnode clip[, int[] planes=[0, 1, 2], float[] scale=1.0, int opt=0])
```

- clip: Clip to process. 8-16 bit integer and 32 bit float with constant format and dimensions are supported. A GPU resident clip is filtered on the Vulkan device and stays there, and may also be 16 bit float. The output frames will have `_Range` set to 1 (full range).

- planes: Specifies which planes will be processed. Any unprocessed planes will be simply copied.

- scale: Multiplies all pixels by `scale` before outputting. This can be used to increase or decrease the intensity of edges in the output. Can be specified for each plane individually. When fewer values than planes are given, the last value is reused for the remaining planes.

- opt: Specifies which cpu optimizations to use. Values 2-4 raise an error if the CPU does not support the instruction set to use, which is always the case on platforms other than x86-64. A GPU resident clip ignores it, though it must still be one of the values below.
  - 0 = auto detect
  - 1 = use c
  - 2 = use sse4.2
  - 3 = use avx2
  - 4 = use avx512, or avx2 if VapourSynth aligns frame strides to less than 64 bytes


## GPU

A GPU resident clip needs VapourSynth's Vulkan support, that is a device and driver with Vulkan 1.4. 16 bit float is filtered in half precision, which additionally needs the device's `shaderFloat16` feature.


## Installation

```
pip install -U vapoursynth-edgemasks
```
