The present application claims priority from Japanese application P2005-201363A filed on Jul. 11, 2005 and P2005-208256A filed on Jul. 19, 2005, the contents of which are hereby incorporated by reference into this application.
1. Field of the Invention
The present invention relates to an image processing apparatus that inputs image data of a multi-tone image at a preset input resolution, converts the input image data to generate dot creation data, and creates dots according to the generated dot creation data on a printing medium at an output resolution of not lower than the preset input resolution.
2. Description of the Related Art
The printing resolution of printers and other printing apparatuses has been increasing year after year and often exceeds the resolution of images taken with digital cameras. In such cases, one pixel of image data to be printed corresponds to a set of multiple pixels as printing units. For example, when the resolution of an object image to be printed is 360 dpi×360 dpi and the printing resolution is 1440 dpi×720 dpi, one pixel of the image data corresponds to a set of 4×2 pixels in the printing apparatus.
In such cases, the tone value of each pixel requires multi-valuing according to the number and the positions of dots to be created in a group of 4×2 pixels. The simplest method applies the principle of area tone to each group of 4×2 pixels to express 9 different tones from the state of no dot creation in any pixel to the state of dot creation in all the pixels (density pattern method). The applicant of the invention has proposed a method that locally applies the systematic dither technique to the set of 4×2 pixels to enable the high-speed image processing while keeping the high picture quality by the systematic dither technique (see following Patent Document 1). This innovative method enables the extremely high-speed halftoning process and ensures the high picture quality equivalent to the picture quality attained by the conventional systematic dither method.
[Patent Document 1] International Publication WO 2004/086750A
Images including characters or letters generally require the sharper reproducibility at the edges of the characters, compared with natural images. The proposed technique has advantages in the processing speed and the resulting picture quality. The high reproducibility of the edges of the characters requires the high resolution of an input image. The high resolution of the input image, however, may cause undesirable extension of the total processing time by this proposed method, like the conventional methods.
The object of the invention is thus to enhance the processing speed when image data includes edges, such as characters and symbols.
In order to attain at least part of the above and the other related objects, the present invention is directed to an image processing apparatus that converts input image data representing a multi-tone image at a specific resolution and generates dot creation data for creation of dots on a printing medium.
The image processing apparatus includes: a first halftoning process module that correlates each of image pixels, which are arrayed in the image data at the specific resolution to constitute the multi-tone image, to a printing pixel group as a set of multiple printing pixels defined as printing units corresponding to the dots to be created on the printing medium, and converts image data of each image pixel to generate dot creation data representing a dot arrangement in the correlated printing pixel group; a second halftoning process module that collects every set of plural image pixels, which are close to one another, to one processing image pixel group and refers to a dot pattern to convert image data of the processing image pixel group and thereby generate dot creation data of the processing image pixel group, where the dot pattern specifies an array of dots for reproduction of an edge based on a combination of image data of the plural image pixels constituting the processing image pixel group; an identification module that identifies the presence or absence of an edge in each processing image pixel group; and a processing module that, upon identification of the absence of an edge in one processing image pixel group by the identification module, enters the processing image pixel group to the first halftoning process module to generate the dot creation data, and, upon identification of the presence of an edge in one processing image pixel group by the identification module, enters the processing image pixel group to the second halftoning process module to generate the dot creation data.
The image processing apparatus of the invention identifies whether an edge is present in each processing image pixel group. Upon identification of the absence of an edge, the image processing apparatus activates the first halftoning process module to convert the processing image pixel group into the dot creation data. Upon identification of the presence of an edge, on the other hand, the image processing apparatus activates the second halftoning process module to refer to the storage of the dot pattern representing an array of dots for reproduction of an edge and convert the processing image pixel group into the dot creation data.
The technique of the invention is not restricted to the image processing apparatus described above but may be actualized by a corresponding image processing method or computer program. The computer program may be recorded in any of diverse recording media including flexible disks, CD-ROMs, magneto optical disks, memory cards, and hard disks. The computer program may be embodied in the form of a data signal on a carrier wave.
One mode of carrying out the invention is described below in the following sequence as a preferred embodiment with reference to the accompanied drawings:
The printing apparatus 100 of the embodiment is a complex machine and has a scanner 110 on an upper portion thereof. The use of the scanner 110 enables the printing apparatus 100 to scan images and print the scanned images, regardless of connection with or disconnection from the computer 900. The printing apparatus 100 also has a memory card slot 120 on its front face to receive a memory card inserted therein. The printing apparatus 100 inputs images from a memory card inserted in the memory card slot 120 and prints the input images, regardless of connection with or disconnection from the computer 900.
The lower half of
The carriage 210 is movably held on a sliding shaft 280 that is arranged parallel to the axis of a platen 270. The carriage motor 220 rotates a drive belt 260 in response to a command from the control unit 150 to move the carriage 210 back and forth in the main scanning direction along the sliding shaft 280.
The paper feed motor 230 rotates the platen 270 to feed the printing medium S perpendicular to the axis of the platen 270. Namely the paper feed motor 230 shifts the carriage 210 relatively in the sub-scanning direction.
The ink cartridge 212 attached to the carriage 210 keeps therein 8 different inks, that is, cyan (C), magenta (M), yellow (Y), black (K), light cyan (lc), light magenta (lm), dark yellow (dy), and transparent (cr) (only 4 different inks are illustrated for the matter of convenience). Attachment of the ink cartridge 212 to the carriage 210 causes inks in the ink cartridge 212 to flow through respective ink conduits (not shown) and to be supplied to an ink head 211 provided on a lower face of the carriage 210. The printing apparatus 100 uses the 8 different inks in this embodiment but may have a reduced number of different inks with exclusion of some of light cyan, light magenta, dark yellow, and transparent inks. The transparent ink is mainly used in a white background area with no color inks ejected and printed. The transparent ink gives the similar gloss effect to those of the other color inks to the white background area.
The ink head 211 has 8 nozzle arrays that are arranged in the sub-scanning direction and correspond to the 8 different inks. Each nozzle array has 90 nozzles arranged at a fixed pitch, for example, 1/120 inch=0.21 mm. One main scan of the carriage 210 thus simultaneously forms maximum of 90 raster lines at specific intervals on the printing medium S. This interval is an integral multiple of a pitch between adjoining raster lines eventually formed on the printing medium S. Feeding the printing medium S in the sub-scanning direction by a fixed distance N/(D·k) after every main scan causes adjacent raster lines in the sub-scanning direction to be formed by different nozzles. Here N [nozzles] is a positive integer and represents the number of nozzles included in each nozzle array and arranged in the sub-scanning direction, k [dots] is an integer coprime to the positive integer N and represents a dot pitch between adjacent nozzles, and D [nozzles/inch] represents a nozzle density. Regardless of some variations in characteristic and pitch of the individual nozzles, this arrangement effectively prevents the appearance of banding caused by such variations and thereby ensures high-quality printing. This printing technique is called interlace printing.
The control unit 150 controls the ink head 211 to regulate the size of ejected ink droplets. Three variable size dots, that is, large-size dot, medium-size dot, and small-size dot, are accordingly created on the printing medium S.
Abrupt application of a negative voltage to the piezoelectric element PE in a division d1 of a solid-line voltage waveform increases the insufficiency of ink supply from the ink cartridge 212. The ink interface Me at the end of the nozzle Nz has a greater degree of inward concave in a state ‘a’, compared with the state A. Subsequent application of a positive voltage to the piezoelectric element PE in a division d3 contracts the ink conduit 68 to trigger ink injection. As shown in states B and C, a larger ink droplet is ejected from the ink interface Me having the moderate degree of inward concave (state A). As shown in states ‘b’ and ‘c’, a smaller ink droplet is ejected from the ink interface Me having the greater degree of inward concave (state ‘a’). In this manner, variable size ink droplets are ejected from the ink head 211.
With referring back to
The control unit 150 processes the input image data from the USB interface 130, the scanner 110, or the memory card slot 120 by a preset series of image processing and controls the printing mechanism to print an image expressed by the processed image data. In order to exert these functions, the control unit 150 includes a CPU 151, an SDRAM 152, a ROM 153, an EEPROM 154, an image processing unit 155, and a head control unit 156. The respective units are interconnected via a specific bus.
The ROM 153 stores a firmware as a control program for controlling the operations of the whole printing apparatus 100. The CPU 151 loads and executes this firmware on a predetermined work area of the SDRAM 152 on a power supply of the printing apparatus 100.
With referring back to
The image processing unit 155 is a custom LSI specialized in printing-related image processing functions and mainly includes a color conversion circuit 300, a halftoning circuit 400, and a head-driving data conversion circuit 500. The color conversion circuit 300 converts RGB data into CMYK data. The halftoning circuit 400 processes the CMYK data by a halftoning process. The head-driving data conversion circuit 500 converts the halftoning-processed data into a specific data format for actuating the ink head 211. The color conversion circuit 300 is equivalent to the ‘identification module’ and the ‘processing module’ of the invention. The halftoning circuit 400 is equivalent to the ‘first halftoning process module’ and the ‘second halftoning process module’ of the invention.
The image processing unit 155 has a register (not shown) to store various pieces of setting information required for image processing. The various pieces of setting information set through the user's operation of the computer 900 or the operation panel 140, for example, the resolution of object image data to be printed, the size of a printing medium, and an output resolution mode, are written into this register by the CPU 151. The image processing unit 155 executes the diverse series of image processing according to the various pieces of setting information written in the register.
The head control unit 156 obtains head driving data eventually generated by the image processing unit 155 from the head-driving data buffer HB of the SDRAM 152, and controls the paper feed motor 230 and the carriage motor 220 to eject ink droplets from the respective nozzles of the ink head 211 at adequate timings according to the obtained head driving data. Dots of the respective color inks are then created at adequate positions on the printing medium S to complete a color printed image.
The image processing unit 155 includes the color conversion circuit 300, the halftoning circuit 400, and the head-driving data conversion circuit 500 as mentioned above. The detailed structures of these circuits are sequentially described below.
C-1. Color Conversion Circuit
The color conversion circuit 300 includes a line input unit 310, a black/white edge processing unit 320, a color conversion unit 330, an ink amount correction unit 340, a print fringe prevention unit 350, a bit restriction unit 360, a transparent ink post-treatment unit 370, and an inner-block smoothing unit 380. These units shown in the upper half of
The respective main units are connected in series in the above sequence by three signal lines, a data line (data), a request line (req), and an acknowledge line (ack). Each of the main units uses these signal lines to send and receive a req signal and an ack signal for data transfer. A data sender unit sends a req signal to inform a data receiver unit of data transmission, simultaneously with actual transmission of data to the data receiver unit. The data receiver unit receives the req signal to be informed of data transmission, starts a data reading process, and returns an ack signal to inform the data sender unit of data reception. On completion of the data reading process, the data receiver unit inactivates the ack signal. This enables the data sender unit to confirm successful data transmission to the data receiver unit. The data sender unit then inactivates the req signal and prepares for transmission of next data.
The color conversion circuit 300 has six pass units from a first pass unit 390a to a sixth pass unit 390f that are arranged in series corresponding to the color conversion unit 330 to the inter-block smoothing unit 380 as the main units. Each of the six pass units 390a to 390f transfers the data received from the black-white edge processing unit 320 to the halftoning circuit 400, while transferring the various pieces of information received from the color conversion unit 330 to the inner-block smoothing unit 380.
Each of the pass units 390a to 390f receives a branch of the ack signal sent from a corresponding main unit to a previous main unit in the connection flow and inputs data from a previous pass unit. Each of the pass units 390a to 390f receives a branch of the ack signal sent from a subsequent main unit to the corresponding main unit in the connection flow and transfers data to a subsequent pass unit. Namely data is sequentially transmitted through the pass units 390a to 390f, synchronously with data transmission through the corresponding main units. This arrangement enables various data transferred through the respective pass units to be readily input into the corresponding main units and accordingly enhances the extensibility of the circuit structure. The use of these pass units ensures successful data transmission, even when the pass width between the adjacent main units in the connection flow is insufficient for the total volume of data to be transferred.
(C-1-1) Line Input Unit
With referring back to
(C-1-2) Black/White Edge Processing Unit
(C-1-2-1) Black/White Edge Detection Circuit
The black/white edge detection circuit 321 identifies whether input pixels constitute a black/white edge. According to a concrete procedure, the black/white edge detection circuit 321 sequentially extracts 2×2 pixels A, B, C, and D from image data of the first line and the second line input from the line input unit 310 and identifies whether the extracted 4 pixels constitute a black/white edge pattern. The black/white edge pattern consists of only white color (RGB=(255,255,255)) and black color (RGB=(0,0,0)) but is neither an all white pattern nor an all black pattern. The black/white edge detection circuit 321 sets a value ‘1’ to a black/white edge detection flag when the extracted 4 pixels constitute a black/white edge pattern, while setting a value ‘0’ to the black/white edge detection flag when the extracted 4 pixels do not constitute a black/white edge pattern. After identification of a black/white edge pattern, the black/white edge detection circuit 321 outputs the RGB data of the 4 pixels as the target of identification to both the averaging circuit 322 and the black/white edge encoding circuit 323. The setting of the black/white edge detection flag is also output to the black/white edge encoding circuit 323.
(C-1-2-2) Black/White Edge Encoding Circuit
The black/white edge encoding circuit 323 binarizes the data of a black/white edge pattern to generate encoded 5-bit data. According to a concrete procedure, when the value ‘1’ is set in the black/white edge detection flag input from the black/white edge detection circuit 321, the black/white edge encoding circuit 323 refers to the black/white edge table ET and converts the RGB data of the 4 pixels transferred from the black/white edge detection circuit 321 to generate 5-bit black/white edge data.
With referring back to
After conversion of the RGB data of every 4 pixels into 4-bit encoded data, the black/white edge encoding circuit 323 adds the setting of the black/white edge detection flag as an upper-most bit to each 4-bit encoded data and accordingly generates 5-bit black/white edge data. For example, when the 4-bit encoded data of 4 pixels is ‘0001’, the resulting 5-bit black/white edge data is ‘10001’. When the RGB data of 4 pixels do not constitute a black/white edge pattern, the resulting 5-bit data is ‘00000’. This 5-bit data is called dummy data for the purpose of discrimination from the black/white edge data.
The black/white edge encoding circuit 323 transfers the encoded 5-bit black/white edge data to the first pass unit 390a. The pass units 390a to 390f sequentially receive the transferred black/white edge data when 4 pixels as a processing target constitute a black/white edge pattern, while sequentially receiving the transferred dummy data when 4 pixels as a processing target do not constitute a black/white edge pattern.
(C-1-2-3) Averaging Circuit
The averaging circuit 322 averages the tone values of 4 pixels to reduce the resolution. More specifically the averaging circuit 322 averages the tone values of RGB data of every 4 pixels input from the black/white edge detection circuit 321 and thereby converts the image data having the resolution of 720 dpi×720 dpi into image data having the resolution of 360 dpi×360 dpi. The RGB data of any 4 pixels output from the black/white edge detection circuit 321 enters the averaging circuit 322, regardless of whether the RGB data constitutes a black/white edge pattern. The RGB data of 4 pixels constituting a black/white edge pattern is thus also averaged by the averaging circuit 322.
The tone values of every 4 pixels are averaged according to the following computation.
When 4 pixels A, B, C, and D have tone values expressed as:
A=(Ra,Ga,Ba)
B=(Rb,Gb,Bb)
C=(Rc,Gc,Bc)
D=(Rd,Gd,Bd)
tone values (R,G,B) of a new pixel after conversion is:
R=(Ra+Rb+Rc+Rd)/4
G=(Ga+Gb+Gc+Gd)/4
B=(Ba+Bb+Bc+Bd)/4
The division by 4 is readily performed by rightward bit shift of each value by 2 bits. The averaged RGB data having the resolution of 360 dpi×360 dpi is output as a tone value of a new 1×1 pixel to the selector circuit 324.
(C-1-2-4) Selector Circuit
The selector circuit 324 receives the RGB data of 360 dpi×360 dpi output from the averaging circuit 322 and the RGB data output from the line input unit 310. When the original image data input into the image processing unit 155 has a resolution of 720 dpi×720 dpi, the selector circuit 324 selects the RGB data input from the averaging circuit 322 and transfers the selected RGB data to the subsequent color conversion unit 330. When the original image data input into the image processing unit 155 has a resolution of 360 dpi×360 dpi, on the other hand, the selector circuit 324 selects the RGB data directly input from the line input unit 310 and transfers the selected RGB data to the subsequent color conversion unit 330. When image data of a printing object has a low input resolution of 360 dpi×360 dpi, it is impossible to process black/white edges at a higher resolution of 720 dpi×720 dpi. The black/white edge processing unit 320 thus directly transfers the RGB data input from the line input unit 310 as through data.
As described above, when the input image data from the line input unit 310 represents a black/white edge pattern, the black/white edge processing unit 320 outputs 5-bit black/white edge data having the high resolution of 720 dpi×720 dpi to the first pass unit 390a, while outputting averaged RGB data of 360 dpi×360 dpi obtained by averaging the tone values of the 4 pixels to the color conversion unit 330. When the input image data from the line input unit 310 is ordinary data other than a black-white edge pattern, on the other hand, the black/white edge processing unit 320 outputs 5-bit dummy data to the first pass unit 390a, while outputting averaged RGB data of 360 dpi×360 dpi obtained by averaging the tone values of the 4 pixels to the color conversion unit 330.
(C-1-3) Color Conversion Unit
(C-1-3-1) Conversion Circuit
The conversion circuit 331 refers to a color conversion table LUT stored in the SDRAM 152 and converts the RGB data input from the black/white edge processing unit 320 into CMYK data. The color conversion table LUT stores each color expressed by the RGB data format in correlation to a color expressed by a combination of 8 different inks C (cyan), M (magenta), Y (yellow), K (black), lc (light cyan), lm (light magenta), dy (dark yellow), and cy (transparent). The conversion circuit 331 refers to this color conversion table LUT and reads CMYK data corresponding to the RGB data input from the black/white edge processing unit 320 to implement the color conversion.
(C-1-3-2) Standard Edge Detection Circuit
The standard edge detection circuit 332 receives the RGB data of 2 pixels from the black/white edge processing unit 320, computes a slope (edge) of the 2 pixels in the horizontal direction, and expresses the slope as an intensity of 0 to 2 to generate 2-bit standard edge data. The standard edge data is significantly different from the black-white edge data.
According to a concrete procedure, the standard edge detection circuit 332 computes differences Rdiff, Gdiff, and Bdiff of the RGB tone values between 2 pixels in the horizontal direction as:
Rdiff=|R−Rp|
Gdiff=|G−Gp|
Bdiff=|B−Bp|
where R, G, and B represent RGB tone values of a target pixel as an object of edge detection, and Rp, Gp, and Bp represent RGB tone values of a left pixel located on the left of the target pixel.
The computed differences of the RGB tone values are weighted by:
Rdiff=Rdiff−(TR−TG)
Gdiff=Gdiff
Bdiff=Bdiff−(TB−TG)
where TR, TG, and TB denote preset threshold values: for example, TR=10, TG=8, and TB=14.
The maximum among the weighted differences Rdiff, Gdiff, and Bdiff is selected as a maximum difference DiffMax:
DiffMax=max(Rdiff, Gdiff, Bdiff)
When the maximum difference DiffMax is smaller than the threshold value TG, the standard edge detection circuit 332 identifies the absence of any edge and sets the value ‘0’ to the standard edge data. When the maximum difference DiffMax is greater than the threshold value TG but is smaller than the sum of the threshold value TG and a predetermined offset value (for example, 8), the standard edge detection circuit 332 identifies the presence of a weak edge and sets the value ‘1’ to the standard edge data. When the maximum difference DiffMax is greater than the sum of the threshold value TG and the offset values, the standard edge detection circuit 332 identifies the presence of a strong edge and sets the value ‘2’ to the standard edge data. When the value ‘1’ is set in the black/white detection flag input from the black/white edge processing unit 320, the value ‘2’ representing the presence of a strong edge is set to the standard edge data of the target pixel, regardless of the value of the maximum difference DiffMax. The standard edge detection circuit 332 outputs the generated standard edge data to the smoothing circuit 334 and to the second pass unit 390b. The standard edge data output to the second pass unit 390b is transferred to the inner-block smoothing unit 380.
(C-1-3-3) Noise Generation Circuit
The noise generation circuit 333 generates 1-bit noise data (random digit) representing either ‘0’ or ‘1’ at random. The noise generation circuit 333 generates two different noise data and outputs one noise data to the smoothing circuit 334 and the other noise data to the second pass unit 390b. The noise data output to the second pass unit 390b is transferred through the group of pass units to the inner-block smoothing unit 380.
(C-1-3-4) Smoothing Circuit
The smoothing circuit 334 smoothes the tone values of the CMYK data output from the conversion circuit 331, based on the standard edge data input from the standard edge detection circuit 332 and the noise data input from the noise generation circuit 333. A concrete procedure of the smoothing operation is given below.
The smoothing circuit 334 identifies the value of the input standard edge data and, when the standard edge data is equal to either 0 or 1, smoothes the C, M, Y, and K tone values of 2 pixels in the horizontal direction according to arithmetic expressions given as:
(1) when the standard edge data is equal to 0
C=(C+Cp×(SP0−1)+N×(SP0−1))/SP0
(2) when the standard edge data is equal to 1
C=(C+Cp×(SP1−1)+N×(SP1−1))/SP1
In the above arithmetic expressions, C represents the tone value of a target pixel as an object of the smoothing operation, Cp represents the tone value of a left pixel located on the left of the target pixel, SP0 and SP1 denote preset weighting parameters (for example, SP0=4 and SP1=2), and N denotes the value of noise data (either 0 or 1).
When the standard edge data is equal to 2, the smoothing circuit 334 identifies the presence of a strong edge in the target pixel and does not perform the smoothing operation. This arrangement effectively prevents a decrease in clarity of an output image. The smoothing circuit 334 outputs the smoothed CMYK data to the ink amount correction unit 340.
(C-1-4) Ink Amount Correction Unit
With referring back to
The ink amount correction unit 340 reads the correction data stored in the EEPROM 154 and corrects the tone values of the CMYK data based on the correction data. For example, when the amount of ink ejected from a cyan nozzle array is greater than the amounts of inks ejected from nozzle arrays of the other colors, the correction procedure corrects the tone value of cyan to be lower than the tone values of the other colors. This equalizes the amounts of inks ejected from the respective nozzle arrays.
For the enhanced accuracy of the correction, the ink amount correction unit 340 internally expands the input 8-bit data to 12-bit data, prior to the correction. Namely the correction is performed after expansion of the 256 tone values of the CMYK data to 4096 tone values. The expansion to 12-bit data is implemented by leftward bit shift of the input CMYK data by 4 bits. The ink amount correction unit 340 transfers the corrected 12-bit C, M, Y, and K data to the print fringe prevention unit 350.
(C-1-5) Print Fringe Prevention Unit
The print fringe prevention unit 350 receives the 12-bit C, M, Y, and K data transferred from the ink amount correction unit 340 and corrects the received CMYK data to prevent the occurrence of a print fringe. Each nozzle array on the ink head 211 is arranged at a preset nozzle pitch in the sub-scanning direction. The ink may, however, not be ejected perpendicularly from all the nozzles in a nozzle array, but the manufacturing error of nozzles may cause inclined ejection of ink from the nozzles. Such inclination may result in the appearance of a print fringe in the main scanning direction in a resulting output image printed on a printing medium. The manufacturing process of the printing apparatus 100 measures the inclination of nozzles and stores correction data for compensation of such inclination in the EEPROM 154.
The print fringe prevention unit 350 reads the correction data stored in the EEPROM 154 and corrects the tone values of the CMYK data based on the correction data. For example, when the input CMYK data represents a raster line causing a print fringe, the correction procedure enhances the tone values of the input CMYK data to increase the number of nozzles ejecting the ink. In another example, when the input CMYK data represents a raster line having an overlap of dots due to inclination of nozzles, on the other hand, the correction procedure reduces the tone values of the input CMYK data to decrease the number of nozzles ejecting the ink. This arrangement effectively prevents the occurrence of a print fringe. For the enhanced accuracy of the correction, the print fringe correction unit 350 corrects the CMYK expanded to the 12-bit data. The print fringe prevention unit 350 transfers the corrected 12-bit CMYK data to the bit restriction unit 360.
The ink amount correction unit 340 and the print fringe prevention unit 350 respectively read the correction data from the EEPROM 154. In one modified structure, the correction data may automatically be loaded from the EEPROM 154 to the SDRAM 152 on the power supply of the printing apparatus 100 and may be input respectively from the SDRAM 152 to the ink amount correction unit 340 and to the print fringe prevention unit 350. Such modification enables the higher-speed correction.
(C-1-6) Bit Restriction Unit
The bit restriction unit 360 receives the 12-bit CMYK data from the print fringe prevention unit 350 and contracts the input 12-bit data to 8-bit data for reduction of the data volume. A concrete procedure adds 4-bit noise to the input 12-bit CMYK data and cuts off the lower 4 bits among the 12 bits to generate 8-bit data. Another possible procedure may shift the input 12-bit CMYK data rightward by 4 bits and cut off the upper 4 bits. The addition of the noise reduces the possibility of continual generation of identical data and thus effectively prevents deterioration of the picture quality, compared with the conventional process of simply cutting off the lower 4 bits. In the structure of this embodiment, the noise is generated by an internal noise generation circuit built in the bit restriction unit 360. In one modified structure, the bit restriction unit 360 may receive the 4-bit noise from the third pass unit 390c as a branch of the noise data transferred from the color conversion unit 330. The bit restriction unit 360 reconverts the 12-bit CMYK data to 8-bit CMYK data and transfers the 8-bit CMYK data to the transparent ink post-treatment unit 370.
(C-1-7) Transparent Ink Post-Treatment Unit
The transparent ink post-treatment unit 370 receives the 8-bit CMYK data from the bit restriction unit 360 and corrects the cr (transparent ink) tone value of the input CYMK data to 0 to prevent ink ejection out of the printing medium S. The size information of the printing medium S is set in a register of the image processing unit 155 by the CPU 151. The transparent ink post-treatment unit 370 refers to the size information of the printing medium S set in the register and determines whether the position of dot creation specified by the currently input CMYK data is out of the printing medium S.
In rimless printing, the printing apparatus 100 ejects ink over a greater printing area than the printing medium S and disposes of the excessive ink outside the printing medium S to print an image over the whole surface of the printing medium S. The transparent ink does not include any pigment or dye and has a greater resin content than the other inks. The disposal of the transparent ink out of the printing medium S may cause adhesion of the resin on the surface of an ink exhaust absorbent (for example, sponge) and interfere with absorption of the other inks. The transparent ink post-treatment unit 370 sets the tone value of the transparent ink (cr) to 0 with regard to the printing area out of the printing medium S, thus preventing such interference.
(C-1-8) Inner-Block Smoothing Unit
The inner-block smoothing unit 380 receives CMYK data of adjacent 2 pixels from the transparent ink post-treatment unit 370, as well as 2-bit standard edge data and 1-bit noise data output from the color conversion unit 330 via the fifth pass unit 390e. The inner-block smoothing unit 380 smoothes the tone values of the adjacent 2 pixels input from the transparent ink post-treatment unit 370, based on the 2-bit standard edge data and the 1-bit noise data output from the color conversion unit 330. When the standard edge data between the adjacent 2 pixels is not greater than a preset value, for example, 0 or 1, the smoothing procedure sums up the CMYK data of the 2 pixels, adds the 1-bit noise data to the sum of the CMYK data, and divides the total by 2. Such calculation gives an identical tone value to the adjacent 2 pixels. When adjacent pixels have a low edge intensity, dot distribution of each pixel block in the 2×2 mode according to the ordinal number matrix may cause creation of dots in the adjacent pixels on the printing medium. This may lead to the poor picture quality. The procedure averages the tone values of adjacent pixels having a low edge intensity to give an identical tone value, prior to the halftoning process, in order to prevent creation of dots in the adjacent pixels and accordingly enhance the picture quality. In the configuration of this embodiment, the inner-block smoothing unit 380 utilizes the standard edge data and the noise data output from the color conversion unit 330 to smooth the tone values of the adjacent pixels. This arrangement effectively eliminates the overlapping generation of the standard edge data and the noise data by the inner-block smoothing unit 380.
The color conversion circuit 300 of the above construction outputs the 8-bit C, M, Y, and K data having the resolution of 360 dpi×360 dpi and the 5-bit black/white edge data having the resolution of 720 dpi×720 dpi to the halftoning circuit 400.
C-2. Halftoning Circuit
<Concept of Halftoning Process>
The halftoning process of this embodiment is described in comparison with the conventional systematic dither technique.
The encoding map is prepared according to the following procedure. Multiple 4×2 threshold value groups extracted from the global dither matrix of
The individual threshold value groups have different change profiles in the plot of
The above description is on the assumption that the type of dots created on the printing medium is fixed to a single dot type.
In this manner, the number of dot-on pixels in each pixel group with regard to the large-size dot, the medium-size dot, and the small-size dot (1 large-size dot, 2 medium-size dots, and 1 small-size dot in the illustrated example of
The correlation of the number of dot-on pixels in one pixel group with regard to the large-size dot, the medium-size dot, and the small-size dot to the tone value of image data in the pixel group is specifiable as in the case of creation of a single type dot described previously with reference to FIGS. 12(a) and 12(b). This correlation is expressible in the form of a quantization table QT shown in
The decoding process has been described previously in the case of creation of only a single dot type (see
As described above, the halftoning process of this embodiment readily encodes a given tone value of each target pixel to quantization data by simply referring to the quantization table QT based on the given tone value and a block number of a pixel group including the target pixel. The halftoning process then refers to the dot number tables of
<Detailed Structure of Halftoning Circuit>
With referring back to
The seventh pass unit 390g arranged before the data selector 420 is connected in series with the sixth pass unit 390f in the color conversion circuit 300. The encoder 410 is the main unit corresponding to the seventh pass unit 390g. For example, while the seventh pass unit 390g receives black/white edge data, the encoder 410 receives CMYK data representing an average of four pixels as the encode source of the black/white edge data. These data (black/white edge data and CMYK data) simultaneously enter the data selector 420.
(C-2-1) Encoder
The encoder 410 encodes 8-bit CMYK data received from the color conversion circuit 300 into 5-bit quantization data. The encoder 410 includes a block number identification circuit 411 and a quantization circuit 412 as shown in
(C-2-1-1) Block Number Identification Circuit
The block number identification circuit 411 identifies the block number of each pixel, which is expressed by the CMYK data input from the color conversion circuit 300, in the ordinal number matrix OM shown in
In the structure of this embodiment, CMYK data of 360 dpi×360 dpi input from the color conversion circuit 300 is printed at the output resolution of 720 dpi×720 dpi. The block number is accordingly identified in a 2×2 mode among the above 7 modes. The mode of the output resolution is set in a specific register of the image processing unit 155 by the CPU 151, prior to a start of the printing operation. The current mode of the output resolution is specified by referring to the setting in the register.
According to this block number identification method, for example, the encoder 410 identifies a first set of adjacent two pixels located on an upper left corner of the CMYK image data to have a block number ‘1’ and a subsequent set of adjacent two pixels on the right of the first set to have a block number ‘2’ as shown in
(C-2-1-2) Quantization Circuit
With referring back to
As shown in
As shown in
The thick solid-line polygonal curve of the block number N1 has quantization data ‘0’ in the tone value range of ‘0’ to ‘4’ and increases to ‘1’ in the tone value range of ‘5’ to ‘20’, to ‘2’ in the tone value range of ‘21’ to ‘42’, and to ‘3’ in the tone value range of ‘43’ to ‘69’. The increasing tone value of each pixel leads to this stepwise increase of the quantization data. The quantization data eventually increases to ‘15’. This quantizes the tone values of the respective pixels in the range of 0 to 255 to the 16 stages of 0 to 15.
The thick broken-line polygonal curve of the block number N2 and the thick one-dot chain-line polygonal curve of the block number N3 quantize the tone values of the respective pixels in the range of 0 to 255 to the 18 stages of 0 to 17. The thin solid-line polygonal curve of the block number N4 and the thin one-dot chain-line polygonal curve of the block number N5 quantize the tone values of the respective pixels in the range of 0 to 255 to the 21 stages of 0 to 20. The quantization data typically has the 15 to 22 stage according to the individual block numbers. The quantization table QT sets quantization data at a preset number of stages corresponding to each block number. The decree of increase in quantization data is also specified for each block number. When multiple pixels having an identical tone value belong to different block numbers, the identical tone value of the multiple pixels may be quantized to different values of quantization data.
As described above, the quantization circuit 412 converts the CMYK image data of the 256 tone values into quantization data of 32 steps at the maximum. This converts the 8-bit CMYK image data to the 5-bit data representing the information required for dot creation, thus desirably saving the total data volume.
The encoder 410 eventually outputs the quantization data of each pixel with regard to each color, which has been encoded by the quantization circuit 412, to the data selector 420.
(C-2-2) Data Selector
After receiving the data from the encoder 410 and the seventh pass unit 390g, each of the selector elements 411a through 411h identifies the setting of the black/white edge detection flag input as the select signal. When the black/white edge detection flag is equal to ‘1’, the selector element 411a through 411h selects and outputs the input black/white edge data. When the black/white edge detection flag is equal to ‘0’, on the other hand, the selector element 411a through 411h selects and outputs the input quantization data. Bit adders 412a through 412h are arranged after the respective selector elements 411a through 411h. The bit adders 412a through 412h respectively add the value of the black/white edge detection flag to the upper-most bit of the selected data output from the selector elements 411a through 411h. The data eventually output from the data selector 420 accordingly has a 6-bit data volume, whether the output data is quantization data or the black/white edge data. The data selector 420 outputs the selected data with the additional bit to the EB control unit 440. The 5-bit black/white edge data input into the data selector 420 already includes the value of the black/white edge detection flag at the upper-most bit added by the black/white edge processing unit 320 of the color conversion circuit 300. The value of the black/white edge detection flag is thus recorded in an overlap manner at the upper 2 bits of the 6-bit black/white edge data. The demerit of the overlap record of the same data is, however, negligible over the advantages of the same data length of the quantization data and the black/white edge data. Adjustment of these data to the same data length desirably facilitates the address management in the encoded data buffer EB for storage of these data, avoids the complicated hardware structure, and enhances the processing speed.
(C-2-3) EB Control Unit
With referring back to
(C-2-4) Decoder
(C-2-4-1)
The data identification circuit 431 sequentially reads out the encoded data from the encoded data buffer EB and identifies the block number of the encoded data. The encoded data are accumulated into the encoded data buffer EB in the order of block numbers identified as shown in
After identification of the block numbers, the data identification circuit 431 checks the upper-most bit of the 6-bit encoded data. The value of the black/white edge detection flag has been added as the upper-most bit by the data selector 420 for identification of the encoded data. When the upper-most bit of the encoded data is equal to ‘0’, the encoded data is identified as the quantization data. The data identification circuit 431 cuts off the upper-most bit and transfers the 5-bit quantization data and the identified block number to the quantization data decoding circuit 433. When the upper-most bit of the encoded data is equal to ‘1’, on the other hand, the encoded data is identified as the black/white edge data. The data identification circuit 431 cuts off the upper 2 bits recording the value of the black/white edge detection flag and transfers the 4-bit black/white edge data and the identified block number to the black/white edge data decoding circuit 432.
(C-2-4-2) Quantization Data Decoding Circuit
The quantization data decoding circuit 433 decodes the 5-bit quantization data transferred from the data identification circuit 431 and generates dot creation data. The dot creation data expresses the size of a dot to be created in each pixel by one of 4 values, ‘11’, ‘10’, ‘01’, and ‘00’ and represents a printed image by distribution of these 4 values. The process of generating the dot creation data refers to the first dot number table DT1 and the second dot number table DT2 stored in the SDRAM 152 to convert the quantization data into dot number data representing the numbers of the large-size dots, the medium-size dots, and the small-size dots to be created, and arranges the respective size dots based on the dot number data and the ordinal number matrix OM stored in the SDRAM 152. This dot creation data generation process is described in detail below.
<Conversion of Quantization Data to Dot Number Data>
The maximum value of the first dot number data is 164, because of the following reason. Each of 8 pixels included in one block takes one of the four different dot on-off conditions, ‘creation of the large-size dot’, ‘creation of the medium-size dot’, ‘creation of the small-size dot’, and ‘creation of no dot’. The number of combinations of the respective size dots is equal to the number of combinations by selecting one of these four states 8 times with allowance for repetition and is given as 4H8 (4+8−1C8). There are accordingly 165 possible combinations (0 to 164) at the maximum. The operator nHr determines the number of repeated combinations in selection among ‘n’ elements ‘r’ times with allowance for repetition. The operator nCr determines the number of combinations in selection among ‘n’ elements ‘r’ times with prohibition of repetition.
The quantization data decoding circuit 433 refers to the first dot number table DT1 shown in
The quantization data decoding circuit 433 refers to the second dot number table DT2 to convert the first dot number data to the second dot number data representing the numbers of the large-size dots, the medium-size dots, and the small-size dots to be created.
With referring back to
The lower graph of
<Arrangement of Dots According to Ordinal Number Matrix>
After conversion of the first dot number data into the second dot number data, the quantization data decoding circuit 433 refers to the ordinal number matrix OM stored in the SDRAM 152 and arranges the respective-size dots based on the second dot number data and the block number.
In another example, in the ordinal number matrix OM corresponding to the block number ‘2’, the ordinal number ‘1’ and the ordinal number ‘2’ are respectively set to a second lower left element and to an element at the lower right corner. In the ordinal number matrix OM corresponding to the block number ‘3’, the ordinal number ‘1’ and the ordinal number ‘2’ are respectively set to a second upper right element and to an element at the lower left corner. In this manner, the order of dot creation is individually set for each block number.
As shown in
According to the ordinal numbers set in the ordinal number matrix, 2-bit data are sequentially allocated from the right end of the second dot number data. The second dot number data includes multiple 2-bit data right-aligned in the descending order of the dot size. The greater-size dots are thus arranged earlier according to the ordinal numbers set in the ordinal number matrix OM. The large-size dots arranged in adjacent pixels are undesirably conspicuous. Sequential dot arrangement from the greater-size dots enables the greater-size dots to be preferentially distributed and made relatively inconspicuous, thus further improving the picture quality of the resulting printed image.
<Adjustment of Output Resolution by Allocation of Intermediate Dot Data>
The quantization data decoding circuit 433 generates intermediate dot data of 4 pixels×2 pixels from one quantization data according to the procedure described above. One quantization data corresponds to one pixel of the CMYK image data input into the halftoning circuit 400. Generation of intermediate dot data from all the quantization data converts the input resolution of 360 dpi×360 dpi to the output resolution of 1440 dpi×720 dpi. This is different from the expected output resolution 720 dpi×720 dpi in the 2×2 mode.
After conversion of the quantization data into the intermediate dot data, the quantization data decoding circuit 433 adequately allocates divisions of the generated intermediate dot data for adjustment of the output resolution. In the 2×2 mode, adjacent two pixels have an identical block number. Data of left 2×2 pixels in the intermediate dot data is allocated as dot creation data of the left-side pixel, while data of right 2×2 pixels in the intermediate dot data is allocated as dot creation data of the right-side pixel. This process adequately converts the input resolution of 360 dpi×360 dpi to the expected output resolution of 720 dpi×720 dpi.
According to the procedure described above, the quantization data decoding circuit 433 generates dot creation data of 2 pixels×2 pixels from each quantization data input from the encoded data buffer EB. The generated dot creation data are sequentially accumulated in the dot creation data buffer DB. This completes the decoding process by the quantization data decoding circuit 433.
The procedure of this embodiment generates intermediate dot data of all the 8 pixels, divides the generated intermediate dot data into two, and allocates one of the two divisions to dot creation data as described above with reference to
(C-2-4-3) Black/White Edge Data Decoding Circuit
The black/white edge data decoding circuit 432 shown in
Since the white color in the 2×2 pixels is expressed by no ink ejection, the black/white edge data decoding circuit 432 directly sets 2-bit dot creation data ‘00’, which represents no dot creation, without the halftoning process. This enhances the processing speed. When the inks used in the printing apparatus include transparent ink, the black/white edge data decoding circuit 432 may set dot creation data ‘11’ for only the transparent ink and dot creation data ‘00’ for all the other inks.
The black color in the 2×2 pixels is expressed as (R,G,B)=(0,0,0) and has no color appearance in the RGB format. The black color by ink color representation, however, appears as combination of multiple color inks including C, M, and Y inks. The black/white edge data decoding circuit 432 refers to the black data table BT stored in the SDRAM 152 and converts the data of black color in the 2×2 pixels into dot creation data. The black/white edge consists of white pixels and black pixels, and only the black color requires dot creation. The data of black pixels in the black/white edge is readily convertible into dot creation data by referring to the black data table BT provided for the halftoning process with regard to the black color. The black data table BT is created by halftoning reference image data of only black pixels in a preset size input into the color conversion circuit 300 and the halftoning circuit 400. The detailed procedure of creating the black data table BT will be described later. The black color is expressible by the K ink alone. In this embodiment, however, the black color is expressed by combination of multiple color inks including C, M, and Y inks, since fine adjustment of the color tone may be required according to the type of printing paper and the inclination of nozzles.
The position in the black data table BT for obtaining the dot creation data of target black data as a processing object is specified by the block number of the input black/white edge data, the input order of the black/white edge data by the data identification circuit 431, and the position of black data in the 2×2 black/white edge data. In the illustrated example of
The use of the black data table BT enables the black/white edge data decoding circuit 432 to directly convert the black data into dot creation data without sequential conversion to the CMYK format and the quantization data. This arrangement desirably enhances the processing speed. The black data table BT is used to convert the black/white edge data having the resolution of 720 dpi×720 dpi into the dot creation data having the resolution of 720 dpi×720 dpi. The black/white edge data decoding circuit 432 thus enables the highly-reproducible halftoning process, compared with the quantization data decoding circuit 433 receiving the quantization data at the input resolution of 360 dpi×360 dpi. The procedure of this embodiment uses the black data table BT to directly convert the black data into the dot creation data. One modified procedure may convert the black data (RGB data) into CMYK data, quantize the CMYK data, sequentially convert the quantization data to the first dot number data and to the second dot number data, and position the dots according to the ordinal number matrix OM to generate dot creation data.
The black/white edge data decoding circuit 432 converts the black/white edge data into the dot creation data of 4 pixels and successively accumulates the generated dot creation data into the dot creation data buffer DB. The dot creation data buffer DB accordingly stores the successively accumulated dot creation data of 2×2 pixel at the resolution of 720 dpi×720 dpi output from the quantization data decoding circuit 433 and the black/white edge data decoding circuit 432. The accumulated dot creation data include image data of the letters and characters and image data of the background, which are combined to constitute one output image. On completion of the accumulation of the dot creation data, the decoder 430 (see
The decoder 430 eventually accumulates the dot creation data, which is printable by one main scan of the ink head 211, into the dot creation data buffer DB. Namely the decoder 430 accumulates the dot creation data into the dot creation data buffer DB after skipping out an extra part of the dot creation data that is located between the nozzle pitch and is unprintable by one main scan. The decoder 430 decodes only the quantization data or the black/white edge data corresponding to object raster lines of actual ink ejection to implement the required data skip-out. The skip-out procedure in the case of decoding the quantization data obtains the dot creation data from the second dot number data corresponding to only the required ordinal numbers in the ordinal number matrix OM (for example, only the ordinal numbers 1, 6, 3, and 5 in the ordinal number matrix OM shown in
C-3. Head-Driving Data Conversion Circuit
The head-driving data conversion circuit 500 shown in
(C-3-1) Data Rearrangement Unit
The data rearrangement unit 510 receives the ready signal from the decoder 430 of the halftoning circuit 400, reads the dot creation data from the dot creation data buffer DB, and converts the dot creation data into head-driving data. Until completion of this data conversion, the data rearrangement unit 510 continuously sends a busy signal to the decoder 430 of the halftoning circuit 400. The decoder 430 interrupts the decoding process until stop of the busy signal. This effectively prevents overflow of the dot creation data buffer DB.
(C-3-2) HB Control Unit
The HB control unit 520 shown in
As described above, the printing apparatus 100 of the embodiment inputs a high-resolution (720 dpi×720 dpi) image and performs the halftoning process at the input high resolution of 720 dpi×720 dpi with regard to the black/white edges of the input image representing the characters and symbols expressed by combinations of only white and black colors, while performing the halftoning process at the reduced resolution of 360 dpi×360 dpi with regard to the remaining background image. This halftoning process desirably saves the required memory capacity, compared with the conventional halftoning process at the high resolution over the whole image area.
The black/white edges representing the characters and symbols go through the halftoning process, while keeping the resolution of the input image. This ensures high-quality printing of the black/white edges. The background image is combined with the black/white edges after enhancement of its resolution to the original resolution (720 dpi×720 dpi). The printed image on the printing medium S accordingly has the identical resolution over the whole area. The background image a less number of edges than the characters and symbols. The reduced resolution of the background image in the course of the halftoning process hardly affects the picture quality of the resulting output image. Reduction of the resolution by averaging the tone values of four pixels may round the noise component and give the user the impression of the enhanced picture quality. The image processing of the embodiment thus gives the user the total impression of the enhanced picture quality.
The halftoning process of this embodiment encodes 8-bit each color tone value of CMYK image data into 5-bit quantization data with regard to the background image other than the black/white edges of an input image. This reduces the data volume by approximately 40%. The halftoning process of this embodiment binarizes and encodes 96-bit RGB data of four pixels (=4 pixels×8 bits×3 colors) to 5-bit black/white edge data including a black/white edge detection bit. This reduces the data volume for the black/white edges representing characters and symbols by approximately 95%.
According to the applicant's estimation, the halftoning process of this embodiment enables processing of image data at a high resolution of 720 dpi×720 dpi with only an approximately 20% increase of the memory capacity required for the halftoning process of image data at a standard resolution of 360 dpi×360 dpi. The simple halftoning of image data at the high resolution of 720 dpi×720 dpi without the processing of black/white edges and reduction of the resolution for the processing of the background image other than the black/white edges requires four times the memory capacity for halftoning of the image data at the standard resolution of 360 dpi×360 dpi. Namely the halftoning process of this embodiment significantly reduces the required memory capacity.
The procedure of this embodiment performs the halftoning process with reference to various tables including the quantization table QT, the first dot number table DT1, the second dot number table DT2, and the ordinal number matrix OM. The halftoning process of this embodiment basically determines the dot on-off state by simply referring to these tables. This arrangement requires neither the comparison between the threshold values and the tone values like the conventional systematic dither technique nor the distribution of errors arising in respective pixels to peripheral pixels like the conventional error diffusion technique, thus enabling the extremely higher-speed halftoning than the conventional techniques.
The printing apparatus 100 does not require dot creation for the white color image part. The procedure of the embodiment accordingly does not perform the halftoning process with regard to white pixels included in the black/white edges. This arrangement desirably enhances the total processing speed.
The signal line used in the 1×1 mode is shown by the broken line in
As shown in
The dot creation data accumulated in the encoded data buffer EB is read by the data rearrangement unit 510 and is converted to the head-driving data. In the 1×1 mode, the dot creation data representing raster lines located between the nozzle pitch are skipped out (interlacing process) by the data rearrangement unit 510, instead of the decoder 430.
The halftoning process in the 1×1 mode outputs the dot creation data to the data rearrangement unit 510 without using the data selector 420 and the dot creation data buffer DB. This enhances the printing speed and attains the speed-priority printing over the picture quality.
The decoder 430 of the halftoning circuit 400 shown in
The image processing unit 155 receives the input RGB image data of 128 pixels×64 pixels and generates dot creation data of all black pixels having the size of 128×64 on the encoded data buffer EB in the SDRAM 152. The CPU 151 then transfers the generated dot creation data of all black pixels as a black data table BT to a specific area of the SDRAM 152 set for storage of the black data table BT (step S130).
After storage of the black data table BT in the specific area of the SDRAM 152, the CPU 151 sets the image processing unit 155 in the 2×2 mode (step S140) and outputs the RGB image data input at step S100 to the image processing unit 155 (step S150).
The black data table BT is created on the SDRAM 152 by simply outputting the RGB data of all black 128 pixels×64 pixels to the image processing unit 155. This arrangement has no requirement of storing the black data table BT in the ROM 153 and thus desirably saves the storage capacity of the ROM 153. The color conversion circuit 300 of the image processing unit 155 corrects the ink amounts and prevents the appearance of print fringes according to the characteristics of the printing apparatus 100. This ensures creation of the optimum black data table BT suitable for the unique characteristics of the individual printing apparatus 100 and enhances the picture quality of resulting output images.
The black data table creation process of this embodiment creates the black data table BT in response to every input of print data. The created black data table BT is thus suitable for the type of printing paper, the types of inks set in the printing apparatus 100, and the setting of the desired printing quality. When creation of the black data table BT for the individual setting of each printing operation is not required, the processing of steps S110 to S130 in the flowchart of
The above description regards the diverse series of image processing performed by the printing apparatus 100 in the 2×2 mode.
<Identification of Block Numbers in Respective Modes>
<Allocation of Intermediate Dot Data in Respective Modes>
As shown in
<1×1 Mode>
<1×2 Mode>
<1×2 Mode>
<4×2 Mode>
<Other Modes>
There are other modes of the output resolution, that is, 2×4 mode having the output resolution of 720 dpi×1440 dpi and 4×4 mode having the output resolution of 1440 dpi×1440 dpi. The first dot number data DT1 of
The embodiment discussed above is to be considered in all aspects as illustrative and not restrictive. There may be many modifications, changes, and alterations without departing from the scope or spirit of the main characteristics of the present invention. For example, the functions of the hardware elements may be attained by the software configuration by execution of preset programs by the CPU 151. Some examples of other possible modification are given below.
In the structure of the embodiment, the printing apparatus 100 alone performs the color conversion and encoding and decoding of the quantization data. In one modified structure, the devices located before the encoded data buffer EB, that is, the color conversion circuit 300, the encoder 410, and the data selector 420, may be incorporated in a different apparatus from the printing apparatus 100. The printing apparatus 100 and the different apparatus are interconnected by a predetermined communication path. A typical example of the different apparatus is the computer 900. In this modified structure, for example, a printer driver stored in the computer 900 executes the functions of the color conversion circuit 300, the encoder 410, and the data selector 420 by the software configuration. Such modification relieves the processing load of the printing apparatus 100. The quantization data encoded by the encoder 410 and the black/white edge data encoded by the black/white edge processing unit 320 have drastically reduced data volume relative to the original RGB data. This arrangement thus desirably saves the volume of the communication data.
In the above embodiment, the ordinal number matrix has the size of 128×64. The ordinal number matrix is, however, not restricted to this size but may have a greater size (for example, 512×256). The ordinal number matrix of the greater size enables the efficient halftoning of input image data in larger size.
The ordinal number matrix in the greater size may be wholly stored in the ROM 153. In one preferable application, the ordinal number matrix in the general 128×64 size is stored in the ROM 153. On a start of the printing apparatus 100, the CPU 151 loads the stored ordinal number matrix in the general size, repeatedly allocates the ordinal number matrix in the general size to prepare the ordinal number matrix in the greater size shown in
The halftoning process of the embodiment keeps the high resolution with regard to the image part consisting of only black and white colors. The color combination for the high-resolution halftoning is not restricted to black and white but may be, for example, blue and white or green and white. The user may specify a desired color combination through the operation of the computer 900 or the operation panel 140. This arrangement enables characters and symbols expressed in any desired color other than black to be printed at the high resolution. When the user specifies a desired color for the characters and symbols, the black data table BT is replaced by a data table of the user's specified color. This color data table is readily creatable according to the black data table creation process described previously.
The image processing of the embodiment regards the mode having the input resolution of 720 dpi×720 dpi and the output resolution of 720 dpi×720 dpi. The input resolution and the output resolution are not restricted to this value but may be 600 dpi×600 dpi, 1200 dpi×1200 dpi, or 1440 dpi×1440 dpi.
The various modifications of the image processing apparatus and the image processing method of the invention have been described above. The image processing apparatus may have diversity of other applications and modifications as described below. In one preferable application of the invention, the image processing apparatus further has a data storage module that receives the dot creation data generated by the processing module and temporarily stores the received dot creation data for later creation of the dots on the printing medium.
In one preferable embodiment of the image processing apparatus of the invention, the processing module includes a resolution reduction module that performs resolution conversion, in the absence of an edge in one processing image pixel group, to convert the processing image pixel group into one processing image pixel and enters the converted processing image pixel to the first halftoning process module.
In the image processing apparatus of this embodiment, the first halftoning process module may convert the image data at the specific resolution to generate dot creation data at an output resolution, which is double the specific resolution.
In the image processing apparatus of this embodiment, the resolution reduction module may average tone values of the four image pixels included in the processing image pixel group to calculate an average tone value and accordingly implement the resolution conversion to a single processing image pixel having the average tone value.
In one preferable application of the image processing apparatus of the invention, the second halftoning process module collects every set of 2×2 image pixels to one processing image pixel group.
In another preferable application of the image processing apparatus of the invention, the identification module identifies the presence of an edge in a certain processing image pixel group when the certain processing image pixel group includes both an image pixel in a specific color and an image pixel in a selected contrast color, which is selected among contrast colors having high contrasts to the specific color.
In the image processing apparatus of this application, for example, the specific color is white and the selected contrast color is black.
In one preferable structure of the image processing apparatus of this application, the second halftoning process module stores plural sets of dot creation data, which are obtained by halftoning process of image data of at least one image pixel in the selected contrast color at varying positions in one processing image pixel group, and selects one suitable set of dot creation data among the stored plural sets of dot creation data corresponding to the position of the image pixel in the selected contrast color in the certain processing image pixel group, so as to convert image data of the certain processing image pixel group and thereby generate the dot creation data of the certain processing image pixel group.
In one preferable embodiment of the image processing apparatus with the data storage module, the first halftoning process module generates the dot creation data by the combined encoding and decoding operations for the efficient data processing.
In a concrete structure, the first halftoning process module has: an encoding relation provision module that provides multiple encoding relations corresponding to tone values of image pixels, where each of the multiple encoding relations is referred to for specification of a code value that expresses a multivalue result by a small quantity of information with regard to one printing pixel of each printing pixel group corresponding to each image pixel; an encoding module that allocates one of the multiple encoding relations to each printing pixel group, sequentially extracts one of the image pixels constituting the multi-tone image, and refers to the encoding relation allocated to the printing pixel group to encode a tone value of the sequentially extracted image pixel and obtain a code value; a decoding relation provision module that provides multiple decoding relations corresponding to code values in a predetermined range, where each of the multiple decoding relations is referred to for decoding a code value to an output dot arrangement representing dot on-off conditions of respective printing pixels in each printing pixel group; and a decoding module that receives a code value encoded and obtained by the encoding module, and refers to one of the multiple decoding relations, which corresponds to the encoding relation previously referred to for obtaining the received code value, so as to decode the received code value and specify an output dot arrangement.
In this embodiment, the data storage module stores each code value encoded and obtained by the encoding module as compressed dot creation data, which is compressed to be extendable to dot creation data. This attains the more efficient data storage.
In one preferable structure of the image processing apparatus of this embodiment, the decoding relation provision module provides a dot number table that is referred to for conversion of the code value into dot number data representing a number of dots to be created in each printing pixel group and an ordinary number matrix that defines an order of dot creation in the printing pixel group, as each of the multiple decoding relations.
The decoding module receives the code value encoded and obtained by the encoding module, refers to the decoding relation, which corresponds to the encoding relation referred to for obtaining the received code value, to extract dot number data corresponding to the received code value from the dot number table, and arranges a number of dots represented by the extracted dot number data in an order of dot creation defined by the ordinal number matrix, so as to specify the output dot arrangement.
In the image processing apparatus of this structure, the dot number table provided by the decoding relation provision module may set the dot number data with regard to each of variable-size dots creatable on the printing medium.
In the image processing apparatus of this structure, the decoding module may arrange the dots sequentially from a largest-size dot among the variable-size dots creatable on the printing medium, as the output dot arrangement.
In one preferable embodiment of the invention, the image processing apparatus with the data storage module further has a dot formation module that receives the dot creation data from the data storage module and creates dots on the printing medium according to the received dot creation data.
In the image processing apparatus of this embodiment, the dot formation module has multiple nozzles for ejection of ink droplets with regard to each ink, where the multiple nozzles are arranged at a preset nozzle pitch in a feeding direction of the printing medium and the nozzle pitch is an integral multiple of a raster pitch between adjoining raster lines eventually formed on the printing medium by the dot formation module.
The first halftoning process module simultaneously generates plural sets of dot creation data with regard to plural raster lines to be formed simultaneously by the dot formation module.
In one preferable application of the invention, the image processing apparatus further has a storage module that sequentially enters plurality of different specific color image data, each consisting of a preset number of image pixels in a specific color, to the first halftoning process module, obtains plural sets of dot creation data generated by conversion of the sequentially entered plurality of different specific color image data from the first halftoning process module, and generates and stores a specific color conversion table that specifies a relation between the plurality of different specific color image data and the obtained plural sets of dot creation data. Here each of the obtained plural sets of dot creation data is used as the dot pattern referred to by the second halftoning process module. In the image processing apparatus of this application, the identification module identifies the presence or the absence of an edge, based on an arrangement of at least one image pixel in the specific color, for example, black, in each processing image pixel group.
In the image processing apparatus of this application, the storage module may generate and store the specific color conversion table at either of an activation time of the image processing apparatus and at a time of first input of image data into the image processing apparatus.
Number | Date | Country | Kind |
---|---|---|---|
2005-201363 | Jul 2005 | JP | national |
2005-208256 | Jul 2005 | JP | national |