Unlock instant, AI-driven research and patent intelligence for your innovation.

Image scaling method, device, equipment and medium based on bilinear interpolation algorithm

A bilinear interpolation and image scaling technology, applied in the field of data processing, can solve the problems of system resources and computing time cost consumption, affecting computing efficiency, large data volume, etc., to reduce multiplication and division operations, high-efficiency operations, and free computing The effect of pressure

Active Publication Date: 2022-05-20
SHENZHEN CORERAIN TECH CO LTD
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In the traditional computing architecture, it is necessary to use the CPU to perform the bilinear interpolation function of the image based on the instruction set. When performing the interpolation calculation, it is divided into coefficient generation, data extraction, coefficient and data multiplication and addition operations, etc., because the operation data The amount is large, and part of the process involves division operations, which leads to a large consumption of system resources and computing time costs, thus affecting the overall computing efficiency

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Image scaling method, device, equipment and medium based on bilinear interpolation algorithm
  • Image scaling method, device, equipment and medium based on bilinear interpolation algorithm
  • Image scaling method, device, equipment and medium based on bilinear interpolation algorithm

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0046] figure 1 It is a flowchart of an image scaling method based on a bilinear interpolation algorithm provided in Embodiment 1 of the present invention. This embodiment is applicable to the case of performing front-end calculation and processing on video and image stream-related data. This method can be executed by the image scaling device based on bilinear interpolation algorithm provided by the embodiment of the present invention. The device can be composed of hardware and and / or implemented by software, and generally can be integrated into computer equipment. Such as figure 1 As shown, it specifically includes the following steps:

[0047] S11. Acquire the first size of the source image and the second size of the target image, and determine a row-direction deformation coefficient and a column-direction deformation coefficient according to the first size and the second size.

[0048] Among them, the source image is the original image, and the target image is the desire...

Embodiment 2

[0072] figure 2 A schematic structural diagram of an image scaling device based on a bilinear interpolation algorithm provided in Embodiment 2 of the present invention. The device can be implemented by hardware and / or software, and can generally be integrated into a computer device to execute any of the present invention. The image scaling method based on the bilinear interpolation algorithm provided by the embodiment. Such as figure 2 As shown, the device includes:

[0073] Deformation coefficient determination module 21, configured to obtain the first size of the source image and the second size of the target image, and determine the row-direction deformation coefficient and the column-direction deformation coefficient according to the first size and the second size;

[0074] The accumulative calculation module 22 is configured to input the row-direction deformation coefficient and the column-direction deformation coefficient into a fixed-point accumulator for cumulative...

Embodiment 3

[0099] image 3 The schematic structural diagram of the computer device provided for the third embodiment of the present invention shows a block diagram of an exemplary computer device suitable for implementing the embodiment of the present invention. image 3 The computer equipment shown is only an example, and should not bring any limitation to the functions and scope of use of the embodiments of the present invention. Such as image 3 As shown, the computer equipment includes a processor 31, a memory 32, an input device 33 and an output device 34; the number of processors 31 in the computer equipment can be one or more, image 3 Taking a processor 31 as an example, the processor 31, memory 32, input device 33 and output device 34 in the computer equipment can be connected by bus or other methods, image 3 Take connection via bus as an example.

[0100] The memory 32, as a computer-readable storage medium, can be used to store software programs, computer-executable progra...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the invention discloses an image scaling method, device, equipment and medium based on a bilinear interpolation algorithm. The method includes: obtaining the dimensions of the source image and the target image, determining the row-direction deformation coefficient and the column-direction deformation coefficient according to the two dimensions, respectively accumulating the row-direction deformation coefficient and the column-direction deformation coefficient, and rounding up the accumulation result , to determine the access address and interpolation coefficient according to the integer part and decimal part obtained by rounding, for each target pixel in the target image, determine the corresponding access address and interpolation coefficient according to its pixel coordinates, and according to the target access address Determine the source pixel points required by the corresponding algorithm in the source image, so as to determine the target pixel point pixel value based on the bilinear interpolation algorithm according to the source pixel point pixel value and the target interpolation coefficient. Thereby greatly reducing the multiplication and division operations applied in the image scaling process, realizing extremely high-efficiency operations, and releasing the calculation pressure of the CPU.

Description

technical field [0001] The embodiments of the present invention relate to the technical field of data processing, and in particular to an image scaling method, device, device and medium based on a bilinear interpolation algorithm. Background technique [0002] With the rapid development of deep learning, convolutional neural networks have been widely used in machine vision applications, such as image recognition and image classification. Artificial intelligence chips based on data flow architecture are being applied in more and more scenarios due to their extremely high chip utilization. In order to improve the end-to-end efficiency of the data stream architecture AI chip, it is necessary to perform front-end and back-end calculation processing on video and image stream-related data, such as using bilinear interpolation algorithms to enlarge or reduce the image to a size that matches the subsequent modules. [0003] In the traditional computing architecture, it is necessary...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06T3/40G06T1/20
CPCG06T3/4007G06T1/20
Inventor 梁监天蔡权雄牛昕宇
Owner SHENZHEN CORERAIN TECH CO LTD