WO2020181803A1 - Image encoding method and image decoding method, and encoding apparatus and decoding apparatus - Google Patents

Image encoding method and image decoding method, and encoding apparatus and decoding apparatus Download PDF

Info

Publication number
WO2020181803A1
WO2020181803A1 PCT/CN2019/117135 CN2019117135W WO2020181803A1 WO 2020181803 A1 WO2020181803 A1 WO 2020181803A1 CN 2019117135 W CN2019117135 W CN 2019117135W WO 2020181803 A1 WO2020181803 A1 WO 2020181803A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
sub
dna
wavelet transform
sequence
Prior art date
Application number
PCT/CN2019/117135
Other languages
French (fr)
Chinese (zh)
Inventor
吴婷婷
侯强波
蔡晓辉
杨平
Original Assignee
苏州泓迅生物科技股份有限公司
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 苏州泓迅生物科技股份有限公司 filed Critical 苏州泓迅生物科技股份有限公司
Publication of WO2020181803A1 publication Critical patent/WO2020181803A1/en

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/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/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/186Methods 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 colour or a chrominance component
    • 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
    • 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/63Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding using sub-band based transform, e.g. wavelets

Definitions

  • the present disclosure relates to the field of information processing technology, and in particular to an image encoding method, decoding method, encoding device, and decoding device.
  • DNA genetic material deoxyribonucleic acid
  • the development of DNA synthesis and sequencing technology provides technical support for its becoming a digital storage carrier.
  • Digital information DNA storage refers to the storage of digital information in the base sequence of DNA.
  • This technology uses a DNA synthesizer to artificially synthesize DNA for storage, and a DNA sequencer to read the stored information.
  • DNA has the following advantages compared with existing tape or hard disk storage media: First, the DNA body is very small, and a base pair is only dozens of atoms in size. With DNA as the storage medium, the overall volume of data will be reduced.
  • the second is the high density of DNA. 1 gram of DNA is less than the size of a drop of dew on your fingertips, but it can store 700TB of data, which is equivalent to 14,000 Blu-ray discs with 50GB capacity, or 233 3TB The latter is about 151 kg in weight; the third is that the DNA is extremely stable and can be stored for a long time.
  • DNA as a storage medium to directly store image data has the following shortcomings: the compression rate of information is low, and the encoding of images will produce a large number of nucleic acid sequences. , Resulting in a large synthesis workload and high cost; low flexibility, that is, to encode an image, all the nucleic acid sequences corresponding to the synthesized image are required, and arbitrary selection of image accuracy and random extraction of image information cannot be achieved; during encoding and decoding The mismatch rate is high, and it is not easy to fully recover.
  • the binary data reading may have DNA base insertion or deletion, causing decoding errors, resulting in errors in the recovery of the entire image or the partial window of the image; the base repetition rate of the coding sequence Higher.
  • the present disclosure provides an image encoding method, decoding method, encoding device, and decoding device.
  • an encoding method including;
  • the original image is decomposed at one level or multiple levels through the wavelet transform function to obtain wavelet transform coefficients corresponding to the pixel data of multiple sub-images and the levels of the sub-images;
  • the coding DNA sequence of the wavelet transform coefficient is connected to determine the coding DNA sequence of the original image.
  • the determining the effective value of the wavelet transform coefficient according to the wavelet transform coefficient and the level of the sub-image corresponding to the wavelet transform coefficient includes:
  • the wavelet transform coefficient dividing the wavelet transform coefficient corresponding to the pixel data of the sub-image by the maximum absolute value of the wavelet transform coefficient corresponding to the pixel data of the sub-image to obtain a first value
  • the determining the effective value of the wavelet transform coefficient according to the first value and the level of the sub-image includes:
  • the effective value of the wavelet transform coefficient is determined.
  • the number is a decimal number.
  • the determining the coding DNA sequence of the wavelet transform coefficient according to the corresponding relationship between the DNA base sequence and the number and the effective value includes:
  • the correspondence between the DNA base sequence and the number includes:
  • the DNA base sequence and the number have a one-to-one correspondence
  • the many-to-one correspondence relationship includes: multiple consecutive low-order digits correspond to the same base sequence.
  • the determining the coding DNA sequence of the wavelet transform coefficient according to the corresponding relationship between the DNA base sequence and the number and the effective value includes:
  • connecting the coding DNA sequence of the wavelet transform coefficients to determine the coding DNA sequence of the original image includes:
  • the coding DNA sequence corresponding to the wavelet transform coefficients corresponding to the pixel data of the sub-image is sequentially connected according to the sub-image level order to determine the coding DNA sequence of the original image ,include:
  • level number+preset base label+maximum absolute value+level number+preset base label in sequence before the coding DNA sequence corresponding to the wavelet transform coefficient corresponding to the pixel data of the sub-image Adding the DNA base sequence corresponding to the largest absolute value in the wavelet transform coefficient to obtain the coding DNA sequence of the sub-image;
  • the coding DNA sequences of the sub-images are sequentially connected to determine the coding DNA sequence of the original image.
  • sequentially connecting the coding DNA sequences corresponding to the wavelet transform coefficients corresponding to the pixel data of the sub-images to determine the coding DNA sequence of the original image includes :
  • the sub-image level order sequentially connect the coding DNA sequences corresponding to the wavelet transform coefficients corresponding to the pixel data of the sub-images;
  • the base sequence corresponding to an index mark is added to the DNA fragment, and the index mark includes sub-image information corresponding to the DNA fragment and the line number and segment number of the DNA fragment, including :
  • the base sequence corresponding to the index mark is added to the front and back ends of the DNA fragment, and the index mark includes the sub-image information corresponding to the DNA fragment and the row number and segment number of the DNA fragment.
  • an image decoding method including:
  • an image encoding device including:
  • the decomposition module is used to decompose the original image at one or more levels through a wavelet transform function to obtain wavelet transform coefficients corresponding to pixel data of multiple sub-images and the levels of the sub-images;
  • a processing module configured to determine the effective value of the wavelet transform coefficient according to the wavelet transform coefficient and the level of the sub-image corresponding to the wavelet transform coefficient;
  • An encoding module for determining the encoding DNA sequence of the wavelet transform coefficient according to the corresponding relationship between the DNA base sequence and the number and the effective value
  • connection module is used to connect the coding DNA sequence of the wavelet transform coefficient according to the level of the sub-image to determine the coding DNA sequence of the original image.
  • the processing module includes:
  • the processing sub-module is configured to divide the wavelet transform coefficient corresponding to the pixel data of the sub-image by the maximum absolute value of the wavelet transform coefficient corresponding to the pixel data of the sub-image according to the wavelet transform coefficient to obtain a first value ;
  • the determining sub-module is configured to determine the effective value of the wavelet transform coefficient according to the first value and the level of the sub-image.
  • the determining submodule includes:
  • the first determining unit is configured to determine the effective number of digits of the first value according to the corresponding relationship between the level of the sub-image, pixel information, and the number of significant digits.
  • the pixel information includes pixel brightness, pixel chroma, and pixel saturation;
  • the number is a decimal number.
  • the encoding module includes:
  • the first coding sub-module is used to determine the wavelet based on the number and symbol of the effective value, the corresponding relationship between the DNA base sequence and the number, and the corresponding relationship between the DNA base sequence and the symbol.
  • the DNA sequence encoding the transformation coefficients.
  • the correspondence between the DNA base sequence and the number includes:
  • the DNA base sequence and the number have a one-to-one correspondence
  • the encoding module includes:
  • the second encoding sub-module is used to sequentially encode the DNA base sequence corresponding to the effective value according to the corresponding relationship between the DNA base sequence and the number and the effective value;
  • the third coding sub-module when N consecutive identical numbers appear in the effective value, (N ⁇ 2), code according to the format "base sequence corresponding to the same number, DNA base sequence corresponding to N", Determine the coding DNA sequence of the wavelet transform coefficients.
  • connection module includes:
  • connection sub-module is configured to sequentially connect the coding DNA sequence corresponding to the wavelet transform coefficients corresponding to the pixel data of the sub-image according to the sub-image level order to determine the coding DNA sequence of the original image.
  • connection submodule includes:
  • the first processing unit is configured to sequentially correspond to the wavelet transform coefficients corresponding to the pixel data of the sub-image according to the format "level number + preset base label + maximum absolute value + level number + preset base label" Adding the DNA base sequence corresponding to the largest absolute value in the wavelet transform coefficient before the coding DNA sequence to obtain the coding DNA sequence of the sub-image;
  • the first connecting unit sequentially connects the coding DNA sequences of the sub-images according to the sub-image level order to determine the coding DNA sequences of the original image.
  • connection submodule includes:
  • the second connecting unit is configured to sequentially connect the coded DNA sequences corresponding to the wavelet transform coefficients corresponding to the pixel data of the sub-images in the order of the sub-image levels;
  • the second processing unit is configured to cut the linked coding DNA sequence into M rows of DNA subsequences (M ⁇ 1) according to the preset length value;
  • the third processing unit is configured to cut the DNA subsequence into X DNA fragments (X ⁇ 1) according to the preset width value;
  • the adding unit is used to add the base sequence corresponding to the index mark to the DNA fragment, and the index mark includes the sub-image information corresponding to the DNA fragment and the line number and segment number of the DNA fragment.
  • the sub-image information includes: a level number of the sub-image, pixel information, and a type mark of the sub-image.
  • the adding unit includes:
  • the adding subunit is used to add the base sequence corresponding to the index mark at the front and back ends of the DNA fragment, and the index mark includes the sub-image information corresponding to the DNA fragment and the row number and segment number of the DNA fragment .
  • an image decoding device including:
  • the extraction module is used to extract the index mark base sequence and the DNA fragment sequence in the coding DNA sequence according to the preset number of index mark base sequence bits;
  • the determining module is configured to determine the wavelet transform coefficient of the sub-image according to the corresponding relationship between the index mark base sequence and the number and the corresponding relationship between the DNA fragment sequence and the number;
  • the transform module is used to perform the inverse transform of the wavelet transform on the wavelet transform coefficients to obtain a decoded image.
  • an image storage method including:
  • the nucleic acid fragments are stored in one or more of the following media, the media including gene chips, plasmids or living cells.
  • an image reading method including:
  • an image encoding device which is characterized in that it includes:
  • a memory for storing processor executable instructions
  • the processor is configured to execute the image encoding method described in any one of the embodiments of the present disclosure.
  • an image decoding device which is characterized in that it includes:
  • a memory for storing processor executable instructions
  • the processor is configured to execute the image decoding method described in any one of the embodiments of the present disclosure.
  • a non-transitory computer-readable storage medium When instructions in the storage medium are executed by a processor, the processor can execute the Image coding method.
  • a non-transitory computer-readable storage medium When instructions in the storage medium are executed by a processor, the processor can execute the Image decoding method.
  • the present disclosure uses wavelet transform functions to decompose the original image to obtain a series of different frequencies or different components (ie horizontal direction components, vertical direction components or diagonal components).
  • Line direction component according to the different importance of the sub-image type to the image reconstruction, the sub-image is selectively retained or deleted, and the corresponding wavelet transform coefficient of the retained sub-image is further processed
  • Compression processing obtains the effective value of the wavelet transform coefficient, and encodes the original image into a DNA sequence through the corresponding relationship between the effective value and the DNA base sequence.
  • the image compression rate of the present disclosure is high, and the digital representation can be Including binary numbers or more, such as octal numbers and decimal numbers. When the number of digits is small, such as one digit, two or more base sequences can be used to correspond to it, which can reduce four basic bases The probability of continuous occurrence, thereby reducing the difficulty of DNA synthesis.
  • Fig. 1 is a flowchart showing an image coding method according to an exemplary embodiment.
  • Fig. 2 is a schematic diagram showing a first-level decomposition of an image according to an exemplary embodiment.
  • Fig. 3 is a schematic diagram showing a three-level decomposition of an image according to an exemplary embodiment.
  • Fig. 4 is a flowchart showing an image coding method according to an exemplary embodiment.
  • Fig. 5 is a flowchart showing an image encoding method according to an exemplary embodiment.
  • Fig. 6 is a flowchart showing an image coding method according to an exemplary embodiment.
  • Fig. 7 is a flowchart showing an image coding method according to an exemplary embodiment.
  • Fig. 8 is a flowchart showing an image coding method according to an exemplary embodiment.
  • Fig. 9 is a flowchart showing an image coding method according to an exemplary embodiment.
  • Fig. 10 is a flowchart showing an image coding method according to an exemplary embodiment.
  • Fig. 11 is an original image according to an exemplary embodiment.
  • Fig. 12 is an original image according to an exemplary embodiment.
  • Fig. 13 is a flowchart showing an image decoding method according to an exemplary embodiment.
  • Fig. 14 is a block diagram showing an image encoding device according to an exemplary embodiment.
  • Fig. 15 is a block diagram showing an image encoding device according to an exemplary embodiment.
  • Fig. 16 is a block diagram showing an image encoding device according to an exemplary embodiment.
  • Fig. 17 is a block diagram showing an image encoding device according to an exemplary embodiment.
  • Fig. 18 is a block diagram showing an image encoding device according to an exemplary embodiment.
  • Fig. 19 is a block diagram showing an image encoding device according to an exemplary embodiment.
  • Fig. 20 is a block diagram showing an image encoding device according to an exemplary embodiment.
  • Fig. 21 is a block diagram showing an image encoding device according to an exemplary embodiment.
  • Fig. 22 is a block diagram showing an image decoding device according to an exemplary embodiment.
  • Fig. 23 is a block diagram showing an image encoding device according to an exemplary embodiment, and Fig. 23 is also applicable to an image decoding device.
  • Fig. 24 is a block diagram showing an image encoding device according to an exemplary embodiment, and Fig. 24 is also applicable to an image decoding device.
  • DNA As a storage medium, DNA has the advantages of small size, high density and long-term storage, and can be used as a new medium for data storage in the future.
  • images occupy a very important part.
  • people’s demand for high-definition images has increased, and the amount of image data has also increased.
  • Directly encoding the binary data corresponding to the image into a DNA sequence will produce a lot of Nucleic acid sequence of, resulting in a large workload, and the base sequence corresponding to the binary data will appear repeatedly repeatedly, which can easily cause the failure of DNA synthesis and increase the difficulty of image storage.
  • Fig. 1 is a method flowchart of an embodiment of an image encoding method provided by the present disclosure.
  • the present disclosure provides method operation steps as shown in the following embodiments or drawings, more or less operation steps may be included in the method based on conventional or without creative labor. In steps where there is no necessary causality logically, the execution order of these steps is not limited to the execution order provided by the embodiments of the present disclosure.
  • FIG. 1 an embodiment of an image coding method provided by the present disclosure is shown in FIG. 1.
  • the method can be applied to the coding of a variety of picture formats, including but not limited to BMP format, JPEG format, and GIF format. , PSD format, PNG format, PNG format and TIFF format, etc., can be applied to color pictures and black and white pictures.
  • the method includes:
  • Step S11 Perform one-level or multi-level decomposition of the original image through a wavelet transform function to obtain wavelet transform coefficients corresponding to pixel data of multiple sub-images and the levels of the sub-images;
  • Step S12 determining the effective value of the wavelet transform coefficient according to the wavelet transform coefficient and the level of the sub-image
  • Step S13 Determine the coding DNA sequence of the wavelet transform coefficient according to the corresponding relationship between the DNA base sequence and the number and the effective value;
  • Step S14 Connect the coding DNA sequence of the wavelet transform coefficients according to the level of the sub-image to determine the coding DNA sequence of the original image.
  • a wavelet transform function is used to decompose the original image at one or more levels to perform data compression on the original image.
  • the basic idea of wavelet transform for image compression is to decompose the image in multi-resolution, decompose it into sub-images of different spaces and different frequencies, and then perform coefficient coding on the sub-images.
  • the original image can be decomposed by the Mallat pyramid decomposition algorithm: For example, for an image with m rows and n columns, the decomposition process of the Mallat pyramid decomposition algorithm is as follows: One-dimensional wavelet transform is performed on each row of to obtain low-frequency coefficient L1 and high-frequency coefficient H1, and then one-dimensional wavelet transform is performed on each column of the obtained LH image (the size is still m rows and n columns).
  • the image can be divided into four parts: LL1, HL1, LH1, and HH1.
  • LL1 is the first-level low-frequency sub-image
  • HL1 is the first-level high-frequency horizontal sub-image
  • LH1 is the first-level high-frequency vertical sub-image
  • HH1 is one High-frequency diagonal sub-images.
  • the second-level, third-level, and even higher-level two-dimensional wavelet transforms are performed on the low-frequency sub-image LL1 part of the upper-level wavelet transform image and then the first-level wavelet transform, which is a recursive process.
  • 1, 2, 3 represent the level of decomposition, that is, the level of the sub-image
  • L represents the low-frequency coefficient
  • H represents the high-frequency coefficient.
  • the frequencies of the second-level sub-images HL2, LH2, and HH2 are lower than the frequencies of the first-level sub-images HL1, LH1, and HH1, and the resolution is accordingly lower.
  • this hierarchical model of wavelet transform coefficients at different resolutions we can adopt, but are not limited to, the use of high frequency and low frequency, threshold method and interception method to perform image compression on the sub-image.
  • the low-frequency coefficients remain unchanged, and then a global threshold is selected to process the high-frequency coefficients at all levels, or the high-frequency coefficients at different levels are processed with different thresholds.
  • the high frequency coefficient below the threshold is set to 0, otherwise it is reserved. Use the retained non-zero wavelet coefficients for image reconstruction.
  • the wavelet transform coefficients are reserved for valid values to achieve further data compression.
  • the corresponding relationship between the DNA base sequence and the number can be pre-encoded, and the corresponding DNA base sequence is set according to the effective value of the wavelet transform coefficient and the corresponding number.
  • the corresponding relationship between the effective value and the number is used to encode the wavelet transform coefficient into a DNA sequence.
  • the digital representation can include binary numbers or more, such as octal numbers, decimal numbers, and when the number of digits is small, such as one digit, two or more base sequences can be used to correspond to it. Reduce the probability that the four basic bases appear consecutively, thereby reducing the difficulty of DNA synthesis.
  • the wavelet transform coefficient corresponding to the pixel data of the sub-image can be used as a unit in a preset order to perform DNA encoding one by one until the original image is decomposed After the encoding of all sub-images is completed, the encoding DNA sequence of the original image is obtained.
  • the present disclosure uses wavelet transform functions to decompose the original image to obtain a series of sub-images with different frequencies or different components (ie, horizontal, vertical, or diagonal components).
  • the importance of image reconstruction is different, the sub-images are selectively retained or deleted, and the corresponding wavelet transform coefficients of the retained sub-images are subjected to further compression processing to obtain the effective values of the wavelet transform coefficients.
  • the original image is encoded into a DNA sequence.
  • the image of the present disclosure has a high compression rate, and the digital representation can include numbers above binary, such as octal numbers, decimal numbers, And when the number of digits is small, such as a single digit, two or more base sequences can be used to correspond to it, which can reduce the probability of four basic bases consecutively appearing, thereby reducing the difficulty of DNA synthesis.
  • Fig. 4 is a method flowchart of an embodiment of an image encoding method provided by the present disclosure.
  • the present disclosure provides method operation steps as shown in the following embodiments or drawings, more or less operation steps may be included in the method based on conventional or without creative labor. In steps where there is no necessary causality logically, the execution order of these steps is not limited to the execution order provided by the embodiments of the present disclosure.
  • step S12 is based on the wavelet transform coefficient and the sub-image corresponding to the wavelet transform coefficient.
  • the determination of the effective value of the wavelet transform coefficient includes: step S121 and step S122:
  • Step S121 according to the wavelet transform coefficient, divide the wavelet transform coefficient corresponding to the pixel data of the sub-image by the maximum absolute value of the wavelet transform coefficient corresponding to the pixel data of the sub-image to obtain a first value;
  • the wavelet transform coefficients corresponding to the pixel data of the sub-image are decimalized, that is, the maximum absolute value of the wavelet coefficients corresponding to the pixel data of the sub-image (the maximum absolute value is selected)
  • the absolute value of the coefficient of ) the wavelet coefficient corresponding to each pixel data of the sub-image is divided by the maximum absolute value to obtain a first value, and the first value falls within the range of [-1,1].
  • Corresponding wavelet transform coefficients can be kept in the order of the number of effective numerical digits, and the effective numerical value can be retained to achieve further data compression.
  • Fig. 5 is a method flowchart of an embodiment of an image encoding method provided by the present disclosure.
  • the present disclosure provides method operation steps as shown in the following embodiments or drawings, more or less operation steps may be included in the method based on conventional or without creative labor. In steps where there is no necessary causality logically, the execution order of these steps is not limited to the execution order provided by the embodiments of the present disclosure.
  • step S122 according to the first value and the level of the sub-image, the The effective value of the wavelet transform coefficient includes: step S1221 and step S1222:
  • Step S1221 Determine the effective number of digits of the first value according to the corresponding relationship between the level of the sub-image, the pixel information, and the number of significant digits, where the pixel information includes pixel brightness, pixel chroma, and pixel saturation;
  • Step S1222 Determine the effective value of the wavelet transform coefficient according to the effective number of bits of the first value.
  • the original image may be obtained in the following manner, including obtaining matrix data of the RGB color space of the original image, and each point value of the matrix data ranges from 0 to 255,
  • the RGB data can be converted to achieve data compression of the original image to obtain the YUV color data of the original image.
  • the formula (1) ), formula (2) and formula (3) include:
  • Y represents the brightness, that is, the grayscale value
  • U represents the chroma
  • V represents the saturation, which is used to describe the color and saturation of the image, and is used to specify the color of the pixel.
  • the pixel information of the sub-image can be described by YUV, and the corresponding wavelet transform coefficients of the pixel data of the sub-image are also distinguished by Y, U, and V, that is, the sub-image
  • the Y information of a single pixel corresponds to a Y information wavelet transform coefficient
  • U information corresponds to a U information wavelet transform coefficient
  • V information corresponds to a V information wavelet transform coefficient, so that the pixel information can include pixel brightness, pixel chroma, and pixel saturation. degree.
  • the corresponding relationship between the level of the sub-image, the pixel information, and the number of significant digits is further established. The corresponding relationship may include: the higher the level of the sub-image, the more significant digits can be reserved; Y information wavelet Compared with the U information wavelet transform coefficient and the V information wavelet transform coefficient, the transform coefficient can retain more significant digits.
  • the highest level of the sub-image is level five
  • the Y information wavelet transform coefficients corresponding to the five level sub-images can retain three significant digits
  • the U information wavelet coefficients and V information wavelet coefficients can retain three significant digits
  • the Y information wavelet transform coefficients corresponding to the fourth-level sub-image and the third-level sub-image can retain two significant digits
  • the U-information wavelet transform coefficients and the V-information wavelet transform coefficients corresponding to the fourth-level sub-image can retain two significant digits
  • the Y information wavelet transform coefficient corresponding to the image can retain a significant number
  • the Y information wavelet transform coefficient corresponding to the first-level sub-image can be removed
  • the U-information wavelet corresponding to the third-level sub-image, the second-level sub-image and the first-level sub-image can be removed Transform coefficients and V information wavelet transform coefficients. Therefore, the effective number of the first value is determined according to the corresponding relationship between the level of the sub-
  • the wavelet transform coefficients corresponding to the sub-images are reserved with no more than two significant digits, which can achieve a higher compression effect, reduce the number of synthesized encoding DNA sequences, and ensure decoding The image is restored without distortion.
  • the number is a decimal number, because the wavelet coefficients are also expressed in decimal. Therefore, to establish the correspondence between the decimal and the DNA base sequence, the wavelet coefficients can be directly corresponded to the DNA base sequence. Converting wavelet coefficients to other base numbers is beneficial to reduce coding complexity, and decimal numbers have a total of ten digital forms from 0-9, which have more digital expressions than other bases, such as binary and ternary. Corresponding to the expression of more DNA base sequences, the repetition rate of the DNA base sequence after image encoding is greatly reduced, which is conducive to accurate decoding.
  • Fig. 6 is a method flowchart of an embodiment of an image encoding method provided by the present disclosure.
  • the present disclosure provides method operation steps as shown in the following embodiments or drawings, more or less operation steps may be included in the method based on conventional or without creative labor. In steps where there is no necessary causality logically, the execution order of these steps is not limited to the execution order provided by the embodiments of the present disclosure.
  • step S13 is based on the corresponding relationship between the DNA base sequence and the number and the effective value
  • Determining the coding DNA sequence of the wavelet transform coefficient includes: step S131.
  • Step S131 Determine the coding DNA of the wavelet transform coefficient according to the number and symbol of the effective value, the corresponding relationship between the DNA base sequence and the number, and the corresponding relationship between the DNA base sequence and the symbol sequence.
  • the corresponding relationship between the sign of the effective value and the DNA base sequence can be established, and the sign of the effective value includes a positive sign and a negative sign.
  • the corresponding base sequence may include "TC"; when the effective value is a negative number, the corresponding base sequence may include "TG”.
  • the correspondence between the DNA base sequence and the number includes:
  • the DNA base sequence and the number have a one-to-one correspondence
  • the preset value of the number of digits of the effective value is set to 2.
  • the DNA base sequence and the The numbers are in a one-to-one correspondence relationship, and the one-to-one correspondence relationship may be as shown in Table 1.
  • the number of digits of the effective value is three or more, such as 0.122 and 0.1367
  • the first two (higher) digits 12 and 13 can be one-to-one correspondence with the DNA base sequence according to Table 1, and 12 corresponds "AAG", 13 corresponds to "ACA"; the lower digits 2 and 67 can be coded according to the many-to-one correspondence.
  • the many-to-one correspondence relationship includes: multiple consecutive low-order digits correspond to the same base sequence.
  • the preset value of the number of digits for setting the effective value is 2, the effective value is 0.122 and 0.126, the first two digits 12 can be one-to-one corresponding to the DNA base sequence according to Table 1, and 12 corresponds to "AAG ";
  • the third digit 2 or 6 can be coded according to a many-to-one correspondence, and the many-to-one correspondence may include multiple consecutive low digits corresponding to the same base sequence, such as when the third decimal place is When it is between 1 and 4, it is represented by "TTC”. When the third decimal place is between 5 and 9, it is represented by "TTG”. Therefore, the effective value of 0.122 is finally expressed as "AAGTTC”, and the effective value of 0.126 is finally expressed as "AAGTTG”.
  • the correspondence between the DNA base sequence and the number may be combined with the correspondence between the DNA base sequence and the symbol.
  • TTC when the third decimal place is between 1 and 4 and the effective value is positive, it is represented by "TTC"; when the third decimal place is between 1 and 4, When the valid value is negative, it is represented by "TTT"; when the third decimal place is between 5-9 and the valid value is positive, it is represented by “TTG”; when the third decimal place is between 5 and When it is between 9 and the effective value is negative, it is indicated by "TTA”.
  • Fig. 7 is a method flowchart of an embodiment of an image encoding method provided by the present disclosure.
  • the present disclosure provides method operation steps as shown in the following embodiments or drawings, more or less operation steps may be included in the method based on conventional or without creative labor. In steps where there is no necessary causality logically, the execution order of these steps is not limited to the execution order provided by the embodiments of the present disclosure.
  • step S13 is based on the corresponding relationship between the DNA base sequence and the number and the effective value
  • Determining the coding DNA sequence of the wavelet transform coefficient includes: step S132 and step S133.
  • Step S132 according to the corresponding relationship between the DNA base sequence and the number and the effective value, sequentially encode the DNA base sequence corresponding to the effective value;
  • Step S133 When N consecutive identical numbers appear in the effective value, (N ⁇ 2), code according to the format "base sequence corresponding to the same number, DNA base sequence corresponding to N" to determine the Coding DNA sequence of wavelet transform coefficients.
  • the corresponding relationship between the DNA base sequence and the number includes the one described in the above embodiment: when the number of digits of the effective value is less than or equal to a preset value, the DNA base sequence is The numbers are in a one-to-one correspondence; when the number of digits of the effective value is greater than the preset value, wherein the high-order digits of the effective value that are less than or equal to the preset value and the DNA base sequence are There is a one-to-one correspondence, and there is a many-to-one correspondence between the low-digit numbers greater than the preset value and the DNA base sequence; the many-to-one correspondence includes: multiple consecutive low-digit numbers correspond to the same base sequence . According to the number of digits of the effective value and the specific number, the corresponding DNA base sequence is found in the corresponding relationship, and the effective value can be coded in sequence from high to low (from left to right).
  • the coding DNA sequence corresponding to the wavelet transform coefficients is very long, and the same number will inevitably appear N consecutive times.
  • consecutively encoding the same DNA base sequence will cause difficulty in synthesis, therefore, the following format "the base sequence corresponding to the same number, and the DNA base sequence corresponding to N" can be used for encoding. For example, if there are 3 consecutive 0s in the wavelet coefficient, the corresponding coding DNA sequence of 0 is "TA”, and the number 3 can follow the corresponding relationship in Table 1, and the corresponding coding DNA sequence is "AG”, which is finally expressed as "TAAG” .
  • Fig. 8 is a method flowchart of an embodiment of an image encoding method provided by the present disclosure.
  • the present disclosure provides method operation steps as shown in the following embodiments or drawings, more or less operation steps may be included in the method based on conventional or without creative labor. In steps where there is no necessary causality logically, the execution order of these steps is not limited to the execution order provided by the embodiments of the present disclosure.
  • step S14 the coding of the wavelet transform coefficients is connected according to the level of the sub-image.
  • DNA sequence, determining the coding DNA sequence of the original image includes: step S141.
  • Step S141 sequentially connect the coding DNA sequences corresponding to the wavelet transform coefficients corresponding to the pixel data of the sub-images to determine the coding DNA sequence of the original image.
  • the order of the sub-image levels includes ascending order and descending order.
  • the highest level of the sub-image is three levels, and the pixel data of the sub-images are sequentially connected according to the ascending order of the sub-images
  • the coding DNA sequence corresponding to the corresponding wavelet transform coefficient includes, the connection sequence may include: the coding DNA sequence corresponding to LL1, the coding DNA sequence corresponding to HL1, the coding DNA sequence corresponding to LH1, the coding DNA sequence corresponding to HH1, and the coding DNA sequence corresponding to LL2.
  • Coding DNA sequence coding DNA sequence corresponding to HL2, coding DNA sequence corresponding to LH2, coding DNA sequence corresponding to HH2, coding DNA sequence corresponding to LL3, coding DNA sequence corresponding to HL3, coding DNA sequence corresponding to LH3, coding DNA sequence corresponding to HH3 DNA sequence.
  • the highest level of the sub-image is five levels.
  • two bits can be reserved for the Y information wavelet transform coefficients corresponding to the five-level sub-images Significant digits, U information wavelet transform coefficients and V information wavelet transform coefficients can retain two significant digits; Y information wavelet transform coefficients corresponding to four-level sub-images and three-level sub-images can retain two significant digits, corresponding to four-level sub-images U information wavelet transform coefficients and V information wavelet transform coefficients can retain two significant digits; the Y information wavelet transform coefficients corresponding to the secondary sub-image can retain one significant digit, and the Y information wavelet transform coefficients corresponding to the primary sub-image can be removed.
  • the U information wavelet transform coefficients and V information wavelet transform coefficients corresponding to the third-level sub-image, the second-level sub-image, and the first-level sub-image can be removed.
  • the coded DNA sequence corresponding to the wavelet transform coefficients corresponding to the pixel data of the sub-images is sequentially connected, and the connection sequence may include: Y information wavelet transform corresponding to the pixel data of the five-level sub-images
  • the coding DNA sequence of the coefficient, the coding DNA sequence of the U information wavelet transform coefficient corresponding to the pixel data of the fifth-level sub-image, the coding DNA sequence of the V information wavelet transform coefficient corresponding to the pixel data of the fifth-level sub-image, and the pixels of the fourth-level sub-image The coding DNA sequence of the Y wavelet transform coefficient corresponding to the data, the coding DNA sequence of the U information wavelet transform coefficient corresponding to the pixel data of the four-level sub-image, the coding DNA sequence of the V
  • the wavelet transform coefficients corresponding to the third-level sub-image and the second-level sub-image are only Y-shaped, so they can be alternately arranged according to the corresponding relationship between the wavelet transform coefficients of the third-level sub-image and the second-level sub-image
  • the corresponding encoded DNA sequences can be connected according to the following data format, which includes "wavelet coefficients corresponding to a certain pixel in the third-level sub-image + TT + wavelet coefficients corresponding to the pixel in the second-level sub-image".
  • the position coordinates of the wavelet coefficients corresponding to the three-level sub-image are (i, j), corresponding to the wavelet coefficients (2i, 2j), (2i, 2j+1), (2i+1,2j) corresponding to the two-level sub-image , (2i+1,2j+1), after the wavelet coefficients corresponding to the three-level sub-image, these four wavelet coefficients are sequentially stored.
  • the wavelet transform coefficient has only one type Y
  • the wavelet coefficient corresponding to a single pixel in the three-level sub-image after wavelet transform and the wavelet coefficient corresponding to the pixel in the second-level sub-image are adjacent , Encoding using the above format is helpful to reduce the complexity of encoding.
  • FIG. 9 is a method flowchart of an embodiment of an image encoding method provided by the present disclosure.
  • the present disclosure provides method operation steps as shown in the following embodiments or drawings, more or less operation steps may be included in the method based on conventional or without creative labor. In steps where there is no necessary causality logically, the execution order of these steps is not limited to the execution order provided by the embodiments of the present disclosure.
  • step S141 an embodiment of an image coding method provided by the present disclosure is shown in FIG. 9.
  • the difference from the above-mentioned embodiment is that in step S141, the sub-images are sequentially connected according to the order of the sub-image levels.
  • the coding DNA sequence corresponding to the wavelet transform coefficient corresponding to the pixel data of, and determining the coding DNA sequence of the original image includes: step S1411 and step S1412.
  • Step S141 in accordance with the format "level number + preset base label + maximum absolute value + level number + preset base label", sequentially place the codes corresponding to the wavelet transform coefficients corresponding to the pixel data of the sub-image Adding the DNA base sequence corresponding to the largest absolute value in the wavelet transform coefficient before the DNA sequence to obtain the coding DNA sequence of the sub-image;
  • Step S1412 according to the sub-image level sequence, sequentially connect the coding DNA sequence of the sub-images to determine the coding DNA sequence of the original image.
  • the addition format when the stored wavelet coefficient is not the maximum absolute value, includes "level number + line number + segment number + base corresponding to the wavelet coefficient + level number + line number + segment number", as described
  • the sub-image level sequence may include ascending order or descending order, and the coding DNA sequence of the sub-images are sequentially connected to determine the coding DNA sequence of the original image.
  • the format when the sub-image is the maximum absolute value of the corresponding wavelet transform coefficient, the format includes: "level number + preset base label + maximum absolute value + level number + preset base label ", the level number represents the level number of the sub-image, and the preset base mark can be like "GTGTGTTATA”.
  • the level number and the DNA base sequence corresponding to the maximum absolute value need to be added to The coding DNA sequence corresponding to the sub-image.
  • the maximum absolute value of the five-level low-frequency level sub-image is 7654.
  • the maximum absolute value 7654 can be coded according to the DNA base sequence corresponding to the numbers in Table 2, expressed as "CT+CG+AG+AC", and the first level corresponds to The DNA base sequence of is "AAT”, and the preset base label is "GTGTGTTATA". Then, the maximum absolute value of the five-level low-frequency level sub-image is 7654 expressed as: "AATGTGTGTTATACTCGAGACAATGTGTGTTATA”.
  • the level number and the preset base mark appear at both the front and back ends of the maximum absolute value, which facilitates the verification during decoding. For example, when reading, the level number and the preset base mark are first read. Then, after reading the base sequence corresponding to the maximum absolute value, read the level number and the preset base label again. When it is found that the level number read for the first time and the preset base label are different, the description An error occurred in the coding DNA sequence.
  • Fig. 10 is a method flowchart of an embodiment of an image encoding method provided by the present disclosure.
  • the present disclosure provides method operation steps as shown in the following embodiments or drawings, more or less operation steps may be included in the method based on conventional or without creative labor. In steps where there is no necessary causality logically, the execution order of these steps is not limited to the execution order provided by the embodiments of the present disclosure.
  • step S141 the pixels of the sub-images are sequentially connected according to the order of the sub-image levels.
  • the coding DNA sequence corresponding to the wavelet transform coefficient corresponding to the data to determine the coding DNA sequence of the original image includes: step S1413, step S1414, step S1415, and step S1416:
  • Step S1413 sequentially connect the coded DNA sequences corresponding to the wavelet transform coefficients corresponding to the pixel data of the sub-images;
  • Step S1414 according to the preset length value, cut the ligated coding DNA sequence into M rows of DNA subsequences (M ⁇ 1);
  • Step S1415 cutting the DNA subsequence into X DNA fragments (X ⁇ 1) according to the preset width value
  • Step S1416 Add the base sequence corresponding to the index mark to the DNA fragment, the index mark including the sub-image information corresponding to the DNA fragment and the line number and segment number of the DNA fragment.
  • the coding DNA sequences corresponding to the wavelet transform coefficients corresponding to the pixel data of the sub-images may be sequentially connected according to the sub-image level order in the foregoing embodiment, such as ascending order and descending order.
  • the ligated coding DNA sequence contains the information of all the decomposed sub-images. There are many DNA base sequences and it is difficult to synthesize. In order to synthesize the DNA sequence effectively, the ligated coding DNA sequence should be set according to a preset length value, such as 40 ⁇ 130nt is cut to obtain M rows of DNA subsequences, and the DNA subsequences are further cut to obtain X DNA fragments.
  • the selection of the preset length value and the preset width value is not limited to the requirements of the DNA synthesis process, but may also be based on the type of the sub-image pixel data, the level of the sub-image, the frequency of the sub-image, etc., the same
  • the DNA base sequence information of the attribute is divided into the same DNA fragment.
  • the DNA base sequence corresponding to the line number and the segment number needs to be added to the corresponding DNA fragment to facilitate subsequent connection and image decoding.
  • the corresponding relationship between the line number and the DNA base sequence may include the corresponding relationship in Table 2, and the corresponding relationship between the segment number and the DNA base sequence may include the corresponding relationship in Table 3.
  • an index mark is added to the DNA fragment, and the index mark includes the sub-image information corresponding to the DNA fragment and the line number and segment number of the DNA fragment, which is beneficial to accurately identify the location during the later decoding.
  • the content objects contained in the DNA fragments are spliced.
  • the sub-image information includes: a level number of the sub-image, pixel information, and a type mark of the sub-image.
  • the level number of the sub-image may include the one-level or multi-level decomposition of the original image using the wavelet transform function in the above-mentioned embodiment, as described in FIG.
  • the pixel information may include the YUV information of the sub-image pixels in the above-mentioned embodiment
  • the type mark of the sub-image may include a series of different results obtained after the original image is subjected to wavelet transformation in the above-mentioned example
  • Sub-images of frequency or different components ie, horizontal component, vertical component or diagonal component, such as HL1, LH1, HH1, HL2, LH2, HH2, etc.
  • Y represents brightness
  • U and V represent chroma and saturation, respectively, which may include the correspondence between the following sub-image information and DNA base sequence, refer to Table 4, where : Y0 represents the low-frequency sub-image of brightness, Y10 represents the first-level high-frequency horizontal sub-image of brightness, Y11 represents the first-level high-frequency vertical sub-image of brightness, and Y12 represents the first-level high-frequency diagonal sub-image of brightness , Y20 represents a secondary high-frequency horizontal sub-image of brightness, Y21 represents a secondary high-frequency vertical sub-image of brightness, and Y22 represents a secondary high-frequency diagonal sub-image of brightness.
  • U0 represents the low-frequency sub-image of color
  • U10 represents the first-level high-frequency horizontal sub-image of color
  • U11 represents the first-level high-frequency vertical sub-image of color
  • U12 represents the first-level high-frequency diagonal sub-image of color
  • U20 represents the second-level high-frequency diagonal sub-image of color.
  • Level high frequency horizontal sub image U21 represents the secondary high frequency vertical sub image of color
  • U22 represents the secondary high frequency diagonal sub image of color.
  • V0 represents the low-frequency sub-image of saturation
  • V10 represents the first-level high-frequency horizontal sub-image of saturation
  • V11 represents the first-level high-frequency vertical sub-image of saturation
  • V12 represents the first-level high-frequency diagonal sub-image of saturation.
  • V21 is the secondary high-frequency vertical sub-image of saturation
  • V22 is the secondary high-frequency diagonal sub-image of saturation.
  • step S1416 a base sequence corresponding to an index mark is added to the DNA fragment, and the index mark includes sub-image information corresponding to the DNA fragment and the row number of the DNA fragment And segment numbers, including:
  • the base sequence corresponding to the index mark is added to the front and back ends of the DNA fragment, and the index mark includes the sub-image information corresponding to the DNA fragment and the line number and segment number of the DNA fragment to determine the original image
  • the coding DNA sequence is
  • the base sequence corresponding to the index mark is added to the front and back ends of the DNA fragment, as shown in Table 4.
  • Table 7 Each value in Table 6 is divided by the maximum absolute value of the U information wavelet transform coefficient, and two decimal places are retained to obtain Table 7.
  • the decimal part in Table 7 is coded into a DNA sequence according to the corresponding relationship between the DNA base sequence and the number in the above embodiment, and the first five lines of the DNA sequence are taken as an example as follows:
  • the number of encodings of brightness information Y is as follows: 4598 encoding DNA sequences for secondary sub-image synthesis; 1120 encoding DNA sequences for tertiary sub-image synthesis; fourth-level sub-image synthesis 466 encoding DNA sequences; 172 encoding DNA sequences synthesized from fifth-level sub-image; the number of encodings of color information U is as follows: fourth-level sub-image synthesis 468 encoding DNA sequences; fifth-level sub-image synthesis 168 encoding DNA sequences; saturation
  • the number of codes for the degree information V is as follows: the four-level sub-image synthesizes 459 coding DNA sequences; the fifth-level sub-image synthesizes 166 coding DNA sequences.
  • the total number of synthesized coding DNA sequences in Fig. 11 is 7,617. Compared with the currently recognized better coding technology (fountain code method), the coding efficiency of the present disclosure is 6.3 times that of the fountain code method.
  • the number of coefficients stored in DNA after wavelet transformation in Figure 12 is counted: the number of encodings of brightness information Y is as follows: 8906 encoding DNA sequences for secondary sub-image synthesis; 2470 encoding DNA sequences for tertiary sub-image synthesis; Four-level sub-image synthesis 624 encoding DNA sequences; fifth-level sub-image synthesis 260 encoding DNA sequences; the number of encodings of color information U is as follows: fourth-level sub-image synthesis 620 encoding DNA sequences; fifth-level sub-image synthesis 256 Encoding DNA sequence; the number of encodings of saturation information V is as follows: 612 encoding DNA sequences are synthesized from four-level sub-image; 246 en
  • Fig. 13 is a method flowchart of an embodiment of an image decoding method provided by the present disclosure.
  • the present disclosure provides method operation steps as shown in the following embodiments or drawings, more or less operation steps may be included in the method based on conventional or without creative labor. In steps where there is no necessary causality logically, the execution order of these steps is not limited to the execution order provided by the embodiments of the present disclosure.
  • FIG. 13 An embodiment of an image decoding method provided by the present disclosure is shown in FIG. 13, including:
  • Step S21 Obtain the coding DNA sequence of the original image
  • Step S22 extracting the index marker base sequence and the DNA fragment sequence in the coding DNA sequence
  • Step S23 Determine the wavelet transform coefficient of the sub-image according to the corresponding relationship between the index mark base sequence and the number and the corresponding relationship between the DNA fragment sequence and the number;
  • Step S24 Perform inverse wavelet transform on the wavelet transform coefficients to obtain a decoded image.
  • the coding DNA sequence of the original image may include several nucleic acid fragment structures.
  • the nucleic acid fragment structure is shown in Table 5.
  • the number of base sequences can be marked according to a preset index.
  • the first 20 nt is the flanking primer sequence
  • 8-15 nt is the index coding sequence.
  • the index mark includes the sub-image information corresponding to the DNA fragment and the row number and segment number of the DNA fragment
  • the corresponding relationship between the sub-image information and the DNA base sequence in the above embodiment includes the corresponding relationship between the row number of the DNA fragment and the base sequence as shown in Table 4, including the segment of the DNA fragment as shown in Table 2.
  • the corresponding relationship between the number and the base sequence includes the decoding of the index mark into digital information as shown in Table 3.
  • the sub-image information includes the level number of the sub-image, pixel information, and the sub-image Type tag.
  • the corresponding relationship between the DNA fragment sequence and the number is the same as that in the foregoing embodiment, and may include the corresponding relationship as in Table 1.
  • the DNA fragments are decoded into digital information.
  • the decoded digital information of the sub-image that is, the wavelet transform coefficient
  • the decoded digital information of the sub-image is subjected to the inverse transform of the wavelet transform to obtain a decoded image.
  • FIG. 14 is a block diagram showing an image encoding device according to an exemplary embodiment. Refer to Figure 14, including:
  • the decomposition module 11 is configured to decompose the original image at one or more levels through a wavelet transform function to obtain wavelet transform coefficients corresponding to pixel data of multiple sub-images and the levels of the sub-images;
  • the processing module 12 is configured to determine the effective value of the wavelet transform coefficient according to the wavelet transform coefficient and the level of the sub-image corresponding to the wavelet transform coefficient;
  • the coding module 13 is used to determine the coding DNA sequence of the wavelet transform coefficient according to the corresponding relationship between the DNA base sequence and the number and the effective value;
  • the connecting module 14 is configured to connect the coding DNA sequence of the wavelet transform coefficients according to the level of the sub-image to determine the coding DNA sequence of the original image.
  • Fig. 15 is a block diagram showing an encoding device according to an exemplary embodiment. 15, the processing module 12 includes:
  • the processing sub-module 121 is configured to divide the wavelet transform coefficient corresponding to the pixel data of the sub-image by the maximum absolute value of the wavelet transform coefficient corresponding to the pixel data of the sub-image according to the wavelet transform coefficient to obtain the first Numerical value
  • Fig. 16 is a block diagram showing an encoding device according to an exemplary embodiment.
  • the determining submodule 122 includes:
  • the first determining unit 1221 is configured to determine the effective number of digits of the first value according to the corresponding relationship between the level of the sub-image, pixel information, and the number of significant digits, where the pixel information includes pixel brightness and pixel chromaticity;
  • the second determining unit 1222 is configured to determine the effective value of the wavelet transform coefficient according to the effective number of bits of the first value.
  • the number is a decimal number.
  • Fig. 17 is a block diagram showing an encoding device according to an exemplary embodiment.
  • the encoding module 13 includes:
  • the first encoding sub-module 131 is configured to determine the number and symbol of the effective value, the corresponding relationship between the DNA base sequence and the number, and the corresponding relationship between the DNA base sequence and the symbol. Coding DNA sequence of wavelet transform coefficients.
  • the correspondence between the DNA base sequence and the number includes:
  • the DNA base sequence and the number have a one-to-one correspondence
  • Fig. 18 is a block diagram showing an encoding device according to an exemplary embodiment.
  • the encoding module 13 includes:
  • the second encoding sub-module 132 is configured to sequentially encode the DNA base sequence corresponding to the effective value according to the corresponding relationship between the DNA base sequence and the number and the effective value;
  • the third encoding sub-module 133 when N consecutive identical numbers appear in the effective value, (N ⁇ 2), encode according to the format "base sequence corresponding to the same number, DNA base sequence corresponding to N" , Determine the coding DNA sequence of the wavelet transform coefficient.
  • connection module 14 includes:
  • connection sub-module 141 is configured to sequentially connect the coding DNA sequences corresponding to the wavelet transform coefficients corresponding to the pixel data of the sub-images according to the sub-image level order to determine the coding DNA sequence of the original image.
  • Fig. 20 is a block diagram showing an encoding device according to an exemplary embodiment. 20, the connection sub-module 141 includes:
  • the first processing unit 1411 is configured to sequentially display the wavelet transform coefficients corresponding to the pixel data of the sub-image according to the format "level number + preset base label + maximum absolute value + level number + preset base label" Adding the DNA base sequence corresponding to the largest absolute value in the wavelet transform coefficient before the corresponding coding DNA sequence to obtain the coding DNA sequence of the sub-image;
  • the first connecting unit 1412 sequentially connects the coding DNA sequences of the sub-images according to the sub-image level order to determine the coding DNA sequences of the original image.
  • connection sub-module 141 includes:
  • the second connecting unit 1413 is configured to sequentially connect the encoded DNA sequences corresponding to the wavelet transform coefficients corresponding to the pixel data of the sub-images in the order of the sub-image levels;
  • the second processing unit 1414 is configured to cut the linked coding DNA sequence into M rows of DNA subsequences (M ⁇ 1) according to the preset length value;
  • the third processing unit 1415 is configured to cut the DNA subsequence into X DNA fragments (X ⁇ 1) according to the preset width value;
  • the adding unit 1416 is configured to add a base sequence corresponding to an index mark to the DNA fragment, and the index mark includes sub-image information corresponding to the DNA fragment and the line number and segment number of the DNA fragment.
  • the sub-image information includes: a level number of the sub-image, pixel information, and a type mark of the sub-image.
  • the adding unit 1416 includes:
  • the adding subunit 1417 is used to add the base sequence corresponding to the index mark at the front and back ends of the DNA fragment, and the index mark includes the sub-image information corresponding to the DNA fragment and the row number and segment of the DNA fragment number.
  • Fig. 22 is a block diagram showing a decoding device according to an exemplary embodiment. Refer to Figure 22, including:
  • the obtaining module 21 is used to obtain the coding DNA sequence of the original image
  • the extraction module 22 is configured to extract the index-mark base sequence and the DNA fragment sequence in the coding DNA sequence according to the preset number of index-mark base sequence bits;
  • the determining module 23 is configured to determine the wavelet transform coefficient of the sub-image according to the corresponding relationship between the index mark base sequence and the number and the corresponding relationship between the DNA fragment sequence and the number;
  • the transform module 24 is configured to perform the inverse transform of the wavelet transform on the wavelet transform coefficients to obtain a decoded image.
  • an image storage method including:
  • the nucleic acid fragments are stored in one or more of the following media, the media including gene chips, plasmids or living cells.
  • an oligonucleotide synthesizer can be used to add flanking primer sequences to the front and back ends of the DNA sequence, and to synthesize nucleic acid fragments, and store the nucleic acid fragments in gene chips, plasmids or gene chips by molecular biology means. In living cells, the storage of the image in DNA is completed.
  • an image reading method including:
  • the nucleic acid fragment is decoded into image data.
  • the nucleic acid fragments can be extracted from gene chips, plasmids or living cells by means of amplification and sequencing.
  • the base sequence corresponding to the low-frequency sub-image can be marked with the index to decode and restore to realize random reading of the image.
  • Fig. 23 is a block diagram showing a device 800 for image encoding according to an exemplary embodiment, and Fig. 23 is also applicable to an image decoding device.
  • the device 800 may be a mobile phone, a computer, a digital broadcasting terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
  • the device 800 may include one or more of the following components: a processing component 802, a memory 804, a power supply component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, And the communication component 816.
  • the processing component 802 generally controls the overall operations of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations.
  • the processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the foregoing method.
  • the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components.
  • the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
  • the memory 804 is configured to store various types of data to support operations in the device 800. Examples of these data include instructions for any application or method operating on the device 800, contact data, phone book data, messages, pictures, videos, etc.
  • the memory 804 can be implemented by any type of volatile or nonvolatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic Disk or Optical Disk.
  • SRAM static random access memory
  • EEPROM electrically erasable programmable read-only memory
  • EPROM erasable Programmable Read Only Memory
  • PROM Programmable Read Only Memory
  • ROM Read Only Memory
  • Magnetic Memory Flash Memory
  • Magnetic Disk Magnetic Disk or Optical Disk.
  • the power supply component 806 provides power to various components of the device 800.
  • the power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 800.
  • the multimedia component 808 includes a screen that provides an output interface between the device 800 and the user.
  • the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user.
  • the touch panel includes one or more touch sensors to sense touch, sliding, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure related to the touch or slide operation.
  • the multimedia component 808 includes a front camera and/or a rear camera. When the device 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
  • the audio component 810 is configured to output and/or input audio signals.
  • the audio component 810 includes a microphone (MIC), and when the device 800 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive external audio signals.
  • the received audio signal may be further stored in the memory 804 or transmitted via the communication component 816.
  • the audio component 810 further includes a speaker for outputting audio signals.
  • the I/O interface 812 provides an interface between the processing component 802 and a peripheral interface module.
  • the peripheral interface module may be a keyboard, a click wheel, a button, and the like. These buttons may include but are not limited to: home button, volume button, start button, and lock button.
  • the sensor component 814 includes one or more sensors for providing the device 800 with various aspects of status assessment.
  • the sensor component 814 can detect the on/off status of the device 800 and the relative positioning of the components.
  • the component is the display and the keypad of the device 800.
  • the sensor component 814 can also detect the position change of the device 800 or a component of the device 800. , The presence or absence of contact between the user and the device 800, the orientation or acceleration/deceleration of the device 800, and the temperature change of the device 800.
  • the sensor component 814 may include a proximity sensor configured to detect the presence of nearby objects when there is no physical contact.
  • the sensor component 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications.
  • the sensor component 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
  • the communication component 816 is configured to facilitate wired or wireless communication between the device 800 and other devices.
  • the device 800 can access a wireless network based on a communication standard, such as WiFi, 2G, or 3G, or a combination thereof.
  • the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel.
  • the communication component 816 further includes a near field communication (NFC) module to facilitate short-range communication.
  • the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
  • RFID radio frequency identification
  • IrDA infrared data association
  • UWB ultra-wideband
  • Bluetooth Bluetooth
  • the apparatus 800 may be implemented by one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing equipment (DSPD), programmable logic devices (PLD), field programmable A gate array (FPGA), controller, microcontroller, microprocessor, or other electronic components are implemented to implement the above methods.
  • ASIC application specific integrated circuits
  • DSP digital signal processors
  • DSPD digital signal processing equipment
  • PLD programmable logic devices
  • FPGA field programmable A gate array
  • controller microcontroller, microprocessor, or other electronic components are implemented to implement the above methods.
  • non-transitory computer-readable storage medium including instructions, such as the memory 804 including instructions, which can be executed by the processor 820 of the device 800 to complete the foregoing method.
  • the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
  • Fig. 24 is a block diagram showing a device 1900 for image encoding according to an exemplary embodiment, and Fig. 23 is also applicable to an image decoding device.
  • the device 1900 may be provided as a server.
  • the apparatus 1900 includes a processing component 1922, which further includes one or more processors, and a memory resource represented by a memory 1932, for storing instructions that can be executed by the processing component 1922, such as application programs.
  • the application program stored in the memory 1932 may include one or more modules each corresponding to a set of instructions.
  • the processing component 1922 is configured to execute instructions to perform the above methods.
  • the device 1900 may also include a power component 1926 configured to perform power management of the device 1900, a wired or wireless network interface 1950 configured to connect the device 1900 to the network, and an input output (I/O) interface 1958.
  • the device 1900 can operate based on an operating system stored in the memory 1932, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or the like.
  • non-transitory computer-readable storage medium including instructions, such as the memory 1932 including instructions, which may be executed by the processing component 1922 of the device 1900 to complete the foregoing method.
  • the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.

