Background technology
(Multi-function peripheral MFP) refers at least in conjunction with scanning, xerox, print and the image processor of two or more functions such as fax multifunctional paper feeding machine.
Photomechanical printing function with regard to multifunctional paper feeding machine, if the image of input has comprised character area and picture region, often the method that needs elder generation to separate with picture and text is distinguished literal and the picture in the image, then could deal with according to its different characteristic respectively, to improve the quality of image output, for example because photosensitive coupling component has the problem of rgb color correction, edge for the black literal is not very sharp, so literal partly can pass through the processing of edge strengthening filter (edge enhancement tilter), and picture partly can be through except that the processing of net filter (de-screening filter) etc.So, the image via output after the above-mentioned processing just is difficult for distortion.
Earlier the picture and text separation is also had following benefit, black literal partly just available black ink/toner replacement prints with the colored ink/toner that mixes, and not only can save output time, also can save printing ink and toner.
Therefore, application for the duplicating machine aspect, the whether distortion major part of image of output depends on the picture and text separating process, for example if in the processing procedure that picture and text separate, former should be that the part of picture is taken as be that literal is handled, making the zone that should remove net filter (de-screening filter) processing originally carry out edge strengthening filter (edge enhancement filter) handles, just can make the picture of image output have the part zone soft inadequately, and may produce the factitious quality of image.
That is to say, if can be in the picture and text separating process, the suitably correct zone of distinguishing picture and literal place in the input image, just image output that can be correct.
The halftone screen technology (screening technique) that present print pictures and literal are utilized, often include amplitude modulation screen technology (AM screening) or frequency modulation screen technology (FM screening), if being the some layout by black, the picture region of utilizing above-mentioned technology print to form forms, when the technology " Level Crossing Density " of utilizing picture and text to separate or " Peak Density " when distinguishing the picture that forms by above-mentioned technology and literal, some layout for this black can often produce erroneous judgement, making in the picture certain partly be taken as is that literal is handled, so the correct image of Chang Wufa output.
Therefore, because above-mentioned problem has better correct image output effect for duplicating machine, scanning machine or multi-function printer are provided for the input image, just need a kind of method and can more effectively distinguish picture and the literal of importing in the image.
Technology contents
In view of above problem, fundamental purpose of the present invention is to provide a kind of method of picture and text separation, when being applied to duplicating machine, scanning machine or multi-function printer, can provide this device to have the effect of minimizing, therefore the input image be had more accurate image output effect for picture in the input image and literal erroneous judgement.
Another object of the present invention is to provide a kind of method of picture and text separation, when being applied to duplicating machine, scanning machine or multi-function printer, can more effectively distinguish picture and literal in the input image, or can active zone tell picture or the literal that forms with amplitude modulation screen technology (AM screening), or can active zone tell the picture that forms with frequency modulation screen technology (FM screening) or literal to reach above-mentioned effect.
Therefore, for reaching above-mentioned purpose, graph separation disclosed in this invention can comprise: obtain grey-tone image; Distinguish a plurality of literal blocks and a plurality of picture block that constitute this grey-tone image; And at the literal block of distinguishing, judge when this literal field piece meets the picture block of amplitude modulation formats, handle this literal field piece in the mode of handling the picture block.
The step that this literal field piece of above-mentioned judgement meets the picture block of amplitude modulation formats comprises: the light intensity distributions that obtains this literal field piece; Level is equidistantly cut apart this literal field piece, to form a plurality of block column; According to the light intensity distributions of first block column, calculate first additive value of this first block column medium wave peak after to the number of trough and trough to the number addition of crest; According to the light intensity distributions of second block column of this first block column below, calculate second additive value of this second block column medium wave peak after to the number of trough and trough to the number addition of crest; The subtraction value of confirming this first additive value and this second additive value increases the total count value that is used for this amplitude modulation formats than presetting first threshold hour; And when confirming this total count value greater than default second threshold value, indicating this literal field piece is the picture block that meets amplitude modulation formats.
Therefore, for reaching above-mentioned purpose, the disclosed graph separation of the present invention can comprise: obtain grey-tone image; Distinguish a plurality of literal blocks and a plurality of picture block that constitute this grey-tone image; And at the literal block of distinguishing, judge when this literal field piece meets the picture block of fm format, handle this literal field piece in the mode of handling the picture block.
The step that this literal field piece of above-mentioned judgement belongs to the picture block of fm format comprises: the light intensity distributions that obtains this literal field piece; Level is equidistantly cut apart this literal field piece, to form a plurality of block column; According to the light intensity distributions of first block column, calculate first additive value of crest in this first block column to the number of trough and trough to the number of crest; According to the light intensity distributions of second block column of this first block column below, calculate second additive value of crest in this second block column to the number of trough and trough to the number of crest; The ratio value of confirming this first additive value and this second additive value is than default first threshold hour, and increase is used for the total count value of this fm format; And when confirming this total count value greater than default second threshold value, indicating this literal field piece is the picture block that meets fm format.
After via above-mentioned picture and text detachment process, just can carry out the softening processing and/or literal is carried out the edge strengthening processing the picture of distinguishing respectively, to strengthen the effect of image output.
Describe the present invention below in conjunction with the drawings and specific embodiments, but it is not as a limitation of the invention.
Embodiment
The main method process flow diagram of graph separation of the present invention may further comprise the steps as shown in Figure 1:
Step 100: input RGB chromatic image;
Step 101: the YCC format image that is converted to GTG;
Step 102: distinguish literal block and picture block in this YCC format image;
Step 103: judge this literal field piece whether be AM half-tone picture sheet block or FM half-tone picture sheet block one of them;
Step 104:, then this literal field piece is carried out edge strengthening (edgeenhancement) and handle if be the literal block still;
Step 105: if the picture block then carries out softening (smoothing) to this picture block and handles.
Last literal block after treatment and picture block just can be in conjunction with to export.
The detailed process process of above-mentioned main flow process neutron flow process below will be described respectively.
Following image processing process is to be unit with the block, and this image block is made of array of pixels.And the block size that can obtain for example can be 8 * 8,16 * 16,32 * 32 or 64 * 64, but can support the degree of handling to decide on market hardware in the practical application, but not only limits to treatable block size mentioned herein.
In the above-mentioned method of distinguishing this YCC format image Chinese words block and picture block (step 102), comprise the image block of earlier the YCC format image after the conversion being obtained a fixed size, obtain the light intensity value of each pixel in this block, can utilize existing then " Level Crossing Density " method or " PeakDensity " method tells wherein literal block and picture block according to the gained data field.Therefore this two method is all prior art, only outlines its method notion below.
Level is intersected density " Level Crossing Density " main concept in the method be the literal block with the picture block in different above the number of pixels of a fixed light intensity threshold (threshold), in general, have in the picture block can be than in the literal block above the number of pixels of the light intensity of this threshold value many, therefore, can determine just that by the number of pixels of adding up in a certain block size that surpasses this threshold value this block is literal block or picture block.
Peak density " Peak Density " main concept in the method is, calculate the crest/trough number value of vertical direction in a certain block and horizontal direction in the mode of statistics, and the value that draws according to its addition and a threshold ratio to decide this block be literal block or picture block.
The picture part that whether contains the printing of amplitude modulation screen technology (AM screening) or frequency modulation screen technology (FM screening) in the literal block that the present invention utilizes following step to confirm to distinguish.
Judge that whether this literal field piece is in one of them the step of AM half-tone picture sheet block or FM half-tone picture sheet block (step 103), can comprise and judge whether this literal field piece is the step of AM half-tone picture sheet block, and judge that whether this literal field piece is the step of FM half-tone picture sheet block, below will describe its method flow respectively in detail with the 2nd figure and the 3rd figure respectively.
Judge this literal field piece whether be AM half-tone picture sheet block method flow as shown in Figure 2, it may further comprise the steps:
Step 200: receive the literal block, obtain comprising in this literal field piece the light intensity of pixel, the block behavior unit of equidistantly cutting apart with level, according to the light intensity distributions that comprises pixel in the present processing block column, calculate the number of this block column medium wave peak to the number of trough and trough to crest;
Step 201:, draw one first additive value with the addition of these two values.When beginning to handle this block, this is handled block column at present and can be first block column, also can begin to handle from other block column.Then, next bar block column is made same thing, calculate second additive value of second block column;
Step 202: first additive value and second additive value subtracted each other draw first difference;
Step 203: this first difference is compared with a first threshold;
Step 204: if littler than first threshold, the AM counter increases by 1, otherwise the AM counter is constant;
Step 205: confirm that all block column are finished all in this block;
The total value that step 206:AM counter obtains at this block bring with second threshold ratio;
Step 207: compare the total value and second threshold value;
Step 208: if less than second threshold value, then this block can be denoted as the literal field piece and continues and can carry out edge strengthening (edge enhancement) and handle (step 104 among the 1st figure);
Step 209: if greater than second threshold value then this block just can be denoted as the picture block of AM shadow tone, continue and can carry out for example removing picture softening (smoothing) processing procedure (step 105 among the 1st figure) that net (de-screening) is handled.
Step 210: in step 205,, can further move on to next block column, and get back to step 200 and carry out continuing if when confirming that this block column is not last block column.
Judge this literal field piece whether be FM half-tone picture sheet block method flow as shown in Figure 3, may further comprise the steps:
Step 300: receive the literal block, obtain comprising in this literal field piece the light intensity of pixel, the block behavior unit of equidistantly cutting apart with level, according to the light intensity distributions that comprises pixel in the present processing block column, calculate the number of this block column medium wave peak to the number of trough and trough to crest;
Step 301: these two values are divided by, draw one first ratio value.When beginning to handle this block, this is handled block column at present and can be first block column, also can begin to handle from other block column.Then, next bar block column is made same thing, calculate second ratio value of second block column;
Step 302: first ratio value and second ratio value subtracted each other draw second difference;
Step 303: this second difference is compared with a first threshold;
Step 304: if littler than first threshold, the FM counter increases by 1, otherwise the FM counter is constant;
Step 305: confirm that all block column are finished all in this block;
The total value that step 306:FM counter obtains at this block bring with second threshold ratio;
Step 307: compare the total value and second threshold value;
Step 308: if less than second threshold value, then this block can be denoted as the literal field piece, continues and can carry out edge strengthening (edge enhancement) processing (step 104 among the 1st figure);
Step 309: if greater than second threshold value then this block just can be denoted as the picture block of FM shadow tone, continue and can carry out for example removing picture softening (smoothing) processing procedure (step 105 among the 1st figure) that net (de-screening) is handled.
Step 310: in step 205,, can further move on to next block column, and get back to step 300 and carry out continuing if when confirming that this block column is not last block column.
In the main method process flow diagram described in above-mentioned the 1st figure, though with judge this literal field piece whether be AM half-tone picture sheet block or FM half-tone picture sheet block one of them as preferred embodiment, but in the practical application, this step is substitutable for judges whether this literal field piece is AM half-tone picture sheet block merely, perhaps be replaced by and judge that whether this literal field piece is FM half-tone picture sheet block, not necessarily will comprise this both determining step simultaneously merely.
In addition, judge that whether this literal field piece is (seeing also the 2nd figure) in the step of AM half-tone picture sheet block, and judge that whether this literal field piece is (seeing also the 3rd figure) in the step of FM half-tone picture sheet block, all comprise and begin to calculate the step of present processing block column medium wave peak to the number of trough and trough to the number of crest, therefore if to judge that whether this literal field piece is that one of them step of AM half-tone picture sheet block or FM half-tone picture sheet block is as preferred embodiment, needn't comprise twice calculating in its flow process and handle the step of block column medium wave peak at present to the number of trough and trough to the number of crest, in other words, can only comprise in this preferred embodiment once to calculate and handle the step of block column medium wave peak at present to the number of trough and trough to the number of crest.
Aforementioned first threshold can be made by oneself by manufacturer.In addition, above-mentioned second threshold value can be made by oneself by manufacturer, and it is preferably greater than 1/2nd of the block column that is comprised in this block, if 16 * 16 block for example, what second threshold value was preferable preferably is 8.
Moreover whether above-mentioned crest can judge that greater than one the 3rd threshold value the 3rd threshold value can be made by oneself to the judgement of trough or trough according to its value that rises continuously or descend to the judgement of crest, for example is 2,3,4 or 5 etc.
Comprehensive the above, in the time of can finding to utilize the present invention to be applied to duplicating machine, scanning machine or multi-function printer, whether picture or the literal that forms with amplitude modulation screen technology (AM screening) is provided in the literal block that can provide said apparatus to have to confirm to import in the image, or with the picture of frequency modulation screen technology (FMscreening) formation or the effect of literal, in other words, more can distinguish picture and literal in the input image effectively, therefore by the present invention, just can provide said apparatus to produce the more tame output of image accurately for the input image.
Certainly; the present invention also can have other various embodiments; under the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art work as can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection domain of the appended claim of the present invention.