Halftone processing method, device, equipment and storage medium for three-dimensional model

By slicing and halftoning the outer surface of the 3D model, combined with flexible dot data reading, the problems of inaccurate color reproduction and radioactive textures in 3D printing are solved, improving print quality and reducing consumables consumption.

CN115482365BActive Publication Date: 2025-09-16SHENZHEN HOSONSOFT CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110667093.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-16
Publication Date
2025-09-16
Estimated Expiration
2041-06-16

AI Technical Summary

Technical Problem

In existing 3D printing technologies, the printing quality of 3D models is not high, especially in terms of inaccurate color reproduction and radioactive textures.

Method used

By slicing the 3D model, distinguishing the layer edges and internal pixels, and performing halftone processing respectively, combined with the 2D image processing of the outer surface, the dot data can be flexibly read to ensure color accuracy and reduce radioactive texture.

Benefits of technology

It improves the color reproduction accuracy of 3D printing, reduces radioactive textures, optimizes printing quality and effects, and reduces the consumption of printing consumables.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115482365B_ABST
    Figure CN115482365B_ABST
Patent Text Reader

Abstract

The present invention belongs to the technical field of three-dimensional printing, and specifically provides a method, device, equipment and storage medium for halftone processing of a three-dimensional model. The embodiment of the present invention selectively reads the first image dot data and the third image dot data to ensure that the dot data in the fourth image dot data includes the dot data obtained by halftone processing based on the outer surface and the dot data obtained by halftone processing based on the layer. Therefore, the use of the second image dot data or the third image dot data obtained by halftone processing based on the outer surface for printing is avoided, which can better improve the radial texture caused by this. Similarly, the use of the first image dot data obtained by halftone processing based on the layer for printing is avoided, which can better improve the phenomenon of inaccurate color restoration of the outer surface of the three-dimensional model caused by this, thereby improving the quality and effect of three-dimensional printing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of three-dimensional printing, and in particular to a halftone processing method, device, equipment and storage medium for a three-dimensional model. Background Art

[0002] Three-dimensional printing, also known as additive manufacturing or 3D printing (3DP), is a rapid prototyping technology that uses a three-dimensional model as a foundation and specific adhesive materials to build three-dimensional objects layer by layer.

[0003] 3D printing mainly includes the following steps: first, use 3D design software to model the 3D object to be printed; second, based on specific printing equipment, use relevant materials to implement printing, and then manufacture the corresponding 3D object.

[0004] As 3D printing technology becomes more mature, people have higher and higher requirements for 3D objects produced by 3D printing. They not only hope to produce solid-color products through 3D printing, but also hope to produce products with multiple colors through 3D printing.

[0005] Because direct halftoning of 3D models is difficult to achieve, one approach is to slice the 3D model and then perform halftoning. However, when halftoning slices, halftoning errors only diffuse within the same slice, not across different slices. This results in inaccurate color reproduction of the 3D model's outer surface. Another approach is to expand the 3D model's envelope layer and use this as the basis for halftoning. This method only generates dot data for the 3D model's outer surface. If this method is used to print the interior of the 3D model, it must be expanded accordingly. The expanded dot data represents the same ink flow as the dot data on the 3D model's outer surface. Therefore, if the dot data on the 3D model's outer surface indicates ink flow, the expanded dot data also indicates ink flow; if the dot data on the 3D model's outer surface indicates no ink flow, the expanded dot data also indicates no ink flow, which visually results in a number of radial textures in the printed product. Therefore, regardless of which approach is used, there is room for improvement in the print quality of 3D printing. Summary of the Invention

[0006] In view of this, embodiments of the present invention provide a halftone processing method, apparatus, device, and storage medium for a three-dimensional model, so as to solve the technical problem of low printing quality in the prior art three-dimensional printing.

[0007] In a first aspect, an embodiment of the present invention provides a method for halftone processing of a three-dimensional model, the method comprising:

[0008] S1: Obtain the three-dimensional model to be printed;

[0009] S2: Slicing the three-dimensional model to obtain a plurality of slices; recording pixel points at the edge of the slice as first pixel points, and recording pixel points within the slice as second pixel points;

[0010] S3: performing halftone processing on each of the layers to obtain first image dot matrix data corresponding to each layer;

[0011] S4: extracting the outer surface of the three-dimensional model and unfolding the outer surface into a two-dimensional image;

[0012] S5: performing halftone processing on the two-dimensional image to obtain second image dot matrix data;

[0013] S6: Determine the dot data corresponding to the first pixel point according to the second image dot matrix data;

[0014] S7: Setting the dot data corresponding to the second pixel, wherein the setting the dot data corresponding to the second pixel comprises: setting the dot data corresponding to the second pixel to the dot data corresponding to the first pixel closest thereto;

[0015] S8: merging the dot data corresponding to each pixel point on the layer slices into the layer slices to obtain third image dot matrix data;

[0016] S9: Reading dot data from the first image dot matrix data and the corresponding third image dot matrix data, and combining them to obtain fourth image dot matrix data corresponding to each layer.

[0017] By selectively reading the first and third image dot data, the embodiments of the present invention ensure that the dot data in the fourth image dot data includes both dot data obtained through halftoning of the outer surface and dot data obtained through halftoning of the layer. This avoids the need for printing using the second or third image dot data obtained solely through halftoning of the outer surface, significantly improving the resulting radial texture. Similarly, by avoiding the need for printing using the first image dot data obtained solely through halftoning of the layer, significantly improving the resulting inaccurate color reproduction of the outer surface of the 3D model, thereby enhancing the quality and effectiveness of 3D printing.

[0018] Preferably, in said S9, it includes:

[0019] S91: Acquire a two-dimensional matrix, where the data type of the two-dimensional matrix includes first data and second data;

[0020] S92: Reading dot data from the first image dot data and the corresponding third image dot data according to the data type to form fourth image dot data; wherein, when the data type is first data, the dot data is read from the corresponding position in the first image dot data; when the data type is second data, the dot data is read from the corresponding position in the third image dot data.

[0021] This embodiment of the present invention selectively reads the first and third image dot matrix data using a two-dimensional matrix. By setting the data type within the two-dimensional matrix, the first and third image dot matrix data can be flexibly read and controlled, thereby adjusting the fourth image dot matrix data. Therefore, the two-dimensional matrix can be continuously adjusted based on the printing effect to optimize print quality.

