diff options
author | Zhijun He <zhijunhe@google.com> | 2016-04-12 23:08:17 -0700 |
---|---|---|
committer | Zhijun He <zhijunhe@google.com> | 2016-04-12 23:11:00 -0700 |
commit | 5f92cff081ba23044733504428fcb29235ecefe2 (patch) | |
tree | c44bdb75e8047e7875225ad17418d9348e40e6ef | |
parent | b1379bdb8fe4ddf1e052bff5e76703f70ec4afab (diff) | |
download | android_system_media-5f92cff081ba23044733504428fcb29235ecefe2.tar.gz android_system_media-5f92cff081ba23044733504428fcb29235ecefe2.tar.bz2 android_system_media-5f92cff081ba23044733504428fcb29235ecefe2.zip |
Camera: clarify lens shading map
Lens shading correction should be full correction that
corrects both color shading and vignetting.
Bug: 18175853
Change-Id: Ia552345b2bd78b1b2eed2472096ebae80680d70b
-rw-r--r-- | camera/docs/docs.html | 18 | ||||
-rw-r--r-- | camera/docs/metadata_properties.xml | 21 |
2 files changed, 31 insertions, 8 deletions
diff --git a/camera/docs/docs.html b/camera/docs/docs.html index 4ae843c1..cac793c2 100644 --- a/camera/docs/docs.html +++ b/camera/docs/docs.html @@ -23608,8 +23608,8 @@ image of a gray wall (using bicubic interpolation for visual quality) as capture <td class="entry_description"> <p>The shading map is a low-resolution floating-point map -that lists the coefficients used to correct for vignetting,<wbr/> for each -Bayer color channel of RAW image data.<wbr/></p> +that lists the coefficients used to correct for vignetting and color shading,<wbr/> +for each Bayer color channel of RAW image data.<wbr/></p> </td> <td class="entry_units"> @@ -23628,8 +23628,18 @@ Bayer color channel of RAW image data.<wbr/></p> </tr> <tr class="entry_cont"> <td class="entry_details" colspan="5"> - <p>The least shaded section of the image should have a gain factor -of 1; all other sections should have gains above 1.<wbr/></p> + <p>The lens shading correction is defined as a full shading correction that +corrects both color shading for the output non-RAW images.<wbr/> After the +shading map is applied,<wbr/> the output non-RAW images will be flat-field images +for flat scenes under uniform illumination.<wbr/></p> +<p>When there is no lens shading correction applied to RAW output images +(<a href="#static_android.sensor.info.lensShadingApplied">android.<wbr/>sensor.<wbr/>info.<wbr/>lens<wbr/>Shading<wbr/>Applied</a> <code>==</code> false),<wbr/> this map is a full lens +shading correction map; when there is some lens shading correction applied +to the RAW output image (<a href="#static_android.sensor.info.lensShadingApplied">android.<wbr/>sensor.<wbr/>info.<wbr/>lens<wbr/>Shading<wbr/>Applied</a> <code>==</code> true),<wbr/> +this map reports the remaining lens shading correction map that needs to be +applied to get fully shading corrected images.<wbr/></p> +<p>For a full shading correction map,<wbr/> the least shaded section of the image +should have a gain factor of 1; all other sections should have gains above 1.<wbr/></p> <p>When <a href="#controls_android.colorCorrection.mode">android.<wbr/>color<wbr/>Correction.<wbr/>mode</a> = TRANSFORM_<wbr/>MATRIX,<wbr/> the map must take into account the colorCorrection settings.<wbr/></p> <p>The shading map is for the entire active pixel array,<wbr/> and is not diff --git a/camera/docs/metadata_properties.xml b/camera/docs/metadata_properties.xml index 4fe531fc..a8785344 100644 --- a/camera/docs/metadata_properties.xml +++ b/camera/docs/metadata_properties.xml @@ -7680,11 +7680,24 @@ xsi:schemaLocation="http://schemas.android.com/service/camera/metadata/ metadata <size>m</size> </array> <description>The shading map is a low-resolution floating-point map - that lists the coefficients used to correct for vignetting, for each - Bayer color channel of RAW image data.</description> + that lists the coefficients used to correct for vignetting and color shading, + for each Bayer color channel of RAW image data.</description> <range>Each gain factor is &gt;= 1</range> - <details>The least shaded section of the image should have a gain factor - of 1; all other sections should have gains above 1. + <details> + The lens shading correction is defined as a full shading correction that + corrects both color shading for the output non-RAW images. After the + shading map is applied, the output non-RAW images will be flat-field images + for flat scenes under uniform illumination. + + When there is no lens shading correction applied to RAW output images + (android.sensor.info.lensShadingApplied `==` false), this map is a full lens + shading correction map; when there is some lens shading correction applied + to the RAW output image (android.sensor.info.lensShadingApplied `==` true), + this map reports the remaining lens shading correction map that needs to be + applied to get fully shading corrected images. + + For a full shading correction map, the least shaded section of the image + should have a gain factor of 1; all other sections should have gains above 1. When android.colorCorrection.mode = TRANSFORM_MATRIX, the map must take into account the colorCorrection settings. |