CN113949865A - Image encoding method, image encoding device, computer apparatus, storage medium, and image decoding method - Google Patents

Image encoding method, image encoding device, computer apparatus, storage medium, and image decoding method Download PDF

Info

Publication number
CN113949865A
CN113949865A CN202111204234.4A CN202111204234A CN113949865A CN 113949865 A CN113949865 A CN 113949865A CN 202111204234 A CN202111204234 A CN 202111204234A CN 113949865 A CN113949865 A CN 113949865A
Authority
CN
China
Prior art keywords
image
sub
encoding
coded data
data
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
CN202111204234.4A
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.)
Avic Avionics Corp ltd
Original Assignee
Avic Avionics Corp 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 Avic Avionics Corp ltd filed Critical Avic Avionics Corp ltd
Priority to CN202111204234.4A priority Critical patent/CN113949865A/en
Publication of CN113949865A publication Critical patent/CN113949865A/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/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/119Adaptive subdivision aspects, e.g. subdivision of a picture into rectangular or non-rectangular coding blocks
    • 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

Landscapes

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

Abstract

The invention is applicable to the field of image compression, and provides an image encoding method, an image encoding device, a computer device, a storage medium and a decoding method, wherein the image encoding method comprises the following steps: acquiring a target image, and dividing the target image into a plurality of sub image blocks; performing lossless compression coding on the plurality of sub-image blocks in parallel to generate the same number of sub-image coded data; and splicing the generated sub-image coded data into total image coded data. The invention divides the image, respectively carries out compression coding to generate corresponding sub-image coded data, and then splices the sub-image coded data into a total image coded data to carry out packing transmission, thereby realizing lossless compression and simultaneously ensuring high efficiency and low time delay of the compression coding process.

Description

