Thresholding an Image in MATLAB?
이전 댓글 표시
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 > B
error('threshold_grayscale_image : min_threshold is greater then max_threshold');
end
end
selected = (min_threshold >= A) & (B <= max_threshold);
thresholded_image(selected) = A;
return;
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Display and Exploration에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!