utils: tuning: libtuning: Fix tuning for non RGGB RAWs
Tuning fails for raw images that don't have the channels ordered in
RGGB. In 19dc8c28f6
("utils: tuning: libtuning: Implement the core of
libtuning") the channels of the image were reordered to RGGB
unconditionally in _read_image_dng(). That change was not applied to the
ctt_awb code, so that the channels were reordered twice. Fix by removing
the double ordering.
Signed-off-by: Stefan Klug <stefan.klug@ideasonboard.com>
Tested-by: Isaac Scott <isaac.scott@ideasonboard.com>
Reviewed-by: Isaac Scott <isaac.scott@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
936a099eca
commit
24e00be9f3
2 changed files with 2 additions and 3 deletions
|
@ -135,6 +135,6 @@ class Image:
|
|||
|
||||
all_patches.append(ch_patches)
|
||||
|
||||
self.patches = all_patches
|
||||
self.patches = np.array(all_patches)
|
||||
|
||||
return not saturated
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue