https://github.com/ichlubna/lkgcompression
Experimental compression of the data for Looking Glass factory 3D display.
https://github.com/ichlubna/lkgcompression
3d-display compression light-field looking-glass lookingglass
Last synced: 3 months ago
JSON representation
Experimental compression of the data for Looking Glass factory 3D display.
- Host: GitHub
- URL: https://github.com/ichlubna/lkgcompression
- Owner: ichlubna
- License: mit
- Created: 2024-10-04T17:54:06.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-28T16:12:28.000Z (4 months ago)
- Last Synced: 2025-05-28T17:27:48.241Z (4 months ago)
- Topics: 3d-display, compression, light-field, looking-glass, lookingglass
- Language: Shell
- Homepage:
- Size: 6.91 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Citation: CITATION.cff
Awesome Lists containing this project
README
# LKG compression scripts
./compress.sh ./dataset/scene videoQualityParameter jpegQualityThreshold outputPath focusDepthValue
Tests the dof compression differences.
The last argument is optional and if not supplied, automatic detection is used.
./compressSplit.sh ./dataset/scene
Creates and tests the split vs full compression. Discontinued.
./blendViews.sh inputViewsPath outputViewsPath
Blends the views as in the display and produces the output in a directory.
./cameraControl.sh shoot
Controls the camera remotely.
./compareAllPhotos.sh inputPath
Compares the captured photos by the camera, expects the first 7 files to be the distorted, 8th the reference, and 9th the xmp Darktable config file.
./comparePhotos.sh firstFile secondFile xmpFile
Compares the captured photo pair.
./dof.sh dataset/scene
Creates the dof views into the ./fullDof folder.
./measureAllDataset.sh dataset/scene
Measures the compression efficiency for the scenes.
./measureMetrics.sh dataset/scene/full outputReport outputReportBlended decompressedViewsDir
Measures the compression for one scene.
./measureQuality.sh firstFile secondFile
Computes the quality metrics for the distorted and reference file.
./testingOnDisplay.sh dataset/scene/decompressed
Iterates over decompressed views, tests them on the display and produces the photos.
./generateAllCompressedQuilts.sh ./dataset/ ./decompressedQuilts/
Creates quilts from all decompressed images
./perceptualMeasurement.sh ./decompressedQuilts/ ./dirWithFilesOnTheDisplay
Runs the user study with random order of the quilts and updating the files on the display. The directory with the files will contain two images which the user can view and change in any image viewer.
./measureSSIMNative.sh ./decompressedQuilts/ ./report.csv
Measures the quality of the decompressed quilts in the LKG native format.
./saliencyFocus.sh ./dataset/scene/full
Estimates the focusing depth using saliency maps.
./getDepthLimits.sh ./dataset/scene/depth/xxx.hdr x,y
Gets maximal and minimal depth in a map and a depth at given coordinates.
./getDepthAt.sh ./dataset/scene/full x,y ./depths
Gets depth at the given coordinate from the merged depth maps of the dataset. The last parameter can be empty and the maps would be estimated.
Scenes in the dataset directory are generated by renderer.blend.
Testing quilt with view numbers can be generated using testQuiltGenerator.blend.
displaySimulator.blend is a simple simulator of a 3D display.
QuiltToNativeDisplaySimulatorKernel.cl is a kernel used to convert quilts to the display simulator using:
https://github.com/ichlubna/quiltToNative
Can be run as:
cd quiltToNative/build
cp ../../QuiltToNativeDisplaySimulatorKernel.cl ./kernel.cl; ./QuiltToNative -i /dataset/ -o ./result -cols 8 -rows 6 -width 19200 -height 2560
displaySimulation.py is a script that can be run in Blender to produce synthetic simulated views.If you find this repository useful, please cite our work where you can also read more information about the method:
```
@article{chlubna2026,
title = {Focus-aware compression and image quality metric for 3D displays},
journal = {Signal Processing},
volume = {238},
pages = {110091},
year = {2026},
issn = {0165-1684},
doi = {10.1016/j.sigpro.2025.110091},
author = {T. Chlubna and M. Vlnas and D. Bařina and T. Milet and P. Zemčík}
}
```