Curvature of n-dimensional space curves in grey-value images