[0022] Preferably, the proportion of the second data in each layer of data of the two-dimensional matrix decreases continuously from the outer layer to the inner layer.

[0023] Specifically, the data in the outer layers of the 2D matrix corresponds to the dot data outside the layer. Therefore, the greater the proportion of the second data in the outer layers of the 2D matrix, the more dot data is read from the third image dot matrix data for printing. Therefore, it can be understood that the outer surface of the 3D product is controlled by the dot data derived from the halftoning process of the 3D model's outer surface. Because halftoning errors are diffused across each pixel on the outer surface during halftoning, color reproduction is more accurate. As a result, the color of the printed outer surface of the 3D product and the outer surface of the 3D model converge. Furthermore, because the proportion of the second data in each layer of the 2D matrix data decreases from the outer layer to the inner layer, more and more locations within the 3D product are printed based on the first image dot matrix data, avoiding radial textures. Furthermore, because the second data decreases, the color transition from the outer to the inner part of the 3D model is smooth. Even if wear and tear occur on the outer surface, it is not easily visible, ensuring good print quality.

[0024] Preferably, before S3, the method further includes:

[0025] S31: Obtain color information of the first pixel;

[0026] S32: Setting the color information of the second pixel point according to the color information of the first pixel point; wherein, setting the color information of the second pixel point according to the color information of the first pixel point includes: setting the color information of the second pixel point to the color information of the first pixel point closest to it; or adjusting the color information of the first pixel point closest to the second pixel point as the color information of the second pixel point, and the amount of consumables represented by the adjusted color information of the second pixel point is less than the amount of consumables represented by the corresponding color information of the first pixel point.

[0027] Because designing the color of a 3D model's interior is difficult during modeling, or because some 3D models in certain data formats only store information about the model's outer envelope, embodiments of the present invention reconfigure the color information of pixels within a layer. One approach involves setting the color information of a second pixel to the color information of the first pixel closest to it, thereby overlaying the color of the 3D object's outer surface to enhance color display. Even if the outer surface's color fades due to friction, impact, or the like, it will be less noticeable visually because the color of the closest pixel is the same, resulting in better quality. Another approach involves adjusting the color information of the first pixel closest to a second pixel and using it as the color information for the second pixel. This ensures a consistent color within the layer, similar to the color of the outer surface closest to it, while also reducing the cost of printing consumables for printing the inner layer and saving production costs.

[0028] Preferably, in said S4, it includes:

[0029] S41: Get color processing width;

[0030] S42: determining a color processing region according to the edge of the layer and the color processing width; wherein the area of ​​the color processing region is smaller than the area of ​​the layer, and the color processing region includes the edge of the layer;

[0031] S43: Setting color information of a second pixel point located in the color processing area according to the color information of the first pixel point.

[0032] This embodiment of the present invention determines a color processing region by obtaining the color processing width and the edge of the layer, making the area of ​​the color processing region smaller than the area of ​​the layer. The color information of the pixels within the color processing region is then determined. Consequently, only the dot data corresponding to the color processing region in the first image dot matrix data obtained through subsequent halftoning is used to instruct the printing device to print, thereby minimizing the consumption of printing consumables and reducing the manufacturing cost of three-dimensional objects.

[0033] Preferably, in said S7, it includes:

[0034] S71: Obtaining dot processing width;

[0035] S72: Determine a dot processing region according to the edge of the layer and the dot processing width; wherein the area of ​​the dot processing region is smaller than the area of ​​the layer, and the dot processing region includes the edge of the layer;

[0036] S73: Setting the halftone dot data corresponding to the second pixel point located in the halftone dot processing area to the halftone dot data corresponding to the first pixel point closest thereto.

[0037] This embodiment of the present invention determines the dot processing area by obtaining the dot processing width and the edge of the layer, making the area of ​​the dot processing area smaller than the area of ​​the layer. The dot data corresponding to the pixels within the dot processing area is then determined. Consequently, only the dot data corresponding to the dot processing area in the resulting second or third image dot matrix data is used to instruct the printing device to print, thereby minimizing the consumption of printing consumables and reducing the manufacturing cost of three-dimensional objects.

[0038] Preferably, after S9, the method includes: printing according to the fourth image dot matrix data.

[0039] In a second aspect, an embodiment of the present invention provides a halftone processing device for a three-dimensional model, the device comprising:

[0040] A three-dimensional model acquisition module, used to acquire a three-dimensional model to be printed;

[0041] a slicing processing module, configured to slice the three-dimensional model to obtain a plurality of slices; a pixel point located at the edge of the slice is recorded as a first pixel point, and a pixel point located inside the slice is recorded as a second pixel point;

[0042] A first halftone processing module is used to perform halftone processing on each of the layers to obtain first image dot matrix data corresponding to each layer;

[0043] a three-dimensional model unfolding module, configured to extract an outer surface of the three-dimensional model and unfold the outer surface into a two-dimensional image;

[0044] A second halftone processing module, configured to perform halftone processing on the two-dimensional image to obtain second image dot matrix data;

[0045] A first halftone dot data determination module, configured to determine halftone dot data corresponding to the first pixel point based on the second image dot matrix data;

[0046] A second halftone dot data determination module is configured to set halftone dot data corresponding to a second pixel point, wherein the setting of halftone dot data corresponding to the second pixel point comprises: setting the halftone dot data corresponding to the second pixel point to the halftone dot data corresponding to the first pixel point closest thereto;

[0047] A dot data merging module, configured to merge the dot data corresponding to each pixel point on the layer slices into respective layers to obtain third image dot matrix data;

[0048] The halftone dot data reading module is used to read halftone dot data from the first image dot matrix data and the corresponding third image dot matrix data, and combine them to obtain fourth image dot matrix data corresponding to each layer.

[0049] In a third aspect, an embodiment of the present invention provides a printing device comprising: at least one processor, at least one memory, and computer program instructions stored in the memory, wherein when the computer program instructions are executed by the processor, the method of the first aspect of the above embodiment is implemented.

[0050] In a fourth aspect, an embodiment of the present invention provides a storage medium having computer program instructions stored thereon, which implements the method of the first aspect of the above-mentioned embodiment when the computer program instructions are executed by a processor. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work, and these are all within the scope of protection of the present invention.