Abstract

The present disclosure relates to an image encoding method and an image decoding method, and an encoding apparatus and a decoding apparatus. The encoding method comprises: carrying out single-stage or multi-stage decomposition on an original image by means of a wavelet transform function, so as to obtain a wavelet transform coefficient corresponding to pixel data of a plurality of sub-images, and a level of each of the sub-images; determining an effective numerical value of the wavelet transform coefficient according to the wavelet transform coefficient and the level of the sub-image corresponding to the wavelet transform coefficient; determining an encoding DNA sequence of the wavelet transform coefficient according to a correlation between a DNA base sequence and a number, and the effective numerical value; and according to the level of the sub-image, connecting the encoding DNA sequence of the wavelet transform coefficient, and determining an encoding DNA sequence of the original image. According to the present disclosure, the image compression rate is high, and the representation of the number may comprise a number of a binary system or above, such that the probability of four basic bases consecutively appearing is reduced, thereby lowering the difficulty of DNA synthesis.

Description

一种图像编码方法、解码方法、编码装置和解码装置Image coding method, decoding method, coding device and decoding device 技术领域Technical field
本公开涉及信息处理技术领域,尤其涉及一种图像编码方法、解码方法、编码装置和解码装置。The present disclosure relates to the field of information processing technology, and in particular to an image encoding method, decoding method, encoding device, and decoding device.
背景技术Background technique
随着生命科学技术的发展,以及生命科学与其他科学技术的交叉发展,使得利用遗传物质脱氧核糖核酸(DNA)作为存储介质成为可能。DNA合成和测序技术的发展为其成为数值化存储载体提供技术支撑。数字化信息DNA存储指的是把数字化信息存储于DNA的碱基序列中,此项技术利用DNA合成仪人工合成DNA进行存储,利用DNA测序仪来读取所存储的信息。DNA作为存储介质,与现有的磁带或硬盘存储介质相比,具有如下优势:一是DNA体积极小,一个碱基对只有几十个原子大小,以DNA作为存储介质,数据整体的体积将远远小于传统的光盘或硬盘;二是DNA密度大,1克DNA不到指尖上一滴露珠的大小,却能存储700TB的数据,相当于1.4万张50GB容量的蓝光光盘,或233个3TB的硬盘,后者约151千克重;三是DNA稳定性极强,可以长期保存。With the development of life science and technology, as well as the cross-development of life science and other science and technology, it is possible to use genetic material deoxyribonucleic acid (DNA) as a storage medium. The development of DNA synthesis and sequencing technology provides technical support for its becoming a digital storage carrier. Digital information DNA storage refers to the storage of digital information in the base sequence of DNA. This technology uses a DNA synthesizer to artificially synthesize DNA for storage, and a DNA sequencer to read the stored information. As a storage medium, DNA has the following advantages compared with existing tape or hard disk storage media: First, the DNA body is very small, and a base pair is only dozens of atoms in size. With DNA as the storage medium, the overall volume of data will be reduced. It is much smaller than traditional optical discs or hard disks; the second is the high density of DNA. 1 gram of DNA is less than the size of a drop of dew on your fingertips, but it can store 700TB of data, which is equivalent to 14,000 Blu-ray discs with 50GB capacity, or 233 3TB The latter is about 151 kg in weight; the third is that the DNA is extremely stable and can be stored for a long time.
相关技术中,2012年8月,由乔治·丘奇(George Church)和斯里拉姆科索里(SriramKosuri)领导的哈佛团队合成了一个可存储96比特数据的DNA序列。具体存储方式是,为DNA的组成碱基腺嘌呤(A)、鸟嘌呤(G)、胞嘧啶(C)和胸腺嘧啶(T)分别赋予二进制值,通过微流体芯片对DNA序列进行合成,从而使该序列的位置与相关数据集相匹配。当需要对数据进行读取时,只需要将DNA序列还原为二进制即可。In related technologies, in August 2012, a Harvard team led by George Church and Sriram Kosuri synthesized a DNA sequence that can store 96 bits of data. The specific storage method is to assign binary values to the constituent bases of DNA, adenine (A), guanine (G), cytosine (C), and thymine (T), respectively, and synthesize the DNA sequence through a microfluidic chip. Match the position of the sequence to the relevant data set. When you need to read data, you only need to restore the DNA sequence to binary.
随着互联网的发展,人们对高清图像的需求也在不断的增加,将图像数据利用DNA作为存储介质直接进行存储,具有以下不足:信息的压缩率低,图像经编码,将产生大量的核酸序列,造成合成工作量大,成本较高;灵活性低,即编码一张图像,需要合成图像对应的所有核酸序列,不能实现图像精度的任意选择,以及图像信息的随机提取;编码、解码过程中错配率较高,不易完全恢复,如二进制数据读取种可能出现DNA碱基插入或缺失,造成译码错误的发生,从而导致整个图像或图像的局部窗口恢复错误;编码序列碱基重复率较高。With the development of the Internet, people’s demand for high-definition images is also increasing. Using DNA as a storage medium to directly store image data has the following shortcomings: the compression rate of information is low, and the encoding of images will produce a large number of nucleic acid sequences. , Resulting in a large synthesis workload and high cost; low flexibility, that is, to encode an image, all the nucleic acid sequences corresponding to the synthesized image are required, and arbitrary selection of image accuracy and random extraction of image information cannot be achieved; during encoding and decoding The mismatch rate is high, and it is not easy to fully recover. For example, the binary data reading may have DNA base insertion or deletion, causing decoding errors, resulting in errors in the recovery of the entire image or the partial window of the image; the base repetition rate of the coding sequence Higher.
发明内容Summary of the invention
为克服相关技术中存在的问题,本公开提供一种图像编码方法、解码方法、编码装置和解码装置。To overcome the problems in the related art, the present disclosure provides an image encoding method, decoding method, encoding device, and decoding device.
根据本公开实施例的第一方面,提供一种编码方法,包括;According to a first aspect of the embodiments of the present disclosure, there is provided an encoding method, including;
通过小波变换函数,对原始图像进行一级或多级分解,得到多个子图像的像素数据对应的小波变换系数以及所述子图像的级别;The original image is decomposed at one level or multiple levels through the wavelet transform function to obtain wavelet transform coefficients corresponding to the pixel data of multiple sub-images and the levels of the sub-images;
根据所述小波变换系数以及所述小波变换系数对应的子图像的级别,确定所述小波变换系数的有效数值;Determining the effective value of the wavelet transform coefficient according to the wavelet transform coefficient and the level of the sub-image corresponding to the wavelet transform coefficient;
根据DNA碱基序列与数字的对应关系以及所述有效数值,确定所述小波变换系数的编码DNA序列;Determining the coding DNA sequence of the wavelet transform coefficient according to the corresponding relationship between the DNA base sequence and the number and the effective value;
根据所述子图像的级别,连接所述小波变换系数的编码DNA序列,确定所述原始图像的编码DNA序列。According to the level of the sub-image, the coding DNA sequence of the wavelet transform coefficient is connected to determine the coding DNA sequence of the original image.
在一种可能的实现方式中,所述根据所述小波变换系数以及所述小波变换系数对应的子图像的级别,确定所述小波变换系数的有效数值,包括:In a possible implementation manner, the determining the effective value of the wavelet transform coefficient according to the wavelet transform coefficient and the level of the sub-image corresponding to the wavelet transform coefficient includes:
根据所述小波变换系数,将所述子图像的像素数据对应的小波变换系数除以所述子图像的像素数据对应的小波变换系数中的最大绝对值以获得第一数值;According to the wavelet transform coefficient, dividing the wavelet transform coefficient corresponding to the pixel data of the sub-image by the maximum absolute value of the wavelet transform coefficient corresponding to the pixel data of the sub-image to obtain a first value;
根据所述第一数值以及所述子图像的级别,确定所述小波变换系数的有效数值。Determine the effective value of the wavelet transform coefficient according to the first value and the level of the sub-image.
在一种可能的实现方式中,所述根据所述第一数值以及所述子图像的级别,确定所述小波变换系数的有效数值,包括:In a possible implementation manner, the determining the effective value of the wavelet transform coefficient according to the first value and the level of the sub-image includes:
根据所述子图像的级别、像素信息以及有效数字位数的对应关系,确定所述第一数值的有效位数,所述像素信息包括像素亮度、像素色度和像素饱和度;Determining the effective number of digits of the first value according to the corresponding relationship between the level of the sub-image, pixel information, and the number of significant digits, where the pixel information includes pixel brightness, pixel chroma, and pixel saturation;
根据所述第一数值的有效位数,确定所述小波变换系数的有效数值。According to the effective number of digits of the first value, the effective value of the wavelet transform coefficient is determined.
在一种可能的实现方式中,所述数字为十进制数字。In a possible implementation, the number is a decimal number.
在一种可能的实现方式中,所述根据DNA碱基序列与数字的对应关系以及所述有效数值,确定所述小波变换系数的编码DNA序列,包括:In a possible implementation manner, the determining the coding DNA sequence of the wavelet transform coefficient according to the corresponding relationship between the DNA base sequence and the number and the effective value includes:
根据所述有效数值的数字和符号、所述DNA碱基序列与所述数字的对应关系、所述DNA碱基序列与所述符号的对应关系,确定所述小波变换系数的编码DNA序列。Determine the coding DNA sequence of the wavelet transform coefficient according to the number and symbol of the effective value, the corresponding relationship between the DNA base sequence and the number, and the corresponding relationship between the DNA base sequence and the symbol.
在一种可能的实现方式中,所述DNA碱基序列与所述数字的对应关系,包括:In a possible implementation, the correspondence between the DNA base sequence and the number includes:
当所述有效数值的位数小于或等于预设值时,所述DNA碱基序列与所述数字为一一对应的关系;When the number of digits of the effective value is less than or equal to the preset value, the DNA base sequence and the number have a one-to-one correspondence;
当所述有效数值的位数大于所述预设值时,其中,所述有效数值中小于或等于所述预设值的高位数字与DNA碱基序列为一一对应的关系,大于所述预设值的低位数字与DNA碱基序列为多对一的对应关系。When the number of digits of the effective value is greater than the preset value, wherein the high-order digits of the effective value that are less than or equal to the preset value have a one-to-one correspondence with the DNA base sequence, which is greater than the preset value. There is a many-to-one correspondence between the low digits of the value and the DNA base sequence.
在一种可能的实现方式中,所述多对一的对应关系包括:多个连续的低位数字对应相同的碱基序列。In a possible implementation manner, the many-to-one correspondence relationship includes: multiple consecutive low-order digits correspond to the same base sequence.
在一种可能的实现方式中,所述根据DNA碱基序列与数字的对应关系以及所述有效数值,确定所述小波变换系数的编码DNA序列,包括:In a possible implementation manner, the determining the coding DNA sequence of the wavelet transform coefficient according to the corresponding relationship between the DNA base sequence and the number and the effective value includes:
根据所述DNA碱基序列与数字的对应关系以及所述有效数值,将所述有效数值对应的DNA碱基序列依次编码;According to the corresponding relationship between the DNA base sequence and the number and the effective value, sequentially code the DNA base sequence corresponding to the effective value;
当所述有效数值中有连续N个相同数字出现时,(N≥2),按照格式“所述相同数字对应的碱基序列,N对应的DNA碱基序列”编码,确定所述小波变换系数的编码DNA序列。When N consecutive identical numbers appear in the effective value, (N≥2), code according to the format "base sequence corresponding to the same number, DNA base sequence corresponding to N" to determine the wavelet transform coefficient The coding DNA sequence.
在一种可能的实现方式中,根据所述子图像的级别,连接所述小波变换系数的编码DNA序列,确定所述原始图像的编码DNA序列,包括:In a possible implementation, according to the level of the sub-image, connecting the coding DNA sequence of the wavelet transform coefficients to determine the coding DNA sequence of the original image includes:
按照所述子图像级别顺序,依次连接所述子图像的像素数据对应的小波变换系数对应的所述编码DNA序列,确定所述原始图像的编码DNA序列。According to the sub-image level sequence, the coding DNA sequences corresponding to the wavelet transform coefficients corresponding to the pixel data of the sub-images are sequentially connected to determine the coding DNA sequence of the original image.
在一种可能的实现方式中,所述按照所述子图像级别顺序,依次连接所述子图像的像素数据对应的小波变换系数对应的所述编码DNA序列,确定所述原始图像的编码DNA序列,包括:In a possible implementation manner, the coding DNA sequence corresponding to the wavelet transform coefficients corresponding to the pixel data of the sub-image is sequentially connected according to the sub-image level order to determine the coding DNA sequence of the original image ,include:
按照格式“级别号+预设的碱基标记+最大绝对值+级别号+预设的碱基标记”,依次在所述子图像的像素数据对应的小波变换系数对应的所述编码DNA序列前加入所述小波变换系数中的最大绝对值对应的DNA碱基序列,得到所述子图像的编码DNA序列;According to the format "level number+preset base label+maximum absolute value+level number+preset base label", in sequence before the coding DNA sequence corresponding to the wavelet transform coefficient corresponding to the pixel data of the sub-image Adding the DNA base sequence corresponding to the largest absolute value in the wavelet transform coefficient to obtain the coding DNA sequence of the sub-image;
按照所述子图像级别顺序,依次连接所述子图像的编码DNA序列,确定所述原始图像的编码DNA序列。According to the sub-image level sequence, the coding DNA sequences of the sub-images are sequentially connected to determine the coding DNA sequence of the original image.
在一种可能的实现方式中,按照所述子图像级别顺序,依次连接所述子图像的像素数据对应的小波变换系数对应的所述编码DNA序列,确定所述原始图像的编码DNA序列,包括:In a possible implementation manner, according to the sub-image level order, sequentially connecting the coding DNA sequences corresponding to the wavelet transform coefficients corresponding to the pixel data of the sub-images to determine the coding DNA sequence of the original image includes :
按照所述子图像级别顺序,依次连接所述子图像的像素数据对应的小波变换系数对应的所述编码DNA序列;According to the sub-image level order, sequentially connect the coding DNA sequences corresponding to the wavelet transform coefficients corresponding to the pixel data of the sub-images;
根据预设长度值,将连接后的所述编码DNA序列切割成M行DNA子序列(M≥1);According to the preset length value, cutting the ligated coding DNA sequence into M rows of DNA subsequences (M≥1);
根据预设宽度值,将所述DNA子序列切割成X段DNA片段(X≥1);According to the preset width value, cut the DNA subsequence into X DNA fragments (X≥1);
将索引标记对应的碱基序列添加到所述DNA片段上,所述索引标记包括所述DNA片段对应的子图像信息以及DNA片段的行号和段号。The base sequence corresponding to the index mark is added to the DNA fragment, and the index mark includes the sub-image information corresponding to the DNA fragment and the row number and segment number of the DNA fragment.
在一种可能的实现方式中,所述子图像信息包括:子图像的级别编号、像素信息以及子图像的种类标记。In a possible implementation manner, the sub-image information includes: a level number of the sub-image, pixel information, and a type mark of the sub-image.
在一种可能的实现方式中,将索引标记对应的碱基序列添加到所述DNA片段上,所述索引标记包括所述DNA片段对应的子图像信息以及DNA片段的行号和段号,包括:In a possible implementation manner, the base sequence corresponding to an index mark is added to the DNA fragment, and the index mark includes sub-image information corresponding to the DNA fragment and the line number and segment number of the DNA fragment, including :
在所述DNA片段的前后两端分别添加所述索引标记对应的碱基序列,所述索引标记包括所述DNA片段对应的子图像信息以及DNA片段的行号和段号。The base sequence corresponding to the index mark is added to the front and back ends of the DNA fragment, and the index mark includes the sub-image information corresponding to the DNA fragment and the row number and segment number of the DNA fragment.
根据本公开实施例的第二方面,提供一种图像解码方法,包括:According to a second aspect of the embodiments of the present disclosure, there is provided an image decoding method, including:
获取所述原始图像的编码DNA序列;Acquiring the coding DNA sequence of the original image;
根据预设的索引标记碱基序列位数,提取所述编码DNA序列中的索引标记碱基序列和DNA片段序列;Extracting the index-marking base sequence and the DNA fragment sequence in the coding DNA sequence according to the preset number of index-marking base sequence bits;
根据所述索引标记碱基序列与数字的对应关系以及所述DNA片段序列与数字的对应关系,确定子图像的小波变换系数;Determining the wavelet transform coefficient of the sub-image according to the corresponding relationship between the index mark base sequence and the number and the corresponding relationship between the DNA fragment sequence and the number;
对所述小波变换系数进行小波变换的逆变换,得到解码图像。Perform the inverse transform of the wavelet transform on the wavelet transform coefficients to obtain a decoded image.
根据本公开实施例的第三方面,提供一种图像编码装置,包括:According to a third aspect of the embodiments of the present disclosure, there is provided an image encoding device, including:
分解模块,用于通过小波变换函数,对原始图像进行一级或多级分解,得到多个子图像的像素数据对应的小波变换系数以及所述子图像的级别;The decomposition module is used to decompose the original image at one or more levels through a wavelet transform function to obtain wavelet transform coefficients corresponding to pixel data of multiple sub-images and the levels of the sub-images;
处理模块,用于根据所述小波变换系数以及所述小波变换系数对应的子图像的级别,确定所述小波变换系数的有效数值;A processing module, configured to determine the effective value of the wavelet transform coefficient according to the wavelet transform coefficient and the level of the sub-image corresponding to the wavelet transform coefficient;
编码模块,用于根据DNA碱基序列与数字的对应关系以及所述有效数值,确定所述小波变换系数的编码DNA序列;An encoding module for determining the encoding DNA sequence of the wavelet transform coefficient according to the corresponding relationship between the DNA base sequence and the number and the effective value;
连接模块,用于根据所述子图像的级别,连接所述小波变换系数的编码DNA序列,确定所述原始图像的编码DNA序列。The connection module is used to connect the coding DNA sequence of the wavelet transform coefficient according to the level of the sub-image to determine the coding DNA sequence of the original image.
在一种可能的实现方式中,所述处理模块包括:In a possible implementation manner, the processing module includes:
处理子模块,用于根据所述小波变换系数,将所述子图像的像素数据对应的小波变换系数除以所述子图像的像素数据对应的小波变换系数中的最大绝对值以获得第一数值;The processing sub-module is configured to divide the wavelet transform coefficient corresponding to the pixel data of the sub-image by the maximum absolute value of the wavelet transform coefficient corresponding to the pixel data of the sub-image according to the wavelet transform coefficient to obtain a first value ;
确定子模块,用于根据所述第一数值以及所述子图像的级别,确定所述小波变换系数的有效数值。The determining sub-module is configured to determine the effective value of the wavelet transform coefficient according to the first value and the level of the sub-image.
在一种可能的实现方式中,所述确定子模块包括:In a possible implementation manner, the determining submodule includes:
第一确定单元,用于根据所述子图像的级别、像素信息以及有效数字位数的对应关系,确定所述第一数值的有效位数,所述像素信息包括像素亮度、像素色度和像素饱和度;The first determining unit is configured to determine the effective number of digits of the first value according to the corresponding relationship between the level of the sub-image, pixel information, and the number of significant digits. The pixel information includes pixel brightness, pixel chroma, and pixel saturation;
第二确定单元,用于根据所述第一数值的有效位数,确定所述小波变换系数的有效数值。The second determining unit is configured to determine the effective value of the wavelet transform coefficient according to the effective number of bits of the first value.
在一种可能的实现方式中,所述数字为十进制数字。In a possible implementation, the number is a decimal number.
在一种可能的实现方式中,所述编码模块包括:In a possible implementation manner, the encoding module includes:
第一编码子模块,用于根据所述有效数值的数字和符号、所述DNA碱基序列与所述数字的对应关系、所述DNA碱基序列与所述符号的对应关系,确定所述小波变换系数的编码DNA序列。The first coding sub-module is used to determine the wavelet based on the number and symbol of the effective value, the corresponding relationship between the DNA base sequence and the number, and the corresponding relationship between the DNA base sequence and the symbol The DNA sequence encoding the transformation coefficients.
在一种可能的实现方式中,所述DNA碱基序列与所述数字的对应关系,包括:In a possible implementation, the correspondence between the DNA base sequence and the number includes:
当所述有效数值的位数小于或等于预设值时,所述DNA碱基序列与所述数字为一一对应的关系;When the number of digits of the effective value is less than or equal to the preset value, the DNA base sequence and the number have a one-to-one correspondence;
当所述有效数值的位数大于所述预设值时,其中,所述有效数值中小于或等于所述预设值的高位数字与DNA碱基序列为一一对应的关系,大于所述预设值的低位数字与DNA碱基序列为多对一的对应关系。When the number of digits of the effective value is greater than the preset value, wherein the high-order digits of the effective value that are less than or equal to the preset value have a one-to-one correspondence with the DNA base sequence, which is greater than the preset value. There is a many-to-one correspondence between the low digits of the value and the DNA base sequence.
在一种可能的实现方式中,所述多对一的对应关系包括:多个连续的低位数字对应相同的碱基序列。In a possible implementation manner, the many-to-one correspondence relationship includes: multiple consecutive low-order digits correspond to the same base sequence.
在一种可能的实现方式中,所述编码模块包括:In a possible implementation manner, the encoding module includes:
第二编码子模块,用于根据所述DNA碱基序列与数字的对应关系以及所述有效数值,将所述有效数值对应的DNA碱基序列依次编码;The second encoding sub-module is used to sequentially encode the DNA base sequence corresponding to the effective value according to the corresponding relationship between the DNA base sequence and the number and the effective value;
第三编码子模块,当所述有效数值中有连续N个相同数字出现时,(N≥2),按照格式“所述相同数字对应的碱基序列,N对应的DNA碱基序列”编码,确定所述小波变换系数的编码DNA序列。The third coding sub-module, when N consecutive identical numbers appear in the effective value, (N≥2), code according to the format "base sequence corresponding to the same number, DNA base sequence corresponding to N", Determine the coding DNA sequence of the wavelet transform coefficients.
在一种可能的实现方式中,所述连接模块包括:In a possible implementation manner, the connection module includes:
连接子模块,用于按照所述子图像级别顺序,依次连接所述子图像的像素数据对应的小波变换系数对应的所述编码DNA序列,确定所述原始图像的编码DNA序列。The connection sub-module is configured to sequentially connect the coding DNA sequence corresponding to the wavelet transform coefficients corresponding to the pixel data of the sub-image according to the sub-image level order to determine the coding DNA sequence of the original image.
在一种可能的实现方式中,所述连接子模块包括:In a possible implementation manner, the connection submodule includes:
第一处理单元,用于按照格式“级别号+预设的碱基标记+最大绝对值+级别号+预设的碱基标记”,依次在所述子图像的像素数据对应的小波变换系数对应的所述编码DNA序列前加入所述小波变换系数中的最大绝对值对应的DNA碱基序列,得到所述子图像的编码DNA序列;The first processing unit is configured to sequentially correspond to the wavelet transform coefficients corresponding to the pixel data of the sub-image according to the format "level number + preset base label + maximum absolute value + level number + preset base label" Adding the DNA base sequence corresponding to the largest absolute value in the wavelet transform coefficient before the coding DNA sequence to obtain the coding DNA sequence of the sub-image;
第一连接单元,按照所述子图像级别顺序,依次连接所述子图像的编码DNA序列,确定所述原始图像的编码DNA序列。The first connecting unit sequentially connects the coding DNA sequences of the sub-images according to the sub-image level order to determine the coding DNA sequences of the original image.
在一种可能的实现方式中,所述连接子模块包括:In a possible implementation manner, the connection submodule includes:
第二连接单元,用于按照所述子图像级别顺序,依次连接所述子图像的像素数据对应的小波变换系数对应的所述编码DNA序列;The second connecting unit is configured to sequentially connect the coded DNA sequences corresponding to the wavelet transform coefficients corresponding to the pixel data of the sub-images in the order of the sub-image levels;
第二处理单元,用于根据预设长度值,将连接后的所述编码DNA序列切割成M行DNA子序列(M≥1);The second processing unit is configured to cut the linked coding DNA sequence into M rows of DNA subsequences (M≥1) according to the preset length value;
第三处理单元,用于根据预设宽度值,将所述DNA子序列切割成X段DNA片段(X≥1);The third processing unit is configured to cut the DNA subsequence into X DNA fragments (X≥1) according to the preset width value;
添加单元,用于将索引标记对应的碱基序列添加到所述DNA片段上,所述索引标记包括所述DNA片段对应的子图像信息以及DNA片段的行号和段号。The adding unit is used to add the base sequence corresponding to the index mark to the DNA fragment, and the index mark includes the sub-image information corresponding to the DNA fragment and the line number and segment number of the DNA fragment.
在一种可能的实现方式中,所述子图像信息包括:子图像的级别编号、像素信息以及子图像的种类标记。In a possible implementation manner, the sub-image information includes: a level number of the sub-image, pixel information, and a type mark of the sub-image.
在一种可能的实现方式中,所述添加单元包括:In a possible implementation manner, the adding unit includes:
添加子单元,用于在所述DNA片段的前后两端分别添加所述索引标记对应的碱基序列,所述索引标记包括所述DNA片段对应的子图像信息以及DNA片段的行号和段号。The adding subunit is used to add the base sequence corresponding to the index mark at the front and back ends of the DNA fragment, and the index mark includes the sub-image information corresponding to the DNA fragment and the row number and segment number of the DNA fragment .
根据本公开实施例的第四方面,提供一种图像解码装置,包括:According to a fourth aspect of the embodiments of the present disclosure, there is provided an image decoding device, including:
获取模块,用于获取所述原始图像的编码DNA序列;An acquisition module for acquiring the coding DNA sequence of the original image;
提取模块,用于根据预设的索引标记碱基序列位数,提取所述编码DNA序列中的索引标记碱基序列和DNA片段序列;The extraction module is used to extract the index mark base sequence and the DNA fragment sequence in the coding DNA sequence according to the preset number of index mark base sequence bits;
确定模块,用于根据所述索引标记碱基序列与数字的对应关系以及所述DNA片段序列与数字的对应关系,确定子图像的小波变换系数;The determining module is configured to determine the wavelet transform coefficient of the sub-image according to the corresponding relationship between the index mark base sequence and the number and the corresponding relationship between the DNA fragment sequence and the number;
变换模块,用于对所述小波变换系数进行小波变换的逆变换,得到解码图像。The transform module is used to perform the inverse transform of the wavelet transform on the wavelet transform coefficients to obtain a decoded image.
根据本公开实施例的第五方面,提供一种图像存储方法,包括:According to a fifth aspect of the embodiments of the present disclosure, there is provided an image storage method, including:
按照权利要求1至13中任一项所述的方法,将所述原始图片编码成DNA序列;The method according to any one of claims 1 to 13, encoding the original picture into a DNA sequence;
通过DNA合成仪,将所述DNA序列合成核酸片段;Synthesize nucleic acid fragments from the DNA sequence by a DNA synthesizer;
将所述核酸片段存储在如下介质中的一种或几种中,所述介质包括基因芯片、质粒或活细胞。The nucleic acid fragments are stored in one or more of the following media, the media including gene chips, plasmids or living cells.
根据本公开实施例的第六方面,提供一种图像读取方法,包括:According to a sixth aspect of the embodiments of the present disclosure, there is provided an image reading method, including:
获取核酸片段,Get nucleic acid fragments,
通过DNA测序仪,获取所述核酸片段的DNA碱基排列顺序;Obtain the DNA base sequence of the nucleic acid fragments by a DNA sequencer;
根据权利要求14所述的图像解码方法,将所述核酸片段解码成图像数据。The image decoding method according to claim 14, wherein the nucleic acid fragment is decoded into image data.
根据本公开实施例的第七方面,提供一种图像编码装置,其特征在于,包括:According to a seventh aspect of the embodiments of the present disclosure, there is provided an image encoding device, which is characterized in that it includes:
处理器;processor;
用于存储处理器可执行指令的存储器;A memory for storing processor executable instructions;
其中,所述处理器被配置为:执行本公开任一项实施例所述的图像编码方法。Wherein, the processor is configured to execute the image encoding method described in any one of the embodiments of the present disclosure.
根据本公开实施例的第八方面,提供一种图像解码装置,其特征在于,包括:According to an eighth aspect of the embodiments of the present disclosure, there is provided an image decoding device, which is characterized in that it includes:
处理器;processor;
用于存储处理器可执行指令的存储器;A memory for storing processor executable instructions;
其中,所述处理器被配置为:执行本公开任一项实施例所述的图像解码方法。Wherein, the processor is configured to execute the image decoding method described in any one of the embodiments of the present disclosure.
根据本公开实施例的第九方面,提供一种非临时性计算机可读存储介质,当所述存储介质中的指令由处理器执行时,使得处理器能够执行根据本公开任一实施例所述的图像编码方法。According to a ninth aspect of the embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium. When instructions in the storage medium are executed by a processor, the processor can execute the Image coding method.
根据本公开实施例的第十方面,提供一种非临时性计算机可读存储介质,当所述存储介质中的指令由处理器执行时,使得处理器能够执行根据本公开任一实施例所述的图像解码方法。According to a tenth aspect of the embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium. When instructions in the storage medium are executed by a processor, the processor can execute the Image decoding method.
本公开的实施例提供的技术方案可以包括以下有益效果:本公开利用小波变换函数,对所述原始图像进行分解,得到一系列不同频率或不同分量(即水平方向分量、垂直方向分量或对角线方向分量)的子图像,针对所述子图像种类对图像重构的重要性的不同,选择性的保留或删除所述子图像,对于保留的子图像的对应的小波变换系数,进行进一步的压缩处理,得到所述小波变换系数的有效数值,通过所述有效数值与DNA碱基序列的对应关系,将所述原始图像编码成DNA序列,本公开图像压缩率高,且所述数字表示可以包括二进制以上的进制数,如八进制数、十进制数,当数字的位数较少,如一位数字时,可以采用2种及以上的碱基序列与之相对应,可减少四种基本碱基连续出现的概率,从而降低DNA合成难度。The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: the present disclosure uses wavelet transform functions to decompose the original image to obtain a series of different frequencies or different components (ie horizontal direction components, vertical direction components or diagonal components). Line direction component), according to the different importance of the sub-image type to the image reconstruction, the sub-image is selectively retained or deleted, and the corresponding wavelet transform coefficient of the retained sub-image is further processed Compression processing obtains the effective value of the wavelet transform coefficient, and encodes the original image into a DNA sequence through the corresponding relationship between the effective value and the DNA base sequence. The image compression rate of the present disclosure is high, and the digital representation can be Including binary numbers or more, such as octal numbers and decimal numbers. When the number of digits is small, such as one digit, two or more base sequences can be used to correspond to it, which can reduce four basic bases The probability of continuous occurrence, thereby reducing the difficulty of DNA synthesis.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure.
附图说明Description of the drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The drawings herein are incorporated into the specification and constitute a part of the specification, show embodiments in accordance with the disclosure, and together with the specification are used to explain the principle of the disclosure.
图1是根据一示例性实施例示出的一种图像编码方法的流程图。Fig. 1 is a flowchart showing an image coding method according to an exemplary embodiment.
图2是根据一示例性实施例示出的图像一级分解示意图。Fig. 2 is a schematic diagram showing a first-level decomposition of an image according to an exemplary embodiment.
图3是根据一示例性实施例示出的图像三级分解示意图。Fig. 3 is a schematic diagram showing a three-level decomposition of an image according to an exemplary embodiment.
图4是根据一示例性实施例示出的一种图像编码方法的流程图。Fig. 4 is a flowchart showing an image coding method according to an exemplary embodiment.
图5是根据一示例性实施例示出的一种图像编码方法的流程图。Fig. 5 is a flowchart showing an image encoding method according to an exemplary embodiment.
图6是根据一示例性实施例示出的一种图像编码方法的流程图。Fig. 6 is a flowchart showing an image coding method according to an exemplary embodiment.
图7是根据一示例性实施例示出的一种图像编码方法的流程图。Fig. 7 is a flowchart showing an image coding method according to an exemplary embodiment.
图8是根据一示例性实施例示出的一种图像编码方法的流程图。Fig. 8 is a flowchart showing an image coding method according to an exemplary embodiment.
图9是根据一示例性实施例示出的一种图像编码方法的流程图。Fig. 9 is a flowchart showing an image coding method according to an exemplary embodiment.
图10是根据一示例性实施例示出的一种图像编码方法的流程图。Fig. 10 is a flowchart showing an image coding method according to an exemplary embodiment.
图11是根据一示例性实施例示出的一种原始图像。Fig. 11 is an original image according to an exemplary embodiment.
图12是根据一示例性实施例示出的一种原始图像。Fig. 12 is an original image according to an exemplary embodiment.
图13是根据一示例性实施例示出的一种图像解码方法的流程图。Fig. 13 is a flowchart showing an image decoding method according to an exemplary embodiment.
图14是根据一示例性实施例示出的一种图像编码装置的框图。Fig. 14 is a block diagram showing an image encoding device according to an exemplary embodiment.
图15是根据一示例性实施例示出的一种图像编码装置的框图。Fig. 15 is a block diagram showing an image encoding device according to an exemplary embodiment.
图16是根据一示例性实施例示出的一种图像编码装置的框图。Fig. 16 is a block diagram showing an image encoding device according to an exemplary embodiment.
图17是根据一示例性实施例示出的一种图像编码装置的框图。Fig. 17 is a block diagram showing an image encoding device according to an exemplary embodiment.
图18是根据一示例性实施例示出的一种图像编码装置的框图。Fig. 18 is a block diagram showing an image encoding device according to an exemplary embodiment.
图19是根据一示例性实施例示出的一种图像编码装置的框图。Fig. 19 is a block diagram showing an image encoding device according to an exemplary embodiment.
图20是根据一示例性实施例示出的一种图像编码装置的框图。Fig. 20 is a block diagram showing an image encoding device according to an exemplary embodiment.
图21是根据一示例性实施例示出的一种图像编码装置的框图。Fig. 21 is a block diagram showing an image encoding device according to an exemplary embodiment.
图22是根据一示例性实施例示出的一种图像解码装置的框图。Fig. 22 is a block diagram showing an image decoding device according to an exemplary embodiment.
图23是根据一示例性实施例示出的一种图像编码装置的框图,图23同样适用于图像解码装置。Fig. 23 is a block diagram showing an image encoding device according to an exemplary embodiment, and Fig. 23 is also applicable to an image decoding device.
图24是根据一示例性实施例示出的一种图像编码装置的框图,图24同样适用于图像解码装置。Fig. 24 is a block diagram showing an image encoding device according to an exemplary embodiment, and Fig. 24 is also applicable to an image decoding device.
具体实施方式detailed description
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Here, exemplary embodiments will be described in detail, and examples thereof are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements. The implementation manners described in the following exemplary embodiments do not represent all implementation manners consistent with the present disclosure. Rather, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
为了方便本领域技术人员理解本公开实施例提供的技术方案,下面先对技术方案实现的技术环境进行说明。In order to facilitate those skilled in the art to understand the technical solutions provided by the embodiments of the present disclosure, the following first describes the technical environment implemented by the technical solutions.
DNA作为存储介质,具有体积小、密度大以及长期保存的优点,可作为将来数据存储的新媒介。在多媒体文件中,图像占据很重要的一部分,尤其随着互联网的发展,人们对高清图像的需求增加,图像的数据量也在增加,将图像对应的二进制数据直接编码成DNA序列,将产生大量的核酸序列,导致工作量大,且二进制数据对应的碱基序列将会多次连续重复出现,极易造成DNA的合成失败,给图像存储增加了难度。As a storage medium, DNA has the advantages of small size, high density and long-term storage, and can be used as a new medium for data storage in the future. In multimedia files, images occupy a very important part. Especially with the development of the Internet, people’s demand for high-definition images has increased, and the amount of image data has also increased. Directly encoding the binary data corresponding to the image into a DNA sequence will produce a lot of Nucleic acid sequence of, resulting in a large workload, and the base sequence corresponding to the binary data will appear repeatedly repeatedly, which can easily cause the failure of DNA synthesis and increase the difficulty of image storage.
基于类似于上文所述的实际技术需求,有必要在图像存储前进行合理的数据压缩处理,并设计有效的编码规则,使得图像能够高效、准确的编码并存储。Based on the actual technical requirements similar to those described above, it is necessary to perform reasonable data compression processing before image storage, and design effective coding rules, so that images can be efficiently and accurately coded and stored.
下面结合附图1对本公开所述的图像编码方法进行详细的说明。图1是本公开提供的图像编码方法的一种实施例的方法流程图。虽然本公开提供了如下述实施例或附图所示的方法操作步骤,但基于常规或者无需创造性的劳动在所述方法中可以包括更多或者更少的操作步骤。在逻辑性上不存在必要因果关系的步骤中,这些步骤的执行顺序不限于本公开实施例提供的执行顺序。The image encoding method described in the present disclosure will be described in detail below with reference to FIG. 1. Fig. 1 is a method flowchart of an embodiment of an image encoding method provided by the present disclosure. Although the present disclosure provides method operation steps as shown in the following embodiments or drawings, more or less operation steps may be included in the method based on conventional or without creative labor. In steps where there is no necessary causality logically, the execution order of these steps is not limited to the execution order provided by the embodiments of the present disclosure.
具体的,本公开提供的一种图像编码方法一种实施例如图1所示,所述方法可以应用于多种图片格式的编码,所述图片格式包括但不限于BMP格式、JPEG格式、GIF格式、PSD格式、PNG格式、PNG格式以及TIFF格式等,可应用于彩色图片和黑白图片。所述方法包括:Specifically, an embodiment of an image coding method provided by the present disclosure is shown in FIG. 1. The method can be applied to the coding of a variety of picture formats, including but not limited to BMP format, JPEG format, and GIF format. , PSD format, PNG format, PNG format and TIFF format, etc., can be applied to color pictures and black and white pictures. The method includes:
步骤S11,通过小波变换函数,对原始图像进行一级或多级分解,得到多个子图像的像素数据对应的小波变换系数以及所述子图像的级别;Step S11: Perform one-level or multi-level decomposition of the original image through a wavelet transform function to obtain wavelet transform coefficients corresponding to pixel data of multiple sub-images and the levels of the sub-images;
步骤S12,根据所述小波变换系数以及所述子图像的级别,确定所述小波变换系数的有效数值;Step S12, determining the effective value of the wavelet transform coefficient according to the wavelet transform coefficient and the level of the sub-image;
步骤S13,根据DNA碱基序列与数字的对应关系以及所述有效数值,确定所述小波变换系数的编码DNA序列;Step S13: Determine the coding DNA sequence of the wavelet transform coefficient according to the corresponding relationship between the DNA base sequence and the number and the effective value;
步骤S14,根据所述子图像的级别,连接所述小波变换系数的编码DNA序列,确定所述原始图像的编码DNA序列。Step S14: Connect the coding DNA sequence of the wavelet transform coefficients according to the level of the sub-image to determine the coding DNA sequence of the original image.
本公开实施例中,利用小波变换函数对所述原始图像进行一级或多级分解,以对原始图像进行数据压缩。小波变换用于图像压缩的基本思想就是把图像进行多分辨率分解,分解成不同空间、不同频率的子图像,然后再对子图像进行系数编码。在一种示例中,可以利用Mallat金字塔式分解算法对原 始图像进行分解:如对于一幅m行n列的图像,Mallat金字塔式分解算法分解过程是,参考图2所示,先对所述图像的每一行做一维小波变换,得到低频系数L1和高频系数H1,然后对得到的LH图像(大小仍是m行n列)的每一列做一维小波变换,这样经过一级小波变换后的图像就可以分为LL1、HL1、LH1、HH1四个部分,其中,LL1为一级低频子图像,HL1为一级高频水平子图像,LH1为一级高频垂直子图像,HH1为一级高频对角线子图像。参考图2所示,二级、三级以至更高级的二维小波变换,则是对上一级小波变换图像低频子图像LL1部分再进行一级小波变换,是一个递归的过程,图3中,1、2、3表示分解的级数,即子图像的级别,L表示低频系数,H表示高频系数。In the embodiment of the present disclosure, a wavelet transform function is used to decompose the original image at one or more levels to perform data compression on the original image. The basic idea of wavelet transform for image compression is to decompose the image in multi-resolution, decompose it into sub-images of different spaces and different frequencies, and then perform coefficient coding on the sub-images. In an example, the original image can be decomposed by the Mallat pyramid decomposition algorithm: For example, for an image with m rows and n columns, the decomposition process of the Mallat pyramid decomposition algorithm is as follows: One-dimensional wavelet transform is performed on each row of to obtain low-frequency coefficient L1 and high-frequency coefficient H1, and then one-dimensional wavelet transform is performed on each column of the obtained LH image (the size is still m rows and n columns). The image can be divided into four parts: LL1, HL1, LH1, and HH1. Among them, LL1 is the first-level low-frequency sub-image, HL1 is the first-level high-frequency horizontal sub-image, LH1 is the first-level high-frequency vertical sub-image, and HH1 is one High-frequency diagonal sub-images. As shown in Figure 2, the second-level, third-level, and even higher-level two-dimensional wavelet transforms are performed on the low-frequency sub-image LL1 part of the upper-level wavelet transform image and then the first-level wavelet transform, which is a recursive process. , 1, 2, 3 represent the level of decomposition, that is, the level of the sub-image, L represents the low-frequency coefficient, and H represents the high-frequency coefficient.
本公开实施例中,所述原始图像经过小波变换后,可以得到一系列不同频率或不同分量(即水平方向分量、垂直方向分量或对角线方向分量)的子图像,不同频率子图像对应的分辨率也不同。高分辨率(即高频)子图像上大部分点的数值都接近于0,分辨率越高,这种现象越明显。要注意的是,在N级二维小波分解中,分解级别越高的子图像,频率越低。例如图2的三级小波变换图像结构示意图中,二级子图像HL2、LH2、HH2的频率要比一级子图像HL1、LH1、HH1的频率低,相应地分辨率也较低。根据不同分辨率下小波变换系数的这种层次模型,我们可以采用但不限于使用舍高频取低频、阈值法和截取法对所述子图像进行图像压缩。In the embodiments of the present disclosure, after the original image is subjected to wavelet transformation, a series of sub-images with different frequencies or different components (ie, horizontal, vertical, or diagonal components) can be obtained. The resolution is also different. The value of most points on the high-resolution (ie, high-frequency) sub-image is close to 0. The higher the resolution, the more obvious this phenomenon is. It should be noted that in the N-level two-dimensional wavelet decomposition, the higher the decomposition level of the sub-image, the lower the frequency. For example, in the schematic diagram of the three-level wavelet transform image structure in FIG. 2, the frequencies of the second-level sub-images HL2, LH2, and HH2 are lower than the frequencies of the first-level sub-images HL1, LH1, and HH1, and the resolution is accordingly lower. According to this hierarchical model of wavelet transform coefficients at different resolutions, we can adopt, but are not limited to, the use of high frequency and low frequency, threshold method and interception method to perform image compression on the sub-image.
在一种示例中,对所述原始图像进行小波分解后,保留低频系数不变,然后选取一个全局阈值来处理各级高频系数,或者不同级别的高频系数用不同的阈值处理,绝对值低于阈值的高频系数置0,否则保留。用保留的非零小波系数进行图像重构。In an example, after performing wavelet decomposition on the original image, the low-frequency coefficients remain unchanged, and then a global threshold is selected to process the high-frequency coefficients at all levels, or the high-frequency coefficients at different levels are processed with different thresholds. The high frequency coefficient below the threshold is set to 0, otherwise it is reserved. Use the retained non-zero wavelet coefficients for image reconstruction.
在另一个示例中,根据所述小波变换系数对应的子图像的级别,比如,按照分辨率由低到高的顺序(即子图像级别由高到低的顺序),对所述子图像对应的小波变换系数进行保留有效数值,实现数据的进一步压缩。In another example, according to the levels of the sub-images corresponding to the wavelet transform coefficients, for example, in the order of resolution from low to high (that is, the order of sub-image levels from high to low), The wavelet transform coefficients are reserved for valid values to achieve further data compression.
本公开实施例中,所述DNA碱基序列与数字的对应关系可以预先进行编码设置,将所述有效数值的表示数字设置对应的DNA碱基序列,根据所述小波变换系数的有效数值以及所述有效数值与数字的对应关系,将所述小波变换系数编码成DNA序列。所述数字表示可以包括二进制以上的进制数,如八进制数、十进制数,且当数字的位数较少,如一位数字时,可以采用2种及以上的碱基序列与之相对应,可减少四种基本碱基连续出现的概率,从而降低DNA合成难度。In the embodiment of the present disclosure, the corresponding relationship between the DNA base sequence and the number can be pre-encoded, and the corresponding DNA base sequence is set according to the effective value of the wavelet transform coefficient and the corresponding number. The corresponding relationship between the effective value and the number is used to encode the wavelet transform coefficient into a DNA sequence. The digital representation can include binary numbers or more, such as octal numbers, decimal numbers, and when the number of digits is small, such as one digit, two or more base sequences can be used to correspond to it. Reduce the probability that the four basic bases appear consecutively, thereby reducing the difficulty of DNA synthesis.
本公开实施例中,可以根据所述子图像的级别,按照预设的顺序,以所述子图像的像素数据对应的小波变换系数作为一个单元,进行逐个DNA编码,直至由所述原始图像分解的全部的子图像编码完成,即得到了所述原始图像的编码DNA序列。In the embodiments of the present disclosure, according to the level of the sub-image, the wavelet transform coefficient corresponding to the pixel data of the sub-image can be used as a unit in a preset order to perform DNA encoding one by one until the original image is decomposed After the encoding of all sub-images is completed, the encoding DNA sequence of the original image is obtained.
本公开利用小波变换函数,对所述原始图像进行分解,得到一系列不同频率或不同分量(即水平方向分量、垂直方向分量或对角线方向分量)的子图像,针对所述子图像种类对图像重构的重要性的不同,选择性的保留或删除所述子图像,对于保留的子图像的对应的小波变换系数,进行进一步的压缩处理,得到所述小波变换系数的有效数值,通过所述有效数值与DNA碱基序列的对应关系,将所述原始图像编码成DNA序列,本公开图像压缩率高,且所述数字表示可以包括二进制以上的进制数,如八进制数、十进制数,且当数字的位数较少,如一位数字时,可以采用2种及以上的碱基序列与之相对应,可减少四种基本碱基连续出现的概率,从而降低DNA合成难度。The present disclosure uses wavelet transform functions to decompose the original image to obtain a series of sub-images with different frequencies or different components (ie, horizontal, vertical, or diagonal components). The importance of image reconstruction is different, the sub-images are selectively retained or deleted, and the corresponding wavelet transform coefficients of the retained sub-images are subjected to further compression processing to obtain the effective values of the wavelet transform coefficients. According to the corresponding relationship between the effective value and the DNA base sequence, the original image is encoded into a DNA sequence. The image of the present disclosure has a high compression rate, and the digital representation can include numbers above binary, such as octal numbers, decimal numbers, And when the number of digits is small, such as a single digit, two or more base sequences can be used to correspond to it, which can reduce the probability of four basic bases consecutively appearing, thereby reducing the difficulty of DNA synthesis.
下面结合附图4对本公开所述的图像编码方法进行详细的说明。图4是本公开提供的图像编码方法的一种实施例的方法流程图。虽然本公开提供了如下述实施例或附图所示的方法操作步骤,但基于常规或者无需创造性的劳动在所述方法中可以包括更多或者更少的操作步骤。在逻辑性上不存在必要因果关系的步骤中,这些步骤的执行顺序不限于本公开实施例提供的执行顺序。The image coding method described in the present disclosure will be described in detail below with reference to FIG. 4. Fig. 4 is a method flowchart of an embodiment of an image encoding method provided by the present disclosure. Although the present disclosure provides method operation steps as shown in the following embodiments or drawings, more or less operation steps may be included in the method based on conventional or without creative labor. In steps where there is no necessary causality logically, the execution order of these steps is not limited to the execution order provided by the embodiments of the present disclosure.
具体的,本公开提供的一种图像编码方法一种实施例如图4所示,与上述实施例不同的是,所述步骤S12,根据所述小波变换系数以及所述小波变换系数对应的子图像的级别,确定所述小波变换系 数的有效数值包括:步骤S121和步骤S122:Specifically, an embodiment of an image coding method provided by the present disclosure is shown in FIG. 4. The difference from the above-mentioned embodiment is that the step S12 is based on the wavelet transform coefficient and the sub-image corresponding to the wavelet transform coefficient. The determination of the effective value of the wavelet transform coefficient includes: step S121 and step S122:
步骤S121,根据所述小波变换系数,将所述子图像的像素数据对应的小波变换系数除以所述子图像的像素数据对应的小波变换系数中的最大绝对值以获得第一数值;Step S121, according to the wavelet transform coefficient, divide the wavelet transform coefficient corresponding to the pixel data of the sub-image by the maximum absolute value of the wavelet transform coefficient corresponding to the pixel data of the sub-image to obtain a first value;
根据所述第一数值以及所述子图像的级别,确定所述小波变换系数的有效数值。Determine the effective value of the wavelet transform coefficient according to the first value and the level of the sub-image.
本公开实施例中,为了方便处理,对所述子图像的像素数据对应的小波变换系数进行小数化处理,即,选取所述子图像的像素数据对应的小波系数的最大绝对值(绝对值最大的系数的绝对值),将所述子图像的每一个像素数据对应的小波系数除以所述最大绝对值,得到第一数值,所述第一数值落在[-1,1]范围内。相应的,在一个示例中,根据所述第一数值对应的子图像的级别,比如,按照分辨率由低到高的顺序(即子图像级别由高到低的顺序),对所述子图像对应的小波变换系数,可以按照有效数值位数由多到少的顺序,保留有效数值,实现数据的进一步压缩。In the embodiments of the present disclosure, in order to facilitate processing, the wavelet transform coefficients corresponding to the pixel data of the sub-image are decimalized, that is, the maximum absolute value of the wavelet coefficients corresponding to the pixel data of the sub-image (the maximum absolute value is selected) The absolute value of the coefficient of ), the wavelet coefficient corresponding to each pixel data of the sub-image is divided by the maximum absolute value to obtain a first value, and the first value falls within the range of [-1,1]. Correspondingly, in an example, according to the level of the sub-image corresponding to the first value, for example, according to the order of resolution from low to high (ie, the order of sub-image level from high to low), Corresponding wavelet transform coefficients can be kept in the order of the number of effective numerical digits, and the effective numerical value can be retained to achieve further data compression.
下面结合附图5对本公开所述的图像编码方法进行详细的说明。图5是本公开提供的图像编码方法的一种实施例的方法流程图。虽然本公开提供了如下述实施例或附图所示的方法操作步骤,但基于常规或者无需创造性的劳动在所述方法中可以包括更多或者更少的操作步骤。在逻辑性上不存在必要因果关系的步骤中,这些步骤的执行顺序不限于本公开实施例提供的执行顺序。The image encoding method described in the present disclosure will be described in detail below with reference to FIG. 5. Fig. 5 is a method flowchart of an embodiment of an image encoding method provided by the present disclosure. Although the present disclosure provides method operation steps as shown in the following embodiments or drawings, more or less operation steps may be included in the method based on conventional or without creative labor. In steps where there is no necessary causality logically, the execution order of these steps is not limited to the execution order provided by the embodiments of the present disclosure.
具体的,本公开提供的一种图像编码方法一种实施例如图5所示,与上述实施例不同的是,所述步骤S122,根据所述第一数值以及所述子图像的级别,确定所述小波变换系数的有效数值,包括:步骤S1221和步骤S1222:Specifically, an embodiment of an image coding method provided by the present disclosure is shown in FIG. 5. The difference from the above-mentioned embodiment is that in step S122, according to the first value and the level of the sub-image, the The effective value of the wavelet transform coefficient includes: step S1221 and step S1222:
步骤S1221,根据所述子图像的级别、像素信息以及有效数字位数的对应关系,确定所述第一数值的有效位数,所述像素信息包括像素亮度、像素色度和像素饱和度;Step S1221: Determine the effective number of digits of the first value according to the corresponding relationship between the level of the sub-image, the pixel information, and the number of significant digits, where the pixel information includes pixel brightness, pixel chroma, and pixel saturation;
步骤S1222,根据所述第一数值的有效位数,确定所述小波变换系数的有效数值。Step S1222: Determine the effective value of the wavelet transform coefficient according to the effective number of bits of the first value.
本公开实施例中,在一个示例中,可以通过如下方式获取原始图像,包括,获取所述原始图像的RGB颜色空间的矩阵数据,所述矩阵数据每个点值取值范围包括0~255,通过公式(1)、公式(2)和公式(3),对所述RGB数据进行转换,可以实现对所述原始图像的数据压缩,得到所述原始图像的YUV颜色数据,所述公式(1)、公式(2)和公式(3)包括:In the embodiments of the present disclosure, in an example, the original image may be obtained in the following manner, including obtaining matrix data of the RGB color space of the original image, and each point value of the matrix data ranges from 0 to 255, Through formula (1), formula (2) and formula (3), the RGB data can be converted to achieve data compression of the original image to obtain the YUV color data of the original image. The formula (1) ), formula (2) and formula (3) include:
Y=0.299R+0.587G+0.114B                            (1)Y=0.299R+0.587G+0.114B (1)
U=-0.1687R-0.3313G+0.5B                           (2)U=-0.1687R-0.3313G+0.5B (2)
V=0.5R-0.4187G-0.0813B                            (3)V=0.5R-0.4187G-0.0813B (3)
其中,Y表示表示明亮度,也就是灰阶值;而U表示色度,V表示饱和度,作用是描述影像色彩及饱和度,用于指定像素的颜色。Among them, Y represents the brightness, that is, the grayscale value; and U represents the chroma, and V represents the saturation, which is used to describe the color and saturation of the image, and is used to specify the color of the pixel.
在另一个示例中,可以对所述子图像的像素信息通过YUV的进行描述,相应的所述子图像的像素数据对应的小波变换系数也有Y、U、V的区分,即所述子图像的单个像素的Y信息对应一个Y信息小波变换系数、U信息对应的一个U信息小波变换系数V信息对应的一个V信息小波变换系数,从而所述像素信息可以包括像素亮度、像素色度和像素饱和度。进而建立所述子图像的级别、像素信息以及有效数字位数的对应关系,所述对应关系可以包括:所述子图像的级别数越高,可以保留更多位数的有效数字;Y信息小波变换系数较U信息小波变换系数和V信息小波变换系数相比,可以保留更多位数的有效数字。In another example, the pixel information of the sub-image can be described by YUV, and the corresponding wavelet transform coefficients of the pixel data of the sub-image are also distinguished by Y, U, and V, that is, the sub-image The Y information of a single pixel corresponds to a Y information wavelet transform coefficient, and U information corresponds to a U information wavelet transform coefficient. V information corresponds to a V information wavelet transform coefficient, so that the pixel information can include pixel brightness, pixel chroma, and pixel saturation. degree. The corresponding relationship between the level of the sub-image, the pixel information, and the number of significant digits is further established. The corresponding relationship may include: the higher the level of the sub-image, the more significant digits can be reserved; Y information wavelet Compared with the U information wavelet transform coefficient and the V information wavelet transform coefficient, the transform coefficient can retain more significant digits.
例如,对所述子图像的最高级别是五级,那么对于五级子图像对应的Y信息小波变换系数可以保留三位有效数字,U信息小波系数和V信息小波系数可以保留三位有效数字;四级子图像和三级子图像对应的Y信息小波变换系数可以保留两位有效数字,四级子图像对应的U信息小波变换系数和V信息小波变换系数可以保留两位有效数字;二级子图像对应的Y信息小波变换系数可以保留一位有效数字,可以去掉一级子图像对应的Y信息小波变换系数,可以去掉三级子图像、二级子图像和一级子 图像对应的U信息小波变换系数和V信息小波变换系数。从而,根据所述子图像的级别、像素信息以及有效数字位数的对应关系,确定所述第一数值的有效位数,从而确定所述小波变换系数的有效数值。For example, the highest level of the sub-image is level five, then the Y information wavelet transform coefficients corresponding to the five level sub-images can retain three significant digits, and the U information wavelet coefficients and V information wavelet coefficients can retain three significant digits; The Y information wavelet transform coefficients corresponding to the fourth-level sub-image and the third-level sub-image can retain two significant digits, and the U-information wavelet transform coefficients and the V-information wavelet transform coefficients corresponding to the fourth-level sub-image can retain two significant digits; The Y information wavelet transform coefficient corresponding to the image can retain a significant number, the Y information wavelet transform coefficient corresponding to the first-level sub-image can be removed, and the U-information wavelet corresponding to the third-level sub-image, the second-level sub-image and the first-level sub-image can be removed Transform coefficients and V information wavelet transform coefficients. Therefore, the effective number of the first value is determined according to the corresponding relationship between the level of the sub-image, the pixel information, and the number of significant digits, so as to determine the effective value of the wavelet transform coefficient.
在一种可能的实现方式中,将所述子图像对应的小波变换系数保留不超过两位的有效数字,可以实现较高的压缩效果,降低所述编码DNA序列的合成条数,同时保证解码图像的不失真还原。In a possible implementation manner, the wavelet transform coefficients corresponding to the sub-images are reserved with no more than two significant digits, which can achieve a higher compression effect, reduce the number of synthesized encoding DNA sequences, and ensure decoding The image is restored without distortion.
在一种可能的实现方式中,所述数字为十进制数字,因为小波系数也是十进制表达,因此,建立十进制与DNA碱基序列的对应关系,可以直接将小波系数与DNA碱基序列相对应,不用将小波系数转换为其他进制数,有利于降低编码复杂度,且十进制数具有0-9共十种数字形式,较其他进制,如二进制、三进制,有更多的数字表达,从而对应跟多的DNA碱基序列表达,使得图像编码后的DNA碱基序列的重复率大大降低,有利于准确解码。In a possible implementation, the number is a decimal number, because the wavelet coefficients are also expressed in decimal. Therefore, to establish the correspondence between the decimal and the DNA base sequence, the wavelet coefficients can be directly corresponded to the DNA base sequence. Converting wavelet coefficients to other base numbers is beneficial to reduce coding complexity, and decimal numbers have a total of ten digital forms from 0-9, which have more digital expressions than other bases, such as binary and ternary. Corresponding to the expression of more DNA base sequences, the repetition rate of the DNA base sequence after image encoding is greatly reduced, which is conducive to accurate decoding.
下面结合附图6对本公开所述的图像编码方法进行详细的说明。图6是本公开提供的图像编码方法的一种实施例的方法流程图。虽然本公开提供了如下述实施例或附图所示的方法操作步骤,但基于常规或者无需创造性的劳动在所述方法中可以包括更多或者更少的操作步骤。在逻辑性上不存在必要因果关系的步骤中,这些步骤的执行顺序不限于本公开实施例提供的执行顺序。The image encoding method described in the present disclosure will be described in detail below with reference to FIG. 6. Fig. 6 is a method flowchart of an embodiment of an image encoding method provided by the present disclosure. Although the present disclosure provides method operation steps as shown in the following embodiments or drawings, more or less operation steps may be included in the method based on conventional or without creative labor. In steps where there is no necessary causality logically, the execution order of these steps is not limited to the execution order provided by the embodiments of the present disclosure.
具体的,本公开提供的一种图像编码方法一种实施例如图6所示,与上述实施例不同的是,所述步骤S13,根据DNA碱基序列与数字的对应关系以及所述有效数值,确定所述小波变换系数的编码DNA序列,包括:步骤S131。Specifically, an embodiment of an image encoding method provided by the present disclosure is shown in FIG. 6. The difference from the above-mentioned embodiment is that the step S13 is based on the corresponding relationship between the DNA base sequence and the number and the effective value, Determining the coding DNA sequence of the wavelet transform coefficient includes: step S131.
步骤S131,根据所述有效数值的数字和符号、所述DNA碱基序列与所述数字的对应关系、所述DNA碱基序列与所述符号的对应关系,确定所述小波变换系数的编码DNA序列。Step S131: Determine the coding DNA of the wavelet transform coefficient according to the number and symbol of the effective value, the corresponding relationship between the DNA base sequence and the number, and the corresponding relationship between the DNA base sequence and the symbol sequence.
本公开实施例中,可以建立所述有效数值的符号与DNA碱基序列的对应关系,所述有效数值的符号包括正号和负号。在一个示例中,比如,当所述有效数值是正数时,对应的碱基序列可以包括“TC”;当所述有效数值是负数时,对应的碱基序列可以包括“TG”。通过建立所述有效数值的符号与DNA碱基序列的对应关系,可以在有效数值数字部分相同,正负号不同的时候,只需要通过所述符号对应的碱基序列进行标记区分,这样相同的数字部分可以共用一套对应关系,降低了编码复杂度。In the embodiment of the present disclosure, the corresponding relationship between the sign of the effective value and the DNA base sequence can be established, and the sign of the effective value includes a positive sign and a negative sign. In an example, for example, when the effective value is a positive number, the corresponding base sequence may include "TC"; when the effective value is a negative number, the corresponding base sequence may include "TG". By establishing the corresponding relationship between the symbol of the effective value and the DNA base sequence, when the effective value has the same number and the sign is different, only the base sequence corresponding to the symbol needs to be labeled to distinguish, so that the same The digital part can share a set of corresponding relations, which reduces the coding complexity.
在一种可能的实现方式中,所述DNA碱基序列与所述数字的对应关系,包括:In a possible implementation, the correspondence between the DNA base sequence and the number includes:
当所述有效数值的位数小于或等于预设值时,所述DNA碱基序列与所述数字为一一对应的关系;When the number of digits of the effective value is less than or equal to the preset value, the DNA base sequence and the number have a one-to-one correspondence;
当所述有效数值的位数大于所述预设值时,其中,所述有效数值中小于或等于所述预设值的高位数字与DNA碱基序列为一一对应的关系,大于所述预设值的低位数字与DNA碱基序列为多对一的对应关系。When the number of digits of the effective value is greater than the preset value, wherein the high-order digits of the effective value that are less than or equal to the preset value have a one-to-one correspondence with the DNA base sequence, which is greater than the preset value. There is a many-to-one correspondence between the low digits of the value and the DNA base sequence.
本公开实施例中,在一个示例中,例如,设置有效数值的位数预设值是2,当所述有效数值的位数是两位或一位时,所述DNA碱基序列与所述数字为一一对应的关系,所述一一对应的关系可以如表1所示。当所述有效数值的位数是三位或三位以上时,比如0.122和0.1367,前两位(高位)数字12和13,可以按照表1,与DNA碱基序列进行一一对应,12对应“AAG”,13对应“ACA”;低位数字2和67可根据多对一的对应关系进行编码。In the embodiment of the present disclosure, in an example, for example, the preset value of the number of digits of the effective value is set to 2. When the number of digits of the effective value is two or one, the DNA base sequence and the The numbers are in a one-to-one correspondence relationship, and the one-to-one correspondence relationship may be as shown in Table 1. When the number of digits of the effective value is three or more, such as 0.122 and 0.1367, the first two (higher) digits 12 and 13, can be one-to-one correspondence with the DNA base sequence according to Table 1, and 12 corresponds "AAG", 13 corresponds to "ACA"; the lower digits 2 and 67 can be coded according to the many-to-one correspondence.
在一种可能的实现方式中,所述多对一的对应关系包括:多个连续的低位数字对应相同的碱基序列。In a possible implementation manner, the many-to-one correspondence relationship includes: multiple consecutive low-order digits correspond to the same base sequence.
本公开实施例中,例如,设置有效数值的位数预设值是2,有效数值是0.122和0.126,前两位数字12可以按照表1与DNA碱基序列进行一一对应,12对应“AAG”;第三位数字2或6可以根据多对一的对应关系进行编码,所述多对一的对应关系可以包括多个连续的低位数字对应相同的碱基序列,比如当第三位小数在1~4之间时,用“TTC”表示,当第三位小数在5~9之间时,用“TTG”表示。所以,所述有效数值0.122最终表示为“AAGTTC”,有效数值0.126最终表示为“AAGTTG”。In the embodiment of the present disclosure, for example, the preset value of the number of digits for setting the effective value is 2, the effective value is 0.122 and 0.126, the first two digits 12 can be one-to-one corresponding to the DNA base sequence according to Table 1, and 12 corresponds to "AAG "; The third digit 2 or 6 can be coded according to a many-to-one correspondence, and the many-to-one correspondence may include multiple consecutive low digits corresponding to the same base sequence, such as when the third decimal place is When it is between 1 and 4, it is represented by "TTC". When the third decimal place is between 5 and 9, it is represented by "TTG". Therefore, the effective value of 0.122 is finally expressed as "AAGTTC", and the effective value of 0.126 is finally expressed as "AAGTTG".
在一个示例中,可以将所述DNA碱基序列与所述数字的对应关系与所述DNA碱基序列与所述符 号的对应关系相结合。比如上述实施例中,当第三位小数在1~4之间时,且所述有效数值为正数时,用“TTC”表示;当第三位小数在1~4之间时,且所述有效数值为负数时,用“TTT”表示;当第三位小数在5~9之间时,且所述有效数值为正数时,用“TTG”表示;当第三位小数在5~9之间时,且所述有效数值为负数时,用“TTA”表示。In an example, the correspondence between the DNA base sequence and the number may be combined with the correspondence between the DNA base sequence and the symbol. For example, in the above embodiment, when the third decimal place is between 1 and 4 and the effective value is positive, it is represented by "TTC"; when the third decimal place is between 1 and 4, When the valid value is negative, it is represented by "TTT"; when the third decimal place is between 5-9 and the valid value is positive, it is represented by "TTG"; when the third decimal place is between 5 and When it is between 9 and the effective value is negative, it is indicated by "TTA".
下面结合附图7对本公开所述的图像编码方法进行详细的说明。图7是本公开提供的图像编码方法的一种实施例的方法流程图。虽然本公开提供了如下述实施例或附图所示的方法操作步骤,但基于常规或者无需创造性的劳动在所述方法中可以包括更多或者更少的操作步骤。在逻辑性上不存在必要因果关系的步骤中,这些步骤的执行顺序不限于本公开实施例提供的执行顺序。The image coding method described in the present disclosure will be described in detail below with reference to FIG. 7. Fig. 7 is a method flowchart of an embodiment of an image encoding method provided by the present disclosure. Although the present disclosure provides method operation steps as shown in the following embodiments or drawings, more or less operation steps may be included in the method based on conventional or without creative labor. In steps where there is no necessary causality logically, the execution order of these steps is not limited to the execution order provided by the embodiments of the present disclosure.
表1,数字与DNA碱基序列对应关系表Table 1. Correspondence between numbers and DNA base sequences
数字digital DNADNA 数字digital DNADNA 数字digital DNADNA 数字digital DNADNA 数字digital DNADNA
00 TATA 2020 CACCAC 4040 AACAAACA 6060 AGCGAGCG 8080 CCGCCCGC
11 AAAA 21twenty one CAGCAG 4141 AACCAACC 6161 AGGAAGGA 8181 CCGGCCGG
22 ACAC 22twenty two CCACCA 4242 AACGAACG 6262 AGGCAGGC 8282 CGAACGAA
33 AGAG 23twenty three GCCAGCCA 4343 AAGAAAGA 6363 AGGGAGGG 8383 CGACCGAC
44 CACA 24twenty four CCGCCG 4444 AAGCAAGC 6464 CAAACAAA 8484 CGAGCGAG
55 CCCC 2525 CGACGA 4545 AAGGAAGG 6565 CAACCAAC 8585 CGCACGCA
66 CGCG 2626 CGCCGC 4646 ACAAACAA 6666 CAAGCAAG 8686 CGCCCGCC
77 GAGA 2727 CGGCGG 4747 ACACACAC 6767 CACACACA 8787 CGCGCGCG
88 GCGC 2828 GAAGAA 4848 ACAGACAG 6868 CACCCACC 8888 CGGACGGA
99 GGGG 2929 GACGAC 4949 ACCAACCA 6969 CACGCACG 8989 CGGCCGGC
1010 AAAAAA 3030 GAGGAG 5050 ACCCACCC 7070 CAGACAGA 9090 CGGG CGGG
1111 AACAAC 3131 GCAGCA 5151 ACCGACCG 7171 CAGCCAGC 9191 GAAA GAAA
1212 AAGAAG 3232 GCCGCC 5252 ACGAACGA 7272 CAGGCAGG 9292 GAAC GAAC
1313 ACAACA 3333 GCGGCG 5353 ACGCACGC 7373 CCAACCAA 9393 GAAGGAAG
1414 ACCACC 3434 GGAGGA 5454 ACGGACGG 7474 CCACCCAC 9494 GACAGACA
1515 ACGACG 3535 GGCGGC 5555 AGAAAGAA 7575 CCAGCCAG 9595 GACCGACC
1616 AGAAGA 3636 GCCGGCCG 5656 AGACAGAC 7676 GCGAGCGA 9696 GACGGACG
1717 AGCAGC 3737 GCAAGCAA 5757 AGAGAGAG 7777 GCACGCAC 9797 GAGAGAGA
1818 AGGAGG 3838 AAACAAAC 5858 AGCAAGCA 7878 GCGCGCGC 9898 GAGCGAGC
1919 CAACAA 3939 AAAGAAAG 5959 AGCCAGCC 7979 CCGACCGA 9999 GAGGGAGG
注:整数“1”用“TCGCCA”表示,整数“-1”即“TGGCCA”Note: The integer "1" is represented by "TCGCCA", the integer "-1" is "TGGCCA"
具体的,本公开提供的一种图像编码方法一种实施例如图7所示,与上述实施例不同的是,所述步骤S13,根据DNA碱基序列与数字的对应关系以及所述有效数值,确定所述小波变换系数的编码DNA序列,包括:步骤S132和步骤S133。Specifically, an embodiment of an image encoding method provided by the present disclosure is shown in FIG. 7. The difference from the above-mentioned embodiment is that the step S13 is based on the corresponding relationship between the DNA base sequence and the number and the effective value, Determining the coding DNA sequence of the wavelet transform coefficient includes: step S132 and step S133.
步骤S132,根据所述DNA碱基序列与数字的对应关系以及所述有效数值,将所述有效数值对应的DNA碱基序列依次编码;Step S132, according to the corresponding relationship between the DNA base sequence and the number and the effective value, sequentially encode the DNA base sequence corresponding to the effective value;
步骤S133,当所述有效数值中有连续N个相同数字出现时,(N≥2),按照格式“所述相同数字对应的碱基序列,N对应的DNA碱基序列”编码,确定所述小波变换系数的编码DNA序列。Step S133: When N consecutive identical numbers appear in the effective value, (N≥2), code according to the format "base sequence corresponding to the same number, DNA base sequence corresponding to N" to determine the Coding DNA sequence of wavelet transform coefficients.
本公开实施例中,所述DNA碱基序列与数字的对应关系包括上述实施例中的所述的:当所述有效数值的位数小于或等于预设值时,所述DNA碱基序列与所述数字为一一对应的关系;当所述有效数值的位数大于所述预设值时,其中,所述有效数值中小于或等于所述预设值的高位数字与DNA碱 基序列为一一对应的关系,大于所述预设值的低位数字与DNA碱基序列为多对一的对应关系;所述多对一的对应关系包括:多个连续的低位数字对应相同的碱基序列。根据所述有效数值的数字位数和具体数字,在所述对应关系中找到对应DNA碱基序列,可以按照所述有效数值由高位到低位(由左到右)的顺序依次编码。In the embodiment of the present disclosure, the corresponding relationship between the DNA base sequence and the number includes the one described in the above embodiment: when the number of digits of the effective value is less than or equal to a preset value, the DNA base sequence is The numbers are in a one-to-one correspondence; when the number of digits of the effective value is greater than the preset value, wherein the high-order digits of the effective value that are less than or equal to the preset value and the DNA base sequence are There is a one-to-one correspondence, and there is a many-to-one correspondence between the low-digit numbers greater than the preset value and the DNA base sequence; the many-to-one correspondence includes: multiple consecutive low-digit numbers correspond to the same base sequence . According to the number of digits of the effective value and the specific number, the corresponding DNA base sequence is found in the corresponding relationship, and the effective value can be coded in sequence from high to low (from left to right).
在一个示例中,由于一幅子图像包含很多个像素对应的小波变换系数,因此,所述小波变换系数对应的编码DNA序列是很长的,不可避免的会出现同一个数字连续N次出现,而连续编码相同的DNA碱基序列会造成合成的困难,因此,可以采用下述格式“所述相同数字对应的碱基序列,N对应的DNA碱基序列”编码。比如,小波系数中出现3个连续的0,0对应的编码DNA序列为“TA”,数字3可以按照表1中的对应关系,对应的编码DNA序列为“AG”,最终表示为“TAAG”。In an example, since a sub-image contains wavelet transform coefficients corresponding to many pixels, the coding DNA sequence corresponding to the wavelet transform coefficients is very long, and the same number will inevitably appear N consecutive times. However, consecutively encoding the same DNA base sequence will cause difficulty in synthesis, therefore, the following format "the base sequence corresponding to the same number, and the DNA base sequence corresponding to N" can be used for encoding. For example, if there are 3 consecutive 0s in the wavelet coefficient, the corresponding coding DNA sequence of 0 is "TA", and the number 3 can follow the corresponding relationship in Table 1, and the corresponding coding DNA sequence is "AG", which is finally expressed as "TAAG" .
下面结合附图8对本公开所述的图像编码方法进行详细的说明。图8是本公开提供的图像编码方法的一种实施例的方法流程图。虽然本公开提供了如下述实施例或附图所示的方法操作步骤,但基于常规或者无需创造性的劳动在所述方法中可以包括更多或者更少的操作步骤。在逻辑性上不存在必要因果关系的步骤中,这些步骤的执行顺序不限于本公开实施例提供的执行顺序。The image encoding method described in the present disclosure will be described in detail below with reference to FIG. 8. Fig. 8 is a method flowchart of an embodiment of an image encoding method provided by the present disclosure. Although the present disclosure provides method operation steps as shown in the following embodiments or drawings, more or less operation steps may be included in the method based on conventional or without creative labor. In steps where there is no necessary causality logically, the execution order of these steps is not limited to the execution order provided by the embodiments of the present disclosure.
具体的,本公开提供的一种图像编码方法一种实施例如图8所示,与上述实施例不同的是,所述步骤S14,根据所述子图像的级别,连接所述小波变换系数的编码DNA序列,确定所述原始图像的编码DNA序列,包括:步骤S141。Specifically, an embodiment of an image coding method provided by the present disclosure is shown in FIG. 8. The difference from the above embodiment is that in step S14, the coding of the wavelet transform coefficients is connected according to the level of the sub-image. DNA sequence, determining the coding DNA sequence of the original image includes: step S141.
步骤S141,按照所述子图像级别顺序,依次连接所述子图像的像素数据对应的小波变换系数对应的所述编码DNA序列,确定所述原始图像的编码DNA序列。Step S141, according to the sub-image level order, sequentially connect the coding DNA sequences corresponding to the wavelet transform coefficients corresponding to the pixel data of the sub-images to determine the coding DNA sequence of the original image.
本公开实施例中,所述子图像级别顺序包括升序排列和降序排列,例如,所述子图像的最高级别是三级,按照所述子图像的升序顺序,依次连接所述子图像的像素数据对应的小波变换系数对应的所述编码DNA序列包括,连接顺序可以包括:LL1对应的编码DNA序列、HL1对应的编码DNA序列、LH1对应的编码DNA序列、HH1对应的编码DNA序列、LL2对应的编码DNA序列、HL2对应的编码DNA序列、LH2对应的编码DNA序列、HH2对应的编码DNA序列、LL3对应的编码DNA序列、HL3对应的编码DNA序列、LH3对应的编码DNA序列、HH3对应的编码DNA序列。In the embodiment of the present disclosure, the order of the sub-image levels includes ascending order and descending order. For example, the highest level of the sub-image is three levels, and the pixel data of the sub-images are sequentially connected according to the ascending order of the sub-images The coding DNA sequence corresponding to the corresponding wavelet transform coefficient includes, the connection sequence may include: the coding DNA sequence corresponding to LL1, the coding DNA sequence corresponding to HL1, the coding DNA sequence corresponding to LH1, the coding DNA sequence corresponding to HH1, and the coding DNA sequence corresponding to LL2. Coding DNA sequence, coding DNA sequence corresponding to HL2, coding DNA sequence corresponding to LH2, coding DNA sequence corresponding to HH2, coding DNA sequence corresponding to LL3, coding DNA sequence corresponding to HL3, coding DNA sequence corresponding to LH3, coding DNA sequence corresponding to HH3 DNA sequence.
再比如,所述子图像的最高级别是五级,根据所述步骤S1221和步骤S1222的所述实施例中有效数值的保留方法:对于五级子图像对应的Y信息小波变换系数可以保留两位有效数字,U信息小波变换系数和V信息小波变换系数可以保留两位有效数字;四级子图像和三级子图像对应的Y信息小波变换系数可以保留两位有效数字,四级子图像对应的U信息小波变换系数和V信息小波变换系数可以保留两位有效数字;二级子图像对应的Y信息小波变换系数可以保留一位有效数字,可以去掉一级子图像对应的Y信息小波变换系数,可以去掉三级子图像、二级子图像和一级子图像对应的U信息小波变换系数和V信息小波变换系数。按照所述子图像的降序顺序,依次连接所述子图像的像素数据对应的小波变换系数对应的所述编码DNA序列包括,连接顺序可以包括:五级子图像的像素数据对应的Y信息小波变换系数的编码DNA序列、五级子图像的像素数据对应的U信息小波变换系数的编码DNA序列、五级子图像的像素数据对应的V信息小波变换系数的编码DNA序列、四级子图像的像素数据对应的Y小波变换系数的编码DNA序列、四级子图像的像素数据对应的U信息小波变换系数的编码DNA序列、四级子图像的像素数据对应的V信息小波变换系数的编码DNA序列、三级子图像的像素数据对应的Y小波变换系数的编码DNA序列、二级子图像的像素数据对应的Y小波变换系数的编码DNA序列。For another example, the highest level of the sub-image is five levels. According to the method for retaining valid values in the embodiment of step S1221 and step S1222: two bits can be reserved for the Y information wavelet transform coefficients corresponding to the five-level sub-images Significant digits, U information wavelet transform coefficients and V information wavelet transform coefficients can retain two significant digits; Y information wavelet transform coefficients corresponding to four-level sub-images and three-level sub-images can retain two significant digits, corresponding to four-level sub-images U information wavelet transform coefficients and V information wavelet transform coefficients can retain two significant digits; the Y information wavelet transform coefficients corresponding to the secondary sub-image can retain one significant digit, and the Y information wavelet transform coefficients corresponding to the primary sub-image can be removed. The U information wavelet transform coefficients and V information wavelet transform coefficients corresponding to the third-level sub-image, the second-level sub-image, and the first-level sub-image can be removed. According to the descending order of the sub-images, the coded DNA sequence corresponding to the wavelet transform coefficients corresponding to the pixel data of the sub-images is sequentially connected, and the connection sequence may include: Y information wavelet transform corresponding to the pixel data of the five-level sub-images The coding DNA sequence of the coefficient, the coding DNA sequence of the U information wavelet transform coefficient corresponding to the pixel data of the fifth-level sub-image, the coding DNA sequence of the V information wavelet transform coefficient corresponding to the pixel data of the fifth-level sub-image, and the pixels of the fourth-level sub-image The coding DNA sequence of the Y wavelet transform coefficient corresponding to the data, the coding DNA sequence of the U information wavelet transform coefficient corresponding to the pixel data of the four-level sub-image, the coding DNA sequence of the V information wavelet transform coefficient corresponding to the pixel data of the four-level sub-image, The coding DNA sequence of Y wavelet transform coefficients corresponding to the pixel data of the three-level sub-image, and the coding DNA sequence of Y wavelet transform coefficients corresponding to the pixel data of the two-level sub-image.
在本实施例中所述三级子图像和二级子图像对应的小波变换系数只有Y型的,因此可以按照所述三级子图像和二级子图像的小波变换系数的对应关系进行交互排列相应的编码DNA序列,可以按照如下数据格式进行连接,所述数据格式包括“三级子图像中某个像素对应的小波系数+TT+二级子图像 对应所述像素的小波系数”。例如,三级子图像对应的小波系数的位置坐标是(i,j),对应二级子图像对应的小波系数(2i,2j),(2i,2j+1),(2i+1,2j),(2i+1,2j+1),在所述三级子图像对应的小波系数之后,依次存入这四个小波系数。这是因为,当所述小波变换系数只有一种类型Y型时,经过小波变换的三级子图像中单个像素对应的小波系数和二级子图像对应所述像素的小波系数是相邻近的,采用上述格式进行编码,有利于降低编码的复杂度。In this embodiment, the wavelet transform coefficients corresponding to the third-level sub-image and the second-level sub-image are only Y-shaped, so they can be alternately arranged according to the corresponding relationship between the wavelet transform coefficients of the third-level sub-image and the second-level sub-image The corresponding encoded DNA sequences can be connected according to the following data format, which includes "wavelet coefficients corresponding to a certain pixel in the third-level sub-image + TT + wavelet coefficients corresponding to the pixel in the second-level sub-image". For example, the position coordinates of the wavelet coefficients corresponding to the three-level sub-image are (i, j), corresponding to the wavelet coefficients (2i, 2j), (2i, 2j+1), (2i+1,2j) corresponding to the two-level sub-image , (2i+1,2j+1), after the wavelet coefficients corresponding to the three-level sub-image, these four wavelet coefficients are sequentially stored. This is because when the wavelet transform coefficient has only one type Y, the wavelet coefficient corresponding to a single pixel in the three-level sub-image after wavelet transform and the wavelet coefficient corresponding to the pixel in the second-level sub-image are adjacent , Encoding using the above format is helpful to reduce the complexity of encoding.
下面结合附图9对本公开所述的图像编码方法进行详细的说明。图9是本公开提供的图像编码方法的一种实施例的方法流程图。虽然本公开提供了如下述实施例或附图所示的方法操作步骤,但基于常规或者无需创造性的劳动在所述方法中可以包括更多或者更少的操作步骤。在逻辑性上不存在必要因果关系的步骤中,这些步骤的执行顺序不限于本公开实施例提供的执行顺序。The image encoding method described in the present disclosure will be described in detail below with reference to FIG. 9. FIG. 9 is a method flowchart of an embodiment of an image encoding method provided by the present disclosure. Although the present disclosure provides method operation steps as shown in the following embodiments or drawings, more or less operation steps may be included in the method based on conventional or without creative labor. In steps where there is no necessary causality logically, the execution order of these steps is not limited to the execution order provided by the embodiments of the present disclosure.
具体的,本公开提供的一种图像编码方法一种实施例如图9所示,与上述实施例不同的是,所述步骤S141,所述按照所述子图像级别顺序,依次连接所述子图像的像素数据对应的小波变换系数对应的所述编码DNA序列,确定所述原始图像的编码DNA序列,包括:步骤S1411和步骤S1412。Specifically, an embodiment of an image coding method provided by the present disclosure is shown in FIG. 9. The difference from the above-mentioned embodiment is that in step S141, the sub-images are sequentially connected according to the order of the sub-image levels. The coding DNA sequence corresponding to the wavelet transform coefficient corresponding to the pixel data of, and determining the coding DNA sequence of the original image includes: step S1411 and step S1412.
步骤S1411,按照格式“级别号+预设的碱基标记+最大绝对值+级别号+预设的碱基标记”,依次在所述子图像的像素数据对应的小波变换系数对应的所述编码DNA序列前加入所述小波变换系数中的最大绝对值对应的DNA碱基序列,得到所述子图像的编码DNA序列;Step S1411, in accordance with the format "level number + preset base label + maximum absolute value + level number + preset base label", sequentially place the codes corresponding to the wavelet transform coefficients corresponding to the pixel data of the sub-image Adding the DNA base sequence corresponding to the largest absolute value in the wavelet transform coefficient before the DNA sequence to obtain the coding DNA sequence of the sub-image;
步骤S1412,按照所述子图像级别顺序,依次连接所述子图像的编码DNA序列,确定所述原始图像的编码DNA序列。Step S1412, according to the sub-image level sequence, sequentially connect the coding DNA sequence of the sub-images to determine the coding DNA sequence of the original image.
本公开实施例中,当存储的小波系数不是最大绝对值时,添加格式包括“级别号+行号+段号+小波系数对应的碱基+级别号+行号+段号”,按照所述子图像级别顺序,可以包括升序或降序,依次连接所述子图像的编码DNA序列,确定所述原始图像的编码DNA序列。In the embodiment of the present disclosure, when the stored wavelet coefficient is not the maximum absolute value, the addition format includes "level number + line number + segment number + base corresponding to the wavelet coefficient + level number + line number + segment number", as described The sub-image level sequence may include ascending order or descending order, and the coding DNA sequence of the sub-images are sequentially connected to determine the coding DNA sequence of the original image.
本公开实施例中,当所述子图像是对应的小波变换系数中的最大绝对值,格式包括:“级别号+预设的碱基标记+最大绝对值+级别号+预设的碱基标记”,其中所述级别号表示所述子图像的级别号,预设的碱基标记可以如“GTGTGTTATA”,在编码时,需要将所述级别号和最大绝对值对应的DNA碱基序列加入到所述子图像对应的编码DNA序列。比如五级低频水平子图像的最大绝对值为7654,所述最大绝对值7654可以按照表2中数字对应的DNA碱基序列进行编码,表示为“CT+CG+AG+AC”,一级对应的DNA碱基序列为“AAT”,预设的碱基标记为“GTGTGTTATA”,那么,所述五级低频水平子图像的最大绝对值为7654表示为:“AATGTGTGTTATACTCGAGACAATGTGTGTTATA”。本公开实施例,在最大绝对值的前后两端均出现级别号和预设的碱基标记,有利于解码时的校验,比如当读取首先读取级别号和预设的碱基标记,进而读取最大绝对值对应的碱基序列后,再次读取级别号和预设的碱基标记,当发现与第一次读取的级别号和预设的碱基标记不同时,说明所述编码DNA序列发生了错误。In the embodiment of the present disclosure, when the sub-image is the maximum absolute value of the corresponding wavelet transform coefficient, the format includes: "level number + preset base label + maximum absolute value + level number + preset base label ", the level number represents the level number of the sub-image, and the preset base mark can be like "GTGTGTTATA". When encoding, the level number and the DNA base sequence corresponding to the maximum absolute value need to be added to The coding DNA sequence corresponding to the sub-image. For example, the maximum absolute value of the five-level low-frequency level sub-image is 7654. The maximum absolute value 7654 can be coded according to the DNA base sequence corresponding to the numbers in Table 2, expressed as "CT+CG+AG+AC", and the first level corresponds to The DNA base sequence of is "AAT", and the preset base label is "GTGTGTTATA". Then, the maximum absolute value of the five-level low-frequency level sub-image is 7654 expressed as: "AATGTGTGTTATACTCGAGACAATGTGTGTTATA". In the embodiment of the present disclosure, the level number and the preset base mark appear at both the front and back ends of the maximum absolute value, which facilitates the verification during decoding. For example, when reading, the level number and the preset base mark are first read. Then, after reading the base sequence corresponding to the maximum absolute value, read the level number and the preset base label again. When it is found that the level number read for the first time and the preset base label are different, the description An error occurred in the coding DNA sequence.
下面结合附图10对本公开所述的图像编码方法进行详细的说明。图10是本公开提供的图像编码方法的一种实施例的方法流程图。虽然本公开提供了如下述实施例或附图所示的方法操作步骤,但基于常规或者无需创造性的劳动在所述方法中可以包括更多或者更少的操作步骤。在逻辑性上不存在必要因果关系的步骤中,这些步骤的执行顺序不限于本公开实施例提供的执行顺序。The image encoding method described in the present disclosure will be described in detail below with reference to FIG. 10. Fig. 10 is a method flowchart of an embodiment of an image encoding method provided by the present disclosure. Although the present disclosure provides method operation steps as shown in the following embodiments or drawings, more or less operation steps may be included in the method based on conventional or without creative labor. In steps where there is no necessary causality logically, the execution order of these steps is not limited to the execution order provided by the embodiments of the present disclosure.
具体的,本公开提供的一种图像编码方法一种实施例如图10所示,与上述实施例不同的是,所述步骤S141,按照所述子图像级别顺序,依次连接所述子图像的像素数据对应的小波变换系数对应的所述编码DNA序列,确定所述原始图像的编码DNA序列,包括:步骤S1413、步骤S1414、步骤S1415和步骤S1416:Specifically, an embodiment of an image coding method provided by the present disclosure is shown in FIG. 10. The difference from the above-mentioned embodiment is that in step S141, the pixels of the sub-images are sequentially connected according to the order of the sub-image levels. The coding DNA sequence corresponding to the wavelet transform coefficient corresponding to the data to determine the coding DNA sequence of the original image includes: step S1413, step S1414, step S1415, and step S1416:
步骤S1413,按照所述子图像级别顺序,依次连接所述子图像的像素数据对应的小波变换系数对应的所述编码DNA序列;Step S1413, according to the sub-image level order, sequentially connect the coded DNA sequences corresponding to the wavelet transform coefficients corresponding to the pixel data of the sub-images;
步骤S1414,根据预设长度值,将连接后的所述编码DNA序列切割成M行DNA子序列(M≥1);Step S1414, according to the preset length value, cut the ligated coding DNA sequence into M rows of DNA subsequences (M≥1);
步骤S1415,根据预设宽度值,将所述DNA子序列切割成X段DNA片段(X≥1);Step S1415, cutting the DNA subsequence into X DNA fragments (X≥1) according to the preset width value;
步骤S1416,将索引标记对应的碱基序列添加到所述DNA片段上,所述索引标记包括所述DNA片段对应的子图像信息以及DNA片段的行号和段号。Step S1416: Add the base sequence corresponding to the index mark to the DNA fragment, the index mark including the sub-image information corresponding to the DNA fragment and the line number and segment number of the DNA fragment.
本公开实施例中,可以按照上述实施例中所述子图像级别顺序,如升序排列、降序排列,依次连接所述子图像的像素数据对应的小波变换系数对应的所述编码DNA序列。连接后的编码DNA序列包含了所有分解的子图像的信息,DNA碱基序列较多,合成较为困难,为了有效合成DNA序列,对所述连接后的编码DNA序列按照预设长度值,如40~130nt进行切割,得到M行DNA子序列,对所述DNA子序列进行进一步的切割,得到X段DNA片段。所述预设长度值和预设宽度值的选取不限于根据DNA合成工艺的需求,还可以根据所述子图像像素数据的类型、所述子图像的级别以及所述子图像的频率等,相同属性的DNA碱基序列信息划分到同一DNA片段上。在一个示例中,需要将行号和段号对应的DNA碱基序列加到对应的DNA片段上,以利于后期连接,图像解码。所述行号与DNA碱基序列的对应关系可以包括表2中的对应关系,所述段号与DNA碱基序列的对应关系可以包括表3中的对应关系。In the embodiments of the present disclosure, the coding DNA sequences corresponding to the wavelet transform coefficients corresponding to the pixel data of the sub-images may be sequentially connected according to the sub-image level order in the foregoing embodiment, such as ascending order and descending order. The ligated coding DNA sequence contains the information of all the decomposed sub-images. There are many DNA base sequences and it is difficult to synthesize. In order to synthesize the DNA sequence effectively, the ligated coding DNA sequence should be set according to a preset length value, such as 40 ~130nt is cut to obtain M rows of DNA subsequences, and the DNA subsequences are further cut to obtain X DNA fragments. The selection of the preset length value and the preset width value is not limited to the requirements of the DNA synthesis process, but may also be based on the type of the sub-image pixel data, the level of the sub-image, the frequency of the sub-image, etc., the same The DNA base sequence information of the attribute is divided into the same DNA fragment. In an example, the DNA base sequence corresponding to the line number and the segment number needs to be added to the corresponding DNA fragment to facilitate subsequent connection and image decoding. The corresponding relationship between the line number and the DNA base sequence may include the corresponding relationship in Table 2, and the corresponding relationship between the segment number and the DNA base sequence may include the corresponding relationship in Table 3.
表2 索引标记中的“行号”的编码Table 2 Encoding of "line number" in index mark
行号Line number 00 11 22 33 44 55 66 77 88 99
编码coding TATA TCTC TGTG ATAT ACAC AGAG CGCG CTCT GTGT GCGC
表3 索引标记中“段号”的编码Table 3 Encoding of "Segment Number" in Index Mark
段号Segment number 00 11 22 33 44 55 66 77 88 99
编码coding TATA TCTC TGTG ATAT ACAC AGAG CGCG CTCT GTGT GCGC
本公开实施例中,在所述DNA片段上加入索引标记,所述索引标记包括所述DNA片段对应的子图像信息以及DNA片段的行号和段号,利于在后期解码时,准确的识别所述DNA片段所包含的内容对象,进行DNA片段的拼接。In the embodiment of the present disclosure, an index mark is added to the DNA fragment, and the index mark includes the sub-image information corresponding to the DNA fragment and the line number and segment number of the DNA fragment, which is beneficial to accurately identify the location during the later decoding. The content objects contained in the DNA fragments are spliced.
在一种可能的实现方式中,所述子图像信息包括:子图像的级别编号、像素信息以及子图像的种类标记。所述子图像的级别编号可以包括上述实施例中的,利用小波变换函数对所述原始图像进行一级或多级分解,参考图3所述,其中1、2、3则表示子图像的级别编号;所述像素信息可以包括上述实施例中的所述子图像像素的YUV信息;所述子图像的种类标记可以包括上述事实例中将所述原始图像经过小波变换后,得到的一系列不同频率或不同分量(即水平方向分量、垂直方向分量或对角线方向分量)的子图像,如HL1、LH1、HH1及HL2、LH2、HH2等。In a possible implementation manner, the sub-image information includes: a level number of the sub-image, pixel information, and a type mark of the sub-image. The level number of the sub-image may include the one-level or multi-level decomposition of the original image using the wavelet transform function in the above-mentioned embodiment, as described in FIG. 3, where 1, 2, and 3 indicate the level of the sub-image Number; the pixel information may include the YUV information of the sub-image pixels in the above-mentioned embodiment; the type mark of the sub-image may include a series of different results obtained after the original image is subjected to wavelet transformation in the above-mentioned example Sub-images of frequency or different components (ie, horizontal component, vertical component or diagonal component), such as HL1, LH1, HH1, HL2, LH2, HH2, etc.
在一个示例中,将所述子图像信息添加到所述DNA片段上,需要首先获取所述子图像对应DNA碱基序列,可以通过预先建立子图像信息与DNA碱基序列的对应关系进行实现。比如,对于最高级别是四级的子图像中,Y表示明亮度,U和V分别表示色度和饱和度,可以包括如下子图像信息与DNA碱基序列的对应关系,参照如表4,其中:Y0表示明亮度的低频子图像,Y10表示明亮度的一级高频水平子图像,Y11表示明亮度的一级高频垂直子图像,Y12表示明亮度的一级高频对角线子图像,Y20表示明亮度的二级高频水平子图像,Y21表示明亮度的二级高频垂直子图像,Y22表示明亮度的2级高频对角线子图像。U0表示色彩的低频子图像,U10表示色彩的一级高频水平子图像,U11表示色彩的一级高频垂直子图像,U12表示色彩的一级高频对角线子图像,U20色彩的二级高频水平子图像,U21表示色彩的二级高频垂直子图像,U22表示色彩的二级高频对角线子图像。V0表示饱和度的低频子图像,V10表示饱和度的一级高频水平子图像,V11表示饱和度的一级高频垂直子图像, V12表示饱和度的一级高频对角线子图像,V20饱和度的二级高频水平子图像,V21是饱和度的二级高频垂直子图像,V22表示饱和度的二级高频对角线子图像。In an example, to add the sub-image information to the DNA fragment, it is necessary to first obtain the DNA base sequence corresponding to the sub-image, which can be achieved by pre-establishing the correspondence between the sub-image information and the DNA base sequence. For example, for a sub-image with the highest level of four, Y represents brightness, U and V represent chroma and saturation, respectively, which may include the correspondence between the following sub-image information and DNA base sequence, refer to Table 4, where : Y0 represents the low-frequency sub-image of brightness, Y10 represents the first-level high-frequency horizontal sub-image of brightness, Y11 represents the first-level high-frequency vertical sub-image of brightness, and Y12 represents the first-level high-frequency diagonal sub-image of brightness , Y20 represents a secondary high-frequency horizontal sub-image of brightness, Y21 represents a secondary high-frequency vertical sub-image of brightness, and Y22 represents a secondary high-frequency diagonal sub-image of brightness. U0 represents the low-frequency sub-image of color, U10 represents the first-level high-frequency horizontal sub-image of color, U11 represents the first-level high-frequency vertical sub-image of color, U12 represents the first-level high-frequency diagonal sub-image of color, and U20 represents the second-level high-frequency diagonal sub-image of color. Level high frequency horizontal sub image, U21 represents the secondary high frequency vertical sub image of color, U22 represents the secondary high frequency diagonal sub image of color. V0 represents the low-frequency sub-image of saturation, V10 represents the first-level high-frequency horizontal sub-image of saturation, V11 represents the first-level high-frequency vertical sub-image of saturation, and V12 represents the first-level high-frequency diagonal sub-image of saturation. The secondary high-frequency horizontal sub-image of V20 saturation, V21 is the secondary high-frequency vertical sub-image of saturation, and V22 is the secondary high-frequency diagonal sub-image of saturation.
表4 索引标记中“子图像信息”编码Table 4 "Sub-image information" coding in the index mark
Figure PCTCN2019117135-appb-000001
Figure PCTCN2019117135-appb-000001
在一种可能的实现方式中,所述步骤S1416,将索引标记对应的碱基序列添加到所述DNA片段上,所述索引标记包括所述DNA片段对应的子图像信息以及DNA片段的行号和段号,包括:In a possible implementation manner, in step S1416, a base sequence corresponding to an index mark is added to the DNA fragment, and the index mark includes sub-image information corresponding to the DNA fragment and the row number of the DNA fragment And segment numbers, including:
在所述DNA片段的前后两端分别添加所述索引标记对应的碱基序列,所述索引标记包括所述DNA片段对应的子图像信息以及DNA片段的行号和段号,确定所述原始图像的编码DNA序列。The base sequence corresponding to the index mark is added to the front and back ends of the DNA fragment, and the index mark includes the sub-image information corresponding to the DNA fragment and the line number and segment number of the DNA fragment to determine the original image The coding DNA sequence.
本公开实施例中,在所述DNA片段的前后两端分别添加所述索引标记对应的碱基序列,参考表4所示。这样,在进行图像解码时,首次读取所述DNA片段前端的所述索引标记后,再次读取所述DNA片段后端的所述索引标记时,如果发现两次读取的所述索引标记不一致的话,则说明所述DNA片段合成过程中发生了错误。In the embodiment of the present disclosure, the base sequence corresponding to the index mark is added to the front and back ends of the DNA fragment, as shown in Table 4. In this way, when performing image decoding, after reading the index mark at the front end of the DNA fragment for the first time, when reading the index mark at the back end of the DNA fragment again, if the index marks read twice are found to be inconsistent If it is, it means that an error occurred during the synthesis of the DNA fragment.
表5 核酸片段结构Table 5 Nucleic acid fragment structure
Figure PCTCN2019117135-appb-000002
Figure PCTCN2019117135-appb-000002
下面结合图11和图12,对本公开图像编码方法有益效果进行说明。将图11通过小波变换后,得到五级低频水平子图像的U信息小波变换系数如表6所示,所述表6仅显示部分数据,出于篇幅考虑,此处仅取五级低频水平子图像的U信息小波变换系数的前5行,每行取28个数的表格。The beneficial effects of the image encoding method of the present disclosure will be described below in conjunction with FIG. 11 and FIG. 12. After the wavelet transformation of Figure 11, the U information wavelet transform coefficients of the five-level low-frequency level sub-image are shown in Table 6. Table 6 only shows part of the data. For space considerations, only the five-level low-frequency level sub-images are taken here. The first 5 lines of the U information wavelet transform coefficient of the image, each line takes a table of 28 numbers.
将表6中的每个数值分别除以所述U信息小波变换系数的最大绝对值,保留两位小数后得到表7。将表7中的小数部分按照上述实施例中的所述DNA碱基序列与数字的对应关系,编码成DNA序列,取所述DNA序列的前五行举例如下:Each value in Table 6 is divided by the maximum absolute value of the U information wavelet transform coefficient, and two decimal places are retained to obtain Table 7. The decimal part in Table 7 is coded into a DNA sequence according to the corresponding relationship between the DNA base sequence and the number in the above embodiment, and the first five lines of the DNA sequence are taken as an example as follows:
Figure PCTCN2019117135-appb-000003
Figure PCTCN2019117135-appb-000003
Figure PCTCN2019117135-appb-000004
Figure PCTCN2019117135-appb-000004
对小波变换后的系数存入DNA的条数统计:亮度信息Y的编码条数如下:二级子图像合成4598条编码DNA序列;三级子图像合成1120条编码DNA序列;四级子图像合成466条编码DNA序列;五级子图像合成172条编码DNA序列;色度信息U的编码条数如下:四级子图像合成468条编码DNA序列;五级子图像合成168条编码DNA序列;饱和度信息V的编码条数如下:四级子图像合成459条编码DNA序列;五级子图像合成166条编码DNA序列。图11总共合成编码DNA序列的条数是7617条。本公开与现有公认较好的编码技术(喷泉码方法)相比,编码效率是喷泉码方法的6.3倍。类似的,对图12小波变换后的系数存入DNA的条数统计:亮度信息Y的编码条数如下:二级子图像合成8906条编码DNA序列;三级子图像合成2470条编码DNA序列;四级子图像合成624条编码DNA序列;五级子图像合成260条编码DNA序列;色度信息U的编码条数如下:四级子图像合成620条编码DNA序列;五级子图像合成256条编码DNA序列;饱和度信息V的编码条数如下:四级子图像合成612条编码DNA序列;五级子图像合成246条编码DNA序列。图12总共合成编码DNA序列的条数是13994条。本公开与现有公认较好的编码技术(喷泉码方法)相比,编码效率是喷泉码方法的6.5倍。Count the number of DNAs stored in the coefficients after wavelet transformation: the number of encodings of brightness information Y is as follows: 4598 encoding DNA sequences for secondary sub-image synthesis; 1120 encoding DNA sequences for tertiary sub-image synthesis; fourth-level sub-image synthesis 466 encoding DNA sequences; 172 encoding DNA sequences synthesized from fifth-level sub-image; the number of encodings of color information U is as follows: fourth-level sub-image synthesis 468 encoding DNA sequences; fifth-level sub-image synthesis 168 encoding DNA sequences; saturation The number of codes for the degree information V is as follows: the four-level sub-image synthesizes 459 coding DNA sequences; the fifth-level sub-image synthesizes 166 coding DNA sequences. The total number of synthesized coding DNA sequences in Fig. 11 is 7,617. Compared with the currently recognized better coding technology (fountain code method), the coding efficiency of the present disclosure is 6.3 times that of the fountain code method. Similarly, the number of coefficients stored in DNA after wavelet transformation in Figure 12 is counted: the number of encodings of brightness information Y is as follows: 8906 encoding DNA sequences for secondary sub-image synthesis; 2470 encoding DNA sequences for tertiary sub-image synthesis; Four-level sub-image synthesis 624 encoding DNA sequences; fifth-level sub-image synthesis 260 encoding DNA sequences; the number of encodings of color information U is as follows: fourth-level sub-image synthesis 620 encoding DNA sequences; fifth-level sub-image synthesis 256 Encoding DNA sequence; the number of encodings of saturation information V is as follows: 612 encoding DNA sequences are synthesized from four-level sub-image; 246 encoding DNA sequences are synthesized from fifth-level sub-image. The total number of synthetic coding DNA sequences in Fig. 12 is 13,994. Compared with the currently recognized better coding technology (fountain code method), the coding efficiency of the present disclosure is 6.5 times that of the fountain code method.
表6 五级低频水平部分子图像的U信息小波变换系数部分数据Table 6 U information wavelet transform coefficient data of the five-level low-frequency horizontal sub-image
Figure PCTCN2019117135-appb-000005
Figure PCTCN2019117135-appb-000005
下面结合附图13对本公开所述的图像解码方法进行详细的说明。图13是本公开提供的图像解码 方法的一种实施例的方法流程图。虽然本公开提供了如下述实施例或附图所示的方法操作步骤,但基于常规或者无需创造性的劳动在所述方法中可以包括更多或者更少的操作步骤。在逻辑性上不存在必要因果关系的步骤中,这些步骤的执行顺序不限于本公开实施例提供的执行顺序。The image decoding method described in the present disclosure will be described in detail below with reference to FIG. 13. Fig. 13 is a method flowchart of an embodiment of an image decoding method provided by the present disclosure. Although the present disclosure provides method operation steps as shown in the following embodiments or drawings, more or less operation steps may be included in the method based on conventional or without creative labor. In steps where there is no necessary causality logically, the execution order of these steps is not limited to the execution order provided by the embodiments of the present disclosure.
具体的,本公开提供的一种图像解码方法一种实施例如图13所示,包括:Specifically, an embodiment of an image decoding method provided by the present disclosure is shown in FIG. 13, including:
步骤S21,获取所述原始图像的编码DNA序列;Step S21: Obtain the coding DNA sequence of the original image;
步骤S22,提取所述编码DNA序列中的索引标记碱基序列和DNA片段序列;Step S22, extracting the index marker base sequence and the DNA fragment sequence in the coding DNA sequence;
步骤S23,根据所述索引标记碱基序列与数字的对应关系以及所述DNA片段序列与数字的对应关系,确定子图像的小波变换系数;Step S23: Determine the wavelet transform coefficient of the sub-image according to the corresponding relationship between the index mark base sequence and the number and the corresponding relationship between the DNA fragment sequence and the number;
步骤S24,对所述小波变换系数进行小波逆变换,得到解码图像。Step S24: Perform inverse wavelet transform on the wavelet transform coefficients to obtain a decoded image.
本公开实施例中,考虑到DNA合成工艺的影响,所述原始图像的编码DNA序列可以包括若干条核酸片段结构,在一个示例中,所述核酸片段结构如表5所示,获取所述核酸片段结构,可以按照预设的索引标记碱基序列位数,如表5中前20nt为侧翼引物序列,8-15nt为索引编码序列。In the embodiment of the present disclosure, taking into account the influence of the DNA synthesis process, the coding DNA sequence of the original image may include several nucleic acid fragment structures. In an example, the nucleic acid fragment structure is shown in Table 5. For the fragment structure, the number of base sequences can be marked according to a preset index. For example, in Table 5, the first 20 nt is the flanking primer sequence, and 8-15 nt is the index coding sequence.
表7 五级低频水平部分子图像的U信息小波变换系数处理后部分数据Table 7 Partial data of U information wavelet transform coefficient processing of five-level low-frequency horizontal sub-image
Figure PCTCN2019117135-appb-000006
Figure PCTCN2019117135-appb-000006
本公开实施例中,根据所述索引标记碱基序列与数字的对应关系,在一个示例中,所述索引标记包括所述DNA片段对应的子图像信息以及DNA片段的行号和段号,根据上述实施例中的所述子图像信息与DNA碱基序列的对应关系,包括如表4、所述DNA片段的行号与碱基序列的对应关系,包括如表2、所述DNA片段的段号与碱基序列的对应关系,包括如表3,将所述索引标记解码成数字信息,与上述实施例相同的是,所述子图像信息包括子图像的级别编号、像素信息以及子图像的种类标记。在一个示例中,根据所述DNA片段序列与数字的对应关系,所述DNA片段序列与数字的对应关系与上述实施例中相同,可以包括如表1中的对应关系,将同一级子图像的DNA片段解码成数字信息。In the embodiment of the present disclosure, according to the corresponding relationship between the base sequence of the index mark and the number, in an example, the index mark includes the sub-image information corresponding to the DNA fragment and the row number and segment number of the DNA fragment, according to The corresponding relationship between the sub-image information and the DNA base sequence in the above embodiment includes the corresponding relationship between the row number of the DNA fragment and the base sequence as shown in Table 4, including the segment of the DNA fragment as shown in Table 2. The corresponding relationship between the number and the base sequence includes the decoding of the index mark into digital information as shown in Table 3. The same as the above embodiment, the sub-image information includes the level number of the sub-image, pixel information, and the sub-image Type tag. In an example, according to the corresponding relationship between the DNA fragment sequence and the number, the corresponding relationship between the DNA fragment sequence and the number is the same as that in the foregoing embodiment, and may include the corresponding relationship as in Table 1. The DNA fragments are decoded into digital information.
在一个示例中,对所述解码后的所述子图像的数字信息,即小波变换系数,进行小波变换的逆变换得到解码图像。In an example, the decoded digital information of the sub-image, that is, the wavelet transform coefficient, is subjected to the inverse transform of the wavelet transform to obtain a decoded image.
图14是根据一示例性实施例示出的一种图像编码装置框图。参照图14,包括:Fig. 14 is a block diagram showing an image encoding device according to an exemplary embodiment. Refer to Figure 14, including:
分解模块11,用于通过小波变换函数,对原始图像进行一级或多级分解,得到多个子图像的像素数据对应的小波变换系数以及所述子图像的级别;The decomposition module 11 is configured to decompose the original image at one or more levels through a wavelet transform function to obtain wavelet transform coefficients corresponding to pixel data of multiple sub-images and the levels of the sub-images;
处理模块12,用于根据所述小波变换系数以及所述小波变换系数对应的子图像的级别,确定所述小波变换系数的有效数值;The processing module 12 is configured to determine the effective value of the wavelet transform coefficient according to the wavelet transform coefficient and the level of the sub-image corresponding to the wavelet transform coefficient;
编码模块13,用于根据DNA碱基序列与数字的对应关系以及所述有效数值,确定所述小波变换系数的编码DNA序列;The coding module 13 is used to determine the coding DNA sequence of the wavelet transform coefficient according to the corresponding relationship between the DNA base sequence and the number and the effective value;
连接模块14,用于根据所述子图像的级别,连接所述小波变换系数的编码DNA序列,确定所述原始图像的编码DNA序列。The connecting module 14 is configured to connect the coding DNA sequence of the wavelet transform coefficients according to the level of the sub-image to determine the coding DNA sequence of the original image.
图15是根据一示例性实施例示出的一种编码装置框图。参照图15,所述处理模块12包括:Fig. 15 is a block diagram showing an encoding device according to an exemplary embodiment. 15, the processing module 12 includes:
处理子模块121,用于根据所述小波变换系数,将所述子图像的像素数据对应的小波变换系数除以所述子图像的像素数据对应的小波变换系数中的最大绝对值以获得第一数值;The processing sub-module 121 is configured to divide the wavelet transform coefficient corresponding to the pixel data of the sub-image by the maximum absolute value of the wavelet transform coefficient corresponding to the pixel data of the sub-image according to the wavelet transform coefficient to obtain the first Numerical value
确定子模块122,用于根据所述第一数值以及所述子图像的级别,确定所述小波变换系数的有效数值。The determining sub-module 122 is configured to determine the effective value of the wavelet transform coefficient according to the first value and the level of the sub-image.
图16是根据一示例性实施例示出的一种编码装置框图。参照图16,所述确定子模块122包括:Fig. 16 is a block diagram showing an encoding device according to an exemplary embodiment. Referring to FIG. 16, the determining submodule 122 includes:
第一确定单元1221,用于根据所述子图像的级别、像素信息以及有效数字位数的对应关系,确定所述第一数值的有效位数,所述像素信息包括像素亮度和像素色度;The first determining unit 1221 is configured to determine the effective number of digits of the first value according to the corresponding relationship between the level of the sub-image, pixel information, and the number of significant digits, where the pixel information includes pixel brightness and pixel chromaticity;
第二确定单元1222,用于根据所述第一数值的有效位数,确定所述小波变换系数的有效数值。The second determining unit 1222 is configured to determine the effective value of the wavelet transform coefficient according to the effective number of bits of the first value.
在一种可能的实现方式中,所述数字为十进制数字。In a possible implementation, the number is a decimal number.
图17是根据一示例性实施例示出的一种编码装置框图。参照图17,所述编码模块13包括:Fig. 17 is a block diagram showing an encoding device according to an exemplary embodiment. Referring to FIG. 17, the encoding module 13 includes:
第一编码子模块131,用于根据所述有效数值的数字和符号、所述DNA碱基序列与所述数字的对应关系、所述DNA碱基序列与所述符号的对应关系,确定所述小波变换系数的编码DNA序列。The first encoding sub-module 131 is configured to determine the number and symbol of the effective value, the corresponding relationship between the DNA base sequence and the number, and the corresponding relationship between the DNA base sequence and the symbol. Coding DNA sequence of wavelet transform coefficients.
在一种可能的实现方式中,所述DNA碱基序列与所述数字的对应关系,包括:In a possible implementation, the correspondence between the DNA base sequence and the number includes:
当所述有效数值的位数小于或等于预设值时,所述DNA碱基序列与所述数字为一一对应的关系;When the number of digits of the effective value is less than or equal to the preset value, the DNA base sequence and the number have a one-to-one correspondence;
当所述有效数值的位数大于所述预设值时,其中,所述有效数值中小于或等于所述预设值的高位数字与DNA碱基序列为一一对应的关系,大于所述预设值的低位数字与DNA碱基序列为多对一的对应关系。When the number of digits of the effective value is greater than the preset value, wherein the high-order digits of the effective value that are less than or equal to the preset value have a one-to-one correspondence with the DNA base sequence, which is greater than the preset value. There is a many-to-one correspondence between the low digits of the value and the DNA base sequence.
在一种可能的实现方式中,所述多对一的对应关系包括:多个连续的低位数字对应相同的碱基序列。In a possible implementation manner, the many-to-one correspondence relationship includes: multiple consecutive low-order digits correspond to the same base sequence.
图18是根据一示例性实施例示出的一种编码装置框图。参照图18,所述编码模块13包括:Fig. 18 is a block diagram showing an encoding device according to an exemplary embodiment. Referring to FIG. 18, the encoding module 13 includes:
第二编码子模块132,用于根据所述DNA碱基序列与数字的对应关系以及所述有效数值,将所述有效数值对应的DNA碱基序列依次编码;The second encoding sub-module 132 is configured to sequentially encode the DNA base sequence corresponding to the effective value according to the corresponding relationship between the DNA base sequence and the number and the effective value;
第三编码子模块133,当所述有效数值中有连续N个相同数字出现时,(N≥2),按照格式“所述相同数字对应的碱基序列,N对应的DNA碱基序列”编码,确定所述小波变换系数的编码DNA序列。The third encoding sub-module 133, when N consecutive identical numbers appear in the effective value, (N≥2), encode according to the format "base sequence corresponding to the same number, DNA base sequence corresponding to N" , Determine the coding DNA sequence of the wavelet transform coefficient.
图19是根据一示例性实施例示出的一种编码装置框图。参照图19,所述连接模块14包括:Fig. 19 is a block diagram showing an encoding device according to an exemplary embodiment. 19, the connection module 14 includes:
连接子模块141,用于按照所述子图像级别顺序,依次连接所述子图像的像素数据对应的小波变换系数对应的所述编码DNA序列,确定所述原始图像的编码DNA序列。The connection sub-module 141 is configured to sequentially connect the coding DNA sequences corresponding to the wavelet transform coefficients corresponding to the pixel data of the sub-images according to the sub-image level order to determine the coding DNA sequence of the original image.
图20是根据一示例性实施例示出的一种编码装置框图。参照图20,所述连接子模块141包括:Fig. 20 is a block diagram showing an encoding device according to an exemplary embodiment. 20, the connection sub-module 141 includes:
第一处理单元1411,用于按照格式“级别号+预设的碱基标记+最大绝对值+级别号+预设的碱基标记”,依次在所述子图像的像素数据对应的小波变换系数对应的所述编码DNA序列前加入所述小波变换系数中的最大绝对值对应的DNA碱基序列,得到所述子图像的编码DNA序列;The first processing unit 1411 is configured to sequentially display the wavelet transform coefficients corresponding to the pixel data of the sub-image according to the format "level number + preset base label + maximum absolute value + level number + preset base label" Adding the DNA base sequence corresponding to the largest absolute value in the wavelet transform coefficient before the corresponding coding DNA sequence to obtain the coding DNA sequence of the sub-image;
第一连接单元1412,按照所述子图像级别顺序,依次连接所述子图像的编码DNA序列,确定所述原始图像的编码DNA序列。The first connecting unit 1412 sequentially connects the coding DNA sequences of the sub-images according to the sub-image level order to determine the coding DNA sequences of the original image.
图21是根据一示例性实施例示出的一种编码装置框图。参照图21,所述连接子模块141包括:Fig. 21 is a block diagram showing an encoding device according to an exemplary embodiment. Referring to FIG. 21, the connection sub-module 141 includes:
第二连接单元1413,用于按照所述子图像级别顺序,依次连接所述子图像的像素数据对应的小波变换系数对应的所述编码DNA序列;The second connecting unit 1413 is configured to sequentially connect the encoded DNA sequences corresponding to the wavelet transform coefficients corresponding to the pixel data of the sub-images in the order of the sub-image levels;
第二处理单元1414,用于根据预设长度值,将连接后的所述编码DNA序列切割成M行DNA子序列(M≥1);The second processing unit 1414 is configured to cut the linked coding DNA sequence into M rows of DNA subsequences (M≥1) according to the preset length value;
第三处理单元1415,用于根据预设宽度值,将所述DNA子序列切割成X段DNA片段(X≥1);The third processing unit 1415 is configured to cut the DNA subsequence into X DNA fragments (X≥1) according to the preset width value;
添加单元1416,用于将索引标记对应的碱基序列添加到所述DNA片段上,所述索引标记包括所述DNA片段对应的子图像信息以及DNA片段的行号和段号。The adding unit 1416 is configured to add a base sequence corresponding to an index mark to the DNA fragment, and the index mark includes sub-image information corresponding to the DNA fragment and the line number and segment number of the DNA fragment.
在一种可能的实现方式中,所述子图像信息包括:子图像的级别编号、像素信息以及子图像的种类标记。In a possible implementation manner, the sub-image information includes: a level number of the sub-image, pixel information, and a type mark of the sub-image.
在一种可能的实现方式中,所述添加单元1416包括:In a possible implementation manner, the adding unit 1416 includes:
添加子单元1417,用于在所述DNA片段的前后两端分别添加所述索引标记对应的碱基序列,所述索引标记包括所述DNA片段对应的子图像信息以及DNA片段的行号和段号。The adding subunit 1417 is used to add the base sequence corresponding to the index mark at the front and back ends of the DNA fragment, and the index mark includes the sub-image information corresponding to the DNA fragment and the row number and segment of the DNA fragment number.
图22是根据一示例性实施例示出的一种解码装置框图。参照图22,包括:Fig. 22 is a block diagram showing a decoding device according to an exemplary embodiment. Refer to Figure 22, including:
获取模块21,用于获取所述原始图像的编码DNA序列;The obtaining module 21 is used to obtain the coding DNA sequence of the original image;
提取模块22,用于根据预设的索引标记碱基序列位数,提取所述编码DNA序列中的索引标记碱基序列和DNA片段序列;The extraction module 22 is configured to extract the index-mark base sequence and the DNA fragment sequence in the coding DNA sequence according to the preset number of index-mark base sequence bits;
确定模块23,用于根据所述索引标记碱基序列与数字的对应关系以及所述DNA片段序列与数字的对应关系,确定子图像的小波变换系数;The determining module 23 is configured to determine the wavelet transform coefficient of the sub-image according to the corresponding relationship between the index mark base sequence and the number and the corresponding relationship between the DNA fragment sequence and the number;
变换模块24,用于对所述小波变换系数进行小波变换的逆变换,得到解码图像。The transform module 24 is configured to perform the inverse transform of the wavelet transform on the wavelet transform coefficients to obtain a decoded image.
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the device in the foregoing embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment of the method, and detailed description will not be given here.
在一种可能的实现方式中,提供一种图像存储方法,包括:In a possible implementation manner, an image storage method is provided, including:
按照任一实施例所述的图像编码方法,将所述原始图片编码成DNA序列;According to the image encoding method of any embodiment, encoding the original picture into a DNA sequence;
通过DNA合成仪,将所述DNA序列合成核酸片段;Synthesize nucleic acid fragments from the DNA sequence by a DNA synthesizer;
将所述核酸片段存储在如下介质中的一种或几种中,所述介质包括基因芯片、质粒或活细胞。The nucleic acid fragments are stored in one or more of the following media, the media including gene chips, plasmids or living cells.
本公开实施例中,可以利用寡核苷酸合成仪,在所述DNA序列前后两端加侧翼引物序列,并合成核酸片段,通过分子生物学手段将所述核酸片段存储在基因芯片、质粒或活细胞中,完成所述图像在DNA中的存储。In the embodiments of the present disclosure, an oligonucleotide synthesizer can be used to add flanking primer sequences to the front and back ends of the DNA sequence, and to synthesize nucleic acid fragments, and store the nucleic acid fragments in gene chips, plasmids or gene chips by molecular biology means. In living cells, the storage of the image in DNA is completed.
在一种可能的实现方式中,提供一种图像读取方法,包括:In a possible implementation manner, an image reading method is provided, including:
获取核酸片段,Get nucleic acid fragments,
通过DNA测序仪,获取所述核酸片段的DNA碱基排列顺序;Obtain the DNA base sequence of the nucleic acid fragments by a DNA sequencer;
根据本公开任一实施例所述的图像解码方法,将所述核酸片段解码成图像数据。According to the image decoding method according to any embodiment of the present disclosure, the nucleic acid fragment is decoded into image data.
本公开实施例中,可以通过扩增、测序的方式,将所述核酸片段从基因芯片、质粒或活细胞中提取出来,在一个示例中,如果仅需要所述图像的缩略图,而不是全部大图信息时,可以采用低频子图像对应的索引标记碱基序列,进行解码还原,实现图像的随机读取。In the embodiments of the present disclosure, the nucleic acid fragments can be extracted from gene chips, plasmids or living cells by means of amplification and sequencing. In one example, if only thumbnails of the images are needed, not all In the case of large image information, the base sequence corresponding to the low-frequency sub-image can be marked with the index to decode and restore to realize random reading of the image.
图23是根据一示例性实施例示出的一种用于图像编码的装置800的框图,图23同样适用于图像解码装置。例如,装置800可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。Fig. 23 is a block diagram showing a device 800 for image encoding according to an exemplary embodiment, and Fig. 23 is also applicable to an image decoding device. For example, the device 800 may be a mobile phone, a computer, a digital broadcasting terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
参照图23,装置800可以包括以下一个或多个组件:处理组件802,存储器804,电源组件806,多媒体组件808,音频组件810,输入/输出(I/O)的接口812,传感器组件814,以及通信组件816。23, the device 800 may include one or more of the following components: a processing component 802, a memory 804, a power supply component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, And the communication component 816.
处理组件802通常控制装置800的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件802可以包括一个或多个处理器820来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件802可以包括一个或多个模块,便于处理组件802和其他组件之间的交互。例如,处理组件802可以包括多媒体模块,以方便多媒体组件808和处理组件802之间的交互。The processing component 802 generally controls the overall operations of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the foregoing method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
存储器804被配置为存储各种类型的数据以支持在装置800的操作。这些数据的示例包括用于在装置800上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器804可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 804 is configured to store various types of data to support operations in the device 800. Examples of these data include instructions for any application or method operating on the device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or nonvolatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic Disk or Optical Disk.
电源组件806为装置800的各种组件提供电力。电源组件806可以包括电源管理系统,一个或多个电源,及其他与为装置800生成、管理和分配电力相关联的组件。The power supply component 806 provides power to various components of the device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 800.
多媒体组件808包括在所述装置800和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件808包括一个前置摄像头和/或后置摄像头。当装置800处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 808 includes a screen that provides an output interface between the device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, sliding, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure related to the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and/or a rear camera. When the device 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
音频组件810被配置为输出和/或输入音频信号。例如,音频组件810包括一个麦克风(MIC),当装置800处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器804或经由通信组件816发送。在一些实施例中,音频组件810还包括一个扬声器,用于输出音频信号。The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the device 800 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive external audio signals. The received audio signal may be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, the audio component 810 further includes a speaker for outputting audio signals.
I/O接口812为处理组件802和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 812 provides an interface between the processing component 802 and a peripheral interface module. The peripheral interface module may be a keyboard, a click wheel, a button, and the like. These buttons may include but are not limited to: home button, volume button, start button, and lock button.
传感器组件814包括一个或多个传感器,用于为装置800提供各个方面的状态评估。例如,传感器组件814可以检测到装置800的打开/关闭状态,组件的相对定位,例如所述组件为装置800的显示器和小键盘,传感器组件814还可以检测装置800或装置800一个组件的位置改变,用户与装置800接触的存在或不存在,装置800方位或加速/减速和装置800的温度变化。传感器组件814可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件814还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件814还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。The sensor component 814 includes one or more sensors for providing the device 800 with various aspects of status assessment. For example, the sensor component 814 can detect the on/off status of the device 800 and the relative positioning of the components. For example, the component is the display and the keypad of the device 800. The sensor component 814 can also detect the position change of the device 800 or a component of the device 800. , The presence or absence of contact between the user and the device 800, the orientation or acceleration/deceleration of the device 800, and the temperature change of the device 800. The sensor component 814 may include a proximity sensor configured to detect the presence of nearby objects when there is no physical contact. The sensor component 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
通信组件816被配置为便于装置800和其他设备之间有线或无线方式的通信。装置800可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件816经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件816还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 816 is configured to facilitate wired or wireless communication between the device 800 and other devices. The device 800 can access a wireless network based on a communication standard, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
在示例性实施例中,装置800可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、 控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, the apparatus 800 may be implemented by one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing equipment (DSPD), programmable logic devices (PLD), field programmable A gate array (FPGA), controller, microcontroller, microprocessor, or other electronic components are implemented to implement the above methods.
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器804,上述指令可由装置800的处理器820执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as the memory 804 including instructions, which can be executed by the processor 820 of the device 800 to complete the foregoing method. For example, the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
图24是根据一示例性实施例示出的一种用于图像编码装置1900的框图,图23同样适用于图像解码装置。例如,装置1900可以被提供为一服务器。参照图24,装置1900包括处理组件1922,其进一步包括一个或多个处理器,以及由存储器1932所代表的存储器资源,用于存储可由处理组件1922的执行的指令,例如应用程序。存储器1932中存储的应用程序可以包括一个或一个以上的每一个对应于一组指令的模块。此外,处理组件1922被配置为执行指令,以执行上述方法.Fig. 24 is a block diagram showing a device 1900 for image encoding according to an exemplary embodiment, and Fig. 23 is also applicable to an image decoding device. For example, the device 1900 may be provided as a server. 24, the apparatus 1900 includes a processing component 1922, which further includes one or more processors, and a memory resource represented by a memory 1932, for storing instructions that can be executed by the processing component 1922, such as application programs. The application program stored in the memory 1932 may include one or more modules each corresponding to a set of instructions. In addition, the processing component 1922 is configured to execute instructions to perform the above methods.
装置1900还可以包括一个电源组件1926被配置为执行装置1900的电源管理,一个有线或无线网络接口1950被配置为将装置1900连接到网络,和一个输入输出(I/O)接口1958。装置1900可以操作基于存储在存储器1932的操作系统,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM或类似。The device 1900 may also include a power component 1926 configured to perform power management of the device 1900, a wired or wireless network interface 1950 configured to connect the device 1900 to the network, and an input output (I/O) interface 1958. The device 1900 can operate based on an operating system stored in the memory 1932, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or the like.
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器1932,上述指令可由装置1900的处理组件1922执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as the memory 1932 including instructions, which may be executed by the processing component 1922 of the device 1900 to complete the foregoing method. For example, the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Those skilled in the art will easily think of other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptive changes of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not disclosed in the present disclosure . The description and the embodiments are to be regarded as exemplary only, and the true scope and spirit of the present disclosure are pointed out by the following claims.
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It should be understood that the present disclosure is not limited to the precise structure that has been described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present disclosure is limited only by the appended claims.

