CN112954356A - Image transmission processing method and device, storage medium and electronic equipment - Google Patents

Image transmission processing method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN112954356A
CN112954356A CN202110114181.0A CN202110114181A CN112954356A CN 112954356 A CN112954356 A CN 112954356A CN 202110114181 A CN202110114181 A CN 202110114181A CN 112954356 A CN112954356 A CN 112954356A
Authority
CN
China
Prior art keywords
image
processing
processed
discrete cosine
transformation
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.)
Pending
Application number
CN202110114181.0A
Other languages
Chinese (zh)
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.)
Xian Wanxiang Electronics Technology Co Ltd
Original Assignee
Xian Wanxiang Electronics Technology 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 Xian Wanxiang Electronics Technology Co Ltd filed Critical Xian Wanxiang Electronics Technology Co Ltd
Priority to CN202110114181.0A priority Critical patent/CN112954356A/en
Publication of CN112954356A publication Critical patent/CN112954356A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/124Quantisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/182Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a pixel
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
    • H04N19/625Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding using discrete cosine transform [DCT]

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Discrete Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The invention discloses an image transmission processing method and device, a storage medium and electronic equipment. Wherein, the method comprises the following steps: acquiring an image to be processed, wherein the image to be processed is a whole frame image; obtaining a transformation processing result by carrying out discrete cosine transformation processing on the image to be processed; carrying out quantization processing and coding processing on the conversion processing result to obtain a code stream to be transmitted; and outputting the code stream to be transmitted. The invention solves the technical problems of image blocking effect and periodic noise increase in the image compression algorithm in the prior art.

Description

