Skip to main content

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 clipa into the mask in clipb. This is an equivalent of the Avisynth function mt_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 clipa and clipb and generates another bi-level mask clip. Both clipa and clipb must 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 from clipa. The argument planes controls which planes to process, with the default being all. Any unprocessed planes will be copied from the corresponding plane in clipa.

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vapoursynth_hysteresis-1.2.0.tar.gz (15.5 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

vapoursynth_hysteresis-1.2.0-py3-none-win_amd64.whl (195.1 kB view details)

Uploaded Python 3Windows x86-64

vapoursynth_hysteresis-1.2.0-py3-none-manylinux_2_28_x86_64.whl (510.5 kB view details)

Uploaded Python 3manylinux: glibc 2.28+ x86-64

vapoursynth_hysteresis-1.2.0-py3-none-macosx_13_0_arm64.whl (157.8 kB view details)

Uploaded Python 3macOS 13.0+ ARM64

File details

Details for the file vapoursynth_hysteresis-1.2.0.tar.gz.

File metadata

  • Download URL: vapoursynth_hysteresis-1.2.0.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for vapoursynth_hysteresis-1.2.0.tar.gz
Algorithm Hash digest
SHA256 30ba569f9a91a8e6f5fdfbd3c47324f0fdd124acc563f012d96ff92b76606e5b
MD5 6eb81354ef6139d51e96d09331cb9ac0
BLAKE2b-256 de91a158c205234b2ab0b152abc565b0a2e9e9de20716734be976542035ab4fd

See more details on using hashes here.

Provenance

The following attestation bundles were made for vapoursynth_hysteresis-1.2.0.tar.gz:

Publisher: publish.yml on sgt0/vapoursynth-hysteresis

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vapoursynth_hysteresis-1.2.0-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for vapoursynth_hysteresis-1.2.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 b070d2165cd491be927986408d57c17de6c10ce2aca6cb3dd687b19e1059d5b1
MD5 55abe2b82a2d681d3f1e68fc0248abc0
BLAKE2b-256 4c2cdabfb141f54b658cc4c445fe46954339db1703dffcd7fc5e410530948ebb

See more details on using hashes here.

Provenance

The following attestation bundles were made for vapoursynth_hysteresis-1.2.0-py3-none-win_amd64.whl:

Publisher: publish.yml on sgt0/vapoursynth-hysteresis

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vapoursynth_hysteresis-1.2.0-py3-none-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for vapoursynth_hysteresis-1.2.0-py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2dbf46ee795640ed9e0e29ceb5202c387e59a7c43d81b3e40b8b50a7305ee389
MD5 323bb7c150e1e7af5113fed75a34290d
BLAKE2b-256 e3d823411a593a328d29baab68611bd5b305ed9b7f2d0d3222f653d95d0ef6f4

See more details on using hashes here.

Provenance

The following attestation bundles were made for vapoursynth_hysteresis-1.2.0-py3-none-manylinux_2_28_x86_64.whl:

Publisher: publish.yml on sgt0/vapoursynth-hysteresis

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vapoursynth_hysteresis-1.2.0-py3-none-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for vapoursynth_hysteresis-1.2.0-py3-none-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 d4b81667609830d35c46253395e4f95598c10e1cf5a754df49220d9b10e0e7b7
MD5 90b064b6ba2c63e6b59917d972f7656e
BLAKE2b-256 1d6d3053dc108306f5cac5487614e57c0a97766f0b0676a6232c3475c46eb580

See more details on using hashes here.

Provenance

The following attestation bundles were made for vapoursynth_hysteresis-1.2.0-py3-none-macosx_13_0_arm64.whl:

Publisher: publish.yml on sgt0/vapoursynth-hysteresis

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

1.2.0 This release

4 files

1.1.3

5 files

1.1.2

5 files

1.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page