WO2002032110A1 - Dispositif et procede de traitement d"images, dispositif de commande d"impression, et support enregistre - Google Patents

Dispositif et procede de traitement d"images, dispositif de commande d"impression, et support enregistre Download PDF

Info

Publication number
WO2002032110A1
WO2002032110A1 PCT/JP2001/008837 JP0108837W WO0232110A1 WO 2002032110 A1 WO2002032110 A1 WO 2002032110A1 JP 0108837 W JP0108837 W JP 0108837W WO 0232110 A1 WO0232110 A1 WO 0232110A1
Authority
WO
WIPO (PCT)
Prior art keywords
raster
pixel
dot
error
pixels
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/JP2001/008837
Other languages
English (en)
French (fr)
Inventor
Toshiaki Kakutani
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to US10/149,174 priority Critical patent/US7196821B2/en
Priority to EP01972714A priority patent/EP1333659A4/en
Publication of WO2002032110A1 publication Critical patent/WO2002032110A1/ja
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/40Picture signal circuits
    • H04N1/405Halftoning, i.e. converting the picture signal of a continuous-tone original into a corresponding signal showing only two levels
    • H04N1/4051Halftoning, i.e. converting the picture signal of a continuous-tone original into a corresponding signal showing only two levels producing a dispersed dots halftone pattern, the dots having substantially the same size
    • H04N1/4052Halftoning, i.e. converting the picture signal of a continuous-tone original into a corresponding signal showing only two levels producing a dispersed dots halftone pattern, the dots having substantially the same size by error diffusion, i.e. transferring the binarising error to neighbouring dot decisions
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration

Definitions

  • the present invention relates to a technique for converting image data expressed by gradation values of a plurality of pixels constituting an image, and more particularly, to converting the image data into image data in an expression format based on whether or not dots are formed for each pixel.
  • An image display device that expresses an image by forming dots on a display medium such as a print medium or a liquid crystal screen is widely used as an output device of various types of image equipment.
  • Such an image display device can locally express only one of the states of dot formation and non-dot formation, but by appropriately controlling the dot formation density in accordance with the gradation value of the image, Therefore, it is possible to express an image whose gradation continuously changes.
  • a method for judging the presence or absence of dot formation for each pixel so that dots are formed at an appropriate density according to the gradation value of the image is called, for example, an error diffusion method.
  • an error diffusion method There is a method and a method called the mean error minimum method that is mathematically equivalent to this method.
  • a method called the error diffusion method is to diffuse and store an error in gradation expression caused by forming a dot in a target pixel or by not forming a dot in an undetermined pixel around the target pixel.
  • this method is to determine the dot on-off state so as to eliminate errors diffused from surrounding pixels.
  • a method called the average error minimum method stores an error in gradation expression generated by determining whether or not to form a dot in a pixel of interest without diffusing the error into peripheral pixels, and instead stores the error in an undetermined pixel.
  • the error stored in the peripheral pixel is read out and the dot for the pixel of interest is canceled so as to cancel out these errors. This is a method of determining the presence or absence of a cut-out.
  • Dots can be formed at an appropriate density according to the value, and as a result, a high-quality image can be displayed on the image display device.
  • an error in the gradation expression that occurs every time the determination of the dot formation is performed must be frequently read and written to the error buffer, and the determination of the dot formation cannot be performed quickly.
  • the diffusion error to be diffused to the peripheral pixels must be written to the error buffer every time whether or not the dot is formed is determined.
  • An error in gradation expression must be read from the error buffer each time dot formation is determined.In both cases, the time required to determine dot formation is determined by the frequent reading and writing of the error buffer. If it takes time to determine the presence or absence of dot formation, it will be difficult to display images quickly.
  • the present invention has been made to solve the above-described problems in the prior art, and reduces the time required for determining the presence or absence of dot formation without deteriorating image quality.
  • An object of the present invention is to provide a technology capable of quickly displaying a high-quality image by shortening. Disclosure of the invention
  • the first image processing device of the present invention employs the following configuration. That is,
  • Image data indicating the gradation value of each pixel is received, and the presence or absence of dot formation at each pixel constituting the raster is determined along the raster line as a column of the pixel.
  • a raster group generating means for generating a raster group by grouping a plurality of the rasters adjacent to each other;
  • the last raster is a dot representing whether or not to form dots.
  • a gradation error generated at each pixel is calculated for each pixel constituting the last pixel, and is diffused to a plurality of undetermined pixels around each pixel.
  • a leading raster located at the leading position in the raster group adjacent to the trailing raster is selected, and the leading raster is selected in consideration of the tone error diffused from the trailing raster to each pixel of the leading raster.
  • Second error diffusion means for diffusing the tone error generated at each pixel constituting the top raster to undetermined pixels around each pixel;
  • the residual raster is considered in consideration of the tone error diffused from the pixels belonging to the same raster group as the residual raster and for which the dot on / off state has been determined.
  • Dot formation for each pixel Determining whether or not the residual raster is to be converted into a dot row in parallel with the process of converting the leading raster into the dot row by determining whether or not the remaining raster is to be a dot row;
  • the first error diffusion unit and the second error diffusion unit are configured to store, in the first error storage unit, an error diffused to a pixel in a raster group different from the pixel for which the presence / absence of dot formation has been determined.
  • the gist is to store the error diffused to the pixels in the same raster group as the pixel for which the presence or absence of dot formation has been determined in the second error storage unit.
  • the image data indicating the gradation value of each pixel is received, and the presence / absence of dot formation at each pixel constituting the raster is determined along the raster line of the pixel to determine whether the image data has dot formation.
  • the last raster in the last raster in the raster group is selected, and the last raster is determined by determining whether or not dots are formed for each pixel constituting the last raster. Converting to a dot row representing the presence or absence of dot formation;
  • the residual raster belongs to the same raster group as the residual raster and takes into account the gradation error diffused from the pixels for which the presence or absence of dot formation has been determined.
  • the error diffused to the pixels in the same raster group as the pixel for which the dot formation is determined is distinguished from the error diffused to the pixels in the different raster group.
  • the point is that it is a step of storing.
  • it is determined whether or not a dot is formed in each pixel for each raster constituting the raster group by using a raster group including a predetermined number of adjacent rasters as a unit. Converts each raster into a series of dots.
  • the error diffused to the pixels belonging to the same raster group as the determined pixel having the tone error is determined. Pixels and errors diffused to pixels in a different raster group are stored separately.
  • the leading raster the leading raster is converted into a dot row by judging the presence or absence of dot formation while reading out the stored gradation error from the pixels of the adjacent raster group.
  • the residual raster by determining the dot on / off state while considering the tone error stored and diffused from the pixels belonging to the same raster group as the residual raster and having been judged on the dot on / off state.
  • the remaining raster is converted into a dot row.
  • image data is Since the conversion is performed by the order, the error diffused to the pixels belonging to the same group is read out earlier than the error diffused to the pixels belonging to the different group.
  • the error diffused to the pixels belonging to the same raster group and the error diffused to the pixels belonging to the different raster group are stored separately, the error can be read out quickly, and furthermore, The process of converting image data in units of raster groups can be executed more quickly.
  • the error diffused to the pixels in the same raster group may be stored more quickly and / or in a manner capable of storing and / or reading data than the error to pixels in different raster groups. good.
  • the gradation error caused by judging the presence or absence of dot formation is more likely to be diffused to pixels belonging to the same raster group than to pixels in different raster groups. Therefore, if the error diffused to the pixels belonging to the same raster group is stored more quickly than the error diffused to the pixels belonging to a different raster group, at least one of the storage and the readout can be performed quickly. It is preferable because the process of diffusing errors can be effectively accelerated.
  • At least the same number of pixels as the number of pixels constituting the first raster group can be stored simultaneously, and The errors diffused to the pixels may be stored simultaneously for a smaller number of pixels than the number of pixels constituting the top raster.
  • the error diffused to the pixels of the same raster group is used during the conversion of the image data of the raster group, and there is no need to store it thereafter. Becomes possible to store the error diffused to other pixels belonging to the raster group. Therefore, if the error diffused to the pixels in the same raster group can be stored for a smaller number of pixels than the number of pixels constituting the first raster group, the storage unit can be used efficiently. It is preferable because it can be used.
  • the error diffused to the pixels of the same raster group can be directly written or read by the arithmetic unit of the computer.
  • the error stored in the storage element and diffused to the pixels of the different raster groups may be stored in a storage element in which the arithmetic unit indirectly writes or reads data.
  • a storage element to which data can be directly written or read from an arithmetic unit of a computer can be quickly written or read, and therefore, by storing in such a storage element, the data can be diffused to pixels in the same raster group. This is preferable because errors can be stored or read out quickly.
  • the storage element is not limited to being able to directly execute either writing or reading of data from the arithmetic unit, and is also capable of directly executing both writing and reading from the arithmetic unit. Needless to say, a simple storage element may be used.
  • the gradation error generated in each pixel of the last raster is diffused to undetermined pixels belonging to a different raster group in the vicinity of the pixel for which the presence or absence of the dot formation is determined.
  • the light may be diffused only to the pixels of the first raster line adjacent to the last raster line.
  • This arrangement differs from the pixel from the tone errors of the raster groups is spread is only the pixels of the destination head raster, t Therefore will not be diffused into the pixels of the remaining raster, each pixel of the first raster Only when judging the presence / absence of dot formation, the error stored in the first error storage unit is read to determine the presence / absence of dot formation, and the remaining raster is stored in the second error storage unit. The read error may be read to determine the dot on-off state. As a result, the process as a whole is simplified, and the process of determining whether or not a dot is formed can be quickly performed, which is preferable.
  • the image data is converted into the dot row by two rasters at a time, and the leading raster at the front of the two rasters and the last raster at the rear of the two rasters are converted. And may be converted into a dot string as follows. That is, the gradation error caused by determining the dot on-off state for each pixel of the last raster is the pixel of the last raster and the first raster of the last raster group adjacent to the last raster. To the pixels.
  • the gradation error generated by determining whether or not to form a dot for each pixel of the first raster is diffused to the pixel of the first raster and the pixel of the last raster following the first raster.
  • the presence or absence of dot formation for each pixel of the last raster of each raster group may be determined in consideration of the tone error thus diffused.
  • the light may be diffused only to pixels in a raster group different from the raster group in which the presence or absence of the dot formation is determined.
  • the second image processing apparatus of the present invention employs the following configuration.
  • the image data indicating the gradation value of each pixel is received, and the presence / absence of dot formation at each pixel constituting the raster is determined along the raster line of the pixel to determine whether the image data has dot formation.
  • a raster group generating means for generating a raster group by grouping a plurality of the rasters adjacent to each other;
  • the raster is selected from the raster group including at least the last raster at the end of the raster group, and whether or not dots are formed is determined for each pixel constituting the selected raster.
  • Selected raster conversion means for converting the converted raster into a dot row indicating the presence or absence of dot formation;
  • a gradation error generated at each pixel is calculated for each pixel constituting the selected raster and the first error is associated with each pixel for which the determination is made.
  • First tone error storage means for storing in the storage unit,
  • a leading raster located at the leading position in the raster group adjacent to the trailing raster is selected, and is stored in neighboring pixels around each of the pixels constituting the leading raster and for which dot on-off state has been determined.
  • Second tone error storage means for storing the tone error generated at each pixel constituting the top raster in a second storage unit in association with each pixel for which the determination has been made;
  • the remaining rasters obtained by removing the leading raster from the raster group belong to the same raster group as the remaining rasters, and each of the remaining rasters is considered in consideration of the tone error generated in the pixels for which dot formation has been determined.
  • the gist is that it is provided.
  • the second image processing method of the present invention corresponding to the second image processing device includes: Image data indicating the gradation value of each pixel is received, and the presence / absence of dot formation at each pixel constituting the raster is determined along the raster line of the pixel, whereby the image data is subjected to dot formation.
  • a head raster at the head position in the head group adjacent to the tail raster is selected, and the vicinity of each of the pixels constituting the head raster and the presence or absence of dot formation is determined. Converting the top raster into a dot row by determining whether or not a dot is formed for each pixel while taking into account the tone error stored in the pixel;
  • the residual raster belongs to the same raster group as the residual raster and takes into account the gradation error generated in the pixels for which the presence or absence of dot formation has been determined. Determining the presence / absence of dot formation of each pixel of the residual raster, thereby converting the residual raster into a dot column in parallel with the process of converting the leading raster into the dot column.
  • the gist is that it is provided.
  • the first As in the image processing apparatus and the image processing method, by determining the presence / absence of dot formation of each pixel for each raster constituting the raster group in units of a raster group consisting of a predetermined number of adjacent rasters.
  • the association of the tone error generated by each pixel of the last raster in each pixel subjected to the determination When determining the dot on-off state of the pixel of the first raster, the tone error stored in each pixel of the last raster on the periphery of the pixel is read to determine the dot on-off state. .
  • the gradation error generated in each pixel of the first raster in this way is stored separately from the gradation error generated in each pixel of the last raster.
  • the remaining raster is determined by determining whether or not dots are to be formed while taking into account the grayscale error that has occurred in pixels that belong to the same raster group as the residual raster and for which determination has been made.
  • the residual raster is converted into a dot row in parallel with the processing for converting the dot into the dot row.
  • the image data can be rapidly converted.
  • the gradation error generated in the last raster of the raster group being processed is different from the gradation error generated in other rasters in the current raster group. It will be read after the processing of the evening group ends. Therefore, if the gradation error generated in the last raster of the raster group and the gradation error generated in the other rasters are stored separately, the error can be read out quickly. It becomes possible to quickly convert image data.
  • At least the same number of pixels as the pixels constituting the last raster can be stored simultaneously with respect to the tone error generated at each pixel of the last raster.
  • the gradation error generated in each pixel of the raster only the number of pixels smaller than the number of pixels constituting the leading raster may be stored simultaneously.
  • the gradation error caused by the determination of the presence or absence of dot formation is used to determine the presence or absence of dot formation for pixels in the same raster group, and thereafter stored. Since the necessity is eliminated, the storage unit storing the gradation error can be used for storing the gradation error generated in another pixel belonging to the same raster group. Therefore, the gray scale error generated in each pixel of the first raster can be stored only for a smaller number of pixels than the pixels constituting the first raster, so that the storage unit can be used efficiently. I like it.
  • the gradation error generated in each pixel of the leading raster can be directly calculated by the arithmetic unit of the computer.
  • the gradation error stored in an executable storage element and generated in each pixel of the last raster may be stored in a storage element in which the arithmetic unit indirectly writes or reads data.
  • a storage element to which data can be directly written or read from an arithmetic unit of a computer can be quickly written or read. Therefore, if the gradation error generated in the first raster pixel is stored in such a storage element. This is preferable because the image data of the lens group can be quickly converted.
  • such a storage element can be used for both writing and reading out of data from the arithmetic unit. Needless to say, these may be executable storage elements.
  • a gradation error generated in each pixel constituting the raster is stored for each pixel, As the gradation error to be considered when determining whether or not to form a dot on the top raster, the top raster is converted into the dot row while considering the gradation error of each pixel of the last raster.
  • the image data is converted into the dot row by two rasters at a time, and the first raster at the front of the two rasters and the last raster at the rear of the two rasters.
  • the remaining raster is scanned while reflecting the tone error generated at each pixel of the first raster. Converting the remaining raster into a dot row by determining whether or not to form a dot in consideration of the diffusion error that has been diffused from the top raster to each pixel of the remaining raster in order to convert the remaining raster into a dot row. It is good.
  • the remaining raster may be converted into a dot row by determining whether or not to form a dot while considering the tone error generated in each pixel of the first raster.
  • the residual raster can be converted into a dot row while reflecting the tone error generated in each pixel of the first raster.
  • a print control device that controls the printing unit by outputting print data for controlling the formation of ink dots to a printing unit that forms an ink dot on a print medium and prints an image.
  • the above-described first image processing device or second image processing device of the present invention can be suitably used.
  • the first image processing apparatus or the second image processing apparatus described above receives image data indicating the gradation value of each pixel, and quickly converts the image data into image data based on whether or not a dot is formed. Can be converted. Therefore, if the first image processing device or the second image processing device is applied to the print control device, the image data can be quickly converted into the print data. It is preferable that the print data obtained in this way be output to the printing section, since the printing section can quickly print a high-quality image. Further, the present invention can be realized using a computer by causing a computer to read a program for implementing the first image processing method or the second image processing method described above. Therefore, the present invention includes the following embodiments as a recording medium. That is, the recording medium corresponding to the first image processing method described above is:
  • the image data indicating the gradation value of each pixel is received, and the presence / absence of dot formation at each pixel constituting the raster is determined along the raster line of the pixel to determine whether the image data has dot formation.
  • (E) a function of diffusing the tone error generated at each pixel constituting the top raster to undetermined pixels around each pixel;
  • the gradation errors are taken into consideration by diffusing from the pixels belonging to the same rasters as the residual rasters and having been determined to have dots formed or not.
  • the recording medium corresponding to the above-described second image processing method includes:
  • the image data indicating the gradation value of each pixel is received, and the image data is arranged along a raster line of the pixel. Then, a program that realizes a method of converting the image data into an expression format based on the presence or absence of dot formation by determining whether or not dots are formed at each pixel constituting the raster is recorded in a computer-readable manner. Recording medium,
  • FIG. 1 is a schematic configuration diagram of a printing system according to the present embodiment.
  • FIG. 2 is an explanatory diagram illustrating a configuration of a computer as an image processing apparatus according to the present embodiment.
  • FIG. 3 is a schematic configuration diagram of a printer as an image display device of the present embodiment.
  • FIG. 4 is a flowchart illustrating a flow of image data conversion processing performed by the image processing apparatus of the present embodiment.
  • FIG. 5 is an explanatory view conceptually showing how to determine whether or not dots are formed by using an error diffusion method.
  • FIG. 6 is an explanatory diagram illustrating a state where an error diffusion coefficient is set for each pixel.
  • FIG. 7 is an explanatory diagram showing the principle of shortening the processing time by performing a plurality of raster processes in parallel in the tone number conversion process of the first embodiment.
  • FIG. 8 is a flowchart illustrating the flow of a tone number conversion process according to the first embodiment.
  • FIG. 9 is an explanatory view conceptually showing a state in which a plurality of rasters are processed in parallel in a first modification of the gradation number conversion processing of the first embodiment.
  • FIG. 10 is an explanatory view conceptually showing a state in which a plurality of rasters are processed in parallel in a second modification of the gradation number conversion processing of the first embodiment.
  • FIG. 11 is an explanatory view conceptually showing a state in which a plurality of rasters are processed in parallel in a third modification of the gradation number conversion processing of the first embodiment.
  • FIG. 12 is an explanatory diagram conceptually showing an error diffusion matrix for diffusing an error to a distant place to a pixel having an error buffer in a fourth modification of the tone number conversion process of the first embodiment.
  • FIG. 13 is an explanatory view showing the principle of shortening the processing time by performing a plurality of raster processing in parallel in the gradation number conversion processing of the second embodiment.
  • FIG. 14 is an explanatory diagram exemplifying a state in which a weighting factor is set for each pixel in a gradation number conversion process according to a modification of the second embodiment.
  • FIG. 15 is a flowchart illustrating the flow of a tone number conversion process according to the second embodiment.
  • FIG. 16 is an explanatory diagram conceptually showing a state in which a plurality of rasters are processed in parallel in a first modified example of the gradation number conversion processing of the second embodiment.
  • FIG. 1 is an explanatory diagram for describing an embodiment of the present invention using a printing system as an example.
  • the printing system includes a computer 10 as an image processing device, a color printer 20, and the like.
  • the computer 10 receives gradation image data of a color image from an image device such as a digital camera or a color scanner, the computer 10 expresses the image data based on whether or not each color dot printable by the color printer 20 is formed. Convert to print data.
  • the conversion of the image data is performed using a dedicated program called a printer driver 12. Note that the gradation image data of a single color image can also be created by the computer 10 using various application programs.
  • the printer driver 12 includes a resolution conversion module, a color conversion module, and a floor conversion module. It consists of multiple modules, such as a tone conversion module and an interface module.
  • the tone number conversion module is a module that performs a process of converting the tone image data into an expression format based on the presence or absence of dot formation.
  • the tone number conversion module according to the present embodiment considers the tone error generated in the peripheral pixels when trying to determine the presence or absence of dot formation for the target pixel, and removes the dot of the target pixel so as to eliminate the error. The presence or absence of formation is determined. The processing performed by each of the other modules will be described later.
  • the color printer 20 prints a single color image by forming each color ink dot on a print medium based on the print data converted by each of these modules.
  • the image data supplied to the printer driver 12 output the gradation values of each pixel constituting the original image one by one raster from the end of the image. It has such a data structure.
  • the resolution conversion module and the color conversion module in the print dry line 12 process each raster one by one according to the data image data structure to be supplied, but the gradation number conversion module in the printing system of the present invention. Then, a predetermined number of rasters adjacent to each other are processed in parallel by the method described later.
  • Fig. 1 conceptually shows an example of processing three rasters in parallel.
  • the dot formation is performed in consideration of the tone error generated between the rasters in a plurality of rasters where the processing is performed in parallel. Since the judgment can be made, it is not necessary to store the gradation error or the diffusion error in the error buffer each time. That is, in the tone number conversion module of the present embodiment, it is not necessary to frequently read and write the error buffer, so that it is possible to quickly determine whether or not a dot is formed.
  • FIG. 2 is an explanatory diagram showing the configuration of the computer 100 as the image processing device of the first embodiment.
  • the computer 100 is a well-known computer constituted by connecting a ROM 104, a RAM 106, and the like to each other by a bus 116, with the CPU 102 at the center.
  • the CPU 102 includes an arithmetic unit that actually performs processing and a plurality of registers that temporarily hold data being processed. The data held at the register can be processed at a much higher speed than the data stored in the RAM 106.
  • the computer 100 has a disk controller DDC 109 for reading data from a floppy disk 124 and a compact disk 126, and a peripheral device interface P for transferring data to and from peripheral devices.
  • a video interface V ⁇ I ZF 112 for driving the I / F 108 and the CRT 114 is connected.
  • the P / I / F 108 is connected to a color printer 200 described later, a hard disk 118 and the like. If a digital camera 120 or a color scanner 122 is connected to the P / I / F 108, it is possible to print images captured by the digital camera 120 or the color scanner 122. .
  • FIG. 3 is an explanatory diagram showing a schematic configuration of the color printer 200 of the first embodiment.
  • the color printer 200 is an inkjet printer that can form four-color ink dots of cyan, magenta, yellow, and black.
  • an ink dot of a total of six colors including cyan (light cyan) ink with a low dye concentration and magenta (light magenta) ink with a low dye concentration can be formed.
  • a jet printer can also be used.
  • an ink jet printer that can form ink dots of a total of seven colors to which low-light (dark) yellow (dark yellow) ink is added may be used.
  • cyan ink, magenta ink, yellow ink, black ink, light cyan ink, light magenta ink, and dark quiero ink can be used as C ink, M ink, Y ink, K ink, LC ink, LM ink, DY It is abbreviated as “ink”.
  • the color printer 200 drives a print head 241, which is mounted on a carriage 240, to eject ink and form dots.
  • the carriage 240 is equipped with an ink cartridge 242 for storing a K ink and an ink cartridge 243 for storing various inks of C ink, M ink and Y ink.
  • each ink in the cartridge is ejected through a not-shown introduction pipe for each color provided on the lower surface of the print head 241.
  • heads 2 4 4 to 2 4 7. As shown in the drawing, a plurality of nozzles Nz are arranged in two rows in a staggered manner at a constant nozzle pitch k in the ink discharge heads 2444 for the K ink.
  • the other color ink ejection heads 2445 to 247 one set of nozzle rows arranged in a staggered manner at the nozzle pitch k is provided.
  • the control circuit 260 is: ? It consists of 11 26 1 and 1 ⁇ 01 ⁇ 26 2 and RAM 26 3 etc., and controls the operation of the carriage motor 230 and the paper feed motor 235 to control the carriage 240.
  • ink droplets are ejected from each nozzle at an appropriate timing based on print data supplied from the computer 100.
  • the color printer 200 can print a color image by forming ink drops of each color at an appropriate position on a print medium under the control of the control circuit 260.
  • ink is ejected using a piezo element.
  • ink droplets are ejected by generating bubbles in the ink passage by a heater arranged in the ink passage.
  • printer instead of ejecting ink, use a printer that forms ink dots on printing paper by using phenomena such as thermal transfer, or a printer that uses electrostatic to deposit toner powder of each color on print media. It is also possible.
  • the method of controlling the size of the ink droplet ejected from the ink ejection head or controlling the number of ejected ink droplets by ejecting a plurality of fine ink droplets at a time is used. It is also possible to use a printer capable of controlling the size of ink dots formed on printing paper, that is, a variable dot printer.
  • FIG. 4 shows a flow of processing in which a computer 100 as an image processing apparatus of the first embodiment converts predetermined image processing to received image data to convert the image data into print data. It is a flowchart. This process is started when the operating system of the computer 100 activates the printer driver 12.
  • the image data conversion processing of the first embodiment will be briefly described with reference to FIG.
  • the printer driver 12 When starting the image data conversion processing, the printer driver 12 first starts reading RGB color image data to be converted (step S10).
  • the image data consists of one raster for each of R, G, and B colors.
  • the resolution of the fetched image data is converted to a resolution for printing by the color printer 200 (step S102). If the resolution of the color image data is lower than the print resolution, linear interpolation is performed to generate new data between adjacent image data.On the other hand, if the resolution is higher than the print resolution, data is output at a fixed rate. The resolution of the image data is converted to the print resolution by thinning out.
  • the color conversion process is a process of converting color image data represented by a combination of R, G, and B gradation values into the gradation of each color used by a color printer 200 such as C, M, Y, and ⁇ . This is the process of converting to image data represented by a combination of tonal values.
  • the color conversion process can be performed quickly by referring to a three-dimensional numerical table called a color conversion template (LUT).
  • LUT three-dimensional numerical table
  • the resolution conversion processing (step S102) and the color conversion processing (step S104) described above are performed for each raster.
  • the gradation number conversion processing is the following processing.
  • the gradation data converted by the color conversion processing is expressed as data having 256 gradation widths for each color.
  • the color printer 200 of this embodiment can take only one of the states of “form dots” and “do not form dots”. That is, the color printer 200 of the present embodiment can locally express only two gradations. It is necessary to convert to image data expressed in two gradations that can express 0.
  • the process of converting the number of gradations is the gradation number conversion process. As described above, in the gradation number conversion processing of the present embodiment, rapid processing is possible by judging in parallel whether or not dots are formed in a plurality of rasters. The gradation number conversion processing will be described later in detail.
  • the printer driver starts the interlacing process (step S108).
  • the interlacing process is a process of rearranging image data converted into a format representing the presence or absence of dot formation into an order in which the image data should be transferred to the color printer 200 in consideration of the dot formation order.
  • the printer driver outputs the image data finally obtained by performing the interlacing process to the color printer 200 as print data (step S110).
  • the color printer 200 forms ink dots of each color on a print medium according to the print data. As a result, a color image corresponding to the image data is printed on the print medium.
  • FIG. 5 is an explanatory diagram conceptually showing an enlarged part of an image for which the presence or absence of dot formation is to be determined.
  • Each of the small squares represents a pixel, and the pixels are arranged side by side to form a raster.
  • the uppermost raster shown in Fig. 5 (a) is referred to as "Raster 0”
  • the lower raster is referred to as "Raster 1”
  • the subsequent rasters are referred to as "Raster 2" and "Raster 3”.
  • Each pixel is also numbered “P nm” to distinguish individual pixels.
  • the pixel P nm indicates that it is the n-th pixel of the last pixel m.
  • the image data after the color conversion processing shown in FIG. 4 is data in which each pixel is associated with a gradation value of each color.
  • FIG. 5 (a) is an explanatory diagram conceptually showing a state where the dot on-off state is determined for the pixel P11.
  • a pixel whose presence or absence of dot formation is to be determined, such as pixel P11, is referred to as a pixel of interest in this specification.
  • the pixel P11 is surrounded by a bold line to indicate that it is the target pixel.
  • the shaded area in the figure indicates that the pixels in that area have already been determined to have dots formed.
  • a gradation error E11 occurs in the target pixel P11. That is, regardless of whether or not dots are formed at the pixel P 11, the gradation value represented at the pixel P 11 (hereinafter, such a gradation value is referred to as a result) Is usually the same as the tone value of the image data for that pixel. Absent. Therefore, a gradation error occurs in the target pixel by the difference between the result value of the pixel PI1 and the gradation value of the image P11 at the pixel P11.
  • FIG. 6 is an explanatory diagram illustrating a state where the error diffusion coefficient is determined.
  • the hatched pixels are pixels of interest, and the error diffusion coefficient of each pixel is determined according to the position from the pixel of interest.
  • a matrix in which the error diffusion coefficient is set to the peripheral pixels with the target pixel as the center is called an error diffusion matrix. For example, in the error diffusion matrix of FIG.
  • “1/4” is set as the error diffusion coefficient K01 in the pixel on the right of the target pixel. Therefore, when the error diffusion matrix shown in FIG. 6A is used, 1/4 of the gradation error generated in the target pixel is distributed to the pixel on the right. Similarly, an error of 1/4 of the gradation error generated in the target pixel is distributed to each of the lower left, right lower, and lower right pixels of the target pixel.
  • the error diffusion matrix is not limited to the example shown in Fig. 6.A variety of values can be set for the error diffusion range, error diffusion coefficient, etc., and good image quality can be obtained with the actual error diffusion method. Thus, where appropriate, an appropriate error diffusion matrix is used. For the sake of simplicity, the following description will be made assuming that the matrix having the narrowest diffusion range among the exemplified error diffusion matrices, that is, the error diffusion matrix shown in FIG. 6A is used.
  • the gradation error Ell generated at the pixel of interest P11 is represented by the pixel P12 on the right and the pixel P20 on the lower left.
  • 14 pixels of tone error E00 are allocated to each of the four pixels in total, pixel P21 directly below and pixel P22 below right.
  • three pixels P20, P21, and P22 are different from the pixel of interest P11 and belong to raster 2.
  • the error diffused to each pixel is used when making dot formation decisions for each pixel, so it is necessary to store each pixel separately. Therefore, the diffusion error is stored in a large RAMI 06 (see Fig. 2), which can store the diffusion error for a large number of pixels.
  • FIG. 5B is an explanatory view conceptually showing how to determine whether or not to form a dot for the pixel of interest P12.
  • the diffusion error distributed and accumulated from the peripheral pixels to the pixel of interest P12 is read, and the read diffusion error is used to correct the image data of the pixel of interest P12.
  • the pixel of interest P12 is divided into four pixels, ie, the pixels P01, P02, P03, and P11, from which the dot formation has been determined.
  • FIG. 5C shows a state where the dot on-off state is determined for the new pixel of interest P12.
  • a tone error E12 is generated at the new pixel of interest P12, and this tone error is calculated according to the error diffusion matrix in the same manner as described in FIG. 5 (a). To the surrounding pixels.
  • the determination of the dot on-off state of the pixel P13 on the right is further started. Since the tone error E13 also occurs in the new pixel of interest P13, this error is diffused to peripheral pixels according to an error diffusion matrix, and further, it is determined whether or not a dot on the right is formed. In this way, the target pixel is moved one pixel to the right while diffusing the gradation error to the surrounding pixels, and once it reaches the right end pixel of the image, it once returns to the left end of the image and goes down one position The determination of the dot on-off state for a pixel of a certain raster (pixel P 20 in the example shown in FIG. 5) is started.
  • raster 2 when raster 2 reaches the rightmost pixel of the image, it returns to the left edge of the image again and starts raster 3 processing.
  • the pixel of interest is moved one pixel at a time along the raster, and the dot on-off state is determined while taking into account the diffusion error diffused from peripheral pixels.
  • the gradation error generated in the pixel of interest by the determination is diffused and stored in surrounding undetermined pixels, and is used when determining the dot on-off state of these undetermined pixels.
  • the peripheral pixels include pixels on a raster different from the raster to which the target pixel belongs. Since the determination of dot on / off is performed along the grid, even if the diffusion error is distributed, it must be stored until processing of the grid to which the pixel belongs begins. Absent. Furthermore, since a raster contains a large number of pixels, it is necessary to store the diffusion error that has been distributed for a fairly large number of pixels while distinguishing each pixel. It is for this reason that R AMI 06 with a large storage capacity is used to store the diffusion error.
  • FIG. 7 is an explanatory diagram showing, as the simplest example, the principle of judging the presence / absence of dot formation for two rasters in parallel.
  • FIG. 7A conceptually shows a state of determining the dot on-off state of the pixel PiO.
  • an error is distributed and stored from the pixel PhO or the pixel PM of the pixel h of the pixel h immediately above the pixel i. Therefore, the diffusion error stored in the pixel PiO is read out from the RAM 106 of the computer 100, the gradation value of the pixel PiO in the image is corrected, and the obtained correction value is compared with a predetermined threshold value. By doing so, the presence or absence of dot formation for the pixel P iO is determined.
  • a gradation error occurs in the pixel PiO, and this is diffused to the peripheral pixels according to the error diffusion matrix.
  • FIG. 6 (a) a matrix similar to the error diffusion matrix in Fig. 6 (a) is also shown in Fig. 7 (b).
  • the gradation error generated in pixel PiO is distributed to three pixels, Pil, PjO, and Pjl, according to the error diffusion matrix in Fig. 7 (b). It is stored in a register built into the device.
  • Fig. 7 (a) the way in which the gradation error is diffused from the pixel PiO to the surrounding pixels is conceptually indicated by thick arrows.
  • a diffusion error between a plurality of rasters that are processed in parallel (in FIG. 7, for example, a diffusion error from a pixel of raster i to a pixel of raster j) is stored in the register.
  • the diffusion error during the last day that is not processed (for example, in FIG. 7, the diffusion error from the pixel of raster j to the pixel of raster k) is stored in the RAM 106.
  • the register can be read and written at a higher speed than the RAM I06, so the use of the register allows the gradation number conversion process to be performed more quickly.
  • the error between rasters to be processed in parallel need not always be stored in the register, but may be stored in the RAM 106, for example.
  • These immediately used diffusion errors are usually stored in RAM 106, Since the value remaining in the cache memory of 02 can be used, high-speed reading and writing can be actually performed, and the gradation number conversion process can be performed quickly.
  • the next step is to start judging the dot on-off state of the pixel Pi 1 on the right.
  • the gradation error generated in the pixel of the pixel h above it is diffused according to the error diffusion matrix shown in FIG. 7 (b) and stored in the RAM 106 in advance.
  • the error diffused from the pixel of the raster h and stored in the RAM 106 in advance is read out, and the diffusion error and the diffusion error distributed to the pixel Pil from the pixel PiO and stored in the register are used to calculate the pixel Pil. Correct the gradation value of the image data of.
  • the image data of the pixel Pil is corrected by the error diffused from the pixel PhO, the pixel Phl, the pixel PM, and the pixel PiO in the raster h, which is equivalent to the normal error diffusion method.
  • a correction value can be obtained.
  • the magnitude relationship between the correction value and a predetermined threshold value is compared. If the correction value is larger than the threshold value, it is determined that a dot is to be formed in the pixel Pil. Otherwise, it is determined that no dot is to be formed.
  • a gradation error also occurs in the pixel Pil, so that the pixel Pil is distributed to four neighboring pixels, a pixel Pi2, a pixel PjO, a pixel Pjl, and a pixel Pj2 according to an error diffusion matrix. Diffusion error values distributed to these four pixels are stored in the CPU 102 register for each pixel.
  • FIG. 7 (a) the way in which the gradation error generated in the pixel Pil is diffused to peripheral pixels is conceptually indicated by thin solid-line arrows. Since the diffusion error from the pixel PiO is already stored for the pixel PjO, the diffusion error from the pixel Pil is added to this value and accumulated. Also, if it is determined whether or not a dot is formed at the pixel Pil, the register used to store the diffusion error to the pixel Pil becomes unnecessary, so that the diffusion error distributed from the pixel Pil to other pixels is reduced. This register can be used to store.
  • the determination of the presence / absence of dot formation for the pixel PjO at the left end of the raster j is started.
  • the grayscale error is assumed to be diffused to the surrounding pixels according to the error diffusion matrix shown in Fig. 7 (b), so if the diffusion error from the pixel PiO and the diffusion error from the pixel Pil are distributed, For the pixel PjO, all the diffusion errors have been allocated. Therefore, after determining the dot formation of these two pixels, the pixel PjO is determined.
  • FIG. 7 (c) is an explanatory view conceptually showing a state in which the dot on-off state of the pixel PjO is determined.
  • the error is diffused to the pixel PjO from the pixels P iO and P il, but as described above. It is stored in the CPU102 register. Therefore, using this value, the gradation value of the pixel PjO of the image data is corrected, and the presence or absence of dot formation is determined based on the magnitude relationship between the correction value and the threshold.
  • the tone error generated in the pixel PjO is diffused to three neighboring pixels Pjl, PkO, and Pkl according to the error diffusion matrix.
  • the determination of the dot on-off state is performed in parallel for the pixel of raster i and the pixel of raster j. Therefore, the determination of the dot on-off state for the two pixels, the pixel PkO and the pixel Pkl, is performed after the determination of all the pixels of the raster i and the raster j is completed. Therefore, since the values of the diffusion error to the pixel PkO and the diffusion error to the pixel Pkl are considered not to be used for the time being, these values are stored in: AMI06. On the other hand, since the diffusion error to the pixel Pjl is considered to be used soon, it is stored in the register of the CPU 102.
  • the error generated in the raster above raster i and diffused to the pixel of raster i Is stored in RAM 106.
  • the error generated in the raster j and diffused to the pixel of the raster k is also stored in the RAM 106.
  • the error generated in the raster i and diffused to the pixel of the raster j is stored in the CPU 102 in the register.
  • the hatched lines in raster i and raster k mean that the diffusion errors diffused to the pixels in these rasters are stored in RAMI06.
  • the arrow pointing from pixel PjO to pixel PkO or the arrow pointing from pixel PjO to pixel Pkl is a white arrow, which indicates the diffusion error allocated to these pixels. Is stored in the RAM 106. Conversely, the bold arrow from the pixel PjO to the pixel Pjl indicates that the diffusion error distributed to the pixel Pjl is stored in the CPU 102 register. Since the dot on-off state of the pixel PjO has already been determined, the register storing the diffusion error to the pixel PjO may be used for another purpose, for example, storing the diffusion error to the pixel Pjl. it can.
  • the next step is to judge the presence or absence of dot formation at pixel Pi2 of raster i, and the generated gradation error is diffused to the peripheral pixels. It is determined whether or not a dot is formed at the pixel Pjl.
  • FIG. 7D is an explanatory view conceptually showing this state.
  • the gradation error caused by the judgment is diffused to peripheral pixels.
  • the diffusion error to the peripheral pixels is stored in the register.
  • the tone value of the image data is corrected using the diffusion error stored in the register, and the dot on-off state is determined based on the magnitude relationship with a predetermined threshold.
  • the diffusion error to the pixel of the raster k is stored in the RAM 106, and the diffusion error to the pixel of the raster j is stored in the register.
  • the numbers attached with circles to the pixels in FIG. 7D indicate the order in which the presence / absence of dot formation is determined for the pixels of the raster i and the pixels of the raster j.
  • the pixel of raster i and the pixel of raster at the lower left of the pixel are alternately checked for dot formation. If raster i and raster j are processed in parallel in this way, the diffusion error of raster j to pixels can be stored in a register.
  • Bets can be, RAM I 0 6 i.e. c may be stored diffusion error to the pixels of the raster k to the diffusion error against RAM I 0 6, it is possible to reduce the frequency you write or read, only that It is possible to quickly determine the presence or absence of dot formation.
  • the pixel P i O since the pixel at the left end of the raster i, that is, the pixel P i O, does not have a pixel at the raster j at the lower left of the pixel, the pixel P i O The pixel Pil at the same raster i. However, assuming a fictitious pixel P j-1 at the lower left of the pixel P i O, after processing the fictitious pixel P j -1 following the pixel P i O, the fictitious pixel P j -1 is processed. May be discarded without using the judgment result of dot formation. In this case, normal processing can be performed on the imaginary pixel also on the leftmost pixel, so that irregular processing is not required, which is preferable.
  • FIG. 8 is a flowchart showing a flow of processing for judging the presence / absence of dot formation for two rasters in parallel. This process is performed by the CPU 100 of the computer 100.
  • the color printer of the present embodiment is a printer that can form four color ink dots of C, M, Y, and ⁇ , and the gradation number conversion processing shown in FIG.
  • the description will be made without specifying the color of the ink dot.
  • the color printer according to the present embodiment can be a variable dot printer that can form dots of different sizes for each color.
  • a noble dot printer for example, when using a variable dot printer that can form various dots of large dots, medium dots, and small dots, the gradation number conversion process described below This is performed for each dot of the size.
  • the number of gradation conversion processes increases as the colors of the inks used increase and dots of various sizes can be formed.
  • the time required for the treatment tends to be longer. Since the gradation number conversion processing of the present embodiment described below can be performed quickly, it can be suitably applied to such a case.
  • the tone number conversion process of this embodiment When the tone number conversion process of this embodiment is started, first, from among the first rasters of the rasters to be processed in parallel, the image data of the pixel for which the dot on-off state is to be determined and the pixel data are diffused to the pixel.
  • the obtained diffusion error is obtained (step S200).
  • the pixel to be processed is the n-th pixel Pin of the raster i.
  • the image data Cdin and the diffusion error Edin are both stored in RAMI06.
  • the correction data Cxin of the pixel Pin is calculated by adding the image data Cdin of the pixel Pin and the diffusion error Edin (step S202).
  • the correction data Cxin thus obtained is compared with a predetermined threshold th (step S204). If the correction data is larger, it is determined that a dot is formed on the pixel Pin, and a variable indicating the determination result is obtained. A value "1" indicating that a dot is to be formed is written in Cr (step S206). Otherwise, it is determined that no dot is to be formed on the pixel Pin, and a value “0” meaning that no dot is formed is written to the variable Cr (step S 208).
  • the gradation error generated by the determination is calculated (step S210).
  • the gradation error Ein can be obtained from the correction data Cxin by forming a dot or by subtracting a gradation value (result value) represented by a pixel Pin by not forming a dot.
  • the obtained gradation error is multiplied by an error diffusion coefficient to calculate a diffusion error to peripheral pixels.
  • the error diffusion coefficient is set for each pixel in the error diffusion matrix.
  • the diffusion error to the pixel of the raster i and the diffusion error to the pixel of the raster j immediately below the raster i are stored in the register at step S212. If there is a diffusion error to other pixels, for example, a diffusion error to the pixel of the last k, it is stored in the RAM 106.
  • the image data Cdjn_l of the pixel Pjn-1 is read from the RAMI 06 (step S214), and the diffusion error Edjn-1 to the pixel Pjn_l is read from the register (step S216).
  • the diffusion error Edjn-1 read from the register also stores the diffusion error from the pixel Pin for which dot formation was determined earlier. If the pixel P in of the raster i is the leftmost pixel P iO, such processing is performed on the imaginary pixel P j-1.
  • the correction data Cxjn-1 is calculated by adding the image data Cdjn-1 and the diffusion error Edjn-1 (step S218), and the obtained correction data Cxjn-1 and the predetermined threshold th are calculated.
  • step S220 if the correction data is larger, it is determined that a dot is to be formed, and a value “1” indicating that a dot is to be formed is written to the variable Cr indicating the determination result (step S222). ). Otherwise, write a value “0” meaning that no dot is formed (step S224).
  • a gradation error Ejn-1 generated in the pixel Pjn-1 according to the determination is calculated (step S226).
  • the gradation error Ejn-1 can be obtained by subtracting the result value of the pixel Pjn-1 from the correction data Cxjn-1.
  • the obtained gradation error is multiplied by the error diffusion coefficient set in the error diffusion matrix to calculate a diffusion error to neighboring pixels.
  • the diffusion error of the raster j to the pixel is stored in the register, and the diffusion error of the raster k to the pixel is stored in the RAM 106 (step S228).
  • step S230 If any unprocessed pixels remain, shift the pixel position to the right by one, that is, replace “n” with the value of “n + 1” (step S232), and return to step S200. Then, a series of subsequent processes are performed. If no unprocessed pixels remain, it is determined whether or not all raster processing has been completed (step S234). If unprocessed rasters remain, the raster position is set to two rasters.
  • step S236 the tone number conversion process shown in FIG. 8 is terminated, and the process returns to the image data conversion process shown in FIG.
  • the presence / absence of dot formation is determined for the pixels of raster i and the pixels of raster j in parallel and alternately. In this way, for the pixel of the raster j, it is determined whether or not the dot is formed following the pixel of the raster i or soon.
  • the presence / absence of dot formation for the pixel of the raster j can be directly determined without temporarily storing the diffusion error from the pixel of the raster i to the surrounding pixels. It is possible to reduce the frequency of writing to the data. If the frequency of writing to the error buffer can be reduced, the time required for judging the presence or absence of dot formation can be shortened accordingly, so that the gradation number conversion process can be performed quickly.
  • the error buffer once used to determine the presence or absence of dot formation is used again to determine another raster. .
  • the total number of rasters stored in the error buffer may be reduced. Can be halved.
  • the capacity of the error buffer can be saved without performing the process of using the error buffer used for dot formation determination again for determination of another raster.
  • FIG. 9 is an explanatory diagram conceptually showing a case in which the determination of the dot on-off state for the three rasters is performed in parallel.
  • the presence / absence of dot formation is determined in parallel for three rasters, i.e., raster i, raster j, and raster k.
  • the error diffusion matrix shown in FIG. 6A is used here, as in the case of FIG.
  • the diagonal lines in the raster i and the raster L indicate that the diffusion error allocated to the pixels of these rasters is stored in the RAM 106.
  • the numbers in the circles attached to the pixels of the raster i, the raster j, and the raster k indicate the order in which the dot on-off state of each pixel is determined. As shown in the figure, for the first three pixels, the dot on-off state is determined in the same order as in the case where the two rasters described in FIG. 7 are processed in parallel. From the fourth pixel thereafter, three pixels of raster i, raster j, and raster k are set as one set, and the dot on-off state is determined in this order in parallel.
  • the processing of the three rasters i.e., raster i and raster k, is performed in parallel, so the error diffused to the pixels of these three rasters will be used soon, so the CPU 102 Stored in a register.
  • the error diffused to the pixel of raster L is used only after the processing of three rasters, i.e., raster i and raster k, is completed. It is stored in RAM106. By repeating such processing, it is possible to determine whether dots are formed on three rasters in parallel.
  • the error diffusion matrix uses a relatively small matrix shown in FIG. 6 (a) to avoid complicating the description.
  • FIG. 6 (a) the matrix shown in FIG. 6 (a) to avoid complicating the description.
  • a process of judging the presence / absence of dot formation of two rasters in parallel using the error diffusion matrix of FIG. 6B will be described with reference to FIG.
  • the error diffusion matrix used is shown in Fig. 10 (a) for ease of understanding. This matrix is the same as the matrix shown in FIG.
  • a gradation error generated in a target pixel displayed with diagonal lines is diffused not only to a pixel adjacent to the target pixel but also to a pixel adjacent thereto.
  • the grayscale error generated at pixel Pj2 is diffused to pixel Pi3 and pixel Pi4 for pixel i, and for pixel PjO to pixel Pj4 for pixel j. Is diffused to the pixels.
  • the diffusion error from the pixel P iO of the raster i and the diffusion error from the pixel Pi 1 the diffusion error from the pixel P i2 is allocated to the pixel PjO of the raster j. Become. Therefore, after the determination of whether or not dots are formed in these three pixels included in the raster i is completed, the determination of whether or not dots are formed in the pixel PjO in the raster j is started.
  • the error diffusion matrix shown in Fig. 10 (a) is used, the positional relationship between the pixel of raster i and the pixel of raster j is as follows. The relationship is delayed.
  • the positional relationship between the pixels included in each raster can be determined according to the range in which the gradation error is diffused. While maintaining such a positional relationship, a dot is formed for each pixel of each pixel. Judgment of nothing
  • FIG. 10 (b) is an explanatory diagram showing a state in which the determination of the dot on-off state is continuously performed for the pixel P i2 of the raster i and the pixel PjO of the raster j.
  • the numbers shown with circles in the figure indicate the order of determination of the dot on / off state of the pixel among the pixels of raster i and raster j.
  • the bold arrow from pixel Pi2 to the surrounding pixels conceptually illustrates how the tone error generated at pixel Pi2 is diffused to the surrounding pixels according to the error diffusion matrix. When the gradation error of the pixel P i2 is diffused to the surrounding pixels, it is determined whether or not the dot of the pixel PjO is formed.
  • the diffusion error distributed to the pixel of the raster j is stored in the register of the CPU 102, and the diffusion error distributed to the pixel of the raster k is stored in the RAM 106.
  • a white arrow pointing from the pixel PjO to the pixel of the last k indicates that the diffusion error distributed to these pixels is stored in the RAM 106.
  • the pixel PjO is followed by the pixel Pi3, followed by the pixel Pjl. I will do it.
  • the diffusion error allocated to the raster i or raster j pixel is stored in the register 102 of the CPU 102, and the diffusion error allocated to the raster k is stored in the RAM I06.
  • the pixels of the raster j follow the pixels of the raster i, or soon after. Is determined. Therefore, it is possible to directly determine the dot on-off state of the pixel of the raster j without temporarily storing the diffusion error from the pixel of the raster i to the peripheral pixel in the error buffer. It is possible to reduce the frequency of writing to the data. As a result, the frequency of writing to the error buffer is reduced, and the time required to determine the presence or absence of dot formation is reduced. Can be shortened.
  • the tone error generated at the target pixel is described as being diffused to the pixel of the raster where the target pixel is located and the pixel of the raster immediately below the raster. It is not limited to such a case.
  • the gradation error generated at the pixel of interest is diffused from the raster having the pixel of interest to the pixels two rasters below it.
  • FIG. 11 is an explanatory diagram conceptually showing, as an example, a process of judging the presence / absence of dot formation of three rasters in parallel when the error diffusion matrix shown in FIG. 6D is used.
  • the error diffusion matrix used is shown in Fig. 11 (a) for ease of understanding. This matrix is the same as the matrix in Fig. 6 (d). It is assumed that the presence / absence of dot formation for three rasters, i.e., raster i, raster j, and raster k, is determined in parallel.
  • the gradation error generated at the pixel of raster k is diffused to the three pixels of raster k to raster m according to the error diffusion matrix of Fig. 11 (a).
  • the dot on-off state is determined after the processing of the three rasters from raster i to raster k is completed.
  • the errors diffused to raster L and raster m are stored in RAM 106.
  • the diffused error is indicated by hatching the pixels stored in the RAM 106.
  • the diffused error is stored in the raster stored in the register of the CPU 102 and in the two lines stored in the RAM 106. Will appear alternately.
  • the tone error may be diffused to an error buffer.
  • an error that diffuses three or more pixels away from the pixel of interest An error diffusion matrix such as that shown in Fig. 12 (a) may be used to diffuse the data.
  • Fig. 12 (a) the pixels that are distant from the pixel of interest and are displayed as a single dashed line across the two rasters are the two rasters in these regions where the error buffer exists. This indicates that the error is diffused to the raster of the same color. This will be specifically described with reference to FIGS. 12 (b) and (c).
  • the error buffer is located on the raster with the pixel of interest and the grid two rows below it. This is the same as diffusing the error according to the matrix shown in 1 2 (b).
  • the error buffer is in two rasters sandwiching the raster with the pixel of interest up and down. This is the same as diffusing the error according to the matrix shown in FIG. 12 (c).
  • FIG. 12 (a) As is clear from comparing the error diffusion matrix of FIG. 12 (a) with the corresponding error diffusion matrix of FIG. 6 (c), in FIG. 12 (a), three pixels from the target pixel are obtained. In the region located earlier (indicated as K3 in the figure), the errors diffused to the pixels K03 and K13 in FIG. 6C are diffused collectively. Similarly, in the area four pixels ahead of the pixel of interest in Fig. 12 (a) (indicated as K4 in the figure), the errors diffused to pixels K04 and K14 in Fig. 6 (c) are collected together. Spreading.
  • the error is diffused over the pixels of the two rasters.
  • the error diffusion matrix shown in FIG. 12 (d) is used, the error is diffused over the three rasters. You can also. As described above, even when the error is diffused to a larger number of rasters, if the error to be diffused to a distant place is diffused to the error buffer, simple and quick processing can be performed without deteriorating the image quality. it can.
  • the tone error generated due to the determination of the dot on-off state in the target pixel is determined by the error diffusion matrix set in the error diffusion matrix.
  • the peripheral pixels were diffused and stored according to the coefficient.
  • the method of the first embodiment can be considered as a method according to a method called a so-called error diffusion method.
  • the so-called average error minimum method it is also possible to determine in parallel whether or not dots are to be formed on a plurality of rasters by a method based on a method called the so-called average error minimum method.
  • FIG. 13 is an explanatory diagram conceptually illustrating the principle of quickly determining whether or not to form dots by performing a plurality of raster processes in parallel in the tone number conversion process of the second embodiment.
  • FIG. 13 (a) is an explanatory diagram showing how to determine whether or not a dot is formed on the pixel PIO.
  • Pixel P iO dot formation When judging the presence or absence, first, a gradation error generated in the pixel PhO and the pixel PM around the pixel PiO is multiplied by a predetermined weighting factor, and a value obtained by adding these is calculated. In Fig. 13 (a), EhO and Ehi are displayed at the pixel PhO and the pixel Phi, respectively, indicating that the gradation error E) and Ehl occur at each pixel. Next, the image data of the pixel PiO is corrected with the calculated value, and the presence or absence of dot formation is determined based on the magnitude relationship between the obtained correction value and a predetermined threshold.
  • the weight coefficient by which the gradation error is multiplied is set in advance for each pixel based on the relative positional relationship of each pixel with respect to the pixel of interest.
  • Figure 1 3 (b) it is, around a target pixel, a pixel weighting coefficients to each pixel of around shaded in c Figure is an explanatory view showing a state that is set is the target pixel. For example, “K0_1” is set as a weight coefficient for the pixel on the left of the target pixel.
  • the matrix for setting the weighting factor for each pixel around the pixel of interest is not limited to the matrix in Fig. 13 (b), and various matrices illustrated in Fig. 14 can be used. .
  • the dot on-off state of the pixel PiO is determined in this way, the dot on-off state of the pixel Pil on the right is started.
  • the dot on-off state of the pixel Pil on the right is started.
  • the matrix set in Fig. 13 (b) taking into account the gradation errors generated at the pixel PhO, pixel Phi, pixel Ph2, and pixel PiO.
  • the judgment of the pixel Pil is completed, the judgment of the pixel Pi2 on the right is further started. In this way, the presence or absence of dot formation is determined for each pixel along the raster.
  • the tone error generated as a result of the dot on / off determination is stored in an error buffer provided on the RAM, and after the dot on / off determination for all pixels in the raster currently being processed has been completed, one In the processing of the underlying raster, it is read from the error buffer in RAM and used again.
  • the tone error of the peripheral pixel is stored in an error buffer provided on the RAM.
  • the tone error that occurs in the pixel of interest due to the determination is determined by the dot formation determination of other pixels. To use it, it is necessary to store it in the error buffer. As described above, in order to frequently read / write the gradation error from / to the error buffer, it takes time to determine the dot on-off state.
  • FIG. 13 is an explanatory diagram showing, as the simplest example, the principle of judging the presence / absence of dot formation for two rasters in parallel.
  • the presence / absence of dot formation is determined in parallel for two rasters, i.e., raster i and raster j immediately below.
  • FIG. 13 (a) conceptually shows a state of determining the dot on-off state of the pixel PiO.
  • the grayscale error EhO of the pixel PhO and the grayscale error Ehl of the pixel Phi are used as in the above-described average error diffusion method. These tone errors are stored on the RAMI 06 of the computer 100.
  • Each gradation error read from the RAM 106 is multiplied by the weight coefficient set in the matrix in FIG. 13B to correct the image data of the target pixel P iO. Based on the correction value thus obtained, it is determined whether or not the dot formation of the pixel PiO is performed.
  • the bold arrow displayed from the pixel PhO or the pixel Phi to the target pixel P iO indicates the floor of the pixel PhO or the pixel Phi to determine whether or not the target pixel P iO has a dot formed. It conceptually expresses the consideration of tuning errors.
  • Fig. 13 (b) the determination of the dot on-off state of pixel Pil is determined by the pixel PhO, pixel Phl, The gradation error generated in each pixel of the pixel Ph2 and the pixel Pio is considered.
  • Fig. 13 (a) the arrow of the thin line displayed from each pixel toward the pixel Pil is considered in consideration of the gradation error of these pixels in order to determine the dot on-off state of the target pixel Pil. This is conceptually shown.
  • the gradation error EhO of the pixel PhO and the gradation error EM of the pixel PM store the values previously used in the dot formation judgment for the pixel PhO, and use these values. be able to.
  • the value obtained earlier can be used as the gradation error EiO of the pixel PiO. Therefore, if only the gradation error Eh2 for the pixel Ph2 is read from the RAM 106, it is possible to determine the dot on-off state for the pixel Pil.
  • the gradation error Eil generated in the pixel Pil as a result of the determination is stored in the register of the CPU 102.
  • FIG. 13 (c) is an explanatory view conceptually showing a situation in which the dot on-off state of the pixel PjO is reversed.
  • the dot on / off state of the pixel PjO can be determined only by considering the gradation error at the pixel PiO and the pixel Pil. As described above, these gradation errors EiO and Eil are obtained immediately before the pixel PjO and stored in the register of the CPU 102.
  • the presence or absence of dot formation can be determined without reading out the gradation error from the RAM 106.
  • the gradation error generated by the pixel PjO is stored in the register of the CPU 102 and the error buffer on the RAM 106.
  • the presence or absence of dot formation is determined alternately for the pixel of raster j.
  • the reason for storing the gradation error EjO of the pixel PjO in the error buffer on the RAM 106 is that after the processing of the raster i and the raster j is completed, it is determined whether or not the dot at the pixel at the raster k is formed. This is because the gradation error EjO is used.
  • the reason why the data is stored not only in the error buffer but also in the register of the CPU 102 is that it is used when judging the presence / absence of dot formation of the adjacent pixel Pjl.
  • the gradation error stored in the RAM 106 is read out and used. In FIG. 13, the hatched pixels of the raster h and the raster j indicate that the tone errors of these pixels are stored in the error buffer.
  • the numbers in the circles displayed on the pixels indicate the order in which the presence or absence of dot formation for each pixel is determined.
  • the pixel for determining the dot on / off state after the pixel PjO is the pixel P i2 in the pixel i.
  • the gradation errors considered in the dot formation determination of such pixels are the four gradation values of pixel Phi, pixel Ph2, pixel Ph3, and pixel Pil, but the gradation error used in the case of pixel Pil described above is used. Is stored, it is possible to judge the presence or absence of dot formation by simply reading out only the tone error generated at the pixel Ph3 from the RAMI 06.
  • the gradation error Ejl is stored in the register of the CPU 102 and the error buffer on the RAM 106.
  • the presence / absence of dot formation is determined alternately for the pixel of raster i and the pixel of raster j at the lower left of the pixel.
  • the processing of raster j adjacent to raster i in parallel it is possible to determine the dot on-off state of the pixel of raster j without reading the gradation error from RAMI06. That is, the frequency of reading and writing from and to the error buffer on the RAM I06 can be reduced by that much, so that it is possible to quickly determine whether or not to form a dot.
  • FIG. 15 is a flowchart showing a flow of processing for judging the presence / absence of dot formation for two rasters in parallel. This processing is performed by the CPU 102 of the computer 100. Note that, like the tone number conversion process of the first embodiment described above, the tone number conversion process of the second embodiment is performed for each color provided in the color printer. Therefore, the description will be made without specifying the color of the ink dot. When a so-called variable dot printer is used, the tone number conversion processing of the second embodiment is performed for each dot size, as in the case of the first embodiment.
  • image data of a pixel whose dot formation is to be determined is obtained from the first raster of the rasters to be processed in parallel.
  • the pixel to be processed (pixel of interest) is the n-th pixel Pin of the raster i.
  • the image data C din is stored in RAM 106.
  • a peripheral pixel is a pixel which is within a predetermined area from a target pixel and in which a gradation error is considered in determining whether or not to form a dot of the target pixel.
  • pixels in various ranges can be considered as peripheral pixels.However, in order to avoid complicating the description, the following describes the matrix of FIG. 14 (a). Are considered. Note that when reading out the gradation error of the peripheral pixel in step S302, as described with reference to FIG. 13, the readout is performed when determining the pixel Pin-1 on the left of the target pixel Pin.
  • the output gradation error of each pixel is stored in the register, and in step S302, Only the gradation error not stored in the register may be read from the RAM I06.
  • a correction data Cxin of the target pixel Pin is calculated (step S304). That is, the gradation error of the peripheral pixel is multiplied by a predetermined weight coefficient determined for each peripheral pixel, and the sum of these multiplied values and the image data C din of the pixel of interest Pin is obtained to obtain the correction data. Cxin.
  • the weight coefficients of the peripheral pixels are determined for each pixel in the matrix shown in FIG.
  • the correction data Cxin thus obtained is compared with a predetermined threshold th (step S 306), and if the correction data is larger, it is determined that a dot is formed at the pixel Pin, and a variable indicating the determination result is obtained.
  • the value “1”, which means that a dot is formed in Cr, is written (step S308). Otherwise, it is determined that no dot is to be formed in the pixel Pin, and a value “0” meaning that no dot is to be formed is written to the variable Cr (step S3110).
  • the tone error Ein generated by the determination is calculated and stored in the register of the CPU 102 (step S312).
  • the gradation error Ein can be obtained by subtracting the result value of the pixel of interest Pin from the correction data Cxin, as in the first embodiment.
  • the dot on-off state of the pixel Pin in the raster i is determined, and the gradation error is stored in the register of the CPU 102.
  • the pixel P jn-1 of the raster j on the lower left of the pixel Pin is output. For, the process for judging the presence or absence of dot formation is started.
  • the image data Cdjn-1 of the pixel Pjn-1 is read from the RAM 106 (step S314), and the gradation error of each peripheral pixel is read from the CPU 102 (step S314). 1 6). If the pixel Pin is the pixel P iO at the left end of the raster i, the same processing is performed for the imaginary pixel P j-1.
  • step S316 it is possible to read out the gradation error of the peripheral pixel from the register, and the reason why it is not necessary to read out from the error buffer on the RAM 106 will be described. As described above, since the range shown in Fig.
  • the dot of the pixel in the raster: j In determining the presence or absence of formation, the gradation error of the pixel on the same raster i and the gradation error of the pixel on the next raster j are considered.
  • the peripheral pixels are all It is only the pixels for which dot on-off status was determined shortly before.
  • the gradation error caused by judging the dot on-off state is stored in the register of the CPU 102 for a while, the gradation error of the peripheral pixels can be read without reading from the error buffer on the RAM 106. Can be read from the register.
  • the tone error of the peripheral pixel is read out for the pixel Pjn-1 in this way, the presence or absence of dot formation is determined in the same manner as in the case of the pixel Pin, and the tone error Ejn-1 resulting from the determination is calculated. That is, the correction data Cxjn-1 is calculated based on the tone error of the peripheral pixel and the image data Cdjn_l of the target pixel Pjn-1 (step S318), and the obtained correction data Cxjn-1 Is compared with a predetermined threshold th (step S320). If the correction data is larger, it is determined that a dot is to be formed at the pixel Pjn-1. This means that a dot is formed at the variable Cr indicating the determination result.
  • step S322 Write the value “1” (step S322). Otherwise, it is determined that no dot is to be formed at the pixel Pjn-1, and a value "0" is written to the variable Cr, which means that no dot is formed (step S324).
  • the result value of the pixel of interest Pjn_l is subtracted from the correction data C xjn-1 to calculate a gradation error Ejn-1 generated at the pixel of interest Pjn-1.
  • the gradation error Ejn-1 of the pixel Pjn-1 at the pixel j is obtained, the gradation error Ejn-1 is calculated by the CPU 102 and the RAM 106.
  • the data is stored in the error buffer (step S328).
  • the gradation error is stored in the register and the error buffer for the following reason.
  • the gradation error Ejn-1 of the pixel Pjn-1 is used to determine the dot on-off state of the adjacent pixel Pjn and the dot on-off state of the pixel on the next lower raster k.
  • the processing of raster i and raster j are performed in parallel, so the determination of the presence or absence of the dot formation of the adjacent pixel Pjn is made soon, but the determination of the pixel in raster k is made This is performed after the processing of i and raster j is completed.
  • the gradation error E jn_ l of the pixel P jn-1 is stored in the register of the CPU 102 for use in the judgment of the pixel P jn, and is used for the judgment of the pixel of the raster k.
  • step S330 If unprocessed pixels remain, shift the pixel position one position to the right, that is, replace “n” with the value of “n + l”, and return to step S200 to execute a series of processing. I do. If no unprocessed pixels remain, it is determined whether or not processing of all rasters has been completed (step S3332). If unprocessed rasters remain, the raster position is determined.
  • the process returns to step S200 to perform a series of processes. If there are no unprocessed rasters, the tone number conversion process shown in FIG. 15 is terminated, and the process returns to the image data conversion process shown in FIG. As described above, according to the tone number conversion process of the second embodiment, the presence / absence of dot formation is determined alternately in parallel between the pixel of raster i and the pixel of raster j.
  • the presence or absence of dot formation will be determined immediately after the pixel of raster i, or shortly thereafter, and the gradation error generated at the pixel of raster i will be stored in the error buffer. Even if this is not done, it is possible to determine the dot on-off state of the pixel of the raster j. If there is no need to store the gradation error generated in the pixel of the raster i in the error buffer, the frequency of writing to the error buffer can be reduced by that much, so that the dot on-off state can be quickly determined. It becomes possible.
  • the number of rasters to be processed in parallel is not limited to two, and the determination of dot formation for more rasters may be performed in parallel. As the number of rasters to be processed in parallel increases, the frequency of writing to the error buffer decreases, and it is possible to quickly determine whether or not to form dots.
  • C-1 Modifications:
  • the presence or absence of dot formation is determined using a method according to a method called the so-called average error minimum method. That is, the tone error generated in the target pixel is stored in the target pixel, and when determining whether or not to form a dot of a new pixel, dot formation is performed in consideration of the tone error stored in peripheral pixels. Judge the presence or absence. Further, in the tone number conversion processing of the first embodiment described above, the presence or absence of dot formation is determined using a method according to a method called a so-called error diffusion method.
  • FIG. 16 is an explanatory diagram conceptually showing a tone number conversion process according to a modification of the second embodiment. In order to avoid complication of the description, it is assumed here that raster i and raster j are processed in parallel.
  • FIG. 16 (a) is an explanatory diagram showing a state in which the presence or absence of dot formation is determined for the pixel P iO at the left end of raster i.
  • a gradation error generated in each pixel when the dot on-off state of the pixel on the raster h is determined is diffused and stored.
  • the pixel PiO stores the diffusion error EdiO diffused from the raster h
  • the pixel Pil stores the diffusion error Edil from the raster h
  • the pixel Pi2 stores the diffusion error Edi2.
  • the error diffusion matrix used is shown in Fig. 16 (b) for ease of understanding.
  • the arrow from the pixel of raster h to the pixel of raster i indicates the error from each pixel.
  • the gradation error EiO caused by the determination is stored in the register of the CPU 102, and then the dot on-off state of the pixel Pil on the right is determined.
  • the determination of the dot on-off state for the pixel Pil is performed in the same manner as in the gradation number conversion processing of the first embodiment described with reference to FIG. That is, the diffusion error Edil previously diffused and accumulated in the pixel Pil is read out, and this diffusion error Edil and the error diffused from the pixel P iO that has previously determined the dot on / off state are taken into consideration, The presence or absence of dot formation is determined based on the image data.
  • the gradation error Eil generated by the determination is stored in the register of the CPU 102 similarly to the case of the pixel PiO.
  • FIG. 16 (c) is an explanatory diagram showing a state in which the dot on-off state is determined for the pixel PjO of the raster j.
  • the presence or absence of dot formation is determined using a method according to the minimum error method. That is, the presence / absence of dot formation is determined in consideration of the gradation error generated in the peripheral pixels and a predetermined weight determined for each pixel by a matrix.
  • the matrix used is shown in Fig. 16 (d) for convenience of understanding.
  • the gradation error generated in the pixel Pio and the pixel Pil may be used.
  • a gradation error EjO is generated. This time, the diffusion error is distributed to the peripheral pixels on the raster k according to the error diffusion matrix.
  • the error diffusion matrix shown in Fig. 16 (b) is used to distribute the diffusion error.
  • the presence / absence of dot formation is determined for the pixel of raster i according to the error diffusion method, and the presence / absence of dot formation is determined for the pixel of raster j according to the minimum average error method.
  • the gradation error generated in the pixel of the raster j is diffused to the surrounding pixels according to the error diffusion method. By repeating such processing, it is possible to alternately determine whether or not to form dots for the pixels of raster i and raster j.
  • FIG. 16 (e) is an explanatory diagram conceptually showing the state of such processing. In FIG.
  • the fact that the diffusion error diffused from the raster h is stored in the pixel of the raster i is indicated by shading the pixel of the raster i.
  • the fact that the diffusion error diffused from raster j is stored in the pixel of raster k is indicated by hatching the pixel of raster k.
  • the numbers shown with circles on each pixel in FIG. 16 (e) indicate the order in which the determination of the dot on-off state of the pixel is performed.
  • the pixel of raster i and the pixel of raster j at the lower left are taken as one set, and the position of the set to be processed is moved one pixel at a time to the right to determine whether or not to form dots.
  • the processing of raster i and raster j can be performed in parallel. As described above, if the presence or absence of dot formation for the pixels of the raster i and the raster j is determined alternately and in parallel, the gradation error generated in the pixels of the raster i is used, and the pixels of the subsequent raster j are determined.
  • a method based on the error diffusion method is applied to the determination of the presence or absence of dot formation of the pixel of raster i, and a method based on the minimum average error method is applied to the determination of the pixel of raster j.
  • a method based on the minimum average error method is applied to the determination of the pixel of raster j.
  • the same effect can be obtained by applying a method based on the minimum average error method and applying the error diffusion method to the determination of the pixel of the raster j.
  • the processing of the two rasters of raster i and raster j is performed in parallel.
  • the determination of the presence or absence of formation may be performed in parallel.
  • a software program for realizing the above functions may be supplied to a main memory or an external storage device of a computer system via a communication line and executed.
  • a program that reads and executes a software program stored in a CD-ROM or a floppy disk may be used.
  • the image data conversion processing including the gradation number conversion processing has been described as being executed in the computer, but part or all of the image data conversion processing is performed on the printer side or in the dedicated It may be executed by using the image processing apparatus described above.
  • the image display device is not necessarily limited to a printing device that prints an image by forming ink dots on a print medium.For example, it is necessary to disperse luminescent spots at an appropriate density on a liquid crystal display screen. Thus, a liquid crystal display device that expresses an image whose gradation continuously changes may be used. Industrial applicability
  • image data can be quickly converted without deteriorating the image quality, and thus, it is suitable as an image output device.
  • the present invention is suitably applied to a printing apparatus which prints high-quality images by handling large-size image data or prints images quickly without deteriorating image quality. Can be.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Color Image Communication Systems (AREA)

