what is the purpose of this code?
古いコメントを表示
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?
採用された回答
その他の回答 (2 件)
ankita
2013 年 10 月 8 日
0 投票
2 件のコメント
Image Analyst
2013 年 10 月 8 日
編集済み: Image Analyst
2013 年 10 月 8 日
How did you address #3 - #5 of Jan's reply?
ankita
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.
カテゴリ
ヘルプ センター および File Exchange で Language Support についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!