[go: up one dir, main page]

CN114801487B - Method and system for eliminating printing image saw teeth - Google Patents

Method and system for eliminating printing image saw teeth Download PDF

Info

Publication number
CN114801487B
CN114801487B CN202210605782.6A CN202210605782A CN114801487B CN 114801487 B CN114801487 B CN 114801487B CN 202210605782 A CN202210605782 A CN 202210605782A CN 114801487 B CN114801487 B CN 114801487B
Authority
CN
China
Prior art keywords
ink
ink droplets
group
interval
paper
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
Application number
CN202210605782.6A
Other languages
Chinese (zh)
Other versions
CN114801487A (en
Inventor
姜博文
周文
赵海旭
刘文韬
缪永杰
樊荣
顾文超
程龙
廉凯成
杨晨
柴志雷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
High Volume Digital Intelligence Advanced Technology Research Foshan Co ltd
Original Assignee
Jiangnan University
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Jiangnan University filed Critical Jiangnan University
Priority to CN202210605782.6A priority Critical patent/CN114801487B/en
Publication of CN114801487A publication Critical patent/CN114801487A/en
Application granted granted Critical
Publication of CN114801487B publication Critical patent/CN114801487B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J2/00Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed
    • B41J2/005Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed characterised by bringing liquid or particles selectively into contact with a printing material
    • B41J2/01Ink jet
    • B41J2/07Ink jet characterised by jet control
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J2/00Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed
    • B41J2/005Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed characterised by bringing liquid or particles selectively into contact with a printing material
    • B41J2/01Ink jet
    • B41J2/07Ink jet characterised by jet control
    • B41J2/075Ink jet characterised by jet control for many-valued deflection
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J2/00Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed
    • B41J2/005Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed characterised by bringing liquid or particles selectively into contact with a printing material
    • B41J2/01Ink jet
    • B41J2/07Ink jet characterised by jet control
    • B41J2/11Ink jet characterised by jet control for ink spray
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J29/00Details of, or accessories for, typewriters or selective printing mechanisms not otherwise provided for
    • B41J29/38Drives, motors, controls or automatic cut-off devices for the entire printing mechanism
    • B41J29/393Devices for controlling or analysing the entire machine ; Controlling or analysing mechanical parameters involving printing of test patterns

Landscapes

  • Ink Jet (AREA)
  • Particle Formation And Scattering Control In Inkjet Printers (AREA)

Abstract

本发明公开了一种消除打印图像锯齿的方法及系统,该方法包括:S1、根据打印头的分辨率计算得到每个像素的尺寸,并计算打印在纸上的每组墨滴中相邻墨滴之间的高度差;S2、根据每个像素的尺寸和打印在纸上的每组墨滴中相邻墨滴之间的高度差计算每个墨点对应的坐标补偿值;S3、在光栅化时,用采样坐标减掉对应的坐标补偿值,并取整得到墨点坐标。本发明消除打印图像锯齿的方法及系统充分考虑到打印过程中墨滴的偏移特性,先计算每个墨点的坐标补偿值,并在光栅化时用采样坐标减掉对应的坐标补偿值,并取整得到墨点坐标。使得光栅化后,每组中的多个像素点为向下倾斜的方式排列,充分考虑墨滴的物理位置,使得打印出来的图像能够获得更好的质量。

Figure 202210605782

The invention discloses a method and system for eliminating jagged printing image, the method includes: S1, calculate the size of each pixel according to the resolution of the print head, and calculate the size of the adjacent ink in each group of ink droplets printed on the paper The height difference between drops; S2, calculate the coordinate compensation value corresponding to each ink point according to the size of each pixel and the height difference between adjacent ink drops in each group of ink drops printed on paper; S3, in the raster When transforming, subtract the corresponding coordinate compensation value from the sampling coordinates, and round to get the ink dot coordinates. The method and system for eliminating jagged printing images in the present invention fully consider the offset characteristics of ink droplets in the printing process, first calculate the coordinate compensation value of each ink dot, and subtract the corresponding coordinate compensation value from the sampling coordinates during rasterization, And round to get the ink dot coordinates. After rasterization, multiple pixels in each group are arranged in a downward slanting manner, fully considering the physical position of ink droplets, so that the printed image can obtain better quality.

Figure 202210605782

Description

一种消除打印图像锯齿的方法及系统A method and system for eliminating aliasing in printed images

技术领域technical field

本发明涉及数字喷墨打印技术领域,特别涉及一种消除打印图像锯齿的方法及系统。The invention relates to the technical field of digital inkjet printing, in particular to a method and system for eliminating jagged print images.

背景技术Background technique

数字喷墨打印中使用的打印头,主要有两种主流技术,分别是热发泡和压电技术。热发泡技术是通过加热喷嘴,使墨水产生气泡,喷到打印介质上,属于高温高压打印技术。其工作原理是:利用薄膜电阻器,在墨水喷出区中将小于5微微升的墨水瞬间加热至300℃以上,形成无数微小气泡,气泡以小于10微秒极快的速度聚为大气泡并扩展,迫使墨滴从喷嘴喷出。压电式喷墨打印技术属于常温常压打印技术,它是将许多微小的压电陶瓷放置到打印头喷嘴附近,压电陶瓷在两端电压变化作用下具有弯曲形变的特性,当图像信息电压加到压电陶瓷上时,压电陶瓷的伸缩振动形变将随着图像信息电压的变化而变化,并使喷头中的墨水在常温常压的稳定状态下,均匀准确地喷出墨水。There are two mainstream technologies for print heads used in digital inkjet printing, thermal foaming and piezoelectric technology. The thermal foaming technology is to heat the nozzle to make the ink generate bubbles and spray it on the printing medium, which belongs to the high temperature and high pressure printing technology. Its working principle is: use thin-film resistors to instantly heat ink less than 5 picoliters to above 300°C in the ink ejection area to form countless tiny bubbles, which gather into large bubbles at an extremely fast speed of less than 10 microseconds and form Expand, forcing the ink droplet out of the nozzle. Piezoelectric inkjet printing technology belongs to normal temperature and pressure printing technology. It is to place many tiny piezoelectric ceramics near the nozzle of the print head. Piezoelectric ceramics have the characteristics of bending deformation under the action of voltage changes at both ends. When applied to piezoelectric ceramics, the stretching vibration deformation of piezoelectric ceramics will change with the change of image information voltage, and the ink in the nozzle can be ejected evenly and accurately under the stable state of normal temperature and pressure.

热发泡的打印往往具有喷嘴多,墨滴小,精度高的优点。同时由于喷嘴多,无法一次性全喷,所有喷孔的喷射需要多次才能完成一次全喷。而又由于打印过程中由于打印介质相对喷头的运动,会导致纸上的墨滴会向下倾斜的趋势,如图1所示。Thermal foam printing often has the advantages of many nozzles, small ink droplets, and high precision. At the same time, due to the large number of nozzles, it is impossible to spray all at once, and the injection of all the nozzle holes needs to be sprayed multiple times to complete a full spray. Moreover, due to the movement of the printing medium relative to the nozzle during the printing process, the ink droplets on the paper will tend to slope downward, as shown in FIG. 1 .

图1为某国产的热发泡打印头的打印过程的仿真,该打印头有30720个喷嘴,需要分成32个批次才能完成一次全喷,每个批次喷射960个喷嘴。由于纸的运动会导致水平方向上相邻两个墨滴之间有8微米的偏移,这样原本一条水平的直线就变成许多条向下倾斜的小斜线构成,这样会影响到打印的之后图像的质量。Figure 1 is a simulation of the printing process of a domestic thermal foaming print head. The print head has 30,720 nozzles, which need to be divided into 32 batches to complete a full spray, and each batch sprays 960 nozzles. Due to the movement of the paper, there will be an 8-micron offset between two adjacent ink droplets in the horizontal direction, so that a horizontal straight line will become many small slanted lines that slope downward, which will affect the printing process. Image quality.

由于水平方向上最多有8*7=56微米的向下偏移,超过了一个墨滴的直径21微米,可以通过简单的将偏移严重的部分像素的位置移动到上一行的位置,这种简单的处理方式能有一个较大的改善,如图2所示。Since there is a maximum downward offset of 8*7=56 microns in the horizontal direction, which exceeds the diameter of an ink droplet of 21 microns, it is possible to simply move the position of some pixels with severe deviation to the position of the previous line, this A simple processing method can have a large improvement, as shown in Figure 2.

图1的缺陷是打印图像上的像素点,向下偏移比较严重,经过简单优化后,图2中可以看出向下偏移的效果相对要好很多了,但向上和向下均有一定幅度的偏移,向上最大为18微米,向下最大偏移为14微米。The defect in Figure 1 is that the pixels on the printed image have a serious downward shift. After simple optimization, it can be seen from Figure 2 that the effect of the downward shift is relatively better, but there is a certain degree of upward and downward shift. Offset, up to a maximum of 18 microns, down to a maximum of 14 microns.

从图1到图2的简单优化方法,虽然有了较大的改善,但考虑到18微米与14微米相对于墨滴直径21微米还是一个比较大的数值,所以图2所示的简单优化方法并不能完全解决问题。亟需一种更加完善的方法来对进行优化处理。Although the simple optimization method from Figure 1 to Figure 2 has been greatly improved, considering that 18 microns and 14 microns are relatively large values relative to the ink droplet diameter of 21 microns, the simple optimization method shown in Figure 2 It doesn't completely solve the problem. A more complete method is urgently needed to optimize the .

发明内容Contents of the invention

本发明要解决的技术问题是提供一种充分考虑到打印过程中墨滴的偏移特性、在光栅化时考虑墨滴的物理位置的消除打印图像锯齿的方法。The technical problem to be solved by the present invention is to provide a method for eliminating aliasing of printed images, which fully considers the offset characteristics of ink droplets during printing and considers the physical position of ink droplets during rasterization.

为了解决上述问题,本发明提供了一种消除打印图像锯齿的方法,所述消除打印图像锯齿的方法包括以下步骤:In order to solve the above problems, the present invention provides a method for eliminating jagged printing images, and the method for eliminating jagged printing images includes the following steps:

S1、根据打印头的分辨率计算得到每个像素的尺寸,并计算打印在纸上的每组墨滴中相邻墨滴之间的高度差;其中,打印头包括若干打印单元,每个打印单元中的喷嘴分布在m列上,每列n个喷嘴,打印在纸上的墨滴m列为一组,分为n组,同一组中的m列墨滴在时序上依次打印;m≥2;n≥1;S1. Calculate the size of each pixel according to the resolution of the print head, and calculate the height difference between adjacent ink drops in each group of ink drops printed on the paper; wherein, the print head includes several printing units, each printing The nozzles in the unit are distributed on m columns, each column has n nozzles, and the m columns of ink droplets printed on the paper are divided into n groups, and the m columns of ink droplets in the same group are printed sequentially in time sequence; m≥ 2; n≥1;

S2、根据每个像素的尺寸和打印在纸上的每组墨滴中相邻墨滴之间的高度差计算每个墨点对应的坐标补偿值;S2. Calculate the coordinate compensation value corresponding to each ink dot according to the size of each pixel and the height difference between adjacent ink droplets in each group of ink droplets printed on the paper;

S3、在光栅化时,用采样坐标减掉对应的坐标补偿值,并取整得到墨点坐标。S3. During rasterization, the corresponding coordinate compensation value is subtracted from the sampling coordinates, and rounded to obtain the ink dot coordinates.

作为本发明的进一步改进,所述根据打印头的分辨率计算得到每个像素的尺寸为:As a further improvement of the present invention, the size of each pixel calculated according to the resolution of the print head is:

Figure BDA0003671246220000021
Figure BDA0003671246220000021

Figure BDA0003671246220000022
Figure BDA0003671246220000022

其中,a*b为打印头的分辨率,即在水平方向每英寸有a个墨点,在垂直方向每英寸有b个墨点;A和B分别为每个像素在水平方向和垂直方向的尺寸;Among them, a*b is the resolution of the print head, that is, there are a ink dots per inch in the horizontal direction, and b ink dots per inch in the vertical direction; A and B are the resolution of each pixel in the horizontal direction and vertical direction, respectively. size;

并利用以下公式计算打印在纸上的每组墨滴中相邻墨滴之间的高度差SintervalAnd use the following formula to calculate the height difference S interval between adjacent ink droplets in each group of ink droplets printed on the paper:

Sinterval=V×Tinterval S interval =V×T interval

其中,V为打印头与纸的相对运动速度,Tinterval为每组墨滴中相邻墨滴之间的间隔打印时间。Among them, V is the relative movement speed between the print head and the paper, and T interval is the interval printing time between adjacent ink droplets in each group of ink droplets.

作为本发明的进一步改进,每个墨点对应的坐标补偿值y补偿为:As a further improvement of the present invention, the coordinate compensation value y corresponding to each ink dot is compensated as:

y补偿=(x%m)×(-Sinterval/B)y compensation = (x%m) × (-S interval /B)

其中,y补偿为垂直方向的补偿,x%m为x对m求余数,x为每组墨滴中在时序上的第x个墨滴。Wherein, y compensation is the compensation in the vertical direction, x%m is the remainder of x to m, and x is the xth ink drop in time sequence in each group of ink drops.

作为本发明的进一步改进,步骤S3中取整得到的墨点坐标为:As a further improvement of the present invention, the ink dot coordinates obtained by rounding in step S3 are:

Figure BDA0003671246220000031
Figure BDA0003671246220000031

其中,(xsample,ysample)为取样坐标;(xi,yi)为得到的墨点坐标;

Figure BDA0003671246220000032
表示对x向上取整,
Figure BDA0003671246220000033
表示对x使用四舍五入的方式取整。Wherein, (x sample , y sample ) is the sampling coordinate; ( xi , y i ) is the ink dot coordinate obtained;
Figure BDA0003671246220000032
Indicates that x is rounded up,
Figure BDA0003671246220000033
Indicates that x is rounded to an integer.

本发明还提供了一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现上述任意一项所述方法的步骤。The present invention also provides an electronic device, including a memory, a processor, and a computer program stored on the memory and operable on the processor, and the processor implements the steps of any one of the methods described above when executing the program .

本发明还提供了一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现上述任意一项所述方法的步骤。The present invention also provides a computer-readable storage medium, on which a computer program is stored, which is characterized in that, when the program is executed by a processor, the steps of any one of the above-mentioned methods are implemented.

本发明还提供了一种消除打印图像锯齿的系统,其包括:The present invention also provides a system for eliminating jagged printing images, which includes:

第一计算模块,用于根据打印头的分辨率计算得到每个像素的尺寸,并计算打印在纸上的每组墨滴中相邻墨滴之间的高度差;其中,打印头包括若干打印单元,每个打印单元中的喷嘴分布在m列上,每列n个喷嘴,打印在纸上的墨滴m列为一组,分为n组,同一组中的m列墨滴在时序上依次打印;m≥2;n≥1;The first calculation module is used to calculate the size of each pixel according to the resolution of the print head, and calculate the height difference between adjacent ink drops in each group of ink drops printed on the paper; wherein the print head includes several print heads unit, the nozzles in each printing unit are distributed on m columns, each column has n nozzles, and the m columns of ink droplets printed on the paper are grouped into n groups, and the m columns of ink droplets in the same group are in the timing Print sequentially; m≥2; n≥1;

第二计算模块,用于根据每个像素的尺寸和打印在纸上的每组墨滴中相邻墨滴之间的高度差计算每个墨点对应的坐标补偿值;The second calculation module is used to calculate the coordinate compensation value corresponding to each ink point according to the size of each pixel and the height difference between adjacent ink droplets in each group of ink droplets printed on the paper;

补偿模块,用于在光栅化时,用采样坐标减掉对应的坐标补偿值,并取整得到墨点坐标。The compensation module is used for subtracting the corresponding coordinate compensation value from the sampling coordinates during rasterization, and rounding to obtain the ink dot coordinates.

作为本发明的进一步改进,所述根据打印头的分辨率计算得到每个像素的尺寸为:As a further improvement of the present invention, the size of each pixel calculated according to the resolution of the print head is:

Figure BDA0003671246220000041
Figure BDA0003671246220000041

Figure BDA0003671246220000042
Figure BDA0003671246220000042

其中,a*b为打印头的分辨率,即在水平方向每英寸有a个墨点,在垂直方向每英寸有b个墨点;A和B分别为每个像素在水平方向和垂直方向的尺寸;Among them, a*b is the resolution of the print head, that is, there are a ink dots per inch in the horizontal direction, and b ink dots per inch in the vertical direction; A and B are the resolution of each pixel in the horizontal direction and vertical direction, respectively. size;

并利用以下公式计算打印在纸上的每组墨滴中相邻墨滴之间的高度差SintervalAnd use the following formula to calculate the height difference S interval between adjacent ink droplets in each group of ink droplets printed on the paper:

Sinterval=V×Tinterval S interval =V×T interval

其中,V为打印头与纸的相对运动速度,Tinterval为每组墨滴中相邻墨滴之间的间隔打印时间。Among them, V is the relative movement speed between the print head and the paper, and T interval is the interval printing time between adjacent ink droplets in each group of ink droplets.

作为本发明的进一步改进,每个墨点对应的坐标补偿值y补偿为:As a further improvement of the present invention, the coordinate compensation value y corresponding to each ink dot is compensated as:

y补偿=(x%m)×(-Sinterval/B)y compensation = (x%m) × (-S interval /B)

其中,y补偿为垂直方向的补偿,x%m为x对m求余数,x为每组墨滴中在时序上的第x个墨滴。Wherein, y compensation is the compensation in the vertical direction, x%m is the remainder of x to m, and x is the xth ink drop in time sequence in each group of ink drops.

作为本发明的进一步改进,取整得到的墨点坐标为:As a further improvement of the present invention, the ink dot coordinates obtained by rounding are:

Figure BDA0003671246220000043
Figure BDA0003671246220000043

其中,(xsample,ysample)为取样坐标;(xi,yi)为得到的墨点坐标;

Figure BDA0003671246220000044
表示对x向上取整,
Figure BDA0003671246220000045
表示对x使用四舍五入的方式取整。Wherein, (x sample , y sample ) is the sampling coordinate; ( xi , y i ) is the ink dot coordinate obtained;
Figure BDA0003671246220000044
Indicates that x is rounded up,
Figure BDA0003671246220000045
Indicates that x is rounded to an integer.

本发明的有益效果:Beneficial effects of the present invention:

本发明消除打印图像锯齿的方法及系统充分考虑到打印过程中墨滴的偏移特性,先计算每个墨点的坐标补偿值,并在光栅化时用采样坐标减掉对应的坐标补偿值,并取整得到墨点坐标。使得光栅化后,每组中的多个像素点为向下倾斜的方式排列,充分考虑墨滴的物理位置,使得打印出来的图像能够获得更好的质量。The method and system for eliminating jagged printing images in the present invention fully consider the offset characteristics of ink droplets in the printing process, first calculate the coordinate compensation value of each ink dot, and subtract the corresponding coordinate compensation value from the sampling coordinates during rasterization, And round to get the ink dot coordinates. After rasterization, multiple pixels in each group are arranged in a downward slanting manner, fully considering the physical position of ink droplets, so that the printed image can obtain better quality.

上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其他目的、特征和优点能够更明显易懂,以下特举较佳实施例,并配合附图,详细说明如下。The above description is only an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable , the following preferred embodiments are specifically cited below, and are described in detail as follows in conjunction with the accompanying drawings.

附图说明Description of drawings

图1是现有的热发泡打印头打印过程仿真;Fig. 1 is the simulation of the printing process of the existing thermal foaming print head;

图2是现有的热发泡打印头优化后的打印过程仿真;Fig. 2 is the simulation of the printing process after the optimization of the existing thermal foaming print head;

图3是现有的直线光栅化的示意图;FIG. 3 is a schematic diagram of existing linear rasterization;

图4是本发明考虑打印过程的直线光栅化的示意图;Fig. 4 is a schematic diagram of linear rasterization considering the printing process in the present invention;

图5是本发明实施例中打印头的喷嘴示意图;Fig. 5 is a schematic diagram of the nozzles of the print head in the embodiment of the present invention;

图6是本发明实施例中打印图像的墨点示意图;Fig. 6 is a schematic diagram of ink dots of a printed image in an embodiment of the present invention;

图7是本发明实施例中线段路径示意图;Fig. 7 is a schematic diagram of a line segment path in an embodiment of the present invention;

图8是本发明实施例中具有取样点的线段示意图;Fig. 8 is a schematic diagram of a line segment with sampling points in an embodiment of the present invention;

图9是本发明实施例中直线的示意图;Fig. 9 is a schematic diagram of a straight line in an embodiment of the present invention;

图10是本发明实施例中直线对x轴采样的示意图;Fig. 10 is a schematic diagram of a straight line sampling the x-axis in an embodiment of the present invention;

图11是本发明实施例中直线光栅化的示意图。Fig. 11 is a schematic diagram of linear rasterization in an embodiment of the present invention.

具体实施方式detailed description

下面结合附图和具体实施例对本发明作进一步说明,以使本领域的技术人员可以更好地理解本发明并能予以实施,但所举实施例不作为对本发明的限定。The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments, so that those skilled in the art can better understand the present invention and implement it, but the examples given are not intended to limit the present invention.

实施例一Embodiment one

本发明优选实施例公开了一种消除打印图像锯齿的方法,包括以下步骤:A preferred embodiment of the present invention discloses a method for eliminating jagged print images, including the following steps:

S1、根据打印头的分辨率计算得到每个像素的尺寸,并计算打印在纸上的每组墨滴中相邻墨滴之间的高度差;其中,打印头包括若干打印单元,每个打印单元中的喷嘴分布在m列上,每列n个喷嘴,打印在纸上的墨滴m列为一组,分为n组,同一组中的m列墨滴在时序上依次打印;m≥2;n≥1。S1. Calculate the size of each pixel according to the resolution of the print head, and calculate the height difference between adjacent ink drops in each group of ink drops printed on the paper; wherein, the print head includes several printing units, each printing The nozzles in the unit are distributed on m columns, each column has n nozzles, and the m columns of ink droplets printed on the paper are divided into n groups, and the m columns of ink droplets in the same group are printed sequentially in time sequence; m≥ 2; n≥1.

具体地,所述根据打印头的分辨率计算得到每个像素的尺寸为:Specifically, the size of each pixel calculated according to the resolution of the print head is:

Figure BDA0003671246220000061
Figure BDA0003671246220000061

Figure BDA0003671246220000062
Figure BDA0003671246220000062

其中,a*b为打印头的分辨率,即在水平方向每英寸有a个墨点,在垂直方向每英寸有b个墨点;A和B分别为每个像素在水平方向和垂直方向的尺寸。Among them, a*b is the resolution of the print head, that is, there are a ink dots per inch in the horizontal direction, and b ink dots per inch in the vertical direction; A and B are the resolution of each pixel in the horizontal direction and vertical direction, respectively. size.

并利用以下公式计算打印在纸上的每组墨滴中相邻墨滴之间的高度差SintervalAnd use the following formula to calculate the height difference S interval between adjacent ink droplets in each group of ink droplets printed on the paper:

Sinterval=V×Tinterval S interval =V×T interval

其中,V为打印头与纸的相对运动速度,Tinterval为每组墨滴中相邻墨滴之间的间隔打印时间。Among them, V is the relative movement speed between the print head and the paper, and T interval is the interval printing time between adjacent ink droplets in each group of ink droplets.

在其中一实施例中,以某款打印头为例,该打印头的分辨率为1200×600,即在水平方向上每一英寸有1200个墨点,在垂直方向上每一英寸有600个墨点,可以计算出打印在纸上每像素的尺寸为21.167μm×42.333μm,计算过程如下:In one of the embodiments, taking a certain print head as an example, the resolution of the print head is 1200×600, that is, there are 1200 ink dots per inch in the horizontal direction, and 600 ink dots per inch in the vertical direction. Ink dots, it can be calculated that the size of each pixel printed on paper is 21.167μm×42.333μm, the calculation process is as follows:

1inch=2.54cm=0.0254m1inch=2.54cm=0.0254m

0.0254m÷1200=21.167μm0.0254m÷1200=21.167μm

0.0254m÷600=42.333μm0.0254m÷600=42.333μm

该打印头由若干单元(Unit)组成,每个单元有32个喷嘴,分布在8列上,每列4个喷嘴,水平宽度为:21.167μm×8=169.336μm,垂直高度为:42.333μm×32=1354.656μm,该打印头的喷嘴分布示意图如图5所示。The print head is composed of several units, each unit has 32 nozzles, distributed in 8 columns, each column has 4 nozzles, the horizontal width is: 21.167μm×8=169.336μm, the vertical height is: 42.333μm× 32=1354.656 μm, the nozzle distribution diagram of the print head is shown in FIG. 5 .

对于打印头每一次喷墨被称为一次latch,每个单元的32个喷嘴需要32个latch周期喷完,每个latch周期只有一个喷嘴工作,这32个latch分别为latch 1到latch32。For each inkjet of the print head is called a latch, the 32 nozzles of each unit need 32 latch cycles to spray, and only one nozzle works in each latch cycle, and the 32 latches are latch 1 to latch32.

打印在纸上的墨滴每8列为一组,总共有n组,同一组中的8列在时序上依次打印。The ink droplets printed on the paper are divided into groups of 8 columns, and there are n groups in total, and the 8 columns in the same group are printed sequentially in time sequence.

以V=1.0m/s,Tinterval=8μs,可以计算出:With V=1.0m/s, T interval =8μs, it can be calculated:

Sinterval=V×Tinterval=1.0m/s×8μs=8μm。S interval = V × T interval = 1.0 m/s × 8 μs = 8 μm.

S2、根据每个像素的尺寸和打印在纸上的每组墨滴中相邻墨滴之间的高度差计算每个墨点对应的坐标补偿值。S2. Calculate the coordinate compensation value corresponding to each ink dot according to the size of each pixel and the height difference between adjacent ink droplets in each group of ink droplets printed on the paper.

具体地,每个墨点对应的坐标补偿值y补偿为:Specifically, the coordinate compensation value y compensation corresponding to each ink point is:

y补偿=(x%m)×(-Sinterval/B)y compensation = (x%m) × (-S interval /B)

其中,y补偿为垂直方向的补偿,x%m为x对m求余数,x为每组墨滴中在时序上的第x个墨滴。Wherein, y compensation is the compensation in the vertical direction, x%m is the remainder of x to m, and x is the xth ink drop in time sequence in each group of ink drops.

在其中一实施例中,打印图像的墨点示意图如图6所示。x0表示x=0;x1表示x=1;依此类推。用(x,y)表示墨点的坐标,但(x,y)并不能直接对应墨点的实际位置,需要对y进行补偿。垂直方向上:In one embodiment, a schematic diagram of ink dots of a printed image is shown in FIG. 6 . x 0 means x=0; x 1 means x=1; and so on. Use (x, y) to represent the coordinates of the ink dot, but (x, y) cannot directly correspond to the actual position of the ink dot, and y needs to be compensated. Vertically:

1墨点=42.333μm1 ink dot = 42.333μm

而:and:

Figure BDA0003671246220000071
Figure BDA0003671246220000071

若想获得墨点(x,y)的实际位置,需要对y进行补偿,当x=0时需要对y补偿0;当x=1时需要对y补偿-0.189;当x=2时需要对y补偿-0.378;……;当x=9时需要对y补偿0;依此类推。If you want to obtain the actual position of the ink point (x, y), you need to compensate y. When x=0, you need to compensate 0 for y; when x=1, you need to compensate -0.189 for y; when x=2, you need to compensate y compensation -0.378; ...; when x=9, it is necessary to compensate 0 for y; and so on.

记y补偿为y的补偿,则y补偿满足如下公式:Record y compensation as y compensation, then y compensation satisfies the following formula:

y补偿=(x%8)×-0.189y compensation = (x%8) × -0.189

墨点(x,y)的实际位置为:(x,y+y补偿)。The actual position of the ink point (x, y) is: (x, y+y compensation ).

S3、在光栅化时,用采样坐标减掉对应的坐标补偿值,并取整得到墨点坐标。S3. During rasterization, the corresponding coordinate compensation value is subtracted from the sampling coordinates, and rounded to obtain the ink dot coordinates.

具体地,取整得到的墨点坐标为:Specifically, the ink dot coordinates obtained by rounding are:

Figure BDA0003671246220000072
Figure BDA0003671246220000072

其中,(xsample,ysample)为取样坐标;(xi,yi)为得到的墨点坐标;

Figure BDA0003671246220000081
表示对x向上取整,
Figure BDA0003671246220000082
表示对x使用四舍五入的方式取整。Wherein, (x sample , y sample ) is the sampling coordinate; ( xi , y i ) is the ink dot coordinate obtained;
Figure BDA0003671246220000081
Indicates that x is rounded up,
Figure BDA0003671246220000082
Indicates that x is rounded to an integer.

以画直线为例来说明光栅化的过程。根据直线的几何特征可确定直线路径的像素位置。直线的笛卡尔斜率截距方程为:Take drawing a straight line as an example to illustrate the rasterization process. The pixel position of the straight line path can be determined according to the geometric features of the straight line. The Cartesian slope-intercept equation of a line is:

y=m·x+by=m x+b

其中,m为直线的斜率,b为y轴的结局。给定图7所示线段的两个端点(x0,y0)和(xend,yend),可以计算斜率m和y的截距为b:Among them, m is the slope of the line, and b is the ending of the y-axis. Given the two endpoints (x 0 , y 0 ) and (x end , y end ) of the line segment shown in Figure 7, the slope m and the intercept of y can be calculated as b:

Figure BDA0003671246220000083
Figure BDA0003671246220000083

b=y0-m·x0 b=y 0 -m x 0

对于任何沿直线给定的x增量δx,可以计算出对应的y增量为δy:For any given x-increment δx along the line, the corresponding y-increment can be calculated as δy:

δy=m·δxδy=m·δx

同样,可以得出对应于指定的δy的x增量δx:Likewise, the x-increment δx corresponding to the specified δy can be obtained:

Figure BDA0003671246220000084
Figure BDA0003671246220000084

对于绝对值|m|<1的直线,可以设置一个较小的δx,对应的δy可计算得出;而对应斜率值|m|>1的直线,则设置一个较小的δy,对应的δx可计算得出;对于斜率m=1的直线,δx=δy,设置δx和δy均可。For a straight line with an absolute value of |m|<1, a smaller δx can be set, and the corresponding δy can be calculated; for a straight line with a slope value of |m|>1, a smaller δy can be set, and the corresponding δx It can be calculated; for a straight line with slope m=1, δx=δy, both δx and δy can be set.

在光栅系统中,通过像素绘制线段,水平和垂直方向的步长受到像素的间距限制。也就是必须在离散位置上对线段取样,并且在每个取样位置上确定线段最近的像素。如图8所示,给出了线段的扫描转换过程及相对于x轴的离散取样点位置。In a raster system, lines are drawn by pixels, and the horizontal and vertical steps are limited by the pitch of the pixels. That is, the line segment must be sampled at discrete locations, and the nearest pixel to the line segment must be determined at each sampled location. As shown in Figure 8, the scan conversion process of the line segment and the discrete sampling point positions relative to the x-axis are given.

光栅化的具体步骤如下:The specific steps of rasterization are as follows:

如图9所示,直线的方程为y=mx+b。As shown in FIG. 9, the equation of the straight line is y=mx+b.

(1)判断采样方向(1) Determine the sampling direction

|m|<1,对x轴采样;|m|>1对y采样;|m|=1对x和y采样均可。|m|<1, sample the x axis; |m|>1 sample the y; |m|=1 sample both x and y.

(2)采样(2) Sampling

根据给定的开始(x0,y0)和结束(xend,yend),在x轴或y轴上进行采样。以对x方向采样为例,假设x0=0,xend=10.5,x0和xend包含11个采样点,分别是x=0,x=1,…,x=10,记这11个采样点为xsample0,xsample1,…xsample10,如图10所示。Samples on the x-axis or y-axis according to the given start (x 0 , y 0 ) and end (x end , y end ). Take sampling in the x direction as an example, assuming x 0 =0, x end =10.5, x 0 and x end contain 11 sampling points, which are x=0, x=1,...,x=10, remember these 11 The sampling points are x sample0 , x sample1 , ... x sample10 , as shown in FIG. 10 .

(3)计算坐标(3) Calculate coordinates

根据直线的公式y=mx+b计算对应的采样点的坐标。例如2)中对x轴采样的11个采样点,可计算出的11个y的值,即ysample0,ysample1,…ysample10,则11个采样点的坐标为(xsample0,ysample0),(xsample1,ysample1),…,(xsample10,ysample10)。The coordinates of the corresponding sampling points are calculated according to the formula y=mx+b of the straight line. For example, 11 sampling points sampled on the x-axis in 2) can calculate 11 y values, namely y sample0 , y sample1 , ... y sample10 , then the coordinates of the 11 sampling points are (x sample0 , y sample0 ) ,(x sample1 ,y sample1 ),...,(x sample10 ,y sample10 ).

(4)将采样坐标调整到墨点坐标(4) Adjust the sampling coordinates to the ink dot coordinates

在(3)中根据直线方程计算得到的采样坐标,减掉y方向的补偿,取整得到墨点的坐标(xi,yi),其中:In (3), the sampling coordinates calculated according to the straight line equation are subtracted from the compensation in the y direction, and the coordinates ( xi , y i ) of the ink point are obtained by rounding, where:

Figure BDA0003671246220000091
Figure BDA0003671246220000091

其中,

Figure BDA0003671246220000092
表示对x向上取整,
Figure BDA0003671246220000093
表示对x使用四舍五入的方式取整。图11为直线y=mx+b的光栅化结果。in,
Figure BDA0003671246220000092
Indicates that x is rounded up,
Figure BDA0003671246220000093
Indicates that x is rounded to an integer. Fig. 11 is the rasterization result of the straight line y=mx+b.

如图3所示,为通常情况下,将直线光栅化的过程,其中的像素点是按照水平和垂直方向排列的。As shown in FIG. 3 , it is a process of rasterizing a straight line under normal circumstances, in which pixels are arranged in horizontal and vertical directions.

如图4所示,是本发明中考虑打印过程中墨滴会向下倾斜的特性,进行的光栅化过程,在这个过程中像素不再是按照严格水平垂直网格分布,而是存在8个像素一组向下倾斜的方式排列。在光栅化的过程中就考虑到墨滴的物理位置,这样打印出来的图像就能够获得更好的质量。As shown in Figure 4, it is the rasterization process that considers the characteristic that ink droplets will slope downward during the printing process in the present invention. In this process, the pixels are no longer distributed according to a strict horizontal and vertical grid, but there are 8 The pixels are arranged in a downward sloping manner in groups. The physical position of the ink drop is taken into account during the rasterization process, so that the printed image can achieve better quality.

实施例二Embodiment two

本实施例公开了一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现上述实施例中所述方法的步骤。This embodiment discloses an electronic device, including a memory, a processor, and a computer program stored on the memory and operable on the processor. When the processor executes the program, the steps of the methods described in the above embodiments are implemented. .

实施例三Embodiment three

本实施例公开了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现上述实施例中所述方法的步骤。This embodiment discloses a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the steps of the methods described in the above-mentioned embodiments are implemented.

实施例四Embodiment Four

本实施例公开了一种消除打印图像锯齿的系统,其包括:This embodiment discloses a system for eliminating jagged printing images, which includes:

第一计算模块,用于根据打印头的分辨率计算得到每个像素的尺寸,并计算打印在纸上的每组墨滴中相邻墨滴之间的高度差;其中,打印头包括若干打印单元,每个打印单元中的喷嘴分布在m列上,每列n个喷嘴,打印在纸上的墨滴m列为一组,分为n组,同一组中的m列墨滴在时序上依次打印;m≥2;n≥1;The first calculation module is used to calculate the size of each pixel according to the resolution of the print head, and calculate the height difference between adjacent ink drops in each group of ink drops printed on the paper; wherein the print head includes several print heads unit, the nozzles in each printing unit are distributed on m columns, each column has n nozzles, and the m columns of ink droplets printed on the paper are grouped into n groups, and the m columns of ink droplets in the same group are in the timing Print sequentially; m≥2; n≥1;

