Git Product home page Git Product logo

median_filter's Introduction

median_filter

Author

Bartłomiej Chwiłkowski (chwilko) github

license

MIT license

Table of contents

General info

Package implements Producer - Consumer design pattern with a small extension. This extension is Broker.

Producer produces data for the queue; Consumer consumes data from the queue; Broker uses data from the first queue to add to the second queue.

Moreover, package implements a special case of Broker (MedianFilter) nad a special case of Consumer (Recorder).

MedianFilter

MedianFilter takes an array, resize it and applies median filter.

Recorder

Recorder saves arrays as a pictures.

Installation

download

git clone https://github.com/chwilko/median_filter.git

setup

using poetry

poetry shell
poetry install

or using pip

pip install --requirement requirement.txt

run

python3 main.py

How to use

example of usage

counter = set_n_steps(n_steps)
queue0: Queue = Queue()
queue1: Queue = Queue()

producer = Producer(queue0, lambda: (next(counter), producer_foo), interval)
broker = Broker(queue0, queue1, broker_foo)
consumer = Consumer(queue1, consumer_foo)

producer.start()
broker.start()
consumer.start()

producer.join()
broker.join()
consumer.join()

you will see more in the file main.py

Package

  • median_filter
    • producer
      • Producer
    • broker
      • Broker
    • consumer
      • Consumer
    • worker
      • Worker
    • median_filter
      • MedianFilter
    • recorder
      • Recorder
    • common
      • set_n_steps

median_filter's People

Contributors

chwilko 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.