Claims (34)

  1. 一种图像编码方法,其特征在于,包括:An image coding method, characterized by comprising:
    通过小波变换函数,对原始图像进行一级或多级分解,得到多个子图像的像素数据对应的小波变换系数以及所述子图像的级别;The original image is decomposed at one level or multiple levels through the wavelet transform function to obtain wavelet transform coefficients corresponding to the pixel data of multiple sub-images and the levels of the sub-images;
    根据所述小波变换系数以及所述小波变换系数对应的子图像的级别,确定所述小波变换系数的有效数值;Determining the effective value of the wavelet transform coefficient according to the wavelet transform coefficient and the level of the sub-image corresponding to the wavelet transform coefficient;
    根据DNA碱基序列与数字的对应关系以及所述有效数值,确定所述小波变换系数的编码DNA序列;Determining the coding DNA sequence of the wavelet transform coefficient according to the corresponding relationship between the DNA base sequence and the number and the effective value;
    根据所述子图像的级别,连接所述小波变换系数的编码DNA序列,确定所述原始图像的编码DNA序列。According to the level of the sub-image, the coding DNA sequence of the wavelet transform coefficient is connected to determine the coding DNA sequence of the original image.
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述小波变换系数以及所述小波变换系数对应的子图像的级别,确定所述小波变换系数的有效数值,包括:The method according to claim 1, wherein the determining the effective value of the wavelet transform coefficient according to the wavelet transform coefficient and the level of the sub-image corresponding to the wavelet transform coefficient comprises:
    根据所述小波变换系数,将所述子图像的像素数据对应的小波变换系数除以所述子图像的像素数据对应的小波变换系数中的最大绝对值以获得第一数值;According to the wavelet transform coefficient, dividing the wavelet transform coefficient corresponding to the pixel data of the sub-image by the maximum absolute value of the wavelet transform coefficient corresponding to the pixel data of the sub-image to obtain a first value;
    根据所述第一数值以及所述子图像的级别,确定所述小波变换系数的有效数值。Determine the effective value of the wavelet transform coefficient according to the first value and the level of the sub-image.
  3. 根据权利要求2所述的方法,其特征在于,所述根据所述第一数值以及所述子图像的级别,确定所述小波变换系数的有效数值,包括:The method according to claim 2, wherein the determining the effective value of the wavelet transform coefficient according to the first value and the level of the sub-image comprises:
    根据所述子图像的级别、像素信息以及有效数字位数的对应关系,确定所述第一数值的有效位数,所述像素信息包括像素亮度、像素色度和像素饱和度;Determining the effective number of digits of the first value according to the corresponding relationship between the level of the sub-image, pixel information, and the number of significant digits, where the pixel information includes pixel brightness, pixel chroma, and pixel saturation;
    根据所述第一数值的有效位数,确定所述小波变换系数的有效数值。According to the effective number of digits of the first value, the effective value of the wavelet transform coefficient is determined.
  4. 根据权利要求1所述的方法,其特征在于,所述数字为十进制数字。The method according to claim 1, wherein the number is a decimal number.
  5. 根据权利要求1所述的方法,其特征在于,所述根据DNA碱基序列与数字的对应关系以及所述有效数值,确定所述小波变换系数的编码DNA序列,包括:The method according to claim 1, wherein the determining the coding DNA sequence of the wavelet transform coefficient according to the corresponding relationship between the DNA base sequence and the number and the effective value comprises:
    根据所述有效数值的数字和符号、所述DNA碱基序列与所述数字的对应关系、所述DNA碱基序列与所述符号的对应关系,确定所述小波变换系数的编码DNA序列。Determine the coding DNA sequence of the wavelet transform coefficient according to the number and symbol of the effective value, the corresponding relationship between the DNA base sequence and the number, and the corresponding relationship between the DNA base sequence and the symbol.
  6. 根据权利要求1所述的方法,其特征在于,所述DNA碱基序列与所述数字的对应关系,包括:The method of claim 1, wherein the corresponding relationship between the DNA base sequence and the number comprises:
    当所述有效数值的位数小于或等于预设值时,所述DNA碱基序列与所述数字为一一对应的关系;When the number of digits of the effective value is less than or equal to the preset value, the DNA base sequence and the number have a one-to-one correspondence;
    当所述有效数值的位数大于所述预设值时,其中,所述有效数值中小于或等于所述预设值的高位数字与DNA碱基序列为一一对应的关系,大于所述预设值的低位数字与DNA碱基序列为多对一的对应关系。When the number of digits of the effective value is greater than the preset value, wherein the high-order digits of the effective value that are less than or equal to the preset value have a one-to-one correspondence with the DNA base sequence, which is greater than the preset value. There is a many-to-one correspondence between the low digits of the value and the DNA base sequence.
  7. 根据权利要求6所述的方法,其特征在于,所述多对一的对应关系包括:多个连续的低位数字对应相同的碱基序列。The method according to claim 6, wherein the many-to-one correspondence relationship comprises: a plurality of consecutive low-order digits correspond to the same base sequence.
  8. 根据权利要求1所述的方法,其特征在于,所述根据DNA碱基序列与数字的对应关系以及所述有效数值,确定所述小波变换系数的编码DNA序列,包括:The method according to claim 1, wherein the determining the coding DNA sequence of the wavelet transform coefficient according to the corresponding relationship between the DNA base sequence and the number and the effective value comprises:
    根据所述DNA碱基序列与数字的对应关系以及所述有效数值,将所述有效数值对应的DNA碱基序列依次编码;According to the corresponding relationship between the DNA base sequence and the number and the effective value, sequentially code the DNA base sequence corresponding to the effective value;
    当所述有效数值中有连续N个相同数字出现时,(N≥2),按照格式“所述相同数字对应的碱基序列,N对应的DNA碱基序列”编码,确定所述小波变换系数的编码DNA序列。When N consecutive identical numbers appear in the effective value, (N≥2), code according to the format "base sequence corresponding to the same number, DNA base sequence corresponding to N" to determine the wavelet transform coefficient The coding DNA sequence.
  9. 根据权利要求1所述的方法,其特征在于,根据所述子图像的级别,连接所述小波变换系数的编码DNA序列,确定所述原始图像的编码DNA序列,包括:The method according to claim 1, wherein, according to the level of the sub-image, connecting the coding DNA sequence of the wavelet transform coefficients to determine the coding DNA sequence of the original image comprises:
    按照所述子图像级别顺序,依次连接所述子图像的像素数据对应的小波变换系数对应的所述编码DNA序列,确定所述原始图像的编码DNA序列。According to the sub-image level sequence, the coding DNA sequences corresponding to the wavelet transform coefficients corresponding to the pixel data of the sub-images are sequentially connected to determine the coding DNA sequence of the original image.
  10. 根据权利要求9所述的方法,其特征在于,所述按照所述子图像级别顺序,依次连接所述子图像的像素数据对应的小波变换系数对应的所述编码DNA序列,确定所述原始图像的编码DNA序列,包括:The method according to claim 9, wherein the encoding DNA sequence corresponding to the wavelet transform coefficient corresponding to the pixel data of the sub-image is sequentially connected according to the sub-image level order to determine the original image The coding DNA sequence includes:
    按照格式“级别号+预设的碱基标记+最大绝对值+级别号+预设的碱基标记”,依次在所述子图像的像素数据对应的小波变换系数对应的所述编码DNA序列前加入所述小波变换系数中的最大绝对值对应的DNA碱基序列,得到所述子图像的编码DNA序列;According to the format "level number+preset base label+maximum absolute value+level number+preset base label", in sequence before the coding DNA sequence corresponding to the wavelet transform coefficient corresponding to the pixel data of the sub-image Adding the DNA base sequence corresponding to the largest absolute value in the wavelet transform coefficient to obtain the coding DNA sequence of the sub-image;
    按照所述子图像级别顺序,依次连接所述子图像的编码DNA序列,确定所述原始图像的编码DNA序列。According to the sub-image level sequence, the coding DNA sequences of the sub-images are sequentially connected to determine the coding DNA sequence of the original image.
  11. 根据权利要求9所述的方法,其特征在于,按照所述子图像级别顺序,依次连接所述子图像的像素数据对应的小波变换系数对应的所述编码DNA序列,确定所述原始图像的编码DNA序列,包括:The method according to claim 9, wherein the coding DNA sequence corresponding to the wavelet transform coefficient corresponding to the pixel data of the sub-image is sequentially connected according to the sub-image level order to determine the coding of the original image DNA sequence, including:
    按照所述子图像级别顺序,依次连接所述子图像的像素数据对应的小波变换系数对应的所述编码DNA序列;According to the sub-image level order, sequentially connect the coding DNA sequences corresponding to the wavelet transform coefficients corresponding to the pixel data of the sub-images;
    根据预设长度值,将连接后的所述编码DNA序列切割成M行DNA子序列(M≥1);According to the preset length value, cutting the ligated coding DNA sequence into M rows of DNA subsequences (M≥1);
    根据预设宽度值,将所述DNA子序列切割成X段DNA片段(X≥1);According to the preset width value, cut the DNA subsequence into X DNA fragments (X≥1);
    将索引标记对应的碱基序列添加到所述DNA片段上,所述索引标记包括所述DNA片段对应的子图像信息以及DNA片段的行号和段号。The base sequence corresponding to the index mark is added to the DNA fragment, and the index mark includes the sub-image information corresponding to the DNA fragment and the row number and segment number of the DNA fragment.
  12. 根据权利要求11所述的方法,其特征在于,所述子图像信息包括:子图像的级别编号、像素信息以及子图像的种类标记。The method according to claim 11, wherein the sub-image information comprises: a level number of the sub-image, pixel information, and a type mark of the sub-image.
  13. 根据权利要求11所述的方法,其特征在于,将索引标记对应的碱基序列添加到所述DNA片段上,所述索引标记包括所述DNA片段对应的子图像信息以及DNA片段的行号和段号,包括:The method according to claim 11, wherein the base sequence corresponding to an index mark is added to the DNA fragment, and the index mark includes the sub-image information corresponding to the DNA fragment and the row number of the DNA fragment. Segment number, including:
    在所述DNA片段的前后两端分别添加所述索引标记对应的碱基序列,所述索引标记包括所述DNA片段对应的子图像信息以及DNA片段的行号和段号。The base sequence corresponding to the index mark is added to the front and back ends of the DNA fragment, and the index mark includes the sub-image information corresponding to the DNA fragment and the row number and segment number of the DNA fragment.
  14. 根据权利要求1所述的方法,其特征在于,还包括:图像解码方法,所述图像解码方法包括:The method according to claim 1, further comprising: an image decoding method, the image decoding method comprising:
    获取所述原始图像的编码DNA序列;Acquiring the coding DNA sequence of the original image;
    根据预设的索引标记碱基序列位数,提取所述编码DNA序列中的索引标记碱基序列和DNA片段序列;Extracting the index-marking base sequence and the DNA fragment sequence in the coding DNA sequence according to the preset number of index-marking base sequence bits;
    根据所述索引标记碱基序列与数字的对应关系以及所述DNA片段序列与数字的对应关系,确定子图像的小波变换系数;Determining the wavelet transform coefficient of the sub-image according to the corresponding relationship between the index mark base sequence and the number and the corresponding relationship between the DNA fragment sequence and the number;
    对所述小波变换系数进行小波变换的逆变换,得到解码图像。Perform the inverse transform of the wavelet transform on the wavelet transform coefficients to obtain a decoded image.
  15. 一种图像编码装置,其特征在于,包括:An image coding device, characterized by comprising:
    分解模块,用于通过小波变换函数,对原始图像进行一级或多级分解,得到多个子图像的像素数据对应的小波变换系数以及所述子图像的级别;The decomposition module is used to decompose the original image at one or more levels through a wavelet transform function to obtain wavelet transform coefficients corresponding to pixel data of multiple sub-images and the levels of the sub-images;
    处理模块,用于根据所述小波变换系数以及所述小波变换系数对应的子图像的级别,确定所述小波变换系数的有效数值;A processing module, configured to determine the effective value of the wavelet transform coefficient according to the wavelet transform coefficient and the level of the sub-image corresponding to the wavelet transform coefficient;
    编码模块,用于根据DNA碱基序列与数字的对应关系以及所述有效数值,确定所述小波变换系数的编码DNA序列;An encoding module for determining the encoding DNA sequence of the wavelet transform coefficient according to the corresponding relationship between the DNA base sequence and the number and the effective value;
    连接模块,用于根据所述子图像的级别,连接所述小波变换系数的编码DNA序列,确定所述原始图像的编码DNA序列。The connection module is used to connect the coding DNA sequence of the wavelet transform coefficient according to the level of the sub-image to determine the coding DNA sequence of the original image.
  16. 根据权利要求15所述的装置,其特征在于,所述处理模块包括:The device according to claim 15, wherein the processing module comprises:
    处理子模块,用于根据所述小波变换系数,将所述子图像的像素数据对应的小波变换系数除以所述子图像的像素数据对应的小波变换系数中的最大绝对值以获得第一数值;The processing sub-module is configured to divide the wavelet transform coefficient corresponding to the pixel data of the sub-image by the maximum absolute value of the wavelet transform coefficient corresponding to the pixel data of the sub-image according to the wavelet transform coefficient to obtain a first value ;
    确定子模块,用于根据所述第一数值以及所述子图像的级别,确定所述小波变换系数的有效数值。The determining sub-module is configured to determine the effective value of the wavelet transform coefficient according to the first value and the level of the sub-image.
  17. 根据权利要求16所述的装置,其特征在于,所述确定子模块包括:The device according to claim 16, wherein the determining sub-module comprises:
    第一确定单元,用于根据所述子图像的级别、像素信息以及有效数字位数的对应关系,确定所述第一数值的有效位数,所述像素信息包括像素亮度、像素色度和像素饱和度;The first determining unit is configured to determine the effective number of digits of the first value according to the corresponding relationship between the level of the sub-image, pixel information, and the number of significant digits. The pixel information includes pixel brightness, pixel chroma, and pixel saturation;
    第二确定单元,用于根据所述第一数值的有效位数,确定所述小波变换系数的有效数值。The second determining unit is configured to determine the effective value of the wavelet transform coefficient according to the effective number of bits of the first value.
  18. 根据权利要求15所述的装置,其特征在于,所述数字为十进制数字。The device according to claim 15, wherein the number is a decimal number.
  19. 根据权利要求15所述的装置,其特征在于,所述编码模块包括:The device according to claim 15, wherein the encoding module comprises:
    第一编码子模块,用于根据所述有效数值的数字和符号、所述DNA碱基序列与所述数字的对应关系、所述DNA碱基序列与所述符号的对应关系,确定所述小波变换系数的编码DNA序列。The first coding sub-module is used to determine the wavelet based on the number and symbol of the effective value, the corresponding relationship between the DNA base sequence and the number, and the corresponding relationship between the DNA base sequence and the symbol The DNA sequence encoding the transformation coefficients.
  20. 根据权利要求15所述的装置,其特征在于,所述DNA碱基序列与所述数字的对应关系,包括:The device according to claim 15, wherein the corresponding relationship between the DNA base sequence and the number comprises:
    当所述有效数值的位数小于或等于预设值时,所述DNA碱基序列与所述数字为一一对应的关系;When the number of digits of the effective value is less than or equal to the preset value, the DNA base sequence and the number have a one-to-one correspondence;
    当所述有效数值的位数大于所述预设值时,其中,所述有效数值中小于或等于所述预设值的高位数字与DNA碱基序列为一一对应的关系,大于所述预设值的低位数字与DNA碱基序列为多对一的对应关系。When the number of digits of the effective value is greater than the preset value, wherein the high-order digits of the effective value that are less than or equal to the preset value have a one-to-one correspondence with the DNA base sequence, which is greater than the preset value. There is a many-to-one correspondence between the low digits of the value and the DNA base sequence.
  21. 根据权利要求20所述的装置,其特征在于,所述多对一的对应关系包括:多个连续的低位数字对应相同的碱基序列。The device according to claim 20, wherein the many-to-one correspondence relationship comprises: a plurality of consecutive low-order digits correspond to the same base sequence.
  22. 根据权利要求15所述的装置,其特征在于,所述编码模块包括:The device according to claim 15, wherein the encoding module comprises:
    第二编码子模块,用于根据所述DNA碱基序列与数字的对应关系以及所述有效数值,将所述有效数值对应的DNA碱基序列依次编码;The second encoding sub-module is used to sequentially encode the DNA base sequence corresponding to the effective value according to the corresponding relationship between the DNA base sequence and the number and the effective value;
    第三编码子模块,当所述有效数值中有连续N个相同数字出现时,(N≥2),按照格式“所述相同数字对应的碱基序列,N对应的DNA碱基序列”编码,确定所述小波变换系数的编码DNA序列。The third coding sub-module, when N consecutive identical numbers appear in the effective value, (N≥2), code according to the format "base sequence corresponding to the same number, DNA base sequence corresponding to N", Determine the coding DNA sequence of the wavelet transform coefficients.
  23. 根据权利要求15所述的装置,其特征在于,所述连接模块包括:The device according to claim 15, wherein the connection module comprises:
    连接子模块,用于按照所述子图像级别顺序,依次连接所述子图像的像素数据对应的小波变换系数对应的所述编码DNA序列,确定所述原始图像的编码DNA序列。The connection sub-module is configured to sequentially connect the coding DNA sequence corresponding to the wavelet transform coefficients corresponding to the pixel data of the sub-image according to the sub-image level order to determine the coding DNA sequence of the original image.
  24. 根据权利要求23所述的装置,其特征在于,所述连接子模块包括:The device according to claim 23, wherein the connection submodule comprises:
    第一处理单元,用于按照格式“级别号+预设的碱基标记+最大绝对值+级别号+预设的碱基标记”,依次在所述子图像的像素数据对应的小波变换系数对应的所述编码DNA序列前加入所述小波变换系数中的最大绝对值对应的DNA碱基序列,得到所述子图像的编码DNA序列;The first processing unit is configured to sequentially correspond to the wavelet transform coefficients corresponding to the pixel data of the sub-image according to the format "level number + preset base label + maximum absolute value + level number + preset base label" Adding the DNA base sequence corresponding to the largest absolute value in the wavelet transform coefficient before the coding DNA sequence to obtain the coding DNA sequence of the sub-image;
    第一连接单元,按照所述子图像级别顺序,依次连接所述子图像的编码DNA序列,确定所述原始图像的编码DNA序列。The first connecting unit sequentially connects the coding DNA sequences of the sub-images according to the sub-image level order to determine the coding DNA sequences of the original image.
  25. 根据权利要求23所述的装置,其特征在于,所述连接子模块包括:The device according to claim 23, wherein the connection submodule comprises:
    第二连接单元,用于按照所述子图像级别顺序,依次连接所述子图像的像素数据对应的小波变换系数对应的所述编码DNA序列;The second connecting unit is configured to sequentially connect the coded DNA sequences corresponding to the wavelet transform coefficients corresponding to the pixel data of the sub-images in the order of the sub-image levels;
    第二处理单元,用于根据预设长度值,将连接后的所述编码DNA序列切割成M行DNA子序列(M≥1);The second processing unit is configured to cut the linked coding DNA sequence into M rows of DNA subsequences (M≥1) according to the preset length value;
    第三处理单元,用于根据预设宽度值,将所述DNA子序列切割成X段DNA片段(X≥1);The third processing unit is configured to cut the DNA subsequence into X DNA fragments (X≥1) according to the preset width value;
    添加单元,用于将索引标记对应的碱基序列添加到所述DNA片段上,所述索引标记包括所述DNA 片段对应的子图像信息以及DNA片段的行号和段号。The adding unit is used to add the base sequence corresponding to the index mark to the DNA fragment, and the index mark includes the sub-image information corresponding to the DNA fragment and the row number and segment number of the DNA fragment.
  26. 根据权利要求25所述的装置,其特征在于,所述子图像信息包括:子图像的级别编号、像素信息以及子图像的种类标记。The device according to claim 25, wherein the sub-image information comprises: a level number of the sub-image, pixel information, and a type mark of the sub-image.
  27. 根据权利要求25所述的装置,其特征在于,所述添加单元包括:The device according to claim 25, wherein the adding unit comprises:
    添加子单元,用于在所述DNA片段的前后两端分别添加所述索引标记对应的碱基序列,所述索引标记包括所述DNA片段对应的子图像信息以及DNA片段的行号和段号。The adding subunit is used to add the base sequence corresponding to the index mark at the front and back ends of the DNA fragment, and the index mark includes the sub-image information corresponding to the DNA fragment and the row number and segment number of the DNA fragment .
  28. 根据权利要求25所述的装置,其特征在于,还包括图像解码装置,所述图像解码装置包括:The device according to claim 25, further comprising an image decoding device, the image decoding device comprising:
    获取模块,用于获取所述原始图像的编码DNA序列;An acquisition module for acquiring the coding DNA sequence of the original image;
    提取模块,用于根据预设的索引标记碱基序列位数,提取所述编码DNA序列中的索引标记碱基序列和DNA片段序列;The extraction module is used to extract the index mark base sequence and the DNA fragment sequence in the coding DNA sequence according to the preset number of index mark base sequence bits;
    确定模块,用于根据所述索引标记碱基序列与数字的对应关系以及所述DNA片段序列与数字的对应关系,确定子图像的小波变换系数;The determining module is configured to determine the wavelet transform coefficient of the sub-image according to the corresponding relationship between the index mark base sequence and the number and the corresponding relationship between the DNA fragment sequence and the number;
    变换模块,用于对所述小波变换系数进行小波变换的逆变换,得到解码图像。The transform module is used to perform the inverse transform of the wavelet transform on the wavelet transform coefficients to obtain a decoded image.
  29. 一种图像存储方法,其特征在于,包括:An image storage method, characterized in that it comprises:
    按照权利要求1至13中任一项所述的方法,将所述原始图片编码成DNA序列;The method according to any one of claims 1 to 13, encoding the original picture into a DNA sequence;
    通过DNA合成仪,将所述DNA序列合成核酸片段;Synthesize nucleic acid fragments from the DNA sequence by a DNA synthesizer;
    将所述核酸片段存储在如下介质中的一种或几种中,所述介质包括基因芯片、质粒或活细胞。The nucleic acid fragments are stored in one or more of the following media, the media including gene chips, plasmids or living cells.
  30. 一种图像读取方法,其特征在于,包括:An image reading method, characterized by comprising:
    获取核酸片段,Get nucleic acid fragments,
    通过DNA测序仪,获取所述核酸片段的DNA碱基排列顺序;Obtain the DNA base sequence of the nucleic acid fragments by a DNA sequencer;
    根据权利要求14所述的图像解码方法,将所述核酸片段解码成图像数据。The image decoding method according to claim 14, wherein the nucleic acid fragment is decoded into image data.
  31. 一种图像编码装置,其特征在于,包括:An image coding device, characterized by comprising:
    处理器;processor;
    用于存储处理器可执行指令的存储器;A memory for storing processor executable instructions;
    其中,所述处理器被配置为:执行权利要求1至13中任一项所述的方法。Wherein, the processor is configured to execute the method according to any one of claims 1-13.
  32. 一种图像解码装置,其特征在于,包括:An image decoding device, characterized by comprising:
    处理器;processor;
    用于存储处理器可执行指令的存储器;A memory for storing processor executable instructions;
    其中,所述处理器被配置为:执行权利要求14中任一项所述的方法。Wherein, the processor is configured to execute the method according to any one of claims 14.
  33. 一种非临时性计算机可读存储介质,当所述存储介质中的指令由处理器执行时,使得处理器能够执行根据权利要求1至13中任一项所述的方法。A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor, so that the processor can execute the method according to any one of claims 1 to 13.
  34. 一种非临时性计算机可读存储介质,当所述存储介质中的指令由处理器执行时,使得处理器能够执行根据权利要求14中任一项所述的方法。A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor, so that the processor can execute the method according to any one of claims 14.