第二计算模块,用于根据每个像素的尺寸和打印在纸上的每组墨滴中相邻墨滴之间的高度差计算每个墨点对应的坐标补偿值;The second calculation module is used to calculate the coordinate compensation value corresponding to each ink point according to the size of each pixel and the height difference between adjacent ink droplets in each group of ink droplets printed on the paper;

补偿模块,用于在光栅化时,用采样坐标减掉对应的坐标补偿值,并取整得到墨点坐标。The compensation module is used for subtracting the corresponding coordinate compensation value from the sampling coordinates during rasterization, and rounding to obtain the ink dot coordinates.

具体地,所述根据打印头的分辨率计算得到每个像素的尺寸为:Specifically, the size of each pixel calculated according to the resolution of the print head is:

Figure BDA0003671246220000101
Figure BDA0003671246220000101

Figure BDA0003671246220000102
Figure BDA0003671246220000102

其中,a*b为打印头的分辨率,即在水平方向每英寸有a个墨点,在垂直方向每英寸有b个墨点;A和B分别为每个像素在水平方向和垂直方向的尺寸;Among them, a*b is the resolution of the print head, that is, there are a ink dots per inch in the horizontal direction, and b ink dots per inch in the vertical direction; A and B are the resolution of each pixel in the horizontal direction and vertical direction, respectively. size;