Image encoding method, image encoding device, computer apparatus, storage medium, and image decoding method
Technical Field
The present invention relates to the field of image compression, and in particular, to an image encoding method, an image encoding apparatus, a computer device, a storage medium, and a decoding method.
Background
JPEG-LS is an algorithm used in the new ISO/ITU standard for lossless or near lossless compression of static continuous tone images, commonly known as ISO-14495-1/ITU-T.87. The algorithm has the characteristics of low implementation complexity, high fidelity and the like, so that the algorithm is widely applied to the fields of digital cameras, network transmission, wireless communication, medical imaging and the like.
In some scenes, an image acquisition device acquires a high-definition image, the acquired high-definition image needs to be transmitted in different devices, near-lossless compression can be performed on image data by using a JPEG-LS algorithm, and an image almost consistent with an original image can be obtained after decompression.
The high-definition image has higher definition and resolution and larger data volume, and the prior art generally directly encodes and compresses the high-definition image by using a lossless compression encoding algorithm and then directly packs the high-definition image into a compressed file.
The prior art is difficult to realize lossless compression and coding of images and simultaneously considers the requirements of low delay and high efficiency in the compression and coding process.
Disclosure of Invention
In view of the above, it is necessary to provide an image encoding method, apparatus, computer device, storage medium, and decoding method in view of the above-described problems.
In one embodiment, there is provided an image encoding method, the method including:
acquiring a target image, and dividing the target image into a plurality of sub image blocks;
performing lossless compression coding on the plurality of sub-image blocks in parallel to generate the same number of sub-image coded data;
and splicing the generated sub-image coded data into total image coded data.
In one embodiment, a decoding method is provided for decoding the total image coded data described in the above embodiment, where the decoding method includes:
receiving the total image encoding data;
analyzing to obtain a plurality of naked coded data;
assigning a value to the general encoding head to enable the general encoding head to be an encoding head meeting the decoding standard;
and packing and decoding the total encoding head and the plurality of naked encoding data after assignment.
In one embodiment, there is provided an image encoding apparatus, the apparatus including:
the dicing device is used for dicing the target image into a plurality of sub image blocks;
the coding device is used for carrying out lossless compression coding on the plurality of sub-image blocks in parallel to generate the sub-image coded data with the same quantity; and
and the compression device is used for splicing the generated sub-image coded data into total image coded data.
A computer device comprising a memory and a processor, the memory having stored therein a computer program which, when executed by the processor, causes the processor to carry out the steps of the image encoding method described above.
A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, causes the processor to carry out the steps of the image encoding method described above.
According to the image coding method, the image coding device, the computer equipment, the storage medium and the decoding method, the image is segmented and then respectively compressed and coded to generate the corresponding sub-image coded data, and then the sub-image coded data are spliced into the total image coded data to be packaged and transmitted, so that the lossless compression is realized, and meanwhile, the high efficiency and the low delay of the compression coding process are ensured.
Drawings
FIG. 1 is a diagram of an application environment of an image encoding method provided in one embodiment;
FIG. 2 is a flow diagram of a method for image encoding in one embodiment;
FIG. 3 is a flowchart of an image encoding method in another embodiment;
FIG. 4 is a flowchart of an image encoding method in still another embodiment;
FIG. 5 is a flow diagram of a method for image decoding in one embodiment;
FIG. 6 is a block diagram showing the construction of an image encoding apparatus according to an embodiment;
FIG. 7 is a diagram illustrating a general dockside data structure, in accordance with an embodiment;
FIG. 8 is a block diagram of a GRAY or YUV image in one embodiment;
FIG. 9 is a block diagram of an embodiment of an RGB image;
FIG. 10 is a block diagram showing an internal configuration of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
It will be understood that, as used herein, the terms "first," "second," and the like may be used herein to describe various elements, but these elements are not limited by these terms unless otherwise specified. These terms are only used to distinguish one element from another. For example, a first xx script may be referred to as a second xx script, and similarly, a second xx script may be referred to as a first xx script, without departing from the scope of the present application.
Fig. 1 is a diagram of an application environment of an image encoding method provided in an embodiment, as shown in fig. 1, in the application environment, including a flight terminal 110 and a ground device 120.
Flight terminal 110 may be a rotary wing drone, a fixed wing drone, or other type of aircraft; the flight terminal 110 is equipped with an image capturing device and an image processing device, and can compress the captured image and facilitate transmission of the image.
The ground device 120 may be, but is not limited to, a smartphone, a tablet, a laptop, a desktop computer, a server, etc. The flight terminal 110 and the ground device 120 may be connected through a network and perform data transmission, and the present invention is not limited thereto.
As shown in fig. 2, as a possible embodiment, an image encoding method is proposed, and the embodiment is mainly illustrated by applying the method to the flight terminal 110 in fig. 1. The method specifically comprises the following steps:
step S202, acquiring a target image, and dividing the target image into a plurality of sub image blocks;
step S204, carrying out lossless compression coding on the plurality of sub-image blocks in parallel to generate sub-image coded data with the same quantity;
and step S206, splicing the generated sub-image coded data into total image coded data.
In one embodiment, after an image acquisition device carried by a flight terminal acquires a picture or a video, a processing device acquires a target image needing to be compressed and encoded, and blocks the target image. The image video collected by the flight terminal can be a picture or a video with higher resolution, so that the data volume of a single image is larger, the data volume required to be processed during compression coding processing is also larger, and the requirement on the computing processing capacity of a processing device is higher. The purpose of the block processing is to divide the target image into a plurality of sub image blocks, then to perform parallel processing, rather than sequential processing, on the plurality of sub image blocks, and to reduce the amount of data per sub image block, which also requires less time for the processing device to process.
In one embodiment, the target image is a single high definition picture or a single frame image in a video currently to be encoded. The target image can be obtained from an image acquisition device which can be a camera, the image acquired by the camera is sent to a processing device through a bus, and the processing device processes the target image after receiving the target image. For example, the target image is transmitted to an FPGA (Field Programmable Gate Array) chip via a PCIE (peripheral component interconnect express) bus, and the FPGA chip processes the target image.
In one embodiment, the number of blocks and the blocking form of the target image are preset, and the divided sub image blocks may be generated after the target image is uniformly divided.
In one embodiment, after the target image is divided into a plurality of sub image blocks, the plurality of sub image blocks are compressed and encoded by utilizing the parallel processing capability of the processing device, each sub image block is processed by the same lossless compression algorithm, and because of the parallel processing, each sub image block is processed by one high-speed processing channel of the processing device to generate sub image encoded data corresponding to the number of the sub image blocks.
In an embodiment, the generated sub-image coded data are spliced into total image coded data according to a set splicing sequence, and the total image coded data includes all data of the target image subjected to lossless coding, namely a set of the sub-image coded data, and may further include data for facilitating decoding. The total image encoded data is used for transmission between different devices and can be decoded into the original target image. The splicing can conveniently transmit the total image coded data after the target image compression coding to ground equipment, the transmission rate and the safety are ensured, and the sub-image coded data can be prevented from being crossed and difficult to decode into the original target image.
In this embodiment, the image is divided and then respectively compressed and encoded to generate corresponding sub-image encoded data, and then the sub-image encoded data is spliced into a total image encoded data for packing and transmission, so that lossless compression can be realized, and high efficiency and low delay of the compression encoding process can be ensured.
In a possible embodiment, as shown in fig. 3, the step S204 of performing lossless compression coding on the sub image blocks in parallel to generate the same number of encoded data of the sub images specifically includes:
step S302, generating a general encoding head, wherein the general encoding head is used for indicating the splicing sequence of the sub-image encoding data;
step S304, generating a plurality of sub-encoding wharfs, wherein the sub-encoding wharfs correspond to the sub-image blocks one by one, and the sub-encoding wharfs are used for identifying the sub-image blocks to which the sub-image encoding data belong;
step S306, writing the bare coded data generated by lossless compression coding of the sub image blocks into the sub-coding wharfs correspondingly to generate sub image coded data;
and step S308, writing the total encoding head in front of the encoding head corresponding to the first sub image block.
In one embodiment, when the processing device in the flight terminal performs compression coding on the sub image blocks, a coding header is generated, and the format of the coding header is the same as the format of data generated after the sub image blocks are compression coded. The encoding header serves to identify the encoded data of the generated subimages and to indicate the subimage blocks to which the encoded data of the subimages belong, so that the number of encoding headers is the same as the number of subimage blocks.
In one embodiment, the sub-image block directly generates the naked encoded data after being processed by the compression encoding algorithm, and the naked encoded data is written into the sub-image block after the generated sub-encoding header, so as to generate the sub-image encoded data.
In one embodiment, a general encoding head is further generated for identifying the splicing sequence of the sub-image encoded data. Specifically, the sub-encoding terminal comprises an identity identifier, wherein the identity identifier is used for indicating the corresponding relation between the sub-image blocks and the sub-image encoding data, and the position of the sub-image blocks represented by the sub-image data in the target image can be determined; the general encoding terminal comprises a plurality of identity identification sequences of a plurality of sub-encoding terminals, when the sub-image encoding data are spliced into the general image encoding data, the splicing sequence of the sub-image encoding data is consistent with the identity identification sequence described in the general encoding terminal, and when decoding is needed, the sequence of the sub-image encoding data in the general image encoding data can be determined according to the sequence of the identity identifications.
In one embodiment, the general encoding head can be generated firstly, is positioned at the head of the coded data of the general image, can be generated firstly, and then is generated into the partial encoding heads and the naked coded data, because only one general encoding head is needed, and the compression coding of the sub image blocks is processed in parallel, the general encoding head can be generated before the compression coding is carried out on a certain sub image block; specifically, one high-speed processing channel can be set in a plurality of high-speed processing channels of the processing device of the flight terminal to be used for generating the main encoding head, further, the high-speed processing channel for processing the first sub image block can be set to generate the main encoding head, and then the main encoding head and the bare coded data of the first sub image block are continuously generated by the main encoding head. The first sub image block may be a first divided sub image block or a first set sub image block in the target image.
In one embodiment, after compression encoding a number of sub-image blocks, the generation of the sub-coded tail continues thereafter, and the sub-coded tail may contain a terminator for identifying the termination of the sub-image encoded data.
In a possible embodiment, the central terminal further comprises attribute data describing the target image.
In this embodiment, the total encoding head already contains the splicing order of the encoding heads, and also includes the number information of the divided blocks describing the target image, and also includes attribute information such as image size information and image type information describing the target image. The general code terminal can also include information describing its own direct length, a start character and the like.
In a possible embodiment, the step of dividing the target image into a plurality of sub image blocks includes:
step S402, determining the image type of the target image;
step S404, if the target image is of a GRAY or YUV type, dividing the target image into a first set number of blocks in the longitudinal direction;
step S406, if the target image is of RGB type, first separating three color channels of the target image, and then transversely dividing the image of each single color channel into a second set number of blocks.
In one embodiment, the format type of the image may be multiple, such as a GRAY level image, a YUV image, an RGB image, etc., and different blocking methods may be used for different types of images to facilitate the compression process of the image, so that the type of the target image is determined first.
In one embodiment, after determining the image type of the target image, if the format type of the target image is GRAY or YUV, the target image is directly divided into a first set number of blocks in the longitudinal direction, the longitudinal direction is a direction relative to the target image, the division may be an average division, and the first set number is preset, and a specific value may be determined according to the number of high-speed processing channels of the flight terminal processing device, so that the processing device can perform parallel compression coding processing on the sub image blocks, so as to improve the processing bandwidth of coding.
In one embodiment, if the target image is of the RGB type, the three color channels of the target image are separated first, and then the image of each single color channel is divided laterally into a second set number of blocks. The RGB format type image has three color channels of R (red), G (green) and B (blue), when the image is partitioned, the color channels can be separated firstly, then the image of each color channel is partitioned, and the image can be equally divided when the image is partitioned, finally each color channel can obtain the number of sub-image blocks with a second set number, so that the processing device can perform parallel compression coding processing on the sub-image blocks, and the processing bandwidth of coding can be improved.
In a preferred embodiment, the sub image blocks are encoded by a JPEG-LS lossless compression algorithm, and the step of performing lossless compression encoding on the sub image blocks in parallel is performed by an FPGA.
In one embodiment, the lossless compression algorithm is a JPEG-LS algorithm, which is an algorithm used in the new ISO/ITU standard for lossless or near lossless compression of static contone images. The algorithm has the characteristics of low implementation complexity, high fidelity and the like, so that the algorithm is widely applied to the fields of digital cameras, network transmission, wireless communication, medical imaging and the like.
In one embodiment, the processing device in the flight terminal includes an FPGA (Field Programmable Gate Array) chip, which can implement parallel processing on data, such as operations of high-speed sampling, reading, storing, and processing. For example, the compression coding processing for the sub image blocks can be processed in an FPGA chip through a JPEG-LS algorithm.
In one embodiment, the dicing of the target image may also be performed in an FPGA chip.
In one embodiment, as shown in fig. 8, if the first set number is 4, the image in the GRAY or YUV format can be equally divided into 4 blocks; as shown in fig. 9, if the second set number is 2, the total number of blocks for the RGB format image is 6.
In a feasible embodiment, after the processing device of the flight terminal receives the original icon image data, in order to facilitate the FPGA chip to process the target image, the processing device needs to perform assignment processing on the target image.
In one embodiment, the original data of the target image is read first, and the attribute information of the target image and the specific data pair of the target image are assigned and written into the image data structure, where the attribute data may be the length, width, type, effective byte length, etc. of the image. The concrete formula is as follows:
Figure BDA0003306147510000081
the image pack is an image data structure, the width is target image length information, the height is target image height information, the image _ type is target image type information, the bit _ width is target image effective byte length information, and the data is target image data. The data in the image data structure body can be identified and processed by the FPGA chip.
In a preferred embodiment, the formula of the lossless compression coding is:
jlsData=JLS_Encode(imagePack_data)
the JLS _ Encode is a JPEG-LS lossless compression algorithm, the imagePack _ data is input data of the sub-image blocks, and the jlsData is output encoded data of the sub-image blocks.
In the embodiment, the target image is encoded in the FPGA chip through the JPEG-LS algorithm, so that lossless or near lossless compression can be performed on a high-definition image and a video, and meanwhile, the parallel processing capability and the low-delay characteristic of processing of the FPGA chip are utilized, so that the processing efficiency of encoding is improved, and the delay of processing the image is reduced.
In one embodiment, if the image in the GRAY or YUV format is averagely divided into 4 blocks, 4 sub-image coded data are correspondingly generated through compression coding, and then the 4 sub-image coded data are spliced and packaged to facilitate sending; similarly, if the RGB format image is 6 blocks, 6 sub-image coded data are correspondingly generated through compression coding, and then the 6 sub-image coded data are spliced and packed, so as to facilitate transmission. Actually, the FPGA chip receives complete target image data, and because the FPGA chip performs block processing on the target image, when the FPGA chip performs compression, the image pack _ data, that is, data of the sub-image block, is input to the compression module, and the sub-image encoded data is also output by the compression module.
Fig. 7 is a schematic diagram of a data structure of a total encoding head in total image encoded data generated by encoding an image of a GRAY or YUV type by an image encoding method according to an embodiment. In the figure, the numeric value is a 16-ary number, where two bytes of "FF D8" are used to indicate a start character, two bytes 4 and 5 "0014" indicate data whose own 20 bytes are the total encoding head, byte 6 "08" indicates the image type of the target image, two bytes 7 and 8 "0100" indicates the length information of the icon image, two bytes 9 and 10 "0100" indicate the width information of the target image, byte 11 "04" indicates that the target image is divided into 4 blocks, bytes 12 to 14 indicate a first sub image block, bytes 15 to 17 indicate a second sub image block, bytes 18 to 20 indicate a third sub image block, and bytes 21 to 23 indicate a fourth sub image block.
As another embodiment, as shown in fig. 5, a decoding method is provided for decoding the total image coded data generated in the above embodiment.
In this embodiment, the specific decoding method includes the steps of:
step S502, receiving the total image coded data;
step S504, a plurality of naked coded data are obtained through analysis;
step S506, assigning a value to the general encoding head to enable the general encoding head to be an encoding head meeting the decoding standard;
and step S508, packing and decoding the total encoding head and the plurality of naked encoding data after assignment.
In one embodiment, the above decoding method may be applied to the surface device 120 as illustrated in fig. 1.
In one embodiment, the ground device 120 receives the total image encoding data, which needs to be processed to be decoded easily. The total image coded data comprises a total code wharf, a branch code wharf and a plurality of naked coded data, the branch code wharf needs to be removed, and the total code wharf is assigned so as to be directly decoded.
In one embodiment, the header is intercepted, and values are assigned to corresponding values in the bytes according to the JPEG-LS encoding related protocol standard, so that the values can be decoded by a decoding device of the ground equipment. As shown in fig. 7, in the data structure of the total encoding head, since the byte length of the total encoding head may be longer, the first 17 bytes in the total encoding head are intercepted, and then the values of the 5 th, 11 th, 15 th and 16 th bytes are respectively assigned as 11, 1, 255 and 218, that is, the assigned 15 th and 16 th bytes are assigned as "FF D9" as a terminator.
In one embodiment, the ground device removes the sub-coding heads from the sub-coded data to obtain the bare coded data, and can determine the sub-image block to which the bare coded data belongs according to the sub-coding heads, so that the bare coded data can be conveniently spliced.
In one embodiment, the obtained assigned total encoding head and the plurality of naked encoding data are spliced and then packaged and written into a binary file, and then a decoding device of the ground equipment can directly decode the file, and decoding can be performed according to a decoding program corresponding to encoding during decoding, for example, the binary file is decoded according to a JPEG-LS decoding program.
In this embodiment, the total encoded data generated by lossless compression encoding can be decoded, and the target image can be restored in a lossless or near-lossless manner.
In an embodiment, an image encoding device is further provided, which may be integrated in the flight terminal 110, and specifically includes:
the dicing device is used for dicing the target image into a plurality of sub image blocks;
the coding device is used for carrying out lossless compression coding on the plurality of sub-image blocks in parallel to generate the sub-image coded data with the same quantity; and
and the compression device is used for splicing the generated sub-image coded data into total image coded data.
In one embodiment, after an image acquisition device carried by a flight terminal acquires a picture or a video, a processing device acquires a target image needing to be compressed and encoded, and blocks the target image. The image video collected by the flight terminal can be a picture or a video with higher resolution, so that the data volume of a single image is larger, the data volume required to be processed during compression coding processing is also larger, and the requirement on the computing processing capacity of a processing device is higher. The purpose of the block processing is to divide the target image into a plurality of sub image blocks, then to perform parallel processing, rather than sequential processing, on the plurality of sub image blocks, and to reduce the amount of data per sub image block, which also requires less time for the processing device to process.
In one embodiment, the number of blocks and the blocking form of the target image are preset, and the divided sub image blocks may be generated after the target image is uniformly divided.
In one embodiment, after the target image is split into a plurality of sub image blocks by the splitting device, the plurality of sub image blocks are compressed and encoded by utilizing the parallel processing capability of the encoding device, each sub image block is processed by the same lossless compression algorithm, and because of the parallel processing, each sub image block is processed by one high-speed processing channel of the encoding device to generate sub image encoding data corresponding to the number of sub image blocks.
In one embodiment, the compression device splices the generated sub-image coded data into total image coded data according to a set splicing sequence, and splicing can conveniently transmit the data after compression coding of the target image to ground equipment, so that the transmission rate and the safety are ensured, and the sub-image coded data can be prevented from being crossed and difficult to decode into an original image.
In this embodiment, the image is divided and then respectively compressed and encoded to generate corresponding sub-image encoded data, and then the sub-image encoded data is spliced into a total image encoded data for packing and transmission, so that lossless compression can be realized, and high efficiency and low delay of the compression encoding process can be ensured.
FIG. 10 is a diagram illustrating an internal structure of a computer device in one embodiment. The computer device may be specifically the flight terminal 110 in fig. 1. As shown in fig. 10, the computer apparatus includes a processor, a memory, a network interface, an input device, and a display screen connected through a system bus. Wherein the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program that, when executed by the processor, causes the processor to implement the image encoding method. The internal memory may also have a computer program stored therein, which, when executed by the processor, causes the processor to perform the image encoding method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 10 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, the image encoding apparatus provided in the present application may be implemented in the form of a computer program, which is executable on a computer device as shown in fig. 10. The memory of the computer device may store therein various program modules constituting the image encoding apparatus, such as the cutting apparatus, the encoding apparatus, and the compression apparatus shown in fig. 6. The respective program modules constitute a computer program that causes a processor to execute the steps in the image encoding method of the respective embodiments of the present application described in the present specification.
For example, the computer device shown in fig. 10 may perform step S202 by a dicing apparatus in the image encoding apparatus as shown in fig. 6. The computer apparatus may perform step S204 by the encoding device. The computer apparatus may perform step S206 by the compression device.
In one embodiment, a computer device is proposed, the computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
step S202, acquiring a target image, and dividing the target image into a plurality of sub image blocks;
step S204, carrying out lossless compression coding on the plurality of sub-image blocks in parallel to generate sub-image coded data with the same quantity;
and step S206, splicing the generated sub-image coded data into total image coded data.
In one embodiment, a computer device is proposed, the computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
step S502, receiving the total image coded data;
step S504, a plurality of naked coded data are obtained through analysis;
step S506, assigning a value to the general encoding head to enable the general encoding head to be an encoding head meeting the decoding standard;
and step S508, packing and decoding the total encoding head and the plurality of naked encoding data after assignment.
In one embodiment, a computer readable storage medium is provided, having a computer program stored thereon, which, when executed by a processor, causes the processor to perform the steps of:
step S202, acquiring a target image, and dividing the target image into a plurality of sub image blocks;
step S204, carrying out lossless compression coding on the plurality of sub-image blocks in parallel to generate sub-image coded data with the same quantity;
and step S206, splicing the generated sub-image coded data into total image coded data.
In one embodiment, a computer readable storage medium is provided, having a computer program stored thereon, which, when executed by a processor, causes the processor to perform the steps of:
step S502, receiving the total image coded data;
step S504, a plurality of naked coded data are obtained through analysis;
step S506, assigning a value to the general encoding head to enable the general encoding head to be an encoding head meeting the decoding standard;
and step S508, packing and decoding the total encoding head and the plurality of naked encoding data after assignment.
It should be understood that, although the steps in the flowcharts of the embodiments of the present invention are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in various embodiments may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method of image encoding, the method comprising:
acquiring a target image, and dividing the target image into a plurality of sub image blocks;
performing lossless compression coding on the plurality of sub-image blocks in parallel to generate the same number of sub-image coded data;
and splicing the generated sub-image coded data into total image coded data.
2. The method of claim 1, wherein the step of lossless compression coding of the sub-image blocks simultaneously to generate the same number of sub-image coded data comprises:
generating a general encoding head, wherein the general encoding head is used for indicating the splicing sequence of the sub-image encoding data;
generating a plurality of encoding terminals, wherein the encoding terminals correspond to the sub-image blocks one by one, and the encoding terminals are used for identifying the sub-image blocks to which the sub-image encoding data belong;
respectively and correspondingly writing the bare coded data generated by lossless compression coding of the plurality of sub-image blocks into the plurality of encoding terminals to generate sub-image coded data;
and writing the general encoding head in front of the sub-encoding head corresponding to the first sub-image block.
3. The method of claim 2, wherein the central compilation head further comprises attribute data describing the target image.
4. The method of claim 1, wherein the step of segmenting the target image into sub-image blocks comprises:
determining an image type of the target image;
if the target image is of a GRAY or YUV type, dividing the target image into a first set number of blocks in the longitudinal direction;
if the target image is of an RGB type, three color channels of the target image are separated, and then the image of each single color channel is transversely divided into a second set number of blocks.
5. The method according to claim 1, wherein said sub-tiles are encoded by a JPEG-LS lossless compression algorithm, said step of lossless compression encoding of said sub-tiles in parallel being performed by an FPGA.
6. The method of claim 5, wherein the lossless compression coding is formulated as:
jlsData=JLS_Encode(imagePack_data)
the JLS _ Encode is a JPEG-LS lossless compression algorithm, the imagePack _ data is input data of the sub-image blocks, and the jlsData is output encoded data of the sub-image blocks.
7. A decoding method for decoding total image coded data according to any one of claims 1 to 6, characterized in that it comprises:
receiving the total image encoding data;
analyzing to obtain a plurality of naked coded data;
assigning a value to the general encoding head to enable the general encoding head to be an encoding head meeting the decoding standard;
and packing and decoding the total encoding head and the plurality of naked encoding data after assignment.
8. An image encoding apparatus, characterized in that the apparatus comprises:
the dicing device is used for dicing the target image into a plurality of sub image blocks;
the coding device is used for carrying out lossless compression coding on the plurality of sub-image blocks in parallel to generate the sub-image coded data with the same quantity; and
and the compression device is used for splicing the generated sub-image coded data into total image coded data.
9. A computer device, characterized in that it comprises a memory and a processor, in which a computer program is stored which, when executed by the processor, causes the processor to carry out the steps of the image coding method according to any one of claims 1 to 6.
10. A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, causes the processor to carry out the steps of the image encoding method of any one of claims 1 to 6.
CN202111204234.4A 2021-10-15 2021-10-15 Image encoding method, image encoding device, computer apparatus, storage medium, and image decoding method Pending CN113949865A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111204234.4A CN113949865A (en) 2021-10-15 2021-10-15 Image encoding method, image encoding device, computer apparatus, storage medium, and image decoding method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111204234.4A CN113949865A (en) 2021-10-15 2021-10-15 Image encoding method, image encoding device, computer apparatus, storage medium, and image decoding method

