CN111161135A - Picture conversion method and related product - Google Patents

Picture conversion method and related product Download PDF

Info

Publication number
CN111161135A
CN111161135A CN201911395310.7A CN201911395310A CN111161135A CN 111161135 A CN111161135 A CN 111161135A CN 201911395310 A CN201911395310 A CN 201911395310A CN 111161135 A CN111161135 A CN 111161135A
Authority
CN
China
Prior art keywords
data
coordinate
module
memory
picture
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911395310.7A
Other languages
Chinese (zh)
Other versions
CN111161135B (en
Inventor
王和国
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Intellifusion Technologies Co Ltd
Original Assignee
Shenzhen Intellifusion Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Intellifusion Technologies Co Ltd filed Critical Shenzhen Intellifusion Technologies Co Ltd
Priority to CN201911395310.7A priority Critical patent/CN111161135B/en
Publication of CN111161135A publication Critical patent/CN111161135A/en
Application granted granted Critical
Publication of CN111161135B publication Critical patent/CN111161135B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/04Context-preserving transformations, e.g. by using an importance map
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)

Abstract

The embodiment of the application discloses a picture conversion method and a related product, which are applied to electronic equipment, wherein the electronic equipment comprises a first coordinate mapping module, a second coordinate mapping module, a data reading module, a first memory, a data calculation module, a data conversion module, a data filling module, a first data first-in first-out memory and a second data first-in first-out memory; the method comprises the following steps: storing a first coordinate information set in an initial picture in a first data first-in first-out memory and a second data first-in first-out memory, reading first coordinate information in the first data first-in first-out memory by a data reading module, acquiring first coordinate data in the first memory, determining second coordinate data by a data calculating module according to the first coordinate information set stored in the first coordinate data and the second data first-in first-out memory, and processing the second coordinate data by a data conversion module and a data filling module to acquire a target picture; the method is favorable for improving the efficiency and convenience of image conversion.

Description

