How to change the formula to detect vertical line and horizontal line ??
2 ビュー (過去 30 日間)
古いコメントを表示
I only can figure out how to get the horizontal line. And vertical line is just switch the two variables. But how can I combine them together??
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/146625/image.png)
% Calculate the Gradients
[dIx, dIy] = gradient(Jgray);
B = abs(dIx) - abs(dIy);
0 件のコメント
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Graphics Object Programming についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!