Raw Light Simulation (.rawls) reader and converter

Jérôme BUISINE 08ce634d76 Merge branch 'release/v1.1.9' il y a 3 ans
lodepng 94b617b882 Use of sub module and add of usefull function into rawls library il y a 4 ans
main 0bd8163d1e Fix unused script in compilation il y a 3 ans
rawls 94d2141c18 convert all rawls file il y a 3 ans
run c9f384d67d Rearange scripts folder il y a 3 ans
utils 0bd8163d1e Fix unused script in compilation il y a 3 ans
.gitignore 003251dfc2 Update of project description and add CMakeLists.txt il y a 4 ans
CMakeLists.txt e5b83e12c8 Add of bash script and update flip helper program il y a 4 ans
README.md c9f384d67d Rearange scripts folder il y a 3 ans

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_convert --image ../path/to/image.rawls --outfile image.ppm

Merge .rawls images samples

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