如何从图像处理中的链码计算曲率?

How to compute curvature from chain code in image processing?

如何从图表 a(链码)到图表 b(曲率)?

0, 0, 2, 0, 1, 0, 7, 6, 0, 0 --> 0, 2, -2, 1, -1, -1, -1, 2, 0

来自图(a);链码出来如下:

根据 [2] - 第 186 页;曲率是通过以下伪代码计算的:

c = d - di

for all di such that d remains within a limit of ±2 (critical point of a chain code)

if c < 2 then c+7
if c > 2 then c-7

所以这给出了所需的结果 (b)。

参考:Google Books