Local structure tensor for multidimensional signal processing