[0052] Figure 1 This is a schematic diagram of a 3D printing process based on slicing provided by an embodiment of the present invention.

[0053] Figure 2 This is a schematic diagram of a three-dimensional printing process based on envelope expansion provided by an embodiment of the present invention.

[0054] Figure 3 The figure is a flow chart of a halftone processing method for a three-dimensional model provided by an embodiment of the present invention.

[0055] Figure 4 It is a schematic diagram of a slicing process provided by an embodiment of the present invention.

[0056] Figure 5 It is a schematic diagram of a layer provided by an embodiment of the present invention.

[0057] Figure 6 It is a schematic diagram of generating fourth image dot matrix data provided by an embodiment of the present invention.

[0058] Figure 7 This is a flow chart of a method for setting the color information of a second pixel provided by an embodiment of the present invention.

[0059] Figure 8 Schematic diagram of another layer provided by an embodiment of the present invention.

[0060] Figure 9 It is a flowchart of a method for setting dot data corresponding to a second pixel point provided by an embodiment of the present invention.

[0061] Figure 10 The figure is a schematic structural diagram of a halftone processing device for a three-dimensional model provided by an embodiment of the present invention.

[0062] Figure 11 It is a structural schematic diagram of a printing device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0063] The features and exemplary embodiments of various aspects of the present invention will be described in detail below. In order to make the objects, technical solutions and advantages of the present invention more clearly understood, the present invention will be further described in detail below in conjunction with the accompanying drawings and Examples. It should be understood that the specific embodiments described herein are only configured to explain the present invention and are not configured to limit the present invention. For those skilled in the art, the present invention can be implemented without the need for some of these specific details. The following description of the embodiments is merely to provide a better understanding of the present invention by illustrating examples of the present invention.

[0064] It should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, the elements defined by the phrase "comprising..." do not exclude the presence of other identical elements in the process, method, article, or device comprising the elements.

[0065] See Figure 1This is a schematic diagram of a 3D printing process. Specifically, the process is based on slicing. After acquiring a 3D model, it is sliced ​​to produce multiple layers. These layers are then color-processed. These color-processed layers are then halftoned and converted into image dot data, a file format recognizable by the printing device. This image dot data is then used to control the printhead for printing.

[0066] While this approach solves the halftoning problem for 3D models, it does have certain drawbacks. Specifically, because each layer is halftoned individually, halftoning error diffusion can only occur within that layer. This means the entire surface of the 3D model is not halftoned. Consequently, the resulting 3D object suffers from inaccurate color reproduction and a certain degree of color disparity between layers.

[0067] See Figure 2 , is a schematic diagram of another 3D printing process. Specifically, this process is based on envelope expansion, which involves extracting and unfolding the outer surface of a 3D model. After acquiring the 3D model, envelope expansion is performed to produce a 2D image. This 2D image is then color-processed. This color-processed 2D image is then halftoned and converted into image dot data, a file format recognizable by the printing device. This image dot data is then used to control the printhead for printing.

[0068] Although this method solves the problem of inaccurate color reproduction in the aforementioned process, since the obtained image dot matrix data only corresponds to the outer surface of the three-dimensional model, the interior of the three-dimensional model lacks corresponding dot data. One possible way to achieve this is to print the interior according to the dot data of the outer surface. This method can easily cause radial textures in the three-dimensional model.

[0069] It should be noted that, combined with Figure 1 or Figure 2 Each of the processes described can be implemented by different devices or apparatuses. For example, slicing and color processing are performed by a host computer, halftoning is performed by a raster image processor (RIP), and printing is performed by a printing device. Of course, all of the above processes can also be performed directly by the printing device.

[0070] In view of this, embodiments of the present invention provide a halftone processing method, apparatus, device, and storage medium for a three-dimensional model, which improve the color restoration accuracy of the outer surface of the three-dimensional model while avoiding radioactive textures.

[0071] See Figure 3, is a flow chart of a halftone processing method for a three-dimensional model provided by an embodiment of the present invention, comprising the following steps:

[0072] S1: Obtain the three-dimensional model to be printed;

[0073] S2: Slicing the three-dimensional model to obtain a plurality of slices; recording pixel points at the edge of the slice as first pixel points, and recording pixel points within the slice as second pixel points;

[0074] S3: performing halftone processing on each of the layers to obtain first image dot matrix data corresponding to each layer;

[0075] S4: extracting the outer surface of the three-dimensional model and unfolding the outer surface into a two-dimensional image;

[0076] S5: performing halftone processing on the two-dimensional image to obtain second image dot matrix data;

[0077] S6: Determine the dot data corresponding to the first pixel point according to the second image dot matrix data;

[0078] S7: Setting the dot data corresponding to the second pixel, wherein the setting the dot data corresponding to the second pixel comprises: setting the dot data corresponding to the second pixel to the dot data corresponding to the first pixel closest thereto;

[0079] S8: merging the dot data corresponding to each pixel point on the layer slices into the layer slices to obtain third image dot matrix data;

[0080] S9: Reading dot data from the first image dot matrix data and the corresponding third image dot matrix data, and combining them to obtain fourth image dot matrix data corresponding to each layer.

[0081] Specifically, the embodiment of the present invention does not specifically limit the shape of the three-dimensional model. For example, it can be a prism, cylinder, sphere, or other irregular three-dimensional model. The three-dimensional model is usually created based on three-dimensional design software. The current data formats of three-dimensional models mainly include OSGB, OBJ, FBX, 3DS, STL, DAE, and DGN. Because halftone processing requires that the three-dimensional model has color information, the embodiment of the present invention preferably adopts a data format that can describe the color information of the three-dimensional model. Of course, the data format that cannot describe the color information of the three-dimensional model can be used to set the color of its outer surface when the model is obtained.

[0082] After obtaining the 3D model, it is sliced. Specifically, the 3D model is described as a cylinder, such as Figure 4 As shown, the slicing process of the three-dimensional model refers to discretizing the three-dimensional model 10 into a series of slices 20 .

[0083] Therefore, based on the color information of the layer 20, a halftone process can be performed on it. Specifically, the color information includes the color values ​​of each color channel of the pixel, that is, each color component. For example, in the CMYK color mode, the color information includes the color value of the cyan channel (Cyan), the color value of the magenta channel (Magenta), the color value of the yellow channel (Yellow), and the color value of the black channel (Black). For example, in the RGB color mode, the color information includes the color value of the red channel (Red), the color value of the green channel (Green), and the color value of the blue channel (Blue). The present invention is not specifically limited to the color mode.

