arXiv:2608.22314cs.CVAug 2026

Manuscript Offprint

arXiv:2608.22314

On the Choice of Tensor Estimation for Corner Detection, Optical Flow and Denoising

Freddie Åström, Michael Felsberg

Freddie Åström 1,2^{1,2} and Michael Felsberg 1,2^{1,2}

1^{1} Computer Vision Laboratory, Linköping University, Sweden

2^{2} Center for Medical Image Science and Visualization (CMIV), Linköping University

Abstract. Many image processing methods such as corner detection, optical flow and iterative enhancement make use of image tensors. Generally, these tensors are estimated using the structure tensor. In this work we show that the gradient energy tensor can be used as an alternative to the structure tensor in several cases. We apply the gradient energy tensor to common image problem applications such as corner detection, optical flow and image enhancement. Our experimental results suggest that the gradient energy tensor enables real-time tensor-based image enhancement using the graphical processing unit (GPU) and we obtain 40% increase of frame rate without loss of image quality.

1 Introduction

A drawback of many current state of the art image processing methods is the high computation requirements necessary to achieve high-quality results. As a consequence, the computational constraints limit the methods applicability as useful tools in real-time applications, implying that processing-pipelines operate on suboptimal image data. Specifically, the structure tensor introduced by Förstner and Gülch [1] and Bigün and Granlund [2] is an integral part of many image processing applications, such as corner detection [3, 4], optical flow [5] and tensor-based image denoising [6].

In this paper we propose to replace the structure tensor with an alternative tensor, the gradient energy tensor [7] that does not (necessarily) require a post-convolution of its tensor-components to form a rank-2 tensor. The principal difference to the structure tensor is that the gradient energy tensor use higher-order derivatives to capture the orientation in a neighbourhood. In figure 1 we have used the tensors for corner detection and dense optical flow and as visualized the two tensors produce very similar results. As a major contribution of this work we present an adaptive tensor-based image denoising method implemented using Nvidia CUDA programming language. Our approach is superior to those based on the structure tensor with regards to computational performance, without loss of image quality.

The structure tensor is defined as the outer product of the image gradient directions and in the case of two-dimensional images, the tensor is at most of rank-2 and determines the local energy distribution of a neighbourhood. In practice,

F. Åström and M. Felsberg

Figure

Corner Detection

Good Features to Track [4]

Optical flow

Dense Lucas-Kanade [5]

Fig. 1. An illustration that the Gradient Energy Tensor performs comparably to the Structure tensor in the two applications of corner detection and optical flow estimation (sequence Teddy frames 10 and 11 [9]). The gradient energy tensor does not (necessarily) require a post-convolution of its tensor-components, which is the case in the case of corner detection. See text for details.

to enforce robustness to noise and to form a rank-2 tensor, the structure tensor components are averaged using a post-smoothing of the tensor-components. Furthermore, without the post-convolution operation the tenor is of rank-1 and thus it cannot be used to describe corners and junctions in the image structure. The averaged structure tensor can also be viewed as a second-moment matrix, which estimates the local variance of the image data [8].

The gradient energy tensor is particularly suitable when considering graphical processing units (GPU). A GPU is a high-performance graphics card and is designed for massive parallelization of data-processing tasks. The GPU architecture is most suitable for problems with high spatial locality in the image plane and is therefore very fitting for the solution of partial differential equations (PDE). In this work we present a novel tensor-based PDE, which uses the gradient energy tensor for image enhancement and utilize the GPU architecture to enable real-time image enhancement.

The standard approach to image filtering using PDE's is defined using the structure tensor, a rank-2 tensor which is transformed such that it describes the direction parallel to the image structure. This approach does not allow for real-time computations of high-resolution colour images since the tensor is defined using several convolutions of the tensor components. In contrast, the gradient energy tensor does not require any convolution to form a rank-2 tensor but yet performs equally well, or better in denoising, when considering the resulting peak signal to noise ratio (PSNR) and structural similarity index (SSIM) [10].