Image transmission processing method and device, storage medium and electronic equipment
Technical Field
The present invention relates to the field of image transmission processing, and in particular, to an image transmission processing method and apparatus, a storage medium, and an electronic device.
Background
In the prior art, the image compression algorithm divides a video and an image into macro blocks, and extracts useful information from the macro blocks in a time domain, a space domain or a frequency domain, so as to realize data compression. However, when an image is processed in a block mode, due to discontinuity between macro blocks and a slight boundary error, blocking effects may occur, and the blocking effects may cause a noticeable grid (e.g., mosaic) or periodic noise to appear on a reconstructed image.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides an image transmission processing method and device, a storage medium and electronic equipment, which are used for at least solving the technical problems that the image compression algorithm in the prior art causes the blocking effect of an image and increases periodic noise.
According to an aspect of an embodiment of the present invention, there is provided an image transfer processing method including: acquiring an image to be processed, wherein the image to be processed is a whole frame image; obtaining a transformation processing result by carrying out discrete cosine transformation processing on the image to be processed; carrying out quantization processing and coding processing on the conversion processing result to obtain a code stream to be transmitted; and outputting the code stream to be transmitted.
Optionally, the whole frame of image is an image that is not divided into macroblocks.
Optionally, the acquiring the image to be processed includes: acquiring an original image and pixel values of the original image; and performing filling processing on the original image based on the pixel value of the original image to obtain the image to be processed, wherein the filling processing comprises the following steps: and (4) zero padding, wherein the row data and the column data of the image to be processed obtained by the padding processing are the same.
Optionally, the obtaining of the transform processing result by performing discrete cosine transform processing on the image to be processed includes performing discrete cosine transform processing on the image to be processed in a spatial domain to obtain the image to be processed transformed from the spatial domain to a frequency domain.
Optionally, the obtaining a transform processing result by performing discrete cosine transform processing on the image to be processed includes: detecting whether the discrete cosine transform of the image to be processed is multidimensional discrete cosine transform; if the detection result is yes, decomposing the multidimensional discrete cosine transform into a plurality of one-dimensional discrete cosine transforms based on the dimensionality of the multidimensional discrete cosine transform; determining a transformation matrix of the image to be processed by adopting a plurality of calculation formulas of one-dimensional discrete cosine transformation, wherein the transformation matrix is determined based on the resolution of the image to be processed and a variation parameter corresponding to the resolution; and performing discrete cosine transform processing on the row data and the column data of the image to be processed according to the transformation matrix to obtain the transformation processing result.
Optionally, the discrete cosine transform processing includes: performing row transformation processing and column transformation processing, and performing discrete cosine transformation processing on the row data and the column data of the image to be processed according to the transformation matrix, wherein the discrete cosine transformation processing comprises the following steps: acquiring line data of the image to be processed; performing the row transformation processing on the row data by adopting the transformation matrix to obtain a row transformation processing result; performing line conversion processing on the image to be processed to obtain column data of the image to be processed; and after zero padding processing is carried out on the column data, the column transformation processing is carried out on the column data by adopting the transformation matrix to obtain a column transformation processing result.
Optionally, the quantizing and encoding the transform processing result to obtain the code stream to be transmitted includes: acquiring a frequency domain coefficient of the transformation processing result; carrying out quantization processing on the frequency domain coefficient to obtain a quantization processing result; and coding the quantization processing result to obtain the code stream to be transmitted.
According to another aspect of the embodiments of the present invention, there is also provided an image transfer processing apparatus including: the device comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring an image to be processed, and the image to be processed is a whole frame image which is not subjected to segmentation processing; the first processing module is used for performing discrete cosine transform processing on the image to be processed to obtain a transform processing result, wherein the discrete cosine transform processing is used for transforming the image to be processed from a spatial domain to a frequency domain; the second processing module is used for carrying out quantization processing and coding processing on the conversion processing result to obtain a code stream to be transmitted; and the output module is used for outputting the code stream to be transmitted.
Optionally, the obtaining module includes: a first acquisition unit configured to acquire an original image and pixel values of the original image; a first processing unit, configured to perform filling processing on an original image based on a pixel value of the original image to obtain the to-be-processed image, where the filling processing includes: and (4) zero padding, wherein the row data and the column data of the image to be processed obtained by the padding processing are the same.
Optionally, the first processing module includes: a detection unit, configured to detect whether discrete cosine transform of the image to be processed is multidimensional discrete cosine transform; a decomposition unit configured to decompose the multidimensional discrete cosine transform into a plurality of one-dimensional discrete cosine transforms based on a dimension of the multidimensional discrete cosine transform if the detection result is yes; a determining unit, configured to determine a transformation matrix of the image to be processed by using a plurality of calculation formulas of the one-dimensional discrete cosine transform, where the transformation matrix is determined based on a resolution of the image to be processed and a variation parameter corresponding to the resolution; and the second processing unit is used for performing discrete cosine transform processing on the row data and the column data of the image to be processed according to the transformation matrix to obtain the transformation processing result.
Optionally, the discrete cosine transform processing includes: a row transform process and a column transform process, the second processing unit including: a second obtaining unit, configured to obtain line data of the to-be-processed image; a third processing unit, configured to perform the row transformation processing on the row data by using the transformation matrix to obtain a row transformation processing result; a fourth processing unit, configured to perform line conversion processing on the to-be-processed image to obtain column data of the to-be-processed image; and a fifth processing unit, configured to perform the column transformation processing on the column data by using the transformation matrix after performing zero padding processing on the column data, so as to obtain a column transformation processing result.
Optionally, the second processing module includes: a fourth obtaining unit, configured to obtain a frequency domain coefficient of the transform processing result; a sixth obtaining unit, configured to perform quantization processing on the frequency domain coefficient to obtain a quantization processing result; and a seventh obtaining unit, configured to perform coding processing on the quantization processing result to obtain the code stream to be transmitted.
According to another aspect of the embodiments of the present invention, there is also provided a non-volatile storage medium storing a plurality of instructions, the instructions being adapted to be loaded by a processor and to execute any one of the above-mentioned image transfer processing methods.
According to another aspect of the embodiments of the present invention, there is also provided a processor for executing a program, wherein the program is configured to execute any one of the image transmission processing methods described above when running.
According to another aspect of the embodiments of the present invention, there is also provided an electronic device, including a memory and a processor, where the memory stores therein a computer program, and the processor is configured to execute the computer program to perform any one of the above-mentioned image transmission processing methods.
In the embodiment of the invention, an image to be processed is obtained, wherein the image to be processed is an entire frame image; obtaining a transformation processing result by carrying out discrete cosine transformation processing on the image to be processed; carrying out quantization processing and coding processing on the conversion processing result to obtain a code stream to be transmitted; the code stream to be transmitted is output, the purpose of avoiding causing the blocking effect and the periodic noise of the image is achieved, the technical effect of saving the image transmission code stream is achieved, and the technical problems that the blocking effect of the image and the periodic noise are increased in an image compression algorithm in the prior art are solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a flowchart of an image transmission processing method according to an embodiment of the present invention;
FIG. 2 is a schematic view of an alternative image transmission processing method according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an image transmission processing apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, 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 invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
According to an embodiment of the present invention, there is provided an embodiment of an image transfer processing method, it is noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer executable instructions, and that while a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than here.
Fig. 1 is a flowchart of an image transfer processing method according to an embodiment of the present invention, as shown in fig. 1, the method including the steps of:
step S102, acquiring an image to be processed, wherein the image to be processed is a whole frame image;
step S104, performing discrete cosine transform processing on the image to be processed to obtain a transform processing result;
step S106, carrying out quantization processing and coding processing on the conversion processing result to obtain a code stream to be transmitted;
and step S108, outputting the code stream to be transmitted.
In the embodiment of the invention, an image to be processed is obtained, wherein the image to be processed is an entire frame image; obtaining a transformation processing result by carrying out discrete cosine transformation processing on the image to be processed; carrying out quantization processing and coding processing on the conversion processing result to obtain a code stream to be transmitted; the code stream to be transmitted is output, the purpose of avoiding causing the blocking effect and the periodic noise of the image is achieved, the technical effect of saving the image transmission code stream is achieved, and the technical problems that the blocking effect of the image and the periodic noise are increased in an image compression algorithm in the prior art are solved.
In an alternative embodiment, the whole frame of image is an image that is not divided into macroblocks.
As an alternative embodiment, since the conventional image processing principle is to divide the image into a plurality of macro blocks by using an image dividing technique and output the plurality of macro blocks one by one to reduce the amount of operations, the block effect of the image is caused and the periodic noise is increased.
In order to solve the technical problem, in an optional embodiment of directly compressing a whole image frame by using an FPGA or an ASIC, first, a current frame image (whole frame image) may be processed into an image with the same row data amount and column data amount, then, the processed image may be compressed after performing space-frequency domain conversion, and the whole frame image data to be transmitted may be output.
In an alternative embodiment, acquiring the image to be processed comprises:
step S202, acquiring an original image and a pixel value of the original image;
step S204, performing filling processing on the original image based on the pixel value of the original image to obtain the image to be processed, wherein the filling processing comprises the following steps: and (4) zero padding, wherein the row data and the column data of the image to be processed obtained by the padding processing are the same.
Fig. 2 is a schematic view of a scene of an alternative image transmission processing method according to an embodiment of the present application, and the following detailed description is made with reference to fig. 2 and taking a specific example:
for example, if a to-be-processed image with 1920 × 1080 pixels is subjected to transform processing from a space domain to a frequency domain of a whole frame, the specific processing flow is as follows: firstly, acquiring an original image, and filling the original image based on pixel values of the original image, so that the 1920-by-1080 pixel image is changed into a 1920-by-1920 image; optionally, the whole frame of image may be padded with 0.
In an optional embodiment, obtaining a transform processing result by performing discrete cosine transform processing on the image to be processed includes:
step S302, discrete cosine transform processing is carried out on the to-be-processed image in the spatial domain, and the to-be-processed image transformed from the spatial domain to the frequency domain is obtained.
In the embodiment of the present application, discrete cosine transform processing is performed on an image to be processed in a spatial domain, that is, the image to be processed is transformed from the spatial domain to a frequency domain.
In an optional embodiment, obtaining a transform processing result by performing discrete cosine transform processing on the image to be processed includes:
step S402, detecting whether the discrete cosine transform of the image to be processed is multidimensional discrete cosine transform;
step S404, if the detection result is yes, decomposing the multidimensional discrete cosine transform into a plurality of one-dimensional discrete cosine transforms based on the dimensionality of the multidimensional discrete cosine transform;
step S406, determining a transformation matrix of the image to be processed by using a plurality of calculation formulas of the one-dimensional discrete cosine transform, wherein the transformation matrix is determined based on the resolution of the image to be processed and a variation parameter corresponding to the resolution;
step S408, performing discrete cosine transform on the row data and the column data of the image to be processed according to the transform matrix to obtain the transform processing result.
Optionally, taking the above-mentioned multidimensional discrete cosine transform as a two-dimensional discrete cosine transform (2D-DCT) as an example, when performing 2D-DCT transform from spatial domain to frequency domain, the 2D-DCT may be decomposed into two times of one-dimensional DCT transform, and a transform matrix is set to be H by a formula of the one-dimensional DCT; it should be noted that, when processing an image, the embodiment of the present application directly performs DCT transform on the whole frame data without performing image segmentation (a chen-DCT fast algorithm may be used), directly transforms the whole frame image from a spatial domain to a frequency domain, and then performs quantization and coding on a frequency domain coefficient.
The calculation formula of the above dimensional discrete cosine transform is as follows:
Figure BDA0002920074400000061
since a row of 1920X 1080 pixels of the image to be processed is 1920 points, performing a DCT requires 1920X 1920 multiplications, since the parameters of the transform matrix H are fixed for the same resolution, the multiplication is a variable X (pixel) multiplied by a fixed number, and multiplied by a fixed number, the fixed parameters can be decomposed into a (n) 2X n + a (n-1) 2X (n-1) +. a (2) 2X 2+ a (1) 2X 1+ a (0) 2X 0, and then shift is used to replace the multiplication, which is more advantageous for hardware pipeline design.
For example: if the 64-bit-width dequantization DCT transform matrix of 1920 dots is taken, h1.1 ═ sqrt (2/3840) × (2 × 1+1) × pi/3840) × 2^ 64' h5D7a82CABFDE000, h1.1 is decomposed into a form of a (n) 2^ n + a (n-1)2^ (n-1) +. a (2) ^2+ a (1) 2^1+ a (0) 2^0, then a 2/3840, a 2/3840, a 2/3840, a 2/3840, a 2/3840, a 2/3840, a 2/3840, a 2/3840, a 2/3840, a 2/3840, a 2/3840 a, 2/3840 a 36.
In an alternative embodiment, the discrete cosine transform process comprises: performing row transformation processing and column transformation processing, and performing discrete cosine transformation processing on the row data and the column data of the image to be processed according to the transformation matrix, wherein the discrete cosine transformation processing comprises the following steps:
step S502, acquiring line data of the image to be processed;
step S504, adopt the above-mentioned transformation matrix to carry on the above-mentioned line transformation to the above-mentioned row of data, receive the line transformation and process the result;
step S506, line conversion processing is carried out on the image to be processed to obtain column data of the image to be processed;
in step S508, after the zero padding process is performed on the column data, the column transformation process is performed on the column data by using the transformation matrix, and a column transformation process result is obtained.
As an alternative embodiment, if the row data is subjected to the row transformation processing according to a matrix 1920 × 1920, a row transformation processing result is obtained; performing row-column conversion on the image to be processed by using Pingpong operation to obtain row data of the image to be processed; because one column of data only has 1080 points, the data behind the 1080 points can be filled with zero, and then the column transformation processing is carried out on the column data by adopting the transformation matrix to obtain a column transformation processing result, namely the H transformation matrix can be repeatedly utilized, and the hardware resource is saved.
In an optional embodiment, the quantizing and encoding the transform processing result to obtain the to-be-transmitted code stream includes:
step S602, obtaining the frequency domain coefficient of the transformation processing result;
step S604, carrying out quantization processing on the frequency domain coefficient to obtain a quantization processing result;
step S606, performing coding processing on the quantization processing result to obtain the code stream to be transmitted.
In the embodiment of the application, quantization can be performed by taking the quantization mode of JPEG as reference after the conversion from the space domain to the frequency domain is performed, and the final code stream to be transmitted is obtained by performing encoding processing after the quantization processing is completed.
Optionally, since the whole frame domain transform processing is performed in the embodiment of the present application, and then the high-frequency AC parameters are concentrated in one block in the code stream, unlike the block partitioning technique in the prior art, which is concentrated in only a small block, the use of the run-length coding can save the transmission code stream.
After the processing is performed by the scheme provided by the embodiment of the application, the reason why the code stream can be saved is as follows: firstly, almost all the high-frequency parameters are 0 after quantization; in the coding technology based on the block processing in the prior art, the number range of continuous 0 after the high-frequency parameter quantization is 0-63, but in the invention, the number range of continuous 0 reaches 0- (1920 x 1080-1) by directly performing domain transformation on the whole frame image, so that when the run-length coding RLC is used, the plurality of 0 s only need few information for identification, and therefore, the transmission code stream can be greatly saved.
Example 2
According to an embodiment of the present invention, there is also provided an apparatus embodiment for implementing the image transmission processing method, and fig. 3 is a schematic structural diagram of an image transmission processing apparatus according to an embodiment of the present invention, as shown in fig. 3, the image transmission processing apparatus includes: an acquisition module 30, a first processing module 32, a second processing module 34, and an output module 36, wherein:
an obtaining module 30, configured to obtain an image to be processed, where the image to be processed is an entire frame image that is not subjected to segmentation processing; a first processing module 32, configured to perform discrete cosine transform processing on the to-be-processed image to obtain a transform processing result, where the discrete cosine transform processing is used to transform the to-be-processed image from a spatial domain to a frequency domain; a second processing module 34, configured to perform quantization processing and coding processing on the transform processing result to obtain a code stream to be transmitted; and the output module 36 is configured to output the code stream to be transmitted.
In an optional embodiment, the obtaining module includes: a first acquisition unit configured to acquire an original image and pixel values of the original image; a first processing unit, configured to perform filling processing on an original image based on a pixel value of the original image to obtain the to-be-processed image, where the filling processing includes: and (4) zero padding, wherein the row data and the column data of the image to be processed obtained by the padding processing are the same.
In an optional embodiment, the first processing module includes: a detection unit, configured to detect whether discrete cosine transform of the image to be processed is multidimensional discrete cosine transform; a decomposition unit configured to decompose the multidimensional discrete cosine transform into a plurality of one-dimensional discrete cosine transforms based on a dimension of the multidimensional discrete cosine transform if the detection result is yes; a determining unit, configured to determine a transformation matrix of the image to be processed by using a plurality of calculation formulas of the one-dimensional discrete cosine transform, where the transformation matrix is determined based on a resolution of the image to be processed and a variation parameter corresponding to the resolution; and the second processing unit is used for performing discrete cosine transform processing on the row data and the column data of the image to be processed according to the transformation matrix to obtain the transformation processing result.
In an alternative embodiment, the discrete cosine transform process comprises: a row transform process and a column transform process, the second processing unit including: a second obtaining unit, configured to obtain line data of the to-be-processed image; a third processing unit, configured to perform the row transformation processing on the row data by using the transformation matrix to obtain a row transformation processing result; a fourth processing unit, configured to perform line conversion processing on the to-be-processed image to obtain column data of the to-be-processed image; and a fifth processing unit, configured to perform the column transformation processing on the column data by using the transformation matrix after performing zero padding processing on the column data, so as to obtain a column transformation processing result.
In an optional embodiment, the second processing module includes: a fourth obtaining unit, configured to obtain a frequency domain coefficient of the transform processing result; a sixth obtaining unit, configured to perform quantization processing on the frequency domain coefficient to obtain a quantization processing result; and a seventh obtaining unit, configured to perform coding processing on the quantization processing result to obtain the code stream to be transmitted.
It should be noted that the above modules may be implemented by software or hardware, for example, for the latter, the following may be implemented: the modules can be located in the same processor; alternatively, the modules may be located in different processors in any combination.
It should be noted here that the acquiring module 30, the first processing module 32, the second processing module 34 and the output module 36 correspond to steps S102 to S108 in embodiment 1, and the modules are the same as the corresponding steps in implementation examples and application scenarios, but are not limited to the disclosure in embodiment 1. It should be noted that the modules described above may be implemented in a computer terminal as part of an apparatus.
It should be noted that, reference may be made to the relevant description in embodiment 1 for alternative or preferred embodiments of this embodiment, and details are not described here again.
The image transmission processing device may further include a processor and a memory, the acquiring module 30, the first processing module 32, the second processing module 34, the output module 36, and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to implement corresponding functions.
The processor comprises a kernel, and the kernel calls a corresponding program unit from the memory, wherein one or more than one kernel can be arranged. The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
According to an embodiment of the present application, there is also provided an embodiment of a non-volatile storage medium. Optionally, in this embodiment, the nonvolatile storage medium includes a stored program, and the apparatus in which the nonvolatile storage medium is located is controlled to execute any one of the image transmission processing methods when the program runs.
Optionally, in this embodiment, the nonvolatile storage medium may be located in any one of a group of computer terminals in a computer network, or in any one of a group of mobile terminals, and the nonvolatile storage medium includes a stored program.
Optionally, the apparatus in which the non-volatile storage medium is controlled to perform the following functions when the program is executed: acquiring an image to be processed, wherein the image to be processed is a whole frame image; obtaining a transformation processing result by carrying out discrete cosine transformation processing on the image to be processed; carrying out quantization processing and coding processing on the conversion processing result to obtain a code stream to be transmitted; and outputting the code stream to be transmitted.
Optionally, the apparatus in which the non-volatile storage medium is controlled to perform the following functions when the program is executed: acquiring an original image and pixel values of the original image; and performing filling processing on the original image based on the pixel value of the original image to obtain the image to be processed, wherein the filling processing comprises the following steps: and (4) zero padding, wherein the row data and the column data of the image to be processed obtained by the padding processing are the same.
Optionally, the apparatus in which the non-volatile storage medium is controlled to perform the following functions when the program is executed: and performing discrete cosine transform processing on the to-be-processed image in the spatial domain to obtain the to-be-processed image transformed from the spatial domain to the frequency domain.
Optionally, the apparatus in which the non-volatile storage medium is controlled to perform the following functions when the program is executed: detecting whether the discrete cosine transform of the image to be processed is multidimensional discrete cosine transform; if the detection result is yes, decomposing the multidimensional discrete cosine transform into a plurality of one-dimensional discrete cosine transforms based on the dimensionality of the multidimensional discrete cosine transform; determining a transformation matrix of the image to be processed by adopting a plurality of calculation formulas of one-dimensional discrete cosine transformation, wherein the transformation matrix is determined based on the resolution of the image to be processed and a variation parameter corresponding to the resolution; and performing discrete cosine transform processing on the row data and the column data of the image to be processed according to the transformation matrix to obtain the transformation processing result.
Optionally, the apparatus in which the non-volatile storage medium is controlled to perform the following functions when the program is executed: acquiring line data of the image to be processed; performing the row transformation processing on the row data by adopting the transformation matrix to obtain a row transformation processing result; performing line conversion processing on the image to be processed to obtain column data of the image to be processed; and after zero padding processing is carried out on the column data, the column transformation processing is carried out on the column data by adopting the transformation matrix to obtain a column transformation processing result.
Optionally, the apparatus in which the non-volatile storage medium is controlled to perform the following functions when the program is executed: acquiring a frequency domain coefficient of the transformation processing result; carrying out quantization processing on the frequency domain coefficient to obtain a quantization processing result; and coding the quantization processing result to obtain the code stream to be transmitted.
According to an embodiment of the present application, there is also provided an embodiment of a processor. Optionally, in this embodiment, the processor is configured to run a program, where the program is run to execute any one of the image transmission processing methods.
According to an embodiment of the present application, there is also provided an embodiment of an electronic device, including a memory and a processor, where the memory stores a computer program, and the processor is configured to execute the computer program to perform any one of the image transmission processing methods.
According to an embodiment of the present application, there is also provided an embodiment of a computer program product, which is adapted to execute a program initialized with the steps of the image transmission processing method of any one of the above when executed on a data processing device.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, 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 technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or may be 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 through some interfaces, units or modules, and may be in an electrical 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 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 invention 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, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable non-volatile storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a non-volatile storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned nonvolatile storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. An image transmission processing method, characterized by comprising:
acquiring an image to be processed, wherein the image to be processed is a whole frame image;
obtaining a transformation processing result by carrying out discrete cosine transformation processing on the image to be processed;
carrying out quantization processing and coding processing on the conversion processing result to obtain a code stream to be transmitted;
and outputting the code stream to be transmitted.
2. The method of claim 1, wherein the whole frame of picture is a picture that is not divided into macroblocks.
3. The method of claim 1, wherein acquiring the image to be processed comprises:
acquiring an original image and pixel values of the original image;
and performing filling processing on the original image based on the pixel value of the original image to obtain the image to be processed, wherein the filling processing comprises the following steps: and zero padding, wherein the row data and the column data of the image to be processed obtained by the padding processing are the same.
4. The method according to claim 1, wherein obtaining a transform processing result by performing discrete cosine transform processing on the image to be processed comprises:
the method comprises the steps of carrying out discrete cosine transform processing on an image to be processed in a spatial domain to obtain the image to be processed converted from the spatial domain to a frequency domain.
5. The method according to claim 1, wherein obtaining a transform processing result by performing discrete cosine transform processing on the image to be processed comprises:
detecting whether the discrete cosine transform of the image to be processed is multidimensional discrete cosine transform;
if the detection result is yes, decomposing the multidimensional discrete cosine transform into a plurality of one-dimensional discrete cosine transforms based on the dimensionality of the multidimensional discrete cosine transform;
determining a transformation matrix of the image to be processed by adopting a plurality of calculation formulas of one-dimensional discrete cosine transformation, wherein the transformation matrix is determined based on the resolution of the image to be processed and a variation parameter corresponding to the resolution;
and performing discrete cosine transform processing on the row data and the column data of the image to be processed according to the transformation matrix to obtain a transformation processing result.
6. The method of claim 5, wherein the discrete cosine transform processing comprises: performing row transformation processing and column transformation processing, and performing discrete cosine transformation processing on the row data and the column data of the image to be processed according to the transformation matrix comprises the following steps:
acquiring line data of the image to be processed;
performing the row transformation processing on the row data by adopting the transformation matrix to obtain a row transformation processing result;
performing line conversion processing on the image to be processed to obtain column data of the image to be processed;
and after zero padding processing is carried out on the column data, the column transformation processing is carried out on the column data by adopting the transformation matrix to obtain a column transformation processing result.
7. The method of claim 1, wherein performing quantization processing and coding processing on the transform processing result to obtain a code stream to be transmitted comprises:
acquiring a frequency domain coefficient of the transformation processing result;
carrying out quantization processing on the frequency domain coefficient to obtain a quantization processing result;
and coding the quantization processing result to obtain the code stream to be transmitted.
8. An image transmission processing apparatus characterized by comprising:
the device comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring an image to be processed, and the image to be processed is a whole frame image;
the first processing module is used for carrying out discrete cosine transform processing on the image to be processed to obtain a transform processing result;
the second processing module is used for carrying out quantization processing and coding processing on the conversion processing result to obtain a code stream to be transmitted;
and the output module is used for outputting the code stream to be transmitted.
9. A non-volatile storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the image transfer processing method of any one of claims 1 to 7.
10. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and the processor is configured to execute the computer program to perform the image transmission processing method according to any one of claims 1 to 7.
CN202110114181.0A 2021-01-27 2021-01-27 Image transmission processing method and device, storage medium and electronic equipment Pending CN112954356A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110114181.0A CN112954356A (en) 2021-01-27 2021-01-27 Image transmission processing method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110114181.0A CN112954356A (en) 2021-01-27 2021-01-27 Image transmission processing method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN112954356A true CN112954356A (en) 2021-06-11