[0084] Halftoning is also called screening. Screening can be performed using existing screening technologies such as amplitude modulation screening (SAM), frequency modulation screening (SFM), and high-fidelity true color screening. The present invention does not specifically limit the screening scheme.

[0085] Taking 2-bit halftone processing as an example, after halftone processing, the first image dot matrix data includes dot data 00, dot data 01, dot data 10, and dot data 11. Among them, dot data 00 is used to represent that the corresponding nozzle does not spray ink; dot data 01 is used to represent that the corresponding nozzle sprays a small amount of ink (for example, 25% of the maximum single inkjet amount); dot data 10 is used to represent that the corresponding nozzle sprays a medium amount of ink (for example, 50% of the maximum single inkjet amount); dot data 11 is used to represent that the corresponding nozzle sprays a large amount of ink (for example, 100% of the maximum single inkjet amount). Of course, in other embodiments of the present invention, the consumables can be resin, powder, glue, etc. in addition to ink. For ease of description, this article uses ink as the consumable for illustration.

[0086] After the outer surface of the 3D model is unfolded into a 2D image, halftoning can be performed on the 2D image to obtain second image dot data. The principle of halftoning the 2D image is similar to that of halftoning the layer, and will not be further described here. The dot data in the second image dot data corresponds to the outer surface of the 3D model. Therefore, the dot data corresponding to the first pixel can be determined based on the second image dot data.

[0087] In an embodiment of the present invention, the dot data corresponding to the second pixel is set to the dot data corresponding to the first pixel closest to the second pixel. For example, if the dot data corresponding to the first pixel closest to a second pixel is 11, the dot data of the second pixel is set to 11.

[0088] In one embodiment of the present invention, the nearest first pixel point can be determined based on the normal vector. For ease of understanding, see Figure 5 For the layer 20, first draw a tangent line 22 of the outer edge 21 through the first pixel A, and then draw a perpendicular line to the tangent line 22. The perpendicular line points from the edge 21 of the layer 20 to the interior of the layer. The perpendicular line is the normal vector 23 of the first pixel A. Since the second pixel B and the second pixel E are located on the normal vector 23 of the first pixel A, the dot data corresponding to the second pixel B and the second pixel E are set as the dot data of the first pixel A. For example, if the dot data corresponding to the first pixel A is 11, then the dot data corresponding to the second pixel B and the second pixel E is set to 11. It should be noted that when the second pixel B is located on different normal vectors, the dot data of the first pixel to be used as the dot data of the second pixel B can be determined based on which normal vector corresponds to the first pixel to which it is closer. When the distances are the same, the dot data of one of the first pixel points is arbitrarily selected as the dot data of the second pixel B. Based on the above principle, each first pixel can be traversed.

[0089] After the processing of S4-S7, the dot data of the first pixel and the second pixel for each layer have been determined. Therefore, the dot data corresponding to each pixel on each layer can be merged layer by layer to obtain the third image dot matrix data.

[0090] Therefore, each layer corresponds to two image dot data sets: first image dot data and third image dot data. This embodiment of the present invention selectively reads the first image dot data and the corresponding third image dot data to combine and obtain fourth image dot data. This means that each layer corresponds to one fourth image dot data set. For example, if the first image dot data has a dot value of 11 at a corresponding position, while the third image dot data has a dot value of 10, this embodiment of the present invention selectively prints dot data 11 or 10 as the actual dot data corresponding to that position.

[0091] By selectively reading the first and third image dot data, the embodiments of the present invention ensure that the dot data in the fourth image dot data includes both dot data obtained through halftoning of the outer surface and dot data obtained through halftoning of the layer. This avoids the need for printing using the second or third image dot data obtained solely through halftoning of the outer surface, significantly improving the resulting radial texture. Similarly, by avoiding the need for printing using the first image dot data obtained solely through halftoning of the layer, significantly improving the resulting inaccurate color reproduction of the outer surface of the 3D model, thereby enhancing the quality and effectiveness of 3D printing.

[0092] It should be noted that steps S4-S8 can be executed before steps S2-S3. Alternatively, steps S4-S8 and steps S2-S3 are executed simultaneously. In other words, the embodiment of the present invention includes two threads, wherein the first thread includes steps S2-S3, and the second thread includes steps S4-S8. In a specific implementation, the order in which the first thread and the second thread are executed is not specifically limited. Those skilled in the art can therefore understand that the order of executing one or more steps disclosed in the aforementioned embodiment can be swapped to achieve similar technical effects.

[0093] In a preferred embodiment of the present invention, the step S9 includes:

[0094] S91: Acquire a two-dimensional matrix, where the data type of the two-dimensional matrix includes first data and second data;

[0095] S92: Reading dot data from the first image dot data and the corresponding third image dot data according to the data type to form fourth image dot data; wherein, when the data type is first data, the dot data is read from the corresponding position in the first image dot data; when the data type is second data, the dot data is read from the corresponding position in the third image dot data.

[0096] Specifically, obtaining the two-dimensional matrix can be done in response to external input or generated internally. To facilitate reading and control, the size of the two-dimensional matrix is ​​preferably consistent with the first image dot matrix data. Therefore, in one embodiment of the present invention, obtaining the two-dimensional matrix includes: obtaining the number of rows and columns of the first image dot matrix data; and generating the two-dimensional matrix based on the number of rows and columns.

[0097] In another embodiment of the present invention, obtaining the two-dimensional matrix includes: generating a grayscale image with a concentration varying from 0% to 100% from the outer layer to the inner layer; and performing 1-bit halftone processing on the grayscale image to obtain the two-dimensional matrix.

[0098] In a preferred embodiment of the present invention, the proportion of the second data in each layer of the two-dimensional matrix decreases from the outermost layer to the innermost layer. Specifically, the first row, last column, last row, and first column of the two-dimensional matrix can be considered the outermost layer; the second row, second-to-last column, second-to-last row, and second column of the two-dimensional matrix, excluding the outermost layer, can be considered the second layer. Similarly, the data corresponding to each layer can be determined.

