Skip to content

Code challenge presented by 8i Ltd to debayer, and extract an image with associated cleanplate

Notifications You must be signed in to change notification settings

MrFriggles/8i-code-challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

8i Coding Challenge

Description

This program is a GUI that will take in a raw PNG bayered image, debayer that image and extract the foreground image based on a comparison with a 'clean plate' image.

Raw PNG bayered image:

bayered image

Debayered image:

debayered image

Foreground extracted image (tolerance at ~80%):

foreground image

How to build

In a directory of your choosing, extract the source code to a new directory:

unzip 8iCodeChallenge-master.zip

Create the ninja makefiles necessary to bulid the project using cmake:

mkdir build
cd build
cmake -G Ninja ../8iCodeChallenge-master

Build the program:

cmake --build . -- -v

Running

Simply call the 8i program in the commandline:

./8i

Todo

  • Image rotation
  • Image zoom
  • Make the GUI less awful looking...
  • More extensive error checking

Bugs

  • When an image is debayered and extracted the first time, the foreground will have a tolerance of 0... So a terrible foreground will be requested to be saved.
  • Perhaps needs to add some signal handling or a proper exit routine as the program segfaults on exit 🙃

About

Code challenge presented by 8i Ltd to debayer, and extract an image with associated cleanplate

Topics

Resources

Stars

Watchers

Forks