aboutsummaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorTimothy Knight <tknight@google.com>2014-10-11 21:46:15 -0700
committerTimothy Knight <tknight@google.com>2014-10-11 21:48:24 -0700
commit90c675d476ecf2d9f721571bd5726d40306d84bb (patch)
tree1514d22d9597368e8a7061e526ae65b6e7499c1d /apps
parent52a39ec7ff1331e573dc7b6ea6e3d10aa5dc376a (diff)
downloadpdk-90c675d476ecf2d9f721571bd5726d40306d84bb.tar.gz
CameraITS: Updated some pass/fail tests
Change-Id: I16d41253d3630471ced00727c700ef2f6968a1dd
Diffstat (limited to 'apps')
-rw-r--r--apps/CameraITS/tests/scene1/test_param_noise_reduction.py7
-rw-r--r--apps/CameraITS/tests/scene1/test_param_sensitivity.py5
-rw-r--r--apps/CameraITS/tests/scene1/test_tonemap_sequence.py2
3 files changed, 4 insertions, 10 deletions
diff --git a/apps/CameraITS/tests/scene1/test_param_noise_reduction.py b/apps/CameraITS/tests/scene1/test_param_noise_reduction.py
index cd77559..bef029e 100644
--- a/apps/CameraITS/tests/scene1/test_param_noise_reduction.py
+++ b/apps/CameraITS/tests/scene1/test_param_noise_reduction.py
@@ -33,8 +33,6 @@ def main():
"""
NAME = os.path.basename(__file__).split(".")[0]
- THRESHOLD_MIN_VARIANCE_RATIO = 0.7
-
# List of variances for Y,U,V.
variances = [[],[],[]]
@@ -86,12 +84,11 @@ def main():
assert(nr_modes_reported == [0,1,2])
- # Check that the variance of the NR=0 image is much higher than for the
+ # Check that the variance of the NR=0 image is higher than for the
# NR=1 and NR=2 images.
for j in range(3):
for i in range(1,3):
- assert(variances[j][i] / variances[j][0] <
- THRESHOLD_MIN_VARIANCE_RATIO)
+ assert(variances[j][i] < variances[j][0])
if __name__ == '__main__':
main()
diff --git a/apps/CameraITS/tests/scene1/test_param_sensitivity.py b/apps/CameraITS/tests/scene1/test_param_sensitivity.py
index 43aec76..0d1b5eb 100644
--- a/apps/CameraITS/tests/scene1/test_param_sensitivity.py
+++ b/apps/CameraITS/tests/scene1/test_param_sensitivity.py
@@ -26,9 +26,6 @@ def main():
"""
NAME = os.path.basename(__file__).split(".")[0]
- # Pass/fail threshold.
- THRESHOLD_MIN_DIFF = 0.02
-
NUM_STEPS = 5
sensitivities = None
@@ -65,7 +62,7 @@ def main():
# Test for pass/fail: check that each shot is brighter than the previous.
for means in [r_means, g_means, b_means]:
for i in range(len(means)-1):
- assert(means[i+1] - means[i] > THRESHOLD_MIN_DIFF)
+ assert(means[i+1] > means[i])
if __name__ == '__main__':
main()
diff --git a/apps/CameraITS/tests/scene1/test_tonemap_sequence.py b/apps/CameraITS/tests/scene1/test_tonemap_sequence.py
index 750c2cd..4f519cb 100644
--- a/apps/CameraITS/tests/scene1/test_tonemap_sequence.py
+++ b/apps/CameraITS/tests/scene1/test_tonemap_sequence.py
@@ -26,7 +26,7 @@ def main():
# There should be 3 identical frames followed by a different set of
# 3 identical frames.
MAX_SAME_DELTA = 0.01
- MIN_DIFF_DELTA = 0.20
+ MIN_DIFF_DELTA = 0.10
with its.device.ItsSession() as cam:
sens, exp_time, _,_,_ = cam.do_3a(do_af=False)