Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making all other embodiment that obtained under the creative work prerequisite.
For the advantage that makes technical solution of the present invention is clearer, the present invention is elaborated below in conjunction with drawings and Examples.
Embodiment one
Present embodiment provides a kind of FMAM network control method, and as shown in Figure 1, described FMAM network control method comprises:
101, generate first electric-wave filter matrix and second electric-wave filter matrix;
102, initialization dyeing matrix, threshold matrix, threshold value, dye black probability matrix and dye white probability matrix;
103, according to described dyeing matrix, dye the black probability matrix and first electric-wave filter matrix, select to wait to dye black pixel, polish described pixel black;
104, according to described through the dyeing matrix after once upgrading, dye the white probability matrix and second electric-wave filter matrix, select to wait to dye white pixel, polish described pixel white;
105, judge whether all pixels all are colored, if also have pixel not to be colored, repeated execution of steps 103-104 then, otherwise finish.
Embodiment of the invention FMAM network control method, at first generate first electric-wave filter matrix and second electric-wave filter matrix, and initialization dyeing matrix, threshold matrix, threshold value, dye black probability matrix and dye white probability matrix, according to described dyeing matrix, dye the black probability matrix and first electric-wave filter matrix, selection waits to dye black pixel, polish described pixel black, according to described through the dyeing matrix after once upgrading, dye the white probability matrix and second electric-wave filter matrix, selection waits to dye white pixel, polish described pixel white, and repeat above-mentioned dyeing course, all be colored until all pixels.Compared with prior art, the present invention has adopted double filter mechanism, and threshold matrix is divided into two sections of front and back, adopts different filters respectively, make the amplitude modulation characteristic of high light part and shadow frequency-modulation halftone dot partly distinguish to some extent, thereby can satisfy the demand of different output equipments.
Embodiment two
As shown in Figure 2, described FMAM network control method comprises:
201, generate two electric-wave filter matrix F
BlackAnd F
White, wherein, two electric-wave filter matrix are W * H, the first electric-wave filter matrix F
BlackBe electric-wave filter matrix according to formula (1) generting element:
The second electric-wave filter matrix F
WhiteBe electric-wave filter matrix according to formula (2) generting element:
Wherein, W is the threshold matrix width, and H is the threshold matrix height, x ∈ [1, W], y ∈ [1, H];
In the present embodiment, threshold matrix width W=9, threshold matrix height H=9, filter function f
1As the formula (3), filter function f
2As the formula (4):
Thereby, the first electric-wave filter matrix F of generation
BlackShown in Fig. 3 a, the second electric-wave filter matrix F of generation
WhiteShown in Fig. 3 b.
202, initialization dyeing matrix B is specially: B[x, y]=0, all pixels all are set to the state of being unstained; Wherein, B[x, y]=0 represent pixel [x, y] is not colored B[x, y]=-1 represent pixel [x, y] dyed black, B[x, y]=1 represent pixel [x, y] is dyed white;
Initialization threshold matrix T is specially: T[x, y]=0, elements all in the threshold matrix all is changed to 0;
Wherein, x ∈ [1, W], y ∈ [1, H], and all be integer;
Initialization threshold value Threshold is specially: Threshold=1;
Thereby, the dyeing matrix B after the initialization as shown in Figure 4, the threshold matrix T after the initialization is as shown in Figure 5.
203, black probability matrix M is dyed in initialization
Black, be specially: M
Black[x, y]=0.0; Wherein, M
Black[x, y] is that pixel [x, y] is dyed black probability, M
BlackOn behalf of all pixels, [x, y]=0.0 dyed black probability is identical;
White probability matrix M is dyed in initialization
White, be specially: M
White[x, y]=0.0; Wherein, M
White[x, y] is that pixel [x, y] is dyed white probability, M
WhiteOn behalf of all pixels, [x, y]=0.0 dyed white probability is identical;
Wherein, x ∈ [1, W], y ∈ [1, H], and all be integer;
Thereby dying after the initialization deceived probability matrix M
BlackShown in Fig. 6 a, dye white probability matrix M after the initialization
WhiteShown in Fig. 6 b.
204, dying black probability matrix M
BlackMiddle minimum value and the corresponding pixel coordinate [M_black, n_black] thereof sought, processing method is as follows:
Seek pixel coordinate [m_black, n_black], make B[m_black, n_black]=0, and M
Black[m_black, n_black]=min{M
Black, then [m_black, n_black] is exactly the next black pixel that soon dyed;
Because the M after the initialization
Black[x, y]=0.0, also promptly all pixels to be dyed black probability be identical, therefore, at the circulation time selected at random pixel coordinate first time [m_black, n_black]=[5,4], then pixel [5,4] is exactly the next black point that soon dyed.
205, it is black with pixel coordinate to be that the pixel of [m_black, n_black]=[5,4] is polished, and the specific implementation method is: make B[m_black, n_black]=-1, since [m_black, n_black]=[5,4], therefore, B[5,4]=-1, thereby the dyeing matrix B after the renewal is shown in Fig. 7 a;
Threshold matrix T is carried out assignment, is specially: T[m_black, n_black]=Threshold, the element assignment that just with coordinate among the threshold matrix T is [m_black, n_black] is Threshold, because [m_black, n_black]=[5,4], and Threshold=1, therefore, T[5,4]=and Threshold=1, thus the threshold matrix T after the renewal is shown in Fig. 7 b;
To dying black probability matrix M
BlackCarry out assignment, be specially: M
Black[m_black, n_black]=∞, so that can be not selected in pixel [m_black, the n_black] circulation afterwards, because [m_black, n_black]=[5,4], therefore, M
Black[5,4]=∞.
206, as shown in Figure 9, superimposed M
BlackWith F
Black, and translation F
Black, make M
BlackMiddle coordinate is the element and the F of [m_black, n_black]
BlackMiddle coordinate is
The element correspondence, for the M after upgrading
Black, the element in the matrix [x ', y '] the following corresponding relation of tool:
After unrolling according to method shown in Figure 8, M
BlackWith F
BlackCorresponding matrix element addition, concrete grammar is: M
Black[x ', y ']=M
Black[x ', y ']+F
Black[x, y], thereby, in circulation for the first time, when pixel [5,4] dyed black after, dying black probability matrix M after obtaining upgrading
BlackShown in Fig. 7 c.
207, dying white probability matrix M
WhiteMiddle minimum value and the corresponding pixel coordinate [m_white, n_white] thereof sought, processing method is as follows:
Seek pixel coordinate [m_white, n_white], make B[m_white, n_white]=0, and M
White[m_white, n_white]=min{M
White, then [m_white, n_white] is exactly the next white pixel that soon dyed;
Because the M after the initialization
White[x, y]=0.0, also promptly all pixels to be dyed white probability be identical, therefore, at the circulation time selected at random pixel coordinate first time [m_white, n_white]=[4,6], then pixel [4,6] is exactly the next white point that soon dyed.
208, it is white with pixel coordinate to be that the pixel of [m_white, n_white]=[4,6] is polished, and the specific implementation method is: make B[m_white, n_white]=1, since [m_white, n_white]=[4,6], therefore, B[4,6]=1, thereby the dyeing matrix B after upgrading once more is shown in Fig. 8 a;
Threshold matrix T is carried out assignment, is specially: T[m_white, n_white]=W*H-Threshold+1, the element assignment that just with coordinate among the threshold matrix T is [m_white, n_white] is W*H-Threshold+1, because [m_white, n_white]=[4,6], and W=9, H=9, Threshold=1, therefore, T[4,6]=and W*H-Threshold+1=81, thus the threshold matrix T after upgrading once more is shown in Fig. 8 b;
To dying white probability matrix M
WhiteCarry out assignment, be specially: M
White[m_white, n_white]=∞, so that can be not selected in pixel [m_white, the n_white] circulation afterwards, because [m_white, n_white]=[4,6], therefore, M
White[4,6]=∞.
209, as shown in Figure 9, superimposed M
WhiteWith F
White, and translation F
White, make M
WhiteMiddle coordinate is the element and the F of [m_white, n_white]
WhiteMiddle coordinate is
The element correspondence, for the M after upgrading
White, the element in the matrix [x ', y '] has following corresponding relation:
After unrolling according to method shown in Figure 8, M
WhiteWith F
WhiteCorresponding matrix element addition, concrete grammar is: M
White[x ', y ']=M
White[x ', y ']+F
White[x, y], thereby, in circulation for the first time, when pixel [4,6] dyed white after, dye white probability matrix M after being upgraded once more
WhiteShown in Fig. 8 c.
210, threshold value Threshold is specially from adding 1: Threshold=Threshold+1, thereby, after the loop ends first time, Threshold=2.
211, judging that whether also having element in the described dyeing matrix B is 0, is 0 if also have element in the described dyeing matrix B, shows that then pixel is not colored in addition; If not having element in the described dyeing matrix B is 0, then all pixels all are colored;
When also having element to be 0 in the described dyeing matrix B, repeated execution of steps 204-210, until all pixels all dyed white or dye black, that is: for all x ∈ [1, W], y ∈ [1, H] works as B[x, y]=-1 or B[x, y]=1 o'clock, loop ends obtains final threshold matrix T as shown in figure 10.
Embodiment of the invention FMAM network control method, at first generate first electric-wave filter matrix and second electric-wave filter matrix, and initialization dyeing matrix, threshold matrix, threshold value, dye black probability matrix and dye white probability matrix, according to described dyeing matrix, dye the black probability matrix and first electric-wave filter matrix, selection waits to dye black pixel, polish described pixel black, according to described through the dyeing matrix after once upgrading, dye the white probability matrix and second electric-wave filter matrix, selection waits to dye white pixel, polish described pixel white, and repeat above-mentioned dyeing course, all be colored until all pixels.Compared with prior art, the present invention has adopted double filter mechanism, and threshold matrix is divided into two sections of front and back, adopts different filters respectively, make the amplitude modulation characteristic of high light part and shadow frequency-modulation halftone dot partly distinguish to some extent, thereby can satisfy the demand of different output equipments.
Embodiment three
Present embodiment provides a kind of FMAM network control method, and the implementation procedure of described FMAM network control method specifically can be with reference to embodiment two; Different with embodiment two is, in the present embodiment, and threshold matrix width W=64, threshold matrix height H=64.Obtain final threshold matrix shown in Figure 11 a, the method for expressing of the image conversion that described threshold matrix adopts, in described threshold matrix, the place that gray scale is dark more, element value is more little, the place that gray scale is shallow more, element value is big more.
Correspondingly, gray value be 20 two values matrix shown in Figure 11 b, gray value is that 235 two values matrix is shown in Figure 11 c;
Wherein, described gray value is that the acquisition methods of 20 two values matrix is: for each element in the threshold matrix, if this element greater than 20, then exports 255, otherwise export 0;
Equally, described gray value is that the acquisition methods of 235 two values matrix is: for each element in the threshold matrix, if this element greater than 235, then exports 255, otherwise export 0.
By Figure 11 a, Figure 11 b and Figure 11 c as can be seen, the size of highlight area and amplitude modulation site, shadow zone is obviously different, can satisfy actual output demand.
Embodiment four
Present embodiment provides a kind of FMAM network control system device, and as shown in figure 12, described FMAM network control system device comprises:
Generation module 121 is used to generate first electric-wave filter matrix and second electric-wave filter matrix;
Initialization module 122 is used for initialization dyeing matrix, threshold matrix, dyes black probability matrix and dyes white probability matrix;
Dye black module 123, be used for according to described dyeing matrix, dye the black probability matrix and first electric-wave filter matrix, select to wait to dye black pixel, polish described pixel black;
Dye white module 124, be used for according to described through the dyeing matrix after once upgrading, dye the white probability matrix and second electric-wave filter matrix, select to wait to dye white pixel, polish described pixel white;
Judge module 125 is used to judge whether all pixels all are colored;
Particularly, described judge module 125 judges that whether also having element in the described dyeing matrix is 0, is 0 if also have element in the described dyeing matrix, shows that then pixel is not colored in addition; If not having element in the described dyeing matrix is 0, then all pixels all are colored; When also having element to be 0 in the described dyeing matrix B, dye black module 123 and select to wait to dye black pixel by described, described pixel is polished black, and dye white module 124 and select to wait to dye white pixel by described, polish described pixel white.
Embodiment of the invention FMAM network control system device, at first generate first electric-wave filter matrix and second electric-wave filter matrix, and initialization dyeing matrix, threshold matrix, threshold value, dye black probability matrix and dye white probability matrix, according to described dyeing matrix, dye the black probability matrix and first electric-wave filter matrix, selection waits to dye black pixel, polish described pixel black, according to described through the dyeing matrix after once upgrading, dye the white probability matrix and second electric-wave filter matrix, selection waits to dye white pixel, polish described pixel white, and repeat above-mentioned dyeing course, all be colored until all pixels.Compared with prior art, the present invention has adopted double filter mechanism, and threshold matrix is divided into two sections of front and back, adopts different filters respectively, make the amplitude modulation characteristic of high light part and shadow frequency-modulation halftone dot partly distinguish to some extent, thereby can satisfy the demand of different output equipments.
Embodiment five
As shown in figure 13, described FMAM network control system device comprises:
Generation module 131 is used to generate first electric-wave filter matrix and second electric-wave filter matrix;
Initialization module 132 is used for initialization dyeing matrix, threshold matrix, dyes black probability matrix and dyes white probability matrix;
Dye black module 133, be used for according to described dyeing matrix, dye the black probability matrix and first electric-wave filter matrix, select to wait to dye black pixel, polish described pixel black;
Dye white module 134, be used for according to described through the dyeing matrix after once upgrading, dye the white probability matrix and second electric-wave filter matrix, select to wait to dye white pixel, polish described pixel white;
Judge module 135 is used to judge whether all pixels all are colored;
Particularly, described judge module 135 judges that whether also having element in the described dyeing matrix is 0, is 0 if also have element in the described dyeing matrix, shows that then pixel is not colored in addition; If not having element in the described dyeing matrix is 0, then all pixels all are colored; When also having element to be 0 in the described dyeing matrix B, dye black module 133 and select to wait to dye black pixel by described, described pixel is polished black, and dye white module 134 and select to wait to dye white pixel by described, polish described pixel white.
Wherein, described initialization module 132 comprises:
First initialization unit 1321 is used for the element of dyeing matrix B all is set to 0, and wherein, element is that 0 remarked pixel is in the state of being unstained in the described dyeing matrix B;
Second initialization unit 1322 is used for all elements of threshold matrix T all is set to 0;
The 3rd initialization unit 1323 is used for threshold value Threshold and is set to 1;
The 4th initialization unit 1324 is used for and will dyes black probability matrix M
BlackIn all elements all be changed to 0.0;
The 5th initialization unit 1325 is used for and will dyes white probability matrix M
WhiteIn all elements all be changed to 0.0.
Wherein, describedly dye black module 133 and comprise:
First selected cell 1331 is used for deceiving probability matrix M according to described dyeing matrix B with dying
Black, select to be unstained and to dye the pixel of black probability minimum;
Dye black unit 1332, be used for described pixel is polished black, obtain through dyeing matrix B and threshold matrix T after once upgrading;
First acquiring unit 1333 is used for deceiving probability matrix M according to described dying
BlackWith the first electric-wave filter matrix F
Black, obtain through the black probability matrix M that dyes after once upgrading
Black
Wherein, describedly dye white module 134 and comprise:
Second selected cell 1341 is used for according to described through the dyeing matrix B after once upgrading with dye white probability matrix M
White, select to be unstained and to dye the pixel of white probability minimum;
Dye white unit 1342, be used for described pixel is polished white, obtain through dyeing matrix B and threshold matrix T after upgrading once more;
Second acquisition unit 1343 is used for dying white probability matrix M according to described
WhiteWith the second electric-wave filter matrix F
White, obtain through the white probability matrix M that dyes after upgrading once more
White
Threshold value is used for described threshold value Threshold from adding 1 from adding unit 1344.
Embodiment of the invention FMAM network control system device, at first generate first electric-wave filter matrix and second electric-wave filter matrix, and initialization dyeing matrix, threshold matrix, threshold value, dye black probability matrix and dye white probability matrix, according to described dyeing matrix, dye the black probability matrix and first electric-wave filter matrix, selection waits to dye black pixel, polish described pixel black, according to described through the dyeing matrix after once upgrading, dye the white probability matrix and second electric-wave filter matrix, selection waits to dye white pixel, polish described pixel white, and repeat above-mentioned dyeing course, all be colored until all pixels.Compared with prior art, the present invention has adopted double filter mechanism, and threshold matrix is divided into two sections of front and back, adopts different filters respectively, make the amplitude modulation characteristic of high light part and shadow frequency-modulation halftone dot partly distinguish to some extent, thereby can satisfy the demand of different output equipments.
The above-mentioned method embodiment that provides can be provided the FMAM network control system device that the embodiment of the invention provides.FMAM network control method that the embodiment of the invention provides and device go for printer and high-grade plate making equipment, but are not limited only to this.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in the foregoing description method, be to instruct relevant hardware to finish by computer program, described program can be stored in the computer read/write memory medium, this program can comprise the flow process as the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only storage memory body (Read-Only Memory, ROM) or at random store memory body (Random Access Memory, RAM) etc.
The above; only be the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.