Hysteresis filter as a VapourSynth plugin.
Project description
vapoursynth-hysteresis
Hysteresis filter as a VapourSynth plugin, with the same API as
misc.Hysteresis() from vs-miscfilters-obsolete.
Description from vs-miscfilters-obsolete:
Grows the mask in
clipainto the mask inclipb. This is an equivalent of the Avisynth functionmt_hysteresis. Note that both clips are are expected to be in the typical mask range which means that all planes have to be in the 0-1 range for floating point formats.Specifically, Hysteresis takes two bi-level masks
clipaandclipband generates another bi-level mask clip. Bothclipaandclipbmust have the same dimensions and format, and the output clip will also have that format.If we treat the planes of the clips as representing 8-neighbourhood undirected 2D grid graphs, for each of the connected components in
clipb, the whole component is copied to the output plane if and only if one of its pixels is also marked in the corresponding plane fromclipa. The argumentplanescontrols which planes to process, with the default being all. Any unprocessed planes will be copied from the corresponding plane inclipa.
Install
Via vsrepo:
vsrepo install hysteresis
Or manually on Windows: download a release from the Releases page and unzip
hysteresis.dll into a plugins directory.
API
hysteresis.Hysteresis(
clipa: vs.VideoNode,
clipb: vs.VideoNode,
planes: list[int] = [0, 1, 2]
)
Build
Rust v1.91.0-nightly and cargo may be used to build the project. Older versions will likely work fine but they aren't explicitly supported.
$ git clone https://github.com/sgt0/vapoursynth-hysteresis.git
$ cd vapoursynth-hysteresis
# Debug build.
$ cargo build
# Release (optimized) build.
$ cargo build --release
# Release build optimized for the host CPU.
$ RUSTFLAGS="-C target-cpu=native" cargo build --release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vapoursynth_hysteresis-1.1.3.tar.gz.
File metadata
- Download URL: vapoursynth_hysteresis-1.1.3.tar.gz
- Upload date:
- Size: 15.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f5a1d2a64eb23324f1f28b8bccf3910d1fd248657bdd57f8f1d1554850627eaf
|
|
| MD5 |
f986424cf72d518710910cf2ff6444bd
|
|
| BLAKE2b-256 |
8c94a695c807c23845158bf610ee01c259a1c88d534afa091195cedf98e1128c
|
Provenance
The following attestation bundles were made for vapoursynth_hysteresis-1.1.3.tar.gz:
Publisher:
publish.yml on sgt0/vapoursynth-hysteresis
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vapoursynth_hysteresis-1.1.3.tar.gz -
Subject digest:
f5a1d2a64eb23324f1f28b8bccf3910d1fd248657bdd57f8f1d1554850627eaf - Sigstore transparency entry: 1281057599
- Sigstore integration time:
-
Permalink:
sgt0/vapoursynth-hysteresis@57bc3e0523b87dfcdeec4a44ce27f76ccc924846 -
Branch / Tag:
refs/tags/v1.1.3 - Owner: https://github.com/sgt0
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@57bc3e0523b87dfcdeec4a44ce27f76ccc924846 -
Trigger Event:
release
-
Statement type:
File details
Details for the file vapoursynth_hysteresis-1.1.3-py3-none-win_amd64.whl.
File metadata
- Download URL: vapoursynth_hysteresis-1.1.3-py3-none-win_amd64.whl
- Upload date:
- Size: 189.3 kB
- Tags: Python 3, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2620e384b25d25d6ddc6a8ac8c56e86aae1b62985d52d19dd18e4818c417a3f
|
|
| MD5 |
94b4bd074fd76c1ce5ce6819cdf43a9b
|
|
| BLAKE2b-256 |
f568fd34bd5c1d8dbfddabdbdcca35aed95c2ec0f098ee91109b21045a8b0038
|
Provenance
The following attestation bundles were made for vapoursynth_hysteresis-1.1.3-py3-none-win_amd64.whl:
Publisher:
publish.yml on sgt0/vapoursynth-hysteresis
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vapoursynth_hysteresis-1.1.3-py3-none-win_amd64.whl -
Subject digest:
e2620e384b25d25d6ddc6a8ac8c56e86aae1b62985d52d19dd18e4818c417a3f - Sigstore transparency entry: 1281057611
- Sigstore integration time:
-
Permalink:
sgt0/vapoursynth-hysteresis@57bc3e0523b87dfcdeec4a44ce27f76ccc924846 -
Branch / Tag:
refs/tags/v1.1.3 - Owner: https://github.com/sgt0
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@57bc3e0523b87dfcdeec4a44ce27f76ccc924846 -
Trigger Event:
release
-
Statement type:
File details
Details for the file vapoursynth_hysteresis-1.1.3-py3-none-win32.whl.
File metadata
- Download URL: vapoursynth_hysteresis-1.1.3-py3-none-win32.whl
- Upload date:
- Size: 189.3 kB
- Tags: Python 3, Windows x86
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a14df00a0ae6855872bce8ca2a18ec07312ca272cfb40925b999f8db43f3271c
|
|
| MD5 |
24031ff044512bfed750f4c43e592406
|
|
| BLAKE2b-256 |
6897eccfa7c8c1fbf16d2e104e1402bf24ebc0b99436bd08f6d363b2088a22c8
|
Provenance
The following attestation bundles were made for vapoursynth_hysteresis-1.1.3-py3-none-win32.whl:
Publisher:
publish.yml on sgt0/vapoursynth-hysteresis
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vapoursynth_hysteresis-1.1.3-py3-none-win32.whl -
Subject digest:
a14df00a0ae6855872bce8ca2a18ec07312ca272cfb40925b999f8db43f3271c - Sigstore transparency entry: 1281057626
- Sigstore integration time:
-
Permalink:
sgt0/vapoursynth-hysteresis@57bc3e0523b87dfcdeec4a44ce27f76ccc924846 -
Branch / Tag:
refs/tags/v1.1.3 - Owner: https://github.com/sgt0
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@57bc3e0523b87dfcdeec4a44ce27f76ccc924846 -
Trigger Event:
release
-
Statement type:
File details
Details for the file vapoursynth_hysteresis-1.1.3-py3-none-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: vapoursynth_hysteresis-1.1.3-py3-none-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 513.0 kB
- Tags: Python 3, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
888fbc231e45cfd830a14cbca0fae1c6d06f6472b5a17efaab4c58374bb98e34
|
|
| MD5 |
0da9c95a1c8f35741543aa251a2bdcc7
|
|
| BLAKE2b-256 |
2b1a215ee5296e4fb8c7f641e8a81ec0647e1dd345915e496087e6034bbd047b
|
Provenance
The following attestation bundles were made for vapoursynth_hysteresis-1.1.3-py3-none-manylinux_2_28_x86_64.whl:
Publisher:
publish.yml on sgt0/vapoursynth-hysteresis
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vapoursynth_hysteresis-1.1.3-py3-none-manylinux_2_28_x86_64.whl -
Subject digest:
888fbc231e45cfd830a14cbca0fae1c6d06f6472b5a17efaab4c58374bb98e34 - Sigstore transparency entry: 1281057619
- Sigstore integration time:
-
Permalink:
sgt0/vapoursynth-hysteresis@57bc3e0523b87dfcdeec4a44ce27f76ccc924846 -
Branch / Tag:
refs/tags/v1.1.3 - Owner: https://github.com/sgt0
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@57bc3e0523b87dfcdeec4a44ce27f76ccc924846 -
Trigger Event:
release
-
Statement type:
File details
Details for the file vapoursynth_hysteresis-1.1.3-py3-none-macosx_11_0_arm64.whl.
File metadata
- Download URL: vapoursynth_hysteresis-1.1.3-py3-none-macosx_11_0_arm64.whl
- Upload date:
- Size: 159.0 kB
- Tags: Python 3, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
714086aae456dbb0b800c8b5c1bfb4105136e4840057df45be29f928d919d421
|
|
| MD5 |
cba4c527a6e221d024a5a2dfb8de235f
|
|
| BLAKE2b-256 |
341b9ff58fb02b7de0f3672fe821b3c1ee06ff8d575680216a5b5c4a8e02d3bf
|
Provenance
The following attestation bundles were made for vapoursynth_hysteresis-1.1.3-py3-none-macosx_11_0_arm64.whl:
Publisher:
publish.yml on sgt0/vapoursynth-hysteresis
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vapoursynth_hysteresis-1.1.3-py3-none-macosx_11_0_arm64.whl -
Subject digest:
714086aae456dbb0b800c8b5c1bfb4105136e4840057df45be29f928d919d421 - Sigstore transparency entry: 1281057603
- Sigstore integration time:
-
Permalink:
sgt0/vapoursynth-hysteresis@57bc3e0523b87dfcdeec4a44ce27f76ccc924846 -
Branch / Tag:
refs/tags/v1.1.3 - Owner: https://github.com/sgt0
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@57bc3e0523b87dfcdeec4a44ce27f76ccc924846 -
Trigger Event:
release
-
Statement type: