CN109101203B - Image processing method, device and equipment for printing roller and storage medium - Google Patents
Image processing method, device and equipment for printing roller and storage medium Download PDFInfo
- Publication number
- CN109101203B CN109101203B CN201810780231.7A CN201810780231A CN109101203B CN 109101203 B CN109101203 B CN 109101203B CN 201810780231 A CN201810780231 A CN 201810780231A CN 109101203 B CN109101203 B CN 109101203B
- Authority
- CN
- China
- Prior art keywords
- printed
- data matrix
- matrix unit
- data
- image
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1202—Dedicated interfaces to print systems specifically adapted to achieve a particular effect
- G06F3/1203—Improving or facilitating administration, e.g. print management
- G06F3/1208—Improving or facilitating administration, e.g. print management resulting in improved quality of the output result, e.g. print layout, colours, workflows, print preview
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1223—Dedicated interfaces to print systems specifically adapted to use a particular technique
- G06F3/1237—Print job management
- G06F3/1253—Configuration of print job parameters, e.g. using UI at the client
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Image Processing (AREA)
- Manufacture Or Reproduction Of Printing Formes (AREA)
Abstract
The invention provides an image processing method, an image processing device, an image processing apparatus and a storage medium for a print roller, wherein the method comprises the following steps: acquiring an image matrix to be printed; converting the image matrix to be printed into a data matrix to be printed, and dividing the data matrix to be printed into a first data matrix unit to be printed and a second data matrix unit to be printed; generating a first mask template and a second mask template; performing an AND operation on the first data matrix unit to be printed and the first mask template to obtain a third data matrix unit to be printed, and performing an AND operation on the first data matrix unit to be printed and the second mask template to obtain a fourth data matrix unit to be printed; and combining the third data matrix unit to be printed, the second data matrix unit to be printed and the fourth data matrix unit to be printed in sequence to form printing data. The technical scheme of the invention can eliminate the overlapping or blank interval of the roller printing images and has the characteristic of good printing image quality.
Description
Technical Field
The present invention relates to the field of printing technologies, and in particular, to an image processing method, an image processing apparatus, an image processing device, and a storage medium for a print cylinder.
Background
The ink jet printing apparatus has a good printing effect and a flexible paper processing capability, and thus, the ink jet printing apparatus has certain advantages in selecting a printing medium, for example, it can be widely used to print a general medium such as letter paper, and can also be used to print various films, photo paper, roll paper, T-roll paper, and a roll.
Wherein, the ink-jet printing device for printing the roller is characterized in that a circle of pattern is printed on the peripheral surface of the printing medium, the length of the printing pattern is equal to the perimeter of the printing carrier medium, so that the printing pattern is connected end to end, and the positions of the beginning and the end of printing cannot be seen from the appearance, but the roller printing in the prior art is difficult to ensure that the paper feeding distance of each time is completely equal during the operation of the printer due to the printing precision of the roller printing device and the error of a driving motor, so that the images at the positions of the end to end of the printing pattern are overlapped or spaced, and further the distortion of the printing image is serious, poor quality of printed images cannot be guaranteed. Therefore, how to find an image processing method for a printing roller and a roller printing device with good printing quality is a technical problem to be solved in the field.
Disclosure of Invention
The invention solves the technical problem of providing an image processing method, device, equipment and storage medium for a printing roller, which can effectively solve the problem of poor quality of printed images caused by printing precision and driving motor errors of a roller printing device.
In a first aspect, to solve the above technical problem, the present invention provides an image processing method for a print cylinder, the method comprising:
acquiring an image matrix to be printed and a feathering length;
converting the image matrix to be printed into a data matrix to be printed, and dividing the data matrix to be printed into at least two data matrix units to be printed according to the feathering length, wherein the at least two data matrix units to be printed comprise a first data matrix unit to be printed and a second data matrix unit to be printed;
respectively and correspondingly generating a first mask template and a second mask template according to the first data matrix unit to be printed and the second data matrix unit to be printed;
performing an AND operation on the first data matrix unit to be printed and the first mask template to obtain a third data matrix unit to be printed, and performing an AND operation on the first data matrix unit to be printed and the second mask template to obtain a fourth data matrix unit to be printed;
and combining the third data matrix unit to be printed, the second data matrix unit to be printed and the fourth data matrix unit to be printed in sequence to form printing data.
Preferably, the generating a first mask template and a second mask template respectively according to the first data matrix unit to be printed and the second data matrix unit to be printed includes:
generating a gray level image matrix according to the feathering length and the preset width, and converting the gray level image matrix into a binarization image matrix unit;
comparing the widths of the binarized image matrix unit and the first data matrix unit to be printed, and generating a first mask template from the binarized image matrix unit according to a comparison result so as to enable the width of the first mask template to be equal to the width of the first data matrix unit to be printed;
subtracting the first mask template from the full one matrix to obtain the second mask template.
Preferably, the generating the first mask template by the binarized image matrix unit according to the comparison result specifically includes:
when the width of the first data matrix unit to be printed is larger than that of the binarization image matrix unit, combining a plurality of binarization image matrix units to form the first mask template;
when the width of the first data matrix unit to be printed is equal to that of the binarized image matrix unit, taking the binarized image matrix unit as the first mask template;
when the width of the first data matrix unit to be printed is smaller than that of the binarization image matrix unit, dividing the binarization image matrix unit into a plurality of sub-binarization image matrix units, selecting one of the sub-binarization image matrix units as the first mask template, wherein the length and the width of the sub-binarization image matrix unit are respectively equal to the length and the width of the first data matrix unit to be printed.
Preferably, when the width of the first to-be-printed data matrix unit is greater than the width of the binarized image matrix unit, the first mask template is obtained by the following formula:
wherein D is1Representing said first mask stencil, BjDenotes j AmnMerging the formed intermediate matrices, AmnRepresenting the binarized image matrix cell, AmxThe first x columns of matrix representing the matrix unit of the binary image, j represents the merging of the matrix unit A of the binary imagemnIs a positive integer, m represents the binarized image matrix unit AmnIs a positive integer, n represents the binarized image matrix unit AmnC represents the width of the first data matrix unit to be printed and is a positive integer,to round the symbol down, x representsThe rounded remainder is taken down.
Preferably, the third to-be-printed data matrix unit, the second to-be-printed data matrix unit, and the fourth to-be-printed data matrix unit are combined in sequence to form print data, and the print data is obtained by the following formula:
G=[H1; F; H2]
wherein G represents the print data, H1Representing the third data matrix unit to be printed, F representing the second data matrix unit to be printed, H2And representing the fourth data matrix unit to be printed.
Preferably, the converting the image matrix to be printed into the data matrix to be printed specifically includes: and converting the image matrix to be printed into the data matrix to be printed by a halftone algorithm.
Preferably, the converting the grayscale image matrix into a binarized image matrix unit specifically includes: and converting the gray level image matrix into the binarization image matrix unit through a 1bit halftone algorithm.
Preferably, the sum of the lengths of the first to-be-printed data matrix unit and the second to-be-printed data matrix unit is equal to the length of the to-be-printed data matrix, and the length of the first to-be-printed data matrix unit is equal to the feathering length.
In a second aspect, the present invention also provides an image processing apparatus for a print cylinder, comprising:
the data acquisition module is used for acquiring an image matrix to be printed and the feathering length;
the data matrix to be printed converting module is used for converting the image matrix to be printed into a data matrix to be printed and dividing the data matrix to be printed into data matrix units to be printed, wherein the data matrix units to be printed at least comprise a first data matrix unit to be printed and a second data matrix unit to be printed according to the feathering length;
the mask template generating module is used for generating a first mask template and a second mask template;
the operation module is used for performing an AND operation on the first data matrix unit to be printed and the first mask template to obtain a third data matrix unit to be printed, and performing an AND operation on the first data matrix unit to be printed and the second mask template to obtain a fourth data matrix unit to be printed;
and the synthesis module is used for combining the third data matrix unit to be printed, the second data matrix unit to be printed and the fourth data matrix unit to be printed in sequence to form printing data.
In a third aspect, the present invention also provides an image processing apparatus for a print cylinder, comprising: memory, a processor, and computer program instructions stored on the memory and executable on the processor, which when executed by the processor implement a method as in any one of the above.
In a fourth aspect, the invention also provides a computer readable storage medium having stored thereon computer program instructions, preferably for implementing a method as defined in any one of the above when executed by a processor.
In summary, according to the image processing method, apparatus, device and storage medium for the printing roller of the present invention, the image matrix to be printed is converted into the data matrix to be printed, and then the data matrix to be printed is divided into the first data matrix unit to be printed that needs to be feathered and the second data matrix unit to be printed that does not need to be feathered according to the feathering length, and the first data matrix unit to be printed is respectively subjected to a logical and operation with the complementary first mask template and second mask template, so that the print data of the first data matrix unit to be printed is divided into the third data matrix unit to be printed and the fourth data matrix unit to be printed; when in printing, the third data matrix unit to be printed is printed in the first printing area of the roller, then the second data matrix unit to be printed is printed in the second printing area, and finally the fourth data matrix unit to be printed is continuously printed in the first printing area after the roller rotates for one circle. Therefore, errors caused by the printing precision of the printing device and the driving motor are diffused into the first printing area from the joint of the head and the tail, the problem that printed images are overlapped or blank intervals is effectively solved, the printed images cannot be seriously distorted, and the quality of the printed images is guaranteed.
Drawings
FIG. 1 is a flow chart illustrating an image processing method for a print cylinder according to a preferred embodiment of the present invention.
FIG. 2 is a schematic image processing flow diagram of the image processing method for the print cylinder according to the present invention.
FIG. 3 is a block diagram of a preferred embodiment of the present invention for image processing of a print cylinder.
FIG. 4 is a diagram of the hardware configuration of the preferred embodiment of the image processing apparatus for a print cylinder according to the present invention.
Detailed Description
Features and exemplary embodiments of various aspects of the present invention will be described in detail below, and in order to make objects, technical solutions and advantages of the present invention more apparent, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not to be construed as limiting the invention. It will be apparent to one skilled in the art that the present invention may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present invention by illustrating examples of the present invention.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Example 1
Referring to fig. 1 and 2, the present invention provides an image processing method for a print cylinder, the method comprising the steps of:
s1, acquiring an image matrix 1 to be printed and a feathering length;
in this embodiment, the drum includes a cylindrical object such as a cylinder, an elliptical cylinder, or a polygonal cylinder, the image length of the image matrix 1 to be printed is equal to the circumference of the outer circumferential surface of the drum, and the feathering length is an error diffusion length that requires a masking process to print the image matrix 1 to be printed at the joint of the outer circumferential surface of the drum.
S2, converting the image matrix 1 to be printed into a data matrix 2 to be printed, and dividing the data matrix 2 to be printed into at least two data matrix units to be printed according to the feathering length, wherein the at least two data matrix units to be printed comprise a first data matrix unit 3 to be printed and a second data matrix unit 4 to be printed;
s3, respectively and correspondingly generating a first mask template and a second mask template according to the first data matrix unit to be printed and the second data matrix unit to be printed;
s4, taking the first to-be-printed data matrix unit 3 and the first mask template phase to obtain a third to-be-printed data matrix unit 31, and taking the first to-be-printed data matrix unit 3 and the second mask template phase to obtain a fourth to-be-printed data matrix unit 32;
and S5, combining the third data matrix unit to be printed 31, the second data matrix unit to be printed 4 and the fourth data matrix unit to be printed 32 in sequence to form printing data 5.
Preferably, the converting the image matrix 1 to be printed into the data matrix 2 to be printed specifically includes: and screening the image matrix 1 to be printed according to the attribute of a recording nozzle of a printer by using a halftone algorithm to convert the image matrix into the data matrix 2 to be printed. The halftone technique is a technique of quantizing a continuous tone image (such as a grayscale image and a color image) into a binary image or a color image with only a few colors by using a small number of colors, and the visual effect of the quantized image at a certain distance is similar to that of the original image. The halftone algorithm used in the halftone technique mainly includes:
a dithering method: the method is a typical algorithm of a point processing method and mainly comprises two major categories of random jitter and ordered jitter. Both algorithms require a template, also called a dither matrix or threshold matrix, which determines not only the order in which the dots turn black when the brightness or gray value decreases, but also the quality of the halftone image, so the key to the dither algorithm is the construction of the dither matrix. The algorithm is compared with a dither matrix, and the value range of each threshold in the matrix is between the maximum gray value and the minimum gray value of the image.
Error diffusion method: in the ordered dithering process, the comparison between pixel points and a dithering matrix is utilized to judge whether to place micro-points at one position, which is essentially a point processing process. In 1976, Floyd and Steinberg proposed an error diffusion algorithm that transitioned halftone screening from "point processing" to "neighborhood processing".
An iterative method: the optimal binary output is found by minimizing the error between the original image and the halftone image. The above three halftone algorithms are common prior art in the printing field and will not be described in detail herein.
Preferably, the sum of the lengths of the first data matrix unit to be printed 3 and the second data matrix unit to be printed 4 is equal to the length of the data matrix to be printed 2, and the length of the first data matrix unit to be printed 3 is equal to the feathering length. The width of the data matrix to be printed 2 is equal to the width of the first data matrix unit to be printed 3 and the width of the second data matrix unit to be printed 4.
In this embodiment, let the data matrix 2 to be printed be G1The first data matrix unit to be printed 3 is EmcThe second data matrix unit to be printed 4 is FycThe length of the first data matrix unit to be printed 3 and the feathering length are both m, the width of the data matrix to be printed 2 and the widths of the first data matrix unit to be printed 3 and the second data matrix unit to be printed 4 are both c, and the length of the second data matrix unit to be printed 4 is y; then the G is1、EmcAnd FycThe relational expression of (1) is:
G1=[Emc;Fyc]
i.e. when inputting said data matrix to be printed 2G1Then, by the following operation:
the first data matrix unit to be printed 3E can be outputmcAnd the second data matrix unit to be printed 4Fyc(ii) a In particular toThe output data is as follows:
preferably, the generating the first mask template and the second mask template specifically includes the following steps:
generating a gray level image matrix according to the feathering length and the preset width, and screening the gray level image matrix through a 1bit halftone algorithm to convert the gray level image matrix into a binary image matrix unit; wherein the length of the binarization image matrix unit is equal to the length of the first data matrix unit to be printed 3;
preferably, the gray image matrix is a gradient gray image, and the gradient gray is from 0 to 100%.
Comparing the widths of the binarized image matrix unit and the first data matrix unit to be printed 3, and generating a first mask template from the binarized image matrix unit according to the comparison result so as to enable the length and the width of the first mask template to be equal to those of the first data matrix unit to be printed 3;
since the two data matrices participating in the logic operation must be the same-dimension matrices, that is, the first data matrix unit to be printed 3 must have the same length and width as the first mask template, and usually the data of the first mask template in the width direction is the same, this embodiment first generates the grayscale image matrix with the width much smaller than that of the image matrix to be printed 1, then converts the grayscale image matrix into the binarized image matrix unit, and finally generates the first mask template with the same width as the first data matrix unit to be printed 3 by copying the binarized image matrix unit. Therefore, the image processing method provided by the invention has the advantage of high processing speed.
And subtracting the first mask template from the full matrix with the same dimension to obtain the second mask template. The first mask template is complementary to the second mask template. Specifically, the all-one matrix refers to a matrix which is the same dimension as the first mask template and in which all elements are 1.
Preferably, the generating the first mask template by the binarized image matrix unit according to the comparison result specifically includes the following steps:
when the width of the first data matrix unit to be printed 3 is larger than that of the binarization image matrix unit, combining a plurality of binarization image matrix units to form the first mask template;
when the width of the first data matrix unit to be printed 3 is equal to that of the binarized image matrix unit, directly using the binarized image matrix unit as the first mask template;
when the width of the first data matrix unit to be printed 3 is smaller than that of the binarized image matrix unit, dividing the binarized image matrix unit into a plurality of sub-binarized image matrix units, selecting one sub-binarized image matrix unit as the first mask template, wherein the length and the width of the sub-binarized image matrix unit are respectively equal to the length and the width of the first data matrix unit to be printed 3.
Preferably, when the width of the first to-be-printed data matrix unit 3 is greater than the width of the binarized image matrix unit, the first mask template is obtained by the following formula:
wherein D is1Representing said first mask stencil, BjDenotes j AmnMerging the formed intermediate matrices, AmnRepresenting the binarized image matrix cell, AmxThe first x column matrix of the binary image matrix unit is represented, and j represents the sumAnd the binarization image matrix unit AmnIs a positive integer, m represents the binarized image matrix unit AmnIs a positive integer, n represents the binarized image matrix unit AmnC represents the width of the first data matrix unit to be printed 3 and is a positive integer,to round the symbol down, x representsThe rounded remainder is taken down.
Preferably, the first data matrix unit to be printed 3 is subjected to an and operation with the first mask template to obtain a third data matrix unit to be printed 31, and the first data matrix unit to be printed 3 is subjected to an and operation with the second mask template to obtain a fourth data matrix unit to be printed 32; the third to-be-printed data matrix unit and the fourth to-be-printed data matrix unit 32 are specifically obtained by the following formulas:
wherein H1Representing the third data matrix element to be printed 31, H2Representing said fourth matrix element 32, E of data to be printedmcRepresenting said first data matrix element to be printed 3, D1Representing said first mask stencil, D2Representing the second mask template.
Preferably, the third data matrix unit to be printed 31, the second data matrix unit to be printed 4, and the fourth data matrix unit to be printed 32 are combined in sequence to form the print data 5, where the print data 5 is obtained by the following formula:
G=[H1; F; H2]
wherein G represents the print data 5, H1Representing the third data matrix element to be printed 31, FThe second data matrix unit 4, H to be printed2Representing the fourth data matrix element to be printed 32.
In summary, according to the image processing method, apparatus, device and storage medium for a printing roller of the present invention, the image matrix 1 to be printed is converted into the data matrix 2 to be printed, and then the data matrix 2 to be printed is divided into the first data matrix unit 3 to be printed requiring feathering and the second data matrix unit 4 not requiring feathering according to the feathering length, and the first data matrix unit 3 to be printed is respectively subjected to logical and operation with the complementary first mask template and second mask template, so that the printing data of the first data matrix unit 3 to be printed is divided into the third data matrix unit 31 to be printed and the fourth data matrix unit 32 to be printed; during printing, the third data matrix unit to be printed 31 is printed in the first printing area of the roller, the second data matrix unit to be printed 4 is printed in the second printing area, and finally the fourth data matrix unit to be printed 32 is printed in the first printing area after the roller rotates for one circle. Therefore, errors caused by the printing precision of the printing device and the driving motor are diffused into the first printing area from the joint of the head and the tail, the problem that printed images are overlapped or blank intervals is effectively solved, the printed images cannot be seriously distorted, and the quality of the printed images is guaranteed.
Example 2
This embodiment is similar to the method described in embodiment 1, except that before formal start of printing, the method of this embodiment further comprises the steps of:
acquiring an error compensation calibration printing file and the original width of the error compensation calibration printing file;
when the user uses the printing device, a printing file is used as an error compensation calibration printing file, then the original width of the error compensation calibration printing file is measured through tools such as a tape measure or a ruler, and the original widths of the error compensation calibration printing file and the error compensation calibration printing file are input into the printing device, so that the printing device can obtain the original widths of the error compensation calibration printing file and the error compensation calibration printing file.
In one embodiment, the error compensation calibration print file is captured by a camera in communication with the printing device, and the printing device calculates an image transmitted by the camera to obtain the error compensation calibration print file and an original width of the error compensation calibration print file, thereby improving efficiency.
Printing an image according to the error compensation calibration print file;
and after acquiring the error compensation calibration printing file, the printing equipment prints an image according to the error compensation calibration printing file.
Measuring an actual printing width of the printed image;
the actual print width of the printed image is measured by means of a tape measure or ruler or the like. In one embodiment, the print image is captured by a camera in communication with the printing device, and the printing device calculates the image transmitted by the camera to achieve measurement of the actual print width of the print image, thereby improving efficiency.
Respectively calculating error coefficients of the printing width according to the original width and the actual printing width;
the error coefficient of the printing width is obtained by the following formula:
Is the original width.
And correcting the width of the subsequent file to be printed according to the error coefficient of the printing width.
The width of the corrected document to be printed is obtained by the following formula:
wherein W is to be correctedThe width of the printed document, W1 is the width of the document to be printed.
The printing device prints according to the corrected width of the file to be printed when printing, thereby reducing the error of the width of the image printed by the printing device.
Example 3
Referring to fig. 3, the present invention further provides an image processing apparatus for a print cylinder, comprising:
the data acquisition module 11 is used for acquiring the image matrix 1 to be printed and the feathering length;
the data matrix to be printed converting module 12 is configured to convert the image matrix to be printed 1 into the data matrix to be printed 2, and divide the data matrix to be printed 2 into data matrix units to be printed, which at least include the first data matrix unit to be printed 3 and the second data matrix unit to be printed 4, according to the feathering length;
a mask template generating module 13, configured to generate a first mask template and a second mask template;
the operation module 14 is configured to perform an and operation on the first to-be-printed data matrix unit 3 and the first mask template to obtain a third to-be-printed data matrix unit 31, and perform an and operation on the first to-be-printed data matrix unit 3 and the second mask template to obtain a fourth to-be-printed data matrix unit 32;
and the synthesis module 15 is configured to combine the third to-be-printed data matrix unit 31, the second to-be-printed data matrix unit 4, and the fourth to-be-printed data matrix unit 32 in sequence to form the print data 5.
Example 4
Referring to fig. 4, the present invention further provides an image processing apparatus for a print cylinder, comprising: a memory 402, a processor 401, a communication interface 403 for communicating with external devices, and computer program instructions stored on the memory 402 and executable on the processor 401, which when executed by the processor 401 implement the method as in any one of the above. The memory 402, processor 401, and communication interface 403 are electrically coupled via bus 410 and communicate with each other to facilitate the transfer of the computer program instructions.
The communication interface 403 is mainly used for implementing communication between modules, apparatuses, units and/or devices in the embodiments of the present invention.
Example 5
The present invention also provides a computer readable storage medium having stored thereon computer program instructions, preferably for implementing the method according to any of the above when executed by the processor 401.
It is to be understood that the invention is not limited to the specific arrangements and instrumentality described above and shown in the drawings. A detailed description of known methods is omitted herein for the sake of brevity. In the above embodiments, several specific steps are described and shown as examples. However, the method processes of the present invention are not limited to the specific steps described and illustrated, and those skilled in the art can make various changes, modifications and additions or change the order between the steps after comprehending the spirit of the present invention.
The functional blocks shown in the above-described structural block diagrams may be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, it may be, for example, an electronic circuit, an Application Specific Integrated Circuit (ASIC), suitable firmware, plug-in, function card, or the like. When implemented in software, the elements of the invention are the programs or code segments used to perform the required tasks. The program or code segments may be stored in a machine-readable medium or transmitted by a data signal carried in a carrier wave over a transmission medium or a communication link. A "machine-readable medium" may include any medium that can store or transfer information. Examples of a machine-readable medium include electronic circuits, semiconductor memory devices, ROM, flash memory, Erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, Radio Frequency (RF) links, and so forth. The code segments may be downloaded via computer networks such as the internet, intranet, etc.
It should also be noted that the exemplary embodiments mentioned in this patent describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above-described steps, that is, the steps may be performed in the order mentioned in the embodiments, may be performed in an order different from the order in the embodiments, or may be performed simultaneously.
As described above, only the specific embodiments of the present invention are provided, and it can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the system, the module and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. It should be understood that the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the present invention, and these modifications or substitutions should be covered within the scope of the present invention.
Claims (11)
1. An image processing method for a print cylinder, the method comprising:
acquiring an image matrix to be printed and a feathering length;
converting the image matrix to be printed into a data matrix to be printed, and dividing the data matrix to be printed into at least two data matrix units to be printed according to the feathering length, wherein the at least two data matrix units to be printed comprise a first data matrix unit to be printed and a second data matrix unit to be printed;
respectively and correspondingly generating a first mask template and a second mask template according to the first data matrix unit to be printed and the second data matrix unit to be printed;
performing an AND operation on the first data matrix unit to be printed and the first mask template to obtain a third data matrix unit to be printed, and performing an AND operation on the first data matrix unit to be printed and the second mask template to obtain a fourth data matrix unit to be printed;
combining the third data matrix unit to be printed, the second data matrix unit to be printed and the fourth data matrix unit to be printed in sequence to form printing data;
when in printing, the third data matrix unit to be printed is printed in the first printing area of the roller, then the second data matrix unit to be printed is printed in the second printing area of the roller, and finally the fourth data matrix unit to be printed is continuously printed in the first printing area after the roller rotates for one circle.
2. The image processing method for the print cylinder according to claim 1, wherein the correspondingly generating a first mask template and a second mask template according to the first data matrix unit to be printed and the second data matrix unit to be printed respectively comprises:
generating a gray level image matrix according to the feathering length and the preset width, and converting the gray level image matrix into a binarization image matrix unit;
comparing the widths of the binarized image matrix unit and the first data matrix unit to be printed, and generating a first mask template from the binarized image matrix unit according to a comparison result so as to enable the width of the first mask template to be equal to the width of the first data matrix unit to be printed;
subtracting the first mask template from the full one matrix to obtain the second mask template.
3. The image processing method for the print cylinder according to claim 2, wherein the generating the first mask template from the binarized image matrix unit according to the comparison result specifically comprises:
when the width of the first data matrix unit to be printed is larger than that of the binarization image matrix unit, combining a plurality of binarization image matrix units to form the first mask template;
when the width of the first data matrix unit to be printed is equal to that of the binarized image matrix unit, taking the binarized image matrix unit as the first mask template;
when the width of the first data matrix unit to be printed is smaller than that of the binarization image matrix unit, dividing the binarization image matrix unit into a plurality of sub-binarization image matrix units, selecting one of the sub-binarization image matrix units as the first mask template, wherein the length and the width of the sub-binarization image matrix unit are respectively equal to the length and the width of the first data matrix unit to be printed.
4. The image processing method for the print cylinder according to claim 3, characterized in that when the width of the first to-be-printed data matrix cell is larger than the width of the binarized image matrix cell, the first mask template is obtained by the following formula:
wherein D is1Representing said first mask stencil, BjDenotes j AmnMerging the formed intermediate matrices, AmnRepresenting the binarized image matrix cell, AmxThe first x columns of matrix representing the matrix unit of the binary image, j represents the merging of the matrix unit A of the binary imagemnIs a positive integer, m represents the binarized image matrix unit AmnIs a positive integer, n represents the binarized image matrix unit AmnC represents the width of the first data matrix unit to be printed and is a positive integer,to round the symbol down, x representsAfter rounding downThe remainder.
5. The image processing method for the print cylinder according to any one of claims 1 to 4, wherein the third data matrix unit to be printed, the second data matrix unit to be printed and the fourth data matrix unit to be printed are combined in sequence to form print data, and the print data is obtained by the following formula:
G=[H1;F;H2]
wherein G represents the print data, H1Representing the third data matrix unit to be printed, F representing the second data matrix unit to be printed, H2And representing the fourth data matrix unit to be printed.
6. The image processing method for the print cylinder according to any one of claims 1 to 4, wherein the converting the image matrix to be printed into the data matrix to be printed specifically comprises: and converting the image matrix to be printed into the data matrix to be printed by a halftone algorithm.
7. The image processing method for the print cylinder according to any one of claims 2 to 4, wherein the converting the grayscale image matrix into a binarized image matrix unit specifically comprises: and converting the gray level image matrix into the binarization image matrix unit through a 1bit halftone algorithm.
8. The image processing method for a print cylinder according to any one of claims 1 to 4, characterized in that the sum of the lengths of the first data matrix element to be printed and the second data matrix element to be printed is equal to the length of the data matrix to be printed, and the length of the first data matrix element to be printed is equal to the feathering length.
9. An image processing apparatus for a print cylinder, comprising:
the data acquisition module is used for acquiring an image matrix to be printed and the feathering length;
the data matrix to be printed converting module is used for converting the image matrix to be printed into a data matrix to be printed and dividing the data matrix to be printed into data matrix units to be printed, wherein the data matrix units to be printed at least comprise a first data matrix unit to be printed and a second data matrix unit to be printed according to the feathering length;
the mask template generating module is used for generating a first mask template and a second mask template;
the operation module is used for performing an AND operation on the first data matrix unit to be printed and the first mask template to obtain a third data matrix unit to be printed, and performing an AND operation on the first data matrix unit to be printed and the second mask template to obtain a fourth data matrix unit to be printed;
the synthesis module is used for combining the third data matrix unit to be printed, the second data matrix unit to be printed and the fourth data matrix unit to be printed in sequence to form printing data;
when in printing, the third data matrix unit to be printed is printed in the first printing area of the roller, then the second data matrix unit to be printed is printed in the second printing area of the roller, and finally the fourth data matrix unit to be printed is continuously printed in the first printing area after the roller rotates for one circle.
10. An image processing apparatus for a print cylinder, comprising: memory, a processor and computer program instructions stored on the memory and executable on the processor, which when executed by the processor implement the method of any one of claims 1 to 8.
11. A computer-readable storage medium having computer program instructions stored thereon which, when executed by a processor, implement the method of any one of claims 1 to 8.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111057743.9A CN113703696A (en) | 2018-07-16 | 2018-07-16 | Method, apparatus, device and medium for correcting width error of printing roller |
CN201810780231.7A CN109101203B (en) | 2018-07-16 | 2018-07-16 | Image processing method, device and equipment for printing roller and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810780231.7A CN109101203B (en) | 2018-07-16 | 2018-07-16 | Image processing method, device and equipment for printing roller and storage medium |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111057743.9A Division CN113703696A (en) | 2018-07-16 | 2018-07-16 | Method, apparatus, device and medium for correcting width error of printing roller |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109101203A CN109101203A (en) | 2018-12-28 |
CN109101203B true CN109101203B (en) | 2021-10-08 |
Family
ID=64846379
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810780231.7A Active CN109101203B (en) | 2018-07-16 | 2018-07-16 | Image processing method, device and equipment for printing roller and storage medium |
CN202111057743.9A Pending CN113703696A (en) | 2018-07-16 | 2018-07-16 | Method, apparatus, device and medium for correcting width error of printing roller |
Family Applications After (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111057743.9A Pending CN113703696A (en) | 2018-07-16 | 2018-07-16 | Method, apparatus, device and medium for correcting width error of printing roller |
Country Status (1)
Country | Link |
---|---|
CN (2) | CN109101203B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109101203B (en) * | 2018-07-16 | 2021-10-08 | 森大(深圳)技术有限公司 | Image processing method, device and equipment for printing roller and storage medium |
CN111596873B (en) * | 2020-05-29 | 2024-02-23 | 珠海奔图电子有限公司 | File processing method and device to be printed, file printing control method and device |
CN115476587B (en) * | 2020-06-09 | 2023-09-08 | 森大(深圳)技术有限公司 | Inkjet printing method, device, equipment and storage medium based on eclosion template |
CN115817045A (en) * | 2021-09-16 | 2023-03-21 | 深圳市汉森软件有限公司 | Cylindrical object feathering printing method, device, equipment and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106408066A (en) * | 2016-09-06 | 2017-02-15 | 北京三快在线科技有限公司 | Two-dimensional code-based image processing method, device and two-dimensional code |
CN108177442A (en) * | 2018-01-17 | 2018-06-19 | 森大(深圳)技术有限公司 | Nozzle abnormal compensating method, apparatus, ink jet printing device and storage medium |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2202674B1 (en) * | 2004-07-06 | 2014-09-10 | Canon Kabushiki Kaisha | Data processing apparatus for generating ink jet printing masks |
KR100644709B1 (en) * | 2005-08-05 | 2006-11-10 | 삼성전자주식회사 | Print head, ink jet image forming apparatus, and compensating method for missing nozzle thereof |
WO2007072996A1 (en) * | 2005-12-21 | 2007-06-28 | Oji Paper Co., Ltd. | Ink jet recording paper and process for producing the same |
JP6911314B2 (en) * | 2016-09-27 | 2021-07-28 | カシオ計算機株式会社 | Printing equipment, control methods and programs |
CN108274898B (en) * | 2018-01-17 | 2019-06-04 | 森大(深圳)技术有限公司 | Ink jet printer nozzles abnormal compensating method, apparatus, equipment and storage medium |
CN109101203B (en) * | 2018-07-16 | 2021-10-08 | 森大(深圳)技术有限公司 | Image processing method, device and equipment for printing roller and storage medium |
-
2018
- 2018-07-16 CN CN201810780231.7A patent/CN109101203B/en active Active
- 2018-07-16 CN CN202111057743.9A patent/CN113703696A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106408066A (en) * | 2016-09-06 | 2017-02-15 | 北京三快在线科技有限公司 | Two-dimensional code-based image processing method, device and two-dimensional code |
CN108177442A (en) * | 2018-01-17 | 2018-06-19 | 森大(深圳)技术有限公司 | Nozzle abnormal compensating method, apparatus, ink jet printing device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN113703696A (en) | 2021-11-26 |
CN109101203A (en) | 2018-12-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109101203B (en) | Image processing method, device and equipment for printing roller and storage medium | |
US11477343B2 (en) | Dynamic printing system compensation mechanism | |
US9785873B2 (en) | Halftone calibration mechanism | |
US11637946B2 (en) | Iterative uniformity compensation mechanism | |
US9310737B2 (en) | Image inspection of printed matter with a master image | |
US20040200369A1 (en) | Method and system for printing press image distortion compensation | |
JP2018136941A (en) | Dual path uniformity print compensation mechanism | |
US8243330B2 (en) | Apparatus, method, and computer-readable recording medium for performing color material saving process | |
US11632487B1 (en) | Secondary color uniformity compensation mechanism | |
JP2020186938A (en) | Inspection method, inspection device, program, and printing device | |
US9117163B2 (en) | Printing apparatus and method configured for re-halftone image data | |
US8836994B2 (en) | Data processing system and data processing method forming a high-quality image on a printing medium by selecting a mask pattern data group based on a frequency characteristic of the input image data and mask pattern data group | |
US7369710B2 (en) | Image processing device, image processing method and image processing program | |
US20120314234A1 (en) | Image processing apparatus, image printing apparatus and image processing method | |
CN111045617B (en) | Picture gray scale printing method, system, control chip and printer | |
US7804623B2 (en) | Method for correction of a trapezoidal distortion of images | |
US11956403B1 (en) | Edge enhancement with compensation mechanism | |
US11962737B1 (en) | Edge enhancement with compensation mechanism | |
JP4743899B2 (en) | Gradation correction processing method, program for executing the same, and gradation correction processing apparatus | |
JP7571894B2 (en) | Defective nozzle compensation mechanism | |
JP3571823B2 (en) | Printer device | |
JP3897947B2 (en) | Image data processing method | |
WO2020067103A1 (en) | Image processing device, image forming device, head device, image processing method, and program | |
JP4409249B2 (en) | Printing plate creation data generation method and apparatus, printing plate creation data generation program, and computer-readable recording medium recording the program | |
JP2001144979A (en) | Color output method and color output device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |