Home
last modified time | relevance | path

Searched refs:means (Results 1 – 23 of 23) sorted by relevance

/cts/apps/CameraITS/tests/scene1_1/
Dtest_locked_burst.py93 means = image_processing_utils.compute_image_means(patch)
94 r_means.append(means[0])
95 g_means.append(means[1])
96 b_means.append(means[2])
99 for i, means in enumerate([r_means, g_means, b_means]):
101 min_means = min(means)
102 spread = max(means) - min_means
104 plane, spread, str(means))
Dtest_burst_sameness_manual.py95 means = image_processing_utils.compute_image_means(patch)
96 r_means.append(means[0])
97 g_means.append(means[1])
98 b_means.append(means[2])
123 for plane, means in enumerate([r_means, g_means, b_means]):
124 spread = max(means) - min(means)
Dtest_black_white.py70 means = image_processing_utils.compute_image_means(patch)
71 means = [m * _CH_FULL_SCALE for m in means]
72 logging.debug('%s pixel means: %s', cap_name, str(means))
79 return means
Dtest_linearity.py123 for means in [r_means, g_means, b_means]:
124 if means == r_means:
126 elif means == g_means:
131 range(len(sensitivities)), means, 1, full=True)
Dtest_param_color_correction.py128 for ch, means in enumerate([r_means, g_means, b_means]):
129 pylab.plot(capture_idxs, means, '-'+'rgb'[ch]+'o')
/cts/apps/CameraITS/tests/scene1_2/
Dtest_raw_exposure.py72 def create_plot(exps, means, sens, log_path): argument
84 r = [m[0] for m in means[1:]]
85 gr = [m[1] for m in means[1:]]
86 gb = [m[2] for m in means[1:]]
87 b = [m[3] for m in means[1:]]
104 def assert_increasing_means(means, exps, sens, black_levels, white_level): argument
120 for i in range(1, len(means)):
121 prev_mean = means[i-1]
122 mean = means[i]
214 means = []
[all …]
Dtest_tonemap_sequence.py104 means = []
134 means.extend(do_captures_and_extract_means(
138 deltas = [np.fabs(means[i+1]-means[i]) for i in range(2*_NUM_CAPTURES-1)]
/cts/tests/sensor/src/android/hardware/cts/helpers/sensorverification/
DMeanLargerThanVerification.java105 float[] means = getMeans(); in verify() local
106 int meanSize = mExpected.length < means.length ? mExpected.length : means.length; in verify()
109 if ((Math.abs(means[i]) >= mExpected[i] + mThresholds[i])) { in verify()
115 stats.addValue(SensorStats.MEAN_KEY, means); in verify()
119 SensorCtsHelper.formatFloatArray(means), in verify()
DAbstractMeanVerification.java60 float[] means = new float[mSums.length]; in getMeans() local
62 means[i] = mSums[i] / mCount; in getMeans()
64 return means; in getMeans()
DMeanLargerThanVerificationTest.java91 private void verifyStats(SensorStats stats, boolean passed, float[] means) { in verifyStats() argument
94 assertEquals(means.length, actual.length); in verifyStats()
95 for (int i = 0; i < means.length; i++) { in verifyStats()
96 assertEquals(means[i], actual[i], 0.1); in verifyStats()
DMeanVerificationTest.java151 private void verifyStats(SensorStats stats, boolean passed, float[] means) { in verifyStats() argument
154 assertEquals(means.length, actual.length); in verifyStats()
155 for (int i = 0; i < means.length; i++) { in verifyStats()
156 assertEquals(means[i], actual[i], 0.1); in verifyStats()
DMeanVerification.java115 float[] means = getMeans(); in verify() local
118 for (int i = 0; i < means.length; i++) { in verify()
119 if (means[i] > mExpected[i] + mUpperThresholds[i]) { in verify()
122 if (means[i] < mExpected[i] - mLowerThresholds[i]) { in verify()
128 stats.addValue(SensorStats.MEAN_KEY, means); in verify()
132 SensorCtsHelper.formatFloatArray(means), in verify()
/cts/apps/CameraITS/utils/
Dnoise_model_utils.py219 means = []
232 means.append(means_i)
234 means, vars_ = np.asarray(means), np.asarray(vars_)
235 return means, vars_
239 means: np.ndarray,
265 if means.shape != vars_.shape:
270 num_planes = len(means)
276 means_i = means[pidx]
523 means, vars_ = crop_and_reorder_stats_images(
531 logging.info('R plane means image size: %s', means[0].shape)
[all …]
Dimage_processing_utils.py1121 means = []
1124 means.append(numpy.mean(img[:, :, i], dtype=numpy.float64))
1125 return means
1190 means = compute_image_means(img)
1193 snrs = [20 * math.log10(m/s) for m, s in zip(means, std_devs)]
/cts/apps/CtsVerifier/jni/verifier/
Dcom_android_cts_verifier_camera_StatsImage.cpp161 std::vector<float>& means, in computeSingleCellStats() argument
202 means[index] = (float) m; in computeSingleCellStats()
314 std::vector<float> means(statsImageSize, 0); in com_android_cts_verifier_camera_its_computeStatsImage() local
322 means, vars); in com_android_cts_verifier_camera_its_computeStatsImage()
327 env->SetFloatArrayRegion(ret, 0, statsImageSize, (float*) means.data()); in com_android_cts_verifier_camera_its_computeStatsImage()
/cts/apps/CameraITS/tests/scene_flash/
Dtest_led_snapshot.py79 def _is_color_mean_valid(means, color_channel, fmt_name, width, height): argument
100 color_mean = means[0]
102 color_mean = means[1]
104 color_mean = means[2]
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapcomparers/
DMSSIMComparer.java70 double[] means = getMeans(ideal, given, start, stride, windowWidth, windowHeight); in verifySame() local
71 double meanX = means[0]; in verifySame()
72 double meanY = means[1]; in verifySame()
/cts/tests/tests/transition/src/android/transition/cts/
DFadeTest.java236 double[] means = getMeans(expected, real, x, y); in verifySimilar() local
237 double meanX = means[0]; in verifySimilar()
238 double meanY = means[1]; in verifySimilar()
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
Dpixel_format_f32.rsh13 // computed for blending color between layers. "Close enough" means L1 distance
/cts/tests/tests/os/assets/minijail/
Disolated-common.policy12 # This policy assumes clk_id is at least 32-bit wide, where the MSB means it is negative.
/cts/apps/CameraITS/tools/
Ddng_noise_model.py301 for exposure_ms, means, vars_ in iso_to_stats_dict[iso]:
305 means_p = means[pidx]
/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dsmall_structs.rscript23 // passed / returned correctly by forEach kernels. "small" here means
/cts/tests/mediapc/requirements/
Drequirements.txtpb823 …r all hardware video decoders (AVC, HEVC, VP9, AV1, or later). Note: This means applications can u…