@@ -52,4 +52,7 @@ general:
macbeth:
small: 1
show: 0
-# blacklevel: 32
\ No newline at end of file
+ lsc:
+ grid_width: 17
+ grid_height: 17
+# blacklevel: 32
@@ -95,7 +95,11 @@ class LSCSoftisp(LSC):
return output_list
def process(self, config: dict, images: list, outputs: dict) -> dict:
- output = {}
+ if 'lsc' in config['general']:
+ lsc_config = config['general']['lsc']
+ self.sector_shape = (lsc_config['grid_width'], lsc_config['grid_height'])
+
+ output = dict(gridSize=dict(width=self.sector_shape[0], height=self.sector_shape[1]))
output['sets'] = self._do_all_lsc(images)
Software ISP supports arbitrary lens shading correction table sizes. Let's adjust the softisp tuning script to produce tables of any size too. The size can be specified in the tuning script configuration file. If unspecified, the default size of 17x17 cells is still used for compatibility with the last released libcamera. Signed-off-by: Milan Zamazal <mzamazal@redhat.com> --- utils/tuning/config-example.yaml | 5 ++++- utils/tuning/libtuning/modules/lsc/softisp.py | 6 +++++- 2 files changed, 9 insertions(+), 2 deletions(-)