CameraITS: add lens shading and color uniformity test
Test that the lens shading correction is applied appropriately,
and color of a monochrome uniform scene is evenly distributed,
for example, when a diffuser is placed in front of the camera.
Perform this test on a yuv frame with auto 3a. Lens shading is
evaluated based on the y channel. Measure the average y value
for each sample block specified, and then determine pass/fail
by comparing with the center y value. The color uniformity test
is evaluated in r/g and b/g space. At specified radius of the
image, the variance of r/g and b/g value need to be less than
a threshold in order to pass the test.
Change-Id: I6cf7676ef7f3ec8ef9a8455675ee212287637baf
diff --git a/apps/CameraITS/tools/run_all_tests.py b/apps/CameraITS/tools/run_all_tests.py
index ec0aab7..3ed908e 100644
--- a/apps/CameraITS/tools/run_all_tests.py
+++ b/apps/CameraITS/tools/run_all_tests.py
@@ -44,12 +44,13 @@
],
"scene2":[],
"scene3":[],
- "scene4":[]
+ "scene4":[],
+ "scene5":[]
}
# Get all the scene0 and scene1 tests, which can be run using the same
# physical setup.
- scenes = ["scene0", "scene1", "scene2", "scene3", "scene4"]
+ scenes = ["scene0", "scene1", "scene2", "scene3", "scene4", "scene5"]
scene_req = {
"scene0" : None,
"scene1" : "A grey card covering at least the middle 30% of the scene",
@@ -57,7 +58,9 @@
"scene3" : "A chart containing sharp edges like ISO 12233",
"scene4" : "A specific test page of a circle covering at least the "
"middle 50% of the scene. See CameraITS.pdf section 2.3.4 "
- "for more detail"
+ "for more details",
+ "scene5" : "Capture images with a diffuser attached to the camera. See "
+ "CameraITS.pdf section 2.3.4 for more details"
}
tests = []
for d in scenes: