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

Respuestas (0)

Categorías

Más información sobre MATLAB en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 24 de Mayo de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by