Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
ea61970
to revert
awawa-dev Feb 4, 2024
c85ef1a
LUT rework
awawa-dev Feb 11, 2024
35c3d0b
Test images creator
awawa-dev Aug 12, 2024
1ab1a2c
Test video
awawa-dev Aug 13, 2024
a07a4cf
Use vectors
awawa-dev Aug 19, 2024
77826cc
Extract classes & namespaces
awawa-dev Aug 21, 2024
19503b0
Add CapturedColor
awawa-dev Aug 22, 2024
d005d7d
Optimize board creator
awawa-dev Aug 22, 2024
09e88aa
Make board verifier work
awawa-dev Aug 22, 2024
86dd611
Read CRC from the test board
awawa-dev Aug 22, 2024
97ec1ca
Parse and verify colors of all test boards
awawa-dev Aug 22, 2024
a026103
Print error stats
awawa-dev Aug 22, 2024
c573efd
Correction
awawa-dev Aug 22, 2024
17f0527
Calibration for new boards. 17*17*17 YUV samples.
awawa-dev Aug 23, 2024
db9bc92
Parse text HDR LUT to binary format
awawa-dev Aug 26, 2024
45b169a
Add save raw image
awawa-dev Aug 28, 2024
f2445c6
Const correction
awawa-dev Aug 28, 2024
ce88768
Add detection of bt.2020 gamma in the input data
awawa-dev Aug 30, 2024
71d4f13
Add more colorspace math
awawa-dev Aug 30, 2024
34b4aa7
More math
awawa-dev Aug 30, 2024
3b2a260
Update LutCalibrator.cpp
awawa-dev Aug 31, 2024
4fff3a6
Verify source: only NV12/YUYV/MJPEG source are supported for the cali…
awawa-dev Aug 31, 2024
b766491
Add precise scanner
awawa-dev Sep 2, 2024
c873b87
Testing more conditions and deviation of YUV coefs
awawa-dev Sep 3, 2024
90ee566
Optimize matrix multiplication
awawa-dev Sep 4, 2024
32f133a
Extract methods
awawa-dev Sep 4, 2024
ae75b4a
Optimize YUV coef matrix creation
awawa-dev Sep 4, 2024
7f84ef6
Implemented LUT saving
awawa-dev Sep 4, 2024
6fd5447
Add support for Flatbuffers NV12 calibration
awawa-dev Sep 4, 2024
0106566
Save captured YUV colors in HyperHDR home folder
awawa-dev Sep 4, 2024
60f4673
HDR10 calibration is working again also using video test files
awawa-dev Sep 4, 2024
9999d18
Fix errors (1)
awawa-dev Sep 4, 2024
09c499d
Test C++17
awawa-dev Sep 4, 2024
4de0544
Fix errors (2)
awawa-dev Sep 4, 2024
4e82cc8
HDR10 calibrator: fix errors
awawa-dev Sep 4, 2024
1b0020a
HDR10 calibration is working again also using video test files
awawa-dev Sep 4, 2024
5c95eac
HDR10 calibration is working again also using video test files
awawa-dev Sep 4, 2024
7130cd0
Added a new nice web wizard for LUT calibration
awawa-dev Sep 5, 2024
0864fe9
Added BT.2100 HLG support
awawa-dev Sep 8, 2024
37bd1d0
Added BT.2100 HLG support (2)
awawa-dev Sep 8, 2024
edd58ff
Added BT.2100 HLG support (3)
awawa-dev Sep 8, 2024
bbb08e3
Added BT.2100 HLG support (4)
awawa-dev Sep 8, 2024
280e0b8
Verify if BT.2100 HLG OOTF is present
awawa-dev Sep 9, 2024
f0c2499
More detailed scan
awawa-dev Sep 9, 2024
205ebe0
Faster HLG OOTF when disabled
awawa-dev Sep 10, 2024
96544ac
More precise calculation
awawa-dev Sep 12, 2024
6c28e42
Fix calibration for 1280x720 capturing setting
awawa-dev Sep 12, 2024
b1c3fbb
Support for SDR calibration
awawa-dev Sep 13, 2024
7832376
More precise color capture saving/loading
awawa-dev Sep 15, 2024
a42d5d9
Add support for SDR (BT2020 in SRGB) calibration
awawa-dev Sep 17, 2024
8f48dce
Grabber benchmark support for flatbuffers
awawa-dev Sep 21, 2024
6d37f16
Add quarter of frame mode for flatbuffers
awawa-dev Sep 23, 2024
fde0461
Improvements
awawa-dev Sep 25, 2024
3acbc6e
Fix
awawa-dev Oct 2, 2024
4cb189a
Important calibration fix and stronger noise resistance
awawa-dev Oct 3, 2024
cd18e3c
Wider search
awawa-dev Oct 5, 2024
8b87274
Two stage calibration
awawa-dev Oct 6, 2024
bebe0f5
Refactoring
awawa-dev Oct 6, 2024
74ddbe4
Improvements
awawa-dev Oct 7, 2024
33a3391
Focus on yellow,scan more vertexes,error may go up
awawa-dev Oct 8, 2024
f268004
Improvements
awawa-dev Oct 8, 2024
8d6d2a1
Improvements
awawa-dev Oct 8, 2024
882b33f
Multi-threading support for LUT calibration
awawa-dev Oct 10, 2024
a7262bc
Multi-threading support for LUT creator
awawa-dev Oct 10, 2024
b218007
Add 'detailed calibration' option
awawa-dev Oct 10, 2024
0d0d3c6
Add LCH color correction
awawa-dev Oct 15, 2024
c5832c2
Run calibrator on separate thread (nonblocking UI)
awawa-dev Oct 16, 2024
d4e5682
Add PQ in sRGB linear signal detection
awawa-dev Oct 16, 2024
838663d
Pause grabber/flatbuffers while calibrating LUT
awawa-dev Oct 17, 2024
542afda
Change rounding for backlight
awawa-dev Oct 21, 2024
9e75efe
Fix serial port discovery in UI
awawa-dev Oct 23, 2024
a74b418
Added 3'th LCH layer, increased number of vertices, more CPU needed
awawa-dev Oct 25, 2024
4cb7d44
Add more test vertexes (959), change to square errors
awawa-dev Oct 26, 2024
fc59a9f
Add more brown color vertexes
awawa-dev Oct 26, 2024
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Verify if BT.2100 HLG OOTF is present
  • Loading branch information
awawa-dev committed Sep 9, 2024
commit 280e0b8e31dcd9ab9627c396e07bc4e5de5261d6
10 changes: 8 additions & 2 deletions sources/lut-calibrator/ColorSpace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,10 @@ namespace ColorSpaceMath
double3 coefs{ 0.2627, 0.6780, 0.0593 };
double luma = linalg::dot(input, coefs);
luma = linalg::pow(luma, gamma - 1.0);
return input * luma;
if (gamma != 0)
return input * luma;
else
return input;
}

double3 OOTF_HLG(double _input, double gamma)
Expand All @@ -237,7 +240,10 @@ namespace ColorSpaceMath
double3 coefs{ 0.2627, 0.6780, 0.0593 };
double luma = linalg::dot(input, coefs);
luma = linalg::pow(luma, gamma - 1.0);
return input * luma;
if (gamma != 0)
return input * luma;
else
return input;
}

double3 from_bt2020_to_XYZ(double3 x)
Expand Down