Edge Detection has become a crucial element in nearly all computer vision techniques used across various application domains today1. Edge detection is a feature extraction stage and is responsible for retrieving informative and distinctive details from images, which can be applied in a wide range of scenarios2. Edges within an image signify regions where there is a sudden change in intensity; therefore, they offer important and distinctive information about that image. This process facilitates the elimination of unnecessary and irrelevant details, preserving only the crucial and unique elements that can be further processed for the specific application.
The importance of edge detection is highlighted by its application in various tasks, including image segmentation, object detection and recognition, feature extraction, image enhancement, object identification, medical imaging, surveillance, industrial automation, autonomous driving, augmented reality, and robotics2,3,4,5,6, as shown in Figure 1.
Multiple methods for edge detection exist, including Sobel, Prewitt, Roberts, Canny, and others. Among these techniques, Sobel edge detection stands out due to its straightforward application, minimal implementation complexity, and high precision in detecting edges3,4,5,6. The image's gradients are determined by the Sobel Edge algorithm in both horizontal and vertical directions using the kernels Gx and Gy respectively as shown below2,4.
Gx highlights the edges in the × direction, and Gy highlights edges in the y direction12,13. When combined together they completely define all the edges in an image6. The convolution with the kernel process and the sliding window are used to apply the Sobel edge detection to an image. One by one, a window measuring, say, 3 by 3 pixels is taken out of the picture, and this window is convolved with the filter matrix to obtain the new value of the center pixel. The entire image is processed in this manner again. Two such kernels are used in Sobel edge detection: one for extracting edges in the x direction and another for the y direction. To obtain all the edges, these two results are then combined. Sobel edge detection produces accurate and reliable results, which can be further enhanced with some pre-processing4,5,15. The complete Sobel edge detection is interpreted in Figure 2.
Although all the reported literature has significant contributions in the field of edge detection, all the major reported research has worked on low image resolutions, whereas the work presented in this paper works on different image resolutions, varying from low-resolution images (256 × 256) to full high-definition (HD) image resolution (2560 × 1440). Consequently, investigating the hardware implementation of the Sobel edge detection algorithm for different image resolutions is crucial to understanding the efficiency of the implementation when it is subjected to real-time scenarios with varied image resolutions. The Field Programmable Gate Array (FPGA) has been acknowledged as an appropriate platform for hardware implementations, due to its suitability for rapid prototype development and advantages like re-configurability, which enables easy design modifications without the need to change the entire hardware configuration6,7,8,9,10,11,12,13. Furthermore, FPGAs offer the potential for parallel processing and pipelining; once the performance metrics are optimized and the platform validated, the design can progress towards the actual production of Application Specific Integrated Circuits (ASICs)14,15. Another important feature of FPGA is their reconfigurability, which enables designers to make modifications to the product's design at any time without the need to replace any hardware. Reprogramming the chip is all that is necessary, and it takes very little time or effort, provided the designer is well versed with hardware description languages like VHDL/Verilog4,6,13,16,17. For the FPGA implementation analysis, the major parameters considered are speed (maximum frequency), resource utilization, and power efficiency. Table 1, which depicts the increasing amount of literature published in the domain of FPGA and it shows how FPGA publications have evolved over the period from 2006 to 2024. It clearly explains that the FPGA research domain has now shifted to real-time applications, augmented reality, edge computing, and other high-end applications13,14,15,16,17,18,19,20,21,22,23.
Table 2 highlights the work done in the existing literature related to Sobel edge detection implementation on FPGA since 2020–2025. Table 2 mentions the FPGA board used, algorithms implemented, Design methodology, findings, metrics, application area, and the challenges of each referred article.
The authors4 have recommended using the 8-direction Sobel Edge method to increase edge detection accuracy, however, they reported higher resource consumption for the proposed methodology. Navinkumar et. al. utilize a technique to reduce the complex mathematical operations of multiplication and square root that are involved in the traditional Sobel edge detection, and save the onboard resources and improve the speed9. The authors17 documented about using the Sobel Edge Detection Algorithm to identify lanes in Advanced Driver Assistance Systems. Their goal was to speed up detection while cutting down on processing time. Overall, usage of edge detection was suggested as a reliable method for region of interest extraction in the future, which may be very helpful in a variety of applications where the needed area of an image needs to be extracted while ignoring any other unnecessary information. The challenges reported collectively included, higher resource and memory utilization, sensitivity to noise, high computational cost and limited scalability for higher resolution images4,5,6,11,12,13,21,22,23.
In this work, the traditional Sobel edge detection algorithm implementation is done on the Ultra96-V2 FPGA board, for different image resolutions ranging from low resolution of 256 × 256 to full high-definition resolution of 2560 × 1440. Ultra96-V2 is a board that combines the FPGA programmability capabilities with the powerful Arm processing (Cortex-A53/R5) for high-performance applications. This board was first released in 2018, and it utilizes 16 nm FinFET technology node18.
To ensure reproducibility, the entire implementation was carried out using a standard toolchain consisting of the Vivado HLS 2019.2 for High-Level Synthesis (HLS) and Vivado 2019.2 for place-and-route, as well as the PYNQ image released by Ultra96-V2 resources. The HLS code was utilized to derive the Sobel edge detection IP (Intellectual Property), which was exported and integrated into the Vivado design suite. The IP was implemented on the PL (Programmable Logic) part, and the PS (Processing System) part of the FPGA was responsible for data transfer and control mechanisms. The interfacing of PS with the PL was done through the AXI protocol. All reported metrics—frequency, resource utilization, and power—are taken from post-implementation reports, not HLS estimates. The implementation settings remained consistent, and only the image resolutions were changed throughout the experiments.
Significant achievements of this work are in terms of low power consumption, low resource utilization, and high speed. The results indicate less than 20% of the onboard resource utilizations (18% Look Up Tables (LUTs), 11% Flip Flops (FF), 3% memory, and 10% DSP) for the high-resolution images, indicating huge availability for integrating much more processing on these images, which is expected in any computer vision system, as edge detection is only an intermediate step. Also, the power dissipation is nearly 2 W, and the maximum operating frequency is reported as 144 MHz. The results depict that scaling the image sizes by almost 56 times increases the resource utilization by almost 20% only. The speed and power dissipation are also degraded by almost 20% only. This analysis significantly investigates the algorithm from a different perspective, which has not been reported in other previous literature, and hence indicates that the implementation is well-suited for real-time applications with no need to limit the images to small sizes/less resolution, which definitely degrades the amount of information which is required in subsequent stages after edge detection.
The novelty of this work is not in the algorithm itself, but it focuses on assessing the performance of the traditional Sobel edge detection algorithm across various image resolutions on modern heterogeneous FPGA architectures, leveraging the advantages of HLS-based implementation techniques. The key contributions of this paper are primarily in the application of a hybrid methodology implemented on an FPGA, effectively distributing the workload between the PS and PL sections of the architecture to allow the design to effortlessly adjust to different resolutions. Another contribution involves experimenting to assess how resource scaling varies with changes in image resolutions, which helps in understanding performance across different setups and for diverse applications.