An amplitude modulation-based halftone dot generation method, device and equipment
By binarizing the dot threshold matrix and dividing the hierarchical intervals, complex-shaped dots are generated, solving the problem of insufficient representation of subtle tones in the highlights and shadows in the traditional amplitude modulation screening method. This enables screening of various dot shapes, improving printing quality and anti-counterfeiting printing effects.
Patent Information
- Application Number
- CN202510492806.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-18
- Publication Date
- 2026-02-03
- Estimated Expiration
- 2045-04-18
AI Technical Summary
Traditional amplitude modulation screening methods cannot reproduce the subtle details of an image in the highlights and shadows, and cannot screen mixed dots of different shapes, resulting in poor printing quality.
By obtaining the dot threshold matrix within the target halftone dot image, performing binarization and hierarchical interval division, multiple target sub-interval matrices are generated and combined according to continuous hierarchical levels to form a target halftone dot table, thereby achieving halftone processing for various dot shapes.
It improves the quality of printed images, can represent subtle details, and generate complex-shaped dots, making it suitable for anti-counterfeiting printing and partial halftone printing, thus enhancing the printing effect.
Smart Images

Figure CN120543666B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of image reproduction, and specifically to a method, apparatus, and device for generating halftone dots based on amplitude modulation halftone. Background Technology
[0002] In the printing industry, halftone dots are the basic unit of image reproduction. The shape of the halftone dot directly affects whether the printed material can accurately reproduce the tonal and color variations of the original. Traditional halftone dot shapes include round, square, oval, diamond, and linear. Different shapes of halftone dots exhibit different patterns of change during image reproduction, resulting in different reproduction effects. Halftone dots are generally classified into two types according to the halftone method: amplitude modulation (AM) halftone dots and screen modulation (SMT) halftone dots. Among them, AM halftone dots are currently the most widely used type. In AM halftone dots, the center is fixed, and small dots diffuse outward from the center in a regular pattern, concentrating and distributing to form halftone dots. The diffusion pattern determines the shape of the halftone dot and the halftone angle. AM halftone dots are generally generated using traditional halftone dot generation methods. Traditional halftone dot generation methods have the following problems: they cannot represent the subtle levels of an image in both highlights and shadows; small dots in highlights are easily lost; and in shadows, as the dot area increases, dots tend to overlap, creating jumps in tonal gradations. Furthermore, they cannot handle complex dot shapes or mixtures of different dot shapes. A single dot shape may excel in one aspect, but it cannot surpass other dot shapes in other aspects. Therefore, while a single dot shape may be useful in traditional printing, it is clearly insufficient for other applications, such as anti-counterfeiting or more complex printing applications involving partial halftone dotting. Summary of the Invention
[0003] This invention provides a method, apparatus, and device for generating halftone dots based on amplitude modulation screening, which solves the problems of existing amplitude modulation screening that cannot represent the subtle details of the image in the highlights and shadows, and cannot screen mixed dots of different shapes.
[0004] To solve the above-mentioned technical problems, the technical solution of the present invention is as follows:
[0005] Embodiments of the present invention provide a method for generating halftone dots based on amplitude modulation halftone, comprising:
[0006] Obtain the dot threshold matrix for all individual halftone dot shapes required within the target halftone dot image;
[0007] By setting a preset threshold, the dot threshold matrix of all mesh shapes is binarized to generate a corresponding dot table set. Each dot table set includes binarized matrices of multiple levels.
[0008] Based on the number of dot threshold matrices in the mesh pattern, the binarized matrix of each dot table set is subjected to hierarchical interval partitioning, and matrix extraction is performed after hierarchical interval partitioning to obtain multiple target sub-interval matrices.
[0009] The target sub-interval matrices are recombined in a sequential order to obtain the target halftone dot table.
[0010] Optionally, by using a preset threshold, the dot threshold matrix of all mesh shapes is binarized to generate a corresponding dot table set, including:
[0011] Determine the maximum number of levels corresponding to the threshold matrix of each point;
[0012] Based on the maximum number of layers and the preset threshold, the dot threshold matrix of each mesh shape is binarized to obtain the corresponding binarized matrix.
[0013] Based on the corresponding binarized matrix, generate the corresponding set of dot tables.
[0014] Optionally, based on each maximum number of layers and a preset threshold, the dot threshold matrix of each mesh shape is binarized to obtain the corresponding binarized matrix, including:
[0015] Based on each maximum number of layers and a preset threshold, a corresponding binarized matrix is obtained by comparing the preset threshold with the value m of each element in the dot threshold matrix. During the comparison, if the preset threshold is greater than the value of the current element, the value of the current element in the corresponding binarized matrix is 0; otherwise, the value of the current element is 255. Here, 0 ≤ m ≤ N-1, and N is the maximum number of layers.
[0016] Optionally, based on the number of dot threshold matrices in the mesh pattern, the binarized matrix of each dot table set is subjected to hierarchical interval partitioning, and matrix extraction is performed after hierarchical interval partitioning to obtain multiple target sub-interval matrices, including:
[0017] Based on the number of dot threshold matrices in the mesh, the binarized matrix of each dot table set is divided into hierarchical intervals to obtain the target hierarchical interval corresponding to the binarized matrix of each dot table set.
[0018] The target hierarchical interval is subjected to matrix extraction processing by preset rules to obtain multiple target sub-interval matrices.
[0019] Optionally, based on the number of dot threshold matrices in the mesh pattern, the binarized matrix of each dot table set is divided into hierarchical intervals to obtain the target hierarchical intervals corresponding to the binarized matrix of each dot table set, including:
[0020] The width of each target level interval is determined by a preset function f(i) = c × i + d, where c and d are preset constants and i is the interval number;
[0021] Determine the total hierarchical interval [0, L-1] of the binarized matrix of the current dot matrix set, where L is the total number of levels of the binarized matrix of the previous dot matrix set;
[0022] Based on the number of dot threshold matrices and the width of the target level interval, the total level interval [0, L-1] of the binarized matrix of the current dot table set is divided into n target level intervals to obtain the target level interval corresponding to the binarized matrix of the current dot table set, where n is the number of dot threshold matrices.
[0023] Optionally, the target hierarchical interval is subjected to matrix extraction processing according to preset rules to obtain multiple target sub-interval matrices, including:
[0024] Extract all binary matrices corresponding to the i-th target level interval from the i-th dot matrix set, and use them as the target sub-interval matrix.
[0025] Optionally, the multiple target sub-interval matrices are recombinated in a sequential order to obtain a target halftone dot table, including:
[0026] Arrange the target sub-interval matrix in ascending or descending order of hierarchy to obtain the target halftone dot table.
[0027] Embodiments of the present invention also provide a halftone dot generation device based on amplitude modulation halftone, comprising:
[0028] The acquisition module is used to obtain the dot threshold matrix of all single mesh shapes required within the target halftone dot image;
[0029] The processing module is used to binarize the dot threshold matrices of all mesh types according to a preset threshold, generating corresponding dot table sets. Each dot table set includes multiple levels of binarized matrices. Based on the number of dot threshold matrices of each mesh type, the binarized matrices of each dot table set are divided into hierarchical intervals. After the hierarchical interval division, matrix extraction is performed to obtain multiple target sub-interval matrices. The multiple target sub-interval matrices are recombined in a continuous hierarchical order to obtain the target halftone dot table.
[0030] Embodiments of the present invention also provide a computing device, including: a processor and a memory storing a computer program, wherein the computer program is executed by the processor to perform the above-described method.
[0031] Embodiments of the present invention also provide a computer-readable storage medium, comprising: storage instructions that, when executed on a computer, cause the computer to perform the above-described method.
[0032] The above-described solution of the present invention has at least the following beneficial effects:
[0033] The halftone dot generation method based on amplitude modulation screening described in this invention obtains the dot threshold matrix of all single mesh types required within the target halftone dot image; using a preset threshold, the dot threshold matrix of each mesh type is binarized to generate corresponding dot table sets, each dot table set including multiple levels of binarized matrices; based on the number of dot threshold matrices for each mesh type, the binarized matrix of each dot table set is divided into hierarchical intervals, and matrix extraction is performed after the hierarchical interval division to obtain multiple target sub-interval matrices; the multiple target sub-interval matrices are recombinated in a continuous hierarchical order to obtain the target halftone dot table. This method enables screening of multiple different mesh types while improving image quality during amplitude modulation screening. Attached Figure Description
[0034] Figure 1 This is a flowchart illustrating the halftone dot generation method based on amplitude modulation halftone of the present invention.
[0035] Figure 2 This is a schematic diagram of the preset dot matrix of the halftone dot generation method based on amplitude modulation halftone of the present invention;
[0036] Figure 3 This is a schematic diagram of linear dots in the halftone dot generation method based on amplitude modulation halftone of the present invention;
[0037] Figure 4 This is a schematic diagram of the circular dots after binarization in the halftone dot generation method based on amplitude modulation halftone in this invention;
[0038] Figure 5 This is a schematic diagram of the linear dots after binarization in the halftone dot generation method based on amplitude modulation halftone in this invention;
[0039] Figure 6 This is a schematic diagram of the set of circular halftone dots at different levels in the halftone dot generation method based on amplitude modulation halftone in this invention;
[0040] Figure 7 This is a schematic diagram of the set of linear halftone dots at different levels in the halftone dot generation method based on amplitude modulation halftone in this invention;
[0041] Figure 8This is a schematic diagram of the target halftone dot table in the halftone dot generation method based on amplitude modulation halftone of the present invention;
[0042] Figure 9 This is a schematic diagram illustrating the specific process of the halftone dot generation method based on amplitude modulation halftone in this invention;
[0043] Figure 10 This is a schematic diagram of the module block of the halftone dot generation device based on amplitude modulation halftone of the present invention. Detailed Implementation
[0044] Exemplary embodiments of the present disclosure will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
[0045] like Figure 1 As shown, an embodiment of the present invention proposes a method for generating halftone dots based on amplitude modulation halftone, comprising:
[0046] Step 11: Obtain the dot threshold matrix of all single mesh shapes required within the target halftone dot image;
[0047] Step 12: Binarize the dot threshold matrix of all mesh shapes using a preset threshold to generate a corresponding dot table set. Each dot table set includes multiple levels of binarized matrices.
[0048] Step 13: Based on the number of dot threshold matrices in the mesh pattern, perform hierarchical interval partitioning on the binarized matrix of each dot table set, and perform matrix extraction after hierarchical interval partitioning to obtain multiple target sub-interval matrices.
[0049] Step 14: Recombine the multiple target sub-interval matrices in a sequential order to obtain the target halftone dot table.
[0050] In this embodiment, the halftone dot generation method based on amplitude modulation halftone is mainly used to generate a target halftone dot image by performing halftone halftone processing on the target halftone dot table; in this embodiment, the target halftone dot image includes a dot threshold matrix of at least two single mesh shapes, and the shape of the mesh shape includes a circle, a square, an ellipse, a rhombus, or a line.
[0051] The dot threshold matrix of the mesh shape described in step 11 can be expressed as:
[0052]
[0053]
[0054] Here, T1 can be designated as the main threshold matrix, and the threshold matrices of other mesh types as auxiliary matrices, where n represents the number of mesh types; u represents the width of the threshold matrix, and v represents the height of the threshold matrix. In this embodiment, the halftone dot generation method based on amplitude modulation screening obtains the threshold matrix of one or more dots with the same parameters, and then converts them into binarized matrices of different levels corresponding to multiple dot table sets. These binarized matrices are then subjected to cross-recombination and other operations such as copying and substitution among multiple dot table sets to finally generate a new mixed dot lookup table, thereby obtaining a new target halftone dot table with different levels of mesh type changes. This achieves screening processing of multiple dots with different mesh types, while improving the image quality during amplitude modulation screening. By using existing simple shape dots (circles)... The method of generating new complex dot shapes (such as square, elliptical, rhomboid, and linear) by extracting and combining different dot matrices of different halftone types at different levels during the dot table assembly stage not only retains the advantages of the original halftone dots, but also effectively avoids or reduces the problems of existing amplitude modulation halftones, such as the inability to represent the subtle details of the image in the highlights and shadows, and the inability to process mixed halftone dots of different shapes. At the same time, by organically combining and calculating dots of various basic shapes, complex dot shapes can be constructed to meet different printing suitability needs. This can better realize the transfer of graphic information from the original to the substrate, and also has unique advantages and new ideas for anti-counterfeiting in printing when combining complex editing and customization of different halftone types.
[0055] In an optional embodiment of the present invention, in step 12, the dot threshold matrices of all mesh types are binarized using a preset threshold to generate corresponding dot table sets, including:
[0056] Step 121: Determine the maximum number of levels corresponding to each point threshold matrix;
[0057] Step 122: Based on the maximum number of layers and the preset threshold, the dot threshold matrix of each mesh shape is binarized to obtain the corresponding binarized matrix.
[0058] Step 123: Generate the corresponding set of dot matrix tables based on the corresponding binarized matrix.
[0059] In an optional embodiment of the present invention, step 122 may include:
[0060] Based on each maximum number of layers and a preset threshold, a corresponding binarized matrix is obtained by comparing the preset threshold with the value m of each element in the dot threshold matrix. During the comparison, if the preset threshold is greater than the value of the current element, the value of the current element in the corresponding binarized matrix is 0; otherwise, the value of the current element is 255. Here, 0 ≤ m ≤ N-1, and N is the maximum number of layers.
[0061] In this embodiment, the number of different thresholds in the dot threshold matrix is the maximum number of layers that the dot represented by the dot threshold matrix can be replicated. For a dot threshold matrix of size u×v, the maximum number of layers it represents is N=u*v-1. The preset threshold k∈{0,1,2…N-1} is used to binarize the dot threshold matrix to obtain a dot table set containing N binarized matrices.
[0062] Specifically, step 122 involves comparing the preset threshold k with the value m (0 ≤ m ≤ N-1) of each element in the dot threshold matrix. If k > m, the value of that element in the binarized threshold matrix is 0; otherwise, the value of that element is 255. The threshold matrices of n meshes can be represented as follows after K-level binarization:
[0063]
[0064] Where k∈{0,1,2…N-1};
[0065] Step 123 may include: binarizing the thresholds of each level into matrices, and finally, the set of dot tables after binarizing the threshold matrices of all mesh types is as follows: H1={Tk1|0≤k≤N-1}, H2={Tk2|0≤k≤N-1}…H n ={Tk n |0≤k≤N-1}.
[0066] In an optional embodiment of the present invention, step 13 may include:
[0067] Step 131: Based on the number of dot threshold matrices in the mesh pattern, perform hierarchical interval division processing on the binarized matrix of each dot table set to obtain the target hierarchical interval corresponding to the binarized matrix of each dot table set.
[0068] Step 132: Perform matrix extraction processing on the target hierarchical intervals according to preset rules to obtain multiple target sub-interval matrices.
[0069] In an optional embodiment of the present invention, step 131 may include:
[0070] Step 1311: Determine the width of each target level interval using the preset function f(i) = c × i + d, where c and d are preset constants and i is the interval number;
[0071] Step 1312: Determine the total hierarchical interval [0, L-1] of the binarized matrix of the current dot matrix set, where L is the total number of levels of the binarized matrix of the previous dot matrix set;
[0072] Step 1313: Based on the number of dot threshold matrices of the mesh and the width of the target level interval, divide the total level interval [0, L-1] of the binarized matrix of the current dot table set into n target level intervals to obtain the target level interval corresponding to the binarized matrix of the current dot table set, where n is the number of dot threshold matrices.
[0073] In this embodiment, step 131 may include:
[0074] From the set of dot matrix tables H1, H2...Hn, divide the continuous target hierarchical intervals R1, R2...Rn corresponding to the set number. The method for dividing hierarchical intervals is usually as follows:
[0075] The total number of levels can be defined as [0, L-1], where L is the total number of levels. The number of amplitude modulation meshes with different dot shapes is set to n as above. The method for dividing the level interval is as follows: First, the general level interval can be set as [a, b]. The level division algorithm is based on the quantile algorithm under specific conditions. A function f(i) is introduced to represent the width of the i-th interval, thus ensuring that the width of the interval is editable. The specific calculation method is as follows: Let the lower bound of the i-th interval be L. i The upper bound is U i Where i = 1, 2, ..., n, the lower and upper bounds of each partitioned interval can be calculated by accumulating the widths of all previous intervals: U i =L i +f(i); where a is the starting interval value of the level and b is the ending interval value of the level. In this embodiment, f(i) can be a linear function, an exponential function or any other function based on i. In this invention, f(i) is a function that increases linearly with i, set as f(i) = c*i + d, where c and d are constants. This setting allows the width of the interval to increase or decrease proportionally as the level increases.
[0076] Step 132, specifically, after the above-mentioned hierarchical division, correspondingly assign H1, H2…H n Taking the matrices from the corresponding hierarchical intervals, we can represent them as follows: The present invention does not require the order of the extracted sub-matrices to be in the same order as the original matrix; the sub-matrix data can be extracted in any order.
[0077] In an optional embodiment of the present invention, step 132 may include:
[0078] Extract all binary matrices corresponding to the i-th target level interval from the i-th dot matrix set, and use them as the target sub-interval matrix.
[0079] In an optional embodiment of the present invention, step 14 may include:
[0080] Arrange the target sub-interval matrix in ascending or descending order of hierarchy to obtain the target halftone dot table.
[0081] In this embodiment, the target sub-interval matrix is combined and arranged to obtain the result that is the same as the original H1, H2…H n A new set of binary halftone matrix H, composed of multiple halftone table sets of the same size, is represented as follows: H = {Hk|0≤k≤N-1}. Given a level k (0≤k≤N-1), the corresponding binary halftone matrix after combination can be retrieved from H by indexing. This matrix comes from the original sets H1, H2…H n A set of matrices in the dataset.
[0082] like Figure 9 As shown below, the specific implementation process of the halftone dot generation method based on amplitude modulation halftone according to the present invention will be illustrated with specific examples:
[0083] Assume that the thresholding matrix for all single halftone dots required in the target halftone halftone image is of two types: the thresholding matrix for circular dots (the thresholding matrix for the first halftone dot) and the thresholding matrix for linear dots (the thresholding matrix for the second halftone dot);
[0084] First, obtain the threshold matrix for circular and linear halftone dots. Here, we use circular and linear halftone dots with a 75° halftone angle. Figure 2 and Figure 3 As shown, some data in the corresponding threshold matrices T1 and T2 are as follows:
[0085]
[0086] Then, using a preset threshold, the dot threshold matrices of all mesh types are binarized to generate corresponding dot tables. Each dot table set includes binarized matrices at multiple levels. Specifically, the value of each element in the dot threshold matrices T1 and T2 is read, normalized to 256 levels, and then binarized using k as the threshold to obtain Tk1 and Tk2 (0≤k≤255). Finally, the binarized data of 256 levels are written into sets H1 and H2 respectively. The form of the binarized matrix of a certain item in H1 or H2 can be represented as the following set, taking p = 237 for binarized matrix T1 and q = 248 for binarized matrix T2. The partial data of its binarized matrix is as follows:
[0087]
[0088] The corresponding dot pattern at this time is as follows: Figure 4 and Figure 5 As shown; similarly, each threshold is traversed from the full-level interval [0,255] and the threshold matrix T is binarized sequentially. 1 and T 2 The corresponding set H1 and H2 dot matrices within the [0,255] level interval are obtained as follows: Figure 6 and Figure 7 As shown; then, based on the number of dot threshold matrices in the mesh shape, the binarized matrix of each dot table set is subjected to hierarchical interval division processing, and matrix extraction processing is performed after hierarchical interval division processing to obtain multiple target sub-interval matrices. That is, hierarchical division and matrix extraction of binarized matrices H1 and H2 are specifically performed as follows: In this embodiment, since two mesh shapes are used, the interval division calculation is as follows: The total number of levels L is 256, n=2, then the length of the hierarchical interval c is: c=256 / 2=128. Thus, two hierarchical intervals are divided, 0-127 and 128-255, and the 0-127 hierarchical interval of set H1 is extracted respectively. All matrices of H1 and H2 within the 128-255 interval are used as elements for combining new matrix spaces later. The division of intervals and the selection of data from existing dot matrix sets within each interval are not limited to the division and extraction methods in this embodiment. The multiple target sub-interval matrices are recombined in a sequential order to obtain the target halftone dot matrix. Specifically, the extracted matrix sets of the two levels are merged to reconstruct a full-level matrix set H of 0-255. The matrix distribution characteristics are: circular dot matrix integration is used for the 0-127 level interval, and linear dot matrix is used for the 128-255 level interval. The effect is as follows: Figure 8As shown, a set of halftone dots consisting of a mixture of circular and linear dots has been generated, namely the target halftone halftone dot table. This target halftone halftone dot table can be used for subsequent halftone halftone operations. By performing halftone halftone processing on the target halftone halftone dot table, a target halftone dot image is generated.
[0089] The halftone dot generation method based on amplitude modulation screening described in this invention can construct complex-shaped dots from simple-shaped dots. Compared with traditional dot generation methods, it is simpler and easier to implement. It can generate a combination effect of amplitude modulation dots of arbitrary shapes. By performing cross-recombination operations such as copying and substitution between multiple dot lookup tables through a binarization matrix, a new mixed dot lookup table is finally generated, thereby obtaining new halftone dots with different levels of dot pattern changes. At the same time, the new combined dots generated by this patent can not only maintain the advantages of the original amplitude modulation dots, but also effectively avoid or reduce the shortcomings of the above-mentioned amplitude modulation screening. It also has unique advantages and new anti-counterfeiting encryption technology methods in printing anti-counterfeiting when combining complex editing and customization of different dot patterns.
[0090] like Figure 10 As shown, embodiments of the present invention also provide a halftone image generation apparatus 90, comprising:
[0091] The acquisition module 91 is used to acquire the dot threshold matrix of all single mesh shapes required within the target halftone dot image;
[0092] The processing module 92 is used to perform binarization processing on the dot threshold matrix of all mesh types according to a preset threshold, generating a corresponding dot table set. Each dot table set includes multiple levels of binarized matrices. Based on the number of dot threshold matrices of the mesh type, the binarized matrix of each dot table set is divided into hierarchical intervals. After the hierarchical interval division, matrix extraction processing is performed to obtain multiple target sub-interval matrices. The multiple target sub-interval matrices are recombined in a continuous hierarchical order to obtain a target halftone dot table.
[0093] Optionally, by using a preset threshold, the dot threshold matrix of all mesh shapes is binarized to generate a corresponding dot table set, including:
[0094] Determine the maximum number of levels corresponding to the threshold matrix of each point;
[0095] Based on the maximum number of layers and the preset threshold, the threshold matrix of each mesh shape is binarized using a preset method to obtain the corresponding binarized matrix.
[0096] Based on the corresponding binarized matrix, generate the corresponding set of dot tables.
[0097] Optionally, based on each maximum number of layers and a preset threshold, the dot threshold matrix of each mesh shape is binarized to obtain the corresponding binarized matrix, including:
[0098] Based on each maximum number of layers and a preset threshold, a corresponding binarized matrix is obtained by comparing the preset threshold with the value m of each element in the dot threshold matrix. During the comparison, if the preset threshold is greater than the value of the current element, the value of the current element in the corresponding binarized matrix is 0; otherwise, the value of the current element is 255. Here, 0 ≤ m ≤ N-1, and N is the maximum number of layers.
[0099] Optionally, based on the number of dot threshold matrices in the mesh pattern, the binarized matrix of each dot table set is subjected to hierarchical interval partitioning, and matrix extraction is performed after hierarchical interval partitioning to obtain multiple target sub-interval matrices, including:
[0100] Based on the number of dot threshold matrices in the mesh pattern, the binarized matrix of each dot table set is divided into hierarchical intervals using a preset partitioning method to obtain the target hierarchical intervals corresponding to the binarized matrix of each dot table set.
[0101] The target hierarchical interval is subjected to matrix extraction processing by preset rules to obtain multiple target sub-interval matrices.
[0102] Optionally, based on the number of dot threshold matrices in the mesh pattern, the binarized matrix of each dot table set is divided into hierarchical intervals to obtain the target hierarchical intervals corresponding to the binarized matrix of each dot table set, including:
[0103] The width of each target level interval is determined by a preset function f(i) = c × i + d, where c and d are preset constants and i is the interval number;
[0104] Determine the total hierarchical interval [0, L-1] of the binarized matrix of the current dot matrix set, where L is the total number of levels of the binarized matrix of the previous dot matrix set;
[0105] Based on the number of dot threshold matrices and the width of the target level interval, the total level interval [0, L-1] of the binarized matrix of the current dot table set is divided into n target level intervals to obtain the target level interval corresponding to the binarized matrix of the current dot table set, where n is the number of dot threshold matrices.
[0106] Optionally, the target hierarchical interval is subjected to matrix extraction processing according to preset rules to obtain multiple target sub-interval matrices, including:
[0107] Extract all binary matrices corresponding to the i-th target level interval from the i-th dot matrix set, and use them as the target sub-interval matrix.
[0108] Optionally, the multiple target sub-interval matrices are recombinated in a sequential order to obtain a target halftone dot table, including:
[0109] Arrange the target sub-interval matrix in ascending or descending order of hierarchy to obtain the target halftone dot table.
[0110] It should be noted that this device is the same as the method described above. All implementations of the method described above are applicable to the embodiments of this device and can achieve the same technical effect.
[0111] Embodiments of the present invention also provide a computing device, including: a processor and a memory storing a computer program, wherein the computer program, when executed by the processor, performs the above-described method. All implementations in the above method embodiments are applicable to this embodiment and can achieve the same technical effects.
[0112] Embodiments of the present invention also provide a computer-readable storage medium, comprising: stored instructions, which, when executed on a computer, cause the computer to perform the above-described method. All implementations in the above method embodiments are applicable to this embodiment and can achieve the same technical effects.
[0113] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.
[0114] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0115] In the embodiments provided by this invention, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0116] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0117] In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0118] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, ROM, RAM, magnetic disks, or optical disks.
[0119] Furthermore, it should be noted that in the apparatus and method of the present invention, it is obvious that the components or steps can be decomposed and / or recombined. These decompositions and / or recombinations should be considered equivalent solutions of the present invention. Moreover, the steps performing the above-described series of processes can naturally be executed in the order described, but are not necessarily required to be executed in chronological order; some steps can be executed in parallel or independently of each other. Those skilled in the art will understand that all or any step or component of the method and apparatus of the present invention can be implemented in any computing device (including processors, storage media, etc.) or network of computing devices, in hardware, firmware, software, or a combination thereof. This is something that those skilled in the art can achieve by using their basic programming skills after reading the description of the present invention.
[0120] Therefore, the object of the present invention can also be achieved by running a program or a set of programs on any computing device. The computing device can be a known general-purpose device. Therefore, the object of the present invention can also be achieved simply by providing a program product containing program code for implementing the method or apparatus. That is, such a program product also constitutes the present invention, and the storage medium storing such a program product also constitutes the present invention. Obviously, the storage medium can be any known storage medium or any storage medium developed in the future. It should also be noted that in the apparatus and method of the present invention, it is obvious that the components or steps can be decomposed and / or recombined. These decompositions and / or recombinations should be considered equivalent to the present invention. Furthermore, the steps for performing the above series of processes can naturally be performed in the order described, but are not necessarily required to be performed in chronological order. Some steps can be performed in parallel or independently of each other.
[0121] The above are preferred embodiments of the present invention. It should be noted that, for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A method for generating halftone dots based on amplitude modulation halftone, characterized in that, include: Obtain the dot threshold matrix for all individual halftone dot shapes required within the target halftone dot image; By setting a preset threshold, the dot threshold matrix of all mesh shapes is binarized to generate a corresponding dot table set. Each dot table set includes binarized matrices of multiple levels. Based on the number of dot threshold matrices in the mesh pattern, the binarized matrix of each dot table set is subjected to hierarchical interval partitioning, and matrix extraction is performed after hierarchical interval partitioning to obtain multiple target sub-interval matrices. The multiple target sub-interval matrices are recombined in a sequential order to obtain a target halftone dot table; wherein the target halftone dot image includes at least two single dot threshold matrices, and the shape of the dot includes circle, square, ellipse, rhombus or line. Specifically, by using a preset threshold, the dot threshold matrix of all mesh types is binarized to generate a corresponding dot table set, including: Determine the maximum number of levels corresponding to each dot threshold matrix; specifically, the number of different thresholds within each dot threshold matrix is the maximum number of levels that can be replicated for each dot represented by the dot threshold matrix. For a dot threshold matrix of size u×v, the maximum number of levels... Where u represents the width of the threshold matrix and v represents the height of the threshold matrix; Based on the maximum number of layers and the preset threshold, the dot threshold matrix of each mesh shape is binarized to obtain the corresponding binarized matrix. Based on the corresponding binarized matrix, generate the corresponding set of dot table; Specifically, based on each maximum number of layers and a preset threshold, the dot threshold matrix of each mesh shape is binarized to obtain the corresponding binarized matrix, including: Based on each maximum number of layers and a preset threshold, a corresponding binarized matrix is obtained by comparing the preset threshold with the value m of each element in the dot threshold matrix. During the comparison, if the preset threshold is greater than the value of the current element, the value of the current element in the corresponding binarized matrix is 0; otherwise, the value of the current element is 255, where 0 ≤ m ≤ N-1, and N is the maximum number of layers. Specifically, the preset threshold k is compared with the value m of each element in the dot threshold matrix, where 0 ≤ m ≤ N-1. If k > m, the value of that element in the binarized threshold matrix is 0; otherwise, the value of that element is 255. The threshold matrices of n meshes are represented by the matrices after K-level binarization as follows: (0≤m1 ≤N-1,0≤i≤u×v-1); (0≤m2 ≤N-1,0≤i≤u×v-1) (0≤mn ≤N-1,0≤i≤u×v-1); where, k ; Specifically, based on the number of dot threshold matrices in the mesh pattern, the binarized matrix of each dot table set is subjected to hierarchical interval partitioning, and matrix extraction is performed after hierarchical interval partitioning to obtain multiple target sub-interval matrices, including: Based on the number of dot threshold matrices in the mesh, the binarized matrix of each dot table set is divided into hierarchical intervals to obtain the target hierarchical interval corresponding to the binarized matrix of each dot table set. The target hierarchical intervals are subjected to matrix extraction processing using preset rules to obtain multiple target sub-interval matrices; Specifically, based on the number of dot threshold matrices in the mesh pattern, the binarized matrix of each dot table set is divided into hierarchical intervals to obtain the target hierarchical intervals corresponding to the binarized matrix of each dot table set, including: The width of each target level interval is determined by a preset function f(i)=c×i+d, where c and d are preset constants and i is the interval index; Determine the total hierarchical interval [0, L-1] of the binarized matrix of the current dot matrix set, where L is the total number of levels of the binarized matrix of the previous dot matrix set; Based on the number of dot threshold matrices and the width of the target level interval, the total level interval [0, L-1] of the binarized matrix of the current dot table set is divided into n target level intervals to obtain the target level interval corresponding to the binarized matrix of the current dot table set, where n is the number of dot threshold matrices.
2. The method for generating halftone dots based on amplitude modulation halftone according to claim 1, characterized in that, The target hierarchical intervals are subjected to matrix extraction processing using preset rules to obtain multiple target sub-interval matrices, including: Extract all binary matrices corresponding to the i-th target level interval from the i-th dot matrix set, and use them as the target sub-interval matrix.
3. The method for generating halftone dots based on amplitude modulation halftone according to claim 1, characterized in that, The multiple target sub-interval matrices are recombinated in a sequential hierarchical order to obtain a target halftone dot table, including: Arrange the target sub-interval matrix in ascending or descending order of hierarchy to obtain the target halftone dot table.
4. A halftone dot generation device based on amplitude modulation halftone, characterized in that, include: The acquisition module is used to obtain the dot threshold matrix of all single mesh shapes required within the target halftone dot image; The processing module is used to binarize the dot threshold matrices of all mesh types according to a preset threshold, generating corresponding dot table sets. Each dot table set includes multiple levels of binarized matrices. Based on the number of dot threshold matrices of the mesh type, the binarized matrices of each dot table set are divided into hierarchical intervals. After the hierarchical interval division, matrix extraction is performed to obtain multiple target sub-interval matrices. The multiple target sub-interval matrices are recombined in a continuous hierarchical order to obtain a target halftone dot table. The target halftone dot image includes a dot threshold matrix of at least two single dot shapes, and the shape of the dot shape includes a circle, a square, an ellipse, a rhombus, or a line. Specifically, by using a preset threshold, the dot threshold matrix of all mesh types is binarized to generate a corresponding dot table set, including: Determine the maximum number of levels corresponding to each dot threshold matrix; specifically, the number of different thresholds within each dot threshold matrix is the maximum number of levels that can be replicated for each dot represented by the dot threshold matrix. For a dot threshold matrix of size u×v, the maximum number of levels... Where u represents the width of the threshold matrix and v represents the height of the threshold matrix; Based on the maximum number of layers and the preset threshold, the dot threshold matrix of each mesh shape is binarized to obtain the corresponding binarized matrix. Based on the corresponding binarized matrix, generate the corresponding set of dot table; Specifically, based on each maximum number of layers and a preset threshold, the dot threshold matrix of each mesh shape is binarized to obtain the corresponding binarized matrix, including: Based on each maximum number of layers and a preset threshold, a corresponding binarized matrix is obtained by comparing the preset threshold with the value m of each element in the dot threshold matrix. During the comparison, if the preset threshold is greater than the value of the current element, the value of the current element in the corresponding binarized matrix is 0; otherwise, the value of the current element is 255, where 0 ≤ m ≤ N-1, and N is the maximum number of layers. Specifically, the preset threshold k is compared with the value m of each element in the dot threshold matrix, where 0 ≤ m ≤ N-1. If k > m, the value of that element in the binarized threshold matrix is 0; otherwise, the value of that element is 255. The threshold matrices of n meshes are represented by the matrices after K-level binarization as follows: (0≤m1 ≤N-1,0≤i≤u×v-1); (0≤m2 ≤N-1,0≤i≤u×v-1) (0≤mn ≤N-1,0≤i≤u×v-1); where, k ; Specifically, based on the number of dot threshold matrices in the mesh pattern, the binarized matrix of each dot table set is subjected to hierarchical interval partitioning, and matrix extraction is performed after hierarchical interval partitioning to obtain multiple target sub-interval matrices, including: Based on the number of dot threshold matrices in the mesh, the binarized matrix of each dot table set is divided into hierarchical intervals to obtain the target hierarchical interval corresponding to the binarized matrix of each dot table set. The target hierarchical intervals are subjected to matrix extraction processing using preset rules to obtain multiple target sub-interval matrices; Specifically, based on the number of dot threshold matrices in the mesh pattern, the binarized matrix of each dot table set is divided into hierarchical intervals to obtain the target hierarchical intervals corresponding to the binarized matrix of each dot table set, including: The width of each target level interval is determined by a preset function f(i)=c×i+d, where c and d are preset constants and i is the interval index; Determine the total hierarchical interval [0, L-1] of the binarized matrix of the current dot matrix set, where L is the total number of levels of the binarized matrix of the previous dot matrix set; Based on the number of dot threshold matrices and the width of the target level interval, the total level interval [0, L-1] of the binarized matrix of the current dot table set is divided into n target level intervals to obtain the target level interval corresponding to the binarized matrix of the current dot table set, where n is the number of dot threshold matrices.
5. A computing device, characterized in that, include: A processor, a memory storing a computer program, wherein the computer program, when executed by the processor, performs the method as described in any one of claims 1 to 3.
6. A computer-readable storage medium, characterized in that, A storage instruction that, when executed on a computer, causes the computer to perform the method as described in any one of claims 1 to 3.
Citation Information
Patent Citations
Dot generating method and device in image copying
CN104112027A