Family

ID=76238253

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110114181.0A Pending CN112954356A (en) 2021-01-27 2021-01-27 Image transmission processing method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN112954356A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101631243A (en) * 2009-08-07 2010-01-20 清华大学 Image encoding/decoding method based on wavelet transformation
CN101778291A (en) * 2010-01-27 2010-07-14 山东大学 Lifting structure-based DCT conversion structure and method thereof
CN106709945A (en) * 2017-01-09 2017-05-24 方玉明 Super-resolution image quality evaluation method
CN107025645A (en) * 2017-02-25 2017-08-08 深圳市金立通信设备有限公司 A kind of image processing method and terminal
CN110800049A (en) * 2017-04-25 2020-02-14 Dts公司 Variable alphabet size in digital audio signals

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101631243A (en) * 2009-08-07 2010-01-20 清华大学 Image encoding/decoding method based on wavelet transformation
CN101778291A (en) * 2010-01-27 2010-07-14 山东大学 Lifting structure-based DCT conversion structure and method thereof
CN106709945A (en) * 2017-01-09 2017-05-24 方玉明 Super-resolution image quality evaluation method
CN107025645A (en) * 2017-02-25 2017-08-08 深圳市金立通信设备有限公司 A kind of image processing method and terminal
CN110800049A (en) * 2017-04-25 2020-02-14 Dts公司 Variable alphabet size in digital audio signals

