How to access pixels along a line (Between specified points) ?

I have two pints P1 = (x1,y1) and P2 = (x2, y2). I need to make all the pixels along the line connecting P1 and P2 to zero. I am able to draw a line between those points, but not able to identify all the pixels (Between P1 and P2) which is to be make zero

Réponses (0)

Catégories

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

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by