FPGA-based CAANY algorithm threshold value obtaining method and device
An acquisition method and technology of an acquisition device, which are applied in the field of FPGA-based CANNY algorithm threshold acquisition, can solve the problems of large storage and calculation amount, difficulty in FPGA, inability to meet video processing requirements, etc., and achieve the effect of rapid acquisition, taking into account speed and accuracy
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0034] Such as figure 1 As shown, the present embodiment provides a FPGA-based CANNY algorithm threshold acquisition method, including:
[0035] Pre-step: Grayscale the original video frame, perform Gaussian filtering on the grayscaled video frame, and calculate the gradient magnitude of the grayscaled video frame.
[0036] These steps are prior art and will not be repeated here.
[0037] The gradient magnitude in the step of calculating the gradient magnitude of the grayscaled video frame is used as the gradient input of the method.
[0038] Step 1. Calculate the gradient maximum value and average value of the video frame to be processed.
[0039] In this embodiment, the maximum value of the gradient is found through the comparator, and the average value of the gradient is calculated through the accumulator and the divider.
[0040] For example, in this embodiment, the gradient maximum value G max =169, gradient average G av =44.
[0041] Step 2. Determine the segmentat...
Embodiment 2
[0062] Such as image 3 As shown, the present embodiment provides a FPGA-based CANNY algorithm threshold acquisition device, including a gradient input module, a gradient processing module, a pixel processing module, and a system threshold calculation module;
[0063] The gradient input module is used to input the video gradient information calculated by the system;
[0064] The gradient processing module is used to process the input video gradient information to generate a gradient interval;
[0065] The pixel processing module is used to process the pixels in each gradient interval to obtain the number of pixels with the largest jump;
[0066] The system threshold calculation module is configured to determine the system threshold according to the number of pixels with the largest jump obtained by the pixel processing module.
[0067] In this embodiment, the gradient processing module includes: a gradient average calculation unit for calculating the gradient average calcula...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


