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

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

Active Publication Date: 2022-02-25
SHENZHEN CORERAIN TECH CO LTD
View PDF8 Cites 2 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 and device based on bilinear interpolation algorithm, equipment and medium
  • Image scaling method and device based on bilinear interpolation algorithm, equipment and medium
  • Image scaling method and device based on bilinear interpolation algorithm, equipment and medium

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 and device based on a bilinear interpolation algorithm, equipment and a medium. The method comprises the following steps: obtaining the sizes of a source image and a target image, determining a row direction deformation coefficient and a column direction deformation coefficient according to the two sizes, respectively accumulating the row direction deformation coefficient and the column direction deformation coefficient, and performing rounding operation on an accumulation result, determining an access address and an interpolation coefficient according to the integer part and the decimal part obtained by rounding, determining a corresponding access address and an interpolation coefficient according to the pixel coordinate of each target pixel point in the target image, and determining a source pixel point required by a corresponding algorithm in the source image according to the target access address, and determining the pixel value of a target pixel point according to the pixel value of the source pixel point and the target interpolation coefficient based on a bilinear interpolation algorithm. Therefore, the multiplication and division operation applied in the image scaling process is greatly reduced, the operation with extremely high efficiency is realized, and the calculation pressure of a CPU (Central Processing Unit) is released.

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
IPC IPC(8): G06T3/40G06T1/20
CPCG06T3/4007G06T1/20
Inventor 梁监天蔡权雄牛昕宇
Owner SHENZHEN CORERAIN TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products