Picture conversion method and related product
Technical Field
The present application relates to the field of electronic device technologies, and in particular, to a picture conversion method and a related product.
Background
For a deep learning artificial intelligence system, pictures with different sizes need to be converted into pictures with certain fixed sizes to be processed by using an algorithm model, but different algorithm models may need different input sizes. The current picture conversion processing is either processed by using a central processing unit or digital signal software programming, or the picture is processed by a cache line, so that a larger on-chip cache space and higher bus bandwidth overhead are required, and an artificial intelligence system is a system which is intensive in calculation and intensive in data access, so that the current processing method cannot meet the requirements of the artificial intelligence system on picture conversion processing with high throughput, low delay, high energy efficiency ratio and low bandwidth.
Disclosure of Invention
The embodiment of the application provides a picture conversion method and a related product, aiming at improving the efficiency and convenience of picture conversion.
In a first aspect, an embodiment of the present application provides a picture conversion method applied to an electronic device, where the electronic device includes a first coordinate mapping module, a second coordinate mapping module, a data reading module, a first memory, a data calculating module, a data conversion module, and a data filling module, where the first coordinate mapping module includes a first data fifo, and the second coordinate mapping module includes a second data fifo; the method comprises the following steps:
the first coordinate mapping module and the second coordinate mapping module respectively extract a first coordinate information set in an initial picture and store the first coordinate information set in the first data first-in first-out memory and the second coordinate information set in the second data first-in first-out memory;
the data reading module reads the first coordinate information in the first data FIFO memory, and acquires first coordinate data corresponding to the first coordinate information in the first memory, wherein the first coordinate information set is a coordinate information set of a part of pixel points in the initial picture;
the data calculation module determines second coordinate data according to the first coordinate data and the first coordinate information set stored in the second data first-in first-out memory, wherein the second coordinate information set corresponding to the second coordinate data is a coordinate information set of partial coordinates in the first coordinate information set;
the data conversion module and the data filling module process the second coordinate data from the data calculation module to acquire a target picture.
In a second aspect, an embodiment of the present application provides a picture conversion apparatus, which is applied to an electronic device, where the electronic device includes a first coordinate mapping module, a second coordinate mapping module, a data reading module, a first memory, a data calculating module, a data conversion module, and a data padding module, where the first coordinate mapping module includes a first data fifo, and the second coordinate mapping module includes a second data fifo; the picture conversion apparatus includes a processing unit, a communication unit, and a storage unit, wherein,
the processing unit is used for the first coordinate mapping module and the second coordinate mapping module to respectively extract a first coordinate information set in an initial picture and store the first coordinate information set in the first data first-in first-out memory and the second coordinate information set in the second data first-in first-out memory; the data reading module is used for reading the first coordinate information in the first data first-in first-out memory and acquiring first coordinate data corresponding to the first coordinate information in the first memory, wherein the first coordinate information set is a coordinate information set of a part of pixel points in the initial picture; the data calculation module is used for determining second coordinate data according to the first coordinate data and the first coordinate information set stored in the second data first-in first-out memory, and the second coordinate information set corresponding to the second coordinate data is a coordinate information set of partial coordinates in the first coordinate information set; and the data conversion module and the data filling module are used for processing the second coordinate data from the data calculation module to acquire a target picture.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing steps in any method of the first aspect of the embodiment of the present application.
In a fourth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program makes a computer perform part or all of the steps described in any one of the methods in the second aspect of the present application.
In a fifth aspect, the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform some or all of the steps described in any one of the methods of the second aspect of the present application. The computer program product may be a software installation package.
It can be seen that, in the embodiments of the present application, an image conversion method and related products are provided, which are applied to an electronic device, where the electronic device includes a first coordinate mapping module, a second coordinate mapping module, a data reading module, a first memory, a data calculating module, a data conversion module, and a data filling module, where the first coordinate mapping module includes a first data fifo, and the second coordinate mapping module includes a second data fifo; the method comprises the following steps: the first coordinate mapping module and the second coordinate mapping module respectively extract a first coordinate information set in an initial picture and store the first coordinate information set in the first data first-in first-out memory and the second data first-in first-out memory, then the data reading module reads the first coordinate information in the first data first-in first-out memory to obtain first coordinate data corresponding to the first coordinate information in the first memory, then the data computing module determines second coordinate data according to the first coordinate information set stored in the first coordinate data and the second data first-in first-out memory, and finally the data conversion module and the data filling module process the second coordinate data from the data computing module to obtain a target picture; therefore, the method is used for processing the coordinate data twice when the picture is converted, only part of row or column coordinate data is required to be acquired during each processing, and complete row data of the picture is not required to be cached, so that the requirement of in-chip caching is saved, the requirement of bus bandwidth is saved, data redundancy is reduced, and the high efficiency and convenience of picture conversion are improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a picture conversion architecture according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of a picture conversion method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of another picture conversion method provided in the embodiment of the present application;
fig. 4 is a schematic flowchart of another picture conversion method provided in the embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
fig. 6 is a block diagram illustrating functional units of a picture conversion apparatus according to an embodiment of the present disclosure.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The electronic device according to the embodiment of the present application may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem, which have wireless communication functions, and various forms of User Equipment (UE), Mobile Stations (MS), terminal devices (terminal device), and the like.
The following describes embodiments of the present application in detail.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a picture conversion architecture, which is applied to an electronic device, where the electronic device includes a first coordinate mapping module, a second coordinate mapping module, a data reading module, a first memory, a data calculating module, a data conversion module, and a data filling module, where the first coordinate mapping module includes a first data fifo, the second coordinate mapping module includes a second data fifo, the electronic device further includes a second memory and a space conversion calculating module, and the picture conversion architecture is provided with the first data fifo and the second data fifo for respectively storing coordinate data, so as to implement a coordinate data fifo access method, reduce a memory space occupied by data storage, and implement high throughput in a picture conversion process, Low time delay, high energy efficiency ratio and low bandwidth, and is beneficial to optimizing the existing picture conversion method.
Referring to fig. 2, fig. 2 is a schematic flowchart of a picture conversion method provided in an embodiment of the present application, and is applied to an electronic device, where the electronic device includes a first coordinate mapping module, a second coordinate mapping module, a data reading module, a first memory, a data calculating module, a data conversion module, and a data filling module, where the first coordinate mapping module includes a first data fifo, and the second coordinate mapping module includes a second data fifo; the method comprises the following steps:
s201, the first coordinate mapping module and the second coordinate mapping module respectively extract a first coordinate information set in an initial picture and store the first coordinate information set in the first data first-in first-out memory and the second coordinate information set in the second data first-in first-out memory;
wherein the first set of coordinate information includes a plurality of first coordinate information.
S202, the data reading module reads the first coordinate information in the first data first-in first-out memory, and first coordinate data corresponding to the first coordinate information in the first memory are obtained;
and the first coordinate information set is a coordinate information set of partial pixel points in the initial picture.
Wherein the first memory comprises a double rate synchronous dynamic random access memory.
Wherein the first coordinate data comprises coordinate data of a portion of rows in the initial picture.
Wherein the first coordinate information in the first data FIFO is overwritten while being read, according to a first-in-first-out principle.
S203, the data calculation module determines second coordinate data according to the first coordinate data and the first coordinate information set stored in the second data FIFO memory, wherein the second coordinate information set corresponding to the second coordinate data is a coordinate information set of partial coordinates in the first coordinate information set;
wherein the electronic device further comprises a second memory comprising a random access memory.
The first coordinate information is also used for grouping processing by the second memory to determine first data grouping information.
Wherein the second coordinate data includes coordinate data of a partial column in the first coordinate data.
And S204, the data conversion module and the data filling module process the second coordinate data from the data calculation module to acquire a target picture.
It can be seen that, in the embodiments of the present application, an image conversion method and related products are provided, which are applied to an electronic device, where the electronic device includes a first coordinate mapping module, a second coordinate mapping module, a data reading module, a first memory, a data calculating module, a data conversion module, and a data filling module, where the first coordinate mapping module includes a first data fifo, and the second coordinate mapping module includes a second data fifo; the method comprises the following steps: the first coordinate mapping module and the second coordinate mapping module respectively extract a first coordinate information set in an initial picture and store the first coordinate information set in the first data first-in first-out memory and the second data first-in first-out memory, then the data reading module reads the first coordinate information in the first data first-in first-out memory to obtain first coordinate data corresponding to the first coordinate information in the first memory, then the data computing module determines second coordinate data according to the first coordinate information set stored in the first coordinate data and the second data first-in first-out memory, and finally the data conversion module and the data filling module process the second coordinate data from the data computing module to obtain a target picture; therefore, the method is used for processing the coordinate data twice when the picture is converted, only part of row or column coordinate data is required to be acquired during each processing, and complete row data of the picture is not required to be cached, so that the requirement of in-chip caching is saved, the requirement of bus bandwidth is saved, data redundancy is reduced, and the high efficiency and convenience of picture conversion are improved.
In one possible example, the reading the first coordinate information in the first data fifo by the data reading module, and acquiring first coordinate data corresponding to the first coordinate information in the first memory includes: the data reading module reads the first coordinate information in the first data first-in first-out memory to generate a first request; the data reading module sends the first coordinate information and the first request to the first memory; the first memory obtains initial coordinate data of the initial picture, and first coordinate data are determined according to the first coordinate information and the initial coordinate data; the data reading module acquires the first coordinate data from the first memory.
Wherein the first request comprises a request to obtain first coordinate data in the first memory.
Wherein the first coordinate data includes data corresponding to the first coordinate information.
In a specific implementation, a data reading module reads the first coordinate information in the first data fifo, generates a first request, and then sends the first coordinate information and the first request to a first memory, where the first memory obtains initial coordinate data of the initial picture, determines a part of the initial coordinate data corresponding to the first coordinate information in the initial coordinate data as first coordinate data, and sends the first coordinate data to the data reading module, and the data reading module obtains the first coordinate data from the first memory.
In this example, it can be seen that, the data reading module reads the first coordinate information in the first data fifo, and generates a first request, the data reading module sends the first coordinate information and the first request to the first memory, the first memory obtains the initial coordinate data of the initial picture, and determines the first coordinate data according to the first coordinate information and the initial coordinate data; the data reading module acquires the first coordinate data from the first memory; the first coordinate data in the initial picture required by picture conversion is determined, and the first coordinate data is cached, so that the high efficiency of picture conversion is improved.
In one possible example, the electronic device further comprises a second memory; the data calculation module determines second coordinate data according to the first coordinate data and the first coordinate information set stored in the second data first-in first-out memory, and comprises: the data reading module sends the first coordinate data to the second memory; the second memory stores the first coordinate data in a grouping mode to determine first data grouping information; the data reading module detects that the first data packet information exists in the second memory, determines that the second memory is in an effective state, and generates first state information; the data reading module sends the first state information to the data calculation module; the data calculation module acquires the first coordinate information in the second data first-in first-out memory and the first data grouping information in the second memory; and the data calculation module determines second coordinate data according to the first coordinate information, the first data grouping information and a preset algorithm.
Wherein the first state information includes information indicating that the second memory is in a valid state.
The second memory stores the first coordinate data in groups, and determining the first data grouping information includes that the second memory stores the first coordinate data in segments, and each segment of the first coordinate data is a first data grouping.
In a specific implementation, the second memory groups the first coordinate data S1 into a second memory 0, a second memory 1, a second memory 2, and a second memory 3 for storage, the data calculation module obtains the first coordinate information S1 and the first data grouping information, the second memory 0, the second memory 1, the second memory 2, and the second memory 3, determines that the initial picture P1 is reduced to obtain the target picture P2 to be generated, substitutes a preset algorithm to determine the first column, the second column, and the third column of S1 to calculate to obtain the second coordinate data of the first column, calculates the third column, the fourth column, and the fifth column of S1 to obtain the second coordinate data of the second column, and so on to determine all the second coordinate data of the third column.
As can be seen, in this example, the data reading module sends the first coordinate data to the second memory; the second memory stores the first coordinate data in a grouping mode to determine first data grouping information; the data reading module detects that the first data packet information exists in the second memory, determines that the second memory is in an effective state, and generates first state information; the data reading module sends the first state information to the data calculation module; the data calculation module acquires the first coordinate information in the second data first-in first-out memory and the first data grouping information in the second memory; the data calculation module determines second coordinate data according to the first coordinate information, the first data grouping information and a preset algorithm; the second memory stores data in groups, which is beneficial to reducing the required storage space and optimizing the existing image conversion method and device.
In one possible example, the first coordinate mapping module and the second coordinate mapping module respectively extract a first coordinate information set in an initial picture and store the first coordinate information set in the first data fifo and the second coordinate information set in the second data fifo, and the method further includes: the first coordinate mapping module and the second coordinate mapping module acquire initial coordinate information of an initial picture; the first coordinate mapping module and the second coordinate mapping module acquire target coordinate information of a target picture to be generated; the first coordinate mapping module and the second coordinate mapping module call a preset mapping algorithm to calculate according to the initial coordinate information and the target coordinate information, and determine first coordinate information; and the first coordinate mapping module and the second coordinate mapping module extract a first coordinate information set in the initial picture according to the first coordinate information.
And the first coordinate information comprises the coordinate information of the effective pixel points in the initial picture.
The preset mapping algorithm comprises a preset algorithm for mapping the coordinate data in the initial picture and the coordinate data of the target picture to be generated to obtain first coordinate information.
In the specific implementation, a first coordinate mapping module and a second coordinate mapping module acquire initial coordinate information of an initial picture, the first coordinate mapping module and the second coordinate mapping module acquire target coordinate information of a target picture to be generated at the same time, then the first coordinate mapping module and the second coordinate mapping module call a preset mapping algorithm to calculate according to the initial coordinate information and the target coordinate information to determine first coordinate information, and the first coordinate mapping module and the second coordinate mapping module extract a first coordinate information set in the initial picture according to the first coordinate information.
In this example, the first coordinate mapping module and the second coordinate mapping module obtain initial coordinate information of an initial picture, obtain target coordinate information of a target picture to be generated, then the first coordinate mapping module and the second coordinate mapping module call a preset mapping algorithm to perform calculation according to the initial coordinate information and the target coordinate information, determine first coordinate information, and then the first coordinate mapping module and the second coordinate mapping module extract a first coordinate information set in the initial picture according to the first coordinate information; by the method, the accuracy and the efficiency of acquiring the coordinate data are improved, and the efficiency of image conversion is improved.
In one possible example, the data conversion module and the data population module process the second coordinate data from the data calculation module to obtain a target picture, including: the data conversion module acquires the second coordinate data from the data calculation module, and determines third coordinate data according to a preset color space conversion strategy; the data conversion module determines that the third coordinate data and the target coordinate data have a one-to-one correspondence relationship, and determines that the third coordinate data is picture coordinate data; the data conversion module sends the picture coordinate data to the data filling module; and the data filling module processes the picture coordinate data to acquire a target picture.
And the color space conversion strategy comprises converting the data format of the second coordinate data into an RBG format and determining third coordinate data.
The data conversion module determines that the third coordinate data and the target coordinate data have a one-to-one correspondence relationship, wherein the data conversion module determines that the number of the third coordinate data is the same as the number of the target data.
And the data filling module arranges the picture coordinate data in sequence to obtain a target picture.
In a specific implementation, the data conversion module acquires the second coordinate data from the data calculation module, determines third coordinate data according to a preset color space conversion strategy, determines that the third coordinate data and the target coordinate data have a one-to-one correspondence relationship, determines that the third coordinate data is picture coordinate data, and then sends the picture coordinate data to the data filling module; and the data filling module processes the picture coordinate data to acquire a target picture.
In this example, the data conversion module obtains the second coordinate data from the data calculation module, and determines third coordinate data according to a preset color space conversion strategy; the data conversion module determines that the third coordinate data and the target coordinate data have a one-to-one correspondence relationship, and determines that the third coordinate data is picture coordinate data; the data conversion module sends the picture coordinate data to the data filling module; the data filling module processes the picture coordinate data to obtain a target picture; the method is favorable for improving the efficiency and convenience of image conversion.
In one possible example, the electronic device further comprises a spatial transformation calculation module; the data conversion module and the data filling module process the second coordinate data from the data calculation module to obtain a target picture, including: the data conversion module determines that the third coordinate data and the target coordinate data have a multiple corresponding relation, and sends the third coordinate data to the space conversion calculation module; the space conversion calculation module performs interpolation filtering processing on the third coordinate data to determine picture coordinate data; the space conversion calculation module sends the picture coordinate data to the data filling module; and the data filling module processes the picture coordinate data to acquire a target picture.
The interpolation filtering processing comprises a nearest neighbor interpolation method, a bilinear interpolation method and/or a cubic polynomial interpolation method.
In a specific implementation, the data conversion module determines that the third coordinate data and the target coordinate data have a multiple correspondence relationship, that is, the number of the third coordinate data is greater than that of the target coordinate data, and then the third coordinate data is sent to the space conversion calculation module, the space conversion calculation module performs interpolation filtering processing on the third coordinate data to obtain picture coordinate data after the interpolation filtering processing, the space conversion calculation module sends the picture coordinate data to the data filling module, and the data filling module processes the picture coordinate data to obtain a target picture.
In this example, it is determined that the third coordinate data and the target coordinate data have a multiple correspondence relationship by the data conversion module, and the third coordinate data is sent to the spatial conversion calculation module; the space conversion calculation module performs interpolation filtering processing on the third coordinate data to determine picture coordinate data; the space conversion calculation module sends the picture coordinate data to the data filling module; the data filling module processes the picture coordinate data to obtain a target picture; the method is beneficial to improving the accuracy and the efficiency of picture scaling in picture conversion.
In one possible example, after the data conversion module and the data filling module process the second coordinate data from the data calculation module to obtain the target picture, the method further includes: and the data filling module acquires the target picture, receives a second request from the electronic equipment and sends the target picture to a preset object.
The second request comprises a request for acquiring the target picture by the preset object.
In a specific implementation, after the data filling module obtains a target picture, a second request from the electronic device is received, the first storage requests to obtain the target image, and then the data filling module sends the target picture to the first storage
As can be seen, in this example, the data filling module obtains a target picture, receives a second request from the electronic device, and sends the target picture to a preset object; the method is favorable for improving the utilization rate of the target picture after the image conversion is finished and improving the practicability of the picture conversion.
Referring to fig. 3, fig. 3 is a schematic flowchart of another image conversion method provided in the embodiment of the present application, and the image conversion method is applied to an electronic device, where the electronic device includes a first coordinate mapping module, a second coordinate mapping module, a data reading module, a first memory, a data calculating module, a data conversion module, and a data filling module, where the first coordinate mapping module includes a first data fifo, and the second coordinate mapping module includes a second data fifo; as shown in the figure, the picture conversion method includes:
s301, the data reading module reads the first coordinate information in the first data FIFO memory to generate a first request;
s302, the data reading module sends the first coordinate information and the first request to the first memory;
s303, the first memory acquires initial coordinate data of the initial picture, and first coordinate data are determined according to the first coordinate information and the initial coordinate data;
s304, the data reading module acquires the first coordinate data from the first memory;
s305, the data reading module reads the first coordinate information in the first data first-in first-out memory, and first coordinate data corresponding to the first coordinate information in the first memory is obtained;
s306, the data calculation module determines second coordinate data according to the first coordinate data and the first coordinate information set stored in the second data FIFO memory, wherein the second coordinate information set corresponding to the second coordinate data is a coordinate information set of partial coordinates in the first coordinate information set;
s307, the data conversion module and the data filling module process the second coordinate data from the data calculation module to obtain a target picture.
It can be seen that, in the embodiments of the present application, an image conversion method and related products are provided, which are applied to an electronic device, where the electronic device includes a first coordinate mapping module, a second coordinate mapping module, a data reading module, a first memory, a data calculating module, a data conversion module, and a data filling module, where the first coordinate mapping module includes a first data fifo, and the second coordinate mapping module includes a second data fifo; the method comprises the following steps: the first coordinate mapping module and the second coordinate mapping module respectively extract a first coordinate information set in an initial picture and store the first coordinate information set in the first data first-in first-out memory and the second data first-in first-out memory, then the data reading module reads the first coordinate information in the first data first-in first-out memory to obtain first coordinate data corresponding to the first coordinate information in the first memory, then the data computing module determines second coordinate data according to the first coordinate information set stored in the first coordinate data and the second data first-in first-out memory, and finally the data conversion module and the data filling module process the second coordinate data from the data computing module to obtain a target picture; therefore, the method is used for processing the coordinate data twice when the picture is converted, only part of row or column coordinate data is required to be acquired during each processing, and complete row data of the picture is not required to be cached, so that the requirement of in-chip caching is saved, the requirement of bus bandwidth is saved, data redundancy is reduced, and the high efficiency and convenience of picture conversion are improved.
In addition, the data reading module reads the first coordinate information in the first data FIFO memory to generate a first request, the data reading module sends the first coordinate information and the first request to the first memory, the first memory obtains the initial coordinate data of the initial picture, and determines the first coordinate data according to the first coordinate information and the initial coordinate data; the data reading module acquires the first coordinate data from the first memory; the first coordinate data in the initial picture required by picture conversion is determined, and the first coordinate data is cached, so that the high efficiency of picture conversion is improved.
Referring to fig. 4, fig. 4 is a schematic flowchart of another image conversion method provided in the embodiment of the present application, and the image conversion method is applied to an electronic device, where the electronic device includes a first coordinate mapping module, a second coordinate mapping module, a data reading module, a first memory, a data calculating module, a data conversion module, and a data filling module, where the first coordinate mapping module includes a first data fifo, and the second coordinate mapping module includes a second data fifo; as shown in the figure, the picture conversion method includes:
s401, the first coordinate mapping module and the second coordinate mapping module respectively extract a first coordinate information set in an initial picture and store the first coordinate information set in the first data first-in first-out memory and the second coordinate information set in the second data first-in first-out memory;
s402, the data reading module reads the first coordinate information in the first data first-in first-out memory, and first coordinate data corresponding to the first coordinate information in the first memory are obtained;
s403, the data reading module sends the first coordinate data to the second memory;
s404, the second memory stores the first coordinate data in a grouping mode to determine first data grouping information;
s405, the data reading module detects that the first data packet information exists in the second memory, determines that the second memory is in an effective state, and generates first state information;
s406, the data reading module sends the first state information to the data calculation module; the data calculation module acquires the first coordinate information in the second data first-in first-out memory and the first data grouping information in the second memory;
s407, the data calculation module determines second coordinate data according to the first coordinate information, the first data grouping information and a preset algorithm;
s408, the data conversion module and the data filling module process the second coordinate data from the data calculation module to obtain a target picture.
It can be seen that, in the embodiments of the present application, an image conversion method and related products are provided, which are applied to an electronic device, where the electronic device includes a first coordinate mapping module, a second coordinate mapping module, a data reading module, a first memory, a data calculating module, a data conversion module, and a data filling module, where the first coordinate mapping module includes a first data fifo, and the second coordinate mapping module includes a second data fifo; the method comprises the following steps: the first coordinate mapping module and the second coordinate mapping module respectively extract a first coordinate information set in an initial picture and store the first coordinate information set in the first data first-in first-out memory and the second data first-in first-out memory, then the data reading module reads the first coordinate information in the first data first-in first-out memory to obtain first coordinate data corresponding to the first coordinate information in the first memory, then the data computing module determines second coordinate data according to the first coordinate information set stored in the first coordinate data and the second data first-in first-out memory, and finally the data conversion module and the data filling module process the second coordinate data from the data computing module to obtain a target picture; therefore, the method is used for processing the coordinate data twice when the picture is converted, only part of row or column coordinate data is required to be acquired during each processing, and complete row data of the picture is not required to be cached, so that the requirement of in-chip caching is saved, the requirement of bus bandwidth is saved, data redundancy is reduced, and the high efficiency and convenience of picture conversion are improved.
In addition, the data reading module sends the first coordinate data to the second memory; the second memory stores the first coordinate data in a grouping mode to determine first data grouping information; the data reading module detects that the first data packet information exists in the second memory, determines that the second memory is in an effective state, and generates first state information; the data reading module sends the first state information to the data calculation module; the data calculation module acquires the first coordinate information in the second data first-in first-out memory and the first data grouping information in the second memory; the data calculation module determines second coordinate data according to the first coordinate information, the first data grouping information and a preset algorithm; the second memory stores data in groups, which is beneficial to reducing the required storage space and optimizing the existing image conversion method and device.
In accordance with the embodiments shown in fig. 2, fig. 3, and fig. 4, please refer to fig. 5, and fig. 5 is a schematic structural diagram of an electronic device 500 according to an embodiment of the present application, as shown in the figure, the electronic device 500 includes an application processor 510, a memory 520, a communication interface 530, and one or more programs 521, where the one or more programs 521 are stored in the memory 520 and configured to be executed by the application processor 510, and the one or more programs 521 include instructions for performing the following steps;
the first coordinate mapping module and the second coordinate mapping module respectively extract a first coordinate information set in an initial picture and store the first coordinate information set in the first data first-in first-out memory and the second coordinate information set in the second data first-in first-out memory;
the data reading module reads the first coordinate information in the first data FIFO memory, and acquires first coordinate data corresponding to the first coordinate information in the first memory, wherein the first coordinate information set is a coordinate information set of a part of pixel points in the initial picture;
the data calculation module determines second coordinate data according to the first coordinate data and the first coordinate information set stored in the second data first-in first-out memory, wherein the second coordinate information set corresponding to the second coordinate data is a coordinate information set of partial coordinates in the first coordinate information set;
the data conversion module and the data filling module process the second coordinate data from the data calculation module to acquire a target picture.
It can be seen that, in the embodiments of the present application, an image conversion method and related products are provided, which are applied to an electronic device, where the electronic device includes a first coordinate mapping module, a second coordinate mapping module, a data reading module, a first memory, a data calculating module, a data conversion module, and a data filling module, where the first coordinate mapping module includes a first data fifo, and the second coordinate mapping module includes a second data fifo; the method comprises the following steps: the first coordinate mapping module and the second coordinate mapping module respectively extract a first coordinate information set in an initial picture and store the first coordinate information set in the first data first-in first-out memory and the second data first-in first-out memory, then the data reading module reads the first coordinate information in the first data first-in first-out memory to obtain first coordinate data corresponding to the first coordinate information in the first memory, then the data computing module determines second coordinate data according to the first coordinate information set stored in the first coordinate data and the second data first-in first-out memory, and finally the data conversion module and the data filling module process the second coordinate data from the data computing module to obtain a target picture; therefore, the method is used for processing the coordinate data twice when the picture is converted, only part of row or column coordinate data is required to be acquired during each processing, and complete row data of the picture is not required to be cached, so that the requirement of in-chip caching is saved, the requirement of bus bandwidth is saved, data redundancy is reduced, and the high efficiency and convenience of picture conversion are improved.
In a possible example, the data reading module reads the first coordinate information in the first data fifo, and obtains first coordinate data corresponding to the first coordinate information in the first memory, where the instructions in the program are specifically configured to perform the following operations: the data reading module reads the first coordinate information in the first data first-in first-out memory and generates a first request, wherein the first request comprises a request for acquiring first coordinate data in the first memory; the data reading module sends the first coordinate information and the first request to the first memory; the first memory obtains initial coordinate data of the initial picture, and first coordinate data are determined according to the first coordinate information and the initial coordinate data; the data reading module acquires the first coordinate data from the first memory.
In one possible example, the electronic device further comprises a second memory; the data calculation module determines second coordinate data according to the first coordinate data and the first coordinate information set stored in the second data fifo, and the instructions in the program are specifically configured to perform the following operations: the data reading module sends the first coordinate data to the second memory; the second memory stores the first coordinate data in a grouping mode to determine first data grouping information; the data reading module detects that the first data packet information exists in the second memory, determines that the second memory is in a valid state, and generates first state information, wherein the first state information comprises information indicating that the second memory is in the valid state; the data reading module sends the first state information to the data calculation module; the data calculation module acquires the first coordinate information in the second data first-in first-out memory and the first data grouping information in the second memory; and the data calculation module determines second coordinate data according to the first coordinate information, the first data grouping information and a preset algorithm.
In a possible example, the first coordinate mapping module and the second coordinate mapping module respectively extract a first set of coordinate information in an initial picture and store the first set of coordinate information in the first data fifo and the second set of coordinate information in the second data fifo, and the instructions in the program are further specifically configured to: the first coordinate mapping module and the second coordinate mapping module acquire initial coordinate information of an initial picture; the first coordinate mapping module and the second coordinate mapping module acquire target coordinate information of a target picture to be generated; the first coordinate mapping module and the second coordinate mapping module call a preset mapping algorithm to calculate according to the initial coordinate information and the target coordinate information, and determine first coordinate information; and the first coordinate mapping module and the second coordinate mapping module extract a first coordinate information set in the initial picture according to the first coordinate information.
In one possible example, the data conversion module and the data filling module process the second coordinate data from the data calculation module to obtain a target picture, and the instructions in the program are specifically configured to perform the following operations: the data conversion module acquires the second coordinate data from the data calculation module, and determines third coordinate data according to a preset color space conversion strategy; the data conversion module determines that the third coordinate data and the target coordinate data have a one-to-one correspondence relationship, and determines that the third coordinate data is picture coordinate data; the data conversion module sends the picture coordinate data to the data filling module; and the data filling module processes the picture coordinate data to acquire a target picture.
In one possible example, the electronic device further comprises a spatial transformation calculation module; the data conversion module and the data filling module process the second coordinate data from the data calculation module to obtain a target picture, and the instructions in the program are specifically configured to perform the following operations: the data conversion module determines that the third coordinate data and the target coordinate data have a multiple corresponding relation, and sends the third coordinate data to the space conversion calculation module; the space conversion calculation module performs interpolation filtering processing on the third coordinate data to determine picture coordinate data; the space conversion calculation module sends the picture coordinate data to the data filling module; and the data filling module processes the picture coordinate data to acquire a target picture.
In one possible example, after the data conversion module and the data filling module process the second coordinate data from the data calculation module to obtain the target picture, the instructions in the program are specifically further configured to: the data filling module acquires the target picture, receives a second request from the electronic equipment, and sends the target picture to a preset object, wherein the second request comprises a request for acquiring the target picture by the preset object.
The above description has introduced the solution of the embodiment of the present application mainly from the perspective of the method-side implementation process. It is understood that the electronic device comprises corresponding hardware structures and/or software modules for performing the respective functions in order to realize the above-mentioned functions. Those of skill in the art will readily appreciate that the present application is capable of hardware or a combination of hardware and computer software implementing the various illustrative elements and algorithm steps described in connection with the embodiments provided herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the electronic device may be divided into the functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
Fig. 6 is a block diagram showing functional units of a picture conversion apparatus 600 according to an embodiment of the present application. The image conversion device 600 is applied to an electronic device, and the electronic device includes a first coordinate mapping module, a second coordinate mapping module, a data reading module, a first memory, a data calculating module, a data conversion module, and a data filling module, wherein the first coordinate mapping module includes a first data fifo memory, and the second coordinate mapping module includes a second data fifo memory; the picture conversion apparatus 600 includes a processing unit 601, a communication unit 602, and a storage unit 603, wherein,
the processing unit 601 is configured to extract a first coordinate information set in an initial picture by the first coordinate mapping module and the second coordinate mapping module, and store the first coordinate information set in the first data fifo and the second coordinate information set in the second data fifo; the data reading module is used for reading the first coordinate information in the first data first-in first-out memory and acquiring first coordinate data corresponding to the first coordinate information in the first memory, wherein the first coordinate information set is a coordinate information set of a part of pixel points in the initial picture; the data calculation module is used for determining second coordinate data according to the first coordinate data and the first coordinate information set stored in the second data first-in first-out memory, and the second coordinate information set corresponding to the second coordinate data is a coordinate information set of partial coordinates in the first coordinate information set; and the data conversion module and the data filling module are used for processing the second coordinate data from the data calculation module to acquire a target picture.
It can be seen that, in the embodiments of the present application, an image conversion method and related products are provided, which are applied to an electronic device, where the electronic device includes a first coordinate mapping module, a second coordinate mapping module, a data reading module, a first memory, a data calculating module, a data conversion module, and a data filling module, where the first coordinate mapping module includes a first data fifo, and the second coordinate mapping module includes a second data fifo; the method comprises the following steps: the first coordinate mapping module and the second coordinate mapping module respectively extract a first coordinate information set in an initial picture and store the first coordinate information set in the first data first-in first-out memory and the second data first-in first-out memory, then the data reading module reads the first coordinate information in the first data first-in first-out memory to obtain first coordinate data corresponding to the first coordinate information in the first memory, then the data computing module determines second coordinate data according to the first coordinate information set stored in the first coordinate data and the second data first-in first-out memory, and finally the data conversion module and the data filling module process the second coordinate data from the data computing module to obtain a target picture; therefore, the method is used for processing the coordinate data twice when the picture is converted, only part of row or column coordinate data is required to be acquired during each processing, and complete row data of the picture is not required to be cached, so that the requirement of in-chip caching is saved, the requirement of bus bandwidth is saved, data redundancy is reduced, and the high efficiency and convenience of picture conversion are improved.
It can be understood that, since the method embodiment and the apparatus embodiment are different presentation forms of the same technical concept, the content of the method embodiment portion in the present application should be synchronously adapted to the apparatus embodiment portion, and is not described herein again.
In a possible example, the data reading module reads the first coordinate information in the first data fifo, and obtains first coordinate data corresponding to the first coordinate information in the first memory, and the processing unit 601 is specifically configured to: the data reading module reads the first coordinate information in the first data first-in first-out memory and generates a first request, wherein the first request comprises a request for acquiring first coordinate data in the first memory; the data reading module sends the first coordinate information and the first request to the first memory; the first memory obtains initial coordinate data of the initial picture, and first coordinate data are determined according to the first coordinate information and the initial coordinate data; the data reading module acquires the first coordinate data from the first memory.
In one possible example, the electronic device further comprises a second memory; the data calculation module determines second coordinate data according to the first coordinate data and the first coordinate information set stored in the second data fifo, and the processing unit 601 is specifically configured to: the data reading module sends the first coordinate data to the second memory; the second memory stores the first coordinate data in a grouping mode to determine first data grouping information; the data reading module detects that the first data packet information exists in the second memory, determines that the second memory is in a valid state, and generates first state information, wherein the first state information comprises information indicating that the second memory is in the valid state; the data reading module sends the first state information to the data calculation module; the data calculation module acquires the first coordinate information in the second data first-in first-out memory and the first data grouping information in the second memory; and the data calculation module determines second coordinate data according to the first coordinate information, the first data grouping information and a preset algorithm.
In a possible example, the first coordinate mapping module and the second coordinate mapping module respectively extract a first set of coordinate information in an initial picture and store the first set of coordinate information in the first data fifo and the second data fifo, and before storing the first set of coordinate information in the first data fifo and the second set of coordinate information in the second data fifo, the processing unit 601 is further specifically configured to: the first coordinate mapping module and the second coordinate mapping module acquire initial coordinate information of an initial picture; the first coordinate mapping module and the second coordinate mapping module acquire target coordinate information of a target picture to be generated; the first coordinate mapping module and the second coordinate mapping module call a preset mapping algorithm to calculate according to the initial coordinate information and the target coordinate information, and determine first coordinate information; and the first coordinate mapping module and the second coordinate mapping module extract a first coordinate information set in the initial picture according to the first coordinate information.
In a possible example, the data conversion module and the data filling module process the second coordinate data from the data calculation module to obtain a target picture, and the processing unit 601 is specifically configured to: the data conversion module acquires the second coordinate data from the data calculation module, and determines third coordinate data according to a preset color space conversion strategy; the data conversion module determines that the third coordinate data and the target coordinate data have a one-to-one correspondence relationship, and determines that the third coordinate data is picture coordinate data; the data conversion module sends the picture coordinate data to the data filling module; and the data filling module processes the picture coordinate data to acquire a target picture.
In one possible example, the electronic device further comprises a spatial transformation calculation module; the data conversion module and the data filling module process the second coordinate data from the data calculation module to obtain a target picture, and the processing unit 601 is specifically configured to: the data conversion module determines that the third coordinate data and the target coordinate data have a multiple corresponding relation, and sends the third coordinate data to the space conversion calculation module; the space conversion calculation module performs interpolation filtering processing on the third coordinate data to determine picture coordinate data; the space conversion calculation module sends the picture coordinate data to the data filling module; and the data filling module processes the picture coordinate data to acquire a target picture.
In a possible example, after the data conversion module and the data filling module process the second coordinate data from the data calculation module to obtain the target picture, the processing unit 601 is further specifically configured to: the data filling module acquires the target picture, receives a second request from the electronic equipment, and sends the target picture to a preset object, wherein the second request comprises a request for acquiring the target picture by the preset object.
Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, the computer program enabling a computer to execute part or all of the steps of any one of the methods described in the above method embodiments, and the computer includes an electronic device.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as described in the above method embodiments. The computer program product may be a software installation package, the computer comprising an electronic device.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (ram), a removable hard disk, a magnetic disk, or an optical disk, which can store program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access memories (secondary memories), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. The picture conversion method is applied to electronic equipment, wherein the electronic equipment comprises a first coordinate mapping module, a second coordinate mapping module, a data reading module, a first memory, a data calculation module, a data conversion module and a data filling module, wherein the first coordinate mapping module comprises a first data first-in first-out memory, and the second coordinate mapping module comprises a second data first-in first-out memory; the method comprises the following steps:
the first coordinate mapping module and the second coordinate mapping module respectively extract a first coordinate information set in an initial picture and store the first coordinate information set in the first data first-in first-out memory and the second coordinate information set in the second data first-in first-out memory;
the data reading module reads the first coordinate information in the first data FIFO memory, and acquires first coordinate data corresponding to the first coordinate information in the first memory, wherein the first coordinate information set is a coordinate information set of a part of pixel points in the initial picture;
the data calculation module determines second coordinate data according to the first coordinate data and the first coordinate information set stored in the second data first-in first-out memory, wherein the second coordinate information set corresponding to the second coordinate data is a coordinate information set of partial coordinates in the first coordinate information set;
the data conversion module and the data filling module process the second coordinate data from the data calculation module to acquire a target picture.
2. The method according to claim 1, wherein the reading of the first coordinate information in the first data fifo by the data reading module to obtain first coordinate data corresponding to the first coordinate information in the first memory comprises:
the data reading module reads the first coordinate information in the first data first-in first-out memory and generates a first request, wherein the first request comprises a request for acquiring first coordinate data in the first memory;
the data reading module sends the first coordinate information and the first request to the first memory;
the first memory obtains initial coordinate data of the initial picture, and first coordinate data are determined according to the first coordinate information and the initial coordinate data;
the data reading module acquires the first coordinate data from the first memory.
3. The method of claim 2, wherein the electronic device further comprises a second memory; the data calculation module determines second coordinate data according to the first coordinate data and the first coordinate information set stored in the second data first-in first-out memory, and comprises:
the data reading module sends the first coordinate data to the second memory;
the second memory stores the first coordinate data in a grouping mode to determine first data grouping information;
the data reading module detects that the first data packet information exists in the second memory, determines that the second memory is in a valid state, and generates first state information, wherein the first state information comprises information indicating that the second memory is in the valid state;
the data reading module sends the first state information to the data calculation module; the data calculation module acquires the first coordinate information in the second data first-in first-out memory and the first data grouping information in the second memory;
and the data calculation module determines second coordinate data according to the first coordinate information, the first data grouping information and a preset algorithm.
4. The method of claim 3, wherein the first coordinate mapping module and the second coordinate mapping module respectively extract a first set of coordinate information in an initial picture and store the first set of coordinate information in the first data FIFO and the second data FIFO, and the method further comprises:
the first coordinate mapping module and the second coordinate mapping module acquire initial coordinate information of an initial picture;
the first coordinate mapping module and the second coordinate mapping module acquire target coordinate information of a target picture to be generated;
the first coordinate mapping module and the second coordinate mapping module call a preset mapping algorithm to calculate according to the initial coordinate information and the target coordinate information, and determine first coordinate information;
and the first coordinate mapping module and the second coordinate mapping module extract a first coordinate information set in the initial picture according to the first coordinate information.
5. The method of claim 4, wherein the data conversion module and the data population module process the second coordinate data from the data computation module to obtain a target picture, comprising:
the data conversion module acquires the second coordinate data from the data calculation module, and determines third coordinate data according to a preset color space conversion strategy;
the data conversion module determines that the third coordinate data and the target coordinate data have a one-to-one correspondence relationship, and determines that the third coordinate data is picture coordinate data;
the data conversion module sends the picture coordinate data to the data filling module;
and the data filling module processes the picture coordinate data to acquire a target picture.
6. The method of claim 4, wherein the electronic device further comprises a spatial transformation computation module; the data conversion module and the data filling module process the second coordinate data from the data calculation module to obtain a target picture, including:
the data conversion module determines that the third coordinate data and the target coordinate data have a multiple corresponding relation, and sends the third coordinate data to the space conversion calculation module;
the space conversion calculation module performs interpolation filtering processing on the third coordinate data to determine picture coordinate data;
the space conversion calculation module sends the picture coordinate data to the data filling module;
and the data filling module processes the picture coordinate data to acquire a target picture.
7. The method of claim 1, wherein after the data conversion module and the data population module process the second coordinate data from the data computation module to obtain the target picture, the method further comprises:
the data filling module acquires the target picture, receives a second request from the electronic equipment, and sends the target picture to a preset object, wherein the second request comprises a request for acquiring the target picture by the preset object.
8. The picture conversion device is applied to electronic equipment, wherein the electronic equipment comprises a first coordinate mapping module, a second coordinate mapping module, a data reading module, a first memory, a data calculation module, a data conversion module and a data filling module, wherein the first coordinate mapping module comprises a first data first-in first-out memory, and the second coordinate mapping module comprises a second data first-in first-out memory; the picture conversion apparatus includes a processing unit, a communication unit, and a storage unit, wherein,
the processing unit is used for the first coordinate mapping module and the second coordinate mapping module to respectively extract a first coordinate information set in an initial picture and store the first coordinate information set in the first data first-in first-out memory and the second coordinate information set in the second data first-in first-out memory; the data reading module is used for reading the first coordinate information in the first data first-in first-out memory and acquiring first coordinate data corresponding to the first coordinate information in the first memory, wherein the first coordinate information set is a coordinate information set of a part of pixel points in the initial picture; the data calculation module is used for determining second coordinate data according to the first coordinate data and the first coordinate information set stored in the second data first-in first-out memory, and the second coordinate information set corresponding to the second coordinate data is a coordinate information set of partial coordinates in the first coordinate information set; and the data conversion module and the data filling module are used for processing the second coordinate data from the data calculation module to acquire a target picture.
9. An electronic device comprising a processor, a memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any of claims 1-7.
10. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any one of claims 1-7.
CN201911395310.7A 2019-12-30 2019-12-30 Picture conversion method and related product Active CN111161135B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911395310.7A CN111161135B (en) 2019-12-30 2019-12-30 Picture conversion method and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911395310.7A CN111161135B (en) 2019-12-30 2019-12-30 Picture conversion method and related product