[0099] The two-dimensional matrix includes only two different elements, namely the first data and the second data. For example, the first data is 1 and the second data is 0. The embodiment of the present invention uses the data type of the element of the two-dimensional matrix as an index to read the dot data from the first image data or the third image data. For ease of understanding, please refer to Figure 6 , is a schematic diagram of generating fourth image dot matrix data, provided by an embodiment of the present invention. The data in the first row and first column of the two-dimensional matrix is ​​0, so dot data 00 is read from the corresponding position in the third image dot matrix data as the dot data for that position in the fourth image dot matrix data. Based on a similar principle, each data point in the two-dimensional matrix is ​​traversed to generate the corresponding fourth image dot matrix data.

[0100] In another embodiment of the present invention, the method further includes: modifying at least one data in the two-dimensional matrix, and re-reading the first image dot matrix data and the third image dot matrix data according to the modified two-dimensional matrix to combine and obtain new fourth image dot matrix data.

[0101] Because it is difficult to design the color inside a 3D model during modeling, or because some 3D models in certain data formats only store information about the outer envelope (i.e., outer surface) of the 3D model, embodiments of the present invention perform a secondary setting of the color information of the pixels inside the slice. In a preferred embodiment of the present invention, before step S3, the method further includes:

[0102] S31: Obtain color information of the first pixel;

[0103] S32: Setting the color information of the second pixel point according to the color information of the first pixel point; wherein, setting the color information of the second pixel point according to the color information of the first pixel point includes: setting the color information of the second pixel point to the color information of the first pixel point closest to it; or adjusting the color information of the first pixel point closest to the second pixel point as the color information of the second pixel point, and the amount of consumables represented by the adjusted color information of the second pixel point is less than the amount of consumables represented by the corresponding color information of the first pixel point.

[0104] In one embodiment of the present invention, when setting the color information of a second pixel, the first pixel closest to it is determined, and the color information of the first pixel is used as the color information of the second pixel. In specific implementation, it can be implemented based on the normal vector. For ease of understanding, please continue to refer to Figure 5 As mentioned above, the second pixel point B and the second pixel point E are located on the normal vector of the first pixel point A. Therefore, the first pixel point A can be considered to be the first pixel point closest to the second pixel point B and the second pixel point E. Therefore, the color information of the second pixel point B and the second pixel point E is set to be the same as that of the first pixel point A. For example, if the color information of the first pixel point A is C=50%, M=30%, Y=50%, K=0%, then the color information of the second pixel point B and the second pixel point E is set to C=50%, M=30%, Y=50%, K=0%.

[0105] In another embodiment of the present invention, when setting the color information of a second pixel point, the first pixel point closest to it is determined, and the color information of the first pixel point closest to the second pixel point is adjusted as the color information of the second pixel point. The amount of consumables represented by the adjusted color information of the second pixel point is less than the amount of consumables represented by the color information of the corresponding first pixel point.

[0106] It should be noted that, in this embodiment, the requirement that the amount of consumables represented by the color information of the second pixel is less than the amount of consumables represented by the color information of the corresponding first pixel includes two different schemes, which can be selected based on the specific application scenario. The first scheme is that the amount of consumables represented by at least one color channel in the second pixel is less than the amount of consumables represented by the same color channel in the corresponding first pixel. In other words, when adjusting the color information of the first pixel to the color information of the second pixel, only the amount of consumables represented by one or more color channels is considered to be reduced, regardless of whether the amounts of consumables represented by other color channels are reduced or increased. For example, in CMYK mode, only the amount of consumables represented by the cyan channel can be considered to be reduced, or only the amount of consumables represented by the cyan and magenta channels can be considered to be reduced. Of course, it is also possible to configure the amount of consumables represented by each of the cyan, magenta, yellow, and black channels to be reduced. The second scheme is that the total amount of consumables represented by all color channels in the second pixel is less than the total amount of consumables represented by all color channels in the corresponding first pixel. For example, in CMYK mode, it is necessary to ensure that the total amount of consumables represented by the cyan channel, magenta channel, yellow channel and black channel is reduced.

[0107] Due to the different color modes, in order to adjust the amount of consumables represented by the color information, the adjustment method of the color information is different. For example, in the CMYK color mode, the larger the color component of each color channel, the larger the amount of consumables represented. For example, if the cyan component of one pixel is 50% and the cyan component of another pixel is 20%, the pixel with a cyan component of 50% represents a larger amount of consumables. Therefore, for the CMYK mode, reducing the amount of consumables represented by the color information can be achieved by reducing each color component. In the RGB color mode, the smaller the color component of each color channel, the larger the amount of consumables represented. For example, if the red component of one pixel is 200 and the red component of another pixel is 20, the pixel with a red component of 20 represents a larger amount of consumables. Therefore, for the RGB color mode, reducing the amount of consumables represented by the color information can be achieved by increasing each color component.

[0108] Therefore, for application scenarios where different color modes may exist, the present invention proposes the following technical solutions. First, after acquiring the layers, they are converted to a preset color mode (e.g., CMYK color mode). Color information can then be uniformly adjusted by reducing color components. Alternatively, after acquiring the layers, the color mode is determined, and the corresponding color information is adjusted.

[0109] For easier understanding, please refer to Figure 5 As mentioned above, the first pixel point A is the first pixel point closest to the second pixel point B and the second pixel point E, so the color information of the first pixel point A can be adjusted and used as the color information of the second pixel point B and the second pixel point E. Furthermore, in another preferred embodiment of the present invention, for the second pixel point located on the same normal vector, the straight-line distance between the second pixel point and the first pixel point corresponding to the normal vector and the amount of consumables represented by the color information of the second pixel point are inversely correlated. For example, the color information of the first pixel point A is C=50%, M=60%, Y=10%, K=0%. The color information of the second pixel point E can be set to C=50%*w1, M=60%*w2, Y=10%*w3, K=0%*w4. Among them, w1, w2, w3 and w4 are all real numbers greater than 0 and less than 1, and w1, w2, w3 and w4 can be equal or unequal. At this time, the cyan component of the second pixel point B is set to be greater than 50%*w1 and less than 50%, the magenta component is greater than 60%*w2 and less than 60%, the yellow component is greater than 10%*w3 and less than 10%, and the black component is 0%.

[0110] See Figure 7 In a preferred embodiment of the present invention, in said S4, it includes:

[0111] S41: Get color processing width;

