Professional Documents
Culture Documents
Ex - 6
Ex - 6
5
In the algorithm for connected component, we do not know at all (and
need not care) about boundary pixels, so such approaches cannot be
used!
But we go through the image pixel by pixel, line by line.
So we just count how many pixels get which label!
No. Curv. code is 0 for straight (no matter
which direction), and +1 and -1 are 45deg right
or left etc.
there is no -3 (135deg turn) here!