1. Field of the Invention
The present invention relates to an image processing apparatus, a printing apparatus, and an image processing method, and particularly, to a technology which generates print data by executing gradation lowering processing for multi-valued print data of each of divided images obtained by dividing an image into plural sections to reduce complementarities between the plural divided images.
2. Description of the Related Art
As an example of an apparatus for performing a print operation using a print head equipped with a plurality of print elements, there is conventionally known an inkjet printing apparatus using a print head provided with plural ink ejection openings. Among them, the most general serial type inkjet printing apparatus is designed to perform printing by repeating a main scan of making a print head scan a print medium and a conveying operation of conveying a printing medium in a direction intersecting with the main scan direction. Since such a serial type inkjet printing apparatus can be manufactured in a relatively small size and at a low cost, it has been widely prevalent for personal use.
In such a printing apparatus, a size and a formation position of dots formed by ink may vary due to a variation in a diameter of ejection opening and a variation in an ejection direction, thereby uneven density occurs in the printed image. Particularly, in the aforementioned serial type inkjet printing apparatus, the uneven density due to the variation in the ejection opening diameter or the like appears as stripe like density unevenness in a printed image, which possibly deteriorate a quality of the printed image.
As the configuration for overcoming this problem, a so-called multi-pass printing system is known. In the multi-pass printing, all pixels which the print head can print by one time of a main scan are distributed to plural times of the scans between which a conveying operation is performed and different ejection openings are associated with each of the plural times of the scans to perform printing. Thereby, the variations in ejection characteristics in the plurality of the ejection openings are dispersed into the plural times of the scans for completing the image, enabling the uneven density or the like to be indistinctive.
However, under recent situations where a higher-quality printing is required in the multi-pass printing system as described above, a density change or uneven density due to a shift of a print position (registration) per scan has been newly seen as a problem. The shift of the print position per the scan is caused by fluctuations in distance between the print medium and the ejection opening surface (distance from a sheet), fluctuations in a conveying amount of the print medium and the like, which appears as a shift between planes to be printed in respective scans (or nozzle lines). Therefore, a method of generating print data in the multi-pass print has been required in which even if the print position shift is generated between the planes, the image quality is not remarkably deteriorated due to the print position shift. In the present specification, regardless of fluctuations in any print condition, even if the print position shift between the planes is generated due to the fluctuation, resistance properties to the extent that the density change or the uneven density due to the print position shift is difficult to be generated are called “robustness”.
Japanese Patent Laid-Open No. 2000-103088 describes a method of reducing the uneven density by increasing the robustness. This patent document has paid attention on a fact that the uneven density or the density change in the printed image due to variations in the aforementioned various print conditions including the print position shift between the planes is caused by a fact that print data distributed to each of plural times of scans are completely complementary with each other. The print data generation for each of the plural times of the scans is usually performed by using a mask corresponding to each of the plural times of the scans, and these masks are complementary with each other. Japanese Patent Laid-Open No. 2000-103088 describes an example where image data are divided at a state of the multi-valued data before the gradation lowering processing is executed to the multi-valued data, and the gradation lowering processing is executed for respective divided multi-valued data separately. In addition, Japanese Patent Laid-Open No. 2000-103088 describes that the aforementioned complementary relation is reduced, thereby not generating so large a density change even if the plural planes are shifted with each other.
Multi-valued image data received from a host computer 2001 are subject to various kinds of image processing (2004 to 2006), and thereafter, a multi value SMS section 2007 generates data for a first print head and data for a second print head based on the data that has been subjected to the various kinds of image processing. Specially the same multi-valued image data to which the image processing has been executed are prepared as the data for the first print head and the data for the second print head. In a first data conversion section 2008 and a second data conversion section 2009, conversion processing is executed using respective distribution coefficients. For example, a distribution coefficient of 0.55 is used to the data for the first print head and a distribution coefficient of 0.45 is used to the data for the second print head to execute the conversion processing. In consequence, the content of binarization processing to be executed later can be made different between the data for the first print head and the data for the second print head. Then, overlaps of dots by the first print head and dots by the second print head finally formed can be generated in a certain ratio. It should be noted that Japanese Patent Laid-Open NO. 2000-103088 describes, in addition to an example where the distribution coefficient varies between the data for the first print head and the data for the second print head, an example where an error diffusion matrix used in error diffusion processing as binarization processing or threshold values in the error diffusion matrix varies.
The multi-valued data converted as above are transferred to a first binarization processing section 2010 and a second binarization processing section 2011. In the first binarization processing section 2010 and the second binarization processing section 2011, the binarization processing is executed by an error diffusion method using an error diffusion matrix and threshold values, and the binarized image data are stored respectively in a first band memory 2012 and in a second band memory 2013. Thereafter, the first and second print heads eject ink according to the binary data stored in the respective band memories to perform printing.
According to the above configuration, even if the respective planes associated with the first and second heads are shifted from each other by one pixel, overlapped dots printed with two print heads newly increase but there exists overlapped dots separated from each other. Accordingly, in an area having a certain level of extent, the coverage of dots to a white area does not change so much and thus the change in image density is not drawn. More specifically, basically the complementarities or exclusiveness is removed in dot formation with the different scans or the different print heads to produce overlapped dots at a certain rate. Thereby, even if the print position shift occurs due to a fluctuation of scan speed of the carriage, a fluctuation of distance between a print medium and an ejection opening surface (distance from a sheet), a fluctuation of conveying amount, and the like, the degree of the change in image density and the degree of the density unevenness can be decreased.
The two print heads perform printing based upon image data contained in an area sized corresponding to the ejection opening arrangement width “d” of the print head among image data 200 in a first main scan. At this time, image data 201 which the print head 207 actually prints have a density value obtained by multiplying a density value of an individual pixel in the image data 200 by the aforementioned distribution coefficient (for example. 0.55). Next, the print medium is conveyed by a distance for generating the shift of the scan area of d/2 described above in a direction intersecting with the main scan direction and thereafter, the second main scan is performed by the print head 208. Image data 202 to be printed in a second main scan also have a density value obtained by multiplying the density value of the individual pixel data in the image data 200 by the aforementioned distribution coefficient (for example. 0.45). Upon paying attention on the scan area where the first main scan and the second main scan overlap, the printing is performed twice on this main scan area based upon the image data of the density value reduced correspondingly to the above distribution coefficients, resultantly conserving or realizing the density value of the original image data. Further, the third main scan and the fourth main scan are repeated by the two print heads in such a manner as to perform the conveying operation in between, thus printing an image of all the image data 200.
Incidentally in the print data generation in Japanese Patent Laid-Open No. 2000-103088, the error diffusion process is used as the gradation lowering processing as described above. The error diffusion process expresses the density of the image by changing density of dots to be formed and diffuses the error generated at the time of executing the gradation lowering processing based upon a comparison between a density value for each pixel and a threshold value to pixels in a predetermined ratio in a main scan direction and in a sub scan direction. In the error diffusion process, dots are arranged at relatively randomly and the density is expressed by the density of dots. Therefore, occurrence of moiré is not required to be considered and it is possible to realize both the gradation properties and the high resolution. As a result, disperse properties in the arrangements of the dots printed by one time of the main scan are enhanced.
In addition, by distributing the multi-valued data at a stage of the multi-valued data as described above, the images printed by the plural times of the scans result in having the reduced complementary relation with each other. Therefore, even if the print position shift occurs due to deterioration of the accuracy in the scan or the like, an impact caused by the print position shift is reduced, that is, robustness are improved and the image density does not change largely. In consequence, a uniform image in which the uneven density is reduced can be printed.
However, the method described in Japanese Patent Laid-Open No. 2000-103088 is, as described above, configured so that the multi-valued image data corresponding to a given area (for example, data corresponding to one band as the print area which is printed by one time of the scan) are distributed to plural times of the scans and the gradation lowering processing is executed to the distributed individual multi-valued print data separately. Therefore, for example, an error generated at the time of executing the gradation lowering processing to the image data 201 shown in
In addition, since the gradation lowering processing is executed to each of the distributed multi-valued data separately, there exists a problem that the dispersion properties of the dots are not guaranteed in the boundary 209 between the scan areas and the dots are recognized as the stripe like density unevenness. More specifically, since the dot arrangements are also not guaranteed between the scan areas, namely since the continuity of the dot arrangements is not guaranteed between the scan areas, there exists a problem that the dispersion properties of the dots in the boundary between the scan areas is damaged.
The present invention provides an image processing apparatus, a printing apparatus, and an image processing method in which multi-valued print data are divided into plural image data at a stage of the multi-valued print data and uneven density in the boundary between print areas due to an error generated at the time of executing gradation lowering processing to each divided image can be reduced.
In a first aspect of the present invention, there is provided an image processing apparatus that generates image data for printing an image on a predetermined area of a print medium by performing M (M is equal to or greater than 2) times of scan of a print head to the predetermined area, said apparatus comprising: multi-valued print data generation means for generating multi-valued print data for each of the M times of scan, based on the image data; gradation lowering means for executing gradation lowering processing to the generated multi-valued print data for each of the M times of scan; and storage means for storing information generated in the gradation lowering processing, wherein, regarding K-th to (K+N)-th multi-valued print data (N is equal to or smaller than M) generated for the M times of scan, the information generated in the gradation lowering processing for the K-th multi-valued print data is used for the gradation lowering processing for at least one of (K+1)-th to (K+N)-th multi-valued print data.
In a second aspect of the present invention, there is provided a printing apparatus that performs printing based on print data used for printing an image on a predetermined area of a print medium by performing M (M is equal to or greater than 2) times of scan of a print head to the predetermined area, said apparatus comprising: multi-valued print data generation means for generating multi-valued print data for each of the M times of scan, based on the image data; gradation lowering means for executing gradation lowering processing to the generated multi-valued print data for each of the M times of scan; and storage means for storing information generated in the gradation lowering processing, wherein, regarding K-th to (K+N)-th multi-valued print data (N is equal to or smaller than M) generated for the M times of scan, the information generated in the gradation lowering processing for the K-th multi-valued print data is used for the gradation lowering processing for at least one of (K+1)-th to (K+N)-th multi-valued print data.
In a third aspect of the present invention, there is provided an image processing method for generating image data for printing an image on a predetermined area of a print medium by performing M (M is equal to or greater than 2) times of scan of a print head to the predetermined area, said method comprising: a multi-valued print data generation step of generating multi-valued print data for each of the M times of scan, based on the image data; a gradation lowering step of executing gradation lowering processing to the generated multi-valued print data for each of the M times of scan; and
a storage step of storing information generated in the gradation lowering processing, wherein, regarding K-th to (K+N)-th multi-valued print data (N is equal to or smaller than M) generated for the M times of scan, the information generated in the gradation lowering processing for the K-th multi-valued print data is used for the gradation lowering processing for at least one of (K+1)-th to (K+N)-th multi-valued print data.
According to the above configuration, the error generated at the time of executing the gradation lowering processing to the multi-valued print data of one scan is used for the multi-valued print data of the other scan, thereby making it possible to print an image with a high quality in which the uneven density or the stripe like density unevenness is reduced.
Further features of the present invention will become apparent from the following description of exemplary embodiments (with reference to the attached drawings).
Hereinafter, embodiments of the present invention will be in detail explained with reference to the drawings.
The print head 105 includes print heads of black (K), cyan (C), magenta (M) and yellow (Y) which are located in a main scan direction shown in the figure and plurality of ejection openings are arranged in a sub scan direction in the print heads of the respective colors.
The present embodiment relates to print data generation for a multi-pass printing for completing printing of a predetermined area by two times of scan (hereinafter, also called pass) in the aforementioned printing apparatus, and hereinafter, will be explained.
As described above, the scans to the area of a width “d” and the conveying of the print medium corresponding to a width of d/2 in between are repeated to perform printing of the area of the width “d” of each image data by twice of the scans.
For example, as shown in
A gradation lowering processing section 504 executes gradation lowering processing for the multi-valued print data generated by the multi-valued print data generation section 503. The gradation lowering processing section 504 stores an error generated upon executing the gradation lowering processing to the multi-valued print data in an information storage section 505 and uses the error upon executing the gradation lowering processing for multi-valued print data of a printing operation ahead by one print operation (one scan). In this way, the information regarding processing executed by the gradation lowering processing section 504 is stored in the information storage section 505 and is read from the information storage section 505 when the gradation lowering processing section 504 executes the gradation lowering processing. The binary data obtained by executing the gradation lowering processing to the multi-valued print data are stored in a print buffer 506, and ink is ejected from a print head 507 based upon the binary data by each corresponding scan for printing. As shown in
In the present embodiment, as the gradation lowering processing, an error diffusion process for executing binarization processing with the processing bit number of eight bits is used.
In
In the following description, the gradation lowering processing when an object pixel exists at the lower end in the area of the multi-valued print data 403 (last line of the multi-valued print image data 403) will be explained with reference to
The gradation lowering processing section 504 inputs a density value In of the object pixel in the multi-valued print data 403 generated at the multi-valued print data generation section 503 (S601). Next, an accumulation error value Em from peripheral pixels to the object pixel is added to the input density value In to calculate a corrected density value CrtIn=In+Em (S602). In addition, the quantization processing for comparing the corrected density value CrtIn with a threshold value Th is executed (S603). Here, when the corrected density value is larger than the threshold value (CrtIn>Th), the dot is set as ON (output value is “1”), and when the corrected density value is equal to or smaller than the threshold value (CrtIn≦Th), the dot is set as OFF (output value is “0”). In a case where the dot is set as ON, an error Err generated at the object pixel is calculated by Expression Err=CrtIn−255, and in a case where the dot is set as OFF, the error Err generated at the object pixel is calculated by Expression Err=CrtIn−0 (S604).
The error thus generated is distributed to peripheral non-processing pixels in the weighting shown in
ExtErr=Err1+Err2
Err1=Err(x−1)×4÷14
Err2=Err(x)×5÷14
Here, Err(x−1) shows an error distributed from the pixel (X−1) in the top left side of the information storage pixel 1001 (x), and Err (x) shows an error distributed from the pixel (x) above by one pixel. The gradation lowering processing to the lower end area in the divided image 403 ends by the above processing (S608).
As described above, the error data stored in the information storage section 505 is used in regard to the multi-valued print data corresponding to the next scan. Therefore, the information storage section 505 stores the error corresponding to a predetermined area (in the present embodiment, the error corresponding to the lower end area) for the next scan.
Next, a case of using the error data obtained as described above for the gradation lowering processing to the multi-valued print data 404 will be explained. The explanation is made with respect to the processing shown in
Processing performed for the multi-valued print data 404 at step S602 will be explained. As shown in
At step S606, a determination on whether or not the error is stored is made.
As explained above, according to the present embodiment, the error generated at the time of executing the gradation lowering processing to the multi-valued print data is stored and the error is used at the time of executing the gradation lowering processing to the multi-valued print data relating to the next scan. In this case, the pixel for the distribution of the stored error and the pixel to which the error is applied are the same pixels in image data before being divided at a multi value SMS section 2007. Therefore, the error is received and delivered between the multi-valued print data per the scan unit to conserve the density and as a result, the uneven density or the stripe like density unevenness is reduced, making it possible to obtain a printed image with a high quality.
The present embodiment relates to an example of applying the error generated at the time of executing the gradation lowering processing to the multi-valued print data to the multi-valued print data after two scans are performed. That is, for example, as seen also from
In addition, in the present embodiment, an area for which the gradation lowering processing is executed is set to be data (“d” pixels) corresponding to one scan and successive data (“α” pixels). Therefore, for example, continuity of dot arrangements of respective areas printed with the multi-valued print data 401 and the multi-valued print data 403 shown in
In more detail, by comparing the present embodiment with the above first embodiment, the area for the error to be diffused is the same in view of the image area to be completed between both the embodiments, but in a case of the first embodiment, the area where the error is diffused is a lower half of the area (404 in
In a case of thus diffusing the error to the other area (405) through the boundary between the scan areas, the gradation lowering processing to the other area (405) is resultantly executed discontinuously to the area (403) which has diffused the error to the other area. As a result, the continuity of the dot arrangements printed finally is possibly damaged. On the other hand, in the present embodiment, as described above, the area for the gradation lowering processing is defined as an area wider than the area to be printed by each scan, thus preventing the above problem in advance.
As described above, according to the present embodiment, the gradation lowering processing is executed to the area larger in the sub scan direction than the area printed by the print head, and the error calculated by executing the gradation lowering processing to the lower end area in the area printed by a main scan is stored. Therefore, the error to be stored in the information storage area is the error calculated after receiving an influence of error propagation from the area lower than the information storage area. In addition, this error is used between multi-valued print data in which the areas printed by the main scan are in contact with each other. Therefore, the density is stored without damages of continuity of the dot arrangements between the main scans having the boundary in between and connection of the dots between the main scans is made smooth. Thus in the present embodiment, for example, a memory is required for storing the error for distributing the error corresponding to the multi-valued print data 1102 to the multi-valued print data 1104 in the duration of distributing the information storage area 1201 corresponding to the multi-valued print data 1103 in
The present embodiment takes a multi-pass print of four-pass as an example where an error generated at the time of executing gradation lowering processing to the multi-valued print data is stored in the same way as in the first embodiment. Specially the stored error is divided to be used for the multi-valued print data after one scan and the multi-valued print data after two scans in respective predetermined ratios (⅓ to the multi-valued print data after one scan and ⅔ to the multi-valued print data after two scans). It should be noted that the printing operation, the processing direction of the error diffusion process and the error diffusion matrix are the same as those in the aforementioned first embodiment.
The following will in detail explain the processing of storing errors for multi-valued print data 1305 in regard to the fifth scan and for multi-valued print data 1306 in regard to the sixth scan, and an example of using these stored errors for the multi-valued print data 1307 in regard to the seventh scan.
As shown in
As described above, the error stored in the information storage section 505 is divided and applied in the aforementioned ratio to the multi-valued print data relating to the next scan and the multi-valued print data relating to the scan after two scans. Therefore, the information storage section 505 is provided with a memory area for retaining data corresponding to a plurality of lines. For example, the information storage section 505 is provided with an area for storing the data 1401, 1402 and 1403. As another example, the information storage section 505 is provided with an area for storing the data 1401A, 1401B, 1402A, 1402B and 1403. It should be noted that when assigning of memory areas in the information storage section 505, used memory areas may be assigned and used for storing newly generated data. Therefore, the assigning of memory areas is not limited to that according to the present embodiment.
Next, processing executed at step S602 to the multi-valued data 1307 will be explained referring to
In addition, in a case of performing many times of the scans on the same print area as in the case of the present embodiment, when the stored error is used only for one multi-valued print data, the storage quantity of the corresponding main scan possibly largely changes. As a result, a ratio of the print quantity of each main scan printing the same position of the image differs only in the error application area, which may be possibly recognized as the uneven streak upon performing a print by plural times of the main scans. In the present embodiment, by dividing the stored error in a predetermined ratio for use, the density can be stored without largely changing the ratio of the print quantity of each main scan printing the same position of the image, and the output image with a high quality in which the uneven density or the uneven streak is reduced can be obtained.
In a fourth embodiment of the present invention, a case in which dither processing is performed as the gradation lowering processing will be explained. Since configuration according to the fourth embodiment is similar to the configuration of the first embodiment (
First, as shown in
Here, most left end and lowest end position in the multi-valued print data 403 corresponds to the pixel 1702. Since lower side pixel 1801 by one pixel form the pixel 1702 corresponds to a starting pixel in the multi-valued print data 405, the position information (13) in the dither matrix as the dither information is stored in the information storage section 505. In addition, as the dither information, information on pixel position and information on dither matrix (M1) are also stored in the memory. When executing processing for the multi-valued print data 405, the dither information is read from the memory for processing. As shown in
In the present embodiment, processing for data used for second printing operation and data used for fourth printing operation is executed similarly by using the dither matrix M2 shown in
The above described fourth embodiment shows the example in which the dither matrix shown in
As another example, the dither information may be applied for executing processing for the multi-valued print data of next printing operation. For example, as shown in
As described above, the dither information is stored in the multi-pass printing and the application pixel of the stored dither information is determined in accordance with the boundary ensuring the dispersion property of dots. The boundary ensuring may be determined based on the combination including print medium, ink, temperature, humidity, and other parameters.
As described above, the four embodiments are explained, but the present invention is not limited to these embodiments and can be carried out in various modifications within the scope of the invention. For example, the bit number of the gradation lowering processing may be any number and the processing direction of the gradation lowering processing may be any processing direction. The error diffusion matrix described above is shown simply as an example, and as long as the above embodiment is satisfied, the dispersion range of the error diffusion matrix and the distribution ratio of the error are not limited to specific values. In the present embodiment, the error diffusion process is explained as an example, but any gradation lowering processing method may be used as long as it is the gradation lowering processing generating the error. In the present embodiment, there is shown an example of storing the error dispersed in the information storage area as explained in
The following is obtained by generalizing each embodiment described above. The image processing apparatus generating print data for printing an image in a predetermined area by M times (M≧2) of scans of the print head on the predetermined area of the print medium generates multi-valued print data of each of M times of the scans based upon the data of the image. The gradation lowering processing is executed to the generated multi-valued print data by each of the M times of the scans and the errors generated by the gradation lowering processing are stored. Attention is paid on from K-th multi-valued print data to (K+N)-th multi-valued print data among the data generated by M times of the scans (N≦M). At this time the error generated at the time of executing the gradation lowering processing to the K-th multi-valued print data is used for executing the gradation lowering processing to at least one of (K+1)-th multi-valued print data to (K+N)-th multi-valued print data.
The first and second embodiments explained above relate to the construction of executing the gradation lowering processing according to the present invention in the printing apparatus, but the image processing including this processing may be executed by the host device such as a personal computer. Thus the printing apparatus or the host device constitutes the image processing apparatus according to the embodiment of the present invention.
Aspects of the present invention can also be realized by a computer of a system or apparatus (or devices such as a CPU or MPU) that reads out and executes a program recorded on a memory device to perform the functions of the above-described embodiment(s), and by a method, the steps of which are performed by a computer of a system or apparatus by, for example, reading out and executing a program recorded on a memory device to perform the functions of the above-described embodiment(s). For this purpose, the program is provided to the computer for example via a network or from a recording medium of various types serving as the memory device (e.g., computer-readable medium).
While the present invention has been described with reference to exemplary embodiments, it is to be understood that the invention is not limited to the disclosed exemplary embodiments. The scope of the following claims is to be accorded the broadest interpretation so as to encompass all such modifications and equivalent structures and functions.
This application claims the benefit of Japanese Patent Application No. 2009-018729, filed Jan. 29, 2009, which is hereby incorporated by reference herein in its entirety.
Number | Date | Country | Kind |
---|---|---|---|
2009-018729 (PAT. | Jan 2009 | JP | national |