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.

Réponses (1)

bym
bym le 28 Avr 2011

2 votes

2 commentaires

Zhengyu
Zhengyu le 29 Avr 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 le 29 Avr 2011
I don't see where line direction and integer endpoints are necessary for the algorithm to supply what you need

Connectez-vous pour commenter.

Question posée :

le 28 Avr 2011

Community Treasure Hunt

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

Start Hunting!

Translated by