[0112] S42: determining a color processing region according to the edge of the layer and the color processing width; wherein the area of ​​the color processing region is smaller than the area of ​​the layer, and the color processing region includes the edge of the layer;

[0113] S43: Setting color information of a second pixel point located in the color processing area according to the color information of the first pixel point.

[0114] For easier understanding, please refer to Figure 8 The color processing area can be determined according to the edge 21 of the layer 20 and the color processing width D, where the outer edge of the color processing area is the outer edge of the layer 20. It should be noted that the color processing width D can be represented by the number of pixels.

[0115] When setting the color information of the second pixel point, it is possible to set the color information only for the second pixel point located in the color processing area, without setting the color information for the second pixel point E located in the filling area. It should be noted that the color information of the second pixel point B located at the edge of the color processing area can also be set.

[0116] To improve processing efficiency, when the color information of the first pixel A is C=50%, M=60%, Y=10%, and K=0%, the color information of the second pixel B can be set to C=50%*w1, M=60%*w2, Y=10%*w3, and K=0%*w4. The consumable amount represented by the color information of the second pixel located between the first pixel A and the second pixel B, located on the normal vector 23, decreases starting from the second pixel closest to A, but is always no less than the consumable amount represented by the color information of the second pixel B. This embodiment allows for setting a minimum concentration for gradual change, facilitating control.

[0117] See Figure 9 In a preferred embodiment of the present invention, in said S7, it includes:

[0118] S71: Obtaining dot processing width;

[0119] S72: Determine a dot processing region according to the edge of the layer and the dot processing width; wherein the area of ​​the dot processing region is smaller than the area of ​​the layer, and the dot processing region includes the edge of the layer;

[0120] S73: Setting the halftone dot data corresponding to the second pixel point located in the halftone dot processing area to the halftone dot data corresponding to the first pixel point closest thereto.

[0121] Specifically, the setting principle of the dot processing area is similar to that of the color processing area, which will not be described in detail here. After the dot processing area is determined, the corresponding dot data is only set for the second pixel point located in the dot processing area.

[0122] In another embodiment of the present invention, the color processing area is used as the halftone dot processing area. That is, once the color processing area mentioned in the above embodiment is determined, steps S71 and S72 in this embodiment can be omitted.

[0123] In a preferred embodiment of the present invention, the method further comprises:

[0124] Determine a fill area, where the fill area is the area in the layer except the color processing area;

[0125] Set the color information of all pixels in the fill area to include only the specified color, and the specified color is formed by printing with the specified consumables.

[0126] The designated printing consumables are preferably supporting ink or white ink.

[0127] In one embodiment of the present invention, after S9, the method includes:

[0128] S10: Printing is performed according to the fourth image dot matrix data.

[0129] During 3D printing, the layers corresponding to the fourth image dot data are printed continuously, starting from the bottom and working their way up, at the specific locations of the original 3D model to create the 3D object. Some 3D models require support ink, but since its use is well-known, further discussion is omitted here.

[0130] In another embodiment of the present invention, the method further includes: determining whether the color processing width is greater than or equal to a set value; if so, performing reverse processing on the fourth image dot matrix data to obtain fifth image dot matrix data; and after S9, the method further includes:

[0131] S10: Printing is performed according to the fourth image dot matrix data and the fifth image dot matrix data.

[0132] Specifically, a determination is first made as to whether the color processing width is greater than or equal to a set value. If so, the fourth image dot matrix data is reversely processed to obtain fifth image dot matrix data. In a preferred embodiment of the present invention, the set value is preferably 5 pixels. Specifically, after extensive testing, it was found that when the color processing width is greater than or equal to 5 pixels, the color of the outer surface of the 3D model begins to distort. Therefore, printing with a specified consumable based on the fifth image dot matrix data can improve the structural strength of the 3D model and prevent color distortion.

[0133] The present invention provides at least two technical solutions for reverse processing. The first technical solution is to traverse each dot data in the fourth image dot matrix data. If the dot data is ink-out data (i.e., dot data 01, dot data 10, and dot data 11), the ink-out data is modified to non-ink-out data (i.e., dot data 00). If the non-ink-out data is non-ink-out data, it is modified to ink-out data. It should be noted that when modifying non-ink-out data to ink-out data, it can be modified to any of dot data 01, dot data 10, and dot data 11.

[0134] The second technical solution is: traverse each dot data in the fourth image dot matrix data, if it is dot data 00, modify it to dot data 11; if it is dot data 01, modify it to dot data 10; if it is dot data 10, modify it to dot data 01; if it is dot data 11, modify it to dot data 00.

[0135] After reverse processing, fifth image dot data is obtained. Therefore, when printing is executed, printing is performed based on the fourth and fifth image dot data. Preferably, printing is first performed using a designated consumable based on the fifth image dot data, and then printing is performed based on the fourth image dot data. The designated consumable is preferably white ink. By first spraying the designated consumable and then printing based on the fourth image dot data, the designated consumable is prevented from covering the colored ink with the designated consumable, thereby affecting the printing effect.

[0136] In a preferred embodiment of the present invention, in said S2, it includes:

[0137] S21: Obtaining a preset layer height; wherein the preset layer height is less than or equal to a maximum layer height that can be stacked during one scan and print.

[0138] S22: Slicing the three-dimensional model according to a preset layer height, so that the layer height of each obtained slice is no greater than the preset layer height.

[0139] Specifically, in one embodiment of the present invention, when all nozzles of the printing device are ejecting ink at their maximum ink output, the maximum ink layer height that can be stacked in one scan is used as the preset layer height. This technical solution can maximize printing efficiency.

[0140] In another embodiment of the present invention, the preset layer height can be set to be smaller, for example, 10% of the maximum ink layer height that can be stacked for one scan print, so that the printed three-dimensional object is more delicate.

[0141] In order to balance printing quality and efficiency, the present invention also provides another method for performing slicing. Specifically, in step S2 of the above embodiment, the method further includes:

[0142] Determining whether the number of colors included in the outer surface of the layer is greater than a preset value;

[0143] If so, the layer is sliced ​​to obtain a plurality of secondary layer slices, and the height of the secondary layer slices is smaller than that of the layer slice.

