BayerToRGB
BayerToRGB copied to clipboard
Hight quility bayer interpolation and scaler in raw domain
RawScaler
This is an image processing demo project , which can do raw data interpolation and also scaling.
2018 Avisonic
Feature
- Hight quility bayer interpolation and scaler in raw domain
- Can be build in pure C++ project (No dependence library)
- Cmake build (support linux and windows platform)
Performance
Compare result (right bottom) with website

Original image and raw
Original image (Top) and convert it to raw data (Bottom)
Raw to rgb (our interpolation)

Raw to rgb (opencv interpolation)

Processing Flow

Windows Setup
Requirements
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
- If opencv enable , the resullt image will show on GUI
OpenCV_Enable=OFF
- 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
- arg can be null , the output file are stored in $RawScaler_root\out
Linux Run
> cd $RawScaler_root
> ./RawScaler data/kodim19.bmp 300 300