Skip to content

Latest commit

 

History

History
36 lines (31 loc) · 1.36 KB

README.md

File metadata and controls

36 lines (31 loc) · 1.36 KB

RAW12toPPM

This repository extracts 4 channels (red, green1, green2 and blue) from a RAW12 image and saves them in PPM format.

To Do List

  • Separate 4 channels (red, green1, green2 and blue)
  • Output Intensity values of 5x5 pixels
  • Save the 4 channels separately without the use of any external library
  • Debayer the CFA
  • Save the debayered image without the use of any external library
  • Save the debayered image as BMP file, without the use of any external library
  • Use CMake to build the CPP program
  • Abide by C/CPP coding guidlines and project structuring (https://gist.github.com/lefticus/10191322)
  • Load a part of program as dynamic library (.so file)
  • Use non linear curve for 12 bits to 8bits conversion

Build Instructions

mkdir result
mkdir build
cd build
cmake ..
make
./run

For windows with MSVC compiler

cmake -DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=TRUE ..

Debayering Algorithm Comparison

Bilinear Nearest Neighbour

Notice the subtle aliasing effect for Nearest Neighbour near the horizontal lines of steel rod