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 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
pip install vapoursynth-hysteresis
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
Metadata
Release files for vapoursynth-hysteresis 1.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| vapoursynth_hysteresis-1.3.0.tar.gz | 16.3 kB | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| vapoursynth_hysteresis-1.3.0-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details |
| vapoursynth_hysteresis-1.3.0-py3-none-manylinux_2_28_x86_64.whl | Python 3 | none | Linux glibc 2.28+ x86-64 | Details |
| vapoursynth_hysteresis-1.3.0-py3-none-macosx_13_0_arm64.whl | Python 3 | none | macOS 13.0+ ARM64 | Details |
Total release size: 874.6 kB
Release files / vapoursynth_hysteresis-1.3.0.tar.gz
| Download URL | vapoursynth_hysteresis-1.3.0.tar.gz |
|---|---|
| Size | 16.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
74276d910aee72e4f218b8787285cf03988818cc6f134dacfd9d38b4a5af1e3c
|
|
BLAKE2b-256 checksum How to use checksums |
ccb98a92bb8965196d348210212fe38880af87b5a476d3d484c102e86ad2e3cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.
Transparency logRelease files / vapoursynth_hysteresis-1.3.0-py3-none-win_amd64.whl
| Download URL | vapoursynth_hysteresis-1.3.0-py3-none-win_amd64.whl |
|---|---|
| Size | 196.8 kB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
d2b1db06218f2348d6435b5fb47a661b965771d91485029c6d9284b4714aece1
|
|
BLAKE2b-256 checksum How to use checksums |
fb36630d458de3d7be65ed1b47d60c3b6cefd2bfe4b13d7d6e7602d894945f72
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.
Transparency logRelease files / vapoursynth_hysteresis-1.3.0-py3-none-manylinux_2_28_x86_64.whl
| Download URL | vapoursynth_hysteresis-1.3.0-py3-none-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 502.6 kB |
| Tags | Linux glibc 2.28+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
8a557ec52927e520405cf318ce5823b69bd025f7b3ea0b01f8c5f5c97c7587e1
|
|
BLAKE2b-256 checksum How to use checksums |
1dff77df53ece1244f6604ef600e33542e7d51085067fad92eceb741b1e3cef9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.
Transparency logRelease files / vapoursynth_hysteresis-1.3.0-py3-none-macosx_13_0_arm64.whl
| Download URL | vapoursynth_hysteresis-1.3.0-py3-none-macosx_13_0_arm64.whl |
|---|---|
| Size | 158.8 kB |
| Tags | Python 3 macOS 13.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
72020c75f0d9df02c138313e7e6d4debc9e0a5f951c7e953693601630b5f6930
|
|
BLAKE2b-256 checksum How to use checksums |
7feebccb829f3c01dc040e520eabca2e798f068fc766093f985eab4fee6105e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.
Transparency log