내가 matlab에에서 다음과 같은 방법을 구현하기 위해 노력하고있어 : 최소 오류 임계 화 - J. Kittler 및 J. Illingworth 작성자적응 형 임계 값
당신은 PDF를 살펴있을 수 있습니다
- http://liama.ia.ac.cn/wiki/_media/projects:pal:kittler1986.pdf?id=projects%3Apal%3Areadinggroup&cache=cache을
- http://docs.google.com/viewer?a=v&q=cache:XBuTPelQ3pMJ:www.ee.umanitoba.ca/~thomas/cp/Minimum%2520Error%2520Thresholding.pdf+J.+Kittler+and+J.+Illingworth,+%E2%80%98%E2%80%98Minimum+error+thresholding,%E2%80%99%E2%80%99&hl=en&pid=bl&srcid=ADGEESiXO4bpSsGomAjurUJLSzpmCyuCVxd-WnqMsKppKIMkvETt2xW6SowFxslmntlybz-z_YAea0oaCzVfBdkqiJczfVt3ll8hTDDkMg80xaO6vwl5yCLZg5b-FoWWl0gqfaYr81Bh&sig=AHIEtbQUj2nniDzc0Yj1dbBJ1mty5foZog (끝에).
내 코드입니다 : 나는 다음과 같은 이미지를 시도했습니다
function [ Level ] = MET(IMG)
%Maximum Error Thresholding By Kittler
% Finding the Min of a cost function J in any possible thresholding. The
% function output is the Optimal Thresholding.
for t = 0:255 % Assuming 8 bit image
I1 = IMG;
I1 = I1(I1 <= t);
q1 = sum(hist(I1, 256));
I2 = IMG;
I2 = I2(I2 > t);
q2 = sum(hist(I2, 256));
% J is proportional to the Overlapping Area of the 2 assumed Gaussians
J(t + 1) = 1 + 2 * (q1 * log(std(I1, 1)) + q2 * log(std(I2, 1)))...
-2 * (q1 * log(q1) + q2 * log(q2));
end
[~, Level] = min(J);
%Level = (IMG <= Level);
end
: Letters http://i45.tinypic.com/xmvr52.jpg
대상은 문자 (히브리어 글자)의 이진 이미지를 추출하는 것입니다. 이미지의 하위 블록 (40 x 40)에 코드를 적용했습니다. 그러나 K-Means Clusters method보다 열세 인 결과가 있습니다.
내가 뭔가를 놓쳤습니까? 누구나 더 좋은 아이디어가 있습니까?
감사합니다.
P. 누구나 주제 태그에 "적응 형 임계 값"을 추가 할 수 있습니까?
적응 형 클러스터링으로 더 좋은 결과를 얻는다고 보장 할 수는 없지만 알고리즘으로 다른 이미지를 사용해 보았습니까? –
글쎄,이 3 더있어. 같은 결과, 끔찍한 결과. – Royi