This R function is used to compute the curvature values of a discretised image. Curvature computations are performed as explained in:
"Roberts, A. (2001). Curvature attributes and their application to 3D interpreted horizons. First break, 19(2), 85-10"