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.

Antworten (1)

bym
bym am 28 Apr. 2011

2 Stimmen

2 Kommentare

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

Melden Sie sich an, um zu kommentieren.

Gefragt:

am 28 Apr. 2011

Community Treasure Hunt

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

Start Hunting!

Translated by