PCT/CN2019/117135 2019-03-13 2019-11-11 Image encoding method and image decoding method, and encoding apparatus and decoding apparatus WO2020181803A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910189403.8 2019-03-13
CN201910189403.8A CN109803148B (en) 2019-03-13 2019-03-13 Image coding method, decoding method, coding device and decoding device

Publications (1)

Publication Number Publication Date
WO2020181803A1 true WO2020181803A1 (en) 2020-09-17

Family

ID=66563535

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/117135 WO2020181803A1 (en) 2019-03-13 2019-11-11 Image encoding method and image decoding method, and encoding apparatus and decoding apparatus

Country Status (2)

Country Link
CN (1) CN109803148B (en)
WO (1) WO2020181803A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109803148B (en) * 2019-03-13 2020-09-22 苏州泓迅生物科技股份有限公司 Image coding method, decoding method, coding device and decoding device
CN110113618B (en) * 2019-06-11 2021-09-03 苏州泓迅生物科技股份有限公司 Image storage method, reading method, storage device and reading device
CN110289083A (en) * 2019-06-26 2019-09-27 苏州泓迅生物科技股份有限公司 A kind of image reconstructing method and device
CN111681290B (en) * 2020-04-21 2023-08-15 华中科技大学鄂州工业技术研究院 Picture storage method based on DNA coding technology
CN112637607A (en) * 2020-12-21 2021-04-09 维沃移动通信有限公司 Image coding method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101706946A (en) * 2009-11-26 2010-05-12 大连大学 Digital image encryption method based on DNA sequence and multi-chaotic mapping
CN104850760A (en) * 2015-03-27 2015-08-19 苏州泓迅生物科技有限公司 Artificially synthesized DNA storage medium with coding information, storage reading method for information, and applications
US20150261990A1 (en) * 2014-02-05 2015-09-17 Electronics And Telecommunications Research Institute Method and apparatus for compressing dna data based on binary image
CN107067359A (en) * 2016-06-08 2017-08-18 电子科技大学 Contourlet area image sharing methods based on Brownian movement and DNA encoding
CN107659752A (en) * 2017-09-19 2018-02-02 中国矿业大学 More image encryption methods based on DNA encoding and chaos
CN109803148A (en) * 2019-03-13 2019-05-24 苏州泓迅生物科技股份有限公司 A kind of image encoding method, coding/decoding method, encoding apparatus and decoding apparatus
CN110113618A (en) * 2019-06-11 2019-08-09 苏州泓迅生物科技股份有限公司 A kind of image storage method, read method, storage device and reading device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3404380B2 (en) * 2000-12-28 2003-05-06 独立行政法人産業技術総合研究所 Adaptive predictive encoding / decoding method and apparatus, and recording medium storing adaptive predictive encoding / decoding program
CN101706947B (en) * 2009-11-26 2011-11-16 大连大学 Image fusion encryption method based on DNA sequences and multiple chaotic mappings

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101706946A (en) * 2009-11-26 2010-05-12 大连大学 Digital image encryption method based on DNA sequence and multi-chaotic mapping
US20150261990A1 (en) * 2014-02-05 2015-09-17 Electronics And Telecommunications Research Institute Method and apparatus for compressing dna data based on binary image
CN104850760A (en) * 2015-03-27 2015-08-19 苏州泓迅生物科技有限公司 Artificially synthesized DNA storage medium with coding information, storage reading method for information, and applications
CN107067359A (en) * 2016-06-08 2017-08-18 电子科技大学 Contourlet area image sharing methods based on Brownian movement and DNA encoding
CN107659752A (en) * 2017-09-19 2018-02-02 中国矿业大学 More image encryption methods based on DNA encoding and chaos
CN109803148A (en) * 2019-03-13 2019-05-24 苏州泓迅生物科技股份有限公司 A kind of image encoding method, coding/decoding method, encoding apparatus and decoding apparatus
CN110113618A (en) * 2019-06-11 2019-08-09 苏州泓迅生物科技股份有限公司 A kind of image storage method, read method, storage device and reading device

