In a for loop where I iterate over the image size I calculate the 2D structure tensor for each pixel:
tensor = np.array([[pixel_image_1, pixel_image_3], [pixe