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.

Answers (1)

bym
bym on 28 Apr 2011

2 votes

2 Comments

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

Sign in to comment.

Asked:

on 28 Apr 2011

Community Treasure Hunt

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

Start Hunting!