Also Published As

Publication number Publication date
CN109803148B (en) 2020-09-22
CN109803148A (en) 2019-05-24

Similar Documents

Publication Publication Date Title
WO2020181803A1 (en) Image encoding method and image decoding method, and encoding apparatus and decoding apparatus
CN110113618B (en) Image storage method, reading method, storage device and reading device
Dhawan et al. Analysis of various data security techniques of steganography: A survey
CN111191663B (en) License plate number recognition method and device, electronic equipment and storage medium
TWI374670B (en) Encoder and decoder for encoding and decoding pixel data with low amount of transmitting data, encoding method, and decoding method thereof
EP2767928B1 (en) Device and method for automatically identifying a qr code
KR20150095825A (en) Lossless image compression using differential transfer
JP2017199306A (en) Optical symbol, display medium, article, and generating device
WO2020258647A1 (en) Image reconstruction method and device
CN106170922A (en) The source code of data and the equipment of decoding and method
Wang et al. Payload location for JPEG image steganography based on co-frequency sub-image filtering
CN110717929A (en) Image target detection method, device and storage medium
CN114268750A (en) Video processing method, device, equipment and storage medium
CN101034468A (en) Lossless digital watermark method having regioselectivity
Huang et al. A scheme of reversible information hiding based on SMVQ
CN103348676A (en) Shared video-audio pipeline
US20080095473A1 (en) Wavelet transformation-based image encoder, decoder and method for generating thumbnail image
Puchala et al. Image statistics preserving encrypt-then-compress scheme dedicated for JPEG compression standard
CN107153712B (en) Personalized customized picture management method supporting time-space association of mobile terminal
CN111598198B (en) Image two-dimensional code generation method and reading method based on LSB information hiding
Wang et al. A Markov-based reversible data hiding method based on histogram shifting
KR102563468B1 (en) Image processing method, device and storage medium
JP2005055825A (en) Image display device, image display method and image display program
CN114528944A (en) Medical text encoding method, device and equipment and readable storage medium
Zhang et al. Pixel-Stega: Generative image steganography based on autoregressive models

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19919310

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19919310

Country of ref document: EP

Kind code of ref document: A1