필터 지우기
필터 지우기

hi i divided image into 4 equal halves and i need to save a block which contain maximum edge pixels,i attached code,but its not working .so please correct my code.

조회 수: 1 (최근 30일)
i1 = cc(1:96,1:96);
i2 = cc(1:96,97:192);
i3 = cc(97:192,1:96);
i4 = cc(97:192,97:192);
y = {i1, i2, i3, i4};
o=[];
for i=1:length(y)
ui=edge(i,'canny');
count=length(find(ui(:)==1));
o=find(max(count));
end
  댓글 수: 2
Walter Roberson
Walter Roberson 2015년 8월 24일
Who are you asking?
By the way, you posted your question just before midnight in my time zone. The volunteers in Europe are asleep, and the volunteers in North America are either asleep or just about to go to sleep.

댓글을 달려면 로그인하십시오.

채택된 답변

Walter Roberson
Walter Roberson 2015년 8월 24일
for i=1:length(y)
ui = edge(y{i},'canny');
count(i) = length(find(ui(:)==1));
end
[~, o] = max(count);
  댓글 수: 2
kaavya subramani
kaavya subramani 2015년 8월 24일
Hai sir,i saw "latest activity edited by Azi...." for my question,but no suggestions provided by him.thatsy i commented like that.
Walter Roberson
Walter Roberson 2015년 8월 24일
Azzi specializes in control systems. He edits Questions of all sorts to make them readable as a service to others, but he would not typically answer this kind of question.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by