This is a non-provisional application that claims priority under 35 U.S.C. 119(a-d) to Chinese application number CN 202011404717.4, filed Dec. 2, 2020. The afore-mentioned patent application is hereby incorporated by reference in its entirety.
The present invention primarily relates to the field of image processing. More particularly, the present invention relates to an image processing method and system for 3D printing.
The basic principle of DLP (Digital Light Procession) 3D printing technology is that a digital light source is configured to project light on a surface of liquid photosensitive resin to solidify the photosensitive resin for creating a 3D object through layer-by-layer printing. During the DLP 3D printing, the printable area is composed of a plurality of voxels, wherein the voxels are the units to form the 3D printing. Accordingly, the printer will determine whether to print by identifying the grayscale of the pixels corresponding to the voxels. When the pixel is marked as “white”, the printer will solidify the resin at the pixel location to complete the printing. Otherwise, when the pixel is marked as “black”, the printer will not solidify the resin at this particular pixel location. When the grayscale of the pixel reaches a predetermined level, it will not be printed. When the grayscale reaches a predetermined value, one or more hemispherical blocks will form at the previous printing layer. The brighter the pixel is, the taller the block is, wherein the “voxel” will become wider and slightly taller. In other words, the size of the voxel can be controlled by adjusting the grayscale of a single pixel, and the size of the voxel can be equivalent to the accuracy of the 3D printing.
The existing printing process is to project an image for a layer to be printed and to solidify the layer to be printed to form a layer of the object. For example, when the DLP equipment incorporates with a light engine with a model number 1K95 (1920×1080) to print a 3D object, the pixels are too large, especially it is too obvious for the change of the gray value of the adjacent pixels of the projected image at the contour of the object. So that the connections of the printing surfaces are inconsistent. After the object is made, the surface of the object is rough. Therefore, the disadvantage of the existing DLP 3D printing process is that the contour discontinuity of the object due to the pixelated of the image and the distinguish between pixels so as to for a circular rippling mark on the contour surfaces of the printed object.
Therefore, people who skilled in the art aim to develop an image processing method and system for 3D printing in order to improve the accuracy of grayscale of the pixels without altering the original image resolution for enhancing the transition of the change of the gray value of the adjacent pixels and for reducing the change of the gray value of the adjacent pixels, so as to enhance the surface smoothness of the printed object.
In view of the above-mentioned shortcomings of the prior art, the present invention is able to solve the technical problem of how to solve the problem of excessive grayscale difference between adjacent pixels of the image without changing the resolution of the original image.
In order to achieve the above objective, the present invention provides an image processing method for 3D printing, which comprises the following steps being executed by a computer.
Project an initial image on a layer to be printed.
Shift the initial image in a first direction, wherein the initial image is shifted by a first distance from an initial position to a first limited position to obtain a first image, wherein the first distance is not greater than a length of one pixel of the initial image in the first direction.
Fuse the initial image and the first image together to obtain a fused image.
Print the fused image on the layer to be printed.
Further, the fusion step further comprises a step of superimposing gray values of the pixels at corresponding positions, i.e. the initial position and the first limited position, of the initial image and the first image.
Further, the initial image is shifted one or more times in the first direction to obtain one or more of the first images; and
Fuse one or more of the first images with the initial image to obtain the fused image.
Further, when the initial image is shifted more than one time in the first direction, the first distances of the initial images are the same each time.
Further, the first distance is half of the length of the pixel in the initial image in the first direction.
The method further comprises the steps of: shifting the first image in a second direction, wherein the first image is shifted by a second distance from the first limited position to a second limited position to obtain a second image, wherein the first distance is perpendicular to the first direction; and
fusing the initial image, the first image and the second image to obtain the fused image.
Further, the second distance is not greater than the length of the pixel of the initial image in the second direction.
Further, the first image is shifted one or more times in the second direction to obtain one or more of the second images; and
Fuse one or more of the second images with the initial image and the first image to obtain the fused image.
Further, when the first image is shifted more than one time in the second direction, the second distances of the first images are the same each time.
Further, the second distance is half of the length of the pixel in the initial image in the second direction.
The method further comprises the steps of: shifting the second image in a third direction, wherein the second image is shifted by a third distance from the second limited position to a third limited position to obtain a third image, wherein the third distance is opposite to the first direction; and
fusing the initial image, the first image, the second image and the third image to obtain the fused image.
Further, the third distance is not greater than the length of the pixel of the initial image in the first direction.
Further, the second image is shifted one or more times in the third direction to obtain one or more of the third images; and
Fuse one or more of the third images with the initial image, the first image and the second image to obtain the fused image.
Further, when the second image is shifted more than one time in the third direction, the third distances of the first images are the same each time.
Further, the number of the second image shifting in the third direction is the same as the number of the initial image shifting in the first direction.
Further, the first distance is half of the length of the pixel in the initial image in the first direction, wherein the initial image shifting in the first direction at one time. In other words, the initial image is shifted in the first direction once.
Further, the second distance is half of the length of the pixel in the initial image in the second direction, wherein the first image shifting in the second direction at one time. In other words, the first image is shifted in the second direction once.
Further, a distance between the first limited position and the third limited position in the first direction is zero.
In accordance with another aspect of the invention, the present invention provides an image processing system for 3D printing, comprising:
an image projector configured for projecting an initial image on a layer to be printed;
a shifting module configured to shift the initial image in a first direction, wherein the initial image is shifted by a first distance from an initial position to a first limited position to obtain a first image, wherein the first distance is not greater than a length of one pixel of the initial image in the first direction;
a fusion module configured to fuse the initial image and the first image together to obtain a fused image; and
a printing module configured to print the fused image on the layer to be print.
The shifting module is further configured to shift the first image in a second direction, wherein the first image is shifted by a second distance from the first limited position to a second limited position to obtain a second image, wherein the first distance is perpendicular to the first direction, wherein the first distance is perpendicular to the first direction, wherein the second distance is not greater than the length of the pixel of the initial image in the second direction.
The shifting module is further configured to shift the second image in a third direction, wherein the second image is shifted at by third distance from the second limited position to a third limited position to obtain a third image, wherein the third direction is opposite to the first direction, wherein the third distance is not greater than the length of the pixel of the initial image in the first direction, wherein a distance between the first limited position and the third limited position is zero.
In accordance with another aspect of the invention, the present invention provides an image processing arrangement for 3D printing, comprising a memory, a processor coupled to the memory, and computer program instructions stored in the memory and being executed by the processor, wherein the processor is configured to execute the above mentioned image processing method.
In accordance with another aspect of the invention, the present invention further provided a computer-readable storage medium which computer program instructions stored in a memory and executed by a processor to implement the above mentioned image processing method.
Comparing with the existing technical solutions, the present invention provides the image processing method and system to reduce the excessive grayscale difference between adjacent pixels of the original image to smoothen the gray transition of the pixels of the image to be displayed on the layer. Therefore, when the DLP 3D printer projects the image on the resin layer to be solidified, the intensity of the light edge distribution will be more uniform, so as to improve the accuracy of 3D printing and to smoothen the contour surface of the printing object.
For a more complete understanding of the present invention with its objectives and distinctive features and advantages, reference is now made to the following specification and to the accompanying drawings.
In the following description, for purpose of explanation, numerous specific details are set forth in order to provide a thorough understanding of some example embodiments. It will be evident, however, to one of ordinary skill in the art that embodiments of the present invention may be practiced without these specific details.
According to the present invention as shown in
According to another example of the present invention, the image is shifted twice from the initial position A to position C then to position B in a width direction of the image, wherein a shifting distance between position A and position B is not greater than the width of one pixel of the image. As shown in
According to another example of the present invention, as shown in
For macro analysis, a, b, d, and e in the figure refer to predetermined areas in the image before shifting, wherein the gray value is G1. b, c, e, and f refer to the corresponding images area after the first shift, wherein the gray value G2. e, f, h, and i refer to the corresponding images area after the second shift, wherein the gray value is G3. d, e, g, and h refer to the corresponding images area after the third shift, wherein the gray value is G4. After shifting the images three times with half pixel offset of the image, four images are fused, so that the gray values of the corresponding positions are superimposed to obtain the final fused image, as shown in
For micro analysis, it could also be understood that a, b, d, and e in
As shown in
According to the preferred embodiment, multiple images are merged, or the pixel gray values of multiple images are superimposed, which is processed as follows.
According to the target light engine with resolution of 1920*1080, the size of each pixel is 100 um, the anti-aliasing level is selected as level 2, and the pixel offset is selected as the 2*2 mode. In other words, the offset corresponding to the embodiment shown in
In different examples, the images can be adjusted or processed according to different situations through specific superimposition or fusion process to obtain a smoother transition of the fused image.
In another example of the present invention, the image is shifted twice in the width and height directions.
Similarly, under the conditions that the image is multiple shifted in the width and height directions and the total shifting distance in one direction is controlled not exceed one pixel, the more the image shifts, the smaller the dividing of the image in one single shifting, so as to enhance the accuracy of the gray scale control.
As shown in
Layer a 3D object to be printed to define a plurality of printing layers.
Operate a light engine. Project an original image on one of the printing layers, shift the original image slightly in width and height directions respectively via a specific shifting method, project another original image after each shift of the original image, overlay and fuse gray values of all the original images, and solidify the printing layer after the original images are fused for a predetermined period of time. Accordingly, the specific methods and processes of shifting the original images and fusing original images are the same as the working principles of the foregoing embodiment and examples.
Starting from the printing layer as the first layer to be printed, repeat the above steps to print each of the printing layers in sequence until all the printing layers are completed to form the 3D object.
When operating the DLP 3D printing, for each printing layer, the image shifting and gray scale fusion are performed similar to the foregoing embodiment and examples. The shifting operation can be performed by operating the light engine to move, operating the optical lens to move, or operating a printing platform to move, wherein the purpose of all of these operations is to shift the image to one position from its previous position. After each shift of the image, the image is project again to superimpose and fuse the gray values to solidify the resin material for a predetermined period of time so as to form the printing layer. Then, one of the light engine, the optical lens, and the printing platform is moved back to its original position, and then repeat the above operation for the next printing layer. Finally, the 3D object with smooth surface will be obtained.
The existing DLP printing method is that: turn on the light engine, project an image, solidify the layer for a predetermined period of time, turn off the light engine, and complete one of the printing layers. Then, project another image to form another printing layer by repeating the above steps. Through the conventional printing method, the change of the gray value of adjacent pixels in the projected image is too obvious at the contour of the object, such that the connecting surfaces of the object will be inconsistent and the surfaces of the object will be roughed after the object is printed.
The present invention provides a technical solution to improve the 3D printing result via an existing low resolution light engine through the above method without using a high resolution light engine. Therefore, the present invention improves the accuracy of DLP printing by reducing the grayscale difference between adjacent pixels of the image. Further, as the number of shifts increases, i.e. as the distance of each micro-displacement is smaller, the grayscale control is more precise and the grayscale difference between adjacent pixels at the contour of the printing object is smaller and smoother. So, the contour of the printing object will be smoother that the rippling mark on the contour of the printing object cannot be seen. Without changing the resolution of the light engine, the printing accuracy can be significantly improved by the present invention in form of software. The method of the present invention has advantages of low hardware cost, good printing effect, and high applicable value.
In addition, the method of the present invention can further be applied for color images. It is known that red, green, and blue are the primary colors of light. Firstly, if the original color of a predetermined point is RGB (R, G, B), the RGB color is converted to grayscale through a converting method. The grayscale of the color image is actually the pixel value after being converted into a black and white image. Then, the method of the present invention is applied to reduce the grayscale difference between adjacent pixels of the image and to increase the grayscale of the image. In other words, the more the gray levels, the clearer and more vivid the image level. Therefore, the method of the present invention is able to improve the resolution of the color image, and to enhance the clarity and realistic of the image.
While the embodiments and examples of the invention have been shown and described for the purposes of illustrating the functional and structural principles of the present invention, it will be apparent to one skilled in the art that various other changes and modifications can be made without departing from the spirit and scope of the invention. Therefore, this invention includes all modifications encompassed within the spirit and scope of the following claims.
Number | Date | Country | Kind |
---|---|---|---|
202011404717.4 | Dec 2020 | CN | national |