Description

明細書 画像処理装置、 印刷制御装置、 画像処理方法、 および記録媒体 技術分野
この発明は、 画像を構成する複数の画素の階調値で表現された画像データ を変換する技術に関し、 詳しくは、 該画像データを各画素についてのドット の形成有無による表現形式の画像データに変換する技術に関する。 背景技術
印刷媒体や液晶画面といった表示媒体上にドットを形成することで画像 を表現する画像表示装置は、 各種画像機器の出力装置として広く使用されて いる。 かかる画像表示装置は、 局所的にはドットを形成するか否かのいずれ かの状態しか表現し得ないが、 画像の階調値に応じてドッ卜の形成密度を適 切に制御することによって、 階調が連続的に変化する画像を表現することが 可能となっている。
これら画像表示装置において、 画像の階調値に応じて適切な密度でドッ卜 が形成されるように、 各画素についてドット形成の有無を判断するための手 法には、 例えば誤差拡散法と呼ばれる手法や、 これと数学的に等価な平均誤 差最小法と呼ばれる手法などがある。
誤差拡散法と呼ばれる手法は、 着目画素にドットを形成したこと、 あるい はドットを形成しなかったことによって生じる階調表現の誤差を、 着目画素 周辺の未判断画素に拡散して記憶しておき、 未判断画素についてのドット形 成有無を判断するにあたっては、 周辺画素から拡散されてきた誤差を解消す るようにドット形成有無を判断する手法である。 また、 平均誤差最小法と呼 ばれる手法は、 ドット形成有無の判断により生じた階調表現の誤差を周辺画 素に拡散することなく着目画素に記憶しておき、 その代わりに、 未判断画素 についてのドット形成有無を判断するに際しては、 周辺画素に記憶されてい る誤差を読み出してこれらの誤差を打ち消すように、 着目画素についてのド ット形成有無を判断する手法である。
これらいずれの手法においても、画像は多数の画素で構成されているので, 全画素についてのドット形成有無の判断を同時に行うことは不可能である。 一方、 画像データは、 原画像を走査して生成される関係上、 走査して得られ た画素の列 (ラスタと呼ばれる) の順序に従って供給される。 これらの理由 から、 ドット形成有無の判断は、 画像を構成するラスタに沿って行われる。 すなわち、 ラスタの端部にある画素から順番にドット形成有無の判断を行い、 そのラスタにある全画素の判断が終了したら、 隣のラスタの処理を開始する ( かかる方法においては、 画像上で互いに隣接する画素であっても、 異なるラ ス夕に属する画素は連続して処理されるわけではないので、 ドット形成判断 により生じる階調表現の誤差を誤差バッファに蓄えておき、 必要になったと きに誤差バッファから読み出して使用する。 このようにして、 周辺画素で発 生した階調表現の誤差を反映させながら、 誤差を解消するようにドット形成 の有無を判断することにより、 画像の階調値に応じた適切な密度でドットを 形成することができ、 その結果、 画像表示装置上に、 高画質な画像を表示す ることが可能となる。 しかし、 かかる方法では、 ドット形成有無の判断を行う度に生じる階調表 現の誤差を、 誤差バッファに頻繁に読み書きしなければならず、 ドット形成 有無の判断を迅速に行うことができないという問題があった。 すなわち、 誤 差拡散法においては、 周辺画素に拡散すべき拡散誤差をドッ卜形成有無を判 断する度に誤差バッファに書き込まなければならず、 あるいは平均誤差最小 法においては、 周辺画素で生じた階調表現の誤差をドッ卜形成有無の判断の 度に誤差バッファから読み出さなければならず、 いずれの場合も誤差バッフ ァに対して頻繁に読み書きを行う分だけ、 ドット形成有無の判断に時間が必 要となっていた。 ドット形成有無の判断に時間がかかれば、 画像を迅速に表 示することは困難となる。
この発明は、 従来技術における上述の課題を解決するためになされたもの であり、 画質の悪化を招くことなく、 ドット形成有無の判断に要する時間を 短縮化することによって、 高画質の画像を迅速に表示可能な技術を提供する ことを目的とする。 発明の開示
上述の課題の少なくとも一部を解決するため、 本発明の第 1の画像処理装 置は、 次の構成を採用した。 すなわち、
画素毎の階調値を示す画像データを受け取り、 該画素の列たるラス夕に沿 つて、 該ラスタを構成する各画素でのドット形成の有無を判断することで、 該画像デ一夕をドット形成の有無による表現形式に変換する画像処理装置 であって、
互いに隣接した複数本の前記ラスタをまとめてラスタ群を生成するラス 夕群生成手段と、
前記ラスタ群の中の最後尾にある最後尾ラスタを選択し、 該最後尾ラスタ を構成する各画素についてドット形成の有無を判断することによって、該最 後尾ラス夕をドット形成の有無を表すドット列に変換する最後尾ラスタ変 換手段と、
前記ドッ卜形成の有無を判断することにより各画素で生じた階調誤差を、 前記最後尾ラス夕を構成する各画素について算出し、 該各画素の周辺にある 複数の未判断の画素に拡散する第 1の誤差拡散手段と、
前記最後尾ラスタに隣接するラスタ群の中の先頭位置にある先頭ラスタ を選択し、 該最後尾ラスタから該先頭ラスタの各画素に拡散された前記階調 誤差を考慮しながら、 該先頭ラス夕を構成する各画素についてドット形成の 有無を判断することによって、 該先頭ラス夕をドット形成の有無を表すドッ ト列に変換する先頭ラスタ変換手段と、
前記先頭ラス夕を構成する各画素で生じた前記階調誤差を、 該各画素の周 辺にある未判断の画素に拡散する第 2の誤差拡散手段と、
前記ラスタ群から前記先頭ラスタを除いた残余ラス夕については、 該残余 ラスタと同じラスタ群に属し且つドット形成有無を判断済みの画素から拡 散された前記階調誤差を考慮しながら該残余ラスタの各画素のドット形成 有無を判断することにより、 該先頭ラス夕を前記ドット列に変換する処理に 並行して該残余ラスタをドット列に変換する残余ラスタ変換手段と
を備え、
前記第 1の誤差拡散手段および前記第 2の誤差拡散手段は、 前記ドット形 成の有無を判断した画素とは異なるラスタ群の画素に拡散された誤差につ いては第 1の誤差記憶部に記憶し、 該ドッ卜形成有無を判断した画素と同じ ラスタ群の画素に拡散された誤差については第 2の誤差記憶部に記憶する 手段であることを要旨とする。 また、 上記の第 1の画像処理装置に対応する本発明の第 1の画像処理方法 は、
画素毎の階調値を示す画像データを受け取り、 該画素の列たるラスタに沿 つて、 該ラスタを構成する各画素でのドット形成の有無を判断することで、 該画像データをドット形成の有無による表現形式に変換する画像処理方法 であって、
(A ) 互いに隣接した複数本の前記ラスタをまとめてラスタ群を生成する 工程と、
( B ) 前記ラスタ群の中の最後尾にある最後尾ラスタを選択し、 該最後尾 ラス夕を構成する各画素についてドッ卜形成の有無を判断することによつ て、 該最後尾ラスタをドット形成の有無を表すドット列に変換する工程と、
( C ) 前記ドット形成の有無を判断することにより各画素で生じた階調誤 差を、 前記最後尾ラス夕を構成する各画素について算出し、 該各画素の周辺 にある複数の未判断の画素に拡散する工程と、 '
( D ) 前記最後尾ラスタに隣接するラスタ群の中の先頭位置にある先頭ラ スタを選択し、 該最後尾ラスタから該先頭ラスタの各画素に拡散された前記 階調誤差を考慮しながら、 該先頭ラス夕を構成する各画素についてドッ卜形 成の有無を判断することによって、 該先頭ラス夕をドット形成の有無を表す ドット列に変換する工程と、
( E ) 前記先頭ラスタを構成する各画素で生じた前記階調誤差を、 該各画 素の周辺にある未判断の画素に拡散する工程と、
( F ) 前記ラスタ群から前記先頭ラスタを除いた残余ラスタについては、 該残余ラスタと同じラスタ群に属し且つドッ卜形成有無を判断済みの画素 から拡散された前記階調誤差を考慮しながら該残余ラスタの各画素のドッ 卜形成有無を判断することにより、 該先頭ラスタを前記ドッ卜列に変換する 処理に並行して該残余ラスタをドット列に変換する工程と
を備え、
前記工程 (C ) および前記工程 (E ) は、 前記ドット形成の有無を判断し た画素と同じラスタ群の画素に拡散された誤差と、 異なるラスタ群の画素に 拡散された誤差とを区別して記憶する工程であることを要旨とする。 かかる第 1の画像処理装置および画像処理方法においては、 所定本数の隣 接したラスタから成るラスタ群を単位として、 該ラスタ群を構成する各ラス 夕について、 各画素のドット形成有無を判断することにより、 各ラスタをド ット列に変換する。 ここで、 ドット形成有無の判断によって生じた階調誤差 を周辺の未判断画素に拡散させるに際して、 該階調誤差の生じた判断画素と 同じラスタ群に属する画素に拡散された誤差と、 該判断画素と異なるラスタ 群の画素に拡散された誤差とを区別して記憶する。 先頭ラスタについては、 隣接するラス夕群の画素から拡散されて記憶されている階調誤差を読み出 しながらドット形成の有無を判断することにより、 該先頭ラスタをドット列 に変換する。 一方、 前記残余ラスタについては、 該残余ラス夕と同じラスタ 群に属し且つドット形成有無を判断済みの画素から拡散されて記憶されて いる階調誤差を考慮しながらドット形成有無を判断することにより、 該先頭 ラスタを前記ドット列に変換する処理に並行して、 該残余ラス夕をドット列 に変換する。 このように、 前記残余ラスタをドット列に変換する処理を、 前記先頭ラス 夕をドット列に変換する処理と並行して実行することとすれば、 ラスタ群の 画像データを迅速に変換することができる。 また、 画像データをラスタ群単 位で変換することから、 同じラス夕群に属する画素に拡散された誤差は、 異 なるラス夕群に属する画素に拡散された誤差よりも早い時期に読み出され ることになる。 従って、 同じラスタ群に属する画素に拡散された誤差と、 異 なるラスタ群に属する画素に拡散された誤差とを区別して記憶しておけば、 誤差を迅速に読み出すことができ、 延いては、 ラスタ群単位で画像データを 変換する処理を更に迅速に実行することが可能となる。 こうした画像処理装置においては、 同じラス夕群の画素に拡散される誤差 を、 異なるラスタ群の画素への誤差よりも、 データの記憶あるいは読み出し の少なくとも一方を迅速に実行可能に記憶することとしても良い。
画像データをラスタ郡単位で変換する場合、 ドッ卜形成有無を判断するこ とによって生じる階調誤差は、 異なるラス夕群の画素よりも、 同じラスタ群 に属する画素に拡散されることが多い。 従って、 同じラスタ群に属する画素 に拡散される誤差を、 異なるラスタ群に属する画素に拡散される誤差よりも、 デ一夕の記憶あるいは読み出しの少なくとも一方を迅速に実行可能に記憶 しておけば、 誤差を拡散する処理を効果的に迅速化することができるので好 ましい。 かかる画像処理装置においては、 異なるラスタ群の画素に拡散された誤差 については、 前記先頭ラス夕を構成する画素の数と少なくとも同数以上の画 素数分を同時に記憶可能とするとともに、 同じラスタ群の画素に拡散された 誤差については該先頭ラス夕を構成する画素の数より少数の画素数分だけ 同時に記憶可能としてもよい。
画像データをラスタ群単位で変換する場合、 同じラスタ群の画素に拡散さ れる誤差は、 該ラスタ群の画像データを変換中に使用され、 それ以降は記憶 しておく必要が無くなるので、 該誤差を記憶していた記憶部は、 該ラスタ群 に属する他の画素に拡散される誤差を記憶することが可能となる。 従って、 同じラス夕群の画素に拡散された誤差については該先頭ラス夕を構成する 画素の数よりも小数の画素数分だけ記憶可能とすれば、 記憶部を効率的に使 用することが可能となるので好ましい。 上述した画像データの変換をコンピュータを用いて行う画像処理装置に おいては、 同じラスタ群の画素に拡散された誤差は、 該コンピュータの演算 装置がデ一夕の書き込みあるいは読み出しを直接に実行可能な記憶素子に 記憶され、 異なるラスタ群の画素に拡散された誤差は、 該演算装置がデータ —の書き込みあるいは読み出しを間接的に実行する記憶素子に記憶すること としてもよい。
コンピュータの演算装置からデータを直接に書き込みあるいは読み出し 可能な記憶素子は、迅速な書き込みあるいは読み出しが可能であり、従って、 このような記憶素子に記憶することで、 同じラスタ群の画素に拡散された誤 差を迅速に記憶あるいは読み出すことが可能となるので好ましい。 尚、 かか る記憶素子は、 データの書き込みあるいは読み出しのいずれか一方を、 前記 演算装置から直接に実行可能であることに限られず、 書き込みおよび読み出 しのいずれも演算装置から直接に実行可能な記憶素子であってもよいこと は言うまでもない。 かかる画像処理装置においては、 前記最後尾ラスタの各画素で発生した階 調誤差を、 前記ドット形成の有無を判断した画素の周辺にあって、 異なるラ ス夕群に属する未判断の画素に拡散させるに際して、 前記最後尾ラス夕に隣 接する前記先頭ラスタの画素のみに拡散するようにしてもよい。
こうすれば、 異なるラスタ群の画素から階調誤差が拡散されるのは前記先 頭ラスタの画素のみとなり、 前記残余ラスタの画素に拡散されることはない t このため、 前記先頭ラスタの各画素のドット形成有無を判断する際にだけ、 前記第 1の誤差記憶部に記憶されている誤差を読み出してドッ卜形成有無 を判断し、 残余ラスタについては、 第 2の誤差記憶部に記憶されている誤差 を読み出してドット形成有無を判断すればよい。 その結果、 全体としての処 理が簡略化されるので、 ドッ卜形成有無を判断する処理を迅速に行うことが 可能となって好ましい。 更に、 かかる画像処理装置においては、 ラス夕 2本ずつ画像データを前記 ドット列に変換することとして、 該 2本のラスタのうちの前側にある先頭ラ ス夕と、 後ろ側にある最後尾ラスタとを次のようにドット列に変換してもよ い。 すなわち、 該最後尾ラス夕の各画素についてドット形成の有無を判断す ることによって生じた階調誤差は、 該最後尾ラスタの画素と該最後尾ラス夕 に隣接するラス夕群の前記先頭ラスタの画素とに拡散する。 また、 該先頭ラ ス夕の各画素についてドット形成の有無を判断することによって生じた階 調誤差は、 該先頭ラスタの画素と該先頭ラスタに後続する最後尾ラスタの画 素とに拡散する。 こうして拡散されてきた階調誤差を考慮しながら、 各ラス 夕群の最後尾ラスタの各画素についてのドット形成の有無を判断すること としてもよい。
.こうしてラスタ 2本ずつドット列に変換して行くこととすれば、 複数のラ ス夕を並行してドット列に変換する処理を、 簡便な処理により行うことがで きるので好適である。 かかる画像処理装置においては、 各画素についてドット形成の有無を判断 することによって生じた階調誤差を、 該階調誤差が生じた画素から所定値以 上遠方にある未判断画素に拡散させるに際しては、 該ドッ卜形成の有無を判 断したラスタ群と異なるラスタ群の画素にのみ拡散することとしても良い。
ドット形成の有無を判断することによって生じた階調誤差を、 遠方の未判 断画素に拡散させる場合、 拡散させる画素の位置が多少ずれていても画質を 大きく損なうことはない。 従って、 遠方の未判断画素に拡散させる場合は、 ドット形成有無を判断したラスタ群とは異なるラスタ群の画素にまとめて 拡散させることとすれば、 誤差を拡散させる処理を単純にすることができる ので好ましい。 また、 前述した課題の少なくとも一部を解決するため、 本発明の第 2の画 像処理装置は、 次の構成を採用した。 すなわち、 画素毎の階調値を示す画像データを受け取り、 該画素の列たるラスタに沿 つて、 該ラスタを構成する各画素でのドット形成の有無を判断することで、 該画像データをドット形成の有無による表現形式に変換する画像処理装置 であって、
互いに隣接した複数本の前記ラスタをまとめてラスタ群を生成するラス 夕群生成手段と、
前記ラスタ群の最後尾にある最後尾ラスタを少なくとも含んで該ラスタ 群の中からラスタを選択し、 該選択したラスタを構成する各画素についてド ッ卜形成の有無を判断することによって、 該選択したラスタをドット形成の 有無を表すドット列に変換する選択ラスタ変換手段と、
前記ドッ卜形成の有無を判断することにより各画素で生じた階調誤差を、 前記選択したラス夕を構成する各画素について算出し、 該判断を行った各画 素に対応付けて第 1の記憶部に記憶する第 1の階調誤差記憶手段と、
前記最後尾ラスタに隣接するラスタ群の中の先頭位置にある先頭ラスタ を選択し、 該先頭ラスタを構成する各画素の周辺にあって、 ドット形成有無 を判断済みの周辺画素に記憶されている前記階調誤差を考慮しながら、 該各 画素のドット形成有無を判断することによって、 該先頭ラスタをドット列に 変換する先頭ラス夕変換手段と、
前記先頭ラスタを構成する各画素で生じた前記階調誤差を、 前記判断を行 つた各画素に対応付けて第 2の記憶部に記憶する第 2の階調誤差記憶手段 と、
前記ラスタ群から前記先頭ラスタを除いた残余ラスタについては、 該残余 ラスタと同じラスタ群に属し且つドッ卜形成有無を判断済みの画素で生じ た前記階調誤差を考慮しながら該残余ラスタの各画素のドット形成有無を 判断することにより、 前記先頭ラスタを前記ドット列に変換する処理と並行 して該残余ラス夕をドッ卜列に変換する残余ラスタ変換手段と
を備えていることを要旨とする。 かかる第 2の画像処理装置に対応する本発明の第 2の画像処理方法は、 画素毎の階調値を示す画像データを受け取り、 該画素の列たるラスタに沿 つて、 該ラスタを構成する各画素でのドット形成の有無を判断することで、 該画像データをドッ卜形成の有無による表現形式に変換する画像処理方法 であって、
( A ) 互いに隣接した複数本の前記ラスタをまとめてラスタ群を生成する 工程と、
( B ) 前記ラスタ群の最後尾にある最後尾ラスタを少なくとも含んで該ラ ス夕群の中からラスタを選択し、 該選択したラスタを構成する各画素につい てドット形成の有無を判断することによって、 該選択したラスタをドット形 成の有無を表すドット列に変換する工程と、
( C ) 前記ドット形成の有無を判断することにより各画素で生じた階調誤 差を、 前記選択したラスタを構成する各画素について算出し、 該判断を行つ た各画素に対応付けて記憶する工程と、
(D ) 前記最後尾ラス夕に隣接するラス夕群の中の先頭位置にある先頭ラ スタを選択し、 該先頭ラスタを構成する各画素の周辺にあって、 ドット形成 有無を判断済みの周辺画素に記憶されている前記階調誤差を考慮しながら、 該各画素のドッ卜形成有無を判断することによって、 該先頭ラス夕をドッ卜 列に変換する工程と、 .
( E ) 前記先頭ラスタを構成する各画素で生じた前記階調誤差を、 前記ェ 程 (C ) で記憶された階調誤差とは区別しながら、 前記判断を行った各画素 に対応付けて記憶する工程と、
( F ) 前記ラス夕群から前記先頭ラスタを除いた残余ラスタについては、 該残余ラスタと同じラスタ群に属し且つドッ卜形成有無を判断済みの画素 で生じた前記階調誤差を考慮しながら該残余ラスタの各画素のドッ卜形成 有無を判断することにより、 前記先頭ラスタを前記ドッ卜列に変換する処理 と並行して該残余ラスタをドッ卜列に変換する工程と
を備えていることを要旨とする。 かかる第 2の画像処理装置および画像処理方法においても、 前述の第 1の 画像処理装置および画像処理方法と同様に、 所定本数の隣接したラス夕から 成るラスタ群を単位として、 該ラスタ群を構成する各ラスタについて、 各画 素のドッ卜形成有無を判断することにより、 各ラスタをドッ卜列に変換する c このとき、 第 2の画像処理装置および画像処理方法においては、 前記最後尾 ラスタの各画素で発生した階調誤差を該判断を行った各画素に対応付けて 記憶しておき、 前記先頭ラスタの画素のドット形成有無を判断するに際して は、 該画素の周辺の前記最後尾ラスタの各画素に記憶されている階調誤差を 読み出してドット形成有無を判断する。 こうして先頭ラスタの各画素で生じ た階調誤差は、 前記最後尾ラスタの各画素で生じた階調誤差とは区別して記 憶しておく。 前記残余ラスタについては、 該残余ラスタと同じラスタ群に属 し且つドッ卜形成有無を判断済みの画素で生じた階調誤差を考慮しつつド ット形成有無を判断することにより、 該先頭ラスタを前記ドッ卜列に変換す る処理に並行して、 該残余ラスタをドット列に変換する。
こうして、 前記先頭ラスタと残余ラスタとを並行してラスタ群単位で画像 データをドット列に変換すれば、 画像データを迅速に変換することが可能と なる。 また、 画像データをラスタ群単位で変換することから、 処理中のラス 夕群の前記最後尾ラスタで生じた階調誤差は、 他のラスタで生じた階調誤差 とは違って、 現在のラス夕群の処理が終了してから読み出されるとことにな る。 従って、 ラスタ群の最後尾ラスタで生じた階調誤差と、 他のラス夕で生 じた階調誤差とを区別して記憶しておけば、 誤差を迅速に読み出すことがで き、 延いては、 画像デ一夕を迅速に変換することが可能となる。 こうした画像処理装置においては、 最後尾ラスタ以外のラス夕で生じた階 調誤差を、 最後尾ラスタで生じた階調誤差よりも、 データの記憶あるいは読 み出しの少なくとも一方を迅速に実行可能に記憶することとしても良い。 画像データをラスタ郡単位で変換する場合、 1つのラスタ群に最後尾ラス 夕は 1本しか存在しないが他のラスタは 1本以上存在するので、 ドット形成 有無を判断する際に、 最後尾ラスタで生じた階調誤差よりも、 最後尾ラスタ 以外のラス夕で生じた階調誤差の方が頻繁に読み出されることになる。従つ て、 最後尾ラスタ以外のラスタで生じた階調誤差を、 最後尾ラスタで生じた 階調誤差よりも、 デ一夕の記憶あるいは読み出しの少なくとも一方を迅速に 実行可能に記憶しておけば、 ラスタ郡単位で変換する処理を効果的に迅速化 することができるので好ましい。
かかる画像処理装置においては、 前記最後尾ラスタの各画素で生じた階調 誤差については、 該最後尾ラス夕を構成する画素と少なくとも同数以上の画 素数分を同時に記憶可能とするとともに、 前記先頭ラスタの各画素で生じた 階調誤差については、 該先頭ラスタを構成する画素よりも少数の画素数分だ け同時に記憶可能としてもよい。
画像データをラスタ群単位で変換する場合、 ドット形成有無の判断によつ て生じた階調誤差は、 同じラスタ群の画素についてのドット形成有無の判断 に使用され、 それ以降は記憶しておく必要が無くなるので、 該階調誤差を記 憶していた記憶部は、 同じラスタ群に属する他の画素で生じた階調誤差を記 憶するために使用することができる。 従って、 先頭ラスタの各画素で生じた 階調誤差については、 該先頭ラスタを構成する画素よりも少数の画素数分だ け記憶可能とすることで、 記憶部が効率的に使用されることとなって好まし い。 上述した画像データの変換をコンピュータを用いて行う画像処理装置に おいては、 前記先頭ラスタの各画素で生じた階調誤差は、 該コンピュータの 演算装置がデ一夕の書き込みあるいは読み出しを直接に実行可能な記憶素 子に記憶され、 前記最後尾ラスタの各画素で生じた階調誤差は、 該演算装置 がデータの書き込みあるいは読み出しを間接的に実行する記憶素子に記憶 することとしてもよい。
コンピュータの演算装置からデータを直接に書き込みあるいは読み出し 可能な記憶素子は、迅速な書き込みあるいは読み出しが可能であり、従って、 先頭ラスタの画素で生じた階調誤差をこのような記憶素子に記憶すれば、 ラ ス夕群の画像データを迅速に変換することが可能となるので好ましい。 尚、 かかる記憶素子は、 該演算装置からデ一夕の書き込みおよび読み出しのいず れも実行可能な記憶素子であってもよいことは言うまでもない。 かかる第 2の画像処理装置においては、 前記ラスタ群の中の前記最後尾ラ スタについてのみ、 該ラスタを構成する各画素で生じた階調誤差を、 該各画 素毎に記憶しておき、 前記先頭ラス夕についてのドット形成有無を判断する 際に考慮する前記階調誤差として、 前記最後尾ラスタの各画素の階調誤差を 考慮しながら、 前記先頭ラスタを前記ドット列に変換することとしても良い ( こうすれば、 前記先頭ラスタの各画素のドット形成有無を判断する際にだ け、 異なるラスタ群に属する前記最後尾ラス夕の画素で発生した階調誤差を 読み出せばよく、 残余ラスタの各画素のドット形成有無を判断する際には、 異なるラスタ群の画素で生じた階調誤差を読み出さなくてもよいので、 ラス 夕群の画像データを迅速に変換することができる。 更に、 かかる画像処理装置においては、 ラスタ 2本ずつ画像データを前記 ドット列に変換することとして、 該 2本のラス夕のうちの前側にある先頭ラ ス夕と、 後ろ側にある最後尾ラスタとを次のようにドット列に変換してもよ レ^ すなわち、 最後尾ラス夕で生じた階調誤差のみを前記第 1の記憶部に記 憶しておき、 先頭ラスタを構成する各画素のドッ卜形成有無を判断するに際 しては、 該最後尾ラスタの各画素に記憶されている階調誤差を読み出して判 断して、 各画素で生じた階調誤差は、 前記第 2の記憶部に記憶する。 該先頭 ラスタに後続する最後尾ラスタについては、 該先頭ラス夕をドット列に変換 することに並行して、 該先頭ラスタの各画素で生じた階調誤差を考慮しなが らドット列に変換する。
こうしてラスタ 2本ずつドッ 卜列に変換して行くこととすれば、 複数のラ スタを並行してドッ卜列に変換する処理を、 簡便な処理により行うことがで きるので好適である。 かかる第 1の画像処理装置あるいは第 2の画像処理装置においては、 前記 先頭ラスタの各画素で生じた階調誤差を反映させつつ前記残余ラスタをド ット列に変換するために、 該先頭ラスタから該残余ラスタの各画素に拡散さ れてきた拡散誤差を考慮しながらドット形成有無を判断することによって、 該残余ラスタをドット列に変換することとしても良い。 あるいは、 該先頭ラ ス夕の各画素で生じた階調誤差を考慮しながらドット形成有無を判断する ことによって、 該残余ラスタをドット列に変換することとしても良い。
これらの方法を用いれば、 前記先頭ラス夕の各画素で生じた階調誤差を反 映させながら、 前記残余ラスタをドット列に変換することができるので好適 である。 また、 印刷媒体上にインクドッ卜を形成して画像を印刷する印刷部に対し て、 インクドットの形成を制御するための印刷データを出力することで、 該 印刷部を制御する印刷制御装置においては、 本発明の上述した第 1の画像処 理装置あるいは第 2の画像処理装置を好適に利用することができる。
すなわち、 上述した第 1の画像処理装置あるいは第 2の画像処理装置にお いては、 各画素の階調値を示す画像データを受け取り、 該画像データをドッ 卜の形成有無による画像データに迅速に変換することができる。 このため、 かかる第 1の画像処理装置あるいは第 2の画像処理装置を、 前記印刷制御装 置に適用すれば、 画像データを印刷データに迅速に変換することができる。 こうして得られた印刷データを、 前記印刷部に出力すれば、 該印刷部では高 画質な画像を迅速に印刷することが可能となるので好適である。 また、 本発明は、 上述した第 1の画像処理方法、 あるいは第 2の画像処理 方法を実現するプログラムをコンピュータに読み込ませ、 コンピュータを用 いて実現することも可能である。 従って、 本発明は次のような記録媒体とし ての態様も含んでいる。 すなわち、 上述の第 1の画像処理方法に対応する記 録媒体は、
画素毎の階調値を示す画像データを受け取り、 該画素の列たるラスタに沿 つて、 該ラスタを構成する各画素でのドット形成の有無を判断することで、 該画像データをドット形成の有無による表現形式に変換する方法を実現す るプログラムを、 コンピュータで読みとり可能に記録した記録媒体であって、
( A) 互いに隣接した複数本の前記ラスタをまとめてラスタ群を生成する 機能と、
( B ) 前記ラス夕群の中の最後尾にある最後尾ラスタを選択し、 該最後尾 ラス夕を構成する各画素についてドット形成の有無を判断することによつ て、 該最後尾ラス夕をドット形成の有無を表すドット列に変換する機能と、
( C ) 前記ドット形成の有無を判断することにより各画素で生じた階調誤 差を、 前記最後尾ラスタを構成する各画素について算出し、 該各画素の周辺 にある複数の未判断の画素に拡散する機能と、
(D ) 前記最後尾ラスタに隣接するラスタ群の中の先頭位置にある先頭ラ スタを選択し、 該最後尾ラスタから該先頭ラスタの各画素に拡散された前記 階調誤差を考慮しながら、 該先頭ラスタを構成する各画素についてドット形 成の有無を判断することによって、 該先頭ラスタをドット形成の有無を表す ドット列に変換する機能と、
( E ) 前記先頭ラスタを構成する各画素で生じた前記階調誤差を、 該各画 素の周辺にある未判断の画素に拡散する機能と、
( F ) 前記ラス夕群から前記先頭ラス夕を除いた残余ラス夕については、 該残余ラスタと同じラスタ群に属し且つドット形成有無を判断済みの画素 から拡散された前記階調誤差を考慮しながら該残余ラスタの各画素のドッ 卜形成有無を判断することにより、 該先頭ラスタを前記ドット列に変換する 処理に並行して該残余ラスタをドット列に変換する機能と
を実現するプログラムを記録するとともに、
前記機能 (C ) および前記機能 (E ) として、 前記ドット形成の有無を判 断した画素と同じラスタ群の画素に拡散された誤差と、 異なるラスタ群の画 素に拡散された誤差とを区別して記憶する機能を実現するプログラムを記 録していることを要旨とする。 また、 上述の第 2の画像処理方法に対応する記録媒体は、
画素毎の階調値を示す画像データを受け取り、 該画素の列たるラスタに沿 つて、 該ラスタを構成する各画素でのドッ卜形成の有無を判断することで、 該画像データをドット形成の有無による表現形式に変換する方法を実現す るプログラムを、 コンピュータで読みとり可能に記録した記録媒体であって、
( A ) 互いに隣接した複数本の前記ラスタをまとめてラスタ群を生成する 機能と、
( B ) 前記ラスタ群の最後尾にある最後尾ラスタを少なくとも含んで該ラ スタ群の中からラスタを選択し、 該選択したラスタを構成する各画素につい てドット形成の有無を判断することによって、 該選択したラスタをドッ卜形 成の有無を表すドット列に変換する機能と、
( C ) 前記ドット形成の有無を判断することにより各画素で生じた階調誤 差を、 前記選択したラスタを構成する各画素について算出し、 該判断を行つ た各画素に対応付けて記憶する機能と、
( D ) 前記最後尾ラスタに隣接するラス夕群の中の先頭位置にある先頭ラ スタを選択し、 該先頭ラスタを構成する各画素の周辺にあって、 ドット形成 有無を判断済みの周辺画素に記憶されている前記階調誤差を考慮しながら、 該各画素のドッ卜形成有無を判断することによって、 該先頭ラスタをドッ卜 列に変換する機能と、
( E ) 前記先頭ラスタを構成する各画素で生じた前記階調誤差を、 前記ェ 程 (C ) で記憶された前記階調誤差とは区別しながら、 前記判断を行った各 画素に対応付けて記憶する機能と、
( F ) 前記ラス夕群から前記先頭ラス夕を除いた残余ラス夕については、 該残余ラスタと同じラスタ群に属し且つドット形成有無を判断済みの画素 で生じた前記階調誤差を考慮しながら該残余ラス夕の各画素のドッ卜形成 有無を判断することにより、 前記先頭ラス夕を前記ドット列に変換する処理 と並行して該残余ラスタをドット列に変換する機能と
を実現するプログラムを記録していることを要旨とする。 これら記録媒体に記録されているプログラムをコンピュータに読み込ま せ、 該コンピュータを用いて上述の各種機能を実現すれば、 画素毎の階調値 を示す画像デ一夕を、 ドット形成の有無による表現形式の画像データに迅速 に変換することが可能となる。 図面の簡単な説明
図 1は、 本実施例の印刷システムの概略構成図。
図 2は、 本実施例の画像処理装置としてのコンピュータの構成を示す説明 図。
図 3は、 本実施例の画像表示装置としてのプリンタの概略構成図。
図 4は、 本実施例の画像処理装置で行われる画像データ変換処理の流れを 示すフローチャート。
図 5は、 誤差拡散法を用いてドットの形成有無を判断する様子を概念的に 示す説明図。
図 6は、 画素毎に誤差拡散係数が設定されている様子を例示する説明図。 図 7は、 第 1実施例の階調数変換処理において、 複数のラスタの処理を並 行して行うことにより処理時間を短縮化する原理を示す説明図。
図 8は、 第 1実施例の階調数変換処理の流れを示すフローチャート。
図 9は、 第 1実施例の階調数変換処理の第 1の変形例において、 複数のラ スタを並行して処理している様子を概念的に示す説明図。
図 1 0は、 第 1実施例の階調数変換処理の第 2の変形例において、 複数の ラスタを並行して処理している様子を概念的に示す説明図。
図 1 1は、 第 1実施例の階調数変換処理の第 3の変形例において、 複数の ラスタを並行して処理している様子を概念的に示す説明図。
図 1 2は、 第 1実施例の階調数変換処理の第 4の変形例において、 遠方に 拡散する誤差については誤差バッファのある画素に拡散する誤差拡散マト リックスを概念的に示す説明図。
図 1 3は、 第 2実施例の階調数変換処理において、 複数のラス夕の処理を 並行して行うことにより処理時間を短縮化する原理を示す説明図。
図 1 4は、 第 2実施例の変形例の階調数変換処理において、 重み係数が画 素毎に設定されている様子を例示する説明図。 図 1 5は、 第 2実施例の階調数変換処理の流れを示すフローチャート。 図 1 6は、 第 2実施例の階調数変換処理の第 1の変形例において、 複数の ラスタを並行して処理している様子を概念的に示す説明図。 発明を実施するための最良の形態
本発明の作用 ·効果をより明確に説明するために、本発明の実施の形態を、 次のような順序に従って以下に説明する。
A. 実施の形態:
B. 第 1実施例:
B- 1. 装置構成:
B- 2. 画像データ変換処理の概要:
B— 3. 第 1実施例の階調数変換処理:
B-4. 変形例:
C. 第 2実施例:
C一 1. 第 2実施例の階調数変換処理:
C- 2. 変形例:
A. 実施の形態:
図 1を参照しながら、 本発明の実施の形態について説明する。 図 1は、 印 刷システムを例にとって、 本発明の実施の形態を説明するための説明図であ る。 本印刷システムは、 画像処理装置としてのコンピュータ 1 0と、 カラー プリンタ 20等から構成されている。 コンピュータ 1 0は、 デジタルカメラ やカラースキャナなどの画像機器からカラー画像の階調画像データを受け 取ると、 該画像データを、 カラープリンタ 2 0で印刷可能な各色ドットの形 成有無により表現された印刷データに変換する。 かかる画像データの変換は、 プリンタドライバ 1 2と呼ばれる専用のプログラムを用いて行われる。 尚、 カラ一画像の階調画像データは、 各種アプリケーションプログラムを用いて コンピュータ 1 0で作成することもできる。
プリンタドライバ 12は、 解像度変換モジュール, 色変換モジュール, 階 調数変換モジュール, ィンターレ一スモジュールといった複数のモジュール から構成されている。 階調数変換モジュールは、 階調画像データをドット形 成の有無による表現形式に変換する処理を行うモジュールである。本実施例 の階調数変換モジュールは、 着目画素についてのドット形成の有無を判断し ようとする際に、 周辺画素で発生した階調誤差を考慮して誤差を解消するよ うに着目画素のドット形成有無を判断している。他の各モジュールで行われ る処理については後述する。 カラープリンタ 2 0は、 これら各モジュールで 変換された印刷データに基づいて、 印刷媒体上に各色インクドットを形成す ることによってカラ一画像を印刷する。
プリンタドライバ. 1 2に供給される画像データは、 図 1に概念的に示した ように、 原稿画像を構成する各画素の階調値を、 画像の端から 1ラスタ分ず つ順番に出力したようなデータ構造となっている。 プリン夕ドライノ 1 2内 の解像度変換モジュール、 色変換モジュールは、 供給される画像データのデ 一夕構造に従って、 1ラスタずつそれぞれの処理を行うが、 本発明の印刷シ ステムにおける階調数変換モジュールでは、 後述する方法により、 互いに隣 接する所定本数のラスタの処理を並行して行う。 図 1には、 一例として 3本 のラスタを並行して処理している様子を概念的に示している。 詳細には後述 するが、 このように複数本のラスタの処理を並行して行えば、 並行して処理 を行う複数ラス夕間では、 互いのラスタで発生した階調誤差を考慮しながら ドット形成判断を行うことができるので、 階調誤差あるいは拡散誤差をいち いち誤差バッファに記憶しておく必要がない。 すなわち、 本実施例の階調数 変換モジュールでは、 誤差バッファに対して頻繁に読み書きを行う必要がな いので、 それだけドッ卜形成有無の判断を迅速に行うことが可能となってい る。
このように、 複数本のラスタ間で発生した階調誤差を考慮しながら、 並行 してドット形成有無の判断を行う具体的な方法には、 種々の態様が存在して おり、 これら各種の態様について、 各種実施例を用いて以下に説明する。
B . m i鍾例: B— 1. 装置構成:
図 2は、 第 1実施例の画像処理装置としてのコンピュータ 1 0 0の構成を 示す説明図である。 コンピュータ 1 0 0は、 CPU 1 0 2を中心に、 ROM 1 04や RAM 1 0 6などを、 バス 1 1 6で互いに接続して構成された周知 のコンピュータである。 CPU 1 02は実際に処理を行う演算器と、 処理中 のデータを一時保持する複数のレジスタとから構成されている。 レジス夕に 保持されているデータは、 RAM 1 06に記憶されているデータよりも遙か に高速に処理することが可能である。
コンピュータ 1 0 0には、 フロッピ一ディスク 1 24やコンパクトディス ク 1 2 6のデ一夕を読み込むためのディスクコントローラ DDC 1 0 9や、 周辺機器とデータの授受を行うための周辺機器インターフェース P · I /F 1 08、 CRT 1 14を駆動するためのビデオインタ一フェース V · I ZF 1 1 2等が接続されている。 P · I /F 1 0 8には、 後述するカラープリン 夕 2 0 0や、 ハードディスク 1 1 8等が接続されている。 また、 デジタル力 メラ 1 20や、 カラースキャナ 1 22等を P · I /F 1 08に接続すれば、 デジタルカメラ 1 2 0やカラ一スキャナ 122で取り込んだ画像を印刷す ることも可能である。 また、 ネットワークインターフェースカード N I C 1 1 0を装着すれば、 コンピュータ 1 0 0を通信回線 30 0に接続して、 通信 回線に接続された記憶装置 3 1 0に記憶されているデータを取得すること もできる。 図 3は、 第 1実施例のカラープリンタ 20 0の概略構成を示す説明図であ る。 カラ一プリンタ 2 0 0はシアン, マゼン夕, イエロ, ブラックの 4色ィ ンクのドットを形成可能なインクジェットプリンタである。 もちろん、 これ ら 4色のインクに加えて、 染料濃度の低いシアン (淡シアン) インクと染料 濃度の低いマゼンタ (淡マゼン夕) インクとを含めた合計 6色のインクドッ トを形成可能なィンクジエツトプリンタを用いることもできる。 更には、 明 度の低い (暗い) イエロ (ダークイエロ) インクを加えた合計 7色のインク ドットを形成可能なインクジェットプリンタを用いても良い。 尚、 以下では 場合によって、 シアンインク, マゼンタインク, イエロインク, ブラックィ ンク, 淡シアンインク, 淡マゼンタインク, ダ一クイエロインクのそれぞれ を、 Cインク, Mインク, Yインク, Kインク, L Cインク, L Mインク, D Yィンクと略称するものとする。
カラ一プリンタ 2 0 0は、 図示するように、 キヤリッジ 2 4 0に搭載され た印字へッド 2 4 1を駆動してインクの吐出およびドット形成を行う機構 と、 このキャリッジ 2 4 0をキヤリッジモータ 2 3 0によってプラテン 2 3 6の軸方向に往復動させる機構と、 紙送りモー夕 2 3 5によって印刷用紙 P を搬送する機構と、 ドッ卜の形成やキャリッジ 2 4 0の移動および印刷用紙 の搬送を制御する制御回路 2 6 0とから構成されている。
キヤリッジ 2 4 0には、 Kィンクを収納するインクカートリッジ 2 4 2と、 Cインク, Mインク, Yインクの各種インクを収納するインクカートリッジ 2 4 3とが装着されている。 キヤリッジ 2 4 0にィンクカートリッジ 2 4 2, 2 4 3を装着すると、 カートリッジ内の各ィンクは図示しない導入管を通じ て、 印字へッド 2 4 1の下面に設けられた各色毎のィンク吐出用へッド 2 4 4ないし 2 4 7に供給される。 Kインク用のィンク吐出へッド 2 4 4には、 図示するように、 複数のノズル N zが一定のノズルピッチ kで千鳥状に 2列 に配列されている。 他色のインク吐出用へッド 2 4 5ないし 2 4 7について も同様に、 ノズルピッチ kで千鳥状に並んだノズル列が 1組ずつ設けられて いる。
制御回路 2 6 0は、 。?11 2 6 1と1^ 01^ 2 6 2と R AM 2 6 3等から構 成されており、 キヤリッジモータ 2 3 0と紙送りモータ 2 3 5の動作を制御 することによってキャリッジ 2 4 0の主走査と副走査とを制御するととも に、 コンピュータ 1 0 0から供給される印刷データに基づいて、 各ノズルか ら適切なタイミングでインク滴を吐出する。 こうして、 制御回路 2 6 0の制 御の下、 印刷媒体上の適切な位置に各色のインクドッ卜を形成することによ つて、 カラープリンタ 2 0 0はカラー画像を印刷することができる。
尚、 各色のインク吐出ヘッドからインク滴を吐出する方法には、 種々の方 法を適用することができる。 すなわち、 ピエゾ素子を用いてインクを吐出す る方式や、 インク通路に配置したヒータでインク通路内に泡 (バブル) を発 生させてインク滴を吐出する方法などを用いることができる。 また、 インク を吐出する代わりに、 熱転写などの現象を利用して印刷用紙上にインクドッ 卜を形成する方式や、 静電気を利用して各色のトナー粉を印刷媒体上に付着 させる方式のプリンタを使用することも可能である。
更には、 ィンク吐出へッドから吐出するィンク滴の大きさを制御したり、 あるいは微細なインク滴を一度に複数吐出して、 吐出するィンク滴の数を制 御するといつた方法を用いて、 印刷用紙上に形成されるインクドットの大き さを制御な可能なプリンタ、 いわゆるバリアブルドットプリンタを用いるこ とも可能である。
B - 2 . 画像デ一夕変換処理の概要:
図 4は、 第 1実施例の画像処理装置としてのコンピュータ 1 0 0が、 受け 取った画像データに所定の画像処理を加えることにより、 該画像データを印 刷データに変換する処理の流れを示すフローチャートである。 かかる処理は、 コンピュータ 1 0 0のオペレーティングシステムがプリンタドライバ 1 2 を起動することによって開始される。 以下、 図 4に従って、 第 1実施例の画 像データ変換処理について簡単に説明する。
プリンタドライバ 1 2は、画像データ変換処理を開始すると、先ず初めに、 変換すべき R G Bカラー画像データの読み込みを開始する (ステップ S 1 0
0 ) 。 画像データは、 R, G, B各色毎に 1ラスタずつプリンタドライバ 1
2に読み込まれる。
次いで、 取り込んだ画像データの解像度を、 カラープリン夕 2 0 0が印刷 するための解像度に変換する (ステップ S 1 0 2 ) 。 カラー画像データの解 像度が印刷解像度よりも低い場合は、 線形補間を行うことで隣接画像データ 間に新たなデータを生成し、 逆に印刷解像度よりも高い場合は、 一定の割合 でデータを間引くことによって画像データの解像度を印刷解像度に変換す る。
こうして解像度を変換すると、 カラ一画像データの色変換処理を行う (ス テツプ S I 0 4 ) 。 色変換処理とは、 R , G , Bの階調値の組み合わせによ つて表現されているカラー画像データを、 C, M, Y, Κなどのカラープリ ンタ 2 0 0で使用する各色の階調値の組み合わせによって表現された画像 データに変換する処理である。 色変換処理は、 色変換テ一プル (L U T ) と 呼ばれる 3次元の数表を参照することで迅速に行うことができる。 以上に説 明した解像度変換処理 (ステップ S 1 0 2 ) および色変換処理 (ステップ S 1 0 4 ) は、 1ラスタ毎に行われる。
色変換処理を終了すると、 次は階調数変換処理を開始する (ステップ S 1 0 6 ) 。 階調数変換処理とは次のような処理である。 色変換処理によって変 換された階調データは、 各色毎に 2 5 6階調幅を持つデータとして表現され ている。 これに対し、 本実施例のカラ一プリンタ 2 0 0では、 「ドットを形 成する」 , 「ドットを形成しない」 のいずれかの状態しか採り得ない。 すな わち、 本実施例のカラ一プリンタ 2 0 0は局所的には 2階調しか表現し得な レ^ そこで、 2 5 6階調を有する画像デ一夕を、 カラープリン夕 2 0 0が表 現可能な 2階調で表現された画像データに変換する必要がある。 このような 階調数の変換を行う処理が階調数変換処理である。 前述したように、 本実施 例の階調数変換処理では、 複数のラス夕のドッ卜形成の有無を並行して判断 することにより、 迅速な処理が可能となっている。 階調数変換処理について は、 後ほど詳細に説明する。
こうして階調数変換処理を終了したら、 プリンタドライバはインターレー ス処理を開始する (ステップ S 1 0 8 ) 。 インターレース処理は、 ドットの 形成有無を表す形式に変換された画像データを、 ドットの形成順序を考慮し ながらカラープリンタ 2 0 0に転送すべき順序に並べ替える処理である。 プ リンタドライバは、 ィンターレース処理を行って最終的に得られた画像デー 夕を、 印刷データとしてカラープリン夕 2 0 0に出力する (ステップ S 1 1 0 ) 。 カラープリンタ 2 0 0は、 印刷データに従って、 各色のインクドット を印刷媒体上に形成する。 その結果、 画像データに対応したカラー画像が印 刷媒体上に印刷される。
以下では、 第 1実施例の階調数変換処理において、 複数のラスタを並行し て処理することにより、 ドットの形成有無の判断を迅速に行う処理について 説明する。
B— 3 . 第 1実施例の階調数変換処理:
( a ) 誤差拡散法による階調数変換処理の概要:
複数ラスタのドット形成有無を並行して実施する方法、 および並行して実 施することで階調数変換処理に要する時間を短縮化する原理を説明するた めの準備として、 いわゆる誤差拡散法において、 ラスタに沿ってドットの形 成有無を判断していく方法について簡単に説明する。
図 5は、 ドット形成の有無を判断しょうとする画像の一部を拡大して概念 的に示した説明図である。 小さなマス目の 1つ 1つは画素を示しており、 画 素が横一列に並んでラスタを形成している。 説明の便宜上、 図 5 ( a ) に示 した一番上のラス夕を 「ラスタ 0」 とし、 その下のラスタを 「ラス夕 1」 、 以降順番に 「ラスタ 2」 , 「ラスタ 3」 と符番する。 個々の画素も区別する ために、 各画素にも 「P nm」 と符番する。 画素 P nmは、 ラス夕 mの n番目の 画素であることを示している。 図 4に示した色変換処理後の画像データは、 各画素に各色の階調値が対応付けられたようなデータとなっている。
誤差拡散法は、 以下に説明するように、 ラスタに沿って 1画素ずつドット 形成の有無を判断していく。 図 5 ( a ) は、 画素 P 1 1についてのドット形成 有無を判断している様子を概念的に示した説明図である。 画素 P 11のように、 ドット形成の有無を判断しょうとしている画素を、 本明細書では着目画素と 呼ぶ。 図では、 画素 P 11を太線で囲うことにより、 着目画素であることを示 している。 また、 図中で斜線を付した領域は、 その領域の画素は既にドット 形成の有無を判断済みであることを示している。
図 5 ( a ) に示されるように、 着目画素 P 11についてドット形成有無を判 断すると、 その結果として、 着目画素 P 11には階調誤差 E 11が発生する。 す なわち、 画素 P 1 1にドットを形成するにしても、 あるいはドットを形成しな いにしても、 画素 P 1 1に表現される階調値 (以下、 このような階調値を結果 値と呼ぶ) は、 通常は、 その画素についての画像データの階調値とは一致し ない。 従って、 画素 PI 1の結果値と、 画素 P 11での画像デ一夕の階調値との 差の分だけ、 着目画素には階調誤差が発生することになる。 誤差拡散法は、 ドット形成有無を判断する度に生じる階調誤差を、 着目画素の周辺の未判断 画素に所定の重みをつけて拡散させる。 周辺の未判断画素に拡散させる際に 用いる重み係数は、 誤差拡散係数と呼ばれ、 着目画素を中心として画素毎に 予め定められている。 図 6は、 誤差拡散係数が定められている様子を例示する説明図である。 図 6中で斜線が施されている画素が着目画素であり、 着目画素からの位置に応 じて各画素の誤差拡散係数が定められている。 このように、 着目画素を中心 として周辺画素への誤差拡散係数を設定したマトリックスは、 誤差拡散マト リックスと呼ばれる。 例えば、 図 6 (a) の誤差拡散マトリックスでは、 着 目画素の右隣の画素には、 誤差拡散係数 K01として 「1/4」 が設定されて いる。 従って、 図 6 (a) の誤差拡散マトリックスを使用すると、 着目画素 で発生した階調誤差の 1 / 4の誤差が右隣の画素に配分されることになる。 同様に、 着目画素の左下, 真下, 右下の各画素にも、 着目画素で生じた階調 誤差の 1/4の誤差が配分されることになる。 誤差拡散マトリックスは図 6 に例示するものに限られず、 誤差を拡散する範囲や誤差拡散係数などは種々 の値を設定することが可能であり、 実際の誤差拡散法では良好な画質が得ら れるように、 適宜、 適切な誤差拡散マトリックスが使用される。 尚、 説明の 煩雑化を避けるために、 以下の説明では、 例示した誤差拡散マトリックスの 中では最も拡散範囲の狭いマトリックス、 すなわち、 図 6 (a) の誤差拡散 マトリックスを使用するものとして説明する。
誤差拡散マトリックスとして図 6 (a) のマトリックスを使用するものと すれば、 図 5 (a) に示すように着目画素 P11で生じた階調誤差 Ellは、 右 隣の画素 P12, 左下の画素 P20, 真下の画素 P21, 右下の画素 P22の合計 4 つの画素に、 それぞれ階調誤差 E00の 1 4ずつ配分される。 尚、 4つの周 辺画素のうち、 画素 P20, 画素 P21, 画素 P22の 3つの画素は、 着目画素 P 11とは異なり、 ラスタ 2に属する画素である。 こうして着目画素周辺のそれ ぞれの画素に拡散された誤差 (拡散誤差) は、 これら各画素のドット形成判 断の際に使用するので、 各画素を区別して記憶しておく必要がある。 そのた め拡散誤差は、 多数の画素についての拡散誤差を記憶することの可能な、 大 容量の R AM I 0 6 (図 2参照) に記憶される。
画素 P 11についての階調誤差を周辺画素に拡散したら、 今度は右隣の画素 P 12について、 ドット形成有無の判断を開始する。 図 5 ( b ) は着目画素 P 12についてのドット形成有無を判断する様子を概念的に示す説明図である。 ドット形成判断に際しては、 先ず、 周辺画素から着目画素 P 12に配分されて 蓄積されている拡散誤差を読み出し、 読み出した拡散誤差で着目画素 P 12の 画像データを補正する。 図 5 ( b ) に示すように、 着目画素 P 12には、 ドッ 卜形成判断済みの周辺画素、 すなわち画素 P 01 , 画素 P 02 , 画素 P 03, 画 素 P 11の 4つの画素から、 前述の誤差拡散マトリックスに従つて拡散されて きた誤差が蓄積されている。 この拡散誤差を R A M I 0 6から読み出して、 着目画素 P 12の画像データを補正し、 得られた補正値を所定の閾値と比較す ることでドットの形成有無を判断する。 図 5 ( c ) は、 新たな着目画素 P 12 について、 ドットの形成有無を判断した状態を示している。 ドット形成有無 を判断した結果、 新たな着目画素 P 12には階調誤差 E 12が発生するので、 こ の階調誤差を、 図 5 ( a ) で説明したのと同様に誤差拡散マトリックスに従 つて周辺画素に拡散する。
画素 P 12で発生した階調誤差を周辺画素に拡散したら、 更に右隣にある画 素 P 13についてのドット形成有無の判断を開始する。 新たな着目画素 P 13で も階調誤差 E 13が発生するので、 この誤差を誤差拡散マトリックスに従って 周辺画素に拡散させ、 更に右隣の画素のドット形成有無の判断を行う。 この ように、 階調誤差を周辺画素に拡散しながら、 着目画素を 1画素ずつ右に移 動させ、 画像の右端の画素に達したら、 今度は一旦、 画像の左端に戻って 1 つ下にあるラスタの画素 (図 5に示す例では、 画素 P 20) についてのドット 形成有無の判断を開始する。 ラス夕 1と同様に、 ラスタ 2についても画像の 右端の画素まで達したら、 再び画像の左端に戻ってラス夕 3の処理を開始す る。 このように誤差拡散法では、 着目画素をラスタに沿って 1画素ずつ移動さ せ、 周辺画素から拡散されてくる拡散誤差を考慮しながら、 ドット形成有無 の判断を行う。 判断により着目画素に生じた階調誤差は、 周辺の未判断画素 に拡散して記憶しておき、 これら未判断画素のドット形成有無を判断する際 に使用される。
ここで、 前述したように、 周辺画素の中には、 着目画素が属するラスタと は異なるラスタ上の画素も含まれている。 ドット形成有無の判断はラス夕に 沿って行われるので、 拡散誤差が分配されてきても、 その画素の属するラス 夕の処理が始まるまでは、 分配された拡散誤差を記憶しておかなければなら ない。 更に、 ラスタには多数の画素が含まれていることから、 かなり多数の 画素について、 分配されてきた拡散誤差を各画素を区別した状態で記憶して おく必要がある。 拡散誤差を記憶するために、 記憶容量の大きな R A M I 0 6が使用されるのは、 このような理由によるものである。
また、 着目画素についてドット形成有無を判断する度に、 発生した階調誤 差を周辺の未判断画素に拡散しているために、 R AM I 0 6に対して頻繁に データを読み書きする必要がある。 R A M I 0 6に対して頻繁にデータを読 み書きすれば、 その分だけ読み書きのための時間が増加して、 ドット形成有 無の判断に要する時間が長くなる。 ( b ) 本実施例の階調数変換処理の概要:
これに対して、 本実施例の階調数変換処理では、 以下に説明するようにし て、 複数本のラスタについてのドット形成有無の判断を並行して行う。 こう すれば、 R A M I 0 6にデータを読み書きする頻度が減少するので、 ドッ卜 形成有無の判断を迅速に行うことが可能となる。 以下、 複数ラス夕の処理を 並行して行うことにより、 ドット形成有無の判断を迅速に行う原理について 説明する。 図 7は、 最も簡単な例として、 2本のラスタについてのドット形成有無の 判断を並行して行う原理を示した説明図である。 ここでは、 ラス夕 iと、 そ の直ぐ下のラスタ j の 2本のラス夕について、 並行してドット形成有無を判 断するものとする。
先ず初めに、 ラスタ iの一番左側の画素 PiOのドット形成有無を判断する 図 7 (a) は、 画素 PiOのドット形成有無を判断している様子を概念的に示 している。 画素 P iOには、 ラス夕 iの真上にあるラス夕 hの画素 PhOや画素 PM等から誤差が分配されて記憶されている。 そこで、 画素 PiOに記憶され ている拡散誤差をコンピュータ 1 00の RAM 1 06から読み出して、 画像 デ一夕の画素 PiOの階調値を補正し、 得られた補正値と所定の閾値とを比較 することで、 画素 P iOについてのドット形成の有無を判断する。 こうして、 画素 P iOのドット形成有無を判断すると、.画素 PiOに階調誤差が発生するの で、 これを誤差拡散マトリックスに従って周辺画素に拡散させる。ここでは、 説明が煩雑化するのを避けるために、 図 6 (a) に示した比較的単純な誤差 拡散マトリックスを用いるものとして説明する。 理解の便宜のために、 図 6 (a) の誤差拡散マトリックスと同様のマトリックスを図 7 (b) にも表示 しておく。 画素 PiOで発生した階調誤差は、 図 7 (b) の誤差拡散マトリツ クスに従って画素 Pil, 画素 PjO, 画素 Pjlの 3つの画素に配分され、 それ ぞれの拡散誤差の値は C PU 1 02に内蔵されているレジスタに記憶され る。 図 7 (a) では、 画素 PiOから階調誤差が周辺画素に拡散される様子を 太い矢印で概念的に表示している。
尚、 本明細書では、 並行して処理される複数のラスタ間での拡散誤差 (図 7では、 例えばラスタ iの画素からラスタ jの画素への拡散誤差) はレジス 夕に記憶し、 並行しては処理されないラス夕間での拡散誤差 (図 7では、 例 えばラスタ j の画素からラスタ kの画素への拡散誤差) は RAM 1 06に記 憶するものとしている。 前述したように、 レジス夕は RAM I 0 6より高速 に読み書きすることができるので、 レジス夕を活用することにより、 階調数 変換処理をより迅速に行うことができる。 もっとも、 並行に処理するラスタ 間の誤差は、 必ずレジス夕に記憶しなければならないわけではなく、 例えば RAM 1 06上に記憶することとしても良い。 これら、 すぐに使用される拡 散誤差は、 RAM 1 0 6上に記憶することとしておいても、 通常は CPU 1 02のキヤッシュメモリ内に残っている値を使用することができるので、 実 際には高速に読み書きすることが可能であり、 階調数変換処理を迅速に行う ことができる。
画素 Pめについてのドット形成有無を判断し、 生じた階調誤差を拡散した ら、 次は右隣の画素 Pi 1のドット形成有無の判断を開始する。 画素 Pi 1につ いても、 1つ上にあるラス夕 hの画素で生じた階調誤差が、 図 7 (b) の誤 差拡散マトリックスに従って拡散されて、 予め RAM 1 06に記憶されてい る。 そこで、 ラスタ hの画素から拡散されて RAM 10 6に予め記憶されて いる誤差を読み出し、 この拡散誤差と、 画素 PiOから画素 Pilに分配されて レジスタに記憶されている拡散誤差とで、 画素 Pilの画像データの階調値を 補正する。こうすれば、画素 P ilの画像データは、ラスタ hにある画素 PhO, 画素 Phl, 画素 PM、 および画素 PiOから拡散されてくる誤差で補正される ことになるので、 通常の誤差拡散法と等しい補正値を得ることができる。 この補正値と所定の閾値との大小関係を比較して、 補正値の方が閾値より 大きければ画素 Pilにドッ卜を形成すると判断し、 そうでなければドットを 形成しないと判断する。 判断の結果、 画素 P ilにも階調誤差が生じるので、 誤差拡散マトリックスに従って、 周辺の 4つの画素、 画素 Pi2, 画素 PjO, 画素 Pjl, 画素 Pj2に分配する。 これら 4つの画素に分配される拡散誤差の 値は、 C PU 1 02のレジスタに画素毎に記憶される。 図 7 (a) では、 画 素 Pilで発生した階調誤差が周辺画素に拡散される様子を細い実線の矢印 で概念的に表示している。 尚、 画素 PjOに対しては既に画素 PiOからの拡散 誤差が記憶されているので、 この値に画素 P ilからの拡散誤差を加算して蓄 積する。 また、 画素 Pilでのドット形成有無を判断してしまうと、 画素 Pil への拡散誤差を記憶するために使用したレジスタは不要となるので、 画素 P ilから他の画素に分配される拡散誤差を記憶するためにこのレジスタを使 用することができる。
ラスタ iにある画素 PiOおよび画素 Pilについてのドット形成有無を判 断したら、 今度はラスタ jの左端にある画素 PjOについてのドット形成有無 の判断を開始する。 つまり、 ここでは、 ドット形成有無の判断によって生じ た階調誤差は、 図 7 (b) の誤差拡散マトリックスに従って周辺画素に拡散 されるものとしているから、画素 P iOからの拡散誤差と画素 P ilからの拡散 誤差とが配分されてしまえば、 画素 PjOについては、 すべての拡散誤差が配 分されたことになる。 そこで、 これら 2つの画素のドット形成判断を行った 後に、 画素 PjOの判断を行うのである。
図 7 (c) は画素 PjOのドット形成有無を判断している様子を概念的に示 す説明図である。 図 7 (b) に示した誤差拡散マトリックスによれば、 画素 PjOには画素 P iOおよび画素 P ilから誤差が拡散されるが、 上述したように. この誤差の値は RAM 1 0 6ではなく C PU 1 02のレジスタ内に記憶さ れている。 そこで、 この値を用いて、 画像データの画素 PjOの階調値を補正 し、 補正値と閾値との大小関係に基づいてドット形成の有無を判断する。 判 断の結果、画素 P jOに発生した階調誤差は、誤差拡散マトリックスに従って、 周辺の画素 Pjl, 画素 PkO, 画素 Pklの 3つの画素に拡散する。
ここで、 図 7に示す例では、 ラス夕 iの画素とラスタ j の画素とについて のドット形成有無の判断を並行して行うものとしている。 このことから、 画 素 PkOおよび画素 Pklの 2つの画素についてのドット形成有無の判断は、 ラ スタ iおよびラスタ jの画素の判断が全て終了してから行われることにな る。 そこで、 画素 PkOへの拡散誤差および画素 Pklへの拡散誤差の値は、 当 分の間、 使用されることがないと考えられるので、 これらの値は: AMI 0 6に記憶する。 一方、 画素 Pjlへの拡散誤差は、 ほどなく使用されると考え られるので、 C PU 1 02のレジス夕に記憶する。 このように、 ラス夕 iお よびラスタ j の 2つのラスタについてのドット形成有無の判断を並行して 行うことから、 ラスタ iより上のラスタで発生してラス夕 iの画素に拡散さ れる誤差は、 R AM 1 06に記憶される。 同様に、 ラスタ jで発生してラス 夕 kの画素に拡散される誤差も RAM 1 0 6に記憶される。 これに対して、 ラスタ iで発生してラスタ jの画素に拡散される誤差は C PU 1 02のレ ジス夕に記憶される。 図 7で、 ラス夕 iおよびラスタ kに斜線が施されてい るのは、 これらラスタの画素に拡散された拡散誤差が RAMI 0 6上に記憶 されていることを意味している。 また、 図 7 (c) において、 画素 PjOから画素 PkOへの矢印、 あるいは画 素 PjOから画素 Pklへの矢印が、 白抜きの矢印となっているのは、 これら画 素へ配分される拡散誤差が RAM 1 0 6に記憶されることを示している。 逆 に、 画素 PjOから画素 Pjlへの矢印が太線の矢印で表されているのは、 画素 Pjlへ配分される拡散誤差が、 C PU 1 0 2のレジスタに記憶されることを 示している。 尚、 既に画素 PjOのドット形成有無を判断しているので、 画素 PjOへの拡散誤差を記憶していたレジスタを他の目的、 例えば、 画素 Pjlへ の拡散誤差を記憶するといったことに用いることができる。
こうして画素 PjOで発生した階調誤差を周辺画素に拡散したら、 次はラス 夕 iの画素 Pi2のドット形成有無を判断して発生した階調誤差を周辺画素 に拡散し、 その次にラスタ jの画素 Pjlのドット形成有無を判断する。 図 7 (d) は、 この様子を概念的に示す説明図である。 画素 Pi2のドット形成有 無の判断に際しては、 ラスタ hの画素から拡散されて RAM 1 06に記憶さ れている拡散誤差と、 画素 Pi 1から拡散されてレジスタに記憶されている拡 散誤差とで、 画像データの階調値を補正してドット形成有無を判断する。 判 断により生じた階調誤差は周辺画素に拡散させる。 図 7 (d) に太線の矢印 で示されているように、 周辺画素への拡散誤差はレジスタに記憶される。 続 く画素 Pjlのドット形成有無の判断に際しては、 レジスタに記憶されている 拡散誤差を用いて画像データの階調値を補正し、 所定の閾値との大小関係に 基づいてドット形成有無を判断する。 判断によって生じる階調誤差は、 ラス タ kの画素への拡散誤差は RAM 1 06に記憶し、 ラスタ jの画素への拡散 誤差はレジス夕に記憶する。以上のようにして画素 P i2と画素 Pjlとについ ての処理が終了したら、 同様にして、 画素 P i3と画素 Pj2とについての処理 を行う。
図 7 (d) の画素中に丸印とともに付した番号は、 ラスタ iの画素および ラスタ jの画素についてドット形成有無を判断する順番を示している。 図示 するように、 ラス夕 iの画素と、 該画素の左下にあるラスタ】 の画素とを、 交互にドット形成有無の判断を行う。 こうしてラスタ iとラスタ j とを並行 して処理していけば、 ラスタ jの画素への拡散誤差はレジスタに記憶するこ とができ、 R A M I 0 6にはラスタ kの画素への拡散誤差を記憶すればよい c すなわち、 R A M I 0 6に対して拡散誤差を、 書き込んだり読み出したりす る頻度を減少させることができ、 それだけドット形成有無の判断を迅速に行 うことができるのである。
尚、 図 7に示したように、 ラスタ iの左端の画素、 すなわち画素 P i Oにつ いては該画素の左下にラス夕 j の画素が存在しないので、 変則的に、 画素 P iOに続いて同じラス夕 iにある画素 P i lの処理を行っている。 もっとも、 画 素 P i Oの左下に架空の画素 P j - 1 を想定し、 画素 P i Oに続いて架空の画素 P j -1 の処理を行った後、 かかる架空の画素 P j -1 については、 ドット形成有 無の判断結果を使用せずに捨ててしまうこととしても良い。 こうすれば、 左 端の画素についても架空の画素に対して通常の処理を行うことができるの で、 変則的な処理が不要となって好ましい。 図 8は、 2本のラスタについてのドット形成有無の判断を並行して行う処 理の流れを示すフローチヤ一トである。 この処理はコンピュータ 1 0 0の C P U 1 0 2によって行われる。 尚、 前述したように、 本実施例のカラ一プリ ンタは、 C, M , Y, Κの 4色のインクドットを形成可能なプリン夕であり、 図 8に示す階調数変換処理も各色毎に行っているが、 以下では説明の煩雑化 を避けるために、 インクドットの色を特定せずに説明する。 もちろん、 上記 の 4色に加えて、 L Cインク, L Mインクを加えて 6色プリンタに適用する ことも可能である。
また、 前述したように本実施例のカラープリンタは、 各色毎に大きさの異 なるドットを形成可能なパリアブルドットプリン夕とすることも可能であ る。 ノ リアブルドットプリン夕を使用する場合、 例えば、 大ドット, 中ドッ 卜, 小ドットの各種ドットを形成可能なバリアブルドットプリンタを用いる 場合には、 以下に説明する階調数変換処理は、 各種大きさのドット毎に行わ れる。
このように、 使用するィンクの色が増加したり、 種々の大きさのドットが 形成可能となるにつれて階調数変換処理を行う回数が増加するので、 それだ け処理に要する時間も長くなる傾向がある。以下に説明する本実施例の階調 数変換処理は迅速な処理が可能であるために、 このような場合にも好適に適 用することができる。
本実施例の階調数変換処理を開始すると、 先ず初めに、 並行して処理する ラスタの 1本目のラスタの中から、 ドット形成有無を判断しょうとする画素 の画像データと該画素に拡散されている拡散誤差とを取得する (ステップ S 200) 。 ここでは、 処理しょうとする画素を、 ラスタ iの n番目の画素 P inとする。 画像データ Cdinおよび拡散誤差 Edin は、 いずれも RAMI 0 6に記憶されている。
続いて、 画素 Pinの画像データ Cdin と拡散誤差 Edin とを加算すること により、 画素 P inの補正データ Cxinを算出する (ステップ S 2 02) 。 こ うして得られた補正データ Cxin と所定の閾値 th とを比較して (ステップ S 2 04) 、 補正データの方が大きければ画素 Pinにドットを形成すると判 断して、判断結果を示す変数 Crにドットを形成することを意味する値「 1」 書き込む (ステップ S 20 6 ) 。 そうでなければ画素 Pinにはドットを形成 しないと判断して、 変数 Cr にドットを形成しないことを意味する値 「0」 を書き込む (ステップ S 2 0 8) 。
ラスタ iの画素 P inについてのドット形成有無を判断したら、 該判断に伴 つて発生する階調誤差を算出する (ステップ S 2 1 0) 。 階調誤差 Einは、 補正データ Cxinから、 ドットを形成することにより、 あるいはドットを形 成しないことにより画素 Pinで表現される階調値 (結果値) を減算すること で求めることができる。 得られた階調誤差に誤差拡散係数を乗算して、 周辺 画素への拡散誤差を算出する。 誤差拡散係数は、 誤差拡散マトリックスに画 素毎に設定されている。 こうして求められたラスタ iの画素への拡散誤差、 およびラスタ iの直ぐ下にあるラスタ j の画素への拡散誤差はレジス夕に 記憶する (ステップ S 2 1 2) 。 それ以外の画素への拡散誤差、 例えばラス 夕 kの画素への拡散誤差等があれば RAM 1 0 6に記憶しておく。
こうしてラスタ iの画素についてのドット形成判断および誤差の拡散が 終了したら、 ラスタ j の画素 P jn- 1についてのドット形成有無の判断を開始 する。 すなわち、 画素 P jn-1の画像データ Cdjn_l を RAMI 0 6から読み だし (ステップ S 2 14) 、 画素 P jn_lへの拡散誤差 Edjn-1 をレジスタか ら読み込む(ステップ S 2 1 6)。 レジス夕から読み込んだ拡散誤差 Edjn - 1 には、 先にドット形成判断を行った画素 Pinからの拡散誤差も蓄積されてい る。 尚、 ラスタ iの画素 P inが左端の画素 P iOである場合には、 架空の画素 P j-1 に対してかかる処理を行う。
次いで、 画像データ Cdjn- 1 と拡散誤差 Edjn-1 とを加算して補正データ Cxjn-1 を算出し (ステップ S 2 1 8) 、 得られた補正データ Cxjn-1 と所 定の閾値 t hとを比較して (ステップ S 220 ) 、 補正データの方が大きけ ればドットを形成すると判断して、 判断結果を示す変数 Crにドットを形成 することを意味する値 「1」 書き込む (ステップ S 222) 。 そうでなけれ ばドットを形成しないことを意味する値 「0」 を書き込む (ステップ S 22 4) 。 続いて、 該判断にともなって画素 Pjn- 1に発生する階調誤差 Ejn-1を 算出する (ステップ S 226 ) 。 階調誤差 Ejn-1は、 補正データ Cxjn-1か ら、 画素 Pjn- 1の結果値を減算することで求めることができる。 得られた階 調誤差に、 誤差拡散マトリックスに設定されている誤差拡散係数を乗算して、 周辺画素への拡散誤差を算出する。 こうして拡散誤差を求めたら、 ラスタ j の画素への拡散誤差はレジスタに記憶し、 ラスタ kの画素への拡散誤差は R AM 1 0 6に記憶する (ステップ S 22 8) 。
以上のようにして、 ラスタ iの画素とラスタ j の画素とについてのドット 形成判断および誤差の拡散処理が終了したら、 ラスタ iおよびラスタ jの全 ての画素の処理を終了したか否かを判断する (ステップ S 230 ) 。 未処理 の画素が残っている場合は、 画素の位置を 1つ右に移動させ、 すなわち 「n + 1」 の値で 「n」 を置き換えて (ステップ S 232) 、 ステップ S 2 0 0 に戻って続く一連の処理を行う。 未処理の画素が残っていない場合は、 全て のラス夕の処理が終了したか否かを判断し (ステップ S 234) 、 処理して いないラスタが残っている場合はラス夕位置をラスタ 2本分だけ下に移動 させ、 すなわち 「 i + 2」 の値で「 i」 を置き換えて (ステップ S 236) 、 ステップ S 20 0に戻って続く一連の処理を行う。未処理のラスタが残って いない場合は、 図 8に示した階調数変換処理を終了して、 図 4に示す画像デ —夕変換処理に復帰する。 以上、 説明したように、 第 1実施例の階調数変換処理においては、 ラスタ iの画素とラスタ j の画素とを、 並行して交互にドット形成有無を判断して いく。 こうすれば、 ラスタ jの画素については、 ラスタ iの画素に続いて、 あるいは、 ほどなく ドット形成有無を判断することになる。 従って、 ラスタ jの画素のドット形成有無については、 ラスタ iの画素から周辺画素への拡 散誤差を一旦誤差バッファに記憶させずとも、 直接判断することができるの で、その分だけ、誤差バッファへの書き込み頻度を減らすことが可能となる。 誤差バッファへの書き込み頻度を減少させることができれば、 その分だけ、 ドット形成有無の判断に要する時間を短縮化することができるので、 階調数 変換処理を迅速に行うことが可能となる。
また、 誤差バッファの記憶容量を節約する必要がある場合には、 ドット形 成の有無を判断するために一旦使用した誤差バッファを、 他のラスタについ ての判断のために再び使用する処理を行う。 このような場合でも、 上述した 第 1実施例の階調数変換処理においては、 ラスタ 2本につき誤差バッファを ラスタ 1本分ずつ設ければよいので、 誤差バッファに記憶される全ラス夕本 数を半減することができる。 この結果、 ドット形成判断に使用した誤差バッ ファを、 他のラスタの判断のために再び使用する処理を行わなくても、 誤差 バッファの容量を節約することができる。 もちろん、 2本より多くの複数本 のラスタを並行して処理することとすれば、 ラスタ該複数本毎に誤差バッフ ァをラスタ 1本分ずつ設ければよいので、 その分だけ誤差バッファの容量を 節約することが可能となる。
B - 4 . 変形例:
( 1 ) 第 1の変形例:
以上では、 もっとも簡単な例として、 2つのラスタについてのドット形成 有無の判断を並行して行うものとして説明したが、 並行して処理するラスタ の数は 2つに限らず、 3以上のラスタの処理を並行して行っても良い。 図 9 は、 3つのラス夕についてのドット形成有無の判断を並行して行う場合を概 念的に示した説明図である。 図 9では、 ラスタ iとラスタ j とラスタ kの 3 つのラス夕についてのドット形成の有無を並行して判断している。 尚、 説明 が煩雑となることを避けるために、 図 7における場合と同様に、 ここでも図 6 ( a ) に示した誤差拡散マトリックスを使用するものとする。
ラスタ i とラスタ Lとに斜線が施されているのは、 これらラスタの画素に 配分される拡散誤差が R A M 1 0 6に記憶されることを示している。 ラス夕 iとラス夕 j とラスタ kの各画素に付された丸印の中の数字は、 各画素のド ット形成の有無を判断していく順番を示したものである。 図に示されるよう に、 初めの 3つの画素については、 図 7で説明した 2つのラス夕を並行して 処理する場合と同じ順番でドット形成有無を判断する。 以降の 4つ目の画素 からは、 ラスタ i とラスタ j とラスタ kの 3つの画素を一組として、 この順 番で並行してドットの形成有無を判断していく。 ここでは、 ラスタ iないし ラスタ kの 3つのラスタの処理を並行して行うこととしているので、 これら 3つのラスタの画素に拡散される誤差は、 ほどなく使用されることから、 C P U 1 0 2のレジスタに記憶される。 ラス夕 Lの画素の拡散される誤差が使 用されるのは、 ラスタ iないしラスタ kの 3つのラスタの処理が終了してか らとなることから、 ラスタ Lの画素に拡散される誤差は R AM 1 0 6に記憶 される。 このような処理を繰り返していくことにより、 3つのラスタのドッ ト形成有無の判断を並行して行うことができる。
このようにしてラスタ iないしラスタ kの画素についてのドット形成有 無の判断を並行して行うこととすれば、 互いに隣接したラスタ iとラスタ j , あるいはラスタ j とラスタ kとの間で、 2ラスタを並行して処理するのと同 様の効果を得ることができる。
更に、 ラス夕 iないしラスタ kの処理を並行して行うこととすれば、 ラス 夕 kの画素については、 ラス夕 iの画素に続いて、 若しくは、 ほどなく ドッ ト形成有無が判断されることになる。 従って、 ラスタ iの画素から周辺画素 への拡散誤差を一旦誤差バッファに記憶させずとも、 直接、 ラスタ kの画素 のドット形成有無を判断することが可能であり、 その分だけ、 誤差バッファ への書き込み頻度を減らして、 ドット形成有無の判断に要する時間を短縮化 することが可能となる。 (2) 第 2の変形例:
以上の各種実施例では、 説明が煩雑化することを避けるために、 誤差拡散 マトリックスは図 6 (a) に示した比較的小さなマトリックスを使用するも のとした。 もちろん、 他の誤差拡散マトリックスを用いる場合でも、 同様の 方法により、 複数ラスタの画素についてのドット形成有無を並行して判断す ることができる。一例として、 図 6 (b)の誤差拡散マトリックスを用いて、 2本のラスタのドット形成有無を並行して判断する処理について、 図 1 0を 参照しながら説明する。
理解の便宜のために、 使用する誤差拡散マトリックスを図 1 0 (a) に示 す。このマトリックスは図 6 (b)に示したマトリックスと同じものである。 かかる誤差拡散マトリックスを使用した場合、 斜線を付して表示している着 目画素で発生した階調誤差は、 着目画素に隣接する画素だけでなく、 その隣 の画素にまで拡散される。 これを図 1 0 (b) にあてはめれば、 画素 Pj2で 発生した階調誤差は、 ラス夕 iについては画素 Pi3および画素 Pi4に拡散さ れ、 ラス夕 j については画素 PjOないし画素 Pj4の各画素に拡散される。 換 言すれば、ラスタ j の画素 PjOには、ラスタ iの画素 P iOからの拡散誤差と、 画素 Pi 1からの拡散誤差に加えて、 画素 P i2からの拡散誤差が配分されるこ とになる。 そこで、 ラスタ iに含まれるこれら 3つの画素のドッ卜形成有無 の判断が終了してから、 ラス夕 j にある画素 PjOのドット形成有無の判断を 開始する。 つまり、 図 1 0 (a) に示す誤差拡散マトリックスを使用する場 合は、 ラスタ iの画素とラスタ jの画素との位置関係は、 ラスタ jの画素が ラスタ iの画素に対して 2画素分遅れる関係となるのである。 このように、 複数のラスタの処理を並行して行う場合に、 各ラスタに含まれるそれぞれの 画素の位置関係は、 階調誤差を拡散する範囲に応じて定めることができる。 このような位置関係を保ったまま、 それぞれのラス夕の画素のドッ卜形成有 無を並行して判断
図 1 0 (b) は、 ラスタ iの画素 P i2およびラス夕 jの画素 PjOについて のドット形成有無の判断を連続して行う様子を示した説明図である。 尚、 図 中に丸印とともに表示した数字は、 ラスタ iおよびラスタ jの画素の中で、 その画素が何番目にドット形成有無の判断が行われるかを示したものであ る。 また、 画素 Pi2から周辺の画素に向かう太い矢印は、 画素 Pi2で発生し た階調誤差が誤差拡散マトリックスに従って周辺画素に拡散される様子を 概念的に示したものである。 画素 P i2の階調誤差を周辺画素に拡散したら、 画素 PjOのドット形成有無を判断する。 画素 PjOで生じた階調誤差の中、 ラ スタ j の画素に配分される拡散誤差は C PU 1 02のレジス夕に記憶し、 ラ スタ kの画素に配分される拡散誤差は RAM 1 06に記憶する。 画素 PjOか ら、 ラス夕 kの画素に向かう白抜きの矢印は、 これら画素に配分される拡散 誤差が RAM 1 06に記憶されることを示している。 丸印の中の数字で示さ れているように、 画素 PjOの次は、 画素 Pi3、 その次は画素 Pjlという順番 で、 ラスタ iの画素とラスタ j の画素とを交互にドット形成有無を判断して いく。 ラスタ iあるいはラスタ jの画素に配分される拡散誤差は C PU 1 0 2のレジス夕に記憶し、 ラス夕 kに配分される拡散誤差は RAM I 06に記 憶する。 以上の処理を繰り返しながら、 ラスタ iおよびラスタ j の全画素に ついてのドット形成有無を判断したら、 処理するラスタの位置を 2つ下にず らして、 ラス夕 kとその下のラスタについて、 同様の処理を繰り返していく ことにより、 図 1 0 (a) に示す誤差拡散マトリックスを用いて 2つのラス 夕のドット形成有無の判断を並行して行うことができる。
このようにしてラスタ iとラスタ j とについてのドット形成有無の判断 を並行して行う場合にも、 ラスタ j の画素は、 ラス夕 iの画素に続いて、 あ るいは、 ほどなく ドット形成有無が判断される。 従って、 ラスタ iの画素か ら周辺画素への拡散誤差を一旦誤差バッファに記憶させずとも、 直接、 ラス 夕 jの画素のドット形成有無を判断することができるので、 その分だけ、 誤 差バッファへの書き込み頻度を減らすことが可能となる。 その結果、 誤差バ ッファへの書き込み頻度を減少させて、 ドット形成有無の判断に要する時間 を短縮化することができる。
(3) 第 3の変形例:
以上の各種実施例では、 着目画素で発生した階調誤差は、 着目画素がある ラスタの画素と、 そのラスタの 1つ下のラスタの画素とに拡散されるものと して説明したが、 このような場合に限られない。 例えば、 図 6 (d) に例示 するような誤差拡散マトリックスを用いれば、 着目画素で発生した階調誤差 は、 着目画素のあるラスタから、 その 2つ下のラス夕までの画素に拡散され る。 図 1 1は、 一例として、 図 6 (d) に示す誤差拡散マトリックスを用い た場合に、 3つのラスタのドッ卜形成有無を並行して判断する処理を概念的 に示した説明図である。
理解の便宜のために、 使用する誤差拡散マトリックスを図 1 1 (a) に示 す。 このマトリックスは図 6 (d) のマトリックスと同じマトリックスであ る。 仮にラスタ i とラスタ j とラスタ kの、 3つのラスタについてのドッ卜 形成有無を並行して判断するものとする。 ラスタ kの画素で発生した階調誤 差は、 図 1 1 (a) の誤差拡散マトリックスに従って、 ラスタ kないしラス 夕 mの 3つのラス夕の画素に拡散されるが、 ラス夕 Lおよびラスタ mの 2つ のラスタにある画素については、 ラスタ iないしラス夕 kの 3つのラスタの 処理が終了してから、 ドット形成有無が判断される。 従って、 ラスタ Lおよ びラスタ mに拡散される誤差は、 RAM 1 0 6に記憶しておく。 図 1 1 (b) では、 拡散されてくる誤差を RAM 1 0 6に記憶する画素に斜線を付して示 している。 このように、 図 1 1 (a) に示す誤差拡散マトリックスを用いた 場合は、 拡散されてくる誤差が C PU 1 02のレジス夕に記憶されるラスタ と、 RAM 1 06に記憶される 2本のラス夕とが交互に現れることになる。
(4) 第 4の変形例:
階調誤差を広い範囲に拡散させる場合は、 着目画素から所定以上遠方に拡 散させる場合には、 誤差バッファに拡散するものとしても良い。 例えば、 着 目画素から 3画素以上遠方に拡散する誤差は、 誤差バッファの存在する画素 に拡散するものとして、 図 1 2 (a) に示すような誤差拡散マトリックスを 使用してもよい。 図 1 2 (a) で、 着目画素から遠方で、 2つのラスタにま たがって画素が破線で一体として表示されているのは、 これら領域では 2つ のラスタのうち、 誤差バッファが存在する側のラスタに誤差が拡散されるこ とを示している。 図 1 2 (b) , (c) を参照しながら具体的に説明する。 着目画素が、 誤差バッファの存在するラス夕上に位置している場合を考える c この場合、 誤差バッファは、 着目画素のあるラスタ、 およびその 2つ下のラ ス夕にあるので、 結局、 図 1 2 (b) に示したマトリックスに従って誤差を 拡散するのと同じことになる。 次に、 着目画素が誤差バッファの存在しない ラスタ上に位置しているを考えると、 この場合は、 誤差バッファは、 着目画 素のあるラス夕を上下に挟んだ 2つのラスタにあるので、結局、 図 1 2 (c ) に示したマトリックスに従って誤差を拡散するのと同じことになる。
このような図 1 2 (a) の誤差拡散マトリックスと、 これに対応する図 6 (c) の誤差拡散マトリックスとを比較すれば明らかなように、 図 1 2 (a) では着目画素から 3画素先にある領域(図中では K 3と表示)には、図 6 (c ) の画素 K03と画素 K 13とに拡散される誤差がまとまって拡散される。 同様に、 図 12 (a)で着目画素から 4画素先にある領域(図中で K 4と表示)には、 図 6 (c) の画素 K04と画素 K14とに拡散される誤差がまとまって拡散され ている。
着目画素で発生した誤差を遠方に拡散させる場合、 誤差を拡散する画素の 位置が多少ずれていても、 さほど大きな画質の悪化を生じさせないことが経 験上分かっている。 そこで、 階調誤差を広い範囲に拡散させる場合、 遠方の 画素については、 誤差バッファのある画素に拡散しても画質が悪化すること はない。 上述した各種の実施例では、 誤差を誤差バッファに拡散させない場 合は C PU 1 0 2のレジスタに記憶している。 そこで、 遠方の画素について は誤差バッファに記憶することとすれば、 その分だけ、 ドット形成有無の判 断に使用するレジスタを節約することができる。誤差を記憶しているレジス 夕数が少なくなれば、 処理を簡素なものにすることができ、 更に、 節約した レジスタを他の目的に使用すれば、 それだけドッ卜形成有無の判断を迅速に 行うことが可能となる。
尚、 以上の説明では、 誤差を 2つのラスタの画素にまたがって拡散させる ものとしたが、図 1 2 ( d )に示すような誤差拡散マトリックスを用いれば、 3つのラス夕にまたがって拡散させることもできる。 このように、 より多数 のラスタに拡散させる場合にも、 遠方に拡散させる誤差については誤差バッ ファに拡散させることとすれば、 画質の悪化を招くことなく、 簡素で迅速な 処理とすることができる。
C . 第 2実施例:
以上に第 1実施例の階調数変換処理として説明した各種実施例は、 着目画 素でドット形成有無を判断したことにより発生する階調誤差を、 誤差拡散マ トリックスに設定されている誤差拡散係数に従って、 周辺画素の拡散して記 憶した。 この意味からは、 第 1実施例の方法は、 いわゆる誤差拡散法と呼ば れる方法に準じた方法と考えることができる。 このような方法ではなく、 い わゆる平均誤差最小法と呼ばれる方法に準じた方法により、 複数ラスタのド ット形成有無の判断を並行して行うこともできる。 以下では、 このような第 2実施例の階調数変換処理について説明する。
C一 1 . 第 2実施例の階調数変換処理:
図 1 3は、 第 2実施例の階調数変換処理において複数ラスタの処理を並行 して行うことにより、 ドット形成有無の判断を迅速に行う原理を概念的に説 明する説明図である。 尚、 第 2実施例の階調数変換処理の詳細な説明に入る 前に、 その準備として、 平均誤差最小法と呼ばれる手法について、 図 1 3を 流用して簡単に説明しておく。
平均誤差最小法では、 着目画素のドット形成有無を判断する場合、 既にド ッ卜形成有無を判断済みの周辺画素から、 各画素で発生した階調誤差を読み 出して、 これら階調誤差を考慮しながら着目画素のドット形成有無を判断す る。 これを、 図 1 3 ( a ) に則して説明する。 図 1 3 ( a ) は、 画素 P i Oの ドット形成有無を判断する様子を示す説明図である。画素 P iOのドット形成 有無を判断しょうとする場合、 先ず、 画素 PiO周辺の画素 PhOおよび画素 P Mで発生した階調誤差に所定の重み係数を乗算し、 これらを加算した値を算 出する。 図 1 3 (a) で、 画素 PhO, 画素 Phiに、 EhO, E hiとそれぞれ表 示されているのは、 各画素で階調誤差 E ), Ehlが生じていることを示して いる。 次いで、 画素 PiOの画像データを算出した値で補正して、 得られた補 正値と所定の閾値との大小関係に基づいてドット形成の有無を判断する。 階 調誤差に乗算される重み係数は、 着目画素に対する各画素の相対的な位置関 係によって画素毎に予め設定されている。 図 1 3 (b) は、 着目画素を中心 として、 周辺の各画素に重み係数が設定されている様子を示す説明図である c 図中に斜線を付した画素が着目画素である。 例えば、 着目画素の左隣の画素 には、 重み係数として 「K0_1」 が設定されている。 もっとも、 着目画素周 辺の各画素への重み係数を設定するマトリックスは、 図 1 3 (b) のマトリ ックスに限定されるものではなく、 図 14に例示する各種のマトリックスを 使用することができる。
こうして画素 PiOのドッ卜形成有無を判断したら、 右隣にある画素 Pilに ついてのドット形成有無を開始する。 画素 Pilのドット形成有無に際しては、 図 1 3 (b) に設定されたマトリックスに従って、 画素 PhOと画素 Phiと画 素 Ph2および画素 PiOで発生した階調誤差を考慮しながらドット形成有無 を判断する。 画素 Pilの判断を終了したら、 更に右隣にある画素 Pi2の判断 を開始する。 このように、 ラスタに沿って 1画素ずつドット形成有無を判断 していく。 ドット形成有無の判断の結果として生じた階調誤差は、 RAM上 に設けられた誤差バッファに記憶され、 現在処理中のラス夕にある全画素の ドット形成有無の判断が終了した後、 1つ下にあるラスタの処理の中で、 再 び RAM上の誤差バッファから読み出されて使用される。 上述したように、 平均誤差最小法を用いてドット形成有無を判断するため には、 着目画素についてのドット形成有無を判断する度に、 周辺画素の階調 誤差を RAM上に設けられた誤差バッファから読み出さなければならず、 ま た、 判断によって着目画素に生じる階調誤差を、 他の画素のドット形成判断 に使用するため人、 誤差バッファに記憶しておく必要がある。 このように、 誤差バッファに対して階調誤差を頻繁に読み書きするためには、 その分だけ ドット形成有無の判断に時間が必要となる。
これに対して、 以下に説明する第 2実施例の階調数変換処理においては、 複数ラスタの処理を並行して行うことにより、 ドット形成有無の判断を迅速 に行うことが可能となる。 以下、 図 1 3を参照しつつ、 複数ラスタの処理を 並行して行うことにより、 ドット形成有無の判断を迅速に行う原理について 説明する。 図 13は、 最も簡単な例として、 2本のラスタについてのドット形成有無 の判断を並行して行う原理を示した説明図である。 ここでは、 ラスタ iと、 その直ぐ下のラスタ jの 2本のラスタについて、 並行してドッ卜形成有無を 判断するものとする。
先ず初めに、 ラスタ iの一番左側の画素 P iOのドット形成有無を判断する c 図 1 3 (a) は、 画素 PiOのドット形成有無を判断している様子を概念的に 示している。 着目画素 PiOについての判断を行うためには、 前述した平均誤 差拡散法と同様に、 画素 PhOの階調誤差 EhOと画素 Phiの階調誤差 Ehlとを 使用する。 これら階調誤差は、 コンピュータ 1 00の RAMI 06上に記憶 されている。 RAM 1 0 6から読み出した各階調誤差に、 図 1 3 (b) のマ トリックスに設定されている重み係数を乗算して、 着目画素 P iOの画像デー 夕を補正する。 こうして得られた補正値に基づいて画素 PiOのドット形成有 無を判断する。 図 1 3 (a) において、 画素 PhOあるいは画素 Phiから着目 画素 P iOに向けて表示された太線の矢印は、 着目画素 P iOのドット形成有無 を判断するために、 画素 PhOあるいは画素 Phiの階調誤差を考慮することを 概念的に表現したものである。
画素 PiOについてのドット形成有無を判断したら、 発生した階調誤差 EiO を C PU 1 02のレジスタに一時記憶した後、 画素 P iOの右隣にある画素 P ilについてのドット形成有無の判断を開始する。 図 1 3 (b) に設定されて いるように、 画素 P ilのドット形成有無の判断には、 画素 PhO, 画素 Phl, 画素 Ph2, および画素 P iOの各画素で発生した階調誤差が考慮される。 図 1 3 (a) では、 これら各画素から画素 P ilに向けて表示されている細線の矢 印は、 着目画素 Pilのドット形成有無を判断するために、 これら画素の階調 誤差を考慮することを概念的に示すものである。 これら 4つの階調誤差の中、 画素 PhOの階調誤差 EhOおよび画素 PMの階調誤差 EMは、 先に画素 PhOに ついてのドット形成判断に使用した値を記憶しておき、 この値を用いること ができる。 また、 画素 PiOの階調誤差 EiOは、 先程求めた値を使用すること ができる。 従って、 画素 Ph2についての階調誤差 Eh2のみを RAM 1 0 6か ら読み出せば、 画素 Pilについてのドット形成有無を判断することが可能で ある。 判断した結果として画素 Pilに生じた階調誤差 Eilは、 C PU 1 02 のレジス夕に記憶しておく。
第 2実施例の階調数変換処理では、 ラスタ iにある画素 PiOおよび画素 P ilのドット形成有無を判断したら、 次は、 ラス夕 j にある画素 PjOについて のドッ卜形成有無を判断する。 図 1 3 (c) は、 画素 PjOのドット形成有無 を反する様子を概念的に示す説明図である。 図 1 3 (b) のマトリックスか ら明らかなように、 画素 PjOのドット形成有無は、 画素 PiOおよび画素 Pil での階調誤差を考慮するだけで判断することができる。 前述したように、 こ れら階調誤差 EiOおよび Eilは、 画素 PjOの直前に求められて、 CPU 1 0 2のレジスタに記憶されている。 このことから、 画素 PjOについては RAM 1 06から階調誤差を読み出すことなく、 ドット形成有無を判断することが できる。 こうして、 画素 PjOのドット形成有無を判断したら、 画素 PjOで生 じた階調誤差を、 C PU 1 02のレジスタと RAM 1 0 6上の誤差バッファ とに記憶し、 以降は、 ラスタ iの画素とラスタ jの画素とについて交互にド ット形成有無を判断していく。
尚、 画素 PjOの階調誤差 EjOを RAM 1 0 6上の誤差バッファに記憶する 理由は、 ラスタ iおよびラスタ jの処理を終了後、 ラス夕 kにある画素のド ット形成有無を判断する際に、 階調誤差 EjOを使用するためである。 また、 誤差バッファだけでなく C PU 1 02のレジスタにも記憶するのは、 隣接す る画素 Pjlのドット形成有無の判断の際に使用するためである。 前述した画 素 PiOあるいは画素 Pilのドット形成有無の判断に際しては、 こうして RA M 1 06に記憶されていた階調誤差を読み出して使用している。 図 1 3にお いて、 ラスタ hおよびラスタ j の画素に斜線が施されているのは、 これら画 素の階調誤差が誤差バッファに記憶されていることを示すものである。
図 1 3 (d) 中で、 画素に表示した丸印の中の数字は、 各画素のドット形 成有無を判断する順番を示したものである。 図 1 3 (d) に示されているよ うに、 画素 PjOの次ぎにドット形成有無を判断する画素は、 ラス夕 iにある 画素 P i2の画素である。 かかる画素のドット形成判断に考慮される階調誤差 は、 画素 Phi, 画素 Ph2, 画素 Ph3、 および画素 P ilの 4つの階調値である が、 前述の画素 Pilの場合に使用した階調誤差を記憶しておけば、 RAMI 0 6からは、 画素 Ph3で生じた階調誤差のみを読み出すだけでドット形成有 無を判断することができる。 更に、 画素 Pi2の次は、 ラス夕 jの画素 Pjlに ついてのドッ卜形成有無を判断する。画素 ΡΠのドット形成有無の判断には、 画素 PiO, 画素 Pil, 画素 Pi2、 および画素 P j 0の各画素での階調誤差を使 用するが、 これら各階調誤差は、 いずれも直前に求められて、 CPU 1 0 2 のレジス夕に記憶されている。 従って、 画素 Pjlについては、 RAM I 06 から階調誤差を読み出すことなく ドット形成有無を判断することができる。 こうして画素 ΡΠの階調誤差 ΕΠが求められたら、 C PU 102のレジスタ と、 RAM 1 06上の誤差バッファとに階調誤差 Ejlを記憶する。 以上に説明したように、 ラスタ iの画素と、 該画素の左下にあるラスタ j の画素とを、 交互にドット形成の有無を判断していく。 こうして、 ラスタ i と隣接するラスタ j の処理を並行して行えば、 ラスタ jの画素については、 RAMI 0 6から階調誤差を読み出すことなく ドット形成有無を判断する ことができる。 すなわち、 その分だけ、 RAM I 06上の誤差バッファに対 して読み書きする頻度を減らすことができるので、 ドット形成有無の判断を 迅速に行うことができるのである。
尚、 図 1 3に示したように、 ラスタ iの左端の画素、 すなわち画素 P iOに ついては該画素の左下にラス夕 jの画素が存在しないので、 変則的に、 画素 P iOに続いて同じラスタ iにある画素 P i lの処理を行っている。 もっとも、 画素 P iOの左下に架空の画素 P j -1 を想定し、 画素 P iOに続いて架空の画素 P j - 1 の処理を行った後、 かかる架空の画素 P j _l については、 ドット形成 有無の判断結果を使用せずに捨ててしまうこととしても良い。 こうすれば、 左端の画素についても架空の画素に対して通常の処理を行うことができる ので、 変則的な処理が不要となって好ましい。 図 1 5は、 2本のラスタについてのドット形成有無の判断を並行して行う 処理の流れを示すフローチヤ一トである。 この処理はコンピュータ 1 0 0の C P U 1 0 2によって行われる。 尚、 前述した第 1実施例の階調数変換処理 と同様に、 第 2実施例の階調数変換処理も、 カラープリンタに備えられた各 色毎に行われるが、 説明の煩雑化を避けるために、 インクドットの色を特定 せずに説明する。また、いわゆるバリアブルドットプリンタを使用する場合、 第 2実施例の階調数変換処理がドットの各種大きさ毎に行われることは、 前 述した第 1実施例の場合と同様である。
第 2実施例の階調数変換処理を開始すると、 先ず初めに、 並行して処理す るラスタの 1本目のラスタの中から、 ドット形成有無を判断しょうとする画 素の画像データを取得する (ステップ S 3 0 0 ) 。 ここでは、 第 1実施例に 合わせて、 処理しょうとする画素 (着目画素) をラスタ iの n番目の画素 P inとする。 画像データ C din は、 R AM 1 0 6に記憶されている。
次いで、 着目画素 P inの周辺画素の階調誤差を読み出す (ステップ S 3 0 2 ) 。 周辺画素とは、 着目画素から所定領域内にあって、 着目画素のドット 形成有無の判断に階調誤差が考慮される画素である。着目画素のドッ卜形成 有無の判断に際しては、 周辺画素として種々の範囲の画素を考慮することが できるが、 説明が煩雑となることを避けるために、 以下では、 図 1 4 ( a ) のマトリックスに示した周辺画素を考慮するものとする。 尚、 ステップ S 3 0 2において周辺画素の階調誤差を読み出すにあたっては、 図 1 3を用いて 説明したように、 着目画素 P inの左隣にある画素 P in- 1の判断の際に読み出 した各画素の階調誤差をレジス夕に記憶しておき、 ステップ S 3 0 2では、 レジスタに記憶されていない階調誤差のみを、 RAM I 06から読み出すよ うにしても良い。
こうして読み出した周辺画素の階調誤差と、 着目画素 Pinの画像データ C din とに基づいて、 着目画素 Pinの補正デ一夕 Cxin を算出する (ステップ S 304) 。 すなわち、 周辺画素の階調誤差と、 周辺画素毎に定められた所 定の重み係数とを乗算し、 これら乗算値と着目画素 Pinの画像デ一夕 C din との和を求めて、補正データ Cxinとするのである。周辺画素の重み係数は、 図 14 (a) のマトリックスに画素毎に定められている。
こうして得られた補正データ Cxin と所定の閾値 th とを比較して (ステ ップ S 30 6 ) 、 補正データの方が大きければ画素 Pinにドットを形成する と判断して、 判断結果を示す変数 Cr にドッ卜を形成することを意味する値 「 1」 書き込む (ステップ S 308) 。 そうでなければ画素 Pinにはドット を形成しないと判断して、 変数 Crにドットを形成しないことを意味する値 「0」 を書き込む (ステップ S 3 1 0) 。
ラスタ iの画素 Pinについてのドット形成有無を判断したら、 該判断に伴 つて発生する階調誤差 E inを算出して C PU 1 02のレジスタに記憶する (ステップ S 3 1 2) 。 階調誤差 Einは、 第 1実施例と同様に、 補正データ Cxin から着目画素 P inの結果値を減算することで求めることができる。 以上のようにして、 ラスタ iにある画素 P inのドット形成有無を判断し、 階調誤差を C PU 1 02のレジスタに記憶したら、 画素 Pinの左下にあるラ スタ j の画素 P jn- 1について、 ドット形成有無を判断するための処理を開始 する。 先ず、 画素 P jn- 1の画像データ Cdjn- 1 を RAM 1 06から読み出し て (ステップ S 3 14) 、 周辺にある各画素の階調誤差を CPU 1 02のレ ジス夕から読み出す (ステップ S 3 1 6) 。 尚、 画素 Pinがラスタ iの左端 にある画素 P iOである場合は、架空の画素 P j- 1について同様の処理を行う。 ここで、 ステップ S 3 1 6においては、 周辺画素の階調誤差をレジスタか ら読み出すことが可能であり、 RAM 1 06上の誤差バッファから読み出さ なくて良い理由について説明する。 前述したように、 周辺画素として図 14 (a) に示す範囲を考慮するとしているから、 ラスタ: j にある画素のドット 形成有無の判断には、 同じラスタ iにある画素の階調誤差と、 1つ上にある ラスタ j の画素の階調誤差とが考慮される。 ここで、 ラスタ iの画素とラス 夕 jの画素は並行してドット形成有無を判断しているから、 ラスタ j にある 画素のドット形成有無を判断する際に周辺画素となるのは、 全て、 少し前に ドット形成有無を判断した画素ばかりである。 従って、 ドット形成有無を判 断することで生じる階調誤差を、 しばらくの間だけ CPU 1 02のレジスタ に蓄えておけば、 RAM 1 06上の誤差バッファから読み出さずとも、 周辺 画素の階調誤差を全てレジスタから読み出すことができるのである。
こうして画素 Pjn-1について、 周辺画素の階調誤差を読み出したら、 画素 Pinの場合と同様にして、 ドット形成有無を判断し、 該判断に伴って生じる 階調誤差 Ejn- 1を算出する。 すなわち、 周辺画素の階調誤差と、 着目画素 P jn- 1の画像データ Cdjn_l とに基づいて補正データ Cxjn- 1 を算出し (ステ ップ S 3 1 8) 、 得られた補正データ Cxjn- 1 と所定の閾値 t h とを比較し (ステップ S 320) 、 補正データの方が大きければ画素 Pjn-1にドットを 形成すると判断して、 判断結果を示す変数 Crにドットを形成することを意 味する値 「1」 書き込む (ステップ S 322) 。 そうでなければ画素 Pjn - 1 にはドットを形成しないと判断して、 変数 Crにドッ卜を形成しないことを 意味する値 「0」 を書き込む (ステップ S 324) 。 次いで、 補正データ C xjn-1から着目画素 Pjn_lの結果値を減算して、 着目画素 Pjn- 1で生じる階 調誤差 Ejn- 1を算出する。
以上のようにして、 ラス夕 j にある画素 Pjn-1の階調誤差 Ejn-1を求めた ら、 該階調誤差 Ejn- 1を、 C PU 1 02のレジス夕と RAM 1 0 6上の誤差 バッファとに記憶する (ステップ S 32 8) 。 ここで、 階調誤差をレジスタ と誤差バッファとに記憶するのは、 次の理由によるものである。 画素 Pjn - 1 の階調誤差 Ejn- 1は、 隣接する画素 Pjnのドット形成有無の判断と、 1つ下 のラスタ kにある画素のドット形成有無の判断に使用される。 ここでは、 ラ スタ iおよびラスタ jの処理を並行して行うものとしているから、 隣接する 画素 Pjnのドッ卜形成有無の判断はほどなく行われるが、 ラスタ kにある画 素の判断は、 ラスタ iおよびラスタ jの処理が終了した後に行われる。 従つ て、 画素 P j n- 1の階調誤差 E j n_ lは、 画素 P j nの判断で使用するために C P U 1 0 2のレジスタに記憶するとともに、 ラスタ kの画素についての判断に 使用するために、 R A M I 0 6上の誤差バッファにも記憶しておくのである c 以上のようにして、 ラス夕 iの画素とラスタ】 の画素とについて、 ドット 形成有無を判断する処理が終了したら、 ラスタ iおよびラスタ j の全ての画 素の処理を終了したか否かを判断する (ステップ S 3 3 0 ) 。 未処理の画素 が残っている場合は、 画素の位置を 1つ右に移動させ、 すなわち 「n + l」 の値で 「n」 を置き換えて、 ステップ S 2 0 0に戻って続く一連の処理を行 う。 未処理の画素が残っていない塲合は、 全てのラス夕の処理が終了したか 否かを判断し (ステップ S 3 3 2 ) 、 処理していないラス夕が残っている場 合はラスタ位置をラスタ 2本分だけ下に移動させ、 すなわち 「 i + 2」 の値 で「 i」を置き換えた後、ステップ S 2 0 0に戻って続く一連の処理を行う。 未処理のラスタが残っていない場合は、 図 1 5に示した階調数変換処理を終 了して、 図 4に示す画像データ変換処理に復帰する。 以上に説明したように、 第 2実施例の階調数変換処理によれば、 ラスタ i の画素とラスタ jの画素とを、 並行して交互にドット形成有無を判断してい く。 こうすれば、 ラスタ j の画素は、 ラスタ iの画素に続いて、 あるいは、 ほどなく ドット形成有無が判断されることになるので、 ラスタ iの画素で発 生した階調誤差を誤差バッファに記憶しておかなくとも、 ラスタ jの画素の ドット形成有無を判断することができる。 ラスタ iの画素で発生した階調誤 差を誤差バッファに記憶しなくても良くなれば、 その分だけ、 誤差バッファ への書き込み頻度を減らすことができるので、 ドット形成有無の判断を迅速 に行うことが可能となる。 もちろん、 並行して処理するラスタの本数は 2本 に限られず、 より多くのラスタについてのドット形成有無の判断を並行して 行うようにしても良い。 並行して処理するラスタの本数が多くなるほど、 誤 差バッファへの書き込み頻度を少なくなり、 その分だけドット形成有無の判 断を迅速に行うことが可能となって好ましい。 C一 2. 変形例:
上述した第 2実施例の階調数変換処理は、 いわゆる平均誤差最小法と呼ば れる方法に準じた方法を用いてドット形成有無を判断している。 すなわち、 着目画素で生じた階調誤差を該着目画素に記憶しておき、 新たな画素のドッ ト形成有無の判断に際しては、 周辺の画素に記憶されている階調誤差を考慮 してドット形成有無を判断している。 また、 前述の第 1実施例の階調数変換 処理では、 いわゆる誤差拡散法と呼ばれる方法に準じた方法を用いてドット 形成有無を判断している。 すなわち、 着目画素で生じた階調誤差を周辺画素 に拡散しておき、 新たな画素のドット形成有無を判断する際には、 周辺の既 判断画素から拡散されて蓄積されている拡散誤差を考慮してドット形成有 無を判断している。 これらに対して、 平均誤差最小法と、 誤差拡散法とを併 用しながらドット形成有無を判断することも可能である。 以下では、 このよ うな第 2実施例の変形例について簡単に説明する。 図 1 6は、 第 2実施例の変形例の階調数変換処理を概念的に示す説明図で ある。 尚、 説明の煩雑化を避けるために、 ここではラスタ iとラスタ j とを 並行して処理するものとする。また、階調誤差を周辺画素に拡散する際には、 図 6 (a) に示す単純な誤差拡散マトリックスに従って拡散するものとし、 周辺画素の階調誤差を考慮してドッ卜形成有無を判断する際には、 図 14 (a) に示す単純なマトリックスに従って各画素の階調誤差を考慮するもの とする。
図 1 6 (a) は、 ラスタ iの左端の画素 P iOについて、 ドット形成有無を 判断している様子を示す説明図である。 ラスタ iの各画素には、 ラスタ hに ある画素のドット形成有無を判断した際に、 各画素で生じた階調誤差が拡散 されて記憶されている。 例えば、 画素 PiOにはラスタ hから拡散されてきた 拡散誤差 EdiO が、 画素 Pilにはラスタ hからの拡散誤差 Edil が、 画素 P i2には拡散誤差 Edi2がそれぞれ記憶されている。 理解の便宜から、 使用す る誤差拡散マトリックスを図 1 6 (b) に示しておく。 また、 図 1 6 (a) 中で、 ラスタ hの画素からラスタ iの画素に向かう矢印は、 各画素から誤差 が拡散されていることを概念的に示したものである。
画素 Pめについてのドット形成有無を判断したら、 判断にともなって生じ た階調誤差 EiOを C PU 1 02のレジス夕に記憶し、 続いて、 右隣にある画 素 Pilのドット形成有無の判断を開始する。画素 Pilについてのドット形成 有無の判断は、 図 7を用いて説明した第 1実施例の階調数変換処理と同様に して行う。 すなわち、 画素 Pilに予め拡散されて蓄積されている拡散誤差 E dil を読み出して、 この拡散誤差 Edilと、 先にドット形成有無を判断した 画素 P iOから拡散されてくる誤差とを考慮しながら、 画像データに基づいて ドット形成有無を判断するのである。 こうして画素 Pilのドット形成有無を 判断したら、 該判断によって発生した階調誤差 Eilを、 画素 PiOの場合と同 様に、 C PU 1 02のレジスタに記憶する。
以上のようにして、 ラスタ iにある画素 P iOおよび画素 P ilについてのド ット形成有無を判断したら、 ラスタ j の左端にある画素 PjOの判断を行う。 図 1 6 (c) は、 ラスタ jの画素 PjOについてのドット形成有無を判断して いる様子を示す説明図である。 ラスタ j の画素の判断には、 平均誤差最小法 に準じた方法を用いてドット形成有無を判断する。 すなわち、 周辺画素で発 生した階調誤差に、 マトリックスによって画素毎に定められた所定の重みを 考慮しながらドット形成有無を判断する。 理解の便宜のために、 使用してい るマトリックスを図 1 6 (d) に示しておく。
図 1 6 (d) のマトリックスに示されているように、 画素 PjOについての ドット形成有無の判断には、 画素 P iOおよび画素 P ilで発生した階調誤差を すればよい。 前述したように、 これら階調誤差は、 既に求められて CPU 1 02のレジスタに記憶されているので、 画素 PjOについてのドット形成有無 を迅速に判断することができる。 こうして画素 PjOについての判断を行った 結果、階調誤差 EjOが発生するので、今度は誤差拡散マトリックスに従って、 ラスタ kにある周辺画素に拡散誤差を分配する。 拡散誤差の分配には、 図 1 6 (b) の誤差拡散マトリックスを使用する。 尚、 ここではラスタ iおよび ラスタ jの画素を並行して処理しているので、 ラスタ kの画素についてのド ット形成有無の判断は、 これらラスタの処理を終了した後になる。 そこで、 ラスタ kの各画素に拡散される拡散誤差は、 R AM I 0 6上の誤差バッファ に蓄積しておく。 図 1 6 ( c ) で、 画素 P j Oからラスタ kにある画素 P kOお よび画素 P klに向かって表示されている白抜きの矢印は、 R A M I 0 6上の 誤差バッファに蓄積されることを示している。
以上に説明したように、 ラス夕 iの画素については、 誤差拡散法に準じて ドット形成有無を判断し、 ラスタ j の画素については平均誤差最小法に準じ てドット形成有無を判断する。 ラスタ j の画素で発生した階調誤差は、 誤差 拡散法に準じて周辺画素に拡散する。 このような処理を繰り返すことによつ て、 ラス夕 iおよびラスタ j の画素についてのドット形成有無を、 交互に判 断していくことができる。 図 1 6 ( e ) は、 かかる処理の様子を概念的に示 した説明図である。 図 1 6 ( e ) 中では、 ラスタ hから拡散されてきた拡散 誤差がラスタ iの画素に記憶されていることを、 ラスタ iの画素に斜線を施 すことで表示している。 同様に、 ラスタ jから拡散された拡散誤差がラスタ kの画素に記憶されていることを、 ラス夕 kの画素に斜線を施すことで表示 している。 また、 図 1 6 ( e ) の各画素に丸印とともに表示した数字は、 画 素のドット形成有無の判断を行う順番を表している。 図示されているように、 ラスタ iの画素とその左下にあるラスタ j の画素とを 1組として、 処理する 組の位置を 1画素ずつ右に移動させながらドット形成有無を判断していく ことで、 ラス夕 iおよびラスタ j の処理を並行して行うことが可能となる。 このように、 ラスタ iおよびラスタ j の画素についてのドット形成有無を、 並行して交互に判断していけば、 ラスタ iの画素で生じた階調誤差を利用し て、 続くラスタ jの画素のドット形成有無を判断することが可能となり、 ラ ス夕 iの画素の階調誤差を誤差バッファに記憶しておく必要がなくなる。 そ の結果、 誤差バッファに対して読み書きする頻度を減少させることができ、 ドット形成有無の判断を迅速に行うことが可能となる。
尚、 以上の説明においては、 ラスタ iの画素のドット形成有無の判断に誤 差拡散法に準じた方法を適用し、 ラス夕 jの画素の判断には平均誤差最小法 に準じた方法を適用するものとしたが、 もちろん、 ラスタ iの画素の判断に 平均誤差最小法に準じた方法を適用し、 ラスタ jの画素の判断に誤差拡散法 を適用しても同様の効果を得ることができる。
また、 以上に説明した第 2実施例の変形例においては、 ラスタ iおよびラ スタ jの 2つのラス夕の処理を並行して行うものとしたが、 もちろん、 より 多くのラスタの画素についてのドット形成有無の判断を並行して行っても 構わない。 以上、 各種の実施例について説明してきたが、 本発明は上記すベての実施 例に限られるものではなく、 その要旨を逸脱しない範囲において種々の態様 で実施することができる。 例えば、 上述の機能を実現するソフトウェアプロ グラム (アプリケーションプログラム) を、 通信回線を介してコンピュータ システムのメインメモリまたは外部記憶装置に供給し実行するものであつ てもよい。 もちろん、 C D— R O Mやフロッピーディスクに記憶されたソフ トウエアプログラムを読み込んで実行するものであっても構わない。
また、 上述した各種実施例では、 階調数変換処理を含む画像データ変換処 理はコンピュータ内で実行されるものとして説明したが、 画像データ変換処 理の一部あるいは全部をプリンタ側、 あるいは専用の画像処理装置を用いて 実行するものであっても構わない。
更には、 画像表示装置は、 必ずしも印刷媒体上にインクドットを形成して 画像を印刷する印刷装置に限定されるものではなく、 例えば、 液晶表示画面 上で輝点を適切な密度で分散させることにより、 階調が連続的に変化する画 像を表現する液晶表示装置であっても構わない。 産業上の利用の可能性
以上説明したように、 本発明の画像処理装置、 印刷制御装置、 画像処理方 法によれば、 画質を悪化させることなく迅速に画像データを変換することが できるので、 画像の出力装置として好適に適用することができる。 特に、 大 きなサイズの画像データを扱って高画質の画像を印刷したり、 あるいは画質 を悪化させることなく迅速に画像を印刷する印刷装置に好適に適用するこ とができる。

Claims

請求の範囲
1 . 画素毎の階調値を示す画像データを受け取り、 該画素の列たるラス夕 に沿って、 該ラスタを構成する各画素でのドット形成の有無を判断すること で、 該画像データをドット形成の有無による表現形式に変換する画像処理装 置であって、
互いに隣接した複数本の前記ラスタをまとめてラスタ群を生成するラス 夕群生成手段と、
前記ラス夕群の中の最後尾にある最後尾ラスタを選択し、 該最後尾ラス夕 を構成する各画素についてドット形成の有無を判断することによって、 該最 後尾ラスタをドッ卜形成の有無を表すドット列に変換する最後尾ラスタ変 換手段と、
前記ドット形成の有無を判断することにより各画素で生じた階調誤差を、 前記最後尾ラスタを構成する各画素について算出し、 該各画素の周辺にある 複数の未判断の画素に拡散する第 1の誤差拡散手段と、
前記最後尾ラスタに隣接するラス夕群の中の先頭位置にある先頭ラスタ を選択し、 該最後尾ラス夕から該先頭ラス夕の各画素に拡散された前記階調 誤差を考慮しながら、 該先頭ラス夕を構成する各画素についてドット形成の 有無を判断することによって、 該先頭ラスタをドット形成の有無を表すドッ ト列に変換する先頭ラス夕変換手段と、
前記先頭ラス夕を構成する各画素で生じた前記階調誤差を、 該各画素の周 辺にある未判断の画素に拡散する第 2の誤差拡散手段と、
前記ラスタ群から前記先頭ラスタを除いた残余ラス夕については、 該残余 ラスタと同じラスタ群に属し且つドット形成有無を判断済みの画素から拡 散された前記階調誤差を考慮しながら該残余ラス夕の各画素のドット形成 有無を判断することにより、 該先頭ラスタを前記ドット列に変換する処理に 並行して該残余ラスタをドット列に変換する残余ラスタ変換手段と
を備え、
前記第 1の誤差拡散手段および前記第 2の誤差拡散手段は、 前記ドット形 成の有無を判断した画素とは異なるラスタ群の画素に拡散された誤差につ いては第 1の誤差記憶部に記憶し、 該ドット形成有無を判断した画素と同じ ラスタ群の画素に拡散された誤差については第 2の誤差記憶部に記憶する 手段である画像処理装置。
2 . 請求項 1記載の画像処理装置であつて、
前記第 2の誤差記憶部は、 前記第 1の誤差記憶部よりも、 データの記憶あ るいは読み出しの少なくとも一方を迅速に実行可能な記憶部である画像処
3 . 請求項 1記載の画像処理装置であつて、
前記第 1の誤差記憶部は、 前記拡散された誤差を、 前記先頭ラス夕を構成 する画素と少なくとも同数の画素数分は同時に記憶可能な記憶部であり、 前記第 2の誤差記憶部は、 前記拡散された誤差を、 前記先頭ラス夕を構成 する画素よりも少数の画素数分だけ同時に記憶する記憶部である画像処理
4 . コンピュータを用いて前記画像データの変換を行う請求項 3記載の画 像処理装置であって、
前記第 1の誤差記憶部は、 前記コンピュータの演算装置がデータを間接的 に書き込みあるいは読み出しを行う記憶素子であり、
前記第 2の誤差記憶部は、 前記演算装置がデータを直接に書き込みあるい は読み出しを行う記憶素子である画像処理装置。
5 . 請求項 1記載の画像処理装置であつて、
前記第 1の誤差拡散手段は、 前記ドット形成の有無を判断した画素と異な るラスタ群の画素としては、 前記最後尾ラスタに隣接する前記先頭ラスタの 画素にのみ拡散する手段である画像処理装置。
6 . 請求項 1記載の画像処理装置であって、
前記ラスタ群生成手段は、 互いに隣接した 2本の前記ラスタをまとめて前 記ラスタ群を生成する手段であり、
前記第 1の誤差拡散手段は、 前記階調誤差を、 前記最後尾ラスタの画素と 該最後尾ラスタに隣接する前記先頭ラスタの画素とに拡散する手段であり、 前記第 2の誤差拡散手段は、 前記先頭ラス夕の画素で生じた前記階調誤差 を、 該先頭ラスタの画素と該先頭ラス夕に後続する前記最後尾ラスタの画素 とに拡散する手段であり、
前記残余ラスタ変換手段は、 前記先頭ラスタを変換する処理に並行して、 前記最後尾ラスタをドット列に変換する手段である画像処理装置。
7 . 請求項 1記載の画像処理装置であつて、
前記第 1の誤差拡散手段あるいは前記第 2の誤差拡散手段の少なくとも 一方は、 前記階調誤差を該階調誤差が生じた画素から所定値以上遠方の画素 に拡散する際には、 前記ドット形成有無を判断した画素と異なるラス夕群の 画素にのみ拡散する手段である画像処理装置。
8 . 画素毎の階調値を示す画像データを受け取り、 該画素の列たるラスタ に沿って、 該ラスタを構成する各画素でのドッ卜形成の有無を判断すること で、 該画像データをドット形成の有無による表現形式に変換する画像処理装 置であって、
互いに隣接した複数本の前記ラスタをまとめてラスタ群を生成するラス 夕群生成手段と、
前記ラスタ群の最後尾にある最後尾ラスタを少なくとも含んで該ラスタ 群の中からラスタを選択し、 該選択したラスタを構成する各画素についてド ット形成の有無を判断することによって、 該選択したラスタをドット形成の 有無を表すドット列に変換する選択ラスタ変換手段と、
前記ドッ卜形成の有無を判断することにより各画素で生じた階調誤差を、 前記選択したラスタを構成する各画素について算出し、 該判断を行った各画 素に対応付けて第 1の記憶部に記憶する第 1の階調誤差記憶手段と、 前記最後尾ラスタに隣接するラスタ群の中の先頭位置にある先頭ラスタ を選択し、 該先頭ラス夕を構成する各画素の周辺にあって、 ドット形成有無 を判断済みの周辺画素に記憶されている前記階調誤差を考慮しながら、 該各 画素のドット形成有無を判断することによって、 該先頭ラスタをドット列に 変換する先頭ラスタ変換手段と、
前記先頭ラス夕を構成する各画素で生じた前記階調誤差を、 前記判断を行 つた各画素に対応付けて第 2の記憶部に記憶する第 2の階調誤差記憶手段 と、
前記ラスタ群から前記先頭ラスタを除いた残余ラスタについては、 該残余 ラスタと同じラスタ群に属し且つドット形成有無を判断済みの画素で生じ た前記階調誤差を考慮しながら該残余ラスタの各画素のドット形成有無を 判断することにより、 前記先頭ラスタを前記ドット列に変換する処理と並行 して該残余ラスタをドッ卜列に変換する残余ラスタ変換手段と
を備えている画像処理装置。
9 . 請求項 8記載の画像処理装置であって、
前記第 2の記憶部は、 前記第 1の記憶部よりも、 データの記憶あるいは読 み出しの少なくとも一方を迅速に実行可能な記憶部である画像処理装置。
1 0 . 請求項 8記載の画像処理装置であって、
前記第 1の記憶部は、 前記最後尾ラスタを構成する各画素で生じた階調誤 差を、 該最後尾ラスタを構成する画素数と同数の画素数分は、 同時に記憶可 能な記憶部であり、
前記第 2の記憶部は、 前記先頭ラスタを構成する各画素で生じた階調誤差 を、 該先頭ラスタを構成する画素数よりも少数の画素数分だけ、 同時に記憶 する記憶部である画像処理装置。
1 1 . コンピュータを用いて前記画像データの変換を行う請求項 8記載の 画像処理装置であって、
前記第 1の記憶部は、 前記コンピュータの演算装置がデータを間接的に書 き込みあるいは読み出しを行う記憶素子であり、
前記第 2の記憶部は、 前記演算装置がデータを直接に書き込みあるいは読 み出しを行う記憶素子である画像処理装置。
1 2 . 請求項 8記載の画像処理装置であって、
前記第 1の階調誤差記憶手段は、 前記ラスタ群の中の前記最後尾ラスタを 構成する各画素で生じた階調誤差のみを、 前記第 1の記憶部に記憶する手段 である画像処理装置。
1 3 . 請求項 8記載の画像処理装置であって、
前記ラスタ群生成手段は、 互いに隣接した 2本の前記ラスタをまとめて前 記ラスタ群を生成する手段であり、
前記第 1の階調誤差記憶手段は、 前記最後尾ラスタで生じた階調誤差のみ を、 前記第 1の記憶部に記憶する手段であり、
前記残余ラスタ変換手段は、 前記先頭ラスタを変換する処理に並行して、 前記最後尾ラスタをドット列に変換する手段である画像処理装置。
1 4 . 請求項 1または請求項 8記載の画像処理装置であって、
前記残余ラスタ変換手段は、 前記残余ラスタをドット列に変換するに際し て、 該残余ラスタと同じラス夕群に属し、 且つドット形成有無を判断済みの 画素から拡散されてきた前記階調誤差を考慮しながらドット形成有無を判 断することによって、 該残余ラスタをドッ卜列に変換する手段である画像処
1 5 . 請求項 1または請求項 8記載の画像処理装置であって、
前記残余ラスタ変換手段は、 前記残余ラスタをドット列に変換するに際し て、 該残余ラスタと同じラス夕群に属し、 且つドット形成有無を判断済みの 画素で生じた前記階調誤差を考慮しながらドッ卜形成有無を判断すること によって、 該残余ラスタをドット列に変換する手段である画像処理装置。
1 6 . 画素毎の階調値を示す画像データを受け取り、 該画素の列たるラス 夕に沿って、 該ラスタを構成する各画素でのドット形成の有無を判断するこ とで、 該画像データをドット形成有無による表現形式の印刷データに変換し、 印刷媒体上にインクドットを形成して画像を印刷する印刷部に対して該印 刷データを出力することによって、 該印刷部を制御する印刷制御装置であつ て、
互いに隣接した複数本の前記ラスタをまとめてラスタ群を生成するラス 夕群生成手段と、
前記ラスタ群の中の最後尾にある最後尾ラスタを選択し、 該最後尾ラスタ を構成する各画素についてドット形成の有無を判断することによって、 該最 後尾ラスタをドット形成の有無を表すドット列に変換する最後尾ラスタ変 換手段と、
前記ドッ卜形成の有無を判断することにより各画素で生じた階調誤差を、 前記最後尾ラスタを構成する各画素について算出し、 該各画素の周辺にある 複数の未判断の画素に拡散する第 1の誤差拡散手段と、
前記最後尾ラスタに隣接するラスタ群の中の先頭位置にある先頭ラスタ を選択し、 該最後尾ラスタから該先頭ラスタの各画素に拡散された前記階調 誤差を考慮しながら、 該先頭ラスタを構成する各画素についてドット形成の 有無を判断することによって、 該先頭ラスタをドッ卜形成の有無を表すドッ ト列に変換する先頭ラスタ変換手段と、
前記先頭ラス夕を構成する各画素で生じた前記階調誤差を、 該各画素の周 辺にある未判断の画素に拡散する第 2の誤差拡散手段と、
前記ラスタ群から前記先頭ラス夕を除いた残余ラスタについては、 該残余 ラスタと同じラスタ群に属し且つドット形成有無を判断済みの画素から拡 散された前記階調誤差を考慮しながら該残余ラスタの各画素のドット形成 有無を判断することにより、 該先頭ラスタを前記ドット列に変換する処理に 並行して該残余ラスタをドット列に変換する残余ラスタ変換手段と
前記変換された先頭ラスタのドッ卜列と前記残余ラスタのドット列とを、 前記印刷データとして前記印刷部に出力する印刷データ出力手段と
を備え、
前記第 1の誤差拡散手段および前記第 2の誤差拡散手段は、 前記ドット形 成の有無を判断した画素とは異なるラスタ群の画素に拡散された誤差につ いては第 1の誤差記憶部に記憶し、 該ドッ卜形成有無を判断した画素と同じ ラスタ群の画素に拡散された誤差については第 2の誤差記憶部に記憶する 手段である印刷制御装置。
1 7 . 画素毎の階調値を示す画像データを受け取り、 該画素の列たるラス 夕に沿って、 該ラスタを構成する各画素でのドット形成の有無を判断するこ とで、 該画像データをドット形成有無による表現形式の印刷データに変換し、 印刷媒体上にインクドットを形成して画像を印刷する印刷部に対して該印 刷データを出力することによって、 該印刷部を制御する印刷制御装置であつ て、
互いに隣接した複数本の前記ラスタをまとめてラスタ群を生成するラス 夕群生成手段と、
前記ラスタ群の最後尾にある最後尾ラス夕を少なくとも含んで該ラスタ 群の中からラスタを選択し、 該選択したラスタを構成する各画素についてド ット形成の有無を判断することによって、 該選択したラスタをドッ卜形成の 有無を表すドット列に変換する選択ラスタ変換手段と、
前記ドット形成の有無を判断することにより各画素で生じた階調誤差を、 前記選択したラスタを構成する各画素について算出し、 該判断を行った各画 素に対応付けて第 1の記憶部に記憶する第 1の階調誤差記憶手段と、
前記最後尾ラスタに隣接するラスタ群の中の先頭位置にある先頭ラス夕 を選択し、 該先頭ラスタを構成する各画素の周辺にあって、 ドット形成有無 を判断済みの周辺画素に記憶されている前記階調誤差を考慮しながら、 該各 画素のドッ卜形成有無を判断することによって、 該先頭ラスタをドッ卜列に 変換する先頭ラスタ変換手段と、
前記先頭ラスタを構成する各画素で生じた前記階調誤差を、 前記判断を行 つた各画素に対応付けて第 2の記憶部に記憶する第 2の階調誤差記憶手段 と、
前記ラス夕群から前記先頭ラス夕を除いた残余ラスタについては、 該残余 ラスタと同じラスタ群に属し且つドッ卜形成有無を判断済みの画素で生じ た前記階調誤差を考慮しながら該残余ラスタの各画素のドット形成有無を 判断することにより、 前記先頭ラスタを前記ドット列に変換する処理と並行 して該残余ラス夕をドット列に変換する残余ラスタ変換手段と、
前記変換された先頭ラスタのドット列と前記残余ラスタのドッ卜列とを、 前記印刷データとして前記印刷部に出力する印刷データ出力手段と
を備える印刷制御装置。
1 8 . 画素毎の階調値を示す画像データを受け取り、 該画素の列たるラス 夕に沿って、 該ラスタを構成する各画素でのドット形成の有無を判断するこ とで、 該画像データをドット形成の有無による表現形式に変換する画像処理 方法であって、
( A ) 互いに隣接した複数本の前記ラスタをまとめてラス夕群を生成する 工程と、
( B ) 前記ラスタ群の中の最後尾にある最後尾ラスタを選択し、 該最後尾 ラス夕を構成する各画素についてドット形成の有無を判断することによつ て、 該最後尾ラスタをドット形成の有無を表すドット列に変換する工程と、
( C ) 前記ドット形成の有無を判断することにより各画素で生じた階調誤 差を、 前記最後尾ラス夕を構成する各画素について算出し、 該各画素の周辺 にある複数の未判断の画素に拡散する工程と、
( D ) 前記最後尾ラスタに隣接するラス夕群の中の先頭位置にある先頭ラ スタを選択し、 該最後尾ラス夕から該先頭ラスタの各画素に拡散された前記 階調誤差を考慮しながら、 該先頭ラスタを構成する各画素についてドット形 成の有無を判断することによって、 該先頭ラスタをドット形成の有無を表す ドット列に変換する工程と、
( E ) 前記先頭ラスタを構成する各画素で生じた前記階調誤差を、 該各画 素の周辺にある未判断の画素に拡散する工程と、
( F ) 前記ラスタ群から前記先頭ラスタを除いた残余ラスタについては、 該残余ラスタと同じラスタ群に属し且つドッ卜形成有無を判断済みの画素 から拡散された前記階調誤差を考慮しながら該残余ラスタの各画素のドッ ト形成有無を判断することにより、 該先頭ラスタを前記ドット列に変換する 処理に並行して該残余ラスタをドット列に変換する工程と
を備え、
前記工程 (C ) および前記工程 (E ) は、 前記ドット形成の有無を判断し た画素と同じラス夕群の画素に拡散された誤差と、 異なるラス夕群の画素に 拡散された誤差とを区別して記憶する工程である画像処理方法。
1 9 . 画素毎の階調値を示す画像データを受け取り、 該画素の列たるラス 夕に沿って、 該ラスタを構成する各画素でのドッ卜形成の有無を判断するこ とで、 該画像データをドット形成の有無による表現形式に変換する画像処理 方法であって、
( A) 互いに隣接した複数本の前記ラスタをまとめてラスタ群を生成する 工程と、
( B ) 前記ラスタ群の最後尾にある最後尾ラスタを少なくとも含んで該ラ ス夕群の中からラスタを選択し、 該選択したラスタを構成する各画素につい てドット形成の有無を判断することによって、 該選択したラスタをドット形 成の有無を表すドッ卜列に変換する工程と、
( C ) 前記ドット形成の有無を判断することにより各画素で生じた階調誤 差を、 前記選択したラスタを構成する各画素について算出し、 該判断を行つ た各画素に対応付けて記憶する工程と、
(D ) 前記最後尾ラスタに隣接するラスタ群の中の先頭位置にある先頭ラ スタを選択し、 該先頭ラスタを構成する各画素の周辺にあって、 ドット形成 有無を判断済みの周辺画素に記憶されている前記階調誤差を考慮しながら、 該各画素のドット形成有無を判断することによって、 該先頭ラスタをドッ卜 列に変換する工程と、
( E ) 前記先頭ラス夕を構成する各画素で生じた前記階調誤差を、 前記ェ 程 (C ) で記憶された階調誤差とは区別しながら、 前記判断を行った各画素 に対応付けて記憶する工程と、
( F ) 前記ラスタ群から前記先頭ラスタを除いた残余ラスタについては、 該残余ラスタと同じラスタ群に属し且つドッ卜形成有無を判断済みの画素 で生じた前記階調誤差を考慮しながら該残余ラス夕の各画素のドット形成 有無を判断することにより、 前記先頭ラスタを前記ドッ卜列に変換する処理 と並行して該残余ラスタをドッ卜列に変換する工程と
を備えている画像処理方法。
2 0 . 画素毎の階調値を示す画像データを受け取り、 該画素の列たるラス 夕に沿って、 該ラス夕を構成する各画素でのドッ卜形成の有無を判断するこ とで、 該画像データをドッ卜形成の有無による表現形式に変換する方法を実 現するプログラムを、 コンピュータで読みとり可能に記録した記録媒体であ つて、
( A ) 互いに隣接した複数本の前記ラスタをまとめてラスタ群を生成する 機能と、
( B ) 前記ラス夕群の中の最後尾にある最後尾ラスタを選択し、 該最後尾 ラスタを構成する各画素についてドッ卜形成の有無を判断することによつ て、 該最後尾ラスタをドッ卜形成の有無を表すドッ卜列に変換する機能と、
( C ) 前記ドット形成の有無を判断することにより各画素で生じた階調誤 差を、 前記最後尾ラスタを構成する各画素について算出し、 該各画素の周辺 にある複数の未判断の画素に拡散する機能と、
( D ) 前記最後尾ラスタに隣接するラス夕群の中の先頭位置にある先頭ラ スタを選択し、 該最後尾ラスタから該先頭ラスタの各画素に拡散された前記 階調誤差を考慮しながら、 該先頭ラスタを構成する各画素についてドット形 成の有無を判断することによって、 該先頭ラスタをドッ卜形成の有無を表す ドッ卜列に変換する機能と、
( E ) 前記先頭ラスタを構成する各画素で生じた前記階調誤差を、 該各画 素の周辺にある未判断の画素に拡散する機能と、
( F ) 前記ラスタ群から前記先頭ラスタを除いた残余ラス夕については、 該残余ラス夕と同じラスタ群に属し且つドット形成有無を判断済みの画素 から拡散された前記階調誤差を考慮しながら該残余ラス夕の各画素のドッ ト形成有無を判断することにより、 該先頭ラスタを前記ドット列に変換する 処理に並行して該残余ラスタをドッ卜列に変換する機能と
を実現するプログラムを記録するとともに、
前記機能 (C ) および前記機能 (E ) として、 前記ドット形成の有無を判 断した画素と同じラスタ群の画素に拡散された誤差と、 異なるラスタ群の画 素に拡散された誤差とを区別して記憶する機能を実現するプログラムを記 録した記録媒体。
2 1 . 画素毎の階調値を示す画像データを受け取り、 該画素の列たるラス 夕に沿って、 該ラスタを構成する各画素でのドット形成の有無を判断するこ とで、 該画像データをドット形成の有無による表現形式に変換する方法を実 現するプログラムを、 コンピュータで読みとり可能に記録した記録媒体であ つて、
(A) 互いに隣接した複数本の前記ラスタをまとめてラスタ群を生成する 機能と、
( B ) 前記ラス夕群の最後尾にある最後尾ラス夕を少なくとも含んで該ラ スタ群の中からラスタを選択し、 該選択したラスタを構成する各画素につい てドット形成の有無を判断することによって、 該選択したラスタをドット形 成の有無を表すドット列に変換する機能と、
( C ) 前記ドット形成の有無を判断することにより各画素で生じた階調誤 差を、 前記選択したラスタを構成する各画素について算出し、 該判断を行つ た各画素に対応付けて記憶する機能と、
( D ) 前記最後尾ラスタに隣接するラスタ群の中の先頭位置にある先頭ラ スタを選択し、 該先頭ラスタを構成する各画素の周辺にあって、 ドット形成 有無を判断済みの周辺画素に記憶されている前記階調誤差を考慮しながら、 該各画素のドッ卜形成有無を判断することによって、 該先頭ラス夕をドット 列に変換する機能と、
( E ) 前記先頭ラスタを構成する各画素で生じた前記階調誤差を、 前記ェ 程 (C ) で記憶された前記階調誤差とは区別しながら、 前記判断を行った各 画素に対応付けて記憶する機能と、
( F ) 前記ラスタ群から前記先頭ラスタを除いた残余ラスタについては、 該残余ラスタと同じラスタ群に属し且つドッ卜形成有無を判断済みの画素 で生じた前記階調誤差を考慮しながら該残余ラスタの各画素のドット形成 有無を判断することにより、 前記先頭ラスタを前記ドット列に変換する処理 と並行して該残余ラスタをドッ卜列に変換する機能と
を実現するプログラムを記録した記録媒体。
2 2 . 画素毎の階調値を示す画像データを受け取り、 該画素の列たるラス 夕に沿って、 該ラスタを構成する各画素でのドッ卜形成の有無を判断するこ とで、 該画像データをドット形成の有無による表現形式に変換する方法をコ ンピュー夕を用いて実現するためのプログラムであって、
(A ) 互いに隣接した複数本の前記ラスタをまとめてラスタ群を生成する 機能と、
( B ) 前記ラスタ群の中の最後尾にある最後尾ラスタを選択し、 該最後尾 ラスタを構成する各画素についてドット形成の有無を判断することによつ て、 該最後尾ラス夕をドット形成の有無を表すドット列に変換する機能と、
( C ) 前記ドット形成の有無を判断することにより各画素で生じた階調誤 差を、 前記最後尾ラスタを構成する各画素について算出し、 該各画素の周辺 にある複数の未判断の画素に拡散する機能と、
( D ) 前記最後尾ラスタに隣接するラスタ群の中の先頭位置にある先頭ラ ス夕を選択し、 該最後尾ラスタから該先頭ラスタの各画素に拡散された前記 階調誤差を考慮しながら、 該先頭ラスタを構成する各画素についてドット形 成の有無を判断することによって、 該先頭ラスタをドット形成の有無を表す ドット列に変換する機能と、
( E ) 前記先頭ラスタを構成する各画素で生じた前記階調誤差を、 該各画 素の周辺にある未判断の画素に拡散する機能と、
( F ) 前記ラス夕群から前記先頭ラス夕を除いた残余ラス夕については、 該残余ラス夕と同じラスタ群に属し且つドット形成有無を判断済みの画素 から拡散された前記階調誤差を考慮しながら該残余ラスタの各画素のドッ ト形成有無を判断することにより、 該先頭ラスタを前記ドット列に変換する 処理に並行して該残余ラスタをドット列に変換する機能と
を実現するとともに、
前記機能 (C ) および前記機能 (E ) は、 前記ドット形成の有無を判断し た画素と同じラスタ群の画素に拡散された誤差と、 異なるラスタ群の画素に 拡散された誤差とを区別して記憶する機能を実現するプログラム。
2 3 . 画素毎の階調値を示す画像データを受け取り、 該画素の列たるラス 夕に沿って、 該ラスタを構成する各画素でのドット形成の有無を判断するこ とで、 該画像データをドット形成の有無による表現形式に変換する方法をコ ンピュー夕を用いて実現するためのプログラムであって、
(A) 互いに隣接した複数本の前記ラスタをまとめてラス夕群を生成する 機能と、
( B ) 前記ラスタ群の最後尾にある最後尾ラス夕を少なくとも含んで該ラ ス夕群の中からラスタを選択し、 該選択したラスタを構成する各画素につい てドット形成の有無を判断することによって、 該選択したラスタをドット形 成の有無を表すドット列に変換する機能と、
( C ) 前記ドット形成の有無を判断することにより各画素で生じた階調誤 差を、 前記選択したラスタを構成する各画素について算出し、 該判断を行つ た各画素に対応付けて記憶する機能と、
( D ) 前記最後尾ラスタに隣接するラスタ群の中の先頭位置にある先頭ラ ス夕を選択し、 該先頭ラスタを構成する各画素の周辺にあって、 ドット形成 有無を判断済みの周辺画素に記憶されている前記階調誤差を考慮しながら、 該各画素のドッ卜形成有無を判断することによって、 該先頭ラスタをドッ卜 列に変換する機能と、
( E ) 前記先頭ラスタを構成する各画素で生じた前記階調誤差を、 前記ェ 程 (C ) で記憶された前記階調誤差とは区別しながら、 前記判断を行った各 画素に対応付けて記憶する機能と、
( F ) 前記ラスタ群から前記先頭ラス夕を除いた残余ラスタについては、 該残余ラスタと同じラスタ群に属し且つドッ卜形成有無を判断済みの画素 で生じた前記階調誤差を考慮しながら該残余ラスタの各画素のドッ卜形成 有無を判断することにより、 前記先頭ラスタを前記ドット列に変換する処理 と並行して該残余ラスタをドット列に変換する機能と
を実現するプログラム。
PCT/JP2001/008837 2000-10-06 2001-10-05 Dispositif et procede de traitement d"images, dispositif de commande d"impression, et support enregistre Ceased WO2002032110A1 (fr)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US10/149,174 US7196821B2 (en) 2000-10-06 2001-10-05 Image processing device, printing control device, image processing method, and recorded medium
EP01972714A EP1333659A4 (en) 2000-10-06 2001-10-05 IMAGE PROCESSING DEVICE, PRINT CONTROL DEVICE, IMAGE PROCESSING METHOD AND RECORDING MEDIUM

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
JP2000-307926 2000-10-06
JP2000307926 2000-10-06
JP2001-307214 2001-10-03
JP2001307214A JP3661624B2 (ja) 2000-10-06 2001-10-03 画像処理装置

Publications (1)

Publication Number Publication Date
WO2002032110A1 true WO2002032110A1 (fr) 2002-04-18

Family

ID=26601693

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2001/008837 Ceased WO2002032110A1 (fr) 2000-10-06 2001-10-05 Dispositif et procede de traitement d"images, dispositif de commande d"impression, et support enregistre

Country Status (6)

Country Link
US (1) US7196821B2 (ja)
EP (1) EP1333659A4 (ja)
JP (1) JP3661624B2 (ja)
KR (1) KR100485635B1 (ja)
CN (1) CN1216484C (ja)
WO (1) WO2002032110A1 (ja)

Families Citing this family (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4456823B2 (ja) * 2003-03-18 2010-04-28 セイコーエプソン株式会社 ドット形成有無の判断結果をグループ分けして記憶しながら画像を印刷する印刷装置、およびそのための印刷制御装置
JP2005074878A (ja) * 2003-09-02 2005-03-24 Konica Minolta Medical & Graphic Inc 画像記録装置
JP4039395B2 (ja) * 2003-09-18 2008-01-30 セイコーエプソン株式会社 画像処理方法および画像処理装置、画像処理プログラム、並びにプリンタ、印刷指示端末、画像処理システム。
TWI244322B (en) * 2004-03-24 2005-11-21 Sunplus Technology Co Ltd Printer system with halftone monochromatic process and method thereof
EP1583031A1 (en) 2004-03-30 2005-10-05 Dialog Semiconductor GmbH Zoom algorithm
EP1585310A1 (en) * 2004-03-30 2005-10-12 Dialog Semiconductor GmbH Image resolution conversion
JP4105704B2 (ja) * 2004-05-18 2008-06-25 シャープ株式会社 画像処理装置、画像形成装置、画像処理方法、プログラム、および記録媒体
CN100364780C (zh) * 2005-01-07 2008-01-30 北京北大方正电子有限公司 一种随机使用多种图元对象进行图像光栅化的方法
US7564590B2 (en) * 2005-06-30 2009-07-21 Brother Kogyo Kabushiki Kaisha Image processing apparatus and method
US7826096B2 (en) * 2005-09-16 2010-11-02 Fujifilm Corporation Image processing method and image recording apparatus
JP4801428B2 (ja) * 2005-11-30 2011-10-26 株式会社リコー 画像形成装置及び画像形成方法
CN1964423A (zh) 2006-11-07 2007-05-16 北京大学 采用双份误差行存储器产生图像网点的方法和装置
JP4989378B2 (ja) * 2007-09-03 2012-08-01 キヤノン株式会社 画像処理方法及び記録装置
JP4577366B2 (ja) * 2008-01-28 2010-11-10 セイコーエプソン株式会社 複数のラスタを並行して処理する画像処理装置
KR101328793B1 (ko) * 2009-11-23 2013-11-13 엘지디스플레이 주식회사 오차 확산 방법과 이를 이용한 액정표시장치
JP5528209B2 (ja) * 2010-05-20 2014-06-25 キヤノン株式会社 画像処理装置および画像処理方法
US9171517B2 (en) * 2011-03-17 2015-10-27 Sharp Kabushiki Kaisha Display device, driving device, and driving method
JP5714156B2 (ja) * 2014-04-17 2015-05-07 キヤノン株式会社 画像処理装置および画像処理方法
JP6536287B2 (ja) * 2015-08-25 2019-07-03 富士ゼロックス株式会社 印刷制御装置及び印刷制御プログラム
CN105787898B (zh) * 2016-03-02 2019-04-16 南京理工大学 基于fpga的平台直方图均衡化实现方法及其装置

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63309457A (ja) * 1987-06-11 1988-12-16 Canon Inc 画像処理方法
JPS63309455A (ja) * 1987-06-11 1988-12-16 Canon Inc 画像処理方法
JPS63310270A (ja) * 1987-06-11 1988-12-19 Canon Inc 画像処理装置
JPS63310269A (ja) * 1987-06-11 1988-12-19 Canon Inc 画像処理方法
JPH03109871A (ja) * 1989-09-25 1991-05-09 Canon Inc 画像処理装置
JPH0698159A (ja) * 1992-07-01 1994-04-08 Hewlett Packard Co <Hp> 2値化方法及び装置
JPH0720839A (ja) * 1993-01-11 1995-01-24 Canon Inc 並列誤差拡散方法及び装置
JPH1117945A (ja) * 1997-06-20 1999-01-22 Sharp Corp 画像処理装置
JPH11243490A (ja) * 1997-10-31 1999-09-07 Xerox Corp 誤差拡散値の処理方法
JP2001358942A (ja) * 2000-06-12 2001-12-26 Sharp Corp 誤差拡散演算装置

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6163893A (ja) * 1984-09-06 1986-04-02 株式会社日立製作所 デイスプレイ装置における擬似中間調画像の表示方法
US5271070A (en) * 1992-11-06 1993-12-14 Xerox Corporation Multi-dimensional error diffusion technique
US5519791A (en) * 1993-01-11 1996-05-21 Canon, Inc. Block parallel error diffusion method and apparatus
JPH06266324A (ja) 1993-03-10 1994-09-22 Canon Inc 画像処理方法及び装置
NL9300684A (nl) 1993-04-22 1994-11-16 Oce Nederland Bv Werkwijze voor het halftonen van gedigitaliseerde grijswaardebeelden en beeldbewerkingsinrichting geschikt voor het uitvoeren van een dergelijke werkwijze.
JP3106033B2 (ja) 1993-05-25 2000-11-06 キヤノン株式会社 表示制御装置
JPH1093819A (ja) 1996-09-12 1998-04-10 Canon Inc 画像処理装置
US5974228A (en) 1997-01-28 1999-10-26 Hewlett-Packard Company Image rendition by plural-row error diffusion, for faster operation and smaller integrated circuits
KR100264804B1 (ko) 1997-03-14 2000-09-01 윤종용 셔틀방식 스캔 이미지의 오차확산 이치화방법
US5892851A (en) 1997-05-23 1999-04-06 Hewlett-Packard Company Parallelized error diffusion
US6307978B1 (en) * 1998-06-03 2001-10-23 Wellesley College System and method for parallel error diffusion dithering
JP3963598B2 (ja) 1998-10-14 2007-08-22 セイコーエプソン株式会社 画像処理装置、処理方法および記録媒体
JP3829508B2 (ja) 1998-11-27 2006-10-04 セイコーエプソン株式会社 画像処理装置、画像処理方法および印刷装置

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63309457A (ja) * 1987-06-11 1988-12-16 Canon Inc 画像処理方法
JPS63309455A (ja) * 1987-06-11 1988-12-16 Canon Inc 画像処理方法
JPS63310270A (ja) * 1987-06-11 1988-12-19 Canon Inc 画像処理装置
JPS63310269A (ja) * 1987-06-11 1988-12-19 Canon Inc 画像処理方法
JPH03109871A (ja) * 1989-09-25 1991-05-09 Canon Inc 画像処理装置
JPH0698159A (ja) * 1992-07-01 1994-04-08 Hewlett Packard Co <Hp> 2値化方法及び装置
JPH0720839A (ja) * 1993-01-11 1995-01-24 Canon Inc 並列誤差拡散方法及び装置
JPH1117945A (ja) * 1997-06-20 1999-01-22 Sharp Corp 画像処理装置
JPH11243490A (ja) * 1997-10-31 1999-09-07 Xerox Corp 誤差拡散値の処理方法
JP2001358942A (ja) * 2000-06-12 2001-12-26 Sharp Corp 誤差拡散演算装置

Also Published As

Publication number Publication date
JP3661624B2 (ja) 2005-06-15
CN1393093A (zh) 2003-01-22
KR20020059738A (ko) 2002-07-13
US20020181003A1 (en) 2002-12-05
CN1216484C (zh) 2005-08-24
KR100485635B1 (ko) 2005-04-27
EP1333659A1 (en) 2003-08-06
US7196821B2 (en) 2007-03-27
EP1333659A4 (en) 2004-04-14
JP2002199220A (ja) 2002-07-12

Similar Documents

Publication Publication Date Title
WO2002032110A1 (fr) Dispositif et procede de traitement d&#34;images, dispositif de commande d&#34;impression, et support enregistre
JP3912055B2 (ja) 画像処理装置、印刷制御装置、画像処理方法、および記録媒体
CN100379250C (zh) 进行彩色图像数据转换的图像处理装置和图像处理方法
JP5127626B2 (ja) 画像処理装置および画像処理方法
JP2010130303A (ja) 印刷制御装置、印刷装置、印刷制御方法およびコンピュータプログラム
JP4419947B2 (ja) 印刷装置、印刷装置制御プログラム及び印刷装置制御方法、並びに印刷用データ生成装置、印刷用データ生成プログラム及び印刷用データ生成方法
JP2012106358A (ja) 印刷装置、印刷ヘッド
US7497537B2 (en) Printing apparatus, printing program, printing method and printing data generating apparatus, printing data generating program, printing data generating method, and recording medium recording the programs
JP5720192B2 (ja) 印刷装置
JP4691880B2 (ja) 同時にドットが形成される複数本の画素列のデータを解像度変換しながら画像を出力する画像出力装置
JP4501826B2 (ja) 印刷装置
JP4561049B2 (ja) 所定領域内に形成されるドット個数の情報に基づいて画像を印刷する印刷システム
JP2007019652A (ja) 画像処理装置、画像処理方法、プログラムおよびテストパターン
JP3864901B2 (ja) 画像データの階調数を変換する画像処理装置、および画像処理方法
JP2012179776A (ja) 印刷装置
JP4228814B2 (ja) 複数のラスタを並行して処理しながら画像を印刷する印刷方法
US7375855B2 (en) Image processing apparatus for converting image data by unit of multiple pixels
JP2006247918A (ja) 印刷装置、印刷プログラム、印刷方法および画像処理装置、画像処理プログラム、画像処理方法、並びに前記プログラムを記録した記録媒体
JP3870604B2 (ja) データ変換装置
JP2007008176A (ja) 印刷装置、印刷装置制御プログラム及び印刷装置制御方法、並びに印刷用データ生成装置、印刷用データ生成プログラム及び印刷用データ生成方法
JP4710343B2 (ja) 印刷装置
JP2006231915A (ja) 印刷装置、印刷プログラム、印刷方法および画像処理装置、画像処理プログラム、画像処理方法、並びに前記プログラムを記録した記録媒体
JP2007015397A (ja) 印刷装置、印刷装置制御プログラム及び印刷装置制御方法、並びに印刷用データ生成装置、印刷用データ生成プログラム及び印刷用データ生成方法
JP2006192909A (ja) 印刷装置、印刷プログラム、印刷方法および印刷データ生成装置、印刷データ生成プログラム、印刷データ生成方法、並びに前記プログラムを記録した記録媒体。
JP2004080480A (ja) 複数のラスタを並行して処理する画像処理装置

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A1

Designated state(s): CN KR US

AL Designated countries for regional patents

Kind code of ref document: A1

Designated state(s): AT BE CH CY DE DK ES FI FR GB GR IE IT LU MC NL PT SE TR

WWE Wipo information: entry into national phase

Ref document number: 1020027006214

Country of ref document: KR

WWE Wipo information: entry into national phase

Ref document number: 10149174

Country of ref document: US

WWE Wipo information: entry into national phase

Ref document number: 01803036X

Country of ref document: CN

WWE Wipo information: entry into national phase

Ref document number: 2001972714

Country of ref document: EP

WWP Wipo information: published in national office

Ref document number: 1020027006214

Country of ref document: KR

121 Ep: the epo has been informed by wipo that ep was designated in this application
WWP Wipo information: published in national office

Ref document number: 2001972714

Country of ref document: EP

WWG Wipo information: grant in national office

Ref document number: 1020027006214

Country of ref document: KR