您好,欢迎来到年旅网。
搜索
您的当前位置:首页Chain Code

Chain Code

来源:年旅网

Chain code can be used to describe a shape. We can use two main classes of chain code. One isabsolute chain code, another isrelative chain code.

For absolute chain code,we define a set of absolute directions. Then we code the shape as follows:

For relative chain code, the difference is that we don’t use absolute direction. Instead, we choose relative direction. In this method, when we want to get a chain code, we don’t check the absolute direction of the new pixel and the old pixel. We just check the relative direction of the direction. If the new pixel is frontier, then the code is 2. If it’s back, then the code is 6. What we need to take care of is that, in relative chain code, the start pixel’s chain code is decided by the last pixel.

The absolute chain code stores the position information of the shape, while relative chain code don’t. 

因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- oldu.cn 版权所有 浙ICP备2024123271号-1

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务