You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples_tests/39.DenoiserTonemapper/CommandLineHandler.hpp
+55-30Lines changed: 55 additions & 30 deletions
Original file line number
Diff line number
Diff line change
@@ -12,9 +12,9 @@
12
12
#include"nbl/core/core.h"
13
13
#include"nbl/ext/MitsubaLoader/CMitsubaLoader.h"
14
14
15
-
#definePROPER_CMD_ARGUMENTS_AMOUNT14
16
-
#defineMANDATORY_CMD_ARGUMENTS_AMOUNT8
17
-
#defineOPTIONAL_CMD_ARGUMENTS_AMOUNT6
15
+
#definePROPER_CMD_ARGUMENTS_AMOUNT17
16
+
#defineMANDATORY_CMD_ARGUMENTS_AMOUNT12
17
+
#defineOPTIONAL_CMD_ARGUMENTS_AMOUNT5
18
18
#definePROPER_BATCH_FILE_ARGUMENTS_AMOUNT3
19
19
20
20
enum COMMAND_LINE_MODE
@@ -36,7 +36,9 @@ Mandatory parameters:
36
36
-CAMERA_TRANSFORM=mitsubaFilePath or val1,val2,val3,...,val9
37
37
-DENOISER_EXPOSURE_BIAS=value
38
38
-DENOISER_BLEND_FACTOR=value
39
-
-BLOOM_SCALE=theta
39
+
-BLOOM_PSF_FILE=psfFilePath
40
+
-BLOOM_RELATIVE_SCALE=value
41
+
-BLOOM_INTENSITY=value
40
42
-TONEMAPPER=tonemapper=keyValue,extraParameter
41
43
-OUTPUT=file.choosenextension
42
44
Optional Parameters:
@@ -45,7 +47,6 @@ Optional Parameters:
45
47
-COLOR_CHANNEL_NAME=colorChannelName
46
48
-ALBEDO_CHANNEL_NAME=albedoChannelName
47
49
-NORMAL_CHANNEL_NAME=normalChannelName
48
-
-BLOOM_PSF_FILE=psfFilePath
49
50
50
51
Note there mustn't be any space characters!
51
52
All files' (except the bloom kernel) resolutions must match!
@@ -73,9 +74,14 @@ you should use the Tonemapping Operator's Key Value.
73
74
74
75
DENOISER_BLEND_FACTOR: denoiser blend factor, 0.0 is full denoise, 1.0 is no denoise.
75
76
76
-
BLOOM_SCALE: Must not be negative or greater than 1. The scale relative to the kernel being placed at the center of the denoised image and isotropically stretched until it touches one of the sides of the denoised image.
77
-
You'll usually want to keep this value below 1/32
78
-
If you don't want bloom then either provide a PSF image which is a single white pixel, or set bloom scale to a very small non negative value.
77
+
BLOOM_PSF_FILE: A EXR file with a HDR sprite corresponding to the Point Spread Function you want to convolve the image with.
78
+
79
+
BLOOM_RELATIVE_SCALE: Must not be negative or greater than 1. The scale relative to the kernel being placed at the center of the denoised image and isotropically stretched until it touches one of the sides of the denoised image.
80
+
You'll usually want to keep this value quite small (below 1/32) to make sure the kernel has a higher pixel density relative to the image, otherwise you'll end up blurring the image (the executable will print a warning).
81
+
Do not use it for actually controlling the size of the flare, this is because even though the kernel is scaled, it is normalized to conserve energy, which eventually degenerates into an ugly box blur as scale tends to 0.
82
+
83
+
BLOOM_INTENSITY: Must be in the [0,1] range, it actually controls the size of the flare much better than the relative scale (assuming a good HDR kernel with very long tails).
84
+
If you don't want bloom then set bloom intensity to 0.
79
85
80
86
TONEMAPPER: tonemapper - choose between "REINHARD", "ACES" and "NONE". After specifying it you have to pass arguments to revelant tonemapper,
81
87
the first argument is always the Key Value, a good default is 0.18 like the Reinhard paper's default.
@@ -100,7 +106,6 @@ while "NONE looks like:
100
106
-TONEMAPPER=NONE=AutoexposureOff
101
107
102
108
OUTPUT: output file with specified extension
103
-
BLOOM_PSF_FILE: A EXR file with a HDR sprite corresponding to the Point Spread Function you want to convolve the image with.
104
109
The kernel must be centered and in RGB or RGBA floating point format. Resolution should be less than the denoised image.
105
110
If this file is not provided then we use a built-in PSF as the kernel for the convolution.
0 commit comments