CN104980619B - Image processing equipment and electronic device - Google Patents
Image processing equipment and electronic device Download PDFInfo
- Publication number
- CN104980619B CN104980619B CN201410142752.1A CN201410142752A CN104980619B CN 104980619 B CN104980619 B CN 104980619B CN 201410142752 A CN201410142752 A CN 201410142752A CN 104980619 B CN104980619 B CN 104980619B
- Authority
- CN
- China
- Prior art keywords
- pixel
- edge
- neighbor
- edge pixel
- initial
- 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.)
- Active
Links
Abstract
The disclosure provides a kind of image processing equipment and electronic device for being used to compress bianry image.Image processing equipment includes:Edge pixel acquisition device, for obtaining at least one edge pixel in each of the edges as initial edge pixel in the bianry image;Edge pixel judgment means, for by pixel based on each initial edge pixel, whether the neighbor pixel for judging each not processed mistake of the basic pixel is edge pixel, and in the case where neighbor pixel is judged as edge pixel, by pixel based on the neighbor pixel, operated with performing the judgement for it, so that it is determined that all edge pixels on the edge where the initial edge pixel;And storage device, for storing the pixel characteristic of the position of the initial edge pixel and each edge pixel including the initial edge pixel, to realize the compression to the bianry image.The disclosure can improve the compression efficiency of bianry image.
Description
Technical field
This disclosure relates to a kind of image processing techniques, more particularly to it is a kind of for bianry image to be compressed and decompressed
Image processing equipment and image processing method and electronic device.
Background technology
In document processing technology, it is often necessary to preserve a large amount of character images so that systematic comparison or identification are used.And by
In character image only need to preserve its shape information and can, so common word processor can use less two of occupied space
Value image preserves character image.Currently used image preserves what the characteristics of form is typically based on coloured image was handled,
And the characteristics of being not based on bianry image, therefore its compression efficiency is not high for bianry image.
The content of the invention
The brief overview on the present invention is given below, in order to provide on the basic of certain aspects of the invention
Understand.It should be appreciated that this general introduction is not the exhaustive general introduction on the present invention.It is not intended to determine the pass of the present invention
Key or pith, nor is it intended to limit the scope of the present invention.Its purpose only provides some concepts in simplified form,
In this, as the preamble in greater detail discussed later.
In view of the drawbacks described above of the prior art, an object of the present invention is to provide a kind of for pressing bianry image
Contracting and the image processing equipment and image processing method of decompression, at least to overcome the problem of existing.
According to one aspect of the disclosure, there is provided a kind of image processing equipment for being compressed to bianry image, bag
Include:For obtaining at least one edge pixel in each of the edges as initial edge pixel in the bianry image;Edge picture
Plain judgment means, for by pixel based on each initial edge pixel, judging each not processed mistake of the basic pixel
Neighbor pixel whether be edge pixel, and in the case where neighbor pixel is judged as edge pixel, by the neighbor pixel
Based on pixel, with performed for it is described judge to operate, so that it is determined that the institute on edge where the initial edge pixel
There is edge pixel;And storage device, for storing the position of the initial edge pixel and including the initial edge picture
The pixel characteristic of each edge pixel of element, to realize the compression to the bianry image.
According to another aspect of the present disclosure, there is provided a kind of image processing method, including:Edge pixel obtaining step, is used for
At least one untreated edge pixel is obtained in each of the edges as initial edge pixel in the bianry image and is stored
The position of the initial edge pixel;And compression step, for pixel based on each initial edge pixel, judgement to be somebody's turn to do
Whether the neighbor pixel of each not processed mistake of basic pixel is edge pixel, and is judged as edge picture in neighbor pixel
In the case of element, pixel based on the neighbor pixel is operated with performing the judgement for it, to determine the initial edge
All edge pixels on edge where pixel;The pixel that storage includes each edge pixel of the initial edge pixel is special
Levy to realize the compression to the bianry image.
According to one aspect of the disclosure, a kind of image processing equipment is also provided, for image procossing as described above
The image processing equipment that the bianry image of equipment compression unzips it, including:Edge pixel acquisition device, it is described for obtaining
At least one initial edge pixel in bianry image in each of the edges;Edge pixel determining device, for will each just
Pixel based on beginning edge pixel, whether the neighbor pixel for determining each not processed mistake of the basic pixel is edge picture
Element, and in the case where neighbor pixel is confirmed as edge pixel, by pixel based on the neighbor pixel, to be held for it
The row definite operation, to determine all edge pixels on the edge where the initial edge pixel;And reading device, use
In the positional information and the pixel characteristic of each edge pixel including initial edge pixel that read initial edge pixel, with root
The bianry image of the compression is unziped it according to the pixel characteristic of each edge pixel.
According to the another aspect of the disclosure, a kind of image processing method is also provided, to image as described above
The image processing method that the bianry image of reason method compression unzips it, including:Edge pixel obtaining step, for obtaining
At least one initial edge pixel in each of the edges in bianry image is stated, and reads the position of the initial edge pixel
Information;And decompression step, for by pixel based on each initial edge pixel, determine the basic pixel it is each not
Whether processed neighbor pixel is edge pixel, and in the case where neighbor pixel is confirmed as edge pixel, by this
Pixel based on neighbor pixel, to perform the definite operation for it, to determine the edge where the initial edge pixel
On all edge pixels;The pixel characteristic for each edge pixel for including initial edge pixel is read, with according to each edge
The pixel characteristic of pixel unzips it the bianry image of the compression.
According to another aspect of the disclosure, a kind of electronic device is additionally provided, which includes as described above
Image processing equipment.
According to the other side of the disclosure, additionally provide a kind of so that computer is used as image processing equipment as described above
Program.
According to the another aspect of the disclosure, corresponding computer-readable recording medium is additionally provided, this is computer-readable to deposit
Calculating can be set upon execution by the computer program of computing device, the computer program by being stored with storage media
It is standby to perform above-mentioned image processing method.
Above-mentioned image processing equipment and image processing method according to the embodiment of the present disclosure, can at least obtain following benefit
One of:The characteristics of for bianry image, the pixel characteristic of the edge pixel by storing bianry image, reduces the physics of image
Memory space, it is achieved thereby that efficient image Compression;For the bianry image compressed in the above described manner, in decompression processing
When, reduce the analyzing and processing to bianry image content, it is achieved thereby that efficient image decompressor processing.
By excellent below in conjunction with detailed description of the attached drawing to the most preferred embodiment of the disclosure, the these and other of the disclosure
Point will be apparent from.
Brief description of the drawings
The disclosure can be by reference to being better understood, wherein in institute below in association with the description given by attached drawing
Have and the same or similar reference numeral has been used in attached drawing to represent same or similar component.The attached drawing is together with following
Describe in detail and include in the present specification and formed the part of this specification together, and for this is further illustrated
Disclosed preferred embodiment and the principle and advantage for explaining the disclosure.Wherein:
Fig. 1 be schematically show according to the embodiment of the present disclosure be used for compress bianry image image processing equipment one
The block diagram of kind exemplary construction.
Fig. 2 is the exemplary figure for showing the edge pixel according to where initial edge pixel determines it on edge.
Fig. 3 is a kind of block diagram for the exemplary construction for schematically showing the storage device in Fig. 1.
Fig. 4 is shown to be shown according to one kind of the image processing equipment for being used to decompress bianry image of the embodiment of the present disclosure
The block diagram of example structure.
Fig. 5 is a kind of block diagram for the exemplary construction for schematically showing the reading device shown in Fig. 4.
Fig. 6(a)To Fig. 6(c)It is the exemplary figure for showing to unzip it compressed image.
Fig. 7 is a kind of block diagram for the exemplary construction for schematically showing the second reading unit shown in Fig. 5.
Fig. 8 is schematically shown according to the disclosure for the flow for the image processing method being compressed to bianry image
Figure.
Fig. 9 is the image processing method for being used to unzip it the bianry image of compression schematically shown according to the disclosure
The flow chart of method.
Figure 10 is to show to can be used to realize the image processing apparatus and image processing method according to the embodiment of the present disclosure
A kind of structure diagram of possible hardware configuration.
Embodiment
The one exemplary embodiment of the present invention is described hereinafter in connection with attached drawing.For clarity and conciseness,
All features of actual implementation mode are not described in the description.It should be understood, however, that developing any this actual implementation
It must be made during example much specific to the decision of embodiment, to realize the objectives of developer, for example, symbol
Conjunction and system and those relevant restrictive conditions of business, and these restrictive conditions may have with the difference of embodiment
Changed.In addition, it will also be appreciated that although development is likely to be extremely complex and time-consuming, to having benefited from the disclosure
For those skilled in the art of content, this development is only routine task.
Herein, it is also necessary to which explanation is a bit, in order to avoid having obscured the present invention because of unnecessary details, in the accompanying drawings
The apparatus structure closely related with scheme according to the present invention and/or processing step are illustrate only, and is eliminated and the present invention
The little other details of relation.
The inventors discovered that the bianry image represented for the pixel value of wherein pixel with " 0 " and " 1 ", it is effectively believed
Breath be concentrated mainly on around edge pixel, therefore can by effectively store with the relevant information of edge pixel, realize to depositing
Store up the compression in space.Based on this, the disclosure proposes one kind by storage and the relevant information of edge pixel, to realize bianry image
Compression image processing equipment.
Fig. 1 be schematically show according to the embodiment of the present disclosure be used for compress bianry image image processing equipment one
The block diagram of kind exemplary construction.
It can be compressed according to the image processing equipment 1 of the disclosure for bianry image.
As shown in Figure 1, image processing equipment 1 includes:Edge pixel acquisition device 10, for every in the bianry image
At least one edge pixel is obtained on bar edge as initial edge pixel;Edge pixel judgment means 20, for will each just
Pixel based on beginning edge pixel, whether the neighbor pixel for judging each not processed mistake of the basic pixel is edge picture
Element, and in the case where neighbor pixel is judged as edge pixel, by pixel based on the neighbor pixel, to be held for it
Row is described to judge operation, so that it is determined that all edge pixels on the edge where the initial edge pixel;And storage device
30, for storing the pixel of the position of the initial edge pixel and each edge pixel including the initial edge pixel
Feature, to realize the compression to the bianry image.
Edge pixel refers to fall the pixel on the edge of bianry image.According to the disclosure, can be according to pixel around
The pixel value of neighbor pixel determines whether the pixel is edge pixel, such as around the pixel both there are pixel value has been 0
Neighbor pixel, there is also pixel value be 1 neighbor pixel when, which can be determined as edge pixel.
Initial edge pixel refers to the edge pixel of not processed mistake in bianry image, more specifically, initial edge pixel
It can be uncompressed processing(That is, pixel characteristic was not stored for it)Edge pixel.That is, according to the disclosure
The compression processing of the bianry image of embodiment is since bianry image one not processed edge pixel.According to this public affairs
The embodiment opened, edge pixel acquisition device 10 can extract any one or more without processed in bianry image
Edge pixel is as initial edge pixel.
In accordance with an embodiment of the present disclosure, when only including an edge in the bianry image, then implemented according to the disclosure
The image processing equipment 1 of example can obtain the only one edge pixel in bianry image by using edge pixel acquisition device 10
Start the compression processing of the bianry image as initial edge pixel, and when bianry image includes two edges, at image
Managing equipment 1 can be by using only two edge pixel in the acquisition bianry image of edge pixel acquisition device 10 as initial edge
Edge pixel starts the compression processing of the bianry image(An edge pixel is obtained i.e. in each of the edges).Although it is described above
Determine that edge pixel acquisition device 10 obtains the quantity of edge pixel by the quantity at the edge contained in bianry image.More than
When describing image processing equipment 1 and being compressed processing for bianry image, the quantity of the initial edge pixel at least obtained,
But the present disclosure is not limited thereto, it will be understood by those skilled in the art that more edge pictures can also be obtained for each of the edges
Element.It will be understood by those skilled in the art that compared to the situation that more edge pixels are obtained for each of the edges, for each edge
Edge, which obtains an edge pixel, can improve compression efficiency.
, can be by storage device 30 to the initial edge after edge pixel acquisition device 10 obtains initial edge pixel
The position of edge pixel is stored, such as the coordinate value of the initial edge pixel.
Due to generally also including edge pixel in the neighbor pixel of each edge pixel, substitute and seriatim obtain each
Edge pixel, can based on the edge pixel pixel, the information of other edge pixels is obtained in its neighbor pixel.
According to the embodiment of the present disclosure, eight neighbor pixels of edge pixel are chosen as the neighbor pixel according to the disclosure.But
It is the present disclosure is not limited to this, it will be understood by those skilled in the art that four neighbor pixels of edge pixel, 16 near can also be selected
Adjacent pixel is as the neighbor pixel according to the disclosure.
According to the disclosure, edge pixel judgment means 20 can be by pixel based on the initial edge pixel, to this
Whether the neighbor pixel of each not processed mistake of basic pixel is that edge pixel is judged.Side is judged as in neighbor pixel
In the case of edge pixel, the edge pixel judgment means 20 are by pixel based on the neighbor pixel, to perform institute for it
State judge operation untill all edge pixels on whole edge are all processed or until basic pixel it is each not
Processed neighbor pixel is all judged as not be edge pixel untill.
Fig. 2 shows the example of edge pixel on edge according to where initial edge pixel determines it.
Bianry image as shown in Figure 2 is made of English alphabet A, as shown in Fig. 2, since the bianry image only includes one
Edge, therefore edge pixel acquisition device 10 can be by obtaining an edge pixel on the edge, such as edge pixel X works
For initial edge pixel.In addition, edge pixel judgment means 20 pixel and can judge edge based on edge pixel X
Whether each pixel in eight neighbor pixels around pixel X is edge pixel.To can have with initial edge pixel identical
Pixel value and the pixel value of its neighbor pixel be not identical(I.e. its neighbor pixel both includes pixel value for " 0 " or wraps
Include the pixel that pixel value is " 1 ")Pixel be judged as edge pixel.
For example, in the case where neighbor pixel is eight neighbor pixels, with the side of the instruction neighbor pixel shown in Fig. 2 left sides
Formula, edge pixel judgment means 20 may determine that the neighbor pixel 4,6, No. 7 positions is in eight neighbor pixels of edge pixel X
Edge pixel, and the neighbor pixel of other positions is not edge pixel.And the pixel 4,6, No. 7 positions is judged as edge
In the case of pixel, edge pixel judgment means need to continue to judge their neighbor pixel for these three edge pixels respectively
Whether it is edge pixel, such as the neighbor pixel Y positioned at No. 4 positions of edge pixel X, it can be determined that the neighbour of pixel Y
4 in pixel, the pixel of 5,7, No. 8 positions be also edge pixel(Neighbor pixel wherein positioned at No. 8 positions is edge pixel X,
Since the known pixel X for being located at No. 8 positions is edge pixel, it is convenient to omit the judgement to it).In this way, until completion pair
The judgement of all pixels on the edge of the bianry image, so as to obtain all edge pixels on the edge.
Storage device 30 can be directed to the pixel for being each confirmed as edge pixel, store its pixel characteristic to realize to two
It is worth the compression of image.According to one embodiment of the disclosure, storage device can be obtained initially with edge pixel acquisition device 10
After edge pixel, the pixel characteristic of the initial edge pixel is stored, and judge whenever edge pixel judgment means 20
During one edge pixel, the pixel characteristic of the edge pixel is stored, i.e. storage device can often determine an edge pixel
When, store the feature of the edge pixel.Alternatively, it is also possible to obtained at each edge for bianry image on the edge
Each edge pixel after, store its pixel characteristic for all edge pixels by storage device 30.
All edge pixels at all edges in bianry image are directed to by storage device 30 and all store pixel characteristic, can be with
Realize the compression processing to bianry image.
In accordance with an embodiment of the present disclosure, pixel characteristic includes the pixel value of the neighbor pixel of the edge pixel.
Fig. 3 is a kind of block diagram for the exemplary construction for schematically showing the storage device in Fig. 1.
As shown in figure 3, storage device includes:Pixel list construction unit 301, for for each edge pixel, structure
Neighbor pixel table, the neighbor pixel table are used for the pixel value that the neighbor pixel of the edge pixel is stored with predefined procedure;And
Pixel value storage unit 302, for the pixel value of each neighbor pixel of the edge pixel to be stored in institute with predefined procedure
State in neighbor pixel table.
For example, in the case where representing the neighbor pixel of edge pixel with eight neighbor pixels, pixel list construction unit 301
Each edge pixel can be directed to, is formed and is arranged by neighbor pixel of the byte that 8 bits are formed as the edge pixel
Table, each bit represent the pixel value of the corresponding neighbor pixel of the bit;And representing edge pixel with 16 neighbor pixels
In the case of neighbor pixel, pixel list construction unit 301 can be directed to each edge pixel, formed and be made of 16 bits
Neighbor pixel list of two bytes as the edge pixel, wherein, each bit represents the corresponding neighbor pixel of the bit
Pixel value.
After pixel list construction unit 301 constructs neighbor pixel table, pixel value storage unit 302 can be by the side
The pixel value of the neighbor pixel of edge pixel is stored in constructed neighbour's pixel table.
For example, for the bianry image shown in Fig. 2, pixel value storage unit can be in neighbour's pixel column of edge pixel X
To indicate the order of neighbor pixel on the left of Fig. 2 in table, the pixel value of neighbor pixel is stored.For example, the edge shown on the left of Fig. 2
The neighbor pixel of No. 1 position of pixel X is white pixel, then can be in neighbour's pixel list by the pixel value of the neighbor pixel
It is stored as " 0 ";The neighbor pixel of No. 4 positions of edge pixel X is black picture element, can be in neighbour's pixel list by the neighbour
Pixel(That is pixel Y)Pixel value be stored as " 1, and so on, side that is as shown in table 1 below, storing pixel value can be obtained
The neighbor pixel list of edge pixel X.
Table 1
0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 |
It is hereby achieved that a byte of " 00011110 " is stored as the feature of edge pixel X.
According to preferred embodiment of the present disclosure, the pixel value of the neighbor pixel of each edge pixel is being stored as the edge
During the pixel characteristic of pixel, it can be stored only for the pixel value for the neighbor pixel not stored, for stored mistake
The pixel value of neighbor pixel can then be not repeated to store.So as to further save memory space.
For example, the example shown in Fig. 2, a byte is being stored as edge pixel X by the pixel value of its neighbor pixel
In the case of " 00011110 ", when the pixel value of the neighbor pixel for edge pixel Y is stored, due to positioned at edge
The neighbor pixel of 1,2,6,7, No. 8 position of pixel Y is when the pixel value for edge pixel X storage neighbor pixels stores
They are stored(The neighbor pixel of No. 1 position of edge pixel Y is also No. 2 positions of edge pixel X at the same time
Neighbor pixel, the neighbor pixel of No. 2 positions of edge pixel Y are also the neighbor pixel of No. 3 positions of edge pixel X, edge picture
The neighbor pixel of No. 6 positions of plain Y is also the neighbor pixel of No. 5 positions of edge pixel X at the same time;No. 7 positions of edge pixel Y
Neighbor pixel at the same time be also edge pixel X No. 6 positions neighbor pixel;The neighbor pixel of No. 8 positions of edge pixel Y is
For edge pixel X), therefore the pixel value of these pixels of stored mistake can be no longer stored, so as to be deposited for edge pixel Y
The pixel value " 011 " that can be only stored in pixel neighbour pixel list with the neighbor pixel of 3,4, No. 5 position correspondences of storage.This
Field technology personnel are appreciated that in these cases, are only stored in for edge pixel Y a byte with three closely
In the case of the corresponding pixel value of adjacent pixel, it can then continue to store No. 6 positions of edge pixel X at the 4th of the byte
Pixel pixel characteristic, the i.e. characteristic value of the neighbor pixel of the neighbor pixel of the position.
Although the pixel of the neighbor pixel of each edge pixel is stored with the clock-wise order shown in Fig. 2 upper left sides above
Value, but the present disclosure is not limited thereto, it will be appreciated by those skilled in the art that each edge picture can also be stored with sequence counter-clockwise
The pixel value of the neighbor pixel of element.In addition, although No. 1 position opposite side is used as using the neighbor pixel in the upper left corner of neighbor pixel above
The pixel value of the neighbor pixel of edge pixel is stored, and but the present disclosure is not limited thereto, can also be from other positions(Such as No. 4
Position)Neighbor pixel start to store the pixel value of each neighbor pixel.In addition, judging that its is near for edge pixel
Have in adjacent pixel multiple neighbor pixels be edge pixel in the case of, can also with the predefined procedure for example shown in Fig. 2 upper left sides,
Stored for the pixel characteristic of each neighbor pixel.
It is described above being deposited the pixel value of the neighbor pixel of edge pixel as the pixel characteristic of edge pixel
Storage.However, the present disclosure is not limited to this, can also by for determine edge pixel neighbor pixel whether be edge pixel information
Pixel characteristic as edge pixel is stored.
In accordance with an embodiment of the present disclosure, for determining whether the neighbor pixel of edge pixel is that the information of edge pixel can
Be the instruction neighbor pixel whether be edge pixel mark or the neighbor pixel neighbor pixel pixel value, from
And pixel value storage unit 303 be additionally configured to storage indicate the neighbor pixel whether be edge pixel mark or storage
The pixel value of the neighbor pixel of the neighbor pixel.
Pixel value storage unit 303 can represent whether neighbor pixel is edge pixel with the flag storage of 1 bit,
For example, flag can be expressed as " 1 " if neighbor pixel is also edge pixel ", if neighbor pixel is not edge picture
The flag, then can be expressed as " 0 " by element.Can for example store edge pixel neighbor pixel pixel value when, together with
Indicate whether the neighbor pixel is that the flag bit of edge pixel stores together.
In the illustrated example shown in fig. 2, as described above, in neighbour's picture of 4,6, No. 7 positions in the neighbor pixel of edge pixel X
Element is edge pixel, therefore can store " 1 " in the flag of these three neighbor pixels, and in the flag bit of remaining neighbor pixel
Storage 0.According to one embodiment of the disclosure, can and then be stored after the position of pixel value of each neighbor pixel is indicated
Indicate its whether be edge pixel flag bit.For example, in fig. 2 it is possible to the pixel characteristic of edge pixel X is stored as
" 00000011 " and " 10111100 " two bytes, wherein the 1st of first character section are represented positioned at No. 1 position of neighbor pixel X
The pixel value for the neighbor pixel put, the 2nd be represent the neighbor pixel whether be edge pixel mark.
Can also after by the pixel value of the eight of edge pixel neighbor pixel with the storage of a byte of 8 bits,
And then the byte, to indicate the identical order of the neighbor pixel, storage indicates whether the neighbor pixel is edge pixel
Flag.Such as the pixel characteristic of the edge pixel X in Fig. 2 can be stored as to " 00011110 " and " 00010110 " two words
The pixel value of each neighbor pixel, second table of bytes in eight neighbor pixels of section, wherein first character section expression edge pixel X
Show each neighbor pixel whether be edge pixel mark.
After being stored in the above described manner to the pixel characteristic of each edge pixel of bianry image, it is possible to achieve
Compression to bianry image.
According to the disclosure, also provide a kind of bianry image for being used to compress the image processing equipment that Fig. 1-3 is described into
The image processing equipment of row decompression.
Fig. 4 is shown to be shown according to one kind of the image processing equipment for being used to decompress bianry image of the embodiment of the present disclosure
The block diagram of example structure.
As shown in figure 4, image processing equipment 2 includes:Edge pixel acquisition device 40, for obtaining in the bianry image
At least one the initial edge pixel and its positional information in each of the edges;Edge pixel determining device 50, for will be every
Pixel based on a initial edge pixel, whether the neighbor pixel for determining each not processed mistake of the basic pixel is edge
Pixel, and in the case where neighbor pixel is confirmed as edge pixel, by pixel based on the neighbor pixel, with for it
The definite operation is performed, untill all edge pixels on the edge where the initial edge pixel is determined;And
Reading device 60, for the positional information for reading initial edge pixel and each edge picture including initial edge pixel
The pixel characteristic of element, unzips it the bianry image of the compression with the pixel characteristic according to each edge pixel.
Edge pixel acquisition device 40 can be special according to the pixel of the edge pixel stored in being handled in two-tone image compression
Sign obtains at least one edge pixel for each of the edges.In accordance with an embodiment of the present disclosure, it is similar in being handled with compression, for bag
The bianry image of one edge is included, can only obtain an edge pixel, and its neighbor pixel is read since the edge pixel,
So as to using the edge pixel as starting point, recover the edge where the edge pixel in the bianry image.
The initial edge pixel obtained according to edge pixel acquisition device 40, edge pixel determining device 50 can determine it
Whether the neighbor pixel of each neighbor pixel and each neighbor pixel is edge pixel, until determining initial edge pixel institute
Whole edge untill.
According to one embodiment of the disclosure, edge pixel determining device 50 can according to the pixel characteristic of edge pixel come
Determine whether its neighbor pixel is edge pixel.Specifically, can be according in the image processing equipment 1 for compressing bianry image
Storage device 30 store, for determining whether the neighbor pixel of edge pixel also each to determine for the information of edge pixel
Which is edge pixel in neighbor pixel, so that it is determined that all edge pixels on the whole edge where initial edge pixel.
For example, edge pixel determining device 50 can according to the instruction neighbor pixel of storage whether be edge pixel mark or
The pixel value of the neighbor pixel of the neighbor pixel of storage, to determine whether neighbor pixel is edge pixel.
After edge pixel is determined by edge pixel determining device 40, reading device 60 reads each edge pixel
Pixel characteristic, the bianry image of the compression is unziped it with the pixel characteristic according to each edge pixel.
Fig. 5 is a kind of block diagram for the exemplary construction for schematically showing the reading device shown in Fig. 4.
As shown in figure 5, reading device 60 includes:First reading unit 601, for reading the position of the initial edge pixel
Information, draws the initial edge pixel with the positional information according to the initial edge pixel;And second reading unit
602, the neighbor pixel table of each edge pixel, the neighbor pixel table are used on edge where reading the initial edge pixel
In the pixel value for the neighbor pixel that the edge pixel is stored with predefined procedure, and according to the neighbor pixel table, to by the edge
The inside at the edge that pixel is formed is filled.
The configuration of reading device 60 is described with reference to Fig. 2 and Fig. 6.As shown in Fig. 2, filled being obtained by edge pixel
Put 40 obtain initial edge pixel X after, the first reading unit 601 can read such as coordinate of edge pixel position letter
Breath, and according to the positional information, which is drawn, such as Fig. 6(a)It is shown.
Then, the second reading unit 602 is by being successively read neighbor pixel table and its neighbour of initial edge pixel X
Neighbor pixel table of the neighbor pixel of edge pixel etc. is judged as in pixel, to complete neighbour's picture to each edge pixel
The drafting of element.
Fig. 7 is a kind of block diagram for the exemplary construction for schematically showing the second reading unit shown in Fig. 5.
As shown in fig. 7, the second reading unit 602 includes:Neighbor pixel draws subelement 6021, for reading each edge
The neighbor pixel table of pixel, and each neighbor pixel of the edge pixel is drawn according to the neighbor pixel table;Filling
Unit 6022, for judging whether there is non-drawn neighbor pixel in each neighbor pixel for having drawn pixel, and at this
In the case of drawing in the neighbor pixel of pixel there are non-drawn neighbor pixel, the pixel value of pixel has been drawn to it not with this
The neighbor pixel of drafting is drawn, so that the inside at the edge to being formed by each edge pixel is filled.
In accordance with an embodiment of the present disclosure, neighbor pixel is drawn subelement 6021 and can be stored by reading when compressing and handling
Neighbor pixel table draw the neighbor pixel of each edge pixel.
Fig. 6(b)Show the neighbor pixel table according to initial edge pixel X(I.e. when compressing processing, storage device 30 is deposited
One byte " 00011110 " of storage)Realize the drafting to the neighbor pixel of initial edge pixel X, Fig. 6(c)Show according to just
The neighbor pixel table of the neighbor pixel Y for being judged as edge pixel of beginning edge pixel X(The storage device 30 i.e. when compressing processing
" 011 " of storage), the drafting to the neighbor pixel of pixel Y.
In the above described manner, the neighbor pixel table of each edge pixel is being have read by neighbor pixel drafting subelement 6021
After the drafting to each edge pixel and its neighbor pixel, filling subelement 6022 judges each to have drawn picture
Whether there is non-drawn neighbor pixel in the neighbor pixel of element, and exist in the neighbor pixel for having drawn pixel and do not draw
Neighbor pixel in the case of, the pixel value that pixel has been drawn with this draws its non-drawn neighbor pixel, so that right
The inside at the edge formed by each edge pixel is filled.
According to the disclosure, when a certain pixel is due to the situation for not being the neighbor pixel of any edge pixel and not being drawn
Under, if there is drawn pixel in the neighbor pixel of the pixel, filling subelement 6022 can be drawn with its
The pixel value of neighbor pixel draws the pixel that this is not drawn, so that the inside at the edge formed to edge pixel carries out
Filling.As shown in Fig. 2, each neighbor pixel of pixel Z is not edge pixel, therefore draws subelement in neighbor pixel and be directed to
After the neighbor pixel of each edge pixel is drawn, pixel Z is not drawn also, in this case, it is possible to according to having painted
The pixel W of system(Pixel W has been drawn as the neighbor pixel of edge pixel M)Pixel value the neighbor pixel Z of W is painted
System.
By above-mentioned processing, the second reading unit 602 can realize the filling of the inside to each edge, so as to fulfill right
The decompression of bianry image.
According to one embodiment of the disclosure, a kind of image processing method for being compressed to bianry image is additionally provided
Method.A kind of exemplary process of image processing method is described with reference to Fig. 8.
As shown in figure 8, the process flow 800 of image processing method in accordance with an embodiment of the present disclosure starts from S810, so
The processing of S820 is performed afterwards.
In the edge pixel obtaining step of S820, obtain in each of the edges and at least one do not locate in the bianry image
The edge pixel of reason is as initial edge pixel and the positional information of storing initial pixel;For example, can for example it be joined by performing
Step S820 is realized according to the processing of the edge pixel acquisition device 10 described of Fig. 1 and 3, and the descriptions thereof are omitted herein.Then perform
S830。
In the compression step of S830, by pixel based on each initial edge pixel, each of the basic pixel is judged
Whether the neighbor pixel of a not processed mistake is edge pixel, and in the case where neighbor pixel is judged as edge pixel,
Operate, pixel based on the neighbor pixel with where the definite initial edge pixel to perform the judgement for it
All edge pixels on edge;In the pixel characteristic for storing each edge pixel for including the initial edge pixel, in institute
State and obtain at least one untreated edge pixel in bianry image in each of the edges as initial edge pixel.For example, can be with
Step is realized by performing the processing referring for example to the edge pixel judgment means 20 described of Fig. 1 and 3 and storage device 30
S830, the descriptions thereof are omitted herein.Then S840 is performed.
Process flow 800 ends at S840.
According to one embodiment of the disclosure, the pixel characteristic of the edge pixel includes neighbour's picture of the edge pixel
The pixel value of element.In the case, the storage processing in the compression step of S830 can include:For each edge pixel, structure
Neighbor pixel table is built, the neighbor pixel table is used for the pixel value that the neighbor pixel of the edge pixel is stored with predefined procedure;With
And the pixel value of each neighbor pixel of the edge pixel is stored in the neighbor pixel table with predefined procedure.According to this
It is open, it can be stored in only by the edge pixel, the pixel value of neighbor pixel that does not store with the predefined procedure described near
In adjacent pixel table.
According to another embodiment of the disclosure, the pixel characteristic of edge pixel is further included for determining the edge pixel
Neighbor pixel whether be edge pixel information.In the case, the storage processing in the compression step of S830 can include depositing
Storage indicates whether the neighbor pixel is the mark of edge pixel or stores the pixel value of the neighbor pixel of the neighbor pixel.
According to one embodiment of the disclosure, a kind of image procossing for being unziped it to bianry image is additionally provided
Method.A kind of exemplary process of the image processing method is described with reference to Fig. 9.
As shown in figure 9, the process flow 900 of image processing method in accordance with an embodiment of the present disclosure starts from S910, so
The processing of S920 is performed afterwards.
In the edge pixel obtaining step of S920, obtain at least one described in each of the edges in the bianry image
Initial edge pixel, and read the positional information of the initial edge pixel.For example, can be by performing referring for example to Fig. 4-7
Step S920 is realized in the processing of the edge pixel acquisition device 40 of description, and the descriptions thereof are omitted herein.Then S930 is performed.
In the decompression step of S930, by pixel based on each initial edge pixel, the basic pixel is determined
Whether the neighbor pixel of each not processed mistake is edge pixel, and is confirmed as the situation of edge pixel in neighbor pixel
Under, by pixel based on the neighbor pixel, to perform the definite operation for it, where determining the initial edge pixel
Edge on all edge pixels;The pixel characteristic for each edge pixel for including initial edge pixel is read, with according to each
The pixel characteristic of a edge pixel unzips it the bianry image of the compression.For example, can by perform referring for example to
The edge pixel determining device 50 and the processing of reading device 60 that Fig. 4-7 is described realize step S930, and the descriptions thereof are omitted herein.
Then S940 is performed.
Process flow 900 ends at S940.
In accordance with an embodiment of the present disclosure, the reading process of the decompression step of S930 can include:Read the initial edge
The positional information of pixel, draws the initial edge pixel with the positional information according to the initial edge pixel;And use
In the neighbor pixel table for reading each edge pixel on the edge of initial edge pixel place, the neighbor pixel table is used for pre-
Determine the pixel value of the neighbor pixel of the sequential storage edge pixel, and according to the neighbor pixel table, to by the edge pixel shape
Into the inside at edge be filled.
In accordance with an embodiment of the present disclosure, the processing that reading neighbor pixel table and the inside to edge are filled can wrap
Include:Read the neighbor pixel table of each edge pixel, and each neighbor pixel according to the neighbor pixel table to the edge pixel
Drawn;Judge whether there is non-drawn neighbor pixel in each neighbor pixel for having drawn pixel, and drawn at this
In the neighbor pixel of pixel there are non-drawn neighbor pixel in the case of, the pixel value that pixel has been drawn with this does not draw it
Neighbor pixel drawn so that the inside at the edge to being formed by each edge pixel is filled, so as to fulfill to two
It is worth the decompression of image.
In the compression step of S830 in the image processing method for compressing bianry image, those skilled in the art can
To understand, judge that processing and storage are handled for the edge pixel in the compression step, both can sequentially perform, such as judging
Go out after all edge pixels on edge, carrying out storage processing;Execution is can also be combined, such as is judging one
After a edge pixel, the storage of the pixel characteristic of the edge pixel can be and then performed, then judges the edge pixel
Whether neighbor pixel is that the pixel characteristic of edge pixel and the neighbor pixel to being judged as edge pixel stores.It is similar
Ground, in the decompression step of the S930 in the image processing method for being unziped it to bianry image, art technology
Personnel, both can be sequentially to hold it is also to be understood that determine to handle and deposit reading process for the edge pixel in the compression step
OK, after all edge pixels such as on edge is determined, processing is read out for all edge pixels;It can also tie
Execution is combined, such as after an edge pixel is determined, can and then perform the pixel characteristic of the edge pixel
Reading, it is then determined that whether the neighbor pixel of the edge pixel is edge pixel and the neighbour to being confirmed as edge pixel
The pixel characteristic of pixel is read out.
Compared with the prior art, had according to the image processing equipment of the disclosure and image processing method at least following excellent
Point:The characteristics of for bianry image, the pixel characteristic of the edge pixel by storing bianry image, the physics for reducing image are deposited
Space is stored up, it is achieved thereby that efficient image Compression;For the bianry image compressed in the above described manner, in decompression processing
When, the analyzing and processing to bianry image content is reduced, it is achieved thereby that efficient image decompressor processing.
In addition, embodiment of the disclosure additionally provides a kind of electronic device, which is configured to include as described above
Image processing equipment 1 or 2.The electronic device for example can be any one in following equipment:Mobile phone, computer, tablet
Computer and personal digital assistant etc..Correspondingly, which can possess the beneficial of image processing apparatus as described above
Effect and advantage.
Above-mentioned image processing equipment in accordance with an embodiment of the present disclosure(Such as the image processing equipment shown in Fig. 1,3-7)
In each component units, subelement etc. can be configured by way of software, firmware, hardware or its any combination.
In the case of being realized by software or firmware, it can install and form to the machine with specialized hardware structure from storage medium or network
The program of the software or firmware, the machine when being provided with various programs, be able to carry out above-mentioned each component units, subelement it is each
Kind function.
Figure 10 is to show to can be used to realize that one kind of image processing apparatus and method in accordance with an embodiment of the present disclosure can
The structure diagram of the hardware configuration of the image processing equipment of energy.
In Fig. 10, central processing unit (CPU) 1001 according to the program stored in read-only storage (ROM) 1002 or from
The program that storage part 1008 is loaded into random access memory (RAM) 1003 performs various processing.In RAM1003, root is gone back
The data required when CPU1001 performs various processing etc. are stored according to needs.CPU1001, ROM1002 and RAM1003 via
Bus 1004 is connected to each other.Input/output interface 1005 is also connected to bus 1004.
Components described below is also connected to input/output interface 1005:Importation 1006(Including keyboard, mouse etc.), it is defeated
Go out part 1007(Including display, such as cathode-ray tube (CRT), liquid crystal display (LCD) etc., and loudspeaker etc.), storage
Part 1008(Including hard disk etc.), communications portion 1009(Including network interface card such as LAN card, modem).Communication
Part 1009 performs communication process via network such as internet.As needed, driver 1010 can be connected to input/output
Interface 1005.Detachable media 1011 such as disk, CD, magneto-optic disk, semiconductor memory etc. can be pacified as needed
On driver 1010 so that the computer program read out can be mounted in storage part 1008 as needed.
, can be from network such as internet or from storage medium example in the case where realizing above-mentioned series of processes by software
As detachable media 1011 installs the program of composition software.
It will be understood by those of skill in the art that this storage medium is not limited to wherein be stored with journey shown in Figure 10
Sequence and equipment are separately distributed to provide a user the detachable media 1011 of program.The example bag of detachable media 1011
Containing disk (including floppy disk), CD (including compact disc read-only memory (CD-ROM) and digital universal disc (DVD)), magneto-optic disk(Bag
(MD) containing mini-disk (registration mark)) and semiconductor memory.Alternatively, storage medium can be ROM1002, storage part 1008
In the hard disk that includes etc., wherein computer program stored, and user is distributed to together with the equipment comprising them.
In addition, the disclosure also proposed a kind of program product for the instruction code for being stored with machine-readable.Above-metioned instruction
When code is read and performed by machine, above-mentioned image processing method in accordance with an embodiment of the present disclosure can perform.Correspondingly, it is used for
The various storage mediums such as disk, CD, magneto-optic disk, semiconductor memory for carrying this program product are also included within this
In disclosed disclosure.
In the description to disclosure specific embodiment above, for a kind of description of embodiment and/or the feature shown
It can be used in a manner of same or similar in one or more other embodiments, with the feature in other embodiment
It is combined, or substitute the feature in other embodiment.
In addition, the method for the presently disclosed embodiments be not limited to specifications described in or shown in attached drawing when
Between sequentially perform, can also be according to other time sequencings, concurrently or independently perform.Therefore, described in this specification
The execution sequence of method scope of the presently disclosed technology is not construed as limiting.
It should be further understood that can also can be stored in various machines according to each operating process of the above method of the disclosure
The mode of computer executable program in the storage medium of reading is realized.
Moreover, the purpose of the disclosure can also be accomplished in the following manner:Above-mentioned executable program code will be stored with
Storage medium is directly or indirectly supplied to system or equipment, and computer or central processing in the system or equipment
Unit(CPU)Read and perform above procedure code.
At this time, as long as the system or equipment have the function of executive program, then embodiment of the present disclosure is not limited to
Program, and the program can also be arbitrary form, for example, program that target program, interpreter perform or being supplied to behaviour
Make shell script of system etc..
These above-mentioned machinable mediums include but not limited to:Various memories and storage unit, semiconductor equipment,
Disk cell such as light, magnetic and magneto-optic disk, and other media for being suitable for storage information etc..
In addition, customer information processing terminal is by the corresponding website that is connected on internet, and by according to the disclosure
Computer program code is downloaded and is installed in the information processing terminal and then performs the program, can also realize each reality of the disclosure
Apply example.
To sum up, in accordance with an embodiment of the present disclosure, present disclose provides following scheme, but not limited to this:
Scheme 1, a kind of image processing equipment for being used to compress bianry image, including:
Edge pixel acquisition device, makees for obtaining at least one edge pixel in each of the edges in the bianry image
For initial edge pixel;
Edge pixel judgment means, for by pixel based on each initial edge pixel, judging the basic pixel
Whether the neighbor pixel of each not processed mistake is edge pixel, and is judged as the situation of edge pixel in neighbor pixel
Under, pixel based on the neighbor pixel is operated with performing the judgement for it, so that it is determined that the initial edge pixel institute
Edge on all edge pixels;And
Storage device, for storing the positional information of the initial edge pixel and including the initial edge pixel
The pixel characteristic of each edge pixel, to realize the compression to the bianry image.
Scheme 2, the image processing equipment according to scheme 1, wherein,
The pixel characteristic of the edge pixel includes the pixel value of the neighbor pixel of the edge pixel,
The storage device includes:
Pixel list construction unit, for for each edge pixel, building neighbor pixel table, the neighbor pixel table is used
In the pixel value for the neighbor pixel that the edge pixel is stored with predefined procedure;And
Pixel value storage unit, for the pixel value of each neighbor pixel of the edge pixel to be stored with predefined procedure
In the neighbor pixel table.
Scheme 3, the image processing equipment according to scheme 2, wherein,
Whether the neighbor pixel that the pixel characteristic of the edge pixel further includes for determining the edge pixel is edge picture
The information of element, described information be the instruction neighbor pixel whether be edge pixel mark or the neighbour of the neighbor pixel
The pixel value of pixel;
The pixel value storage unit be additionally configured to storage indicate the neighbor pixel whether be edge pixel mark
Or the pixel value of the neighbor pixel of the storage neighbor pixel.
Scheme 4, the image processing equipment according to scheme 2 or 3, wherein, the pixel value storage unit is configured as
By edge pixel, the pixel value of neighbor pixel that does not store is stored in the neighbor pixel table with the predefined procedure.
Scheme 5, the image processing equipment according to any one of scheme 1-3, wherein, the neighbor pixel is eight neighbours
Pixel.
Scheme 6, it is a kind of be used for according to any one of scheme 1-5 image processing equipment compress bianry image into
The image processing equipment of row decompression, including:
Edge pixel acquisition device, for obtaining at least one initial edge in the bianry image in each of the edges
Edge pixel;
Edge pixel determining device, for by pixel based on each initial edge pixel, determining the basic pixel
Whether the neighbor pixel of each not processed mistake is edge pixel, and is confirmed as the situation of edge pixel in neighbor pixel
Under, by pixel based on the neighbor pixel, to perform the definite operation for it, where determining the initial edge pixel
Edge on all edge pixels;And
Reading device, for reading the positional information of initial edge pixel and each edge including initial edge pixel
The pixel characteristic of pixel, unzips it the bianry image of the compression with the pixel characteristic according to each edge pixel.
Scheme 7, the image processing equipment according to scheme 6, wherein, the reading device includes:
First reading unit, for reading the positional information of the initial edge pixel, with according to the initial edge pixel
Positional information draws the initial edge pixel;And
Second reading unit, the neighbor pixel of each edge pixel on edge where reading the initial edge pixel
Table, the neighbor pixel table are used for the pixel value that the neighbor pixel of the edge pixel is stored with predefined procedure, and according to described near
Adjacent pixel table, the inside at the edge to being formed by the edge pixel are filled.
Scheme 8, the image processing equipment according to scheme 7, wherein, second reading unit includes:
Neighbor pixel draws subelement, for reading the neighbor pixel table of each edge pixel, and according to the neighbor pixel
Table draws each neighbor pixel of the edge pixel;And
Subelement is filled, for judging whether there is non-drawn neighbor pixel in each neighbor pixel for having drawn pixel,
And in the neighbor pixel that this has drawn pixel there are non-drawn neighbor pixel in the case of, the picture of pixel has been drawn with this
Plain value draws its non-drawn neighbor pixel, so that the inside at the edge to being formed by each edge pixel is filled out
Fill.
Scheme 9, the image processing equipment according to any one of scheme 6-8, wherein, the edge pixel determining device
Determine whether its neighbor pixel is edge pixel for the pixel characteristic according to the edge pixel.
Scheme 10, the image processing equipment according to any one of scheme 6-9, wherein, the neighbor pixel is near for eight
Adjacent pixel.
Scheme 11, a kind of image processing method for being used to compress bianry image, including:
Edge pixel obtaining step, for obtaining at least one untreated side in each of the edges in the bianry image
Edge pixel is as initial edge pixel and stores the positional information of the initial edge pixel;And
Compression step, for by pixel based on each initial edge pixel, judge the basic pixel it is each not by
Whether processed neighbor pixel is edge pixel, and in the case where neighbor pixel is judged as edge pixel, this is near
Pixel based on adjacent pixel, is operated with performing the judgement for it, to determine on the edge where the initial edge pixel
All edge pixels;Storage includes the pixel characteristic of each edge pixel of the initial edge pixel to realize to described two
It is worth the compression of image.
Scheme 12, the image processing method according to scheme 8, wherein, the pixel characteristic of the edge pixel includes institute
The pixel value of the neighbor pixel of edge pixel is stated,
The storing step includes:
For each edge pixel, neighbor pixel table is built, the neighbor pixel table is used to store the side with predefined procedure
The pixel value of the neighbor pixel of edge pixel;And
The pixel value of each neighbor pixel of the edge pixel is stored in the neighbor pixel table with predefined procedure.
Scheme 13, the image processing method according to scheme 12, wherein,
Whether the neighbor pixel that the pixel characteristic of the edge pixel further includes for determining the edge pixel is edge picture
The information of element, described information be the instruction neighbor pixel whether be edge pixel mark or the neighbour of the neighbor pixel
The pixel value of pixel;
The storing step further includes storage and indicates whether the neighbor pixel is the mark of edge pixel or stores institute
State the pixel value of the neighbor pixel of neighbor pixel.
Scheme 14, the image processing method according to scheme 10, wherein the storing step is additionally operable to the edge picture
The pixel value of neighbor pixel that is plain, not storing is stored in the neighbor pixel table with the predefined procedure.
Scheme 15, a kind of binary map for being used to compress the image processing method according to any one of scheme 11-14
As the image processing method unziped it, including:
Edge pixel obtaining step, for obtaining at least one initial edge in the bianry image in each of the edges
Edge pixel, and read the positional information of the initial edge pixel;And
Decompression step, for by pixel based on each initial edge pixel, determine the basic pixel it is each not
Whether processed neighbor pixel is edge pixel, and in the case where neighbor pixel is confirmed as edge pixel, by this
Pixel based on neighbor pixel, to perform the definite operation for it, to determine the edge where the initial edge pixel
On all edge pixels;The pixel characteristic for each edge pixel for including initial edge pixel is read, with according to each edge
The pixel characteristic of pixel unzips it the bianry image of the compression.
Scheme 16, the image processing method according to scheme 15, wherein, the read step includes:
The positional information of the initial edge pixel is read, with the positional information according to the initial edge pixel to the initial edge
Edge pixel is drawn;And
The neighbor pixel table of each edge pixel on the edge of initial edge pixel place is read, the neighbor pixel table is used
In the pixel value for the neighbor pixel that the edge pixel is stored with predefined procedure, and according to the neighbor pixel table, to by the edge
The inside at the edge that pixel is formed is filled.
Scheme 17, the image processing method according to scheme 16, wherein, read the neighbor pixel table of each edge pixel
And the step of being filled to edge inside, includes:
Read the neighbor pixel table of each edge pixel, and each neighbour according to the neighbor pixel table to the edge pixel
Pixel is drawn;And
Judge whether there is non-drawn neighbor pixel in each neighbor pixel for having drawn pixel, and picture has been drawn at this
Element neighbor pixel in there are non-drawn neighbor pixel in the case of, the pixel value that pixel has been drawn with this is non-drawn to its
Neighbor pixel is drawn, so that the inside at the edge to being formed by each edge pixel is filled.
Scheme 18, a kind of electronic device, including the image processing device processes dress according to any one of scheme 1-10
Put, wherein electronic device especially mobile phone, computer, tablet computer or personal digital assistant.
Scheme 19, a kind of program for causing computer to be used as the image processing equipment as any one of scheme 1-7.
Scheme 20, a kind of computer-readable recording medium, being stored thereon with can be by the computer journey of computing device
Sequence, the program cause computer to be used as the image procossing as any one of scheme 1-10.
Finally, it is to be noted that, in the disclosure, relational terms such as first and second and the like are used merely to
Distinguish one entity or operation from another entity or operation, without necessarily requiring or implying these entities or behaviour
There are any actual relationship or order between work.Moreover, term " comprising ", "comprising" or its any other variant
Non-exclusive inclusion is intended to, so that process, method, article or equipment including a series of elements not only include
Those key elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or
The intrinsic key element of person's equipment.In the absence of more restrictions, the key element limited by sentence "including a ...", not
Also there are other identical element in the process, method, article or apparatus that includes the element for exclusion.
Although being had been disclosed above by the description of the specific embodiment of the disclosure to the disclosure, however, it should
Understand, those skilled in the art can design the various modifications to the disclosure in the spirit and scope of the appended claims, improve
Or equivalent.These modifications, improvement or equivalent should also be as being to be considered as included in the claimed scope of the disclosure.
Claims (10)
1. a kind of image processing equipment for being used to compress bianry image, including:
Edge pixel acquisition device, for obtaining at least one edge pixel in each of the edges in the bianry image as just
Beginning edge pixel;
Edge pixel judgment means, for by pixel based on each initial edge pixel, judging each of the basic pixel
Whether the neighbor pixel of not processed mistake is edge pixel, and in the case where neighbor pixel is judged as edge pixel, will
Pixel based on the neighbor pixel, is operated with performing the judgement for it, so that it is determined that where the initial edge pixel
All edge pixels on edge;And
Storage device, for storing the positional information of the initial edge pixel and including each of the initial edge pixel
The pixel characteristic of edge pixel, to realize the compression to the bianry image,
Wherein, the pixel characteristic of the edge pixel includes the pixel value of the neighbor pixel of the edge pixel, and stores institute
Stating the pixel characteristic of edge pixel includes storing the pixel value of the neighbor pixel of the edge pixel with predefined procedure.
2. image processing equipment according to claim 1, wherein,
The storage device includes:
Pixel list construction unit, for for each edge pixel, building neighbor pixel table, the neighbor pixel table be used for
The predefined procedure stores the pixel value of the neighbor pixel of the edge pixel;And
Pixel value storage unit, for the pixel value of each neighbor pixel of the edge pixel to be stored with the predefined procedure
In the neighbor pixel table.
3. image processing equipment according to claim 2, wherein,
Whether the neighbor pixel that the pixel characteristic of the edge pixel further includes for determining the edge pixel is edge pixel
Information, described information are whether the instruction neighbor pixel is the mark of edge pixel or the neighbor pixel of the neighbor pixel
Pixel value;
The pixel value storage unit be additionally configured to storage indicate the neighbor pixel whether be edge pixel mark or
Store the pixel value of the neighbor pixel of the neighbor pixel.
4. the image processing equipment according to Claims 2 or 3, wherein, the pixel value storage unit is configured as side
Edge pixel, the pixel value of neighbor pixel that does not store is stored in the neighbor pixel table with the predefined procedure.
5. a kind of be used to solve the bianry image that the image processing equipment according to any one of claim 1-4 compresses
The image processing equipment of compression, including:
Edge pixel acquisition device, for obtaining at least one initial edge picture in the bianry image in each of the edges
Element;
Edge pixel determining device, for by pixel based on each initial edge pixel, determining each of the basic pixel
Whether the neighbor pixel of not processed mistake is edge pixel, and in the case where neighbor pixel is confirmed as edge pixel, will
Pixel based on the neighbor pixel, to perform the definite operation for it, to determine the side where the initial edge pixel
All edge pixels on edge;And
Reading device, for reading the positional information of the initial edge pixel and including each of the initial edge pixel
The pixel characteristic of edge pixel, decompresses the bianry image of the compression with the pixel characteristic according to each edge pixel
Contracting,
Wherein, the pixel characteristic of the read edge pixel is included with the edge pixel of predefined procedure storage
The pixel value of neighbor pixel.
6. image processing equipment according to claim 5, wherein, the reading device includes:
First reading unit, for reading the positional information of the initial edge pixel, with the position according to the initial edge pixel
Information draws the initial edge pixel;And
Second reading unit, the neighbor pixel table of each edge pixel, institute on edge where reading the initial edge pixel
The pixel value that neighbor pixel table is used to store the neighbor pixel of the edge pixel with the predefined procedure is stated, and according to the neighbour
Pixel table, the inside at the edge to being formed by the edge pixel are filled.
7. image processing equipment according to claim 6, wherein, second reading unit includes:
Neighbor pixel draws subelement, for reading the neighbor pixel table of each edge pixel, and according to the neighbor pixel table pair
Each neighbor pixel of the edge pixel is drawn;And
Subelement is filled, for judging whether there is non-drawn neighbor pixel in each neighbor pixel for having drawn pixel, and
In the neighbor pixel that this has drawn pixel there are non-drawn neighbor pixel in the case of, the pixel value of pixel has been drawn with this
Its non-drawn neighbor pixel is drawn, so that the inside at the edge to being formed by each edge pixel is filled.
8. according to the image processing equipment any one of claim 5-7, wherein, the edge pixel determining device is used for
Determine whether its neighbor pixel is edge pixel according to the pixel characteristic of edge pixel.
9. a kind of electronic device, including the image processing equipment according to any one of claim 1-8.
10. electronic device according to claim 9, wherein, the electronic device be mobile phone, computer, tablet computer or
Person's personal digital assistant.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410142752.1A CN104980619B (en) | 2014-04-10 | 2014-04-10 | Image processing equipment and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410142752.1A CN104980619B (en) | 2014-04-10 | 2014-04-10 | Image processing equipment and electronic device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104980619A CN104980619A (en) | 2015-10-14 |
CN104980619B true CN104980619B (en) | 2018-04-13 |
Family
ID=54276688
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410142752.1A Active CN104980619B (en) | 2014-04-10 | 2014-04-10 | Image processing equipment and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104980619B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1083954A (en) * | 1992-09-01 | 1994-03-16 | 寅市和男 | The input-output unit and the method thereof of lteral data, lexicon-illustration data |
CN1545067A (en) * | 2003-11-24 | 2004-11-10 | 宏 廖 | A method for compressing digitalized archive file using computer |
JP2006135596A (en) * | 2004-11-05 | 2006-05-25 | Fuji Xerox Co Ltd | Coder, decoder, data file, coding method, decoding method,and program thereof |
CN101236658A (en) * | 2008-02-28 | 2008-08-06 | 吴韦建 | Binary image compressing method |
CN102982323A (en) * | 2012-12-19 | 2013-03-20 | 重庆信科设计有限公司 | Quick gait recognition method |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7024039B2 (en) * | 2002-04-25 | 2006-04-04 | Microsoft Corporation | Block retouching |
-
2014
- 2014-04-10 CN CN201410142752.1A patent/CN104980619B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1083954A (en) * | 1992-09-01 | 1994-03-16 | 寅市和男 | The input-output unit and the method thereof of lteral data, lexicon-illustration data |
CN1545067A (en) * | 2003-11-24 | 2004-11-10 | 宏 廖 | A method for compressing digitalized archive file using computer |
JP2006135596A (en) * | 2004-11-05 | 2006-05-25 | Fuji Xerox Co Ltd | Coder, decoder, data file, coding method, decoding method,and program thereof |
CN101236658A (en) * | 2008-02-28 | 2008-08-06 | 吴韦建 | Binary image compressing method |
CN102982323A (en) * | 2012-12-19 | 2013-03-20 | 重庆信科设计有限公司 | Quick gait recognition method |
Also Published As
Publication number | Publication date |
---|---|
CN104980619A (en) | 2015-10-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8948445B2 (en) | Embedding visual information in a two-dimensional bar code | |
CN111488149B (en) | Canvas element-based table rendering method and device and computer equipment | |
CN111930697B (en) | Data transmission method, computing equipment and system based on 3D information | |
CN107391145A (en) | AKU preparation method and device, the method and device of upgrade file | |
CN113409437B (en) | Virtual character face pinching method and device, electronic equipment and storage medium | |
CN105912289A (en) | Startup LOGO image conversion and storage method and apparatus, and startup LOGO image displaying method and apparatus | |
WO2018226349A1 (en) | Vector graphics handling processes for user applications | |
CN110113617A (en) | A kind of method and device of compression of images and decompression | |
CN112714357A (en) | Video playing method, video playing device, electronic equipment and storage medium | |
CN105045676A (en) | Device and method for recovering lost data based on SQLite database | |
JP5551660B2 (en) | Computer-implemented method for encoding text into matrix code symbols, computer-implemented method for decoding matrix code symbols, encoder for encoding text into matrix code symbols, and decoder for decoding matrix code symbols | |
CN111061896B (en) | Loading method, device, equipment and medium for 3D (three-dimensional) graph based on glTF (generalized likelihood TF) | |
CN111222611A (en) | Stacking type three-dimensional code encoding method, encoding device, decoding method, decoding device and storage medium based on colors | |
CN106920270B (en) | Animation processing method and device | |
CN104980619B (en) | Image processing equipment and electronic device | |
CN109408191A (en) | Method for updating pages, device, equipment and storage medium | |
CN106339210A (en) | Webpage game data processing method and related device | |
CN104424163B (en) | Literal processing method and system | |
CN108804652B (en) | Method and device for generating cover picture, storage medium and electronic device | |
GB2429311A (en) | System and method for creating a compressed file | |
CN102883232B (en) | Method for adding watermarks in swf documents in batches and device thereof | |
CN105704215B (en) | Shared file system and corresponding document sending method and device | |
CN108989704B (en) | Image generation method and device and terminal equipment | |
CN115795066A (en) | Method and related device for interconversion of iBootim image and PNG image | |
CN104516899B (en) | Character library update method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |