이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
Need to insert following
조회 수: 1(최근 30일)
표시 이전 댓글
Komal Gaikwad 2018년 2월 19일
마감: MATLAB Answer Bot 2021년 8월 20일
i m trying to insert the median and averaging filter in my code but it giving me errors ,as i am a beginner in matlab it is taking a lot of time ,i have very limited time for this project,someone can please insert that code in my existing code.and need the corrupt pixel nos for both median & average filter.In my existing code it is calculating the corrupt no of pixels.My project is SR using Adaptive Wiener filter and compare it with median and average filter and show adaptive wiener filter is better than other two.
댓글 수: 3
Jan 2018년 2월 19일
Brrr, a GUI using globals to share data. A lot of code without comments, such that it cannot be debugged efficiently. It is a bad idea to mix GUI and calculations. The code contains a lot of very ugly loops like:
This is an evil method also:
warning off all;
Warnings are very important. Care for them. Remove the cause of warnings instead of suppressing the messages.
V_O = [V_O IND(h)*ones(1,A_mat(IND(h)))];
I think this is a smarter version:
V_O = repelem(Ind, A_mat(Ind));
In the current form the code is not usable in any way. It can neither be debugged seriously, nor understood or maintained. Therefore trying to help you would require to write the complete code from scratch. This is more than you can expect from a forum and this is your project.
Sorry for this pessimistic view.
The problem description is still weak: "I tried to insert the new function for median filter by making changes in the existing GUI but its not working." Walter has suggested to read this already: http://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer . This is a valuable advice.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!