METHOD AND APPARATUS FOR COMPENSATION FOR TIME VARYING NOZZLE MISALIGNMENT IN A DROP ON DEMAND PRINTHEAD

Abstract: A method and apparatus is provided for compensating for variable overlap between segments of a page width print head system to reduce visually perceptible artifacts due to misalignment of adjacent overlapped segments. One method employs a summation means which sums a current dither value from a dither matrix with an overlap signal to provide an output value which is then compared in a comparator with an input continuous tone data value providing an output compensated dither value to control nozzles in the overlap region of the segments. Another method uses a software program to provide the compensated dither matrix. A sensing means provides a measure of the degree of overlap of the segments to generate the overlap signal. The sensing means may sense temperature or relative displacement of the segments. The degree of overlap may be determined for various temperatures and stored in a ROM.

Description: "METHOD AND APPARATUS FOR COMPENSATION FOR TIME VARYING NOZZLE MISALIGNMENT IN A DROP ON DEMAND PRINTIIEAD" FIELD OF THE INVENTION The present invention relates to the field of ink jet printing and in particular discloses a method and apparatus for the compensation for the time varying nozzle misalignment of a print head assembly having overlapping segments. CO-PENDING APPLICATIONS Various methods, systems and apparatus relating to the present invention are disclosed in the following co- pending applications filed by the applicant or assignee of the present invention simultaneously with the present application: PCT/AUOO/00518, PCT/AU00/00519, PCT/AU00/00520, PCT/AU00/00521, PCT/AU00/00522, PCT/AU00/00523, PCT/AU00/00524, PCT/AU00/00525, PCT/AU00/00526, PCT/AU00/00527, PCT/AUOO/00528, PCT/AU00/00529, PCT/AU00/00530, PCT/AU00/00531, PCT/AU00/00532, PCT/AU00/00533, PCT/AU00/00534, PCT/AU00/00535, PCT/AU00/00536, PCT/AU00/00537, PCT/AU00/00538, PCT/AU00/00539, PCT/AU00/00540, PCT/AU00/00541, PCT/AU00/00542, PCT/AU00/00543, PCT/AU00/00544, PCT/AU00/00545, PCT/AU00/00547, PCT/AU00/00546, PCT/AU00/00554, PCT/AU00/00556, PCT/AU00/00557, PCT/AU00/00558, PCT/AU00/00559, PCT/AU00/00560, PCT/AU00/00561, PCT/AU00/00562, PCT/AU00/00563, PCT/AU00/00564, PCT/AU00/00565, PCT/AU00/00566, PCT/AU00/00567, PCT/AU00/00568, PCT/AU00/00569, PCT/AU00/00570, PCT/AU00/00571, PCT/AU00/00572, PCT/AU00/00573, PCT/AUOO/00574, PCT/AU00/00575, PCT/AU00/00576, PCT/AU00/00577, PCT/AU00/00578, PCT/AU00/00579, PCT/AU00/00581, PCT/AUOO/00580, PCT/AU00/00582, PCT/AU00/00587, PCT/AU00/00588, PCT/AU00/00589, PCT/AU00/00583, PCT/AU00/00593, PCT/AU00/00590, PCT/AU00/00591, PCT/AU00/00592, PCT/AU00/00584, PCT/AU00/00585, PCT/AU00/00586, PCT/AU00/00594, PCT/AU00/00595, PCT/AU00/00596, PCT/AU00/00597, PCT/AU00/00598, PCT/AUOO/00516, PCT/AU00/00517, PCT/AU00/00511, PCT/AU00/00501, PCT/AU00/00502, PCT/AU00/00503, PCT/AU00/00504, PCT/AU00/00505, PCT/AU00/00506, PCT/AU00/00507, PCT/AUOO/00508, PCT/AU00/00509, PCT/AU00/00510, PCT/AU00/00512, PCT/AU00/00513, PCT/AU00/00514, and PCT/AU00/00515 The disclosures of these co-pending applications are incorporated herein by cross-reference. BACKGROUND OF THE INVENTION In the applicant's co-pending application PCT/AU98/00550, a series of ink jet printing arrangements were proposed for printing at high speeds across a page width employing novel ink ejection mechanisms. The disclosed arrangements utilized a thermal bend actuator built as part of a monolithic structure. In such arrangements, it is desirable to form larger arrays of ink ejection nozzles so as to provide for a page width drop on demand print head. Desirably, a very high resolution of droplet size is required. For example, common competitive printing systems such as offset printing allow for resolutions of one thousand six hundred dots per inch (1600dpi). Hence, by way of example, for an A4 page print head which is eight inches wide, to print at that resolution would require the equivalent of around 12800 ink ejection nozzles for each colour. Assuming a standard four colour process, this equates to approximately fifty one thousand ink ejection nozzles. For a six colour process including the standard four colours plus a fixative and an IR ink this results in 76800 ink ejection nozzles. Unfortunately, it is impractical to make large monolithic print heads from a contiguous segment of substrate such as a silicon wafer substrate. RECTIFIED SHEET - la - This is primarily a result of the substantial reduction in yield with increasing size of construction. The problem of yield is a well studied problem in the semi-conductor industry and the manufacture of ink jet devices often utilizes semi-conductor or analogous semi-conductor processing techniques. In particular, the field is generally known as Micro Electro Mechanical Systems (MEMS). A survey on the MEMS field is made in the December 1998 IEEE Spectrum article by S Tom Picraux and Paul J McWhorter entitled "The Broad Sweep of Integrated Micro Systems". One solution to the problem of maintaining high yields is to manufacture a lengthy print head in a number of segments and to abut or overlap the segments together. Unfortunately, the extremely high pitch of ink ejection nozzles required for a print head device means that the spacing between adjacent print head segments must be extremely accurately controlled even in the presence of thermal cycling under normal operational conditions. For example, to provide a resolution of one thousand six hundred dots per inch a nozzle to nozzle separation of about sixteen microns is required. RECTIFIED SHEET - 2 - Ambient conditions and the operational environment of a print head may result in thermal cycling of the print head in the overlap region resulting in expansion and contraction of the overlap between adjacent print head segments which may in turn lead to the production of artifacts in the resultant output image. For example, the temperature of the print head may rise 25°C above ambient when in operation. The assembly of the print head may also be made of materials having different thermal characteristics to the print head segments resulting in a differential thermal expansion between these components. The silicon substrate may be packaged in elastomer for which the respective thermal expansion coefficients are 2.6 x 10 "6 and 20 x 10 "6 microns per degree Celsius. Artifacts are produced due to the limited resolution of the print head to represent a continuous tone image in a binary form and the ability of the human eye to detect 0.5% differences in colour of adjacent dots in an image. SUMMARY OF THE INVENTION It is an object of the present invention to provide for a mechanism for compensating for relative displacement of overlapping print ead segments during operation in an effective and convenient manner. In accordance with a first aspect of the invention there is provided in an ink ejection print head comprising a plurality of overlapping print head segments, wherein the spatial relationship between adjacent segments is variable with time, a method for controlling the firing of no2zles within the overlapped segments comprising the steps of: (a) determining a measure of the overlap between adjacent print head segments; (b) creating a halftoning pattern for the nozzles in the region of overlap of the overlapping segments; and (c) adjusting said halftoning pattern as a function of said measure in the overlapping regions of said print head segments to reduce artifacts produced by the overlapping of said print head segments. Preferably, the step for determining a measure of overlap employs a measure of temperature of the print head segments The halftoning patterns are preferably produced by means of a dither matrix or dither volume and the alteration can comprise adding an overlap value to a current continuous tone pixel output value before utilizing the dither matrix or dither volume. In place of a measure of temperature a measure of distance can be provided by the use of fiduciary strips on each of the segments and using an interferometric technique to determine the degree of relative movement between the segments. In accordance with a further aspect of the present invention, there is provided an ink ej ection print head system comprising: a plurality of spaced apart spatially overlapping print head segments; at least one means for measurement of the degree of overlap between adjacent print head segments; means for providing a halftoning of a continuous tone image and means for adjusting said halftoning means in a region of overlap between adjacent print head segments to reduce artifacts between said adjacent segments. The means for adjusting the halftoning means can include a continuous tone input, a spatial overlap input and a binary input, the halftoning means utilizing the spatial overlap input to vary the continuous tone input to produce a varied continuous tone input for utilization in a look-up table of a dither matrix or dither volume so as to produce output binary values to adjust for the regions of overlap of print head segments. The means for adjusting the halftone or dither matrix may be implemented in hardware or by means of software employing an algorithm. BRIEF DESCRIPTION OF THE DRAWINGS This invention is pointed out with particularity in the appended claims. The above and further advantages of this invention may be better understood by referring to the following description taken in conjunction with the accompanying drawings, in which: Fig. 1 shows a schematic of a pair of adjacent print head segments according to the invention; Fig. 2 illustrates the process for printing dots from adjacent print head segments as shown in Fig. 1; Fig. 3 illustrates a process of blending dots between adjacent print head - 3 - segments according to the invention; Fig.4 illustrates a process of dither matrix variational control according to an embodiment of the invention; Fig. 5 illustrates a process of dither matrix variational control according to another embodiment of the invention; and Fig. 6 illustrates graphically an algorithm implementing a further process of dither matrix variational control according to a further embodiment of the invention. DETAILED DESCRIPTION OF THE EMBODIMENTS In a first embodiment a method of compensation for the temperature varying relative displacement of adjacent print head segments is provided by the utilization of a digital processing mechanism which adjusts for the overlap between adjacent segments. In a print head covering an A4 page width there may be 10 segments having 9 overlapping portions arranged in a repeating sequence of staggered pairs. Initial alignment of segments can be made within 10 microns using techniques well known in the art of monolithic fabrication techniques. The width of a segment for a 6 colour ink arrangement would be approximately 225 microns assuming the nozzles of a segment are arranged on 16 micron centres in a zig-zag pattern longitudinally. hi this embodiment, a temperature sensor is placed on each print head segment so as to provide for a measure of the current temperature characteristics of each print head segment. The current temperature measurement can then be utilized to ddermine the amount of overlap between adjacent print head segments. Alternatively, only a single temperature sensor can be used if it can be assumed that the segments of the print head are sufficiently similar to one another in physical characteristics and performance and that the ambient milieu of each pair of overlapped segment is substantially the same. The degree of overlap is then used to provide a mechanism for controlling the halftoning between adjacent print head segments. It is assumed that outputting of an image in the instant invention is by means of digital halftoning employing any method or technique well known in the art. Many different half toning techniques can be utilized and reference is made to the text by Ulichney entitled "Digital Half Toning" pubhshed by MIT Press. As shown in Fig. 1 adjacent print head segments 2, 3 overlap in the respective regions 12, 13. The overlap region may extend approximately 40 thou (~1 mm.) providing an overlap of 64 nozzles spaced at 16 microns for 1600dpi resolution. In the region 10 of the segment 2 the nozzles of this segment are used exclusively for the ejection of ink. Similarly in the region 11 of the segment 3 the nozzles of this segment are used exclusively for the ejection of ink. In. the overlapping regions 12, 13 a "blend" is provided between the two print head segments 2, 3 such that along the edge 14 of the print head segment 2 nozzles are used exclusively in the region 12 to print and similarly along the edge 15, the nozzles of the segment 3 are used almost exclusively for printing. In between, an interpolation, which can be linear or otherwise, is provided between these two extreme positions. Hence, as shown in Fig.2, when printing a full colour output on a page the area on the side 17 is printed exclusively by the print head segment 10 while the area 18 is printed exclusively by the print head segment 11 (as illustrated by the black dots) with the area 19 comprising a blend between the nozzles of the two segments. The printing process utilizes any well known halftoning matrix such as disclosed in the aforementioned references. While a known halftoning matrix is utilized, the actual print head segment utilized will depend upon the blending ratio provided by the measure of overlap between the overlapping segments. One such method is illustrated in Fig. 3 where a linear interpolation within the overlapped regions is shown, i the region corresponding to the overlapped section 12 at the edge 14 there is 100% utilization of the nozzles of print head segment 2, whereas in the equivalent region, edge 7, of the print head segment 3 there is zero output. As the distance of the overlap region from the line 14 of the segment 2 is increased towards the line 15 of the segment 3 the proportion of utilization of the nozzles of the section 12 is gradually decreased (linearly), being zero at edge 9 while the utilization of the nozzles of the section 13 is progressively increased to unity by the time the edge 15 is reached. In a first embodiment where there is an increased overlap between nozzles, the halftoning thresholds utilized are increased in the overlap region. This reduces the number of dots printed in the blend region. Conversely, if there is a reduced overlap with the print head segments being spaced apart slightly more than normally acceptable, the dot frequency can be increased by reducing die halftoning threshold. An overall general halftoning arrangement can be provided as shown in Fig. 4 with a dither matrix 25 outputting a current dither value 26 to a summation means 27 with summation means 27 having another input 28, an overlap signal, which varies in either a positive or a negative sense depending on die degree of overlap between the adjacent segments. The output value 29 of summation means or adder 27 is compared to the input continuous tone data 32 via a comparator 30 so as to output halftone data 31. An alternative arrangement allows that the data value 28 can be subtracted from the continuous tone data 29 before dithering is applied producing similar results. This arrangement is shown in Fig. 5. As shown in Fig. 5, a halftone data output 52 can be generated by combining the output 42 of dither matrix 40 in an adder 46 with the overlap signal 44, and then taking the difference of the output 54 of adder 46 and the continuous tone data 48 in subtracter 50. This is an equivalent arrangement to that of Fig. 4. Through the utilization of an arrangement such as described above with respect to Figs. 3 and 4, a degree of control of the overlap blending can be provided so as to reduce the production of streak artifacts between adjacent print head segments. As each overlap signal 28 can be multiplied by a calibration factor and added to a calibration offset factor, the degree of accuracy of placement of adjacent print head segments can also be dramatically reduced. Hence, adjacent print head segments can be roughly aligned during manufacture with one another. Test patterns can then be printed out at known temperatures to determine the degree of overlap between nozzles of adjacent segments. Once a degree of overlap has been determined for a particular temperature range a series of corresponding values can be written to a programmable ROM storage device so as to provide full offset values on demand which are individually factored to the print head segment overlap. A further embodiment of the invention involves the use of a software solution for reducing the production of artifacts between overlapped segments of the print heads. A full software implementation of a dither matrix including the implementation of an algorithm for adjusting variable overlap between print head segments is attached as appendix A. The program is written in the programming language C. The algorithm may be written in some other code mutatis mutandis within the knowledge of a person skilled in the art The basis of the algorithm is explained as follows. A dispersed dot stochastic dithering is used to reproduce the continuous tone pixel values using bi-level dots. Dispersed dot dithering reproduces high spatial frequency, that is, image detail, almost to the limits of the dot resolution, while simultaneously reproducing lower spatial frequencies to their full intensity depth when spatially integrated by the eye. A stochastic dither matrix is designed to be free of objectionable low frequency patterns when tiled across the page. Dot overlap can be modelled using dot gain techniques. Dot gain refers to any increase from the ideal intensity of a pattern of dots to the actual intensity produced when the pattern is printed. In ink jet printing, dot gain is caused mainly by ink bleed. Bleed is itself a function of the characteristics of the ink and the printing medium. Pigmented inks can bleed on the surface but do not diffuse far inside the medium. Dye based inks can diffuse along cellulose fibres inside the medium. Surface coatings can be used to reduce bleed. Because the effect of dot overlap is sensitive to the distribution of the dots in the same way that dot gain is, it is useful to model the ideal dot as perfectiy tiling the page with no overlap. While an actual ink jet dot is approximately round and overlaps its neighbours, the ideal dot can be modelled by a square. The ideal and actual dot shapes thus become dot gain parameters. - 5 - Dot gain is an edge effect, that is it is an effect which manifests itself along edges between printed dots and adjacent unprinted areas. Dot gain is proportional to the ratio between the edge links of a dot pattern and the area of the dot pattern. Two techniques for dealing with dot gain are dispersed dot dithering and clustered dot dithering. In dispersed dot dithering the dot is distributed uniformly over an area, for example for a dot of 50% intensity a chequer board pattern is used. In clustered dot dithering the dot is represented with a single central "coloured" area and an "uncoloured" border with the ratio of the area of "coloured" to "uncoloured" equalling the intensity of the dot to be printed. Dispersed dot dithering is therefore more sensitive to dot gain than clustered dot dithering. Two adjacent print head segments have a number of overlapping nozzles. In general, there will not be perfect registration between corresponding nozzles in adjacent segments. At a local level there can be a misregistration of plus or minus half the nozzle spacing, that is plus or minus about 8 microns at 1600 dpi. At a higher level, the number of overlapping nozzles can actually vary. The first approach to smoothly blending the output across the overlap bridge and from one segment to the next consists of blending the continuous tone input to the two segments from one to the other across the overlap region. As output proceeds across the overlap region, the second segment receives an increasing proportion of the input continuous tone value and the first segment receives a correspondingly decreasing proportion as described above with respect to Fig. 3. A linear or higher order interpolation can be used. The dither matrices used to dither the output through the two segments are then registered at the nozzle level. The first approach has two drawbacks. Firstly, if the dither threshold at a particular dot location is lower than both segments' interpolated continuous tone values then both segments will produce a dot for that location. Since the two dots will overlap, the intensities promised by the two dither matrices will be only partially reproduced, leading to a loss of overall intensity. This can be remedied by ensuring that corresponding nozzles never both produce a dot. This can also be achieved by using the inverse of the dither matrix for alternating segments, or dithering the continuous tone value through a single dither matrix and then assigning the output dot to one or the other nozzle stochastically, according to a probability given by the current interpolation factor. Secondly, adjacent dots printed by different segments will overlap again leading to a loss of overall intensity. As shown in Fig. 6, the value for each overlapped segment is plotted along the horizontal axes 60, 62 as V A and V B respectively between the values of 0.0 and 1.0. The calculated output 66 is plotted withrespect to the vertical axis 64 as a function, I A+B , for values ranging from 0.0 to 1.0. A contour plane 68 shows the resultant values for I A+B =0.5. Fig. 6 shows the qualitative shape of the three dimensional function linking the two segments' input continuous tone values V A and V B to the observed output intensity I A+B . For the first approach, an input continuous tone value V and an interpolation factor f together yield V A = (1-f) V and V B = f V. The closer the interpolation factor is to 0.5 the greater the difference between the input continuous tone value and the observed output intensity. For V=l .0, this is illustrated in Fig. 6 by the curve 200 on the vertical V A +V B = 1.0 plane. By definition this curve lies on the function surface. Fig. 6 indicates that when any kind of mixing occurs, that is 0.0 < f <1.0, the output intensity is attenuated, and to achieve the desired output intensity the sum of the two segments' input values must exceed the desired output value, that is V A +V B >V. This forms the basis for the algorithm in appendix A. The function shows a linear response when only one segment contributes to the output, that is f=0.0 or f=1.0. This assumes of course that the dither matrix includes the effects of dot gain. The foregoing description has been limited to specific embodiments of this invention . It will be apparent, however, that variations and modifications may be made to the invention, with the attainment of some or all of the advantages of the invention. For example, it will be appreciated that the invention may be embodied in either hardware or software in a suitably programmed digital data processing system, both of which are readily accomplished by those of ordinary skill in the respective arts. Therefore, it is the object of the appended claims to cover all such variations and modifications as come within the true spirit and scope of the invention. • 6 - static void ObtainMisregistrationTransferFunction ( int dotsPerPixel, int subdotsPerDot, BI_Image constδ dotlmage, char const* pDotlmageName, char const* pRefDotlmageName, int const overlapSize, int const overlaplndex, // o overlapsize-l int const misregFactor, BI_Image const& ditherMatrix, BI_LUT& lutv, BI_LUT& lutO, BI_LUT& lutl ); class RLE DotLine { public: RLE_DotLine () : m_whiteRun(0) , m_blackRun{0) {} RLE_DotLine (int hiteRun, int blackRun) : m_hiteRun (whiteRun) , m_blackRun (blackRun) {} mt WhiteRun () const { return m_whiteRun; } int BlackRun () const { return m blackRun; } private: int m_whiteRun; int m blackRun; }/ typedef vector<RLE_DotLine, allocator<RLE_DotLine> > RLE_Dot; static void Usage () { fprintf (stderr, usage : Seg entDitherW ) ; fprintf (stderr, inputlmage\n") ; fprintf (stderr, dotsPerPixel\n") ; fprintf (stderr, subdotsPerDot\n") ; fprintf (stderr, dotImage\n") ; fprintf (stderr, refDotImage\n") ; fprintf (stderr, overlapCenter\n") ; fprintf (stderr, overlapsize\n") ; fprintf (stderr, misregFactor\n") ; fprintf (stderr, ditherMatrix\n") ; fprintf (stderr, outputImage\n") ; f rintf (stderr, outputResolution\n") ; exit (1) ; } static void BadArgument (char const* pErrorMsg) { fprintf (stderr, "SegmentDither: argument error: %s\n", pErrorMsg); exit(l); } #define CHECK_ARGUMENT (cond) if (cond) BadArgument (#cond) static double MisregDots (int const irasregFactor) ( return (double)misregFactor / 1000; } static int MisregSubdots (int const misregFactor, int const subdotsPerDot) { return (int) BU_Round (MisregDots (misregFactor) * subdotsPerDot); } static void PutDot ( int const subdotsPerDot, RLE_Dot constδ rleDot, int const dotRow, int const dotCol, int const misregFactor, BI_Image& outputlmage -8- int const misregSubdots = MisregSubdots (misregFactor, subdotsPerDot); int const subdotRow = dotRow * subdotsPerDot; int const subdotCol = dotCol * subdotsPerDot; int const dotOverlap = rleDot. size () - subdotsPerDot; int const dotMargin = dotOverlap / 2; RLE_Dot: : const_iterator ii = rleDot.begin() ; for (int i = 0; i < rleDot. size() ; i++, ii++) { int const row = subdotRow - dotMargin + i; if (row < 0 || row >= outputlmage.Height () ) continue; int const whiteRun = (*ii) .WhiteRun () ; int blackRun = (*ii) .BlackRunf) ; int col = subdotCol - dotMargin + whiteRun + misregSubdots; if (col < 0) { blackRun += col; col = 0; } if (col + blackRun >= outputlmage.Width () ) blackRun = outputlmage.Width () - col; if (blackRun <= 0) continue; BU_ExpandBitRun ( outputlmage. Image (row) , col, outputlmage.Width( ) , blackRun, 1 static void MergeScale ( double const scale, int& v, doubles fO , doubles fl ) { double const vScaled = (double)v * scale; if (vScaled <= 255 .0 ) { v = (int) BU_Round (vScaled) ; } else { v = 255; double const f Scale = vScaled / 255. 0; fO *= fScale; fl *= fScale; } static void Dither ( BI_Image const& inputlmage, BI_LUT const& lutDotGain, int const dotsPerPixel, int const subdotsPerDot, BI_Image consts dotlmage, char const* pDotlmageName, char const* pRefDotlmageName, int const overlapCenter, int const overlapSize, int const misregFactor, BI_Image consts ditherMatrix, BI_Images outputlmage, int const outputResolution, bool const bRetain, bool const bSkipLHS, bool const bSkipRHS, bool const bFixedlnterp = false, double const fixedFO = 0, double const fixedFl = 0 ) { // compute overlap interval int const overlapStart = overlapCenter - (overlapSize / 2) ; - 10 - int const overlapEnd = overlapStart + overlapSize - 1; // copy and invert dither matrix BI_Image ditherMatrix2; ditherMatrix2 = ditherMatrix; BI_Invert(ditherMatrix2) ; // initialise and clear output image int const subdotsPerPixel = dotsPerPixel * subdotsPerDot; int const bilevelHeight = inputlmage.Height () * subdotsPerPixel; int const bilevelWidth = inputlmage.WidthO * subdotsPerPixel; if ( IbRetain) { // initialise outputlmage. Initialise ( BI_ColorModel (BI_ColorGrayscale, 1) , bilevelHeight, bilevelWidth, outputResolution, outputResolution ) ; // clear BI_CC* pOutputRow = outputlmage. Image () ; for (int j = 0; j < outputlmage.Height () ; j++) { BU_ClearLine (pOutputRow, outputlmage.Width ( ) ) ; pOutputRow += outputlmage. RowSize() ; } } // convert dot image to RLE RLE_Dot rleDot; for (int i = 0; i < dotlmage.Height () ; i++) { int const whiteRun = BU_GetBitRun ( dotlmage . Image (i) , o, dotlmage.Width () , 0 // white ); int blackRun; if (whiteRun == dotlmage. idth () ) - 11 - blackRun = 0 ; } else { blackRun = BU_GetBitRun ( dotlmage.Image (i) , whiteRun, dotlmage.Width () , 1 // black ); } rleDot.push_back(RLE_DotLine (whiteRun, blackRun) ) ; } // dither contone input image to bi-level output image BI_CC const* pl age = mputlmage. Image () ; BI_CC const* pRow = plmage; BI_CC const* pDither = ditherMatrix. Image () ; BI_CC const* pDitherRow = pDither; BI_CC const* pDither2 = ditherMatrix2. Image () ; BI_CC const* pDitherRow2 = pDither2; int ditherRow = 0; for (int row = 0; row < mputlmage.Height () ; row++) { for (int dotRow = 0; dotRow < dotsPerPixel; dotRow++) { int const globalDotRow = (row * dotsPerPixel) + dotRow; BI_CC const* pPixel = pRow; BI_CC const* pDitherPixel = pDitherRow; BI_CC const* pDitherPixel2 = pDitherRow2; int ditherCol = 0; for (int col = 0; col < inputlmage.WidthO; col++) { int const vRaw = *pPixel++; int const vDotGain = lutDσtGainfvRaw] ; for (int dotCol = 0; dotCol < dotsPerPixel; dotCol++) { int vRawDot = vRaw; int const tO = *pDitherPixel; int const tl = tO; //*pDitherPixel2; int const globalDotCol = (col * dotsPerPixel) + dotCol; 12- // interpolate intensities in overlap region and dither // one or the other or both if { '.bFixedlnterp ss globalDotCol < overlapstart) { int const t = tO; if ((vDotGain == 255) || (vDotGain >= t SS vDotGain != 0) ) if ( IbSkipLHS) { PutDot ( subdotsPerDot, rleDot, globalDotRow, globalDotCol, 0, outputlmage ); } } else if (!bFixedlnterp SS overlapEnd < globalDotCol) { int const t = (overlapSize == 0) ? tO : tl; if ( (vDotGain == 255 ) | | (vDotGain >= t SS vDotGain != 0) ) if (IbSkipRHS) { PutDot subdotsPerDot, rleDot, globalDotRo , globalDotCol, misregFactor, outputlmage ); -13- } } else { Hf 1 // account for stretch or shrink if ( !bFixedlnterp) { double const misregDots = MisregDots (misregFactor) ; double const newOverlapSize = overlapSize + misregDots; double const overlapScale = newOverlapSize / overlapSize; vRawDot = (int)BU_Round(vRawDot * overlapScale) if (vRawDot > 255) vRawDot = 255; //MergeScale (overlapScale, vRawDot, fO, fl); #endif #if 1 // compute interpolation factors double fO, fl; if (bFixedlnterp) { fO = fixedFO; fl = fixedFl; } else { // compute overlap index int const overlaplndex = globalDotCol - overlapStart; // obtain misregistration LUTs BI_LUT lutv; BI_LUT lutO; BI LUT lutl; ObtainMisregistrationTransferFunction ■14- dotsPerPixel, subdotsPerDot, dotlmage, pDotImageName, pRefDotlmageName, overlapSize, overlaplndex, misregFactor, ditherMatrix, lutv, lutO, lutl ) ; // retrieve interpolation factors fO = (double)lutO [vRawDot] / 255; fl = (double) lutl [vRawDot] / 255; if (globalDotCol > overlapCenter) BU_Swap(fO, fl); // adjust intensity for attenuation vRawDot = lutv[vRawDot] ; #endif // diagnostics //printf ("f0=%5.11f fl=%5.11f (%5.11f) vRaw=%d v=%d\n", // fO, fl, fO + fl, vRaw, vRawDot) ; // interpolate dither with jitter int vd = 0; int vOd = 0; int vld = 0; if ( (vRawDot == 255) | | (vRawDot >= tO SS vRawDot != 0) ) vd = 1; double const rr = (double) rand () / RAND MAX; if (vd ss rr < fO) { vOd = 1; - 15 - if ( IbSkipLHS) { PutDot ( subdotsPerDot, rleDot, globalDotRow, globalDotCol, 0, outputlmage ); if (vd SS (1.0 - rr) <= fl) { vld = 1; if ( IbSkipRHS) { PutDot ( subdotsPerDot, rleDot, globalDotRow, globalDotCol, misregFactor, outputlmage ); #if 0 if (globalDotRow == 864) { printf ("%ld %ld %ld (%3d %3d %3d &3d) vd, vOd, vld, vRawDot, vO, vl, vO + vl) if (vOd + vld < vd) printf ("?"), • if (vOd + vld > vd) printf ("#" ) ; printf ("\n") ; } #endif - 16 - pDitherPixel++; pDitherPixel2++; ditherCol++; if (ditherCol >= ditherMatrix.Width() ) { pDitherPixel = pDitherRow; pDitherPixel2 = pDitherRow2; ditherCol = 0; } ) } pDitherRow += ditherMatrix. RowSize ( ) ; pDitherRow2 += ditherMatrix2.RowSize ( ) ; ditherRow++; if (ditherRow >= ditherMatrix. Height ( ) ) { pDitherRow = pDither; pDitherRow2 = pDither2 ; ditherRow = 0; } } pRow += mputlmage . RowSize () / } } static void ChangeFileSuf ix ( char const* pPath, char const* pSuffix, char const* pExt, char path[_MAX_PATH] ) { char drive [_MAX_DRIVE] ; char dir[_MAX_DIR] ; char fname [_MAX_FNAME] ; char ext [_MAX_EXT] ; _splitpath (pPath, drive, dir, fname, ext) ; strcat (fname, pSuffix) ; _makepath(path, drive, dir, fname, pExt) ; } - 17 - static void LogTransferFunction(char const* pType, double const intensity!], int const v) { printf ("%s: %03d : %5.11f (%5.11f)\n", pType, v, intensity[v] , v - intensity[v] ) ; } static void ComputeMisregistrationTransferFunction ( int dotsPerPixel, int subdotsPerDot, BI_Image consts dotlmage, char const* pDotlmageName, double const fO, double const fl, int const misregFactor, BI_Image consts ditherMatrix, BI_LUTS lutv, BI_LUTS lutO, BI_LUTS lutl ) { // create test image BI_Image testlmage; testlmage. Initialise ( BI_ColorModel(BI_ColorGrayscale) , ditherMatri .Height ( ) , ditherMatrix.Width () ); // build identity transfer function BI_LUT identityLut; for (int v = 0; v < 256; v++) identityLut [v] = v; // create output image BI_Image outputlmage; // compute intensity for each gray level double intensity[512] ; int vLast; •18- or (v = 0; v < 512; v++) ( // compute extended interpolation factors double fOx, fix; int vx; if (v <= 255) { VX = V," fOx = £0; fix = fl; } else { vx = 255; double const fScale = (double)v / 255.0; fOx = f0 * fScale; fix = fl * fScale; } // set test image to next intensity testlmage = BI_Color ( (BI_CC)vx) ; // dither test image to bi-level output Dither ( testlmage, identityLut, dotsPerPixel, subdotsPerDot, dotlmage, pDotlmageName, pDotlmageName, 0, 0, // no explicit overlap misregFactor, ditherMatrix, outputlmage, 72, // output resolution false, // don't retain output image false, // don't skip LHS false, // don't skip RHS true, // fixed interpolation fOx, fix ); -19- // determine intensity of dithered bi-level output long nDots = 0; BI_CC const* pRow = outputlmage. Image () ; for (int row = 0; row < outputlmage.Height () ; row++) { nDots += BU_CountBits (pRow, 0, outputlmage.Width ()) ; pRow += outputlmage.RowSize () ; } intensity[v] = 255 * (double)nDots / outputlmage . ixelCount () ; //LogTransferFunction("misreg", intensity, v) ; vLast = v; if (intensity[v] >= 255) break; } LogTransferFunction("misreg", intensity, 1) ; LogTransferFunction("misreg", intensity, vLast) ; // create LUTs for (int x = 0; x < 256; x++) ( double d = -1; for (v = 0; v <= vLast; v++) { double const d2 = BU_Abs (intensity[v] - x) ; if (d < 0 || d2 < d) { d = d2; if (v <= 255) { lutv[x] = v; int const kO = (int) BU_Round (f0 * 255); lut0[x] = (BI_CC)BU_Min(k0, 255); int const kl = (int) BU_Round(f 1 * 255); lutl[x] = (BI_CC)BU_Min(kl, 255); } else { lutv[x] = 255; int const kO = (int)BU_Round(f 0 * v) ; lut0[x] = (BI_CC)BU_Min(k0, 255); int const kl = (int) BU_Round(fl * v) ; lutl[x] = (BI_CC)BU_Min(kl, 255); if (kO > 255 | | kl > 255) { ■20- f printf (stderr, "k0=%d kl=%d (x=%d v=%d f0=%5.11f fl=%5.11f\n", kO, kl, x, v, fO, fl); static void SimplifyFraction(intS n, ints d) { for (int i = n; i > 1 s& n > 1; -i) ( if ((d % i) == 0) { if ( (n % i) == 0) { n /= i; d /= i; } } } static void Obtaih isregistrationTransferFunction ( int dotsPerPixel, int subdotsPerDot, BI_Image consts dotlmage, char const* pDotlmageName, char const* pRefDotlmageName, int const overlapSize, int const rawOverlapIndex, // 0 .. overlapSize-1 int const misregFactor, BI_Image consts ditherMatrix, BI_LUT& lutv, BI_LUTS lutO, BI LOTS lutl { - 21 - // normalize overlap index int overlaplndex = rawOverlapIndex; if (overlaplndex >= ((overlapSize + 1) / 2)) overlaplndex = (overlapSize - 1) - overlaplndex; char lutvName [_MAX_PATH] char lutOName[_MAX_PATH] char lutlName[_MAX_PATH] char suffix[_MAX_FNAME]; int interpNu = overlaplndex + 1; int interpDenom = overlapSize + 1; SimplifyFraction (interpNum, interpDenom) ; sprintf (suffix, "_%03d_%02d_%02d", BU_Abs (misregFactor) , interpNum, interpDenom) ; ChangeFileSuffix (pRefDotlmageName, suffix, ".amp", lutvName); sprintf (suffix, "_%03d_%02d_%02d_0", BU_Abs (misregFactor) , interpNum, interpDenom) ; ChangeFileSuffix (pRefDotlmageName, suffix, ".amp", lutOName); sprintf {suffix, "_%03d_%02d_%02d_l", BU_Abs (misregFactor) , interpNum, interpDenom) ; ChangeFileSuffi (pRefDotlmageName, suffix, ".amp", lutlName); try ( BU_File lutvFile (lutvName, _0_BINARY | _0_RDONLY) ; lutv.Load(lutvFile) ; BU_File lutOFile (lutOName, _0_BINARY | _0_KDONLY) ; lutO. oad (lutOFile) ; BU_File lutlFile (lutlName, _0_BINARY I _0_RDONLY) ; lutl.Load (lutlFile) ; } catch (...) { // if using a reference dot image, LUTs must already exist if (strcmp (pDotlmageName, pRefDotlmageName) != 0) { fprintf (stderr, "can't load %s or %s or %s\n", lutvName, lutOName, lutlName) ; exit(l) ; } - 22 - // determine interpolation factors double fl = (double) interpNum / interpDenom; double fO = 1. 0 - fl; ComputeMisregistrationTransferFunction ( dotsPerPixel, subdotsPerDot, dotlmage, pDotlmageName, fO, fl, BU_Abs (misregFactor) , ditherMatrix, lutv, lutO, lutl ); BU_File lutvFile (lutvName, _0_BINARY | _0_WRONLY | _0_CREAT) ; lutv.Save (lutvFile) ; BU_File lutOFile (lutOName, _0_BINARY | _0_WRONLY | _0_CREAT) ; lutO.Save(lutOFile); BU_File lutlFile (lutlName, _0_BINARY | _0_WRONLY | _0_CREAT) ; lutl.Save (lutlFile) ; } static void ComputeDotGainTransferFunction ( int dotsPerPixel, int subdotsPerDot, BI_Image consts dotlmage, char const* pDotlmageName, BI_Image consts ditherMatrix, BI_UTS lutDotGain ) { // create test image BI_Image testlmage; testlmage. Initialise ( BI_ColorModel (BI_ColorGrayscale) , ditherMatrix. Height ( ) , •23- ditherMatrix-Width () ); // build identity transfer function BI_LUT identityTransferFunction; for (int v = 0; v < 256; v++) identityTransferFunction [v] = v; // create output image BI_Image outputlmage; // compute intensity for each gray level double intensity [256] ; for (v = 0; v < 256; v++) { // set test image to next intensity testlmage = BIjolor ( (BI_CC) v) ; // dither test image to bi-level output Dither ( testlmage, identityTransferFunction, dotsPerPixel, subdotsPerDot, dotlmage, pDotlmageName, pDotlmageName, 0, 0, // no overlap 0, // no misregistration ditherMatrix, outputlmage, 72, // output resolution false, // don't retain output image false, // don't skip LHS false // don't skip RHS ) ; // determine intensity of dithered bi-level output long nDots = 0; BI_CC const* pRow = outputlmage. Image () ; for (int row = 0; row < outputlmage .Height () ; row++) { nDots += BU_CountBits (pRow, 0, outputlmage.WidthO); pRow += outputlmage. RowSize () ; -24- } intensity[v] = 255 * (double)nDots / outputlmage . PixelCount () ; //LogTransferFunctionO'dot gain", intensity, v) ; } LogTransferFunctionO'dot gain", intensity, 1) ; LogTransferFunctionO'dot gain", intensity, 255); // create LUT for (int x = 0; x < 256; x++) { double d = -1; for (v = 0; v < 256; v++) { double const d2 = BU_Abs (intensity [v] - x) ; if (d < 0 I I d2 < d) { d = d2; lutDotGain [x] = v; } } static void ObtainDotGainTransferFunction ( int dotsPerPixel, int subdotsPerDot, BI_Image consts dotlmage, char const* pDotlmageName, char const* pRefDotlmageName, BI_Image consts ditherMatrix, BI_LUT& lutDotGain ) { char lutName [_MAX_PATH] ; ChangeFileSuffix(pRefDotImageName, "", ".amp", lutName); try { BU_File lutFile (lutName, _0_BINARY I _0_RD0NLY) ; lutDotGain. Load(lutFile) ; } catch (...) { - 25 - // if using a reference dot image, LUT must already exist if (strcm (pDotlmageName, pRefDotlmageName) != 0 ) { fprintf (stderr, "can' t load %s\n" , lutName) ; exit (1) ; } ComputeDotGainTransferFunction ( dotsPerPixel, subdotsPerDot, dotlmage, pDotlmageName, ditherMatrix, lutDotGain ); BU_File lutFile (lutName, _0_BINARY | _0_WR0NLY | _0_CREAT) ; lutDotGain.Save (lutFile) ; } } static void SegmentDither (int argc, char* argv[] ) { // parse arguments if (argc != 12) Usage () ; char const* plnputlmageName = argv[l]; int const dotsPerPixel = atoi (argv[2] ) ; int const subdotsPerDot = atoi (argv[3] ) ; char const* pDotlmageName = argv[4]; char const* pRefDotlmageName = argv[5] ; int const overlapCenter = atoi (argv[6] ) ; int const overlapSize = atoi (argv[7] ) ; int const misregFactor = atoi (argv[8] ) ; int const misregSubdots = MisregSubdots (misregFactor, subdotsPerDot); char const* pDitherMatrixName = argv[9]; char const* pOutputlmageNa e = argv[10]; int const outputResolution = atoi (argv[ll] ) ; // open input image BI_Image input Image; BI_LoadImage (inputlmage, plnputlmageName) ; CHECK_ARGUMENT ( inputlmage . ColorModel () ! = BI_ColorModel (BI_ColorGrayscale) ) ; -26- BI_Invert (inputlmage) ; // max is black BI_TIFFSetMinIsBlack (false) ; // max is black // check arguments CHECK_ARGUMENT (dotsPerPixel < 1) ; CHECK_ARGUMENT (dotsPerPixel > 16); CHECK_ARGUMENT (subdotsPerDot < 1); CHECK_ARGUMENT (subdotsPerDot > 32); CHECK_ARGUMENT (overlapCenter < 1); CHECK_ARGUMENT (overlapCenter >= inputlmage.WidthO * dotsPerPixel); CHECK_ARGUMENT (overlapSize < 0); CHECK_ARGUMENT (misregSubdots < -subdotsPerDot / 2) ; CHECK_ARGUMENT (misregSubdots > subdotsPerDot / 2); CHECK ARGUMENT (outputResolution <= 0) ; // diagnostics printf ("misregSubdots=%d\n", misregSubdots) ; // open dot image BI_Image dotlmage; BI_LoadImage (dotlmage, pDotlmageName) ; CHECK_ARGUMENT (dotlmage. ColorModel () != BI_ColorModel (BI_ColorGrayscale, D); CHECK_ARGUMENT (dotlmage. Height 0 < subdotsPerDot); CHECK_ARGUMENT (dotlmage. Width () < subdotsPerDot); CHECK_ARGUMENT (dotlmage . Height ( ) ! = dotlmage .Width ( ) ) ; int const dotOverlap = dotlmage. Width( ) - subdotsPerDot; CHECK_ARGUMENT( (dotOverlap % 2) != 0) ; // open dither matrix BI_Image ditherMatrix; BI_LoadImage (ditherMatrix, pDitherMatrixName) ; CHECK_ARGUMENT (ditherMatri . ColorModel ( ) ! = BI_ColorModel (BI_ColorGrayscale, 8) ) ; CHECK_ARGUMENT (ditherMatrix. Height () < 16) ; CHECK_ARGUMENT (ditherMatrix. idth () < 16); // create output image BI_Image outputlmage; // obtain dot gain transfer function for particular dot shape BI_LUT lutDotGain; ObtainDotGainTransferFunction ( dotsPerPixel, - 27 - subdotsPerDot, dotlmage, pDotlmageName, pRefDotlmageName, ditherMatrix, lutDotGain ); // dither input to bi-level output Dither ( inputlmage, lutDotGain, dotsPerPixel, subdotsPerDot, dotlmage, pDotlmageName, pRefDotlmageName, overlapCenter, overlapSize, misregFactor, ditherMatrix, outputlmage, outputResolution, false, // don't retain output image false, // don't skip LHS false // don't skip RHS ); BI_SaveImage (outputlmage, pOutputlmageName) ; // dither input to bi-level output (LHS only) BI_Image outputlmageLHS; Dither ( inputlmage, lutDotGain, dotsPerPixel, subdotsPerDot, dotlmage, pDotlmageName, pRefDotlmageName, overlapCenter, overlapSize, misregFactor, ditherMatrix, - 28 - outputlmageLHS, outputResolution, false, // don't retain output image false, // don't skip LHS true // skip RHS ) ; BI_SaveImage (outputImageLHS, "OutLHS . tif" ) ; // dither input to bi-level output (RHS only) BI_Image outputlmageRHS; Dither ( inputlmage, lutDotGain, dotsPerPixel, subdotsPerDot, dotlmage, pDotlmageName, pRefDotlmageName, overlapCenter, overlapSize, misregFactor, ditherMatrix, outputlmageRHS, outputResolution, false, // don't retain output image true, // skip LHS false // don't skip RHS ) ; BI_SaveImage (outputlmageRHS, "OutRHS . tif") ; // dither input to bi-level output (no interp) BI_Image outputlmageNoInterp; Dither ( inputlmage, lutDotGain, dotsPerPixel, subdotsPerDot, dotlmage, pDotlmageName, pRefDotlmageName, ove 1apCenter, overlapSize, misregFactor, -29- ditherMatrix, outputlmageNoInterp, outputResolution, false, // don't retain output image false, // skip LHS false, // don't skip RHS true, // fixed interp 0, // fO 0 // fl ); BI_SaveImage (outputlmageNoInterp, "OutNoInterp.tif" } void main (int argc, char* argv[]) { try { SegmentDither (argc, argv) , } catch (BU_Error error) { error. Print () ; } exit (0) ;

Claims: - 30 - I CLAIM: 1. In an ink ejection print head comprising a plurality of overlapping print head segments, wherein the spatial relationship between adjacent segments is variable with time, a method for controlling the firing of nozzles within the overlapped segments comprising the steps of: (a) deteimining a measure of the overlap between adjacent print head segments; (b) creating a halftoning pattern for the nozzles in the region of overlap of the overlapping segments; and (c) adjusting said halftoning pattern as a function of said measure in the overlapping regions of said print head segments to reduce artifacts produced by the overlapping of said print head segments. 2. A method for controlling the firing of nozzles as claimed in claim 1 wherein said step of determining a measure of the overlap between adjacent print head segments includes measuring the temperature of the print head segment. 3. A method for controlling the firing of nozzles as claimed in claim 1 wherein said step of determining a measure of the overlap between adjacent print head segments includes measuring the relative displacement of said overlapping segments. 4. A method for controlling the firing of nozzles as claimed in claim 2 wherein said step of creating a halftoning pattern for the nozzles in the region of overlap of the overlapping segments includes employing a dither matrix with an interpolation function. 5. A method for controlling the firing of nozzles as claimed in claim 4 wherein said step of adjusting said halftoning pattern is such that V A +V B is greater than V where V A and V B are the respective independent dither matrix values of the two adjacent segments and V is the continuous tone value to be represented. 6. A method for controlling the firing of nozzles as claimed in claim 5 further including the step of adjusting the firing of nozzles in adjacent segments such that corresponding nozzles of respective segments never both fire. 7. A method for controlling the firing of nozzles as claimed in claim 5 wherein said further step includes the step of using the inverse of the dither matrix for alternating segments. 8. A method for controlling the firing of nozzles as claimed in claim 5 wherein said further step includes the step of assigning the output dot to one or the other nozzle stochastically according to a probability given by a current interpolation factor of said interpolation function. 9. A method as claimed in claim 3 further including the step of ensuring that corresponding nozzles of adjacent overlapping segments never both produce an output. 10. An ink ejection print head system comprising: aplurality of spaced apart spatially overlapping print head segments; at least one means for measurement of the degree of overlap between adjacent print head segments; means for providing a halftoning of a continuous tone image and means for adjusting said halftoning means in a region of overlap between adjacent print head segments to reduce artifacts between said adjacent segments. 11. An ink ejection print head system as claimed in claim 10 wherein said at least one means for measurement of the degree of overlap between adjacent print head segments includes a means for measuring the temperature of said adjacent print head segments. 12. An ink ejection print head system as claimed in claim 10 wherein said at least one means of measurement of the degree of overlap between adjacent print head segments includes a means for measuring the relative displacement of said adjacent print head segments. 13. An ink ejection print head system as claimed in claim 11 wherein said means for pro iding the half toning of a continuous tone image includes a dither matrix and said means for adjusting said halftoning means includes a summation means having two inputs, one input being the output of said dither matrix and said other input being an overlap signal derived from said at least one means for measurement of the degree of overlap between adjacent print head segments. - 31 - 14. An ink ejection print head system as claimed in claim 13 further including a comparator means for comparing the output of said summation means and a continuous tone data input , the output of said comparator means being the halftone data for corresponding nozzles of adjacent print head segments. 15. An ink ejection print head system as claimed in claim 11 wherein said means for adjusting said half toning means in a region of overlap between adjacent print head segments includes means for inverting the dither matrix for alternate segments. 16. An ink ejection print head system as claimed in claim 13 further including a means for subtracting the output of said summation means from a continuous tone data input signal to produce a halftone data value for driving the nozzles of adjacent print head segments. 17. An Inkjet ejector print head system comprising: a plurality of spaced apart spatially overlapping print head segments; at least one means for measurement of the degree of overlap between adjacent print head segments; means for providing a halftoning of a continuous tone image and means for adjusting said halftoning means in a region of overlap between adjacent print head segments to reduce artifacts between said adjacent segments wherein said means for providing a halftoning of a continuous tone image and said means for adjusting said halftoning means in a region of overlap between adjacent print head segments to reduce artifacts between said adjacent segments includes a programmable digital computer programmed with an algorithm, said algorithm generating a function providing a dispersed dot stochastic dithering reproduction of continuous tone pixel values such that corresponding nozzles of adjacent segments are never both producing a dot at the same time and the desired output value is less than the sum of the two input dither matrix values of adjacent segments. 18. An ink ejection print head system as claimed in Claim 17 wherein said at least one means for measurement of the degree of overlap between adjacent print head segments includes a means for measuring the temperature of said adjacent print head, segments. 19. An ink ejection print head system as claimed in Claim 17 wherein said at least one means of measurement of the degree of overlap between adjacent print head segments includes a means for measuring the relative displacement of said adjacent print head segments.

Inventors: LAPSTON PAUL, SILVERBROOK KIA, LAPSTON, PAUL, SILVERBROOK, KIA
Applicants: LAPSTON PAUL, SILVERBROOK KIA, SILVERBROOK RES PTY LTD, LAPSTON, PAUL, SILVERBROOK RESEARCH PTY LTD, SILVERBROOK, KIA
Application year: 2000
Main classification: B41J2
IPC codes: B41J2