并利用以下公式计算打印在纸上的每组墨滴中相邻墨滴之间的高度差SintervalAnd use the following formula to calculate the height difference S interval between adjacent ink droplets in each group of ink droplets printed on the paper:

Sinterval=V×Tinterval S interval =V×T interval

其中,V为打印头与纸的相对运动速度,Tinterval为每组墨滴中相邻墨滴之间的间隔打印时间。Among them, V is the relative movement speed between the print head and the paper, and T interval is the interval printing time between adjacent ink droplets in each group of ink droplets.

具体地,每个墨点对应的坐标补偿值y补偿为:Specifically, the coordinate compensation value y compensation corresponding to each ink point is:

y补偿=(x%m)×(-Sinterval/B)y compensation = (x%m) × (-S interval /B)

其中,y补偿为垂直方向的补偿,x%m为x对m求余数,x为每组墨滴中在时序上的第x个墨滴。Wherein, y compensation is the compensation in the vertical direction, x%m is the remainder of x to m, and x is the xth ink drop in time sequence in each group of ink drops.

具体地,取整得到的墨点坐标为:Specifically, the ink dot coordinates obtained by rounding are:

Figure BDA0003671246220000111
Figure BDA0003671246220000111

其中,(xsample,ysample)为取样坐标;(xi,yi)为得到的墨点坐标;

Figure BDA0003671246220000112
表示对x向上取整,
Figure BDA0003671246220000113
表示对x使用四舍五入的方式取整。Wherein, (x sample , y sample ) is the sampling coordinate; ( xi , y i ) is the ink dot coordinate obtained;
Figure BDA0003671246220000112
Indicates that x is rounded up,
Figure BDA0003671246220000113
Indicates that x is rounded to an integer.

本发明实施例中的消除打印图像锯齿的系统用于实现前述的消除打印图像锯齿的方法,因此该系统的具体实施方式可见前文中的消除打印图像锯齿的方法的实施例部分,所以,其具体实施方式可以参照相应的上述方法实施例的描述,在此不再展开介绍。The system for eliminating aliasing of a printed image in the embodiment of the present invention is used to implement the aforementioned method for eliminating aliasing of a printed image, so the specific implementation of the system can be seen in the embodiment part of the method for eliminating aliasing of a printed image above, so its specific For the implementation manner, reference may be made to the description of the corresponding method embodiments above, and no further introduction is made here.

另外,由于本实施例的消除打印图像锯齿的系统用于实现前述的消除打印图像锯齿的方法,因此其作用与上述方法的作用相对应,这里不再赘述。In addition, since the system for eliminating aliasing in a printed image of this embodiment is used to implement the aforementioned method for eliminating aliasing in a printed image, its function corresponds to that of the above method, and will not be repeated here.

