This application claims priority to Japanese Patent Application No. 2014-003001 filed on Jan. 10, 2014. The entire disclosure of Japanese Patent Application No. 2014-003001 is hereby incorporated herein by reference.
1. Technical Field
The present invention relates to a print control apparatus, program, and image processing method.
2. Related Art
A print apparatus (for example, a printer) for discharging ink onto a medium (for example, paper) and printing an image on the basis of printed image data is known. A print control apparatus for controlling this print apparatus generates printed image data on the basis of halftone processing, and sends the printed image data to the print apparatus. Should a highly regular pattern be used for this halftone processing, then a landing deviation can be easily recognized as a color unevenness when the image is read with, for example, a scanner.
Therefore, for example, JP-A-2005-125658 (patent document 1) discloses preventing even slight displacement of dots and preventing any major impact on image quality by causing the dots to be generated with deviation of the distribution of dots in a direction different from a direction in which a print head moves.
In a case where the dots have been generated in the manner described above, however, though the landing unevenness with respect to the direction of movement of the head can be addressed, it may not be possible to address other forms of unevenness. Moreover, it may not be possible to handle landing unevenness for every color of ink, as well. Therefore, the color unevenness is likely to be easily recognizable.
An advantage of the present invention is therefore to make the color unevenness less readily visible.
A principal invention for achieving the aforementioned objective is a print control apparatus configured to generate first printed image data indicative of positions of first dots formed by a first ink and second printed image data indicative of positions of second dots formed by a second ink, and configured to cause a print apparatus to discharge the first ink and the second ink to form the first dots and the second dots on a medium, wherein the first printed image data and the second printed image data are generated such that a preferential direction in which the first dots are generated in the first printed image data and a preferential direction in which the second dots are generated in the second printed image data are different from each other.
Other features of the present invention shall be made more readily apparent by the disclosures in the specification and accompanying drawings.
Referring now to the attached drawings which form a part of this original disclosure:
===Overview===
At least the following matters shall be made more readily apparent by the disclosures in the present description and drawings.
A print control apparatus configured to generate first printed image data indicative of positions of first dots formed by a first ink and second printed image data indicative of positions of second dots formed by a second ink, and configured to cause a print apparatus to discharge the first ink and the second ink to form the first dots and the second dots on a medium shall be made more readily apparent, wherein the first printed image data and the second printed image data are generated such that a preferential direction in which the first dots are generated in the first printed image data and a preferential direction in which the second dots are generated in the second printed image data are different from each other.
According to such a print control apparatus, the visibility of the printed image can be improved and unevenness (moiré) can be reduced.
In the print control apparatus, preferably, the print apparatus is capable of discharging cyan ink, magenta ink, yellow ink, and black ink, and preferential directions in which cyan dots, magenta dots, yellow dots, and black dots are generated are each different.
According to such a print control apparatus, any landing unevenness for every ink color can be suppressed.
In the print control apparatus, preferably, the print apparatus is provided with a nozzle column in which nozzles for discharging the ink are arranged side by side in a predetermined direction, and a movement mechanism for causing the nozzle column and the medium to move in a relative fashion in a direction perpendicular to the predetermined direction, and the preferential direction in which the black dots are generated is the predetermined direction or the direction perpendicular to the predetermined direction.
According to such a print control apparatus, ruled lines can be easier to see.
In the print control apparatus, preferably, the preferential directions in which the cyan dots and the magenta dots are generated are directions with which the cyan dots and the magenta dots do not overlap in a region of lower gradation value than a predetermined gradation.
According to such a print control apparatus, any decrease in the color-forming performance due to overlapping of the cyan and magenta can be suppressed.
In the print control apparatus, preferably, the preferential direction in which the yellow dots are generated is between the preferential direction in which the cyan dots are generated and the preferential direction in which the magenta dots are generated.
According to such a print control apparatus, it is possible to improve the visibility of yellow, which is difficult to see.
A program shall also be made more readily apparent for causing a print control apparatus that is configured to generate first printed image data indicative of positions of first dots formed by a first ink and second printed image data indicative of positions of second dots formed by a second ink and that is configured to cause a print apparatus to discharge the first ink and the second ink to form the first dots and the second dots on a medium, to execute processing for generating the first printed image data and the second printed image data such that a preferential direction in which the first dots are generated in the first printed image data and a preferential direction in which the second dots are generated in the second printed image data are different from each other.
An image processing method for generating first printed image data indicative of positions of first dots formed on a medium by a first ink discharged by a print apparatus and second printed image data indicative of positions of second dots formed on the medium by a second ink discharged by the print apparatus shall be made more readily apparent, wherein the first printed image data and the second printed image data are generated such that a preferential direction in which the first dots are generated in the first printed image data and a preferential direction in which the second dots are generated in the second printed image data are different from each other.
First, the meaning of terminology used when describing the present embodiment shall be described.
A “printed image” refers to an image that is printed on paper. A printed image of an inkjet printer is constituted of countless dots formed on the paper.
“Image data” refers to data that is indicative of a two-dimensional image. In the embodiments described below, this includes image data for an RGB color space, image data for a CMYK color space, and the like. The image data of each of the colors of a CMYK color space is in some instances called “C image data”, “M image data”, “Y image data”, and “K image data”, respectively. Image data also includes image data of 256 gradations, image data of four gradations, and the like. In a case where a printer forms dots at four gradations (large dot, medium dot, small dot, no dot), then image data of four gradations in a CMYK color space would be indicative of the state of formation of the dots constituting the printed image, and therefore image data of four gradations in a CMYK color space is in particular also called “printed image data” in some instances. A “pixel” refers to the smallest unit constituting an image. An image is configured when these pixels are arranged in two dimensions. The meaning is principally for pixels in image data.
“Pixel data” refers to data that is indicative of gradation values for pixels. Image data would be constituted of a large amount of pixel data. Pixel data is in some instances also called “gradation values for pixels”.
The meaning of generic terms such as “image data” or “pixel” shall be interpreted as appropriately, along not only the description above but also the common knowledge that is typical in the art.
<Configuration of the Print System>
The computer CP is communicably connected to the printer 1. In order to cause the printer 1 to print an image, the computer CP transmits printed image data corresponding to that image to the printer 1. A printer drive is installed on the computer CP. The printer driver is a program for causing a display apparatus (not shown) of the computer CP to display a user interface (UI), causing the computer CP to implement a color conversion process or the like, and so forth. This printer drive is stored on a recording medium (a computer-readable recording medium) such as a flexible disk FD or a CD-ROM. Alternatively, the printer driver could also be downloaded onto the computer CP via the Internet. This program is constituted of a code for implementing a variety of functions. The processing by the printer driver shall be described below.
A “print apparatus” signifies an apparatus for printing an image onto a medium; an applicable example is the printer 1. A “print control apparatus” signifies an apparatus for controlling a print apparatus; an applicable example is the computer CP onto which the printer driver has been installed.
The printer 1 has a conveyance unit 20, a carriage unit 30, a head unit 40, a detector group 50, and a controller 60.
The conveyance unit 20 is for feeding the medium (here, a paper S) to a position at which printing is possible, and conveying the paper S by a predetermined conveyance amount in a direction of conveyance during printing.
The carriage unit 30 is for moving the head 41 in a direction (hereinafter called a direction of movement) intersecting with the direction of conveyance, and has a carriage 31.
The head unit 40 is for discharging the ink onto the paper S, and has a head 41. The head 41 is moved in the direction of movement by the carriage 31. Provided to a lower surface of the head 41 are a plurality of nozzles, which are ink discharge sections.
The detector group 50 is constituted of a plurality of detectors for monitoring the status of the printer 1. Results of detection by these detectors are outputted to the controller 60.
The controller 60 performs overall control of the printer 1. The controller 60 has an interface section 61, a CPU 62, and a memory 63. The interface section 61 transfers data to and from the computer CP. The memory 63 is for securing a region for storing the programs of the CPU 62, a work region, and the like, and has a storage element such as a RAM or EEPROM. The CPU 62 controls each of the units in accordance with a computer program stored in the memory 63.
In the printer 1 of such description, the controller 60 repeatedly executes: a dot formation process for intermittently discharging ink from the head 41 while also moving the carriage 31 in the direction of movement, thus forming dots on the paper; and a conveyance process for conveying the paper S in the direction of conveyance. As a result, the dots are formed at positions different from the positions of the dots formed by the preceding dot formation process, thus causing a two-dimensional image to be printed on the paper S.
<Overview of the Processing of the Printer Driver>
The aforementioned print process is initiated by which the printed image data is transmitted from the computer CP connected to the printer 1. The printed image data is created by the processing by the printer driver. The processing by the printer driver shall now be described below, with reference to
Image data before color conversion processing is image data of 256 gradations in an RGB color space. The printer driver, where necessary, performs resolution conversion processing prior to the color conversion processing so that the resolution of the input image data fits the print resolution. For example, in a case where the resolution of the image data received from an application program is 600 dpi×600 dpi and the print resolution is 1200 dpi×600 dpi, then the 600 dpi×600 dpi is converted to 1200 dpi×600 dpi.
Next, the printer driver performs color conversion processing for converting the image data in an RGB color space into image data in a CMYK color space, which is the same color space as the ink colors. This color conversion processing is carried out by when the printer driver consults a table (a color conversion look-up table) in which gradation values of pixel data in an RGB color space and gradation values of pixel data in a CMYK color space are associated. The image data after color conversion processing is image data of 256 gradations in a CMYK color space.
Following the color conversion processing, the printer driver performs halftone processing for converting the image data of 256 gradations into image data of four gradations, which are the gradations that the printer is capable of forming. Dithering, y correction, error diffusion, or the like is utilized in the halftone processing. The image data after halftone processing will be printed image data indicative of the statuses of formation (presence or absence of a dot, size of the dot) of the dots constituting the printed image.
Following the halftone processing, the printer drive transmits the printed image data to the printer 1. When transmitting the printed image data to the printer 1, the printer driver may carry out rasterization processing for converting the order in which the pixel data of the printed image data is arranged, command addition processing for adding command data necessary for the control of the printer 1 to the printed image data, or the like, as necessary.
Having received the printed image data, the printer 1 discharges the ink from each of the nozzles of the head 41 and forms the dots in a pixel region on the paper S in accordance with the gradation values indicated by the pixel data of the printed image data. This makes it possible for the printer 1 to print the image indicated by the printed image data onto the paper S.
In the following description, the decision to form a dot at a given pixel by the halftone processing (the generation of pixel data indicative of the formation of a dot) is also discussed as being the generation of a dot. Also, the following description assumes that only the presence or absence of the formation of a dot is decided (i.e., assumes that halftone processing for converting to image data of two gradations is carried out), for the purpose of simplifying the description, but a case of conversion to image data of four gradations that also includes the size of the dots could also be carried out in a similar manner.
<Challenges in the Halftone Processing>
In a case where the halftone processing described above is carried out using, for example, a highly regular dither pattern, then landing deviation tends to be very visible in the form of a color unevenness. Also, the extent to which the landing deviation makes the color unevenness visible varies depending on the color of the ink. For this reason, there is the possibility that the image quality could decline for every color when, for example, scanning is performed sequentially in RBG in copying or the like.
Therefore, in the present embodiment, during the halftone processing, every color is made to have a different preferential direction for the generation of dots. This reduces the color unevenness (moiré).
On the Definition of the Preferential Direction for the Generation of Dots
As stated above, in the halftone processing, it would be possible to apply a technique such as dithering or error diffusion, but herein the description assumes that dithering is used. In dithering, the generation of the dots is decided by comparing, for every pixel, the gradation value of the image data with a threshold value that is set in a dither matrix.
In the example illustrated in
In the halftone processing (see
The significance of “generating the dots in a deviated state” shall be described herein.
For example, when the focus is on the dot a in
The example illustrated in
In
Therefore, the concept of “direction of deviation” shall be introduced in order to distinguish between the two states. A case in which dots have been generated in a denser state in the direction of movement (or in the direction of conveyance), for example, such as illustrated in
The case illustrated in
<On the Preferential Direction of Dot Generation in the Present Embodiment>
As stated above, in the present embodiment, the halftone processing involves causing the preferential direction for the generation of dots to be different for every color.
For example, for black, the preferential direction of dot generation is understood to be “0° (or 90°)”. The reason for having the preferential direction of black be “0° (or 90°)” is that the ruled lines are being taken into consideration. The ruled lines appear neatly when the ruled lines are formed with black in a case where the preferential direction of dot generation is “0° (or 90°)”.
For cyan and magenta, as well, the respective preferential directions are given the greatest possible angle. Herein, the preferential direction of dot generation for cyan is “30°”, and the preferential direction of dot generation for magenta is “60°”. So doing makes it possible to curb any deterioration of the color-producing performance, with no overlapping of the cyan and magenta dots, when the region is one of low gradation. Cyan and magenta may also have inverse preferential directions of dot generation.
For yellow, the preferential direction of dot generation is the angle between the preferential direction of dot generation for cyan and the preferential direction of dot generation for magenta. Herein, the preferential direction of dot generation for yellow is “45°”. This is because cyan and magenta are easily visible and yellow is less easily visible. Having the preferential direction of dot generation for yellow be the angle between the preferential direction of dot generation for cyan and the preferential direction of dot generation for magenta, as per the present embodiment, makes it possible to improve the visibility of yellow.
In this manner, in the present embodiment, the C image data, M image data Y image data, and K image data indicative of the dot formation positions for each of the inks are each generated by changing the preferential direction of dot generation for every ink color in CMYK. The inks are then discharged from the nozzles of each of the nozzle columns of the head 41 of the printer 1 on the basis of the C image data, M image data, Y image data, and K image data created in this manner.
So doing makes it possible to improve the visibility of the printed image and makes it possible to reduce unevenness (moiré).
<Method of Generating the Dither Matrix>
As described above, in the computer CP of the present embodiment, the dots are generated in a deviated state for every ink color in order to improve the visibility of the image printed by the printer 1. Such a distribution of dots can be obtained by consulting a special dither matrix in which the threshold values are not simply evenly set, as with a typical dither matrix, but rather the threshold values are set with a special method so that the dots are generated with deviation. Therefore, the processing for generating this dither matrix shall be described below.
When the dither matrix generation processing is initiated, first, a power spectrum is set in a two-dimensional frequency space (S200). As preparation for describing the content of this processing, first a technique for analyzing an image by using the two-dimensional Fourier transform shall be briefly described.
The two-dimensional Fourier transform of an image can be understood as being simply a two-dimensional extension of the one-dimensional Fourier transform, when considered as follows. For example, when the Fourier transform is applied to one-dimensional data that is converted over time, as with a voltage waveform or the like, then the original voltage waveform can be broken down into sine waves of various frequency components. Herein, the reason why the components obtained when the Fourier transform is carried out will be the components of every frequency is because with this data, the original voltage waveform changes with time. That is to say, the components obtained by applying the Fourier transform will be components having the reciprocal of the data intended to be converted, and therefore in a case where the Fourier transform is applied to data that changes over time, frequency components that have a dimension that is the reciprocal of time are obtained.
Similarly, in a case where the Fourier transform is applied to data that changes with distance, then the data is converted into components called wave numbers or spatial frequencies, which have a dimension that is the reciprocal of the distance. The components of the spatial frequencies thus obtained have the following properties. Namely, the more slowly the data being converted changes with distance, the greater the values of components having a small spatial frequency. Conversely, in a case where the Fourier transform is applied to data that changes rapidly with distance, then the values of components that have a large spatial frequency will be larger.
Herein, the data of the image can be regarded as being data that changes with distance in two direction (for example, the X-direction and the Y-direction). As such, the Fourier transform can be applied to this two-dimensional data with respect to the X-direction and the Y-direction each. With this two-dimensional Fourier transform, spatial frequency components in the X-direction are obtained for changes in the X-direction, and spatial frequency components in the Y-direction are obtained for changes in the Y-direction. The two-dimensional Fourier transform of an image thus can be regarded as being a procedure for applying the Fourier transform in two direction and obtaining the spatial frequency components in each of the directions. Applying the two-dimensional Fourier transform to an image then makes it possible to assess the periodicity of the image.
The data for the image illustrated in
As stated above, the image in
Herein, as has been described with reference to
On the basis of the above description, the processing in step S200 in
By contrast, with the dither matrix of the present embodiment, the dots are being generated with deviation. For example, in a case where the preferential direction of dot generation is “45°”, as per
Setting the power spectrum in this manner makes it possible to synthesize the dither matrix by later applying the inverse Fourier transform to this spectrum (S202). When the dots are generated while consulting the dither matrix thus synthesized, it becomes possible to generate the dots preferentially in a particular direction.
In this manner, having set the power spectrum corresponding to the preferential direction of dot generation and applying the Fourier transform to this spectrum makes it possible to produce a dither matrix for generating dots in the preferential direction.
The description above posts that the power spectrum is the spectrum that is obtained when the two-dimensional Fourier transform is applied. In the Fourier transform, the transformation uses a sine function and cosine function as basis functions. However, the functions that can be used as basis functions are not limited to a sine function and cosine function; recently, the so-called wavelet transform, in which a wavelet function is used as the basis function, has also been put to use. The description given above can be similarly applied to an instance where a wavelet transform is used. That it so say, a power spectrum obtained by a wavelet transform of a dither matrix is set, and an appropriate dither matrix is produced by applying the inverse wavelet transform thereto. When the dots are generated by consulting the dither matrix produced in this manner, it becomes possible to print a high-quality image, without comprising the image quality, even in a case where the positions of dot formation have been shifted somewhat.
As described above, in the present embodiment, the printed image data of each of the colors is generated with there being a difference created for the preferential direction of dot generation for every ink color (CMYK). This makes it possible to improve the visibility of the printed image and makes it possible to reduce any unevenness (moiré).
In the first embodiment, the dots were generated by consulting a dither matrix. However, the method of generating the dots is not limited to dithering. In the second embodiment, an example where error diffusion has been applied shall be described.
In typical error diffusion, the dots are generated evenly and uniformly, and therefore an error diffusion matrix such as is illustrated in
By contrast, when an error diffusion matrix such as is illustrated in
In this manner, changing the setting of the error diffusion matrix makes it possible to generate the dots with preference given to a particular direction. Accordingly, it suffices to set the error diffusion matrix so that the dots are generated in the preferential direction described above, for every ink color.
As described above, in a case where error diffusion is applied as the technique for generating the dots, too, the dots can be generated with deviation when an appropriate error diffusion matrix is used in this manner. Accordingly, changing the preferential direction of dot generation for every ink color makes it possible to improve the visibility of the printed image and makes it possible to reduce any unevenness (moiré).
The embodiments above are intended to facilitate understanding of the present invention, and are not to be construed as limiting the present invention. It shall be readily understood that the present invention can also be modified or improved without departing from the spirit thereof, and that the present invention encompasses equivalents thereof. In particular, the present invention also encompasses the embodiments described below.
<Regarding the Printer>
The printer 1 of the embodiments described above was a serial-type printer, but there is no limitation thereto, and the printer may be a printer of another format. For example, the printer may be a so-called line printer, which is a print apparatus with which a head (nozzle columns) longer than the paper width is fixed onto the conveyance path, and the ink is continuously discharged from the head to print onto the medium while the medium is being conveyed in the direction of conveyance.
<Regarding the Format of Discharge>
In the embodiments described above, the ink was discharged using piezoelectric elements (piezo elements). However, the format of discharging the ink is in no way limited thereto. Other formats may be used, e.g., a format where heat is used to generate bubbles inside the nozzles, or the like.
<Regarding the Print Control Apparatus>
In the embodiments described above, the halftone process was carried out by the printer driver of the computer CP, but there is no limitation thereto. For example, the printer may be capable of halftone processing. In such a case, a site (for example, a controller) at which the halftone processing is carried out in the printer would be applicable as a print control apparatus, and a site at which printing is carried out (the head unit, conveyance unit, or the like) would be applicable as a print apparatus.
<Regarding the Ink>
In the embodiments described above, four colors of ink were used—cyan, magenta, yellow, and black—but there is no limitation thereto. For example, four other colors of color ink (orange ink, red ink, or the like) may also be used. In such a case, too, it suffices for the preferential direction of dot generation to be defined for every color of ink.
In understanding the scope of the present invention, the term “comprising” and its derivatives, as used herein, are intended to be open ended terms that specify the presence of the stated features, elements, components, groups, integers, and/or steps, but do not exclude the presence of other unstated features, elements, components, groups, integers and/or steps. The foregoing also applies to words having similar meanings such as the terms, “including”, “having” and their derivatives. Also, the terms “part,” “section,” “portion,” “member” or “element” when used in the singular can have the dual meaning of a single part or a plurality of parts. Finally, terms of degree such as “substantially”, “about” and “approximately” as used herein mean a reasonable amount of deviation of the modified term such that the end result is not significantly changed. For example, these terms can be construed as including a deviation of at least ±5% of the modified term if this deviation would not negate the meaning of the word it modifies.
While only selected embodiments have been chosen to illustrate the present invention, it will be apparent to those skilled in the art from this disclosure that various changes and modifications can be made herein without departing from the scope of the invention as defined in the appended claims. Furthermore, the foregoing descriptions of the embodiments according to the present invention are provided for illustration only, and not for the purpose of limiting the invention as defined by the appended claims and their equivalents.
Number | Date | Country | Kind |
---|---|---|---|
2014-003001 | Jan 2014 | JP | national |