필터 지우기
필터 지우기

what is the purpose of this code?

조회 수: 1 (최근 30일)
ankita
ankita 2013년 10월 8일
편집: Jan 2013년 10월 11일
we are working on the code for barcode scanning(barCodeCam.m) taken from matlab central only..but we have not understood the algorithm of the functions-movAvg.m and diffScheme.m in the code. can you please explain the algoritm that they have implemented in those functions?

채택된 답변

Jan
Jan 2013년 10월 8일
  1. We cannot guess, which function you are talking of. Adding a link would be a good point to start from.
  2. "movAvg" sounds like a moving average. This means that each value is replaced by the mean of its 2*N+1 neighbors.
  3. "diffScheme" is not clear from its name, but I hope you find explanations in the help section.
  4. If the help sections are not useful enough, ask the author at first.
  5. If he cannot answer your questions, explain your question more specifically, e.g. show us the lines of code, which are not clear. Currently your question is too general to be answered efficiently.

추가 답변 (2개)

ankita
ankita 2013년 10월 8일
This is the link of that code, please suggest the algorithm regarding those functions
  댓글 수: 2
Image Analyst
Image Analyst 2013년 10월 8일
편집: Image Analyst 2013년 10월 8일
How did you address #3 - #5 of Jan's reply?
ankita
ankita 2013년 10월 11일
As suggested by you we tried to contact the author but didn't get any reply.Can you please suggest us an algorithm for the code in the above link.

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


Jan
Jan 2013년 10월 11일
편집: Jan 2013년 10월 11일
The linked code is not useful or usable. Beside the missing help text and useful comments, the script performs this:
clear
clc
A0 = imread('cam.jpg');
A0 = rgb2gray(A0);
A = A0([99+30:99+260],[71:608]); % for cam
return
Then a lot of code follows, which might perform anything useful. But you have to guess where which modifications are required. So my conclusion is, only seeing this tiny part of the submission, that this tool is of any use. You will have less troubles if you delete it and rewrite it from scratch. Searching for other submissions in the FEX is a good strategy also.
Sorry for this pessimistic opinion. It is based on the experience, that it is not worth to let a project crash only because ugly code of unknown authors is applied.

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by