[0144] Specifically, the more color variations a layer has on its outer surface, the more complex its color information. Therefore, it can be sliced ​​a second time, with multiple scans and prints stacked to create a more detailed, better-looking printed model. For example, if the preset value is 5, when slicing is performed in S2, the preset layer height is the maximum ink layer height that can be stacked in a single scan and print. If a layer is detected to have more than or equal to 5 color variations, the layer is sliced ​​a second time to produce multiple secondary layers, each with a layer height less than the preset layer height, for example, 10% of the maximum ink layer height that can be stacked in a single scan and print.

[0145] In another embodiment, in step S2 of the above embodiment, the method further includes:

[0146] Determining whether the color change gradient of the layer is above a preset value;

[0147] If so, the layer is sliced ​​to obtain a plurality of secondary layer slices, and the height of the secondary layer slices is smaller than that of the layer slice.

[0148] Specifically, the greater the color gradient of a layer, the more complex its color information. Therefore, the layer can be sliced ​​twice, and the three-dimensional model can be superimposed through multiple scans and prints, resulting in a more detailed and effective printed model. The color gradient can be calculated using various algorithms and is not specifically limited by the present invention.

[0149] In many application scenarios, the color distribution of 3D models is uneven. For example, the front of a 3D model may have rich color information, while the back may have relatively monotonous color information. Slicing such a 3D model at the same layer height will likely result in less detailed color reproduction on the front due to thicker slices, while efficiency will be low for the back, which does not require high color quality.

[0150] Therefore, an embodiment of the present invention further provides another slicing method. Specifically, before step S2, the method further includes: obtaining a direction with the largest color gradient in the three-dimensional model, and recording the direction as the slicing direction.

[0151] In S2, it includes: slicing the three-dimensional model according to the slicing direction to obtain a plurality of slices.

[0152] The slicing of the three-dimensional model according to the slicing direction to obtain a plurality of slices means that the normal vectors of the slices obtained after the slicing process are parallel to the slicing direction.

[0153] In a preferred embodiment of the present invention, between S9 and S10, the method further includes:

[0154] S901: Acquire a first feathering template and a second feathering template, where the sum of the first feathering template and the second feathering template is an all-1 matrix.

[0155] S902: Performing feathering processing on the fourth image dot matrix data according to the first feathering template to obtain first sub-image dot matrix data.

[0156] S903: Performing feathering processing on the fourth image dot matrix data according to the second feathering template to obtain second sub-image dot matrix data.

[0157] Specifically, the first feathering template and the second feathering template are both matrices, and the matrix sizes (ie, the number of rows and columns) are equal, and the sum of the first feathering template and the second feathering template is an all-1 matrix. For example, the first feathering template is The second feathering template is Generally speaking, the obtained first feathering template and the second feathering template are equal to the matrix size of the fourth image dot matrix data. Wherein, the feathering process is a matrix AND operation. For example, the fourth image dot matrix data is The first sub-image dot data obtained by feathering the fourth image dot data according to the first feathering template is The second sub-image dot matrix data obtained by feathering the fourth image dot matrix data according to the second feathering template is:

[0158] During printing, the first sub-image dot matrix data and the second sub-image dot matrix data are scanned and printed once, thereby diffusing the mechanical errors of the printing device into the two printing passes, making the printed three-dimensional object more detailed and the effect better. It should be noted that in this embodiment of the present invention, feathering processing can be performed separately on multiple color channels in the fourth image dot matrix data.

[0159] See Figure 10 , is a schematic structural diagram of a halftone processing device for a three-dimensional model provided by an embodiment of the present invention, the device comprising:

[0160] A three-dimensional model acquisition module, used to acquire a three-dimensional model to be printed;

[0161] a slicing processing module, configured to slice the three-dimensional model to obtain a plurality of slices; a pixel point located at the edge of the slice is recorded as a first pixel point, and a pixel point located inside the slice is recorded as a second pixel point;

[0162] A first halftone processing module is used to perform halftone processing on each of the layers to obtain first image dot matrix data corresponding to each layer;

[0163] a three-dimensional model unfolding module, configured to extract an outer surface of the three-dimensional model and unfold the outer surface into a two-dimensional image;

[0164] A second halftone processing module, configured to perform halftone processing on the two-dimensional image to obtain second image dot matrix data;

[0165] A first halftone dot data determination module, configured to determine halftone dot data corresponding to the first pixel point based on the second image dot matrix data;

[0166] A second halftone dot data determination module is configured to set halftone dot data corresponding to a second pixel point, wherein the setting of halftone dot data corresponding to the second pixel point comprises: setting the halftone dot data corresponding to the second pixel point to the halftone dot data corresponding to the first pixel point closest thereto;

[0167] A dot data merging module, configured to merge the dot data corresponding to each pixel point on the layer slices into respective layers to obtain third image dot matrix data;

[0168] The halftone dot data reading module is used to read halftone dot data from the first image dot matrix data and the corresponding third image dot matrix data, and combine them to obtain fourth image dot matrix data corresponding to each layer.

[0169] In addition, the halftone processing method of the three-dimensional model according to the embodiment of the present invention can be implemented by a printing device. Figure 11 A schematic diagram of the hardware structure of a printing device provided by an embodiment of the present invention is shown.

[0170] The printing device may include a processor and a memory storing computer program instructions.

[0171] Specifically, the processor may include a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits for implementing the embodiments of the present invention.

[0172] The memory may include a large capacity memory for data or instructions. By way of example and not limitation, the memory may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive, or a combination of two or more of these. Where appropriate, the memory may include a removable or non-removable (or fixed) medium. Where appropriate, the memory may be inside or outside the data processing device. In a specific embodiment, the memory is a non-volatile solid-state memory. In a specific embodiment, the memory includes a read-only memory (ROM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM), or a flash memory, or a combination of two or more of these.

[0173] The processor reads and executes computer program instructions stored in the memory to implement any one of the three-dimensional model halftone processing methods in the above embodiments.

[0174] In one example, the printing device may further include a communication interface and a bus. Figure 11 As shown, the processor, memory, and communication interface are connected via a bus and communicate with each other.

[0175] The communication interface is mainly used to implement communication between the modules, devices, units and / or equipment in the embodiments of the present invention.

[0176] Bus comprises hardware, software or both, couples the parts of printing device to each other.For example, and not limitation, bus can comprise accelerated graphics port (AGP) or other graphics bus, enhanced industry standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industry standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations.In suitable cases, bus can comprise one or more buses.Although the embodiment of the present invention describes and shows specific bus, the present invention considers any suitable bus or interconnection.

