Skip to content

Hight quility bayer interpolation and scaler in raw domain

License

Notifications You must be signed in to change notification settings

eric612/BayerToRGB

Repository files navigation

RawScaler

This is an image processing demo project , which can do raw data interpolation and also scaling.

2018 Avisonic

Feature

Build Status

  1. Hight quility bayer interpolation and scaler in raw domain
  2. Can be build in pure C++ project (No dependence library)
  3. Cmake build (support linux and windows platform)

Performance

Compare result (right bottom) with website

ip.png

Original image and raw


Original image (Top) and convert it to raw data (Bottom)

Raw to rgb (our interpolation)

alt tag

Raw to rgb (opencv interpolation)

alt tag

Processing Flow

alt tag

Windows Setup

Requirements

  • Visual Studio 2013 or 2015
  • CMake 3.4 or higher (Visual Studio and Ninja generators are supported)

Optional Dependencies

  • OpenCV

Building RawScaler (Windows)

> git clone https://gitlab.com/eric.liu/RawScaler.git
> cd $RawScaler_root/script
> build_win.cmd
> cd $RawScaler_root
> mkdir out

Configuring RawScaler (Windows)

> Edit build_win.cmd
> Set DOpenCV_Enable ON/OFF 

Linux Setup

Building RawScaler (Linux)

> git clone https://gitlab.com/eric.liu/RawScaler.git
> cd $RawScaler_root
> sh build.sh
> mkdir out

Configuring RawScaler

> Edit build_win.sh
> Set DOpenCV_Enable ON/OFF 

OpenCV_Enable=ON

  1. If opencv enable , the resullt image will show on GUI

OpenCV_Enable=OFF

  1. The input file muse be bitmap file (.bmp)

Demo

Windows Run

> cd $RawScaler_root
> script\build\Release\RawScaler.exe data\kodim19.bmp 300 300

RawScaler.exe file output-width output-height

  1. arg can be null , the output file are stored in $RawScaler_root\out

Linux Run

> cd $RawScaler_root
> ./RawScaler data/kodim19.bmp 300 300

About

Hight quility bayer interpolation and scaler in raw domain

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published