Skip to content

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

Notifications You must be signed in to change notification settings

iamsiddhantsahu/RAW12toPPM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published