How to change the formula to detect vertical line and horizontal line ??
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur Graphics Object Programming dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!