Publications (2)

Publication Number Publication Date
CN111161135A true CN111161135A (en) 2020-05-15
CN111161135B CN111161135B (en) 2023-06-09

Family

ID=70559200

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911395310.7A Active CN111161135B (en) 2019-12-30 2019-12-30 Picture conversion method and related product

Country Status (1)

Country Link
CN (1) CN111161135B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017198070A1 (en) * 2016-05-16 2017-11-23 深圳市中兴微电子技术有限公司 Multi-channel data memory and access method and apparatus therefor, and storage medium
CN107977923A (en) * 2017-12-13 2018-05-01 深圳云天励飞技术有限公司 Image processing method, device, electronic equipment and computer-readable recording medium
CN108986034A (en) * 2018-07-02 2018-12-11 武汉珞珈德毅科技股份有限公司 A kind of raster data coordinate transformation method, system, terminal device and storage medium
US20190050989A1 (en) * 2014-03-10 2019-02-14 Smith & Nephew, Inc. Systems and methods for evaluating accuracy in a patient model

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190050989A1 (en) * 2014-03-10 2019-02-14 Smith & Nephew, Inc. Systems and methods for evaluating accuracy in a patient model
WO2017198070A1 (en) * 2016-05-16 2017-11-23 深圳市中兴微电子技术有限公司 Multi-channel data memory and access method and apparatus therefor, and storage medium
CN107977923A (en) * 2017-12-13 2018-05-01 深圳云天励飞技术有限公司 Image processing method, device, electronic equipment and computer-readable recording medium
CN108986034A (en) * 2018-07-02 2018-12-11 武汉珞珈德毅科技股份有限公司 A kind of raster data coordinate transformation method, system, terminal device and storage medium

