Raw Light Simulation (.rawls) reader and converter

Jérôme BUISINE 6943e4204c Merge branch 'release/v1.0.0' 3 months ago
lodepng 94b617b882 Use of sub module and add of usefull function into rawls library 6 months ago
main 5f75f0aefc add run script for merging 5 months ago
rawls 4f43bdef0b Add of median fusion possibility 5 months ago
run c4c881d070 update bash scripts 3 months ago
utils 5f75f0aefc add run script for merging 5 months ago
.gitignore 003251dfc2 Update of project description and add CMakeLists.txt 6 months ago
CMakeLists.txt e5b83e12c8 Add of bash script and update flip helper program 6 months ago
README.md 67d75a1307 Add .rawls save and comments extraction 6 months ago


RAWLS reader


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}
    • 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 ..


Convert the .rawls image format into .ppm

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

Merge .rawls images samples

./main/rawls_merge --folder ../path/to/images --samples 100 --random 0 --outfile image.png