Publications (1)

Publication Number Publication Date
CN113949865A true CN113949865A (en) 2022-01-18

Family

ID=79330698

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111204234.4A Pending CN113949865A (en) 2021-10-15 2021-10-15 Image encoding method, image encoding device, computer apparatus, storage medium, and image decoding method

Country Status (1)

Country Link
CN (1) CN113949865A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114245133A (en) * 2022-02-23 2022-03-25 北京拙河科技有限公司 Video block coding method, coding transmission method, system and equipment
CN115209079A (en) * 2022-02-23 2022-10-18 北京拙河科技有限公司 Method and equipment suitable for long-time data storage of high-speed camera
CN115883839A (en) * 2023-03-09 2023-03-31 湖北芯擎科技有限公司 Image verification method, device and equipment and computer readable storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114245133A (en) * 2022-02-23 2022-03-25 北京拙河科技有限公司 Video block coding method, coding transmission method, system and equipment
CN115209079A (en) * 2022-02-23 2022-10-18 北京拙河科技有限公司 Method and equipment suitable for long-time data storage of high-speed camera
CN115883839A (en) * 2023-03-09 2023-03-31 湖北芯擎科技有限公司 Image verification method, device and equipment and computer readable storage medium
CN115883839B (en) * 2023-03-09 2023-06-06 湖北芯擎科技有限公司 Image verification method, device, equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN113949865A (en) Image encoding method, image encoding device, computer apparatus, storage medium, and image decoding method
CN102523367B (en) Real time imaging based on many palettes compresses and method of reducing
CN109842803B (en) Image compression method and device
US20210398352A1 (en) 3d data generation apparatus, 3d data reconstruction apparatus, control program, and recording medium
RU2767771C1 (en) Method and equipment for encoding/decoding point cloud representing three-dimensional object
US9462152B2 (en) System and method for hiding reversible information
RU2008150330A (en) COMPRESSING VIDEO DATA WITHOUT VISIBLE LOSS
CN104581177B (en) Image compression method and device combining block matching and string matching
CN103124350B (en) Based on method for compressing image and the device of RLE
CN116193130B (en) Method and system for improving transmission efficiency of image data in network
CN109982091B (en) Image processing method and device
CN111818295A (en) Image acquisition method and device
CN112367522A (en) Image compression and decompression processing method and system
US10304213B2 (en) Near lossless compression scheme and system for processing high dynamic range (HDR) images
CN112118449A (en) Method and device for compressing and decompressing image
CN116250238A (en) Method and apparatus for encoding and decoding one or more views of a scene
US20160007021A1 (en) Compressing image data
CN115941958A (en) Video coding method and device, electronic equipment and storage medium
JP3231800B2 (en) Image encoding apparatus and image encoding method
CN113127637A (en) Character restoration method and device, storage medium and electronic device
CN113573059B (en) Image display method, image display apparatus, storage medium, and electronic apparatus
WO2022136065A1 (en) Compression of temporal data by using geometry-based point cloud compression
CN110536123B (en) Video data processing method, video data processing device, computer equipment and storage medium
CN107197295A (en) A kind of coded system and method
RU2327301C2 (en) Method of transmission of additional data in combined use of vector quantisation and fractal conding of images allowing for classifications of domains and units from code book

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