Lines Matching refs:sharpness
16 // Takes sharpness score, rates the image good if above 10, bad otherwise
77 .addInputPort("sharpness", Signature.PORT_REQUIRED, floatT)
98 getConnectedInputPort("sharpness").pullFrame().asFrameValue();
99 float sharpness = ((Float)sharpnessFrameValue.getValue()).floatValue();
139 score = computePictureScore(vectorAccel, sharpness, underExposure, overExposure,
147 float classifierScore = classifierComputeScore(vectorAccel, sharpness, underExposure,
212 private float classifierComputeScore(float vectorAccel, float sharpness, float underExposure,
214 float result = (-0.0223f * sharpness + -0.0563f * underExposure + 0.0137f * colorfulness
222 private float computePictureScore(float vector_accel, float sharpness,
234 score = subComputeScore(sharpness, underExposure, overExposure, contrastRating,
238 score = subComputeScore(sharpness, underExposure, overExposure, contrastRating,
241 score = subComputeScore(sharpness, underExposure, overExposure, contrastRating,
248 private float subComputeScore(float sharpness, float underExposure, float overExposure,
252 score += SHARPNESS_WEIGHT * sharpnessScore(sharpness);
261 private float sharpnessScore(float sharpness) {
263 sharpnessMean = sharpness;
267 sharpnessMean = sharpnessMean * (1 - DECAY) + sharpness * DECAY;
268 sharpnessVar = sharpnessVar * (1 - DECAY) + (sharpness - sharpnessMean) *
269 (sharpness - sharpnessMean) * DECAY;
272 } else if (sharpness < sharpnessMean && sharpnessVar > MEDIUM_VARIANCE) {
274 } else if (sharpness < sharpnessMean) {
276 } else if (sharpness > sharpnessMean && sharpnessVar > HIGH_VARIANCE) {
278 } else if (sharpness > sharpnessMean && sharpnessVar > MEDIUM_VARIANCE) {
281 return BIG_SCORE_INC; // low variance, sharpness above the mean