A method, apparatus and storage medium for improving printing feathering uniformity
By analyzing the position and color grayscale values of the printed image, the feathering template is dynamically adjusted, and the feathering effect is optimized by combining convolution operations. This solves the problem of insufficient template uniformity in printers and achieves a clearer and more realistic printing effect.
Patent Information
- Application Number
- CN202510148770.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-10
- Publication Date
- 2025-12-02
- Estimated Expiration
- 2045-02-10
AI Technical Summary
The existing printers have insufficient uniformity in their printing feathering templates, resulting in poor print quality and hindering the further development of printing technology.
The image input module analyzes the image position and color grayscale value, selects or generates a feathering template grayscale curve and dot generation algorithm, dynamically adjusts the feathering effect, and combines convolution operation and parameter optimization to achieve real-time adjustment of the printed content.
It achieves delicate and natural printing results, avoids feathering, improves printing uniformity and quality, and enhances the ability to present details.
Smart Images

Figure CN120066430B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of printer technology, and in particular to a method, apparatus and storage medium for improving the uniformity of printing feathering. Background Technology
[0002] In current technology, most printers use fixed gradient feathering templates. While this type of template offers advantages in processing speed, it suffers from shortcomings in uniformity and can sometimes even produce feather streaks. This not only affects print quality but also limits the further development of printing technology. Therefore, there is significant room for optimization in this area, requiring innovative technical solutions to address these issues and improve print uniformity and quality. Summary of the Invention
[0003] In order to solve the above-mentioned technical problems, the present invention provides a method, apparatus and storage medium for improving the uniformity of printing feathering.
[0004] The technical solution of this invention is implemented as follows:
[0005] A method for improving the uniformity of printing feathering includes the following steps:
[0006] S1. Input the image to be printed using the image input module, analyze each pixel in the image, and determine its position in the coordinate system and its corresponding grayscale value.
[0007] S2, based on printing requirements, select or generate the feathering template grayscale curve and dot generation algorithm, which is used for subsequent feathering processing;
[0008] S3, the print control module determines the printer's printing method based on the resolution and feathering requirements of the printed image;
[0009] S4; During the printing process, the feather template generation module dynamically overlays the feather template generation algorithm based on the content of each position of the image scanned by the swath, generating a separate feather template for each swath, thereby dynamically adjusting the feathering effect according to the real-time changes in the printed content.
[0010] Preferably, step S1 further includes the following sub-steps:
[0011] S101, Establish a feathering template library, and establish feathering template libraries for high-precision area, medium-precision area and low-precision area;
[0012] S102: Collect information about the image to be printed, identify the image through image recognition, divide the image into high-precision areas with delicate colors, medium-precision areas with rich colors and obvious transitions, and low-precision areas with single colors or composed of multiple color blocks.
[0013] S103, based on the feathering module library in step S101, apply different templates to each region of the partitioned image in step S102.
[0014] Preferably, in step S2, multiple point generation algorithms and feathered template grayscale curve generation methods are integrated, including the following steps:
[0015] S201, Based on the image recognition results of step S102, each region of the image is judged, and a point generation algorithm is selected based on the judgment results;
[0016] S202, combined with step S103, apply different templates to each region of the partitioned image, and apply different point generation algorithms to each region of the partitioned image;
[0017] Preferably, the fusion of multiple point generation algorithms and feathered template grayscale curve generation methods further includes the following steps:
[0018] S203 utilizes edge computing to perform point-type shape fusion at the boundaries of each different region.
[0019] Preferably, in step S4, the step of dynamically adjusting the feathering effect according to the real-time changes of the printed content specifically involves dividing the pixels into two categories, empty and non-empty, based on the pixel content of the original image, superimposing the gradient effect, reducing the grayscale image to 2-bit color depth according to the feathering algorithm, and finally superimposing it with the original image content.
[0020] Preferably, the step of dynamically adjusting the feathering effect based on real-time changes in the printed content involves, more specifically, parsing the input image pixel by pixel to obtain the color and brightness values of each pixel and constructing a pixel matrix; designing a two-dimensional array to represent the feathering template, where array elements correspond to different feathering weights, with weights ranging from 0 to 1, where 0 represents complete transparency and 1 represents opacity; and using convolution operations to superimpose the feathering template onto the image pixels. The convolution kernel is the feathering template; by sliding the convolution kernel across the image pixel matrix, the template weights are multiplied by the corresponding pixel values and accumulated to obtain new pixel values.
[0021] An apparatus for improving print feathering uniformity includes at least one processor, at least one memory, and computer program instructions stored in the memory, which, when executed by the processor, implement the aforementioned method for achieving high print feathering uniformity.
[0022] A storage medium storing computer program instructions that, when executed by a processor, achieve the aforementioned method for high printing feathering uniformity.
[0023] This invention enables the feathering effect to be dynamically adjusted according to real-time changes in the printed content. By partitioning the image and matching feathering templates of different precision, it achieves a more delicate and natural printing effect. Furthermore, by integrating multiple algorithms, it can accurately process different areas. For example, in high-precision areas with delicate colors, it uses high-matching templates and appropriate dot-type algorithms to improve the ability to present details, making the printing effect clearer and more realistic. The dynamic adjustment mechanism adjusts the feathering effect according to real-time changes in the printed content. By using convolution operations and dynamic parameter optimization, it makes the feathering transition of object edges natural, avoids feather streaks, and enhances printing uniformity. Attached Figure Description
[0024] Figure 1 This is a schematic diagram of a method for improving printing feathering uniformity according to the present invention;
[0025] Figure 2 This is a schematic diagram of grayscale values obtained after performing the analysis in step S1 on the original example image in the embodiment.
[0026] Figure 3 This is a schematic diagram of the feathering template generated in step S4;
[0027] Figure 4 This is a schematic diagram showing the effect of overlaying the feathering template and the original image according to step S4. Detailed Implementation
[0028] To further illustrate the technical means and effects adopted by the present invention to achieve its intended purpose, exemplary embodiments will be described in detail below, examples of which are illustrated in the accompanying drawings. In the following description relating to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of methods and systems consistent with some aspects of this application as detailed in the appended claims.
[0029] The terminology used in this application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. The singular forms “a,” “the,” and “the” used in this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any or all possible combinations of one or more of the associated listed items.
[0030] Example 1
[0031] like Figure 1-4 As shown, a method for improving printing feathering uniformity includes the following steps:
[0032] S1. Input the image to be printed using the image input module, analyze each pixel in the image, and determine its position in the coordinate system and its corresponding grayscale value.
[0033] S2, based on printing requirements, select or generate the feathering template grayscale curve and dot generation algorithm, which is used for subsequent feathering processing;
[0034] S3, the print control module determines the printer's printing method based on the resolution and feathering requirements of the printed image;
[0035] S4; During the printing process, the feather template generation module dynamically overlays the feather template generation algorithm based on the content of each position of the image scanned by the swath, generating a separate feather template for each swath, thereby dynamically adjusting the feathering effect according to the real-time changes in the printed content.
[0036] Preferably, step S1 further includes the following sub-steps:
[0037] S101, Establish a feathering template library, and establish feathering template libraries for high-precision area, medium-precision area and low-precision area;
[0038] S102: Collect information about the image to be printed, identify the image through image recognition, divide the image into high-precision areas with delicate colors, medium-precision areas with rich colors and obvious transitions, and low-precision areas with single colors or composed of multiple color blocks.
[0039] S103, based on the feathering module library in step S101, apply different templates to each region of the partitioned image in step S102.
[0040] Preferably, in step S2, multiple point generation algorithms and feathered template grayscale curve generation methods are integrated, including the following steps:
[0041] S201, Based on the image recognition results of step S102, each region of the image is judged, and a point generation algorithm is selected based on the judgment results;
[0042] S202, combined with step S103, apply different templates to each region of the partitioned image, and apply different point generation algorithms to each region of the partitioned image;
[0043] Preferably, the fusion of multiple point generation algorithms and feathered template grayscale curve generation methods further includes the following steps:
[0044] S203 utilizes edge computing to perform point-type shape fusion at the boundaries of each different region.
[0045] Preferably, in step S4, the step of dynamically adjusting the feathering effect according to the real-time changes of the printed content specifically involves dividing the pixels into two categories, empty and non-empty, based on the pixel content of the original image, superimposing the gradient effect, reducing the grayscale image to 2-bit color depth according to the feathering algorithm, and finally superimposing it with the original image content.
[0046] Preferably, the step of dynamically adjusting the feathering effect based on real-time changes in the printed content involves, more specifically, parsing the input image pixel by pixel to obtain the color and brightness values of each pixel and constructing a pixel matrix; designing a two-dimensional array to represent the feathering template, where array elements correspond to different feathering weights, with weights ranging from 0 to 1, where 0 represents complete transparency and 1 represents opacity; and using convolution operations to superimpose the feathering template onto the image pixels. The convolution kernel is the feathering template; by sliding the convolution kernel across the image pixel matrix, the template weights are multiplied by the corresponding pixel values and accumulated to obtain new pixel values.
[0047] Obtain the resolution and target feathering parameters of the printed image. Based on these parameters, determine the basic shape and parameters of the initial feathering template, such as the size, center position, and initial weight distribution of the feathering template. The weight of the center area of the initial feathering template is 1, and the weight of the edge area gradually decreases to 0 to form a gradient effect.
[0048] During each line of printing, the pixels of the image in the current scanned line are analyzed to calculate the color change rate and brightness change gradient characteristics of the pixels. For example, by comparing the brightness values of adjacent pixels, the brightness change gradient gradient = |pixel[i].Y - pixel[i+1].Y| is calculated, and the color change rate can be measured by calculating the Euclidean distance between the RGB values of adjacent pixels.
[0049] Based on the image content analysis results, the parameters of the feathering template are dynamically adjusted. If the color of the pixels in the current row changes drastically and the brightness gradient is large, it indicates that there may be object edges or details in that area, and the feathering effect needs to be enhanced. In this case, the slope of the weight change in the edge area of the template is increased to make the feathering transition more obvious; if the pixel changes are gradual, the slope of the weight change is decreased to maintain a smooth feathering effect.
[0050] Based on the adjusted parameters, a feathered template for the current printing position is generated. The generated feathered template is then used to perform a convolution operation on the pixels of the current row of the image, and the template weights are superimposed on the pixel values to obtain the processed pixel values. For example, for pixel[i], its new value new_pixel[i] = pixel[i] * template[j][k] (j and k are the indices of the corresponding positions in the template), achieving a dynamic overlay feathering effect.
[0051] After processing each row, the feathering effect in the column direction is checked and optimized. Since processing row by row may result in discontinuous feathering in the column direction, the feathering template is fine-tuned by comparing the differences between corresponding column pixels in adjacent rows. If an unnatural feathering transition is found between adjacent rows in a certain column of pixels, the weight of the corresponding template element in that column is adjusted appropriately to make the overall feathering effect smoother and more uniform.
[0052] Preferably, in step S4, generating a separate feathering template for each swath further includes extracting the feature information of color, brightness, and contrast of pixels within a certain range of the edge of the previous swath. When the next swath performs edge feathering processing, it refers to these features to adjust the grayscale curve and dot distribution of its own edge feathering template, so that the color and brightness transition between the two swath edges is more natural and avoids obvious color or brightness abrupt changes.
[0053] Grayscale Curve Adjustment: When generating the grayscale curve for the edge feathering template, the subsequent swath references the color, brightness, and contrast characteristics of the previous swath's edges. If the previous swath's edges are rich in color and have high contrast, the grayscale curve of the subsequent swath should change more sharply at the edges to highlight the transition between color and brightness; if the previous swath's edges are monochromatic and have low contrast, the grayscale curve should be smoother. For example, when the color transition of the previous swath's edges is detected to be natural and the brightness change is not significant, the change in the grayscale curve from the center to the edge can be set to a linear gradient with a small slope; if the color and brightness changes drastically, a non-linear gradient is used, with a larger slope in key transition areas.
[0054] Point Distribution Adjustment: Based on the characteristics of the previous swath edge, adjust the point distribution of the feathered template for the subsequent swath edge. If the previous swath edge has rich details, the subsequent swath should increase the point density at the edge, and the point type can be more complex, better simulating details, such as points based on fractal geometry. If the previous swath edge is relatively smooth, the point type can be simpler, with a more even distribution, such as evenly distributed circular points. The point size can also be adjusted according to the features. For areas with large brightness variations, appropriately reduce the point size to achieve a smoother transition.
[0055] Preferably, in step S4, generating a separate feathering template for each swath further includes using a texture analysis algorithm to identify the texture type and texture direction of the edge region of the previous swath. These texture features are then passed to the edge processing stage of the next swath. During the edge feathering process of the next swath, the texture features of the previous swath are simulated, making the texture transition between the two swaths more coherent and reducing abruptness at the boundary.
[0056] An apparatus for improving print feathering uniformity includes at least one processor, at least one memory, and computer program instructions stored in the memory, which, when executed by the processor, implement the aforementioned method for achieving high print feathering uniformity.
[0057] A storage medium storing computer program instructions that, when executed by a processor, achieve the aforementioned method for high printing feathering uniformity.
[0058] The above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention in any way. Although the present invention has been disclosed above with reference to preferred embodiments, it is not intended to limit the present invention. Any person skilled in the art can make some modifications or alterations to the above-disclosed technical content to create equivalent embodiments without departing from the scope of the present invention. Any simple modifications, equivalent changes and alterations made to the above embodiments based on the technical essence of the present invention without departing from the scope of the present invention shall still fall within the scope of the present invention.
Claims
1. A method for improving the uniformity of printing feathering, characterized in that, Includes the following steps: S1. Input the image to be printed using the image input module, analyze each pixel in the image, and determine its position in the coordinate system and its corresponding grayscale value. S2, based on printing requirements, select or generate the feathering template grayscale curve and dot generation algorithm, which is used for subsequent feathering processing; S3, the print control module determines the printer's printing method based on the resolution and feathering requirements of the printed image; S4; During the printing process, the feather template generation module dynamically overlays the feather template generation algorithm based on the content of each position of the image swept by the swath, generating a separate feather template for each swath, thereby dynamically adjusting the feathering effect according to the real-time changes in the printed content; In step S4, the step of dynamically adjusting the feathering effect according to the real-time changes of the printed content specifically involves dividing the pixels into two categories, empty and non-empty, based on the pixel content of the original image. After superimposing the gradient effect, the grayscale image is reduced to 2-bit color depth according to the feathering algorithm, and finally superimposed with the original image content. The process of dynamically adjusting the feathering effect based on real-time changes in the printed content involves, more specifically, parsing the input image pixel by pixel to obtain the color and brightness values of each pixel and constructing a pixel matrix. A two-dimensional array is designed to represent the feathering template, with array element values corresponding to different feathering weights, ranging from 0 to 1, where 0 represents complete transparency and 1 represents opacity. Convolution operations are used to superimpose the feathering template onto the image pixels, with the convolution kernel serving as the feathering template. By sliding the convolution kernel across the image pixel matrix, the template weights are multiplied by the corresponding pixel values and accumulated to obtain new pixel values.
2. The method for improving printing feathering uniformity according to claim 1, characterized in that, Step S1 further includes the following sub-steps: S101, Establish a feathering template library, and establish feathering template libraries for high-precision area, medium-precision area and low-precision area; S102: Collect information about the image to be printed, identify the image through image recognition, divide the image into high-precision areas with delicate colors, medium-precision areas with rich colors and obvious transitions, and low-precision areas with single colors or composed of multiple color blocks. S103, based on the feathering module library in step S101, apply different templates to each region of the partitioned image in step S102.
3. The method for improving printing feathering uniformity according to claim 1, characterized in that, In step S2, multiple point generation algorithms and feathered template grayscale curve generation methods are integrated, including the following steps: S201, Based on the image recognition results of step S102, each region of the image is judged, and a point generation algorithm is selected based on the judgment results; S202, combining the image partitioned in step S103, apply different templates to each region of the image, and apply different point generation algorithms to each region of the partitioned image.
4. The method for improving printing feathering uniformity according to claim 3, characterized in that, The fusion of multiple point generation algorithms and feathered template grayscale curve generation methods also includes the following steps: S203 utilizes edge computing to perform point-type shape fusion at the boundaries of each different region.
5. An apparatus for improving the uniformity of printing feathering, characterized in that, It includes at least one processor, at least one memory, and computer program instructions stored in the memory, which, when executed by the processor, implement the method described in any one of claims 1-4.
6. A storage medium storing computer program instructions thereon, characterized in that, The method described in any one of claims 1-4 is implemented when the computer program instructions are executed by the processor.
Citation Information
Patent Citations
Method and device for generating custom height and gradient level, and storage medium
CN117785082A
Printing systems
EP0836154A1