Extracting digital numbers from color panels in images
2 ビュー (過去 30 日間)
古いコメントを表示
Hello, Can anyone help me to fix this code? I am done with it, but it seems there is an error FIND ATTACHED Best,
2 件のコメント
Image Analyst
2017 年 1 月 28 日
You forgot to attach 'CIMG6786.jpg' so we can't run your code until then.
採用された回答
Image Analyst
2017 年 1 月 28 日
編集済み: Image Analyst
2017 年 1 月 28 日
VARI has some nans because of a divide by zero. Set nans to zero like this
VARI(isnan(VARI)) = 0;
The other main problem with the code is that there are no comments in it, so it's not maintainable.
10 件のコメント
Walter Roberson
2017 年 2 月 11 日
In your get_image_point routine, you have
if size(loc)>1
which should probably be
if size(loc, 1)>1
However, you can skip the test by just coding
loc = loc(1,1:2);
without checking the size.
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!