Code Monkey home page Code Monkey logo

composite-filter's Introduction

composite filter

yet another composite filter, in Python

this filter encodes an input image to composite baseband according to BT.1700 (no blanking, no sync), and then decodes back to RGB.

PM5544 test pattern taken from Wikimedia Commons. SMPTE color bars test pattern taken from Wikimedia Commons.

Requirements

This script requires numpy for arrays and matrix math.

This script requires scipy.signal for signal processing.

This script requires PIL.Image for image file interactions.

This script requires matplotlib for graphs.

Usage

usage: composite_filter.py [-h] [-dbg] [-skp] [-nnv] [-pfd] [-prg] [-isf] [-irs] [-war] [-pic] [-rsm RESOLUTION_MULTIPLIER] input_image

yet another composite filter

positional arguments:
  input_image           input image

options:
  -h, --help            show this help message and exit
  -dbg, --debug         enable debug plot
  -skp, --skip-plot     skip plot
  -nnv, --neigbor-vertical
                        use nearest-neighbor scaling for vertical resolution
  -pfd, --prefilter-disable
                        disable image lowpassiing before encoding to composite
  -prg, --progressive   scale to 240 lines instead of 480
  -isf, --interlace-separate-frames
                        output one file per field
  -irs, --input-resolution-samplerate
                        use the image input's horizontal resolution as samplerate. minimum is 720 pixels
  -war, --wide-aspect-ratio
                        use wide aspect ratio for output
  -pic, --phase-invert-colorburst
                        invert phase of colorburst
  -rsm RESOLUTION_MULTIPLIER, --resolution-multiplier RESOLUTION_MULTIPLIER
                        multiply the samplerate by x. makes the image sharper at the cost of filtering time

version 0.0.2

License

This work is licensed under the MIT-0 license.

Copyright (C) Persune 2023.

Credits

Special thanks to:

  • NewRisingSun
  • lidnariq
  • Kagamiin
  • PinoBatch
  • LMP88959
  • Lockster and forple

Dedicated to yoey

This would have not been possible without their help!

composite-filter's People

Contributors

gumball2415 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.