how to store same image in cell(1,192).please help me sir

조회 수: 1 (최근 30일)
kaavya subramani
kaavya subramani 2015년 8월 28일
댓글: kaavya subramani 2015년 8월 28일
for p=1:u %no of frames
k=edge(cc,'canny');cc is my image name
count = numel(find(k(:)==1));%count no of edge pixels
end
save count result in array
Note:if suppose i create
ca=cell(1,u)
k(ca)=edge(ca{cc},'canny');% but inorder to mention number of iteration 'p', where i need to include it.

채택된 답변

Walter Roberson
Walter Roberson 2015년 8월 28일
편집: Walter Roberson 2015년 8월 28일
You are asking sloppy questions. I already showed you how to store the count for each loop but your question here is as if you have forgotten it. When it appears that a poster is not learning from our Answers, the volunteers usually stop answering. The volunteers would be likely to get the impression that you are so confused that we cannot assist you, or else that you are just looking for someone to write the entire code for you.
I had a difficult time understanding your current question, but I think the answer is:
for p=1:u %no of frames
k = edge(cc{p},'canny')
count{p} = numel(find(k(:)==1));%count no of edge pixels
ca{p} = k;
end
  댓글 수: 1
kaavya subramani
kaavya subramani 2015년 8월 28일
Sorry sir, i am a begineer, also i am not interested to do my work by others, but the thing is till now i am not clear in concepts, i am not clear in basics of programming,thats my great fault,ok i try to overcome it.Thanks for your advice sir

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by