필터 지우기
필터 지우기

how to change each segments?

조회 수: 2 (최근 30일)
rikki
rikki 2018년 4월 13일
suppose i have given this image how to change each and every segment...
for r=1:64
w(r)=abs(std2(double(E{r}))); % computes the standard deviation of the values in E
% figure
% plot(w);
ceil(w);
q(r)=abs(std2(double(F{r}))); % computes the standard deviation of the values in F
% figure
% plot(q);
ceil(q);
diff=w-q;
% new_diff=ceil(diff)
level(r) = graythresh(E{r}) ; % determine Otsu Threshold value
level1(r) = graythresh(F{r}); % determine Otsu Threshold value
% Comparison based on Otsu's Threshold Value
if diff(r)>level(r)
T=imbinarize(E{r});
subplot(rows,columns,r);
T=1;
imshow(T)
elseif diff(r)>level1(r)
P=imbinarize(F{r});
subplot(rows,columns,r)
T=0;
imshow(P)
end
end
here is the part of the code

답변 (0개)

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by