Giter Site home page Giter Site logo

chisel-histogram's Introduction

Chisel Histogram

This project implements histogram equalization and histogram matching for single channel streaming videos.

Histogram Equalization

Histogram equalization adjusts the contrast of an image such that the entire color range is used evenly.

To accomplish this, first the histogram of the frame is extracted. The histogram is the numer of occurances of each color value. Using this histogram, each color value is mapped to a new value.

Architecture

The hardware implementation of histogram equalization is made up of 4 piplined stages:

  • Counting stage: This stage constructs the histogram.
  • Accumulation stage: This stage converts the histogram to non-normalized CDF (cummulative distribution function).
  • Map stage: This stage maps pixel values to new pixel values.
  • Empty stage: This stage empties the memory. Each stage works on an individual memory. Upon completion of a single frame, the memory ports are shifted around such that, the next stage uses the previous stage's memory.

Architecture

Usage

The available tests can be run using the following command:

sbt test

Note that this project uses sbt version 1.8.0. This can be overwritten for the tests with the following command:

sbt test sbt-version <VERSION>

The list of available tests is shown in the progress section below. The model will use this image produce a grayscale version and equalized version.

Progress

  • Histogram Equalization
    • Model
    • Model test
    • Hardware
      • Stages
      • Stage tests
      • Memory Controller
      • Memory Controller test
      • Top module
      • Top modle test
  • Histogram Matching
    • Model
    • Model test
    • Hardware
      • Stages
      • Stage tests
      • Memory Controller
      • Memory Controller test
      • Top module
      • Top modle test
      • ???

chisel-histogram's People

Contributors

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