Also Published As

Publication number Publication date
CN111161135B (en) 2023-06-09

Similar Documents

Publication Publication Date Title
CN110933497B (en) Video image data frame insertion processing method and related equipment
CN109992541B (en) Data carrying method, computing device and computer storage medium
CN111064863B (en) Image data processing method and related device
CN107333062A (en) A kind of method, system and device of Computer Vision
CN108055578A (en) A kind of image processing method, device and vision signal splicing device
CN111724304A (en) Image scaling method and device, terminal equipment and storage medium
CN111984189A (en) Neural network computing device, data reading method, data storage method and related equipment
CN111369444B (en) Image scaling processing method and device
CN111161135B (en) Picture conversion method and related product
CN107977923B (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
CN112165572A (en) Image processing method, device, terminal and storage medium
CN112511480B (en) Secondary FFT or IFFT transformation method and related product
CN109993274B (en) Artificial intelligence computing device and related products
CN115205099A (en) Image data transmission method and device and electronic equipment
CN109784226B (en) Face snapshot method and related device
CN114153408A (en) Image display control method and related equipment
CN114007073A (en) Large scene based picture storage system and use method thereof
CN112511765B (en) Image rotation method and device, storage medium and electronic equipment
CN113658049A (en) Image transposition method, equipment and computer readable storage medium
CN112765085A (en) Data transmission method and related device
CN117011146B (en) Image scaling method and device, electronic equipment and storage medium
CN111145128A (en) Color enhancement method and related device
CN110941399A (en) Data processing method and device and electronic equipment
CN110384926B (en) Position determining method and device
JP2005027193A (en) Image transfer device, method, and program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant