if the distance is less it would output a smiling expression and if the distance is more it would output a neutral expression.
A = smile expression B = Neutral expression
A = 129; B = 188; Threshold = 155;if A > Berror('threshold_grayscale_image : min_threshold is greater then max_threshold');endendselected = (min_threshold >= A) & (B <= max_threshold); thresholded_image(selected) = A; return;
Best Answer