Skip to content

Improve save functionality for ISP modules #8

Description

@bakhtawar-10xe

Currently save method works fine for modules that output an RGB image but the current output for modules in bayer raw and YUV do not visually depict the actual result

Module Output:
BLC (Bayer Raw)
Out_black_level_correction_ColorChecker_2592x1536_10bit_GRBG

Demosaic (RGB)
Out_demosaic_ColorChecker_2592x1536_10bit_GRBG

2DNR (YUV)
Out_2d_noise_reduction_ColorChecker_2592x1536_10bit_GRBG

Activity

  1. marianadeem-10xe commented on Sep 25, 2023

    @marianadeem-10xe
    Collaborator

    Updated the save method by the addition of the following two functions:

    • added function raw_to_rgb in utils.py
      To save .png file for modules returning a bayer raw image, the raw image is first converted to RGB image by defining the 3 channels as shown below:
      image
    • added yuv_to_rgb function from RGBC to utils.py.
      To save .png file for modules returning a YUV image, yuv_to_rgb function is used to convert yuv image to rgb
      image before saving.

    Module Output:
    BLC (Bayer Raw)
    Out_black_level_correction_ColorChecker_2592x1536_10bit_GRBG

    Demosaic (RGB)
    Out_demosaic_ColorChecker_2592x1536_10bit_GRBG

    2DNR (YUV)
    Out_2d_noise_reduction_ColorChecker_2592x1536_10bit_GRBG

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions