CN106791269B - A kind of generation of halftone threshold matrix and device - Google Patents

A kind of generation of halftone threshold matrix and device Download PDF

Info

Publication number
CN106791269B
CN106791269B CN201611189845.5A CN201611189845A CN106791269B CN 106791269 B CN106791269 B CN 106791269B CN 201611189845 A CN201611189845 A CN 201611189845A CN 106791269 B CN106791269 B CN 106791269B
Authority
CN
China
Prior art keywords
unit
threshold value
added
site
designated identification
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
Application number
CN201611189845.5A
Other languages
Chinese (zh)
Other versions
CN106791269A (en
Inventor
马杨晓
孙燕
熊丹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuhai Pantum Electronics Co Ltd
Original Assignee
Zhuhai Seine Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhuhai Seine Technology Co Ltd filed Critical Zhuhai Seine Technology Co Ltd
Priority to CN201611189845.5A priority Critical patent/CN106791269B/en
Publication of CN106791269A publication Critical patent/CN106791269A/en
Application granted granted Critical
Publication of CN106791269B publication Critical patent/CN106791269B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/40Picture signal circuits
    • H04N1/405Halftoning, i.e. converting the picture signal of a continuous-tone original into a corresponding signal showing only two levels
    • H04N1/4055Halftoning, i.e. converting the picture signal of a continuous-tone original into a corresponding signal showing only two levels producing a clustered dots or a size modulated halftone pattern

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Image Processing (AREA)

Abstract

The embodiment of the invention provides the generation methods and device of a kind of halftone threshold matrix.On the one hand, this method comprises: obtaining the halftone threshold matrix parameter of user's input;According to the halftone threshold matrix parameter, generates threshold value and fill concordance list;Concordance list is filled according to the threshold value, generates the halftone threshold matrix comprising at least one threshold value.Halftone threshold matrix can be automatically generated according to the halftone threshold matrix parameter that user inputs in embodiments of the present invention, complicated processes when eliminating because designing the halftone threshold matrix and constantly debugging manually improve design efficiency.

Description

A kind of generation of halftone threshold matrix and device
[technical field]
The present invention relates to the generation of technical field of image processing more particularly to a kind of halftone threshold matrix and devices.
[background technique]
It is by the pixel of each pixel in image data when carrying out halftoning halftone processing to image data Value is compared with specified threshold respectively, and each pixel in image data works as pixel after halftone is handled Pixel value be more than or equal to the specified threshold when, then the pixel value of the pixel is set as " 1 ", when the picture of the pixel When element value is less than the specified threshold, then the pixel value of the pixel is set as " 0 ".
In the prior art, it when carrying out halftone processing to image data, needs to design one to the image data Halftone threshold matrix, also, often the number of threshold value can be less than the picture in image data in the halftone threshold matrix The number of vegetarian refreshments needs the process demand according to the image data, when designing the halftone threshold matrix for the picture number It include multiple threshold values, benefit in the halftone threshold matrix according to design one specific targetedly halftone threshold matrix Halftone processing can be carried out simultaneously to multiple pixels in image data with these threshold values, it then will be in image data The pixel value of pixel and the threshold value comparison size in halftone threshold matrix utilize the halftone threshold matrix of design Halftone processing can be carried out to a part of data in image data simultaneously.
When designing the halftone threshold matrix for the image data, need continuous to the halftone threshold matrix Debugging, to obtain the halftone threshold matrix that can satisfy practical halftone process demand.
In realizing process of the present invention, at least there are the following problems in the prior art for inventor's discovery:
In the prior art, when designing the halftone threshold matrix and constantly debugging, process is relatively complicated, design Efficiency is lower.
[summary of the invention]
In view of this, the embodiment of the invention provides the generation method and device of a kind of halftone threshold matrix, to Solve in the prior art to the halftone threshold matrix design and constantly debugging when, process is relatively complicated, design efficiency compared with Low problem.
In a first aspect, the embodiment of the invention provides a kind of generation method of halftone threshold matrix, the method packet It includes:
Obtain the halftone threshold matrix parameter of user's input;
According to the halftone threshold matrix parameter, generates threshold value and fill concordance list;
Concordance list is filled according to the threshold value, generates the halftone threshold matrix comprising at least one threshold value.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation, it is described Halftone threshold matrix parameter includes: unit angle of halftone screen line, unit dot shape, element mesh dot frequency and image to be processed Locating depth.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation, it is described according to institute Halftone threshold matrix parameter is stated, threshold value is generated and fills concordance list, comprising:
According to the element mesh dot frequency, generation unit site, wherein the unit site carries at least one threshold value Fills unit;
According to the unit dot shape, position of the corresponding threshold value fills unit of pixel in the unit site is determined It sets;
It is corresponding in the unit site according to position of the corresponding threshold value fills unit of pixel in the unit site Designated identification is added at position;
According to added with the unit site of designated identification, the element mesh dot frequency, the unit dot shape, it is described to The locating depth of processing image and the unit angle of halftone screen line generate the threshold value filling concordance list.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation, the basis add Added with the unit site of designated identification, the element mesh dot frequency, the locating depth of the unit dot shape, the image to be processed With the unit angle of halftone screen line, the threshold value filling concordance list is generated, comprising:
According to the element mesh dot frequency and the unit dot shape, determine in the unit site added with designated identification The number of threshold value fills unit added with designated identification;
According to being added with designated identification in the locating depth of the image to be processed and the unit site added with designated identification The number of threshold value fills unit determines the number of the unit site added with designated identification according to default value rule, wherein The value of unit site number added with designated identification is positive integer;
According to the number of the unit site added with designated identification and the unit angle of halftone screen line, with one added with specified On the basis of the unit site of mark, according to default splicing arrangement mode, to the element mesh added with designated identification of corresponding number Point carries out splicing arrangement two-by-two, determines the splicing arrangement mode of the unit site added with designated identification of corresponding number;
According to the splicing arrangement mode of the unit site added with designated identification of corresponding number, to added with designated identification Element mesh point carry out splicing arrangement, generate threshold value filling concordance list.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation, described pair of correspondence The element mesh point added with designated identification of number carries out splicing arrangement two-by-two, comprising:
Splicing two-by-two is carried out using element mesh point added with designated identification of the following formula to corresponding number to arrange:
Y_Offset=tan (Angle) * X_Offset;
Wherein, Y_Offset is added with designated identification for one in two adjacent unit sites added with designated identification Unit site central pixel point to another added with designated identification unit site central pixel point in vertical direction On offset;X_Offset is added with designated identification for one in two adjacent unit sites added with designated identification The central pixel point of unit site is added with the central pixel point of the unit site of designated identification in the horizontal direction to another Offset, wherein the value of X_Offset is equal with the columns of threshold value fills unit;Angle is the unit angle of halftone screen line.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation, it is described according to institute Threshold value filling concordance list is stated, the halftone threshold matrix comprising at least one threshold value is generated, comprising:
The value range for obtaining the number N, the N of threshold value fills unit in the threshold value filling concordance list is positive integer;
Judge whether N is equal to specified numerical value, wherein the specified numerical value is 2^bit, and bit is the image to be processed Locating depth;
If N is equal to the specified numerical value, the threshold filled in each threshold value fills unit of the threshold value filling concordance list is determined The range of value is greater than or equal to 0, is less than or equal to N-1, and according to default fill order, fills and index in the threshold value Threshold value is added in each threshold value fills unit of table, to generate the halftone threshold matrix for including at least one threshold value;
If N is not equal to the specified numerical value, determines and fill in each threshold value fills unit of threshold value filling concordance list The range of threshold value is greater than or equal to 0, is less than or equal to w*N, and according to default fill order, fills rope in the threshold value Draw in each threshold value fills unit of table and adds threshold value, wherein w=(2^bit-1)/N, to generate comprising at least one threshold value Halftone threshold matrix;
Wherein, the threshold value filled in the threshold value fills unit added with designated identification is less than the threshold value for being not added with designated identification The threshold value filled in fills unit, and addition threshold value is different in each threshold value fills unit of threshold value filling concordance list.
A technical solution in above-mentioned technical proposal have the following beneficial effects: in embodiments of the present invention, due to After the halftone threshold matrix parameter for getting user's input, threshold can be generated according to the halftone threshold matrix parameter Value filling concordance list, and concordance list is filled according to the threshold value, the halftone threshold matrix comprising at least one threshold value is generated, because This can automatically generate halftone threshold value according to the halftone threshold matrix parameter that user inputs in embodiments of the present invention Matrix, complicated processes when eliminating because designing the halftone threshold matrix and constantly debugging manually, improves design effect Rate.
Second aspect, the embodiment of the invention provides a kind of generating means of halftone threshold matrix, described device packets It includes:
Acquiring unit, for obtaining the halftone threshold matrix parameter of user's input;
Concordance list generation unit, for generating threshold value and filling concordance list according to the halftone threshold matrix parameter;
Threshold matrix generation unit is generated for filling concordance list according to the threshold value comprising at least one threshold value Halftone threshold matrix.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation, it is described Halftone threshold matrix parameter includes: unit angle of halftone screen line, unit dot shape, element mesh dot frequency and image to be processed Locating depth.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation, the concordance list Generation unit is used to when generating threshold value filling concordance list, be specifically used for according to the halftone threshold matrix parameter:
According to the element mesh dot frequency, generation unit site, wherein the unit site carries at least one threshold value Fills unit;
According to the unit dot shape, position of the corresponding threshold value fills unit of pixel in the unit site is determined It sets;
It is corresponding in the unit site according to position of the corresponding threshold value fills unit of pixel in the unit site Designated identification is added at position;
According to the unit site added with designated identification, the element mesh dot frequency, the locating depth of the image to be processed, institute State image to be processed locating depth and the unit angle of halftone screen line, generate threshold value filling concordance list.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation, the concordance list Generation unit be used for according to added with the unit site of designated identification, the element mesh dot frequency, the image to be processed position The locating depth of deep, described image to be processed and the unit angle of halftone screen line are specifically used for when generating the threshold value filling concordance list:
According to the element mesh dot frequency and the unit dot shape, determine in the unit site added with designated identification The number of threshold value fills unit added with designated identification;
According to being added with designated identification in the locating depth of the image to be processed and the unit site added with designated identification The number of threshold value fills unit determines the number of the unit site added with designated identification according to default value rule, wherein The value of unit site number added with designated identification is positive integer;
According to the number of the unit site added with designated identification and the unit angle of halftone screen line, with one added with specified On the basis of the unit site of mark, according to default splicing arrangement mode, to the element mesh added with designated identification of corresponding number Point carries out splicing arrangement two-by-two, determines the splicing arrangement mode of the unit site added with designated identification of corresponding number;
According to the splicing arrangement mode of the unit site added with designated identification of corresponding number, to added with designated identification Element mesh point carry out splicing arrangement, generate threshold value filling concordance list.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation, the concordance list When generation unit is used to carry out the element mesh point added with designated identification of corresponding number splicing arrangement two-by-two, it is specifically used for:
Splicing two-by-two is carried out using element mesh point added with designated identification of the following formula to corresponding number to arrange:
Y_Offset=tan (Angle) * X_Offset;
Wherein, Y_Offset is added with designated identification for one in two adjacent unit sites added with designated identification Unit site central pixel point to another added with designated identification unit site central pixel point in vertical direction On offset;X_Offset is added with designated identification for one in two adjacent unit sites added with designated identification The central pixel point of unit site is added with the central pixel point of the unit site of designated identification in the horizontal direction to another Offset, wherein the value of X_Offset is equal with the columns of threshold value fills unit;Angle is the unit angle of halftone screen line.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation, the threshold value square Battle array generation unit is used to fill concordance list according to the threshold value, generates the halftone threshold matrix comprising at least one threshold value When, it is specifically used for:
The value range for obtaining the number N, the N of threshold value fills unit in the threshold value filling concordance list is positive integer;
Judge whether N is equal to specified numerical value, wherein the specified numerical value is 2^bit, and bit is the image to be processed Locating depth;
If N is equal to the specified numerical value, the threshold filled in each threshold value fills unit of the threshold value filling concordance list is determined The range of value is greater than or equal to 0, is less than or equal to N-1, and according to default fill order, fills and index in the threshold value Threshold value is added in each threshold value fills unit of table, to generate the halftone threshold matrix for including at least one threshold value;
If N is not equal to the specified numerical value, determines and fill in each threshold value fills unit of threshold value filling concordance list The range of threshold value is greater than or equal to 0, is less than or equal to w*N, and according to default fill order, fills rope in the threshold value Draw in each threshold value fills unit of table and adds threshold value, wherein w=(2^bit-1)/N, to generate comprising at least one threshold value Halftone threshold matrix;
Wherein, the threshold value filled in the threshold value fills unit added with designated identification is less than the threshold value for being not added with designated identification The threshold value filled in fills unit, and addition threshold value is different in each threshold value fills unit of threshold value filling concordance list.
A technical solution in above-mentioned technical proposal have the following beneficial effects: in embodiments of the present invention, due to After the halftone threshold matrix parameter for getting user's input, threshold can be generated according to the halftone threshold matrix parameter Value filling concordance list, and concordance list is filled according to the threshold value, the halftone threshold matrix comprising at least one threshold value is generated, because This can automatically generate halftone threshold value according to the halftone threshold matrix parameter that user inputs in embodiments of the present invention Matrix, complicated processes when eliminating because designing the halftone threshold matrix and constantly debugging manually, improves design effect Rate.
[Detailed description of the invention]
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached Figure is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this field For those of ordinary skill, without any creative labor, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is a kind of flow diagram of the generation method of halftone threshold matrix provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic diagram of unit site provided in an embodiment of the present invention;
Fig. 3 is that a kind of unit dot shape of unit site provided in an embodiment of the present invention is circular schematic diagram;
Fig. 4 is that a kind of unit dot shape of unit site provided in an embodiment of the present invention is the schematic diagram of diamond shape;
Fig. 5 is the schematic diagram that a kind of unit dot shape of unit site provided in an embodiment of the present invention is square;
Fig. 6 is that a kind of unit dot shape of unit site provided in an embodiment of the present invention is linear schematic diagram;
Fig. 7 is a kind of splicing schematic diagram of two adjacent cells sites provided in an embodiment of the present invention;
Fig. 8 is a kind of schematic diagram of threshold value filling concordance list provided in an embodiment of the present invention;
Fig. 9 is the schematic diagram of another threshold value filling concordance list provided in an embodiment of the present invention;
Figure 10 is the schematic diagram of another threshold value filling concordance list provided in an embodiment of the present invention;
Figure 11 is the schematic diagram of another threshold value filling concordance list provided in an embodiment of the present invention;
Figure 12 is the schematic diagram of the number of threshold value fills unit in a kind of unit site provided in an embodiment of the present invention;
Figure 13 is the schematic diagram of the number of threshold value fills unit in another unit site provided in an embodiment of the present invention;
Figure 14 is the schematic diagram of the number of threshold value fills unit in another unit site provided in an embodiment of the present invention;
Figure 15 is the schematic diagram of the number of threshold value fills unit in another unit site provided in an embodiment of the present invention;
Figure 16 is the schematic diagram of the number of threshold value fills unit in another unit site provided in an embodiment of the present invention;
Figure 17 is the schematic diagram of the number of threshold value fills unit in another unit site provided in an embodiment of the present invention;
Figure 18 is a kind of schematic diagram of halftone threshold matrix provided in an embodiment of the present invention;
Figure 19 is a kind of structural schematic diagram of the generating means of halftone threshold matrix provided in an embodiment of the present invention.
[specific embodiment]
For a better understanding of the technical solution of the present invention, being retouched in detail to the embodiment of the present invention with reference to the accompanying drawing It states.
It will be appreciated that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Base Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts it is all its Its embodiment, shall fall within the protection scope of the present invention.
The term used in embodiments of the present invention is only to be not intended to be limiting merely for for the purpose of describing particular embodiments The present invention.In the embodiment of the present invention and the "an" of singular used in the attached claims, " described " and "the" It is also intended to including most forms, unless the context clearly indicates other meaning.
It should be appreciated that term "and/or" used herein is only a kind of incidence relation for describing affiliated partner, indicate There may be three kinds of relationships, for example, A and/or B, can indicate: individualism A, exist simultaneously A and B, individualism B these three Situation.In addition, character "/" herein, typicallys represent the relationship that forward-backward correlation object is a kind of "or".
Depending on context, word as used in this " if " can be construed to " ... when " or " when ... When " or " in response to determination " or " in response to detection ".Similarly, depend on context, phrase " if it is determined that " or " if detection (condition or event of statement) " can be construed to " when determining " or " in response to determination " or " when the detection (condition of statement Or event) when " or " in response to detection (condition or event of statement) ".
Embodiment one
The embodiment of the invention provides a kind of generation methods of halftone threshold matrix, as shown in Figure 1, halftone threshold The generation method of value matrix may comprise steps of:
101, the halftone threshold matrix parameter of user's input is obtained.
In a specific embodiment, the halftone threshold matrix parameter includes: unit angle of halftone screen line, unit The locating depth of dot shape, element mesh dot frequency and image to be processed.
In a specific embodiment, the value range of the unit angle of halftone screen line be more than or equal to 0 °, and Less than or equal to 90 °.
Specifically, user can input by parameter input interface or directly in program code for generating The halftone threshold matrix parameter of halftone threshold matrix.It can be generated according to halftone threshold matrix parameter The minimum unit of halftone threshold matrix, i.e. unit site, and, list can be determined according to halftone threshold matrix parameter Splicing arrangement mode between first site.
One unit site includes at least one threshold value fills unit, is used to fill threshold value in each threshold value fills unit, When carrying out halftone processing, can be used in the threshold value and image data to be processed filled in threshold value fills unit The pixel value of one pixel is compared;Unit angle of halftone screen line is for the splicing arrangement mode between determining means site, i.e., Splice the angle of arrangement;Unit dot shape is for the threshold value distribution in determining means site, for example, the threshold value in unit site Distribution figure is square the perhaps linear perhaps distribution of shapes such as diamond shape or circle;Element mesh dot frequency is for determining list The size of first site, the i.e. length and width of unit site, further, the length of unit site with comprising columns indicate, a column For a unit length, the width of unit site with comprising line number indicate, a unit length of behavior one, also, usually The general value of line number that the width of columns and unit site that the length of unit site includes includes all is odd number;The position of image to be processed Deep pixel how many bit composition for determining image to be processed.Meanwhile can according to the locating depth of image to be processed and Element mesh dot frequency determines the number for the unit site for including in halftone threshold matrix.
In one group of halftone threshold matrix parameter, it can be generated pair according to the halftone threshold matrix parameter of setting The halftone threshold matrix answered, i.e., if one group of halftone threshold matrix parameter and another group of halftone threshold value square Battle array parameter is different, then different halftone threshold matrixes can be generated, therefore, can basis for same image to be processed Halftone threshold matrix parameter is arranged in the halftone threshold matrix wanted, i.e., for same image to be processed, can To obtain the halftone threshold matrix of different-effect according to different halftone threshold matrix parameters, therefore, actually answering During, halftone threshold matrix parameter can be set according to actual needs.
For example, in order to obtain the halftone threshold matrix of the different-effect of same image to be processed, user can be inputted Different halftone threshold matrix parameters.In another example image resolution ratio is to be 1bit when the locating depth of image to be processed When 600dpi, the halftone threshold matrix parameter of user's input can be with are as follows: unit angle of halftone screen line is 45 °, unit dot shape For diamond shape, element mesh dot frequency be 5*5 and the locating depth of image to be processed is 1bit;Alternatively, the halftone threshold value of user's input Matrix parameter can be with are as follows: unit angle of halftone screen line is 30 °, unit dot shape is square, element mesh dot frequency be 5*5 and to The locating depth for handling image is 1bit.
102, it according to the halftone threshold matrix parameter, generates threshold value and fills concordance list.
Specifically, threshold value filling concordance list is the basis for generating halftone threshold matrix, threshold value fills concordance list by extremely A few unit site is constituted, when containing at least two unit site in threshold value filling concordance list, at least two element mesh Point needs according to unit angle of halftone screen line to carry out splicing arrangement, with determine each unit site for including in threshold value filling concordance list it Between be how to splice arrangement, wherein the number of unit site needs the locating depth and element mesh dot frequency according to image to be processed To determine.
In a specific embodiment, it according to the halftone threshold matrix parameter, generates threshold value and fills rope When drawing table, need first according to element mesh dot frequency, generation unit site, then further according to the element mesh for being added with designated identification Point, the element mesh dot frequency, the unit dot shape, the locating depth of the image to be processed and the unit angle of halftone screen line, Generate the threshold value filling concordance list.
In a specific embodiment, it according to element mesh dot frequency, when generation unit site, needs according to unit Site frequency determines the line number and columns of threshold value fills unit, raw then in the line number and columns according to threshold value fills unit At the unit site.
Specifically, including the length and width of unit site in element mesh dot frequency, wherein length can use unit length Number indicate that width can also indicate with the number of unit length, a unit length is a row or column, therefore, unit The length of site is the columns that unit site includes, and the width of unit site is the line number that unit site includes, and because, unit It include at least one threshold value fills unit in site, the number of threshold value fills unit is multiplying for the length and width of unit site Product, the i.e. product of line number and columns, and distribution mode of the threshold value fills unit in unit site is according to line number and columns Arrangement mode distribution, therefore after the frequency for getting unit site, need first to determine that threshold value is filled in unit site Then the line number and columns of unit are determined with determining distribution mode of the threshold value fills unit in unit site in basis Threshold value fills unit line number and columns, generation unit site.
For example, that is, the length of unit site is 5 unit length (units as shown in Fig. 2, the frequency of unit site is 5*5 The columns of threshold value fills unit in site is 5 column), the width of unit site is 5 unit length (threshold values in unit site The line number of fills unit is 5 rows), after the frequency according to unit site, line number and the columns of determining threshold value fills unit, so Afterwards in the line number and columns according to threshold value fills unit, the list comprising 5 row threshold value fills units and 5 column threshold value fills units is generated First site includes 25 threshold value fills units in the unit site.
In a specific embodiment, behind generation unit site, it is also necessary to determine those in the unit site Threshold value fills unit and pixel corresponding threshold value fills unit of the threshold value fills unit where pixel are in the unit site Distribution situation, therefore, behind generation unit site, according to the unit site, the unit angle of halftone screen line, the element mesh The locating depth of dot shape, the frequency of unit site and the image to be processed needs first root when generating the threshold value filling concordance list According to the unit dot shape, position of the corresponding threshold value fills unit of pixel in the unit site is determined, further according to picture Position of the corresponding threshold value fills unit of element in the unit site, corresponding position addition is specified in the unit site Mark, then further according to the unit site added with designated identification, the element mesh dot frequency, the unit dot shape, institute State image to be processed locating depth and the unit angle of halftone screen line, generate threshold value filling concordance list.
Wherein, " the threshold value fills unit where pixel " mentioned above is by the pixel value of the pixel in image data Threshold when with threshold value comparison size in halftone threshold matrix, where the threshold value being compared with the pixel value of the pixel It is worth fills unit, wherein the threshold value fills unit is that there are the threshold value fills unit of designated identification, the thresholds in threshold value fills unit The threshold value filled in value fills unit is less than the threshold value filled in the threshold value fills unit there is no designated identification.
Specifically, since unit dot shape is used for the threshold value distribution in determining means site, according to unit site Shape can determine that designated identification should add in which threshold value fills unit in unit site, and in order to distinguish Whether the threshold value fills unit is threshold value fills unit where pixel, it is thus necessary to determine that the threshold value fills unit where going out pixel exists Position in unit site, and add designated identification on the position, then further according to added with designated identification unit site, The locating depth of the image to be processed and the unit angle of halftone screen line generate the threshold value filling concordance list.
For example, as shown in figure 3, unit site is the list comprising 5 row threshold value fills units and 5 column threshold value fills units First site, and when the locating depth of image to be processed is 8bit, and unit dot shape is round, add the threshold value filling of designated identification Unit is the threshold value fills unit in Fig. 3 in grey filling region, is then filled according to the threshold value in Fig. 3 in grey filling region The position of threshold value fills unit in the position determination unit site of unit where pixel;Alternatively, in another example, as shown in figure 4, single First site is one and includes the unit site of 5 row threshold value fills units and 5 column threshold value fills units, and works as the position of image to be processed Depth is 8bit, when unit dot shape is diamond shape, adds the threshold value fills unit of designated identification as in grey filling region in Fig. 4 Threshold value fills unit, then according in the position determination unit site of the threshold value fills unit in Fig. 4 in grey filling region The position of threshold value fills unit where pixel;Alternatively, in another example, as shown in figure 5, it includes 5 row threshold values that unit site, which is one, The unit site of fills unit and 5 column threshold value fills units, and the locating depth for working as image to be processed is 8bit, unit dot shape is When square, the threshold value fills unit for adding designated identification is threshold value fills unit in Fig. 5 in grey filling region, then root According to the threshold value fills unit where pixel in the position determination unit site of the threshold value fills unit in Fig. 5 in grey filling region Position;Alternatively, in another example, as shown in fig. 6, unit site is one single comprising 5 row threshold value fills units and the filling of 5 column threshold values The unit site of member, and when the locating depth of image to be processed is 8bit, and unit dot shape is linear, add the threshold of designated identification Being worth fills unit is the threshold value fills unit in Fig. 6 in grey filling region, then according to the threshold in Fig. 6 in grey filling region It is worth the position of the threshold value fills unit in the position determination unit site of fills unit where pixel.
Threshold value fills unit in determining grey filling region where pixel is behind the position in unit site, in ash Designated identification " 1 " is added in threshold value fills unit in color filling region where pixel, further according to added with designated identification " 1 " Unit site, the locating depth and unit angle of halftone screen line of image to be processed generate the threshold value filling concordance list.Wherein, in element mesh When adding threshold value in each threshold value fills unit of point, the threshold value added in the threshold value fills unit added with designated identification " 1 " is equal Less than the threshold value added in the threshold value fills unit to add designated identification " 1 ".
In a specific embodiment, according to the unit site added with designated identification, unit site frequency Rate, the unit dot shape, the locating depth of the image to be processed and the unit angle of halftone screen line generate the threshold value filling rope When drawing table, can generate in the following way: according to the element mesh dot frequency and the unit dot shape, determination is added with The number of threshold value fills unit in the unit site of designated identification added with designated identification;According to the position of the image to be processed The number of threshold value fills unit in the deep and unit site added with designated identification added with designated identification, according to default value Rule determines the number of the unit site added with designated identification, wherein the unit site number added with designated identification takes Value is positive integer;According to the number of the unit site added with designated identification and the unit angle of halftone screen line, it is added with one On the basis of the unit site of designated identification, according to default splicing arrangement mode, to the list added with designated identification of corresponding number First site carries out splicing arrangement two-by-two, determines the splicing arrangement mode of the unit site added with designated identification of corresponding number; According to the splicing arrangement mode of the unit site added with designated identification of corresponding number, to the element mesh for being added with designated identification Point carries out splicing arrangement, generates the threshold value filling concordance list.
Specifically, since element mesh dot frequency determines the size of the unit site, unit dot shape determining means site Interior threshold value distribution, therefore, can determine in unit site according to the element mesh dot frequency and the unit dot shape The number of threshold value fills unit added with designated identification, i.e., the number of the corresponding threshold value fills unit of pixel in unit site.
Then, according to the threshold value fills unit for being added with designated identification in the locating depth of image to be processed and unit site Number, threshold value filling concordance list in include site unit number, wherein due to unit site number it is just whole Number, but according in the locating depth of image to be processed and unit site be added with designated identification threshold value fills unit number, Obtained result may not be positive integer, pre- according to this then after obtaining result therefore, it is necessary to preset value rule Number if value rule takes positive integer, to fill the site unit for including in concordance list as threshold value.
After the number for the site unit for including in determining threshold value filling concordance list, the element mesh to corresponding number is needed Point carries out splicing arrangement, to determine accurate threshold value filling concordance list, also, spells in the site unit to corresponding number Run in when arranging, it is thus necessary to determine that go out a reference cell site, and according to unit angle of halftone screen line, determine every two unit site it Between stitching position, then, on the basis of the base station unit site, according to stitching position between above-mentioned every two unit site and pre- If splicing arrangement mode (expansion mode of the unit site in arrangement), determine how the sum of the unit site of corresponding number carries out Splicing arrangement, that is, the element mesh point for corresponding to number carry out splicing arrangement according to which kind of expansion mode.Wherein, according to default splicing Arrangement mode needs based on the reference cell site when carrying out splicing arrangement two-by-two to the element mesh point of corresponding number, will Other unit sites are evenly distributed in around the reference cell site, and specific expansion mode is not specifically limited herein.
It, can be according to the splicing arrangement mode to correspondence also, after determining the splicing arrangement mode between unit site The element mesh point of number carries out splicing arrangement, and concordance list is filled as threshold value in the unit site after splicing arrangement.
In a specific embodiment, it can use when determining the number of the unit site added with designated identification Following formula determines:
P=(2bit-1)/2/k;
Wherein, P is the number of the unit site added with designated identification;Bit is the locating depth of the image to be processed;K is The number of threshold value fills unit in unit site added with designated identification added with designated identification.
In a specific embodiment, presetting value rule can be to one decimal place number according to four houses five The mode entered carries out value.
Specifically, of the threshold value fills unit in the locating depth of image to be processed and unit site added with designated identification Number in determined circumstances, can determine a numerical value by above-mentioned formula, when the numerical value is positive integer, then this is just whole Number of the number as the unit site added with designated identification;When the numerical value is not positive integer, need according to rounding up Value mode carries out value to the latter bit value of decimal point in the numerical value, to obtain positive integer, and using obtained positive integer as The number of unit site added with designated identification.
For example, unit site as shown in Figure 3, the shape of unit site is circle, the element mesh added with designated identification The number of point is 21, and when the locating depth of image to be processed is 8bit, the number of the unit site added with designated identification is (28- 1)/2/21 ≈ 6.095, after rounding up to the data, the number of the unit site added with designated identification is 6 It is a.
In another example unit site as shown in Figure 4, the shape of unit site is diamond shape, the unit added with designated identification The number of site is 13, and when the locating depth of image to be processed is 8bit, the number of the unit site added with designated identification is (28- 1)/2/13 ≈ 9.807, after rounding up to the data, the number of the unit site added with designated identification is 10 It is a.
In another example unit site as shown in Figure 5, the shape of unit site are square, the list added with designated identification The number of first site is 25, when the locating depth of image to be processed is 8bit, the number of the unit site added with designated identification It is (28- 1)/2/25 ≈ 5.1, after rounding up to the data, the number of the unit site added with designated identification is 5 It is a.
In another example unit site as shown in FIG. 6, the shape of unit site is linear, the unit added with designated identification The number of site is 10, and when the locating depth of image to be processed is 8bit, the number of the unit site added with designated identification is (28- 1)/2/10 ≈ 12.75, after rounding up to the data, the number of the unit site added with designated identification is 13 It is a.
In a specific embodiment, it can use following formula to the list added with designated identification of corresponding number First site carries out splicing arrangement two-by-two:
Y_Offset=tan (Angle) * X_Offset;
Wherein, Y_Offset is added with designated identification for one in two adjacent unit sites added with designated identification Unit site central pixel point to another added with designated identification unit site central pixel point in vertical direction On offset;X_Offset is added with designated identification for one in two adjacent unit sites added with designated identification The central pixel point of unit site is added with the central pixel point of the unit site of designated identification in the horizontal direction to another Offset, wherein the value of X_Offset is equal with the columns of threshold value fills unit;Angle is the unit angle of halftone screen line.
As shown in fig. 7, a indicates the central pixel point of unit site A in the unit site B adjacent with unit site A Imago vegetarian refreshments projection in the horizontal direction, X_Offset be the center to the center of unit site B that a is projected in Fig. 7 The distance of pixel, the distance of the central pixel point of the center that Y_Offset is projection a in Fig. 7 to unit site A, Angle is that the central pixel point of unit site A is corresponding with the offset of the central pixel point of unit site B in vertical direction Angle value.
Wherein, X_Offset is related with element mesh dot frequency, for example, when element mesh dot frequency is 5*5, unit site Width is 5, i.e. X_Offset=5, and Angle is equal to unit angle of halftone screen line, and Y_Offset=tan (Angle) * 5, i.e., two adjacent The offset in the horizontal direction of the central pixel point of unit site is 5, when unit angle of halftone screen line is Angle, two adjacent cells nets The central pixel point of point is Y_Offset in the offset of vertical direction.
Also, X_Offset offset in the horizontal direction can be to deviate, alternatively, can also deviate to the right, Y_ to the left Offset can be to offset up, or can also offset downward in the offset of vertical direction, i.e. unit site A in Fig. 7 can With in the lower left of unit site B, alternatively, can be on the upper left side of unit site B, alternatively, can be in the bottom right of unit site B Side, alternatively, can be not specifically limited herein in the upper right side of unit site B.
When actually generating threshold value filling concordance list, it is contemplated that the subsequent convenience for carrying out image procossing, threshold value fill rope Draw table and is often designed to rectangle, i.e., when in threshold value filling concordance list including complete white unit site, threshold value filling index Complete white unit site (not adding the unit site of designated identification) and the unit site for including grey parts in table, with ash White alternate mode is evenly distributed in threshold value filling concordance list, has complete white unit when not including in threshold value filling concordance list When site, the threshold value filling concordance list that each unit site is spliced into is rectangle.
As shown in figure 8, including complete white unit site in threshold value filling concordance list, and wrapped in threshold value filling concordance list Containing 10 unit sites.It is according to above-mentioned horizontal-shift and vertically inclined when the corresponding unit site of number 1 is benchmark unit site It moves, generates 4 according to the width of unit site and unit angle of halftone screen line in 1 upper left side, lower left, upper right side and lower right Unit site, respectively 2,3,4,5 are also needed since the sum for the unit site for including in threshold value filling concordance list is 10 5 unit sites are determined again, two unit sites can be arbitrarily chosen from 2,3,4,5, it is contemplated that wrap in threshold value concordance list Unit site containing grey parts be it is equally distributed, and threshold value filling concordance list shape be rectangle, can choose 4,5 this Two unit sites generate 7,8 and 9 corresponding unit sites then on the basis of 4, and on the basis of 5, it is corresponding to generate 6 and 10 Unit site.
It certainly, when the number of unit site is greater than 10, or include grey parts in threshold value concordance list when less than 10 The distribution of unit site can be determined according to above-mentioned rule.
In a specific embodiment, filling in concordance list when threshold value includes 10 unit sites, unit site When angle is 0 degree or 90 degree, i.e. the Y_Oset=0 of unit site, and the central pixel point of two neighboring unit site exists The offset of the offset horizontal direction of horizontal direction is 5, and the offset of vertical direction is 0, and the threshold value filling concordance list of generation can be with As shown in Figure 9.
In a specific embodiment, when unit angle of halftone screen line be 45 degree, the Y_Oset=5* of unit site tan45°=5, it include 10 unit sites in threshold value filling concordance list, and the central pixel point of two neighboring unit site Offset in the horizontal direction is 5, and the offset of vertical direction is 5, can when generating threshold value filling concordance list according to above-mentioned condition To generate different threshold value filling concordance lists according to different default splicing arrangement modes, one of threshold value fills concordance list As shown in Figure 10, wherein B1, B3, B5, B7, B9, B11, B13, B15, B17 and B19 are that complete white unit site is filled in threshold value Position in concordance list.
In a specific embodiment, when unit angle of halftone screen line be 30 °, unit site Y_Oset=5*tan30≈ 3, it includes 10 unit sites that threshold value, which is filled in concordance list, and the central pixel point of two neighboring unit site is in level side To offset be 5, the offset of vertical direction is 3, can be according to difference when generating threshold value filling concordance list according to above-mentioned condition Default splicing arrangement mode, generate different threshold value filling concordance lists, one of threshold value filling concordance list is as shown in figure 11.
103, concordance list is filled according to the threshold value, generates halftone threshold matrix.
Specifically, after getting above-mentioned threshold value filling concordance list, in the unit site in threshold value filling concordance list Upper corresponding threshold value is added in each threshold value fills unit, so that it may obtain halftone threshold matrix.
In a specific embodiment, concordance list is being filled according to the threshold value, is generating halftone threshold matrix When, the value range for needing first to obtain the number N, the N of threshold value fills unit in the threshold value filling concordance list is positive integer; Judge whether N is equal to specified numerical value again, wherein the specified numerical value is 2^bit, and bit is the locating depth of the image to be processed;If N is equal to the specified numerical value, determines that the range for the threshold value filled in each threshold value fills unit of the threshold value filling concordance list is More than or equal to 0, it is less than or equal to N-1, and according to default fill order, in each threshold value of threshold value filling concordance list Threshold value is added in fills unit, to generate halftone threshold value square;If N is not equal to the specified numerical value, determine that the threshold value is filled out The range for filling the threshold value filled in each threshold value fills unit of concordance list is greater than or equal to 0, is less than or equal to w*N, and According to default fill order, threshold value is added in each threshold value fills unit of threshold value filling concordance list, wherein w=(2^ Bit-1)/N, to generate halftone threshold value square, wherein the value of w*N is natural number, when to w*N value, according to four houses five The obtaining value method entered carries out value to w*N, for the convenience of description, subsequent w*N default is to set the obtaining value method that five enter according to four to take The natural number of value
In a specific embodiment, the threshold value filled in the threshold value fills unit added with designated identification is less than not The threshold value filled in the threshold value fills unit of designated identification is added, and in each threshold value fills unit of threshold value filling concordance list It is different to add threshold value.
In a specific embodiment, by taking Fig. 9 as an example, the number of threshold value fills unit is in threshold value filling concordance list 250, numerical value 2^bit=256 is specified, N is not equal to 256 at this time, adds in each threshold value fills unit of threshold value filling concordance list When adding threshold value, the filling range of threshold value is [0, w*N], due to w=(2^bit-1)/N, can determine that each threshold value is filled out at this time The range for filling addition threshold value in unit is [0,255].
In a specific embodiment, the number of threshold value fills unit is 256 in threshold value filling concordance list, specifies number Value 2^bit=256, N is equal to 256 at this time, when adding threshold value in each threshold value fills unit in threshold value filling concordance list, threshold The filling range of value is [0,255].
Filling range with threshold value is [0*w, 249*w], i.e. for the filling range of threshold value is [0,255], such as Fig. 9 institute Show, includes single added with the grey threshold value fills unit for identifying 1 and the white threshold value filling for being not added with mark 1 in unit site Member, wherein the number of the grey threshold value fills unit added with mark 1 is 130, is not added with the white threshold value filling of mark 1 The number of unit is 120, when adding threshold value in threshold value fills unit, is first filled in the grey threshold value added with mark 1 single Threshold value is added in member, the threshold range of addition is [0,129*w];Then again in the white threshold value fills unit for being not added with mark 1 The threshold range of middle addition threshold value, addition is [130*w, 255], wherein the threshold value in attached threshold value fills unit shown in Fig. 9 is Not multiplied by coefficient w and according to the threshold value of the obtaining value method value to round up
It in a specific embodiment, is 5*5 with element mesh dot frequency, unit dot shape is the element mesh of diamond shape For point, as shown in figure 12, grey parts are the distribution situation of threshold value fills unit in unit site, HY1 in grey parts, HY2, HY3 ... HY13 are the corresponding number of difference threshold value fills unit in a unit site, and above-mentioned number is added with finger The threshold value fills unit of (i.e. grey parts) is known in calibration.
It in a specific embodiment, is 5*5 with element mesh dot frequency, unit dot shape is circular element mesh For point, as shown in figure 13, grey parts are the distribution situation of threshold value fills unit in unit site, HY1 in grey parts, HY2, HY3 ... HY17 are the corresponding number of difference threshold value fills unit in a unit site, and above-mentioned number is added with finger The threshold value fills unit of (i.e. grey parts) is known in calibration.
In a specific embodiment, as shown in figure 12, the value of Y can be 1,2,3 ... P, and P and threshold value are filled The number of unit site in concordance list is identical, which unit site HY indicates, for example, H1 indicates first unit site, H2 indicates second unit site.HYm indicates some in some unit site threshold value fills unit added with designated identification, Wherein, m is identical as the number of threshold value fills unit of designated identification is added in unit site, for example, H11, indicates that first is single First in first site is added with the threshold value fills unit of designated identification, and H21 indicates first in second unit site Threshold value fills unit added with designated identification.
In a specific embodiment, index is filled with the threshold value that shown in Figure 12, element mesh point is formed in unit site Table is to add the number of the threshold value fills unit of designated identification shown in Fig. 9 in the unit site marked as 1 are as follows: H11-H113, mark Number for added in 2 unit site designated identification threshold value fills unit number are as follows: H21-H213, and so on, obtain each The number of each threshold value fills unit in a unit site.Then, according to H11, H21, H31 ..., H101, H12, H22, H32、……、H202、H13、H23、H33、……、H103、H14、H24、H34、……、H104、H15、H25、H35、……、 H105、H16、H26、H36、……、H106、H17、H27、H37、……、H107、H18、H28、H38、……、H108、H19、 H29、H39、……、H109、H110、H210、H310、……、H1010、H111、H211、H311、……、H1011、H112、 H212, H312 ..., H1012, H113, H213, H313 ..., H1013 sequence threshold value filling concordance list each threshold value fill out It fills and fills threshold value in unit, and when filling threshold value, threshold value is filled in added with specified mark according to sequence from small to large In the threshold value fills unit of knowledge, i.e., according to above-mentioned fill order, and 0*w, 1*w, 2*w, 3*w, 4*w ... 129*w are successively existed It is filled in the threshold value fills unit added with designated identification in threshold value filling concordance list, wherein w=w=(2^bit-1)/N, Wherein N=250.
In a specific embodiment, the threshold value added with designated identification fills list in threshold value filling concordance list After member filling, it is also necessary to be filled to the threshold value fills unit for being not added with designated identification in threshold value filling concordance list.
In a specific embodiment, unit site as shown in figure 14, BX1-BX12 are not add in unit site Add the threshold value fills unit of designated identification, the value of X is identical as the number of unit site in threshold value filling concordance list, and B1 indicates the One unit site, B2 indicate second unit site.BXQ indicates that some in some unit site is not added with the threshold of designated identification It is worth fills unit, B21 indicates that first is not added with the threshold value fills unit of designated identification in second unit site, and B22 is indicated Second is not added with the threshold value fills unit of designated identification in second unit site.
In a specific embodiment, index is filled with the threshold value that shown in Figure 14, element mesh point is formed in unit site Table is to be not added with the number of the threshold value fills unit of designated identification shown in Fig. 9 in the unit site marked as 1 are as follows: B11-B112, The number of the threshold value fills unit of designated identification is not added in unit site marked as 2 are as follows: B21-B212, and so on, it obtains The number of each threshold value fills unit into each unit site.Then, according to B11, B21, B31 ..., B101, B12, B22, B32、……、B102、B13、B23、B33、……、B103、B14、B24、B34、……、B104、B15、B25、B35、……、 B105、B16、B26、B36、……、B106、B17、B27、B37、……、B107、B18、B28、B38、……、B108、B19、 B29、B39、……、B109、B110、B210、B310、……、B1010、B111、B211、B311、……、B1011、B112、 B212, B312 ... the sequence of B1012 is filled out in the threshold value fills unit for being respectively not added with designated identification of threshold value filling concordance list Threshold value is filled, and when filling threshold value, threshold value is filled in threshold value fills unit according to sequence from small to large, i.e., according to upper Fill order is stated, and 130*w, 131*w, 132*w, 133*w, 134*w ... 249*w are successively filled in concordance list not in threshold value It adds and is filled in the threshold value fills unit of designated identification, wherein w=(2^bit-1)/N, wherein N=250.
In a specific embodiment, unit site as shown in figure 15, BX1-BX25 are the threshold value for being full white Fills unit, it is that the number of unit site of white is identical entirely that the value and threshold value of X, which is filled in concordance list, and B11 indicates first It is first threshold value fills unit in the unit site of white entirely, B12 indicates that first is second in white unit site entirely A threshold value fills unit, B21 indicate second be full white unit site in first threshold value fills unit, B22 indicates the Two are second threshold value fills unit in white unit site entirely.It is the threshold value filling side of the threshold value fills unit of white entirely Method and the above-mentioned type, this is no longer going to repeat them.
In a specific embodiment, when unit dot shape is round, specified mark is not added in unit site The number of the threshold value fills unit of knowledge is as shown in figure 16.
In a specific embodiment, when unit dot shape is linear, specified mark is not added in unit site The number of the threshold value fills unit of knowledge is as shown in figure 17.In a specific embodiment, it is filled in threshold value as shown in Figure 9 After each threshold value fills unit filling threshold value in concordance list, the halftone threshold matrix of generation can be as shown in figure 18.
In embodiments of the present invention, due to get user input halftone threshold matrix parameter after, Ke Yigen It according to the halftone threshold matrix parameter, generates threshold value and fills concordance list, and concordance list is filled according to the threshold value, generate comprising extremely The halftone threshold matrix of a few threshold value, therefore the halftone threshold that can be inputted in embodiments of the present invention according to user Value matrix parameter automatically generates halftone threshold matrix, eliminate because manually to the halftone threshold matrix design and it is continuous Complicated processes when debugging, improve design efficiency.
The embodiment of the present invention, which further provides, realizes the Installation practice of each step and method in above method embodiment.
Embodiment two
The embodiment of the invention provides a kind of generating means of halftone threshold matrix, as shown in figure 19, the device packet It includes:
Acquiring unit 191, for obtaining the halftone threshold matrix parameter of user's input;
Concordance list generation unit 192, for generating threshold value filling index according to the halftone threshold matrix parameter Table;
Threshold matrix generation unit 193 is generated for filling concordance list according to the threshold value comprising at least one threshold value Halftone threshold matrix.
In a specific embodiment, the halftone threshold matrix parameter includes: unit angle of halftone screen line, unit The locating depth of dot shape, element mesh dot frequency and image to be processed.
In a specific embodiment, the concordance list generation unit 192 is used for according to the halftone threshold value Matrix parameter is specifically used for when generating threshold value filling concordance list: according to the element mesh dot frequency, generation unit site, In, the unit site carries at least one threshold value fills unit;According to the unit dot shape, determine that pixel is corresponding Position of the threshold value fills unit in the unit site;According to the corresponding threshold value fills unit of pixel in the unit site Position, in the unit site corresponding position add designated identification;According to the unit site added with designated identification, institute Element mesh dot frequency, the locating depth of the image to be processed, the locating depth of the image to be processed and the unit angle of halftone screen line are stated, it is raw Concordance list is filled at the threshold value.
In a specific embodiment, the concordance list generation unit 192 is used for basis added with designated identification Unit site, the element mesh dot frequency, the locating depth of the image to be processed, the locating depth of the image to be processed and the unit Angle of halftone screen line is specifically used for: when generating the threshold value filling concordance list according to the element mesh dot frequency and the unit site Shape determines the number of the threshold value fills unit in the unit site added with designated identification added with designated identification;According to institute State the threshold value fills unit in the locating depth of image to be processed and the unit site added with designated identification added with designated identification Number determines the number of the unit site added with designated identification, wherein be added with designated identification according to default value rule Unit site number value be positive integer;According to the number of the unit site added with designated identification and the unit site Angle, according to default splicing arrangement mode, adds corresponding number on the basis of a unit site added with designated identification Splicing arrangement two-by-two is carried out added with the element mesh point of designated identification, determines the unit site added with designated identification of corresponding number Splicing arrangement mode;According to the splicing arrangement mode of the unit site added with designated identification of corresponding number, to being added with The element mesh point of designated identification carries out splicing arrangement, generates the threshold value filling concordance list.
In a specific embodiment, the concordance list generation unit 192 is used for according to the image to be processed The number of threshold value fills unit in locating depth and unit site added with designated identification added with designated identification takes according to default Value rule, determine added with designated identification unit site number when, be specifically used for: using following formula determine added with refer to Calibrate the number for the unit site known:
P=(2bit-1)/2/k;Wherein, P is the number of the unit site added with designated identification;Bit is described to be processed The locating depth of image;K is the number of the threshold value fills unit in the unit site added with designated identification added with designated identification;Institute Stating default value rule is that value is carried out in the way of rounding up to one decimal place number.
In a specific embodiment, the concordance list generation unit 192 is used for corresponding number added with finger When the element mesh point that calibration is known carries out splicing arrangement two-by-two, it is specifically used for: using following formula to corresponding number added with finger The element mesh point that calibration is known carries out splicing arrangement two-by-two:
Y_Offset=tan (Angle) * X_Offset;Wherein, Y_Offset is two adjacent added with designated identification Unit site in the central pixel point of a unit site added with designated identification be added with designated identification to another The offset of the central pixel point of unit site in vertical direction;X_Offset is two adjacent added with designated identification The central pixel point of a unit site added with designated identification is added with the list of designated identification to another in unit site The offset of the central pixel point of first site in the horizontal direction, wherein the value of X_Offset and the column of threshold value fills unit Number is equal;Angle is the unit angle of halftone screen line.
In a specific embodiment, the threshold matrix generation unit 193 is used to fill rope according to the threshold value Draw table, when generating halftone threshold matrix, be specifically used for: obtaining of threshold value fills unit in the threshold value filling concordance list The value range of number N, the N are positive integer;Judging whether N is equal to specified numerical value, wherein the specified numerical value is 2^bit, Bit is the locating depth of the image to be processed;If N is equal to the specified numerical value, each threshold value of the threshold value filling concordance list is determined The range for the threshold value filled in fills unit is greater than or equal to 0, is less than or equal to N-1, and according to default fill order, Threshold value is added in each threshold value fills unit of threshold value filling concordance list, to generate comprising at least one threshold value Halftone threshold matrix;If N is not equal to the specified numerical value, each threshold value fills unit of the threshold value filling concordance list is determined The range of the threshold value of middle filling is greater than or equal to 0, is less than or equal to w*N, and according to default fill order, in the threshold Threshold value is added in each threshold value fills unit of value filling concordance list, wherein w=(2^bit-1)/N includes at least one to generate The halftone threshold matrix of threshold value;Wherein, the threshold value filled in the threshold value fills unit added with designated identification, which is less than, not to be added Add the threshold value filled in the threshold value fills unit of designated identification, and adds in each threshold value fills unit of threshold value filling concordance list Add threshold value different.
In a specific embodiment, the value range of the unit angle of halftone screen line be more than or equal to 0 °, and Less than or equal to 90 °
Method shown in embodiment one is able to carry out as each unit in this present embodiment, what the present embodiment was not described in detail Part can refer to the related description to embodiment one.
In embodiments of the present invention, due to get user input halftone threshold matrix parameter after, Ke Yigen It according to the halftone threshold matrix parameter, generates threshold value and fills concordance list, and concordance list is filled according to the threshold value, generate comprising extremely The halftone threshold matrix of a few threshold value, therefore the halftone threshold that can be inputted in embodiments of the present invention according to user Value matrix parameter automatically generates halftone threshold matrix, eliminate because manually to the halftone threshold matrix design and it is continuous Complicated processes when debugging, improve design efficiency.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided by the present invention, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or group Part can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown Or the mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, device or unit it is indirect Coupling or communication connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can store and computer-readable deposit at one In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer It is each that device (can be personal computer, server or network equipment etc.) or processor (Processor) execute the present invention The part steps of embodiment the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (Read- Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. it is various It can store the medium of program code.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the present invention.

Claims (8)

1. a kind of generation method of halftone threshold matrix, which is characterized in that the described method includes:
Obtain the halftoning halftone threshold matrix parameter of user's input;
According to the halftone threshold matrix parameter, generates threshold value and fill concordance list;
Concordance list is filled according to the threshold value, generates the halftone threshold matrix comprising at least one threshold value;
The halftone threshold matrix parameter includes: unit angle of halftone screen line, unit dot shape, element mesh dot frequency and wait locate Manage the locating depth of image;
It is described according to the halftone threshold matrix parameter, generate threshold value and fill concordance list, comprising:
According to the element mesh dot frequency, generation unit site, wherein the unit site carries the filling of at least one threshold value Unit;
According to the unit dot shape, position of the corresponding threshold value fills unit of pixel in the unit site is determined;
According to position of the corresponding threshold value fills unit of pixel in the unit site, the corresponding position in the unit site Place's addition designated identification;
According to added with the unit site of designated identification, the element mesh dot frequency, the unit dot shape, described to be processed The locating depth of image and the unit angle of halftone screen line generate the threshold value filling concordance list.
2. the method as described in claim 1, which is characterized in that unit site, described of the basis added with designated identification Element mesh dot frequency, the unit dot shape, the locating depth of the image to be processed and the unit angle of halftone screen line, described in generation Threshold value fills concordance list, comprising:
According to the element mesh dot frequency and the unit dot shape, determines and added in the unit site added with designated identification There is the number of the threshold value fills unit of designated identification;
According to the threshold value for being added with designated identification in the locating depth of the image to be processed and the unit site added with designated identification The number of fills unit determines the number of the unit site added with designated identification, wherein addition according to default value rule The value for having the unit site number of designated identification is positive integer;
According to the number of the unit site added with designated identification and the unit angle of halftone screen line, designated identification is added with one Unit site on the basis of, according to default splicing arrangement mode, to the element mesh click-through added with designated identification of corresponding number Row splicing arrangement two-by-two, determines the splicing arrangement mode of the unit site added with designated identification of corresponding number;
According to the splicing arrangement mode of the unit site added with designated identification of corresponding number, to the list for being added with designated identification First site carries out splicing arrangement, generates the threshold value filling concordance list.
3. method according to claim 2, which is characterized in that the element mesh added with designated identification of described pair of corresponding number Point carries out splicing arrangement two-by-two, comprising:
Splicing two-by-two is carried out using element mesh point added with designated identification of the following formula to corresponding number to arrange:
Y_Offset=tan (Angle) * X_Offset;
Wherein, Y_Offset is a list added with designated identification in two adjacent unit sites added with designated identification The central pixel point of first site to another unit site added with designated identification central pixel point in vertical direction Offset;X_Offset is a unit added with designated identification in two adjacent unit sites added with designated identification Central pixel point in the horizontal direction inclined of the central pixel point of site to another unit site added with designated identification Shifting amount, wherein the value of X_Offset is equal with the columns of threshold value fills unit;Angle is the unit angle of halftone screen line.
4. method according to claim 2, which is characterized in that it is described that concordance list is filled according to the threshold value, it generates comprising extremely The halftone threshold matrix of a few threshold value, comprising:
The value range for obtaining the number N, the N of threshold value fills unit in the threshold value filling concordance list is positive integer;
Judge whether N is equal to specified numerical value, wherein the specified numerical value is 2^bit, and bit is the locating depth of the image to be processed;
If N is equal to the specified numerical value, the threshold value filled in each threshold value fills unit of the threshold value filling concordance list is determined Range is greater than or equal to 0, is less than or equal to N-1, and according to default fill order, in threshold value filling concordance list Threshold value is added in each threshold value fills unit, to generate the halftone threshold matrix for including at least one threshold value;
If N is not equal to the specified numerical value, the threshold value filled in each threshold value fills unit of the threshold value filling concordance list is determined Range be greater than or equal to 0, be less than or equal to w*N, and according to default fill order, fill concordance list in the threshold value Each threshold value fills unit in add threshold value, wherein w=(2^bit-1)/N, to generate comprising at least one threshold value Halftone threshold matrix;
Wherein, the threshold value filled in the threshold value fills unit added with designated identification is less than the threshold value filling for being not added with designated identification The threshold value filled in unit, and addition threshold value is different in each threshold value fills unit of threshold value filling concordance list.
5. a kind of generating means of halftone threshold matrix, which is characterized in that described device includes:
Acquiring unit, for obtaining the halftone threshold matrix parameter of user's input;
Concordance list generation unit, for generating threshold value and filling concordance list according to the halftone threshold matrix parameter;
Threshold matrix generation unit is generated for filling concordance list according to the threshold value comprising at least one threshold value Halftone threshold matrix;
The halftone threshold matrix parameter includes: unit angle of halftone screen line, unit dot shape, element mesh dot frequency and wait locate Manage the locating depth of image;
The concordance list generation unit is used for according to the halftone threshold matrix parameter, when generating threshold value filling concordance list, It is specifically used for:
According to the element mesh dot frequency, generation unit site, wherein the unit site carries the filling of at least one threshold value Unit;
According to the unit dot shape, position of the corresponding threshold value fills unit of pixel in the unit site is determined;
According to position of the corresponding threshold value fills unit of pixel in the unit site, the corresponding position in the unit site Place's addition designated identification;
According to added with the unit site of designated identification, the element mesh dot frequency, the locating depth of the image to be processed, it is described to The locating depth of processing image and the unit angle of halftone screen line generate the threshold value filling concordance list.
6. device as claimed in claim 5, which is characterized in that the concordance list generation unit is used for according to added with specified mark The unit site of knowledge, the element mesh dot frequency, the locating depth of the image to be processed, the locating depth of the image to be processed and described Unit angle of halftone screen line is specifically used for when generating the threshold value filling concordance list:
According to the element mesh dot frequency and the unit dot shape, determines and added in the unit site added with designated identification There is the number of the threshold value fills unit of designated identification;
According to the threshold value for being added with designated identification in the locating depth of the image to be processed and the unit site added with designated identification The number of fills unit determines the number of the unit site added with designated identification, wherein addition according to default value rule The value for having the unit site number of designated identification is positive integer;
According to the number of the unit site added with designated identification and the unit angle of halftone screen line, designated identification is added with one Unit site on the basis of, according to default splicing arrangement mode, to the element mesh click-through added with designated identification of corresponding number Row splicing arrangement two-by-two, determines the splicing arrangement mode of the unit site added with designated identification of corresponding number;
According to the splicing arrangement mode of the unit site added with designated identification of corresponding number, to the list for being added with designated identification First site carries out splicing arrangement, generates the threshold value filling concordance list.
7. device as claimed in claim 6, which is characterized in that the concordance list generation unit is used for the addition to corresponding number When having the element mesh point of designated identification to carry out splicing arrangement two-by-two, it is specifically used for:
Splicing two-by-two is carried out using element mesh point added with designated identification of the following formula to corresponding number to arrange:
Y_Offset=tan (Angle) * X_Offset;
Wherein, Y_Offset is a list added with designated identification in two adjacent unit sites added with designated identification The central pixel point of first site to another unit site added with designated identification central pixel point in vertical direction Offset;X_Offset is a unit added with designated identification in two adjacent unit sites added with designated identification Central pixel point in the horizontal direction inclined of the central pixel point of site to another unit site added with designated identification Shifting amount, wherein the value of X_Offset is equal with the columns of threshold value fills unit;Angle is the unit angle of halftone screen line.
8. device as claimed in claim 6, which is characterized in that the threshold matrix generation unit according to the threshold value for filling out Concordance list is filled, when generating the halftone threshold matrix comprising at least one threshold value, is specifically used for:
The value range for obtaining the number N, the N of threshold value fills unit in the threshold value filling concordance list is positive integer;
Judge whether N is equal to specified numerical value, wherein the specified numerical value is 2^bit, and bit is the locating depth of the image to be processed;
If N is equal to the specified numerical value, the threshold value filled in each threshold value fills unit of the threshold value filling concordance list is determined Range is greater than or equal to 0, is less than or equal to N-1, and according to default fill order, in threshold value filling concordance list Threshold value is added in each threshold value fills unit, to generate the halftone threshold matrix for including at least one threshold value;
If N is not equal to the specified numerical value, the threshold value filled in each threshold value fills unit of the threshold value filling concordance list is determined Range be greater than or equal to 0, be less than or equal to w*N, and according to default fill order, fill concordance list in the threshold value Each threshold value fills unit in add threshold value, wherein w=(2^bit-1)/N, to generate comprising at least one threshold value Halftone threshold matrix;
Wherein, the threshold value filled in the threshold value fills unit added with designated identification is less than the threshold value filling for being not added with designated identification The threshold value filled in unit, and addition threshold value is different in each threshold value fills unit of threshold value filling concordance list.
CN201611189845.5A 2016-12-21 2016-12-21 A kind of generation of halftone threshold matrix and device Active CN106791269B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611189845.5A CN106791269B (en) 2016-12-21 2016-12-21 A kind of generation of halftone threshold matrix and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611189845.5A CN106791269B (en) 2016-12-21 2016-12-21 A kind of generation of halftone threshold matrix and device

Publications (2)

Publication Number Publication Date
CN106791269A CN106791269A (en) 2017-05-31
CN106791269B true CN106791269B (en) 2019-11-26

Family

ID=58896549

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611189845.5A Active CN106791269B (en) 2016-12-21 2016-12-21 A kind of generation of halftone threshold matrix and device

Country Status (1)

Country Link
CN (1) CN106791269B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1557090A (en) * 2001-09-21 2004-12-22 ������������ʽ���� Threshold value matrix creating method, image output system, storage medium, gradation reproducing method, threshold value matrix, image processing method, image processing apparatus, image forming ap
JP2010081180A (en) * 2008-09-25 2010-04-08 Dainippon Screen Mfg Co Ltd Image generator and print system
CN102868846A (en) * 2011-07-06 2013-01-09 柯尼卡美能达商用科技株式会社 Mobile identifier which can be put in normal mode and security mode

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5601333B2 (en) * 2012-02-09 2014-10-08 コニカミノルタ株式会社 Image processing apparatus, threshold matrix shaping method and program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1557090A (en) * 2001-09-21 2004-12-22 ������������ʽ���� Threshold value matrix creating method, image output system, storage medium, gradation reproducing method, threshold value matrix, image processing method, image processing apparatus, image forming ap
JP2010081180A (en) * 2008-09-25 2010-04-08 Dainippon Screen Mfg Co Ltd Image generator and print system
CN102868846A (en) * 2011-07-06 2013-01-09 柯尼卡美能达商用科技株式会社 Mobile identifier which can be put in normal mode and security mode

Also Published As

Publication number Publication date
CN106791269A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
CN104965631B (en) Desktop color matching method and device and intelligent terminal
CN105407524A (en) PHR sending method and a user terminal
US10405120B2 (en) Adaptive panner of audio objects
CN106840139B (en) Electronic fence acquisition method and device and terminal
CN103164231A (en) Input method virtual keyboard skin management method and device
CN103929437A (en) Method and system for determining push content
CN110264405A (en) Image processing method, device, server and storage medium based on interpolation algorithm
CN104506968B (en) A kind of video frequency abstract figure determines method and device
CN106204442A (en) Picture splicing method and device and electronic equipment
CN107734556B (en) Data transfer control method and Related product
CN106791269B (en) A kind of generation of halftone threshold matrix and device
CN105959593A (en) Exposure method for camera device and camera device
CN109168070A (en) Image display method and device
CN105867719A (en) Arrangement method and terminal device
JP6548814B2 (en) Method and apparatus for determining precoding matrix
CN104572214A (en) Display and method and device for refreshing interface of display
CN105224179A (en) Method for information display and device
CN107370523A (en) The system of selection of codebook configuration and the electronic equipment for performing this method
CN104345423A (en) Image collecting method and image collecting equipment
EP2804151B1 (en) Method for rendering data of a three-dimensional surface
CN110368693B (en) MMO game element cutting method and device based on multi-quadtree
CN105814958B (en) Channel method and access point apparatus
CN106803789A (en) A kind of method and apparatus for configuring gateway
CN104333875B (en) A kind of frequency method of adjustment and device
US20210150086A1 (en) Methods, systems, and media for generative urban design where maps are generated using fractals

Legal Events

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

Effective date of registration: 20201126

Address after: 519060 A, building 3, building 01, 3883 Zhuhai Avenue, Zhuhai, Guangdong, China

Patentee after: ZHUHAI PANTUM ELECTRONICS Co.,Ltd.

Address before: 519060 Area A, 7th Floor, Building 01, No. 3883, Zhuhai Avenue, Xiangzhou District, Zhuhai City, Guangdong Province

Patentee before: Zhuhai Saine Printing Technology Co.,Ltd.

TR01 Transfer of patent right