以上实施例仅是为充分说明本发明而所举的较佳的实施例,本发明的保护范围不限于此。本技术领域的技术人员在本发明基础上所作的等同替代或变换,均在本发明的保护范围之内。本发明的保护范围以权利要求书为准。The above embodiments are only preferred embodiments for fully illustrating the present invention, and the protection scope of the present invention is not limited thereto. Equivalent substitutions or transformations made by those skilled in the art on the basis of the present invention are all within the protection scope of the present invention. The protection scope of the present invention shall be determined by the claims.

Claims (6)

1.一种消除打印图像锯齿的方法,其特征在于,包括以下步骤:1. A method for eliminating jagged printing images, characterized in that, comprising the following steps: S1、根据打印头的分辨率计算得到每个像素的尺寸,并计算打印在纸上的每组墨滴中相邻墨滴之间的高度差;其中,打印头包括若干打印单元,每个打印单元中的喷嘴分布在m列上,每列n个喷嘴,打印在纸上的墨滴m列为一组,分为n组,同一组中的m列墨滴在时序上依次打印;m≥2;n≥1;S1. Calculate the size of each pixel according to the resolution of the print head, and calculate the height difference between adjacent ink drops in each group of ink drops printed on the paper; wherein, the print head includes several printing units, each printing The nozzles in the unit are distributed on m columns, each column has n nozzles, and the m columns of ink droplets printed on the paper are divided into n groups, and the m columns of ink droplets in the same group are printed sequentially in time sequence; m≥ 2; n≥1; S2、根据每个像素的尺寸和打印在纸上的每组墨滴中相邻墨滴之间的高度差计算每个墨点对应的坐标补偿值;S2. Calculate the coordinate compensation value corresponding to each ink dot according to the size of each pixel and the height difference between adjacent ink droplets in each group of ink droplets printed on the paper; S3、在光栅化时,用采样坐标减掉对应的坐标补偿值,并取整得到墨点坐标;S3. During rasterization, subtract the corresponding coordinate compensation value from the sampling coordinates, and round to obtain the ink dot coordinates; 所述根据打印头的分辨率计算得到每个像素的尺寸为:The size of each pixel calculated according to the resolution of the print head is:
Figure FDA0003901204490000011
Figure FDA0003901204490000011
Meter
Figure FDA0003901204490000012
Figure FDA0003901204490000012
Meter
其中,a*b为打印头的分辨率,即在水平方向每英寸有a个墨点,在垂直方向每英寸有b个墨点;A和B分别为每个像素在水平方向和垂直方向的尺寸;Among them, a*b is the resolution of the print head, that is, there are a ink dots per inch in the horizontal direction, and b ink dots per inch in the vertical direction; A and B are the resolution of each pixel in the horizontal direction and vertical direction, respectively. size; 并利用以下公式计算打印在纸上的每组墨滴中相邻墨滴之间的高度差SintervalAnd use the following formula to calculate the height difference S interval between adjacent ink droplets in each group of ink droplets printed on the paper: Sinterval=V×Tinterval S interval =V×T interval 其中,V为打印头与纸的相对运动速度,Tinterval为每组墨滴中相邻墨滴之间的间隔打印时间;Among them, V is the relative motion speed of the print head and the paper, and T interval is the interval printing time between adjacent ink droplets in each group of ink droplets; 每个墨点对应的坐标补偿值y补偿为:The coordinate compensation value y compensation corresponding to each ink point is: y补偿=(x%m)×(-Sinterval/B)y compensation = (x%m) × (-S interval /B) 其中,y补偿为垂直方向的补偿,x%m为x对m求余数,x为每组墨滴中在时序上的第x个墨滴。Wherein, y compensation is the compensation in the vertical direction, x%m is the remainder of x to m, and x is the xth ink drop in time sequence in each group of ink drops.
2.如权利要求1所述的消除打印图像锯齿的方法,其特征在于,步骤S3中取整得到的墨点坐标为:2. The method for eliminating jagged print image as claimed in claim 1, wherein the ink dot coordinates obtained by rounding up in step S3 are:
Figure FDA0003901204490000021
Figure FDA0003901204490000021
其中,(xsample,ysample)为取样坐标;(xi,yi)为得到的墨点坐标;
Figure FDA0003901204490000022
表示对x向上取整,
Figure FDA0003901204490000023
表示对x使用四舍五入的方式取整。
Wherein, (x sample , y sample ) is the sampling coordinate; ( xi , y i ) is the ink dot coordinate obtained;
Figure FDA0003901204490000022
Indicates that x is rounded up,
Figure FDA0003901204490000023
Indicates that x is rounded to an integer.
3.一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现权利要求1-2中任意一项所述方法的步骤。3. An electronic device comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, wherein the processor implements any of claims 1-2 when executing the computer program. A step of said method. 4.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现权利要求1-2任意一项所述方法的步骤。4. A computer-readable storage medium, on which a computer program is stored, characterized in that, when the program is executed by a processor, the steps of the method according to any one of claims 1-2 are implemented. 5.一种消除打印图像锯齿的系统,其特征在于,包括:5. A system for eliminating jagged printing images, characterized in that it comprises: 第一计算模块,用于根据打印头的分辨率计算得到每个像素的尺寸,并计算打印在纸上的每组墨滴中相邻墨滴之间的高度差;其中,打印头包括若干打印单元,每个打印单元中的喷嘴分布在m列上,每列n个喷嘴,打印在纸上的墨滴m列为一组,分为n组,同一组中的m列墨滴在时序上依次打印;m≥2;n≥1;The first calculation module is used to calculate the size of each pixel according to the resolution of the print head, and calculate the height difference between adjacent ink drops in each group of ink drops printed on the paper; wherein the print head includes several print heads unit, the nozzles in each printing unit are distributed on m columns, each column has n nozzles, and the m columns of ink droplets printed on the paper are grouped into n groups, and the m columns of ink droplets in the same group are in the timing Print sequentially; m≥2; n≥1; 第二计算模块,用于根据每个像素的尺寸和打印在纸上的每组墨滴中相邻墨滴之间的高度差计算每个墨点对应的坐标补偿值;The second calculation module is used to calculate the coordinate compensation value corresponding to each ink point according to the size of each pixel and the height difference between adjacent ink droplets in each group of ink droplets printed on the paper; 补偿模块,用于在光栅化时,用采样坐标减掉对应的坐标补偿值,并取整得到墨点坐标;The compensation module is used for subtracting the corresponding coordinate compensation value from the sampling coordinates during rasterization, and rounding to obtain the ink dot coordinates; 所述根据打印头的分辨率计算得到每个像素的尺寸为:The size of each pixel calculated according to the resolution of the print head is:
Figure FDA0003901204490000024
Figure FDA0003901204490000024
Meter
Figure FDA0003901204490000025
Figure FDA0003901204490000025
Meter
其中,a*b为打印头的分辨率,即在水平方向每英寸有a个墨点,在垂直方向每英寸有b个墨点;A和B分别为每个像素在水平方向和垂直方向的尺寸;Among them, a*b is the resolution of the print head, that is, there are a ink dots per inch in the horizontal direction, and b ink dots per inch in the vertical direction; A and B are the resolution of each pixel in the horizontal direction and vertical direction, respectively. size; 并利用以下公式计算打印在纸上的每组墨滴中相邻墨滴之间的高度差SintervalAnd use the following formula to calculate the height difference S interval between adjacent ink droplets in each group of ink droplets printed on the paper: Sinterval=V×Tinterval S interval =V×T interval 其中,V为打印头与纸的相对运动速度,Tinterval为每组墨滴中相邻墨滴之间的间隔打印时间;Among them, V is the relative motion speed of the print head and the paper, and T interval is the interval printing time between adjacent ink droplets in each group of ink droplets; 每个墨点对应的坐标补偿值y补偿为:The coordinate compensation value y compensation corresponding to each ink point is: y补偿=(x%m)×(-Sinterval/B)y compensation = (x%m) × (-S interval /B) 其中,y补偿为垂直方向的补偿,x%m为x对m求余数,x为每组墨滴中在时序上的第x个墨滴。Wherein, y compensation is the compensation in the vertical direction, x%m is the remainder of x to m, and x is the xth ink drop in time sequence in each group of ink drops.
6.如权利要求5所述的消除打印图像锯齿的系统,其特征在于,取整得到的墨点坐标为:6. The system for eliminating jagged print images as claimed in claim 5, wherein the ink dot coordinates obtained by rounding are:
Figure FDA0003901204490000031
Figure FDA0003901204490000031
其中,(xsample,ysample)为取样坐标;(xi,yi)为得到的墨点坐标;
Figure FDA0003901204490000032
表示对x向上取整,
Figure FDA0003901204490000033
表示对x使用四舍五入的方式取整。
Wherein, (x sample , y sample ) is the sampling coordinate; ( xi , y i ) is the ink dot coordinate obtained;
Figure FDA0003901204490000032
Indicates that x is rounded up,
Figure FDA0003901204490000033
Indicates that x is rounded to an integer.
CN202210605782.6A 2022-05-31 2022-05-31 Method and system for eliminating printing image saw teeth Active CN114801487B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210605782.6A CN114801487B (en) 2022-05-31 2022-05-31 Method and system for eliminating printing image saw teeth

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210605782.6A CN114801487B (en) 2022-05-31 2022-05-31 Method and system for eliminating printing image saw teeth

