Raw Light Simulation (.rawls) reader and converter

Jérôme BUISINE 003251dfc2 Update of project description and add CMakeLists.txt 5 年之前
rawls 003251dfc2 Update of project description and add CMakeLists.txt 5 年之前
.gitignore 003251dfc2 Update of project description and add CMakeLists.txt 5 年之前
CMakeLists.txt 003251dfc2 Update of project description and add CMakeLists.txt 5 年之前
README.md 003251dfc2 Update of project description and add CMakeLists.txt 5 年之前

README.md

RAWLS reader

Description

Can read and flip horizontally a .rawls image. Can read and convert .rawls generated syntehsis image format into .ppm or .png.

.rawls store all pixels values as float and keeps also information about generated image (renderer used).

.rawls contains 3 blocks and specific lines information within each block:

  • IHDR:
    • First line: next information line size into byte
    • Second line: {width} {height} {nbChannels}
  • COMMENTS
    • All lines: information from the renderer as comment
  • DATA
    • First line: data block size
    • Next lines: all pixels values as byte code at each line

How it works ?

mkdir build
cd build && cmake ..
make 

Convert the .rawls image format into .ppm

./rawls/rawls_reader --image ../path/to/image.rawls_20 --outfile image.ppm