Raw Light Simulation (.rawls) reader and converter

Jérôme BUISINE 31605b7646 Merge branch 'release/v1.1.4' into master 4 лет назад
lodepng 94b617b882 Use of sub module and add of usefull function into rawls library 4 лет назад
main f848063433 change way of computing skewness and kurtosis 4 лет назад
rawls a164418e72 Fix issue when reading rawls data in v2 4 лет назад
run 63ccc1c9e5 Enable restart if already generated 4 лет назад
utils a868d485cc add of rawls version converter 4 лет назад
.gitignore 003251dfc2 Update of project description and add CMakeLists.txt 4 лет назад
CMakeLists.txt e5b83e12c8 Add of bash script and update flip helper program 4 лет назад
README.md 67d75a1307 Add .rawls save and comments extraction 4 лет назад

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 

Examples:

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