how to quatize one curve?

Hi,
Assuming there is one curve composed of several points:[0.0 0.0], [0.33 0.12], [-0.56 1.45], ....... and the coordinate is divided into many 0.1x0.1 square grids. How to quantize the curve which means the value of each square that the curve passes through should be added by 1?
Thanks.

Respuestas (1)

bym
bym el 28 de Abr. de 2011

2 votos

2 comentarios

Zhengyu
Zhengyu el 29 de Abr. de 2011
yes, it's similar with that.But the line direction can be anywhere and the endpoints are not integer, the problem is how to find those pixels that the line passes through by Matlab code? Thanks.
bym
bym el 29 de Abr. de 2011
I don't see where line direction and integer endpoints are necessary for the algorithm to supply what you need

Iniciar sesión para comentar.

Categorías

Etiquetas

Preguntada:

el 28 de Abr. de 2011

Community Treasure Hunt

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

Start Hunting!

Translated by