Message ID | 20221124113849.2193579-5-paul.elder@ideasonboard.com |
---|---|
State | New |
Headers | show |
Series |
|
Related | show |
Hi Paul On 24/11/2022 11:38, Paul Elder wrote: > Add debug plotting the LSC table for each image to the RkISP1 LSC > module. > > Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> > --- Reviewed-by: Daniel Scally <dan.scally@ideasonboard.com> > utils/tuning/libtuning/modules/lsc/rkisp1.py | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/utils/tuning/libtuning/modules/lsc/rkisp1.py b/utils/tuning/libtuning/modules/lsc/rkisp1.py > index 5701ae0a..c3fdcc4f 100644 > --- a/utils/tuning/libtuning/modules/lsc/rkisp1.py > +++ b/utils/tuning/libtuning/modules/lsc/rkisp1.py > @@ -41,6 +41,9 @@ class LSCRkISP1(LSC): > cr, _ = self._lsc_single_channel(image.channels[lt.Color.R], image, gr) > cb, _ = self._lsc_single_channel(image.channels[lt.Color.B], image, gb) > > + if self.debug: > + self._plot_single_lsc(image, cr, cb, cgr, cgb) > + > return image.color, cr.flatten(), cb.flatten(), cgr.flatten(), cgb.flatten() > > # @return List of dictionaries of color temperature, red table, red's green
diff --git a/utils/tuning/libtuning/modules/lsc/rkisp1.py b/utils/tuning/libtuning/modules/lsc/rkisp1.py index 5701ae0a..c3fdcc4f 100644 --- a/utils/tuning/libtuning/modules/lsc/rkisp1.py +++ b/utils/tuning/libtuning/modules/lsc/rkisp1.py @@ -41,6 +41,9 @@ class LSCRkISP1(LSC): cr, _ = self._lsc_single_channel(image.channels[lt.Color.R], image, gr) cb, _ = self._lsc_single_channel(image.channels[lt.Color.B], image, gb) + if self.debug: + self._plot_single_lsc(image, cr, cb, cgr, cgb) + return image.color, cr.flatten(), cb.flatten(), cgr.flatten(), cgb.flatten() # @return List of dictionaries of color temperature, red table, red's green
Add debug plotting the LSC table for each image to the RkISP1 LSC module. Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> --- utils/tuning/libtuning/modules/lsc/rkisp1.py | 3 +++ 1 file changed, 3 insertions(+)