Similar Documents

Publication Publication Date Title
US9438930B2 (en) Systems and methods for wavelet and channel-based high definition video encoding
Said et al. Reversible image compression via multiresolution representation and predictive coding
CA2676099C (en) Method of compressing digital images
Wallace The JPEG still picture compression standard
US8756482B2 (en) Efficient encoding/decoding of a sequence of data frames
US20100172409A1 (en) Low-complexity transforms for data compression and decompression
US9509988B2 (en) Motion video encoding apparatus, motion video encoding method, motion video encoding computer program, motion video decoding apparatus, motion video decoding method, and motion video decoding computer program
US5854858A (en) Image signal coder operating at reduced spatial resolution
US7634148B2 (en) Image signal transforming and inverse-transforming method and computer program product with pre-encoding filtering features
Rasheed et al. Image compression based on 2D Discrete Fourier Transform and matrix minimization algorithm
Faria et al. Performance evaluation of data compression systems applied to satellite imagery
CN108881913B (en) Method and apparatus for image encoding
EP2145476B1 (en) Image compression and decompression using the pixon method
Kouadria et al. Pruned discrete Tchebichef transform for image coding in wireless multimedia sensor networks
Cintra et al. Energy-efficient 8-point DCT approximations: Theory and hardware architectures
Unde et al. Rate–distortion analysis of structured sensing matrices for block compressive sensing of images
Kim et al. A lossless color image compression method based on a new reversible color transform
CN112954356A (en) Image transmission processing method and device, storage medium and electronic equipment
CN107172425B (en) Thumbnail generation method and device and terminal equipment
Mukhopadhyay Image resizing in the compressed domain
CN101310534A (en) Method and apparatus for using random field models to improve picture and video compression and frame rate up conversion
EP1235185B1 (en) Method of compressing digital images
Sahooinst et al. Haar wavelet transform image compression using various run length encoding schemes
Paim et al. Exploring approximations in 4-and 8-point DTT hardware architectures for low-power image compression
Keerthi et al. Investigations On Image Compression Methodologies Using Hybrid Algorithms

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210611

RJ01 Rejection of invention patent application after publication