How to change the formula to detect vertical line and horizontal line ??

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??
% Calculate the Gradients
[dIx, dIy] = gradient(Jgray);
B = abs(dIx) - abs(dIy);

Réponses (0)

Catégories

En savoir plus sur Get Started with MATLAB dans Centre d'aide et File Exchange

Question posée :

Kim
le 2 Fév 2012

Community Treasure Hunt

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

Start Hunting!

Translated by