Ok, I think the problem was, that a and b or a and c don't have the same height of pixels (a: 131 x 32px, b / c: 29 x 18 px). When I change the size of the image of b or c to a higher resolution like 131 x 81 px the error disappear and the distance of "shape context" is being computed.