BradLarson / GPUImage3

GPUImage 3 is a BSD-licensed Swift framework for GPU-accelerated video and image processing using Metal.
BSD 3-Clause "New" or "Revised" License
2.68k stars 330 forks source link

Parse Adobe .cube file into data #110

Open seadiem opened 3 years ago

seadiem commented 3 years ago

https://wwwimages2.adobe.com/content/dam/acom/en/products/speedgrade/cc/pdfs/cube-lut-specification-1.0.pdf Now library supports only png luts lookupImage = PictureInput(imageName:"lookup_miss_etikate.png") File Example

TITLE "Generated by 3D LUT Creator (c) Oleg Sharonov" LUT_3D_SIZE 25

0.0000 0.0000 0.0008 0.0298 0.0000 0.0047 0.0646 0.0000 0.0097 0.1022 0.0000 0.0156 0.1375 0.0000 0.0212 0.1718 0.0000 0.0271 0.2012 0.0000 0.0295 0.2320 0.0000 0.0331 0.2668 0.0000 0.0382 0.3038 0.0000 0.0451 0.3438 0.0000 0.0549 0.3869 0.0000 0.0673 0.4322 0.0000 0.0808 0.4794 0.0000 0.0952 0.5223 0.0016 0.1084 0.5623 0.0238 0.1218 0.6043 0.0558 0.1379 0.6488 0.0902 0.1579 0.6915 0.1232 0.1807 0.7289 0.1538 0.2018 0.7631 0.1834 0.2235 0.7945 0.2187 0.2459 0.8225 0.2501 0.2679 0.8411 0.2716 0.2784 0.8483 0.2806 0.2849 0.0000 0.0235 0.0000 0.0236 0.0242 0.0035 0.0629 0.0154 0.0094 0.1005 0.0066 0.0153 0.1396 0.0000 0.0216 0.1737 0.0000 0.0250 0.2030 0.0000 0.0250 0.2338 0.0000 0.0262 0.2672 0.0000 0.0333 0.3041 0.0000 0.0405 0.3441 0.0000 0.0505 0.3873 0.0000 0.0635 0.4325 0.0000 0.0777