Complete this task as part of your GSoC 2018 application.
This challenge is mandatory if you apply for T720, T724
The goal is to build a small application which decodes a buffer with raw image data from the AXIOM Beta and converts it using LodePNG library, which has to be built and extended prior, to create view-able PNG image.
Raw data (4096x3072, 12bit): http://files.apertus.org/AXIOM-Beta/snapshots/portraits/portrait-gainx2-offset2047-20ms-02.raw12
# Create simple C/C++ console application
# compile and import LodePNG (http://lodev.org/lodepng/) library
# Read image data from RAW12 file into a buffer
# Add routines to convert from 12bit to 16bit data and convert the every pixel from the image data
# Convert 16bit data to 8bit??? Maybe 16bit output would be also fine, still creating a test to verify our approach
# Output PNG that can be viewed
- RAW12: https://wiki.apertus.org/index.php/RAW12
- 12bit conversion: https://stackoverflow.com/questions/33768206/convert-2-bytes-into-12-bit-number
- 12bit conversion (SIMD not required): https://stackoverflow.com/questions/15443868/fastest-way-to-convert-12bit-image-to-16bit-image