Publications (2)

Publication Number Publication Date
CN114801487A CN114801487A (en) 2022-07-29
CN114801487B true CN114801487B (en) 2022-12-02

Family

ID=82518358

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210605782.6A Active CN114801487B (en) 2022-05-31 2022-05-31 Method and system for eliminating printing image saw teeth

Country Status (1)

Country Link
CN (1) CN114801487B (en)

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2731908B2 (en) * 1988-05-27 1998-03-25 セイコーインスツルメンツ株式会社 Printer driving method
JP3900896B2 (en) * 2001-11-12 2007-04-04 セイコーエプソン株式会社 Printing to the end of the print media without soiling the platen
JP2006326913A (en) * 2005-05-24 2006-12-07 Ricoh Co Ltd Image processing method, image forming apparatus and program
CN100509402C (en) * 2005-07-08 2009-07-08 佳能株式会社 Ink jet printing apparatus and ink jet printing method
JP5884259B2 (en) * 2010-09-28 2016-03-15 セイコーエプソン株式会社 Printing device control method and printing device
WO2016015766A1 (en) * 2014-07-31 2016-02-04 Hewlett-Packard Development Company, L.P. A method of printing and printer
CN111439032A (en) * 2020-05-13 2020-07-24 苏州新锐发科技有限公司 Ink jet print head, ink jet printing apparatus, and ink jet printing method

Also Published As

Publication number Publication date
CN114801487A (en) 2022-07-29

Similar Documents

Publication Publication Date Title
CN111267489B (en) Print data processing method, device, equipment and storage medium
JP2001260350A (en) Ink jet recording device
US4621273A (en) Print head for printing or vector plotting with a multiplicity of line widths
JP4479239B2 (en) Inkjet coating device
US8308257B2 (en) Liquid ejecting apparatus and method of manufacturing liquid ejecting apparatus
JP5759830B2 (en) Inkjet recording device
CN114801487B (en) Method and system for eliminating printing image saw teeth
CN105934342B (en) Printer and method and computer program product
CN111267496B (en) Printing data processing method and device based on multiple nozzles
CN113442581B (en) Printing method, device, equipment and storage medium
Ezzeldin et al. Toward better printing quality for a drop-on-demand ink-jet printer: improving performance by minimizing variations in drop properties
JP4576917B2 (en) Inkjet recording device
JP2009045845A (en) Liquid ejecting apparatus and liquid ejecting method
CN111572197A (en) Single-stroke printing method, device, equipment and medium capable of compensating abnormal nozzle
KR101161710B1 (en) Discharging method of ink droplet
CN111427520B (en) Jet printing method for high-speed jet printing of piezoelectric spray head
JP6022391B2 (en) Inkjet recording device
JP4300819B2 (en) Ink jet head control circuit, ink jet head module, data transfer method, and droplet discharge device
US6454391B1 (en) Multi-nozzle ink jet recording device including common electrodes for generating deflector electric field
US6450604B1 (en) Inkjet printing method and device
JP7332707B2 (en) Method of operating a CIJ printer with optical monitoring of print quality, CIJ printer with optical monitoring of print quality and method of teaching a CIJ printer with optical monitoring of print quality
Ezzeldin et al. Improving the printing quality of an inkjet printhead using MIMO model predictive control
JP4379963B2 (en) Driving method of on-demand type multi-nozzle inkjet head
JP3788763B2 (en) Droplet discharge device
JP2019126922A (en) Liquid discharge device, liquid discharge method, liquid discharge program, and image forming 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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230912

Address after: Room 1301, 13th Floor, Xiqiao Innovation Building (formerly Xiqiao Textile Technology Building), No. 3 Qiyuan East Road, Xiqiao Town, Nanhai District, Foshan City, Guangdong Province, 528000 (Residence Application)

Patentee after: High Volume Digital Intelligence Advanced Technology Research (Foshan) Co.,Ltd.

Address before: No. 1800 road 214122 Jiangsu Lihu Binhu District City of Wuxi Province

Patentee before: Jiangnan University