[0177] In addition, in conjunction with the halftone processing method for a three-dimensional model in the above-mentioned embodiments, embodiments of the present invention may provide a computer-readable storage medium for implementation. The computer-readable storage medium stores computer program instructions; when executed by a processor, the computer program instructions implement any of the halftone processing methods for a three-dimensional model in the above-mentioned embodiments.

[0178] It should be understood that the present invention is not limited to the specific configurations and processes described above and illustrated in the figures. For the sake of brevity, a detailed description of known methods is omitted. In the above embodiments, several specific steps are described and illustrated as examples. However, the method of the present invention is not limited to the specific steps described and illustrated. Those skilled in the art may make various changes, modifications, and additions, or change the order of the steps after understanding the spirit of the present invention.

[0179] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in unit, a function card or the like. When implemented in software, the elements of the present invention are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROMs, flash memories, erasable ROMs (EROMs), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0180] It should also be noted that the exemplary embodiments described herein describe methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the steps described above. In other words, the steps may be performed in the order described in the embodiments, or in a different order, or several steps may be performed simultaneously.

[0181] The above description is only a specific embodiment of the present invention. Those skilled in the art will clearly understand that for the convenience and brevity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present invention is not limited to this. Any person skilled in the art can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention.

Claims

1. A halftone processing method for a three-dimensional model, characterized in that: The method comprises: S1: Obtain the three-dimensional model to be printed; S2: Slicing the three-dimensional model to obtain a plurality of slices; recording pixel points at the edge of the slice as first pixel points, and recording pixel points within the slice as second pixel points; S3: performing halftone processing on each of the layers to obtain first image dot matrix data corresponding to each layer; S4: extracting the outer surface of the three-dimensional model and unfolding the outer surface into a two-dimensional image; S5: performing halftone processing on the two-dimensional image to obtain second image dot matrix data; S6: Determine the dot data corresponding to the first pixel point according to the second image dot matrix data; S7: Setting the dot data corresponding to the second pixel, wherein the setting the dot data corresponding to the second pixel comprises: setting the dot data corresponding to the second pixel to the dot data corresponding to the first pixel closest thereto; S8: merging the dot data corresponding to each pixel point on the layer slices into the layer slices to obtain third image dot matrix data; S9: Reading dot data from the first image dot matrix data and the corresponding third image dot matrix data, and combining them to obtain fourth image dot matrix data corresponding to each layer.

2. The method according to claim 1, characterized in that In said S9, it includes: S91: Acquire a two-dimensional matrix, where the data type of the two-dimensional matrix includes first data and second data; S92: Reading dot data from the first image dot data and the corresponding third image dot data according to the data type to form fourth image dot data; wherein, when the data type is first data, the dot data is read from the corresponding position in the first image dot data; when the data type is second data, the dot data is read from the corresponding position in the third image dot data.

3. The method according to claim 2, characterized in that The proportion of the second data in each layer of data of the two-dimensional matrix decreases continuously from the outer layer to the inner layer.

4. The method according to claim 1, wherein Before S3, the method further includes: S31: Obtain color information of the first pixel; S32: Setting the color information of the second pixel point according to the color information of the first pixel point; wherein, setting the color information of the second pixel point according to the color information of the first pixel point includes: setting the color information of the second pixel point to the color information of the first pixel point closest to it; or adjusting the color information of the first pixel point closest to the second pixel point as the color information of the second pixel point, and the amount of consumables represented by the adjusted color information of the second pixel point is less than the amount of consumables represented by the corresponding color information of the first pixel point.

5. The method according to claim 4, characterized in that In said S4, it includes: S41: Get color processing width; S42: determining a color processing region according to the edge of the layer and the color processing width; wherein the area of ​​the color processing region is smaller than the area of ​​the layer, and the color processing region includes the edge of the layer; S43: Setting color information of a second pixel point located in the color processing area according to the color information of the first pixel point.

6. The method according to claim 1, wherein In said S7, it includes: S71: Obtaining dot processing width; S72: Determine a dot processing region according to the edge of the layer and the dot processing width; wherein the area of ​​the dot processing region is smaller than the area of ​​the layer, and the dot processing region includes the edge of the layer; S73: Setting the halftone dot data corresponding to the second pixel point located in the halftone dot processing area to the halftone dot data corresponding to the first pixel point closest thereto.

7. The method according to any one of claims 1 to 6, characterized in that After S9, the method includes: printing according to the fourth image dot matrix data.

8. A halftone processing device for a three-dimensional model, characterized in that: The device comprises: A three-dimensional model acquisition module, used to acquire a three-dimensional model to be printed; a slicing processing module, configured to slice the three-dimensional model to obtain a plurality of slices; a pixel point located at the edge of the slice is recorded as a first pixel point, and a pixel point located inside the slice is recorded as a second pixel point; A first halftone processing module is used to perform halftone processing on each of the layers to obtain first image dot matrix data corresponding to each layer; a three-dimensional model unfolding module, configured to extract an outer surface of the three-dimensional model and unfold the outer surface into a two-dimensional image; A second halftone processing module, configured to perform halftone processing on the two-dimensional image to obtain second image dot matrix data; A first halftone dot data determination module, configured to determine halftone dot data corresponding to the first pixel point based on the second image dot matrix data; A second halftone dot data determination module is configured to set halftone dot data corresponding to a second pixel point, wherein the setting of halftone dot data corresponding to the second pixel point comprises: setting the halftone dot data corresponding to the second pixel point to the halftone dot data corresponding to the first pixel point closest thereto; A dot data merging module, configured to merge the dot data corresponding to each pixel point on the layer slices into respective layers to obtain third image dot matrix data; The halftone dot data reading module is used to read halftone dot data from the first image dot matrix data and the corresponding third image dot matrix data, and combine them to obtain fourth image dot matrix data corresponding to each layer.

9. A printing device, characterized in that: include: At least one processor, at least one memory, and computer program instructions stored in the memory, which implement the method according to any one of claims 1 to 7 when the computer program instructions are executed by the processor.

10. A storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Method and device for multi-bit-depth halftone amplitude modulation dot generating

    CN103139440A

  • An anti-counterfeit halftone intelligent digital watermark making method of paper medium output

    CN109102451A