@@ -7,76 +7,90 @@ class LDRToHDR(desc.CommandLineNode):
77 commandLine = 'aliceVision_convertLDRToHDR {allParams}'
88
99 inputs = [
10- desc .File (
11- name = 'input' ,
12- label = 'Input' ,
13- description = "List of LDR images or a folder containing them " ,
14- value = '' ,
10+ desc .ListAttribute (
11+ elementDesc = desc .File (
12+ name = 'inputFolder' ,
13+ label = 'Input File/Folder' ,
14+ description = "Folder containing LDR images" ,
15+ value = '' ,
16+ uid = [0 ],
17+ ),
18+ name = "input" ,
19+ label = "Input Files or Folders" ,
20+ description = 'Folders containing LDR images.' ,
21+ ),
22+ desc .BoolParam (
23+ name = 'fisheyeLens' ,
24+ label = 'Fisheye Lens' ,
25+ description = "Enable if a fisheye lens has been used.\n "
26+ "This will improve the estimation of the Camera's Response Function by considering only the pixels in the center of the image\n "
27+ "and thus ignore undefined/noisy pixels outside the circle defined by the fisheye lens." ,
28+ value = True ,
1529 uid = [0 ],
16- ),
30+ ),
1731 desc .ChoiceParam (
1832 name = 'calibrationMethod' ,
1933 label = 'Calibration Method' ,
2034 description = "Method used for camera calibration \n "
2135 " * linear \n "
2236 " * robertson \n "
2337 " * debevec \n "
24- " * beta: grossberg" ,
38+ " * grossberg" ,
2539 values = ['linear' , 'robertson' , 'debevec' , 'grossberg' ],
2640 value = 'linear' ,
2741 exclusive = True ,
2842 uid = [0 ],
29- ),
43+ ),
3044 desc .File (
3145 name = 'inputResponse' ,
3246 label = 'Input Response' ,
3347 description = "external camera response file path to fuse all LDR images together." ,
3448 value = '' ,
3549 uid = [0 ],
36- ),
50+ ),
3751 desc .StringParam (
3852 name = 'targetExposureImage' ,
3953 label = 'Target Exposure Image' ,
40- description = "LDR image at the target exposure for the output HDR image to be centered." ,
54+ description = "LDR image(s) name(s) at the target exposure for the output HDR image(s) to be centered." ,
4155 value = '' ,
4256 uid = [0 ],
43- ),
57+ ),
4458 desc .ChoiceParam (
4559 name = 'calibrationWeight' ,
4660 label = 'Calibration Weight' ,
47- description = "Weight function type (default, gaussian, triangle, plateau)." ,
61+ description = "Weight function used to calibrate camera response \n "
62+ " * default (automatically selected according to the calibrationMethod) \n "
63+ " * gaussian \n "
64+ " * triangle \n "
65+ " * plateau" ,
4866 value = 'default' ,
4967 values = ['default' , 'gaussian' , 'triangle' , 'plateau' ],
5068 exclusive = True ,
5169 uid = [0 ],
52- ),
70+ ),
5371 desc .ChoiceParam (
5472 name = 'fusionWeight' ,
5573 label = 'Fusion Weight' ,
56- description = "Weight function used to fuse all LDR images together (gaussian, triangle, plateau)." ,
74+ description = "Weight function used to fuse all LDR images together \n "
75+ " * gaussian \n "
76+ " * triangle \n "
77+ " * plateau" ,
5778 value = 'gaussian' ,
5879 values = ['gaussian' , 'triangle' , 'plateau' ],
5980 exclusive = True ,
6081 uid = [0 ],
61- ),
82+ ),
6283 desc .FloatParam (
63- name = 'oversaturatedCorrection ' ,
64- label = 'Oversaturated Correction ' ,
65- description = "Oversaturated correction for pixels oversaturated in all images : \n "
84+ name = 'expandDynamicRange ' ,
85+ label = 'Expand Dynamic Range ' ,
86+ description = "Correction of clamped high values in dynamic range : \n "
6687 " - use 0 for no correction \n "
6788 " - use 0.5 for interior lighting \n "
6889 " - use 1 for outdoor lighting" ,
6990 value = 1 ,
7091 range = (0 , 1 , 0.1 ),
7192 uid = [0 ],
72- ),
73- desc .File (
74- name = 'recoverPath' ,
75- label = 'Recover Path' ,
76- description = "Path to write recovered LDR image at the target exposure by applying inverse response on HDR image." ,
77- value = '' ,
78- uid = [0 ],
79- ),
93+ ),
8094 desc .ChoiceParam (
8195 name = 'verboseLevel' ,
8296 label = 'Verbose Level' ,
@@ -85,22 +99,30 @@ class LDRToHDR(desc.CommandLineNode):
8599 values = ['fatal' , 'error' , 'warning' , 'info' , 'debug' , 'trace' ],
86100 exclusive = True ,
87101 uid = [],
88- ),
102+ ),
103+ desc .File (
104+ name = 'recoverPath' ,
105+ label = 'Output Recovered Files' ,
106+ description = "(debug) Folder for recovered LDR images at target exposures." ,
107+ advanced = True ,
108+ value = '' ,
109+ uid = [],
110+ ),
89111 ]
90112
91113 outputs = [
92114 desc .File (
93115 name = 'output' ,
94- label = 'Output' ,
95- description = "Output HDR image path. " ,
96- value = desc .Node .internalFolder + 'hdr.exr' ,
116+ label = 'Output Folder ' ,
117+ description = "Output folder for HDR images " ,
118+ value = desc .Node .internalFolder ,
97119 uid = [],
98- ),
120+ ),
99121 desc .File (
100122 name = 'outputResponse' ,
101123 label = 'Output Response' ,
102124 description = "Output response function path." ,
103- value = desc .Node .internalFolder + 'response.ods ' ,
125+ value = desc .Node .internalFolder + 'response.csv ' ,
104126 uid = [],
105- ),
127+ ),
106128 ]
0 commit comments