CN116708845A - Gastrointestinal medical image communication transmission method based on 5G technology - Google Patents

Gastrointestinal medical image communication transmission method based on 5G technology Download PDF

Info

Publication number
CN116708845A
CN116708845A CN202310973100.1A CN202310973100A CN116708845A CN 116708845 A CN116708845 A CN 116708845A CN 202310973100 A CN202310973100 A CN 202310973100A CN 116708845 A CN116708845 A CN 116708845A
Authority
CN
China
Prior art keywords
length
run
sequence
data sequence
coding
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202310973100.1A
Other languages
Chinese (zh)
Other versions
CN116708845B (en
Inventor
王新
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiamusi University
Original Assignee
Jiamusi University
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 Jiamusi University filed Critical Jiamusi University
Priority to CN202310973100.1A priority Critical patent/CN116708845B/en
Publication of CN116708845A publication Critical patent/CN116708845A/en
Application granted granted Critical
Publication of CN116708845B publication Critical patent/CN116708845B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B1/00Instruments for performing medical examinations of the interior of cavities or tubes of the body by visual or photographical inspection, e.g. endoscopes; Illuminating arrangements therefor
    • A61B1/00002Operational features of endoscopes
    • A61B1/00011Operational features of endoscopes characterised by signal transmission
    • A61B1/00016Operational features of endoscopes characterised by signal transmission using wireless means
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/41Bandwidth or redundancy reduction
    • 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/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/136Incoming video signal characteristics or properties
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/90Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using coding techniques not provided for in groups H04N19/10-H04N19/85, e.g. fractals
    • H04N19/93Run-length coding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/06Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Multimedia (AREA)
  • Surgery (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Biophysics (AREA)
  • Molecular Biology (AREA)
  • Radiology & Medical Imaging (AREA)
  • Optics & Photonics (AREA)
  • Biomedical Technology (AREA)
  • Heart & Thoracic Surgery (AREA)
  • Medical Informatics (AREA)
  • Pathology (AREA)
  • Animal Behavior & Ethology (AREA)
  • General Health & Medical Sciences (AREA)
  • Public Health (AREA)
  • Veterinary Medicine (AREA)
  • Nuclear Medicine, Radiotherapy & Molecular Imaging (AREA)
  • Physics & Mathematics (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

The invention relates to the technical field of image communication, in particular to a gastrointestinal medical image communication transmission method based on a 5G technology, which comprises the following steps: converting the gastrointestinal image into a data sequence to obtain all kinds of gray values; calculating gray value coding lengths of all possible length groups according to the frequency of all gray values, calculating run coding lengths of all possible length groups according to the run coding result of the type sequence, and obtaining a first length, a second length and the longest run length corresponding to the target length group according to the gray value coding lengths and the run coding lengths of all possible length groups; distributing codes to all gray values and run lengths according to the first length, the second length and the longest run length corresponding to the target length group to obtain a code table; and encoding the data sequence according to the encoding table to obtain an encoding result of the data sequence. The present invention improves the compression efficiency of image coding by improving the compression efficiency of variable length coding.

Description

Gastrointestinal medical image communication transmission method based on 5G technology
Technical Field
The invention relates to the technical field of image communication, in particular to a gastrointestinal medical image communication transmission method based on a 5G technology.
Background
The gastrointestinal medical image communication transmission method is characterized in that the gastrointestinal medical image acquired by the gastrointestinal mirror is transmitted through the interface and stored in the database, so that medical staff can conveniently and quickly review and check the gastrointestinal medical image, and meanwhile, the digital resource storage enables remote medical treatment to be possible, and technical communication among hospitals is promoted.
The efficiency of the image communication transmission method depends not only on the transmission equipment and the transmission network used, but also on the compression efficiency of the image coding, and in order to improve the efficiency of the image communication transmission method, the compression efficiency of the image coding needs to be improved while using a 5G network with faster transmission efficiency.
While the compression efficiency of conventional fixed-length coding is not high, the compression efficiency of variable-length coding is improved as compared with fixed-length coding, but in order to ensure the decodability of variable-length coding, the compression efficiency of variable-length coding is limited, resulting in that the average coding length of variable-length coding is greater than the optimal average coding length, i.e., the compression efficiency of variable-length coding is limited.
Therefore, in order to improve the compression efficiency of image coding, the present invention needs to improve the compression efficiency of variable length coding.
Disclosure of Invention
The invention provides a gastrointestinal medical image communication transmission method based on a 5G technology, which aims to solve the existing problems.
The invention discloses a gastrointestinal medical image communication transmission method based on a 5G technology, which adopts the following technical scheme:
the invention provides a gastrointestinal medical image communication transmission method based on a 5G technology, which comprises the following steps:
converting the gastrointestinal image into a data sequence to obtain all kinds of gray values;
calculating gray value coding lengths of all possible length groups according to the frequency of all gray values, calculating run coding lengths of all possible length groups according to the run coding result of the type sequence, and obtaining a first length, a second length and the longest run length corresponding to the target length group according to the gray value coding lengths and the run coding lengths of all possible length groups;
distributing codes to all gray values and run lengths according to the first length, the second length and the longest run length corresponding to the target length group to obtain a code table;
and encoding the data sequence according to the encoding table to obtain an encoding result of the data sequence.
Further, the method for acquiring all possible length groups specifically includes the following steps:
will satisfyAnd->Is denoted as a set of possible lengths (s 1, s 2), N representing the number of classes of all gray values in the data sequence.
Further, the calculating the gray value coding lengths of all possible length groups includes the following specific steps:
counting the frequency of each gray value in the data sequence, and arranging all gray values according to the sequence from big to small; according to the principle of codes with shorter length allocated to gray values with larger frequency and codes with longer length allocated to gray values with smaller frequency, the gray value coding length of each possible length group is calculated, and a specific calculation formula is as follows:
in the method, in the process of the invention,gray value encoded lengths representing a set of possible lengths, s1 and s2 representing two positive integers, respectively, constituting the set of possible lengths,/o>The frequency number of the j-th gray value after the sorting is represented, and N represents the kinds and the numbers of all gray values in the data sequence.
Further, the method for acquiring the run-length coding result of the type sequence specifically comprises the following steps:
front after sequencingThe type of the seed gray value is marked as a first type, and the rest is recordedThe types of all the remaining gray values are marked as a second type, and s1 represents a positive integer which forms a possible length group; the sequence formed by the gray value types corresponding to each data in the data sequence according to the sequence is marked as a type sequence of a possible length group; run-length encoding is performed on the type sequence of the possible length group to obtain a run-length encoding result of the type sequence of the possible length group, wherein the run-length encoding result of the type sequence comprises a type and a run-length.
Further, the calculating the run-length codes of all possible length groups includes the following specific steps:
in the method, in the process of the invention,representing the run-length of a set of possible lengths, M representing the number of run-lengths in the run-length result of a sequence of types of the set of possible lengths, s1 and s2 representing the two positive integers constituting the set of possible lengths, respectively, N representing the number of kinds of all gray values in the data sequence,/representing the division quotient,>representing a round up->The i-th run length in the run-length coding result of the type sequence representing the set of possible lengths.
Further, the obtaining the coding table comprises the following specific steps:
according to the front after sequencingThe number of gray values is allocated to binary numbers with the length equal to the first length, namely, binary numbers with the length equal to the first length are used as the front +.>Encoding of the gray values, s1 representing the composition possibleA positive integer of the length group; assigning binary numbers with the length equal to the second length to all the remaining gray values, namely taking the binary numbers with the length equal to the second length as codes of all the remaining gray values; assigning the remaining binary number having a length equal to the second length to all run lengths between the shortest run length and the longest run length; all gray values and run-length codes constitute a code table.
Further, the method for obtaining the coding result of the data sequence comprises the following specific steps:
the type sequence of the target length group is marked as a target type sequence, the same and adjacent types in the target type sequence are divided into a subtype sequence, and the data sequence is divided into a plurality of subtype data sequences according to the division method of the subtype sequence;
performing secondary division on the sub-data sequence to obtain a target sub-data sequence; obtaining a run Cheng Chengdu of target sub-data sequences; obtaining a run-length identifier for each target sub-data sequence having a run-length;
coding all target sub-data sequences according to the coding table, and marking a sequence consisting of a coding result of the run length of each target sub-data sequence, an identifier of the run length and a coding result of each data as a coding result of the target sub-data sequence; and recording the sequence formed by the coding results of all the target sub-data sequences according to the sequence as the coding result of the data sequence.
Further, the obtaining the target sub-data sequence includes the following specific steps:
for the sub data sequence with the length more than or equal to 2, if the type of the gray value corresponding to the data in the sub data sequence is the first type, dividing the sub data sequence into a sub data sequence with the length equal to the shortest run length Y1, a plurality of sub data sequences with the length equal to the longest run length Y2 and a sub data sequence with the length less than the longest run length Y2; if the types of the gray values corresponding to the data in the sub data sequence are the second type, the sub data sequence is divided into a plurality of sub data sequences with the length equal to the longest run length Y2 and a sub data sequence with the length smaller than the longest run length Y2.
Further, the step of obtaining the run level of the target sub-data sequence includes the following specific steps:
for any one target sub-data sequence, if the length of the target sub-data sequence is greater than 1, or the length of the target sub-data sequence is equal to 1 and the type of the gray value corresponding to the data in the target sub-data sequence is the same as the type of the gray value corresponding to the data in the previous target sub-data sequence of the target sub-data sequence, the length of the target sub-data sequence is taken as the run length of the target sub-data sequence.
Further, the obtaining the identifier of the run length of each target sub-data sequence with the run length includes the following specific steps:
taking 0 as a first identifier and taking 1 as a second identifier; the identifier of the run length of the target sub data sequence is a first identifier if the type of the gray value corresponding to the data in the target sub data sequence is a first type, and is a second identifier if the type of the gray value corresponding to the data in the target sub data sequence is a second type.
The technical scheme of the invention has the beneficial effects that: the invention encodes the sequence by setting two different encoding lengths, so that the average encoding length can not be an integer, and the compression efficiency of the encoding result of the image encoding can be maximized.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for communicating a gastrointestinal medical image based on 5G technology according to the present invention;
FIG. 2 is a schematic diagram of a coding table.
Detailed Description
In order to further describe the technical means and effects adopted by the invention to achieve the preset aim, the following detailed description is given below of the specific implementation, structure, characteristics and effects of the gastrointestinal medical image communication transmission method based on the 5G technology according to the invention by combining the accompanying drawings and the preferred embodiment. In the following description, different "one embodiment" or "another embodiment" means that the embodiments are not necessarily the same. Furthermore, the particular features, structures, or characteristics of one or more embodiments may be combined in any suitable manner.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
The following specifically describes a specific scheme of the gastrointestinal medical image communication transmission method based on the 5G technology provided by the invention with reference to the accompanying drawings.
Referring to fig. 1, a method flowchart of a data transmission module of a gastrointestinal medical image communication transmission method based on 5G technology according to an embodiment of the invention is shown, where the method includes:
s001, acquiring a data sequence and all gray values.
Specifically, the gastrointestinal medical image is converted into a data sequence according to a Z-shaped scanning mode, and data in the data sequence are gray values of pixel points in the gastrointestinal medical image.
S002, calculating the gray value coding length of all the possible length groups, calculating the run coding length of all the possible length groups, and obtaining the first length, the second length and the longest run length corresponding to the target length group according to the gray value coding length and the run coding length of all the possible length groups.
When lossless encoding is performed on a sequence, it is required that the encoding length is equal to the information entropy of the sequence if the compression efficiency of the encoding result of image encoding is maximized, but the encoding length is an integer and the information entropy of the sequence is not necessarily an integer, which results in that the compression efficiency of the encoding result of image encoding cannot be maximized. By setting two different coding lengths to code the sequence, the average coding length can be different from an integer, and the compression efficiency of the coding result of image coding can be maximized.
It should be further noted that, although setting two different encoding lengths may maximize compression efficiency of the encoding result of the image encoding, the encoding result of the image encoding is not decodable due to the fact that the two different encoding lengths are mixed together, so this embodiment considers that the two encoding lengths in the encoding result of the image encoding are alternately appeared, but the distribution situation of the data in the actual sequence is various, and it is impossible to completely obey the fact that the two encoding lengths are alternately appeared, so this embodiment realizes that the encoding result of the image encoding with the two encoding lengths in the encoding result of the image encoding are decodable by representing the data with the same run length, which is not alternately appeared, that is, consecutive encoding lengths.
(1) The gray value encoding lengths of all possible length groups are calculated.
The codes corresponding to the two coding lengths can code all gray values in the sequence, and the coding result of the sequence is as short as possible, so that the compression efficiency of the coding result of the image coding is maximized.
In particular, it will satisfyAnd->Is denoted as a set of possible lengths (s 1, s 2), N representing the data sequenceThe number of kinds of all kinds of gray values in a column; counting the frequency of each gray value in the data sequence, and arranging all gray values according to the sequence from big to small; according to the principle of codes with shorter length allocated to gray values with larger frequency and codes with longer length allocated to gray values with smaller frequency, the gray value coding length of each possible length group is calculated, and a specific calculation formula is as follows:
in the method, in the process of the invention,gray value encoded lengths representing a set of possible lengths, s1 and s2 representing two positive integers, respectively, constituting the set of possible lengths,/o>The frequency number of the j-th gray value after the sorting is represented, and N represents the kinds and the numbers of all gray values in the data sequence.
(2) The run-length codes of all possible length groups are calculated.
It should be noted that, in order to make the encoding results of two different encoding lengths have decodability, two encoding lengths in the encoding results need to be alternately present; in order to make two kinds of encoding lengths alternate in the encoding result, the present embodiment represents the data having the same encoding length without the alternate occurrence, that is, consecutive encoding lengths, by a run length.
Specifically, the types of all kinds of gray values obtained according to the possible length groups are specifically: front after sequencingThe type of the gradation value is marked as a first type, the types of all the remaining gradation values are marked as a second type, s1 represents a positive integer constituting a possible length group; the sequence formed by the gray value types corresponding to each data in the data sequence according to the sequence is marked as a type sequence of a possible length group; run Cheng Bian a sequence of types for a set of possible lengthsThe code obtains a run-length encoding result of a type sequence of possible length groups, the run-length encoding result of the type sequence comprising a type and a run-length.
For example: the data sequences are { E, B, G, A, C, F, F, E, A, E, G, A, D, D, G, A, C, D, B }, wherein N=7 gray values are respectively A, B, C, D, E, F, G, the frequencies are respectively 4, 2, 3, 2 and 3, and A, D, E, G, B, C, F are sequenced according to the frequencies; if the possible length groups are s1=2 and s2=3, the first 4 gray values A, D, E, G after sorting are of the first type and the remaining gray values B, C, F are of the second type; the type sequence of the data sequence is { one, two, one, two, one, one, two, one, two }, run-length encoding the type sequence, the result of run-length encoding is "one, two, (2) one, (3) two, (9) one, two," where "one" represents a first type, "two" represents a second type, "2", "3" and "9" are run lengths.
It should be noted that, in this embodiment, the run length is represented by the remaining codes, so the number of run lengths that can be represented by the codes is limited, and the number of actual run lengths may be greater than the number of remaining codes, so that, in order to ensure that all run lengths are encoded, for a run length with a longer length, a run length with a shorter length may be represented as a run length with a longer length. For example: when the possible length groups are s1=2 and s2=3 and n=7, the remainderThe seed code may be used to code the shorter run lengths 1 to 5, and for the longer run length 9, the shorter run lengths 1 to 5 may be used to represent, in order to minimize the code result, the longer run length 9 needs to be split into as few as possible shorter run lengths, and the longest run length 5 of the longest shorter run lengths is used to represent, based on this, the longest run code length of the possible length group.
Further, according to the run length in the run-length coding result of the type sequence, the run-length coding length of the possible length group is calculated, and a specific calculation formula is as follows:
in the method, in the process of the invention,representing the run-length of a set of possible lengths, M representing the number of run-lengths in the run-length result of a sequence of types of the set of possible lengths, s1 and s2 representing the two positive integers constituting the set of possible lengths, respectively, N representing the number of kinds of all gray values in the data sequence,/representing the division quotient,>representing a round up->The i-th run length in the run-length coding result of the type sequence representing the set of possible lengths.
(3) And obtaining a first length, a second length and a longest run length corresponding to the target length group according to the gray value coding lengths and the run coding lengths of all the possible length groups.
Specifically, the sum of the gray value coding length and the run coding length of the possible length group is recorded as the total coding length of the possible length group; taking the possible length group with the smallest total coding length as a target length group, respectively marking two positive integers forming the target length group as a first length S1 and a second length S2, andlet as the longest run length Y2, let 1 as the shortest run length Y1.
S003, distributing codes to all gray values and run lengths according to the first length and the second length corresponding to the target length group and the longest run length to obtain a code table.
In order to maximize the compression efficiency of the encoding result of the image encoding, the encoding table is obtained according to the principle of encoding the shorter the length allocated to the gradation value with the larger frequency, encoding the longer the length allocated to the gradation value with the smaller frequency, and allocating the remaining encoding to the run length.
Specifically, give the front after sequencingThe number of gray values is allocated to binary numbers with the length equal to the first length, namely, binary numbers with the length equal to the first length are used as the front +.>Encoding of the gray values, s1 representing a positive integer constituting a set of possible lengths; assigning binary numbers with the length equal to the second length to all the remaining gray values, namely taking the binary numbers with the length equal to the second length as codes of all the remaining gray values; assigning the remaining binary number having a length equal to the second length to all run lengths between the shortest run length and the longest run length; all gray values and run-length codes constitute a code table.
S004, coding the data sequence according to the coding table to obtain a coding result of the data sequence, and decoding the coding result of the data sequence according to the coding table.
(1) And encoding the data sequence according to the encoding table to obtain an encoding result of the data sequence.
Specifically, the type sequence of the target length group is marked as a target type sequence, the same and adjacent types in the target type sequence are divided into a plurality of sub-type sequences, and the data sequence is divided into a plurality of sub-data sequences according to the division method of the sub-type sequences.
Further, the sub data sequence is divided twice to obtain a target sub data sequence, which specifically comprises the following steps: for the sub data sequence with the length more than or equal to 2, if the type of the gray value corresponding to the data in the sub data sequence is the first type, dividing the sub data sequence into a sub data sequence with the length equal to the shortest run length Y1, a plurality of sub data sequences with the length equal to the longest run length Y2 and a sub data sequence with the length less than the longest run length Y2; if the types of the gray values corresponding to the data in the sub data sequence are the second type, the sub data sequence is divided into a plurality of sub data sequences with the length equal to the longest run length Y2 and a sub data sequence with the length smaller than the longest run length Y2.
For example: for data sequences { E, B, G, A, C, F, F, E, A, E, G, A, D, D, G, A, C, D, B }, the obtained target length groups are S1=2 and S2=3, the target type sequence is { one, two, one, two, one, one, first, second, first, second }, divided into 8 subtype sequences of: { one }, { two }, { one, one }, { two, two, { one, one of the first, second, one }, { two }, { one }, and { two }, dividing the data sequence into 8 sub-data sequences according to a division method of the subtype sequence, wherein the sub-data sequences are respectively as follows: { E }, { B }, { G, A }, { C, F, F }, { E, A, E, G, A, D, D, G, A }, { C }, { D }, { B }; when the sub data sequence is divided twice, the sub data sequence { G, A } is divided into two sub data sequences { G } and { A }, and the sub data sequence { E, A, E, G, A, D, D, G, A } is divided into three sub data sequences { E }, { A, E, G, A, D } and { D, G, A }; the obtained target sub-data sequences are respectively: { E }, { B }, { G }, { A }, { C, F, F }, { E }, { A, E, G, A, D }, { D, G, A }, { C }, { D }, and { B }.
Further, a stream Cheng Chengdu of the target sub-data sequence is obtained, specifically: for any one target sub-data sequence, if the length of the target sub-data sequence is greater than 1, or the length of the target sub-data sequence is equal to 1 and the type of the gray value corresponding to the data in the target sub-data sequence is the same as the type of the gray value corresponding to the data in the previous target sub-data sequence of the target sub-data sequence, the length of the target sub-data sequence is taken as the run length of the target sub-data sequence.
Further, an identifier of a run length of each target sub-data sequence having the run length is obtained, specifically, 0 is taken as a first identifier and 1 is taken as a second identifier; the identifier of the run length of the target sub data sequence is a first identifier if the type of the gray value corresponding to the data in the target sub data sequence is a first type, and is a second identifier if the type of the gray value corresponding to the data in the target sub data sequence is a second type.
Further, all target sub-data sequences are encoded according to the encoding table, and a sequence consisting of a run length encoding result, a run length identifier and an encoding result of each data of each target sub-data sequence is recorded as an encoding result of the target sub-data sequence; and recording the sequence formed by the coding results of all the target sub-data sequences according to the sequence as the coding result of the data sequence.
For example, the target sub data sequence { E }, { B }, { G }, { A }, { C, F, F }, { E }, { A, E, G, A, D }, { D, G, A }, { C }, { D }, { B }, the target sub data sequence { A }, { C, F, F }, { A, E, G, A, D }, { D, G, A } are each the target sub data sequence having a run length, the run length of the target sub data sequence { A } is 1, the run length of the target sub data sequence { C, F, F } is 3, the run length of the target sub data sequence { A, E, G, A, D } is 5, the run length of the target sub data sequence { D, G, A } is a first identifier, the run length of the target sub data sequence { D, G, A } is 3, and the first run length of the target sub data sequence { A, F, F } is 3.
Referring to FIG. 2, a schematic diagram of an encoding table is shown; all target sub-data sequences are encoded according to the encoding table, and the encoding results of all target sub-data sequences are {10}, {000}, {11}, {011,0,00}, {101,1,001,010,010} {10}, {111,0,00,10,11,00,01}, {101,0,01,11,00}, {001}, {01}, and {000}, respectively.
(2) Decoding the encoding result of the data sequence according to the encoding table.
And decoding the coding result of the data sequence according to the coding table, wherein in the decoding process, the codes of the first length and the second length are alternately appeared, and if the decoding result of the previous code is the run length, the subsequent codes with the same coding length are indicated as the continuous run length codes.
The invention encodes the sequence by setting two different encoding lengths, so that the average encoding length can not be an integer, and the compression efficiency of the encoding result of the image encoding can be maximized.
The foregoing description of the preferred embodiments of the invention is not intended to be limiting, but rather is intended to cover all modifications, equivalents, alternatives, and improvements that fall within the spirit and scope of the invention.

Claims (5)

1. The gastrointestinal medical image communication transmission method based on the 5G technology is characterized by comprising the following steps of:
converting the gastrointestinal image into a data sequence to obtain all kinds of gray values;
calculating gray value coding lengths of all possible length groups according to the frequency of all gray values, calculating run coding lengths of all possible length groups according to the run coding result of the type sequence, and obtaining a first length, a second length and the longest run length corresponding to the target length group according to the gray value coding lengths and the run coding lengths of all possible length groups;
distributing codes to all gray values and run lengths according to the first length, the second length and the longest run length corresponding to the target length group to obtain a code table;
coding the data sequence according to the coding table to obtain a coding result of the data sequence;
the method for acquiring all the possible length groups specifically comprises the following steps:
will satisfyAnd->Is marked as a possible length group (s 1, s 2), N represents the variety number of all gray values in the data sequence;
the calculating of the gray value coding lengths of all possible length groups comprises the following specific steps:
counting the frequency of each gray value in the data sequence, and arranging all gray values according to the sequence from big to small; according to the principle of codes with shorter length allocated to gray values with larger frequency and codes with longer length allocated to gray values with smaller frequency, the gray value coding length of each possible length group is calculated, and a specific calculation formula is as follows:
in the method, in the process of the invention,gray value coding length representing the set of possible lengths, for example>A frequency number representing the j-th gray value after sorting;
the method for acquiring the run-length coding result of the type sequence comprises the following steps:
front after sequencingThe type of the seed gray value is marked as a first type, and the types of all the remaining seed gray values are marked as a second type; the sequence formed by the gray value types corresponding to each data in the data sequence according to the sequence is marked as a type sequence of a possible length group; performing run-length coding on the type sequence of the possible length group to obtain a run-length coding result of the type sequence of the possible length group, wherein the run-length coding result of the type sequence comprises a type and a run-length;
the calculation of the run-length codes of all possible length groups comprises the following specific steps:
in the method, in the process of the invention,representing the run-length of a set of possible lengths, M representing the number of run-lengths in the run-length result of a run-length coding of a sequence of types of the set of possible lengths,/representing the division quotient,/and->Representing a round up->An i-th run length in a run-length encoding result representing a type sequence of a possible length group;
the method for obtaining the coding table comprises the following specific steps:
according to the front after sequencingA binary number having a gray value assignment length equal to the first length; assigning binary numbers with lengths equal to the second length to all the remaining gray values; assigning the remaining binary number having a length equal to the second length to all run lengths between the shortest run length and the longest run length; all gray values and run-length codes constitute a code table.
2. The method for transmitting gastrointestinal medical image communication based on 5G technology according to claim 1, wherein the step of obtaining the encoding result of the data sequence comprises the following specific steps:
the type sequence of the target length group is marked as a target type sequence, the same and adjacent types in the target type sequence are divided into a subtype sequence, and the data sequence is divided into a plurality of subtype data sequences according to the division method of the subtype sequence;
performing secondary division on the sub-data sequence to obtain a target sub-data sequence; obtaining a run Cheng Chengdu of target sub-data sequences; obtaining a run-length identifier for each target sub-data sequence having a run-length;
coding all target sub-data sequences according to the coding table, and marking a sequence consisting of a coding result of the run length of each target sub-data sequence, an identifier of the run length and a coding result of each data as a coding result of the target sub-data sequence; and recording the sequence formed by the coding results of all the target sub-data sequences according to the sequence as the coding result of the data sequence.
3. The method for transmitting gastrointestinal medical image communication based on 5G technology according to claim 2, wherein the obtaining the target sub-data sequence comprises the following specific steps:
for the sub data sequence with the length more than or equal to 2, if the type of the gray value corresponding to the data in the sub data sequence is the first type, dividing the sub data sequence into a sub data sequence with the length equal to the shortest run length Y1, a plurality of sub data sequences with the length equal to the longest run length Y2 and a sub data sequence with the length less than the longest run length Y2; if the types of the gray values corresponding to the data in the sub data sequence are the second type, the sub data sequence is divided into a plurality of sub data sequences with the length equal to the longest run length Y2 and a sub data sequence with the length smaller than the longest run length Y2.
4. The method for transmitting gastrointestinal medical image communication based on 5G technology according to claim 2, wherein the step of obtaining the degree of run of the target sub-data sequence comprises the following specific steps:
for any one target sub-data sequence, if the length of the target sub-data sequence is greater than 1, or the length of the target sub-data sequence is equal to 1 and the type of the gray value corresponding to the data in the target sub-data sequence is the same as the type of the gray value corresponding to the data in the previous target sub-data sequence of the target sub-data sequence, the length of the target sub-data sequence is taken as the run length of the target sub-data sequence.
5. The method for transmitting gastrointestinal medical image communication based on 5G technology according to claim 2, wherein the step of obtaining the run-length identifier of each target sub-data sequence having a run-length comprises the following specific steps:
taking 0 as a first identifier and taking 1 as a second identifier; the identifier of the run length of the target sub data sequence is a first identifier if the type of the gray value corresponding to the data in the target sub data sequence is a first type, and is a second identifier if the type of the gray value corresponding to the data in the target sub data sequence is a second type.
CN202310973100.1A 2023-08-04 2023-08-04 Gastrointestinal medical image communication transmission method based on 5G technology Active CN116708845B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310973100.1A CN116708845B (en) 2023-08-04 2023-08-04 Gastrointestinal medical image communication transmission method based on 5G technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310973100.1A CN116708845B (en) 2023-08-04 2023-08-04 Gastrointestinal medical image communication transmission method based on 5G technology

Publications (2)

Publication Number Publication Date
CN116708845A true CN116708845A (en) 2023-09-05
CN116708845B CN116708845B (en) 2023-10-31

Family

ID=87839622

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310973100.1A Active CN116708845B (en) 2023-08-04 2023-08-04 Gastrointestinal medical image communication transmission method based on 5G technology

Country Status (1)

Country Link
CN (1) CN116708845B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117437310A (en) * 2023-12-21 2024-01-23 天津市第五中心医院 Image compression method for organ-like culture

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101132530A (en) * 2006-08-22 2008-02-27 中兴通讯股份有限公司 Method for implementing built-in image compression based on run-length coding
WO2012116086A1 (en) * 2011-02-24 2012-08-30 A9.Com, Inc. Improved encoding and decoding of variable-length data with group formats
CN103746706A (en) * 2014-01-01 2014-04-23 安庆师范学院 Testing data compressing and decompressing method on basis of double-run-length alternate coding
CN108737825A (en) * 2017-04-13 2018-11-02 腾讯科技(深圳)有限公司 Method for coding video data, device, computer equipment and storage medium
WO2021031877A1 (en) * 2019-08-19 2021-02-25 华为技术有限公司 Methods and apparatus for image coding and decoding, and chip
CN114614833A (en) * 2022-03-16 2022-06-10 程一飞 Test data compression and decompression method for self-adaptive run-length coding

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101132530A (en) * 2006-08-22 2008-02-27 中兴通讯股份有限公司 Method for implementing built-in image compression based on run-length coding
WO2012116086A1 (en) * 2011-02-24 2012-08-30 A9.Com, Inc. Improved encoding and decoding of variable-length data with group formats
CN103746706A (en) * 2014-01-01 2014-04-23 安庆师范学院 Testing data compressing and decompressing method on basis of double-run-length alternate coding
CN108737825A (en) * 2017-04-13 2018-11-02 腾讯科技(深圳)有限公司 Method for coding video data, device, computer equipment and storage medium
WO2021031877A1 (en) * 2019-08-19 2021-02-25 华为技术有限公司 Methods and apparatus for image coding and decoding, and chip
CN114614833A (en) * 2022-03-16 2022-06-10 程一飞 Test data compression and decompression method for self-adaptive run-length coding

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
H. A. ELSAYED,: "Burrows-Wheeler Transform and combination of Move-to-Front coding and Run Length Encoding for lossless audio coding", 《2014 9TH INTERNATIONAL CONFERENCE ON COMPUTER ENGINEERING & SYSTEMS (ICCES)》 *
高健;饶;孙瑞鹏;: "二元序列游长多次缩减的无损压缩编码方法", 计算机技术与发展, no. 06 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117437310A (en) * 2023-12-21 2024-01-23 天津市第五中心医院 Image compression method for organ-like culture
CN117437310B (en) * 2023-12-21 2024-02-27 天津市第五中心医院 Image compression method for organ-like culture

Also Published As

Publication number Publication date
CN116708845B (en) 2023-10-31

Similar Documents

Publication Publication Date Title
CN116708845B (en) Gastrointestinal medical image communication transmission method based on 5G technology
US6771824B1 (en) Adaptive variable length decoding method
US7373005B2 (en) Compression system for integrated sensor devices
CN116723337B (en) HDMI high definition data optimized transmission method and system
CN1155221C (en) Method and system for encoding and decoding method and system
CN1625893A (en) Compression of palettized color images with variable length color codes
US5694128A (en) Tree structured binary arithmetic coder
CN116405574B (en) Remote medical image optimization communication method and system
CN114900193A (en) Adaptive Huffman coding system and method
CN102014283A (en) First-order difference prefix notation coding method for lossless compression of image data
CN116074514B (en) Secure communication cloud broadcasting system for multimedia data
CN112838868B (en) 9B/10B coding and decoding method
US8311090B2 (en) Method for encoding a first and a second data word
CN115474044B (en) Bayer domain image lossy compression method
US5708431A (en) Method for compression coding of potentially unbounded integers
US20020001414A1 (en) System for building a data compression encoder
JP3431368B2 (en) Variable length encoding / decoding method and variable length encoding / decoding device
CN115037941A (en) Intelligent bracelet picture compression storage method for improving compression rate
CN116208667B (en) Variable-length high-compression bit message coding and decoding method
CN116684003B (en) Quantum communication-based railway line air-ground comprehensive monitoring method and system
JPS6364948B2 (en)
JP5501014B2 (en) Information processing apparatus, information processing method, program, and storage medium
JPS6276931A (en) Data compressor
CN1852390A (en) Method for realizing hand-wirte short-message for mobile communication terminal and its terminal
CN116208667A (en) Variable-length high-compression bit message coding and decoding method

Legal Events

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