CN101500165A - Encoding and decoding method and apparatus for displaying line pattern overlapped onto image - Google Patents
Encoding and decoding method and apparatus for displaying line pattern overlapped onto image Download PDFInfo
- Publication number
- CN101500165A CN101500165A CNA2009100781876A CN200910078187A CN101500165A CN 101500165 A CN101500165 A CN 101500165A CN A2009100781876 A CNA2009100781876 A CN A2009100781876A CN 200910078187 A CN200910078187 A CN 200910078187A CN 101500165 A CN101500165 A CN 101500165A
- Authority
- CN
- China
- Prior art keywords
- pixel
- line image
- image
- coded data
- offset direction
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 30
- 230000015572 biosynthetic process Effects 0.000 claims description 10
- 238000004040 coloring Methods 0.000 claims description 10
- 230000011218 segmentation Effects 0.000 abstract 1
- 238000012544 monitoring process Methods 0.000 description 6
- 230000005540 biological transmission Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 240000007594 Oryza sativa Species 0.000 description 1
- 235000007164 Oryza sativa Nutrition 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000009977 dual effect Effects 0.000 description 1
- 239000012467 final product Substances 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
- 235000009566 rice Nutrition 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000003860 storage Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Landscapes
- Compression Of Band Width Or Redundancy In Fax (AREA)
Abstract
The embodiment of the invention provides a method for encoding and decoding of a pattern of lines superposed and displayed on an image and a device thereof, which are used for reducing encoding data amount of the pattern of lines. According to the first technical proposal provided by the embodiment of the invention, the position of a pixel is marked in accordance with the offset direction between adjacent pixels on the pattern of lines, thus being capable of saving the encoding data amount of lines. According to the second technical proposal provided by the embodiment of the invention, linear segmentations on the pattern of lines are taken as a whole and encoded, thus further saving the encoding data amount.
Description
Technical field
The present invention relates to the communication technology, particularly a kind of stack is presented at the line image encoding and decoding technique on the image.
Background technology
Along with the progress in epoch, living standards of the people improve constantly, and safety becomes the topic that people are concerned about more.Utilize technology such as whether situation, clerk counter or the production line work of Active Eyes monitoring household safety, traffic intersection is normal to use and give birth in a large number.
The automatic processing of video monitoring system and intellectuality are the inevitable demands of of present watch-dog development.The simulation monitoring video that existing all kinds of video monitoring system is taken with static camera is input, detect and follow the tracks of the moving object in the scene, analyze the movement locus of moving object in the scene, judge according to movement locus whether the behavior of moving object has danger.
In said process, line image information such as moving object track, moving object housing often need coding transmission, and stack is presented on the image of monitored background, in addition, also need be in the information such as image overlay display text of monitored background, these content displayed that superpose on image itself are exactly a line image, for example movement locus, perhaps can be broken down into a plurality of line images, for example housing or literal etc.Each line image can carry out remote transmission behind the coding separately.If there are a plurality of stacks to be presented at content on the image, then distinguish with different colours, the line image color of each displaying contents that superposes is inequality, after the line image of each content of decoding drafting is also painted, forms a complete stack displaying contents with the line image of color.
As shown in Figure 1, with a line image is example, if monitored background image comprises 6*6 pixel, line image comprises 7 pixels, lay respectively on 1~7 pixel position that wherein heavy line identified, in the existing line image coding techniques, need compile a sign indicating number, comprise position coordinates (x for each pixel of 1~7 pixel, y), if a plurality of tracks, then also may comprise the color indication information of different tracks, in the prior art, size and color category according to monitored background image, (x y) is (5,5) to the maximum to position coordinates, compile corresponding color sign indicating number respectively for each pixel, the x value, y value and color indication information utilize 3 bits to indicate respectively, and each pixel needs the 3+3+3=9 bit altogether, and line image shown in Figure 1 needs 9 * 7=63 bit altogether.And in the prior art general pattern much larger than 6*6, common assigned position coordinate (x, y) and the color indication information take 4,4 and 3 bytes respectively, each pixel needs 4+4+3=11 byte altogether like this, line image shown in Figure 1 needs 11 * 7=77 byte, i.e. 77 * 8=616 bit altogether.It is relevant with color category that the color indication information takies byte, color category after a little while, the byte that the color indication information takies is few.Simple this track of expression does not need 7=56 byte representation of (4+4) * when not considering the color sign indicating number.
Owing to may exist a large amount of stacks to be presented at content on the image, each stack be presented on the image in have and can be decomposed into a plurality of line images, consider the storage and the transmission of stack displaying contents coded data, how reducing amount of coded data then is the major issue that needs solution to economize on resources.
Summary of the invention
Decoding method and device that the embodiment of the invention provides a kind of stack to be presented at the line image on the image are in order to reduce the amount of coded data of stack display message.
A kind of stack is presented at the decoding method of the line image on the image, comprising:
Determine the absolute address` of initial pixel in image of described line image;
According to pixel putting in order on described line image, determine initial pixel other each pixel afterwards in turn, the offset direction of going up a neighbor pixel relatively;
According to pixel putting in order on described line image, the offset direction indication information of the absolute address` of initial pixel correspondence, other each pixel encoded respectively forms the line image coded data.
Further described method also comprises:
Obtain described line image coded data, determine the original position of line image in image according to the absolute coding data of initial pixel correspondence wherein, and draw described initial pixel;
According to the offset direction indication information coded data of each pixel correspondence, determine other each pixel position in image on the line image, and draw other each pixel.
Further described method also comprises:
Before coding, also obtain the colouring information of described line image, also comprise the coded data of color indication information in the described line image coded data; And
Also therefrom obtain described color indication information coded data when obtaining described line image coded data, and when on image, drawing line image, carry out painted to line image according to indicated color.
A kind of stack is presented at the coding and decoding device of the line image on the image, comprising:
Be used for determining the unit of the initial pixel of described line image in the absolute address` of image;
Be used for according to pixel putting in order on described line image, determine initial pixel other each pixel afterwards in turn, go up the unit of the offset direction of a neighbor pixel relatively;
Be used for according to pixel putting in order on described line image, the offset direction indication information of the absolute address` of initial pixel correspondence, other each pixel is encoded respectively forms the unit of line image coded data.
Further described device also comprises:
Be used to obtain described line image coded data, determine the original position of line image in image according to the absolute coding data of initial pixel correspondence wherein, and draw the unit of described initial pixel;
Be used for offset direction indication information coded data, determine other each pixel position in image on the line image, and draw the unit of other each pixel according to each pixel correspondence.
A kind of stack is presented at the decoding method of the line image on the image, comprising:
Determine the absolute address` of the initial pixel of described line image in image;
When having the straight segments of pixel formation continuous at least two same offset directions on the described line image, determine the offset direction of the adjacent relatively last pixel of first pixel of each straight segments, and straight segments length;
For other remains each pixel on the described line image, determine the offset direction of going up a neighbor pixel relatively;
According to each pixel putting in order on line image, offset direction indication information and straight segments length with the adjacent relatively last pixel of first pixel of the absolute address` of initial pixel correspondence, each straight segments, and other offset direction indication information that remains each pixel correspondence is encoded formation line image coded data respectively.
Further described method also comprises:
Obtain described line image coded data coded data, determine the original position of line image in image, and draw this initial pixel according to the absolute address` of initial pixel correspondence wherein;
According to the offset direction indication information and the straight segments length coding data of the adjacent relatively last pixel of first pixel of each straight segments, determine position and the length of straight segments in image on each line image, and draw each straight segments; And
According to other offset direction indication information coded data that remains each pixel correspondence, determine that other remains the position of each pixel in image on the line image, and draw other and remain each pixel.
Preferable, described offset direction is meant: horizontal direction or vertical direction.
A kind of stack is presented at the coding and decoding device of the line image on the image, comprising:
Be used for determining the unit of the initial pixel of described line image in the absolute address` of image;
Be used for when having the straight segments of pixel formation continuous at least two same offset directions on the described line image, determining the offset direction of the adjacent relatively last pixel of first pixel of each straight segments, and the unit of straight segments length;
Be used for for other remains each pixel on the described line image definite unit of going up the offset direction of a neighbor pixel relatively;
Be used for according to each pixel putting in order on line image, offset direction indication information and straight segments length with the adjacent relatively last pixel of first pixel of the absolute address` of initial pixel correspondence, each straight segments, and other offset direction indication information that remains each pixel correspondence is encoded the unit of formation line image coded data respectively.
Further described device also comprises:
Be used to obtain described line image coded data coded data, determine the original position of line image in image according to the absolute address` of initial pixel correspondence wherein, and draw the unit of this initial pixel;
Be used for offset direction indication information and straight segments length coding data according to the adjacent relatively last pixel of first pixel of each straight segments, determine position and the length of straight segments in image on each line image, and draw the unit of each straight segments; And
Be used for the offset direction indication information coded data that remains each pixel correspondence according to other, determine that other remains the position of each pixel in image on the line image, and draw the unit that other remains each pixel.
According to first kind of technical scheme that the embodiment of the invention provides, according to the position of the sign of the offset direction between neighbor pixel pixel on the line image, can save the amount of coded data of line image, thereby reduce the amount of coded data of stack display message.The second kind of technical scheme that provides according to the embodiment of the invention, after straight segments encoded as a whole, the amount of coded data of further having saved line image, thus further reduced the amount of coded data of stack display message.
Description of drawings
Fig. 1 is presented at the line image schematic diagram on the image for superposeing;
Fig. 2 is defined as 8 kinds for the embodiment of the invention with the direction that relatively moves between adjacent two pixels of line image, and the principle schematic of indicating with a0~a7 respectively;
First kind of stack that Fig. 3 and Fig. 4 provide for the embodiment of the invention is presented at the decoding method schematic flow sheet of the line image on the image;
Fig. 6 is defined as 6 kinds for the embodiment of the invention with the direction that relatively moves between adjacent two pixels of line image, and the principle schematic of indicating with a0~a5 respectively;
Stack is presented at the decoding method schematic flow sheet of the line image on the image in second kind of video monitoring system that Fig. 5 and Fig. 7 provide for the embodiment of the invention.
Embodiment
The embodiment of the invention is for reducing in the transmission monitor system, the amount of coded data of stack display message on rest image or the dynamic video image, as shown in Figure 2, for a line image, the direction that relatively moves between adjacent two pixels is defined as 8 kinds, it is upper right to indicate next pixel of adjacent two pixels to go up a pixel X relatively with a0~a7 respectively, vertically upward, upper left, the lower-left, vertically downward, the bottom right level left and level offset direction to the right, in first kind of line image decoding method that the embodiment of the invention provides, encode separately for each pixel in the line image, wherein:
Initial pixel positions with the absolute position in image, and corresponding coded data is its absolute position;
Other each pixel, with relatively on it offset direction of a pixel position, the corresponding codes data are its offset direction indication information, for example when upper left skew, the offset direction indication information is 2.
According to above-mentioned principle, the information that stack shows can be able to be decomposed into a plurality of line images, for each line image, the first kind of decoding method that provides according to the embodiment of the invention carries out encoding and decoding, and cataloged procedure comprises the steps: as shown in Figure 3
S301, determine the absolute address` of the initial pixel of line image in image;
Wherein, the initial pixel of line image can be the pixel of the arbitrary end of line image.
S302, according to pixel putting in order on line image, determine other each pixel after the initial pixel in turn, the offset direction of going up a neighbor pixel relatively;
For example stack is presented at circular trace or the object frame on the image; can be with circular trace as a circular line image; perhaps with the object frame as the polygon frame; with arbitrary pixel of circular line image or polygon frame as initial pixel, and can be according to determining putting in order of other pixels clockwise or counterclockwise.Certainly the polygon frame also can be divided into a plurality of different string diagram pictures, each line image absolute coding with the break of frame.
For example stack is presented at literal on the image again, can whether continuously literal be split as a plurality of line images according to the stroke of literal, concrete example such as mouth word can be split as one or more line images according to above-mentioned dual mode, and the rice word can be split as four line images etc.Concrete method for splitting is varied, and those skilled in the art can select the method for splitting that is suitable for as required, describe in detail for example no longer one by one here.
S303, according to pixel putting in order on line image, the absolute address` of initial pixel correspondence, the offset direction indication information of other each pixel are encoded respectively, and form the coded data of line image.
If also need to transmit the color of line image, then before coding, also obtain the colouring information of line image, and in when coding coded data with color indication information coded combination inlet wire bar pattern.
For a line image shown in Figure 1, the information that comprises in the coded data is as shown in table 1 below:
Table 1.
The coded data serial number | The pixel numbering | New track | Absolute address` or offset direction indication information | The color |
1 | 1 | Be | 18 (absolute address`) | |
2 | 2 | Not | |
|
3 | 3 | Not | |
|
4 | 4 | Not | a1 | (nothing) |
5 | 5 | Not | a0 | (nothing) |
6 | 6 | Not | a0 | (nothing) |
7 | 7 | Not | a7 |
Wherein, the absolute address` of initial pixel is the positional information of initial pixel in image, and is for example shown in Figure 1, and initial pixel is positioned at the 4th of image and ranked first on the pixel position, if from 0 open numbering, then is the 18th pixel.Like this, according to inventive embodiments one, need to compile 7 sign indicating numbers, first sign indicating number is according to the image size, the image of 6*6 size for example still, absolute address` is 36 to the maximum, the binary code representation that then needs 6 bits at most, if transmit a plurality of tracks simultaneously, then each track adds track initial sign (showing whether be new track) the 1st sign indicating number needs 7 bits of 1 bit, the track initial sign of 1 bit of all the other each yard needs and the relative address coding (a0 is to a7) of 3 bits amount to and need 4 bits, and then this track needs the 7+4*6=31 bit, and promptly maximum 4 bytes are represented; If the way that the color of further considering then this track only need 1 color coding all to carry color value far above each point of prior art.As seen compare with prior art, saved amount of coded data greatly.
As shown in Figure 4, after the coded data that receives line image, according to information wherein, recovery table 1, and then can in monitoring image, draw line image according to table 1, specifically comprise the steps:
S401, received code data according to the absolute coding data of initial pixel correspondence in the coded data, are determined the original position of line image in image, and are drawn initial pixel;
S402, according to the offset direction indication information coded data of each pixel correspondence, determine other each pixel position in image on the line image, and draw other each pixel.
Also comprise color indication information coded data if receive coded data, then also therefrom obtain the colouring information coded data of line image, and when on image, drawing line image, carry out painted to line image according to colouring information.
The embodiment of the invention also provides a kind of stack to be presented at the coding and decoding device of the line image on the image, comprising:
Be used for determining the unit of the initial pixel of described line image in the absolute address` of image;
Be used for according to pixel putting in order on described line image, determine initial pixel other each pixel afterwards in turn, go up the unit of the offset direction of a neighbor pixel relatively;
Be used for according to pixel putting in order on described line image, the offset direction indication information of the absolute address` of initial pixel correspondence, other each pixel is encoded respectively forms the unit of line image coded data.
Further, for realizing corresponding decoding, coding and decoding device also comprises:
Be used to obtain described line image coded data, determine the original position of line image in image according to the absolute coding data of initial pixel correspondence wherein, and draw the unit of described initial pixel;
Be used for offset direction indication information coded data, determine other each pixel position in image on the line image, and draw the unit of other each pixel according to each pixel correspondence.
As seen, the first kind of technical scheme that provides according to the embodiment of the invention, position according to the sign of the offset direction between neighbor pixel pixel on the line image, can save the amount of coded data of line image, if coded data need be transmitted between different function units, can also reduce volume of transmitted data, to save transfer resource.
Further for saving the amount of coded data of line image, the line image straight segments that the embodiment of the invention can also form a plurality of pixels continuous on the same moving direction, look as a whole encode, pixel 1,2 and 3 for example shown in Figure 1, length with the absolute position of pixel 1, offset direction indication and straight segments, just pixel 1,2 and 3 can be located simultaneously, in like manner, also binary encoding can be carried out for pixel 4,5 and 6 another straight segments that form.
As shown in Figure 5, second kind of stack that the embodiment of the invention provides is presented at the line image decoding method on the image, comprises the steps:
S501, determine the absolute address` of the initial pixel of line image in image;
When S502, continuous pixel forms on having at least two same offset directions on the line image straight segments, determine the offset direction of the adjacent relatively last pixel of first pixel of each straight segments, and straight segments length;
S503, for other remains each pixel on the line image, determine the offset direction go up a neighbor pixel relatively;
S504, according to each pixel putting in order on line image, offset direction indication information and straight segments length with the adjacent relatively last pixel of first pixel of the absolute address` of initial pixel correspondence, straight segments, and the offset direction indication information of other each pixel correspondence encodes respectively, and forms coded data.
If also need to transmit the color of line image, then before coding, also obtain the colouring information of line image, and in colouring information being encoded into coded data in when coding.
Shown in following table 2-1, second kind of technical scheme according to the present invention, pixel 1,2 and the 3 horizontal direction straight segments that form, pixel 4,5 and 6 another straight segments that form are carried out binary encoding respectively, and amounting to needs 3 sign indicating numbers of volume to get final product.
Table 2-1
The coded data serial number | The pixel numbering | Whether new track | Absolute address` or offset direction | Whether continuous | Continuous direction | Continuous length | The color |
1 | 1 | Be | 18 (absolute address`) | Be | |
3 | |
2 | |||||||
3 | |||||||
2 | 4 | Not | a1 | Be | a0 | 3 | (nothing) |
5 | |||||||
6 | |||||||
3 | 7 | Not | a7 | Not | (nothing) | (nothing) | (nothing) |
Being example with line image shown in Figure 1 still, is that example is elaborated with the straight segments binary encoding on the horizontal direction only.Wherein as shown in Figure 6, can utilize the continuous indication information of level whether and whether be indication information, the offset direction indication information is reduced to 6, further reduce the byte number of offset direction indication information to right.Cataloged procedure such as following table 2-2 like this:
Table 2-2.
The coded data serial number | The pixel numbering | Whether new track | Absolute address` or offset direction | Whether level is continuous | Right | Horizontal continuous length | The color |
1 | 1 | Be | 18 (absolute address`) | Be | Be | 3 | |
2 | |||||||
3 | |||||||
2 | 4 | Not | a1 | Not | (nothing) | (nothing) | |
3 | 5 | Not | a0 | Not | (nothing) | (nothing) | |
4 | 6 | Not | a0 | Be | Be | 2 | (nothing) |
7 |
Like this, 7 points have only 4 codings.Adopt each coding of block code to comprise: the origin identification of 1 bit, geocoding: 3 bits (new track 6 bits), the continuous sign of 1 bit; 1 bit direction signs (consecutive hours existence), 3 bit continuous lengths signs (consecutive hours existence); 12 bits of color sign indicating number;
First sign indicating number of this section track comprises: 1 (origin identification)+6 (geocoding)+1 (continuously)+1 (put to)+3 (length)+(3 byte) color sign indicating number, 36 bits altogether;
The second, three sign indicating number: 1 (origin identification)+3 (geocoding)+1 (continuously) amount to 5*2=10 bit;
The 4th sign indicating number: 1 (origin identification)+3 (geocoding)+1 (continuously)+1 (put to)+3 (length) amount to 9 bits;
Since be the color sign indicating number indication of carrying in first yard be the color of bargraphs, second and third and four sign indicating numbers do not need to carry respectively the color of 12 bits again, four sign indicating numbers add up to: 36+10+9=55 bit; Both maximum 7 bytes;
Coding method of the prior art relatively, the minimum raising of efficient 77/7*100%=1000%.
As shown in Figure 7, Dui Ying decode procedure comprises the steps:
S701, receive the coded data of line image,, determine the original position of line image in image, and draw this initial pixel according to the absolute coding data of initial pixel correspondence wherein;
S702, according to the offset direction indication information and the straight segments length coding data of the adjacent relatively last pixel of first pixel of the straight segments in the coded data, determine position and the length of straight segments in image on the line image, and draw each straight segments; And
S703, remain the offset direction indication information coded data of each pixel correspondence, determine that other remains the position of each pixel in image on the line image, and draw other and remain each pixel according in the coded data other.
Also comprise the color indication information if receive coded data, then also therefrom obtain the colouring information coded data of line image, and when on image, drawing line image, carry out painted to line image according to colouring information.
Be example still, according to each coding and Fig. 6 in the coded data, obtain table 3 during decoding with table 2-2:
Table 3.
Absolute address` is obtained by the relative address of current absolute address` and offset direction correspondence, is (current absolute address`-Tu image width) as a1 position relative address, and a0 is (a current absolute address`-Tu image width+1), and similarly, a5 is (a current absolute address`+figure image width+1)
According to table 3, can conveniently draw line image.
The embodiment of the invention also provides second kind of stack to be presented at line image coding and decoding device on the image, comprising:
Be used for determining that described stack is presented at the initial pixel of line image on the image in the unit of the absolute address` of image;
Be used for when having the straight segments of pixel formation continuous at least two same offset directions on the described line image, determining the offset direction of the adjacent relatively last pixel of first pixel of each straight segments, and the unit of straight segments length;
Be used for for other remains each pixel on the described line image definite unit of going up the offset direction of a neighbor pixel relatively;
Be used for according to each pixel putting in order on line image, offset direction indication information and straight segments length with the adjacent relatively last pixel of first pixel of the absolute address` of initial pixel correspondence, each straight segments, and other offset direction indication information that remains each pixel correspondence is encoded the unit of formation line image coded data respectively.
Further, for realizing corresponding decoding, the line image coding and decoding device that stack is presented on the image also comprises:
Be used to obtain described line image coded data coded data, determine the original position of line image in image according to the absolute address` of initial pixel correspondence wherein, and draw the unit of this initial pixel;
Be used for offset direction indication information and straight segments length coding data according to the adjacent relatively last pixel of first pixel of each straight segments, determine position and the length of straight segments in image on each line image, and draw the unit of each straight segments; And
Be used for the offset direction indication information coded data that remains each pixel correspondence according to other, determine that other remains the position of each pixel in image on the line image, and draw the unit that other remains each pixel.
As seen, the second kind of technical scheme that provides according to the embodiment of the invention after straight segments encoded as a whole, further saved amount of coded data.
Obviously, those skilled in the art can carry out various changes and modification to the embodiment of the invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.
Claims (11)
1, a kind of stack is presented at the decoding method of the line image on the image, it is characterized in that, comprising:
Determine the absolute address` of initial pixel in image of described line image;
According to pixel putting in order on described line image, determine initial pixel other each pixel afterwards in turn, the offset direction of going up a neighbor pixel relatively;
According to pixel putting in order on described line image, the offset direction indication information of the absolute address` of initial pixel correspondence, other each pixel encoded respectively forms the line image coded data.
2, the method for claim 1 is characterized in that, also comprises:
Obtain described line image coded data, determine the original position of line image in image according to the absolute coding data of initial pixel correspondence wherein, and draw described initial pixel;
According to the offset direction indication information coded data of each pixel correspondence, determine other each pixel position in image on the line image, and draw other each pixel.
3, method as claimed in claim 2 is characterized in that, also comprises:
Before coding, also obtain the colouring information of described line image, also comprise the coded data of color indication information in the described line image coded data; And
Also therefrom obtain described color indication information coded data when obtaining described line image coded data, and when on image, drawing line image, carry out painted to line image according to indicated color.
4, a kind of stack is presented at the coding and decoding device of the line image on the image, it is characterized in that, comprising:
Be used for determining the unit of the initial pixel of described line image in the absolute address` of image;
Be used for according to pixel putting in order on described line image, determine initial pixel other each pixel afterwards in turn, go up the unit of the offset direction of a neighbor pixel relatively;
Be used for according to pixel putting in order on described line image, the offset direction indication information of the absolute address` of initial pixel correspondence, other each pixel is encoded respectively forms the unit of line image coded data.
5, device as claimed in claim 4 is characterized in that, also comprises:
Be used to obtain described line image coded data, determine the original position of line image in image according to the absolute coding data of initial pixel correspondence wherein, and draw the unit of described initial pixel;
Be used for offset direction indication information coded data, determine other each pixel position in image on the line image, and draw the unit of other each pixel according to each pixel correspondence.
6, a kind of stack is presented at the decoding method of the line image on the image, it is characterized in that, comprising:
Determine the absolute address` of the initial pixel of described line image in image;
When having the straight segments of pixel formation continuous at least two same offset directions on the described line image, determine the offset direction of the adjacent relatively last pixel of first pixel of each straight segments, and straight segments length;
For other remains each pixel on the described line image, determine the offset direction of going up a neighbor pixel relatively;
According to each pixel putting in order on line image, offset direction indication information and straight segments length with the adjacent relatively last pixel of first pixel of the absolute address` of initial pixel correspondence, each straight segments, and other offset direction indication information that remains each pixel correspondence is encoded formation line image coded data respectively.
7, method as claimed in claim 6 is characterized in that, also comprises:
Obtain described line image coded data coded data, determine the original position of line image in image, and draw this initial pixel according to the absolute address` of initial pixel correspondence wherein;
According to the offset direction indication information and the straight segments length coding data of the adjacent relatively last pixel of first pixel of each straight segments, determine position and the length of straight segments in image on each line image, and draw each straight segments; And
According to other offset direction indication information coded data that remains each pixel correspondence, determine that other remains the position of each pixel in image on the line image, and draw other and remain each pixel.
8, as claim 6 or 7 described methods, it is characterized in that described offset direction is meant: horizontal direction or vertical direction.
9, method as claimed in claim 8 is characterized in that, also comprises:
Before coding, also obtain the colouring information of described line image, also comprise the coded data of color indication information in the described line image coded data; And
Also therefrom obtain described color indication information coded data when obtaining described line image coded data, and when on image, drawing line image, carry out painted to line image according to indicated color.
10, a kind of stack is presented at the coding and decoding device of the line image on the image, it is characterized in that, comprising:
Be used for determining the unit of the initial pixel of described line image in the absolute address` of image;
Be used for when having the straight segments of pixel formation continuous at least two same offset directions on the described line image, determining the offset direction of the adjacent relatively last pixel of first pixel of each straight segments, and the unit of straight segments length;
Be used for for other remains each pixel on the described line image definite unit of going up the offset direction of a neighbor pixel relatively;
Be used for according to each pixel putting in order on line image, offset direction indication information and straight segments length with the adjacent relatively last pixel of first pixel of the absolute address` of initial pixel correspondence, each straight segments, and other offset direction indication information that remains each pixel correspondence is encoded the unit of formation line image coded data respectively.
11, device as claimed in claim 10 is characterized in that, also comprises:
Be used to obtain described line image coded data coded data, determine the original position of line image in image according to the absolute address` of initial pixel correspondence wherein, and draw the unit of this initial pixel;
Be used for offset direction indication information and straight segments length coding data according to the adjacent relatively last pixel of first pixel of each straight segments, determine position and the length of straight segments in image on each line image, and draw the unit of each straight segments; And
Be used for the offset direction indication information coded data that remains each pixel correspondence according to other, determine that other remains the position of each pixel in image on the line image, and draw the unit that other remains each pixel.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2009100781876A CN101500165A (en) | 2009-02-26 | 2009-02-26 | Encoding and decoding method and apparatus for displaying line pattern overlapped onto image |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2009100781876A CN101500165A (en) | 2009-02-26 | 2009-02-26 | Encoding and decoding method and apparatus for displaying line pattern overlapped onto image |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101500165A true CN101500165A (en) | 2009-08-05 |
Family
ID=40947008
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNA2009100781876A Pending CN101500165A (en) | 2009-02-26 | 2009-02-26 | Encoding and decoding method and apparatus for displaying line pattern overlapped onto image |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101500165A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110411446A (en) * | 2018-04-28 | 2019-11-05 | 深圳果力智能科技有限公司 | A kind of paths planning method of robot |
CN112033537A (en) * | 2020-11-05 | 2020-12-04 | 南京诺源医疗器械有限公司 | Spectrum extraction method and device of hyperspectral acquisition system |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1173099A (en) * | 1996-07-09 | 1998-02-11 | 三星电子株式会社 | Contour decoding apparatus |
CN101137056A (en) * | 2007-07-26 | 2008-03-05 | 武汉大学 | Precision self-adapting image area profile coding method |
-
2009
- 2009-02-26 CN CNA2009100781876A patent/CN101500165A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1173099A (en) * | 1996-07-09 | 1998-02-11 | 三星电子株式会社 | Contour decoding apparatus |
CN101137056A (en) * | 2007-07-26 | 2008-03-05 | 武汉大学 | Precision self-adapting image area profile coding method |
Non-Patent Citations (1)
Title |
---|
山静民,陈满儒: "手写汉字的编码压缩技术", 《西北轻工业学院学报》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110411446A (en) * | 2018-04-28 | 2019-11-05 | 深圳果力智能科技有限公司 | A kind of paths planning method of robot |
CN110411446B (en) * | 2018-04-28 | 2023-09-08 | 深圳果力智能科技有限公司 | Path planning method for robot |
CN112033537A (en) * | 2020-11-05 | 2020-12-04 | 南京诺源医疗器械有限公司 | Spectrum extraction method and device of hyperspectral acquisition system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN205050498U (en) | Information display combined system | |
CN101794566B (en) | Method and related device for determining font data of character to be displayed in mobile terminal | |
CN103955659A (en) | Batch true-known code identification method | |
CN108373001A (en) | A kind of intelligent industrial robot automation warehousing system | |
CN100498834C (en) | Digital water mark embedding and extracting method and device | |
CN103942023A (en) | Display processing method and terminal | |
CN104424498A (en) | Method and device for transforming two-dimensional codes at high speed | |
CN107040791A (en) | Suitable for the adaptive binary image compressing method of electronic display tag | |
CN101500165A (en) | Encoding and decoding method and apparatus for displaying line pattern overlapped onto image | |
CN117014618A (en) | Image compression-based blocking method and system and electronic equipment | |
CN102098544A (en) | Image display method of television wall | |
CN105139765A (en) | Information presentation composite system | |
CN102117266A (en) | Method and device for processing character pitch | |
CN104077593A (en) | Image processing method and image processing device | |
CN105426943B (en) | The coding system of image acquisition and method in steel box-girder Virtual assemble | |
WO2004070652A3 (en) | Method and system for compositing three-dimensional graphics images using associative decision mechanism | |
CN117689651A (en) | Coal mine belt deviation detection method based on semantic segmentation and target detection | |
CN117854402A (en) | Abnormal display detection method and device of display screen and terminal equipment | |
CN103077496B (en) | The automatic cross-over connection graphic processing method of circuit on power system | |
CN112528700A (en) | Big data-based two-dimensional code recognition and analysis system | |
JP7515697B2 (en) | IMAGE SAMPLE GENERATION METHOD, TEXT RECOGNITION METHOD, APPARATUS, ELECTRONIC DEVICE, STORAGE MEDIUM, AND COMPUTER PROGRAM | |
CN102164168B (en) | Method and system for transmitting and displaying dragged image | |
CN101799735B (en) | Primary handwriting hand input display method | |
CN104442054B (en) | Two-dimension code printing method and device based on mainframe platform | |
CN115810132A (en) | Crack orientation identification method, device, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20090805 |