Home
last modified time | relevance | path

Searched refs:gains (Results 1 – 18 of 18) sorted by relevance

/cts/apps/CameraITS/tests/scene1/
Dtest_capture_result.py126 gains = cap_res["android.colorCorrection.gains"]
136 print "Gains:", gains
150 assert(len(gains) == 4)
152 assert(all([g > 0 for g in gains]))
156 assert(any([not is_close_float(gains[i], manual_gains[i])
177 gains = cap_res["android.colorCorrection.gains"]
190 print "Gains:", gains
207 assert(len(gains) == 4)
209 assert( all([is_close_float(gains[i], manual_gains_ok[0][i])
211 all([is_close_float(gains[i], manual_gains_ok[1][i])
[all …]
Dtest_ae_af.py43 s, e, gains, xform, fd = cam.do_3a(get_results=True,
49 print ' gains', gains, 'transform', xform
57 assert len(gains) == 4
58 for g in gains:
64 assert np.isclose(gains[2], GREEN_GAIN, GREEN_GAIN_TOL)
Dtest_3a.py32 sens, exp, gains, xform, focus = cam.do_3a(get_results=True,
35 print 'AWB: gains', gains, 'transform', xform
39 assert len(gains) == 4
40 for g in gains:
Dtest_auto_vs_manual.py50 sens, exp, gains, xform, focus = cam.do_3a(get_results=True,
54 print "AWB gains", gains
72 req["android.colorCorrection.gains"] = gains
100 assert all([abs(gains[i] - g[i]) < 0.05 for i in range(4)])
104 assert all([np.isclose(gains_a[i], gains[i], rtol=0.25, atol=0.1) for i in range(4)])
Dtest_param_color_correction.py71 gains = [[1, 1, 1, 1], [2, 1, 1, 1], [1, 1, 1, 1]]
83 req['android.colorCorrection.gains'] = gains[i]
/cts/tests/camera/src/android/hardware/camera2/cts/rs/
Draw_converter.rscript44 // Interpolate gain map to find per-channel gains at a given pixel
219 float4 gains = 1.f;
221 gains = getGain(i, j);
227 g = gains.x;
231 g = gains.y;
235 g = gains.z;
239 g = gains.w;
244 g = gains.y;
248 g = gains.x;
252 g = gains.w;
[all …]
/cts/apps/CameraITS/tests/scene3/
Dtest_3a_consistency.py43 s, e, gains, xform, fd = cam.do_3a(get_results=True,
46 print ' awb_gains', gains, 'awb_transform', xform
50 g_gains.append(gains[2])
58 for g in gains:
/cts/apps/CameraITS/pymodules/its/
Ddng.py23 def compute_cm_fm(illuminant, gains, ccm, cal): argument
89 G = numpy.array([[gains[0],0,0], [0,gains[1],0], [0,0,gains[3]]])
Dimage.py349 def get_gains_in_canonical_order(props, gains): argument
362 return gains
365 return [gains[0], gains[2], gains[1], gains[3]]
391 gains = cap_res['android.colorCorrection.gains']
397 gains = get_gains_in_canonical_order(props, gains)
411 gains = numpy.array([gains[i] for i in [0,1,3]])
415 img = (((img.reshape(h,w,3) - black_levels) * scale) * gains).clip(0.0,1.0)
Dtarget.py59 sens, exp_time, gains, xform, _ \
75 req["android.colorCorrection.gains"] = gains
/cts/apps/CameraITS/tests/inprog/scene2/
Dtest_dng_tags.py47 gains = cap["metadata"]["android.colorCorrection.gains"]
51 print "HAL reported gains:\n", numpy.array(gains)
61 cm, fm = its.dng.compute_cm_fm(dng_illum[i], gains, ccm, cal)
/cts/apps/CameraITS/tools/
Ddng_noise_model.py242 gains = np.asarray([s[0] for s in samples[pidx]])
249 digital_gains = np.maximum(gains/sens_max_analog, 1)
254 ad = gains*means
256 cd = gains*gains
263 a /= (np.tile(gains, (a.shape[1], 1)).T)
264 b /= gains
/cts/apps/CameraITS/tests/
Dtutorial.py100 sens, exp, gains, xform, focus = cam.do_3a(get_results=True)
102 print "AWB: gains", gains, "transform", xform
119 req["android.colorCorrection.gains"] = gains
/cts/apps/CameraITS/tests/inprog/
Dtest_3a_remote.py48 gains = cap["metadata"]["android.colorCorrection.gains"]
59 print "Gains:", gains
Dtest_param_edge_mode.py39 sens, exp, gains, xform, focus = cam.do_3a(get_results=True)
/cts/apps/CameraITS/tests/scene5/
Dtest_lens_shading_and_color_uniformity.py59 sens, exp, gains, xform, focus = cam.do_3a(get_results=True,
64 print "AWB gains", gains
/cts/apps/CameraITS/tests/scene4/
Dtest_aspect_ratio_and_crop.py226 sens, exp, gains, xform, focus = cam.do_3a(get_results=True,
230 print "AWB gains", gains
236 req["android.colorCorrection.gains"] = gains
/cts/tests/camera/src/android/hardware/camera2/cts/
DCaptureRequestTest.java1385 RggbChannelVector gains = result.get(CaptureResult.COLOR_CORRECTION_GAINS); in colorCorrectionTestByCamera() local
1391 UNIT_GAIN, gains); in colorCorrectionTestByCamera()
2423 RggbChannelVector gains = getValueNotNull(result, CaptureResult.COLOR_CORRECTION_GAINS);
2427 lockedGains, gains);