Giter Site home page Giter Site logo

fxh707 / bayertorgb Goto Github PK

View Code? Open in Web Editor NEW

This project forked from eric612/bayertorgb

0.0 0.0 0.0 33.5 MB

Hight quility bayer interpolation and scaler in raw domain

License: GNU General Public License v3.0

Shell 0.01% C++ 92.50% C 6.08% Objective-C 0.20% CMake 1.21% Batchfile 0.01%

bayertorgb's Introduction

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

bayertorgb's People

Contributors

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