. , . ( ). , , . . , , . . . , . .
. hist, imhist. Matlab V.4.x , .
, Matlab V.4.x:
%
fid=fopen('F:\MATLAB\len.img','r');
[A,count]=fread(fid,'char');
fclose(fid);
L1=min(A);L2=max(A);t=length(A);
%
H=[];
for L=L1:L2;
disp(L); H(L)=0;
for k=1:t; if A(k)==L; H(L)=H(L)+1; end; end;
end;
plot(H);
() .
%
fid=fopen('F:\MATLAB\len.img','r');
[A,count]=fread(fid,'char');
fclose(fid);
A=A'; N=256; M=N;
A=A(1:N*M); A=A+1;
H=hist(A,max(A)-min(A)+1);
Hps=zeros(1,256-(max(A)+1)); Hdo=zeros(1,min(A));
H=[Hdo,H,Hps];
for i=1:256;
disp(i);
S(i)=sum(H(1:i));
end;
K=255/(M*N);
A1=K.*S(A);
A1=fix(A1); %
Matlab . imhist histeq, .
:
. . , . . . , , . .
|
|
, [1, 2]. , , . . 1 .
. 1. .
, .
[2]
, (1)
, (2)
, (3)
, . . .
, , , . . [3]. , , , . . , , "" , . , , . , : , , . , .
, (4)
- ,
. (5)
. , , . . . , . , - "" . "" . () . .
|
|
. , (1)
(6)
(1) - (6) .
, . [2, 4, 5] . . , ,
(7)
(8)
. , , .
- Dhawan A.P., Buelloni G., Gordon R. Enhancement of mammographic features by optimal adaptive neighbourhvod image processing // IEEE Trans. Med. Imaging.1986.v.5. P.815.
- Gordon R., Rangayyan R.M. Feature enhancement of film mammograms using fixed and adaptive neighbourhood // Applied optics. 1984. v.23. P. 560564.
- .., .. // . 1998. 3. . 18 25.
- ., . : . . . ... .: , 1988. 488 .
- .., .. // .... . 64, . 198. . 1987. C. 5 11.