• Stars
    star
    1,092
  • Rank 42,434 (Top 0.9 %)
  • Language
    Python
  • License
    MIT License
  • Created almost 5 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Image Signal Processor

Open Image Signal Processor (openISP)

Introduction

Image Signal Processor (ISP) is an application processor to do digital image processing, specifically for conversion from RAW image (acquired from Imaging Sensors) to RGB/YUV image (to further processing or display).

Objectives

This project aims to provide an overview of ISP and stimulate the whole ISP pipeline and some tuning functions from hardware perspectives. The proposed ISP pipeline consists of following modules, dead pixel correction (DPC), black level compensation (BLC), lens shading correction (LSC), anti-aliasing noise filter (ANF), auto white balance gain control (AWB), color filter array interpolation (CFA), gamma correction (GC), color correction matrix (CCM), color space conversion (CSC), noise filter for luma and chroma (NF), edge enhancement (EE), false color suppression (FCS), hue/saturation/control (HSC) and brightness/contast control (BCC). The ISP pipeline architecture refers from [1], directly captured from book.

ISP Pipeline

Some advanced functions like wide/high dynamic range (W/HDR) and temporal/spatial noise filter (T/SNF) will be implemented in the future.

The new ISP pipeline is modified based on previous one to make the pipeline more reasonable and the ISP performance better.

ISP Pipeline2

  • Dead Pixel Correction
  • Black Level Compensation
  • Lens Shading Correction
  • Anti-aliasing Noise Filter
  • AWB Gain Control
  • Noise Reduction (Bayer Domain)
    • Luma Denoising
    • Chroma Denoising
  • Demosaicing
  • Gamma Correction
  • Color Correction Matrix
  • Color Space Conversion
  • Noise Filter for Luma/Chroma
    • Luma Noise Reduction
      • Bilateral Filtering
      • Non-local Means Denoising
    • Chroma Noise Reduction
  • Edge Enhancement
  • False Color Suppression
  • Hue/Saturation Control
  • Brightness/Contrast Control

References

[1] Park H.S. (2016) Architectural Analysis of a Baseline ISP Pipeline. In: Kyung CM. (eds) Theory and Applications of Smart Cameras. KAIST Research Series. Springer, Dordrecht.

File Structure

The openISP project tree structure is listed as follows.

openISP
โ”‚  .gitignore
โ”‚  isp_pipeline.py
โ”‚  LICENSE
โ”‚  README.md
โ”‚
โ”œโ”€config
โ”‚      config.csv
โ”‚
โ”œโ”€docs
โ”‚      openISP.md
โ”‚
โ”œโ”€hardware
โ”œโ”€images
โ”‚      isp_pipeline.png
โ”‚      isp_pipeline2.png
โ”‚
โ”œโ”€model
โ”‚     awb.py
โ”‚     bcc.py
โ”‚     blc.py
โ”‚     bnf.py
โ”‚     ccm.py
โ”‚     cfa.py
โ”‚     cnf.py
โ”‚     csc.py
โ”‚     dpc.py
โ”‚     eeh.py
โ”‚     fcs.py
โ”‚     gac.py
โ”‚     hsc.py
โ”‚     nlm.py
โ”‚
โ”œโ”€raw
โ”‚      test.RAW
โ”‚
โ””โ”€tuning

config contains config.csv which has all ISP configurable parameters.

docs contains the documentation of ISP, including algorithms introduction and other information.

hardware is remained for the hardware implementation (Verilog/Chisel) of ISP algorithms and SoC.

images has all images in *.md files.

model is the python implementation of ISP algorithms.

raw has *.RAW images of 10/12 bits.

tuning is remained for ISP tuning tool, which is in progress.

Usage

After cloning the repo, just

python isp_pipeline.py

It loads test.raw image and config.csv and executes the algorithms step by step.

You can adjust the ISP pipeline as you want. However, algorithms like DPC, BLC, LSC, ANF, AWB, CFA, only work in Bayer domain. GC, CCM, CSC work in RGB domain. Others work in YUV domain. It's not saying like NF only work in YUV domain. Just in openISP case, it works in YUV domain. Noise filtering could be done in Bayer/RGB/YUV domain and in both temporal/spatial domain.

License

MIT @Crux