1. Field of the Invention
The present invention relates to an image processing device and an image processing method relating to screen processing for generating a multilevel halftone image for forming halftone dots in accordance with an input multi-level gray scale image.
2. Description of Related Art
A known technique forms a 1200-DPI binary image by comparing each pixel of a 600-DPI multilevel image with four thresholds, and prints the image by use of a printing engine unit with a printing resolution of 1200 DPI (see Japanese Patent Laid-Open No. 2005-064954, for example).
However, when receiving a 600-DPI multilevel image and printing the image with an engine unit having a 600-DPI printing resolution, the same image quality cannot be achieved as when printing with a printing engine unit having a 1200-DPI printing resolution.
The present invention provides an image processing device and method for achieving an image quality close to that of a high resolution printing engine unit, but by us of a low resolution printing engine unit.
An image processing device in accordance with the present invention retains a high resolution dithering matrix, and comprises a processing unit configured to compare thresholds included in the high resolution dithering matrix with a pixel value included in each pixel of a low resolution input image, and to output multi-level gray scale signal values.
An image processing device in accordance with the present invention reduces gray levels of an image, and comprises a comparing unit configured to compare a pixel value of each pixel included in the image with a plurality of thresholds included in a threshold arrangement to reduce the levels of gray of the image, wherein part of the plurality of thresholds compared with the pixel value of a first pixel of the pixels agrees with part of the plurality of thresholds compared with the pixel value of a second pixel of the pixels.
An image processing device in accordance with the present invention comprises a comparing unit configured to compare a pixel value of each pixel included in an image with a plurality of thresholds included in a threshold arrangement; and a component configured to obtain a pixel value of each pixel by multiplying a plurality of comparison results from the comparing unit by coefficients, and by summing up the multiplied results, wherein an average value of the coefficients multiplied with the respective comparison results is not less than one.
An image processing method in accordance with the present invention executes dithering processing in an image processing device retaining a high resolution dithering matrix, and comprises a step of outputting multi-level gray scale signal values by comparing thresholds included in the high resolution dithering matrix with a pixel value included in each pixel of a low resolution input image.
According to the present invention, a low resolution printing engine unit can achieve an image quality close to that of a high resolution printing engine unit at low cost.
Further features of the present invention will become apparent from the following description of exemplary embodiments (with reference to the attached drawings).
The preferred embodiments in accordance with the invention will now be described in detail with reference to the accompanying drawings. However, components described in the embodiments are only examples, and it is not the intention to limit the scope of the present invention to these components.
In the following, a first embodiment in accordance with the present invention will be described in detail with reference to the accompanying drawings.
The image forming device of the present embodiment includes a scanner unit 101 for carrying out original document reading processing, and a controller 102 for performing image processing of an image read by the scanner unit 101 and for storing the image in a memory 105. In addition, the device includes an operating unit 104 for a user to set various printing requirements for the image read by the scanner unit 101.
Furthermore, the device includes a printer unit 103 and the like for forming a visualized image on recording paper from the image data read out from the memory 105 in accordance with printing requirements set via the operating unit 104. The image forming device is connected via a network 106 to a server 107 for managing image data and to a personal computer (PC) 108 for instructing the image forming device to perform printing.
Here, a detailed construction of a digital multifunction machine including general functions such as COPY/PRINT/FAX will be described with reference to
The image forming device has respective functions of copy/printer/fax. In
First, the reading operation carried out mainly by the scanner 201 will be described.
When setting an original document to be read, the user places the original document on the document glass 207 and closes the DF 202. Then, an open-and-close sensor 224 detects that the document glass 207 is covered. After that, optical reflection type document size detecting sensors 226-230 mounted in the casing of the scanner 201 detect the document size. Using the size detection as a starting point, a light source 210 irradiates the original document, and a CCD (charge-coupled device) 231 receives the light reflected from the original document via a reflective plate 211 and a lens 212, and reads an image.
The controller 102 of the image forming device (
When setting an original document on the DF 202 to be read, the user places the original document faceup on a tray of a document setting unit 203 of the DF 202. Then, a document sensor 204 detects that the original document is set. A document feed roller 205 and a conveyor belt 206 rotate and carry the original document so that the original document is set at a prescribed position on the document glass 207. After that, the image is read in the same manner as when the document is placed on the document glass 207, and the obtained image data to be printed is stored in the memory 105 in the controller 102.
After the reading has been completed, the conveyor belt 206 starts to rotate again to convey the original document toward the right side in the cross-sectional view of the image forming device of
Next, the printing operation performed by the printer 213 will be described.
The image data to be printed, which is temporarily stored in the memory 105 in the controller 102, undergoes the image processing for printing in the controller 102 again, which will be described later, and is transferred to the printer 213. The printer 213 converts the image data to a pulse signal by PWM control within the printer unit 103, and a laser-recording unit converts the pulse signal to recording laser beams which use the four colors of yellow, magenta, cyan and black. Then, the recording laser beams are irradiated to photoconductive drums 214 of the respective colors, thereby forming electrostatic latent images on the photoconductive drums.
The printer 213 performs toner development on the photoconductive drums with toners supplied from toner cartridges 215 so that visualized toner images on the photoconductive drums undergo primary transfer to an intermediate transfer belt 219. The intermediate transfer belt 219 rotates clockwise in
The recording paper having the image transferred thereon undergoes toner fixing by pressure and heat by a fixing unit 220, is carried through a paper output conveyor path, and is output to a center tray 221 for facedown paper output or to a side tray 222 for faceup paper output. To switch between the paper output trays, a flapper 223 is provided for switching between the two conveyor paths. In addition, in the case of double-sided printing, after the recording paper has passed through the fixing unit 220, the flapper 223 switches the conveyor path in such a manner that the recording paper is sent downward by a switchback thereafter, and is fed to the secondary transfer position 218 again through a double-sided printing paper conveyor path 225. Thus, double-sided printing is performed.
Next, the foregoing image processing for printing will be described in detail with reference to
In
The reference numeral 304 designates a CPU for controlling the whole operation of the image processing unit 301 according to a control program retained in a ROM 305. The reference numeral 306 designates a RAM, which is used as a work area of the CPU 304. The RAM 306 also stores a high resolution dithering matrix 601 (
A threshold acquiring unit 307 in the halftone processing unit 302 has a means for acquiring a plurality of thresholds consisting of step S401 and step S402 which will be described later. A comparing unit 308 has a comparing means for carrying out comparison with the plurality of thresholds at step S404, and an integrating unit 309 has an integrating means for integrating a plurality of comparing results at step S405, and an output means for outputting multi-level gray scale signal values. The details of the processing will be described later.
Next, the operation of the halftone processing unit 302 will be described in detail with reference to
In the present embodiment, the dithering processing having a high resolution of N times in the main scanning direction and M times in the subscanning direction is applied to the image data to be printed without altering the real resolution of the image. In the following description, it is assumed that the resolution of the image data to be printed is 600 DPI, and the resolution of the dithering matrix to be applied is double (N=2 and M=2), that is, 1200 DPI.
As for the plurality of thresholds used in the threshold acquiring unit 307, although the details will be described later, some of the thresholds must be equal to some of the thresholds that are referred to when an adjacent neighboring pixel becomes a pixel of interest. Accordingly, a reference region of the thresholds, which will be described later, must overlap with a reference region of the adjacent neighborhood. Thus, the size of the reference region is (N+1) in the main scanning direction and (M+1) in the subscanning direction, and the number NM of the plurality of thresholds ThNM becomes ((N+1)×(M+1)). In addition, as for the comparison decision results ONM of the comparing unit 308 and the weight coefficients CNM of the integrating unit 309, which will be described later, the same number of thresholds is required in accordance with the plurality of thresholds. Since both N and M are two in the present embodiment, the following description is made under the assumption that the number NM is nine.
Next, the resolution-enhancing dithering processing of the halftone processing unit 302 will be described with reference to
First, at step S401, as for a pixel of interest 2401 (
Next, at step S402, from the coordinate X and coordinate Y acquired at step S401, the threshold acquiring unit 307 obtains the nine address coordinates in the dithering matrix 601 (
Next, at step S403, from the address coordinates AX1, AX2, . . . , AXNM and AY1, AY2, . . . , AYNM of the dithering matrix obtained at step S402, the threshold acquiring unit 307 acquires Th1, Th2, . . . , ThNM which constitute nine thresholds 2402. In the present embodiment, since the number NM of the thresholds is also nine, they are up to Th9. Details of an acquiring method of the thresholds will be described later also.
Next, at step S404, the comparing unit 308 compares the value DIN of the pixel of interest 2401 acquired at step S401 with the nine thresholds 2402, Th1, Th2, . . . , ThNM, acquired at step S403, respectively. As a result of comparison, if the value of the pixel of interest is greater than the threshold, it assigns “1” and otherwise it assigns “0”, thereby outputting comparison decision results 2403 consisting of O1, O2, . . . , ONM, each of which is one bit and corresponds to one of the nine thresholds. For example, the result of comparing DIN with Th1 is output as O1, and the result of comparing DIN with Th2 is output as O2.
Finally, at step S405, from the comparison results 2403 obtained at S404 and weight coefficients 2404 corresponding to the comparison results O1, O2, . . . , ONM, the integrating unit 309 obtains the value Dout of an output pixel 2405 corresponding to the value DIN of the pixel of interest 2401, and outputs the value Dout of an output pixel 2405. A calculation method of the value Dout of the output pixel 2405 will be described later. The weight coefficients 2404, C1, C2, . . . , CNM, which correspond to O1, O2, . . . , ONM of the comparison results 2403, respectively, are obtained from a weight coefficient table 801 of
The weight coefficient table 801 retains by associating an indices and the weight coefficients Ci in advance. For example, assume that the ith comparison result is Oi. Then, the weight coefficient Ci corresponding to Oi can be obtained from the weight coefficient table 801 using i as an index. The output pixel value Dout is obtained by acquiring, only when the comparison result Oi is “1”, the weight coefficient Ci corresponding to it from the weight coefficient table 801 for i=0, 1, . . . , NM, and by summing up the weight coefficients Ci.
As described, the sum total of the weight coefficients Ci of the weight coefficient table 801 becomes the maximum value of the output pixel value DOUT. Thus, the sum total of the weight coefficients Ci of the weight coefficient table 801 must be set at the maximum number of levels of gray of the output pixel value DOUT (that is, the gray-scale levels the printing engine unit can express). Accordingly, in the present embodiment, the sum total of the weight coefficients Ci of the weight coefficient table 801 is set at 15 in advance.
Although the present embodiment obtains the value Dout of the output pixel 2405 by adding the weight coefficients Ci acquired from the weight coefficient table 801 in accordance with the values of the comparison results Oi, this is not essential. For example, the same result can be achieved by obtaining products of the comparison results Oi and the weight coefficients Ci at i=0, 1, . . . , NM, respectively, and the sum total of them.
Next, a calculation method of the dithering matrix and address coordinates and an acquiring method of the thresholds of the present embodiment will be described in detail with reference to
In the present embodiment, since the image data 901 to be printed is 8-bit deep and has values 0-255, the range of the threshold becomes 0-254. In addition, the width 604 of the dithering matrix 601 agrees with the number of the lattice points in the main scanning direction, and the height 603 of the dithering matrix 601 agrees with the number of the lattice points in the subscanning direction. As described, the dithering matrix 601 has one threshold on each lattice point. In the example of the dithering matrix 601 of
Compared with the image data to be printed having the 600-DPI resolution, the dithering matrix 601 is created with a double resolution of 1200 DPI in the main and subscanning directions as described above. The dithering matrix 601 can realize any given screen angle by providing the arrangement of the halftone dot cells 602 with an angle 606 as shown in
Next, the calculation method of the address coordinates will be described.
The address coordinates AX1, AX2, . . . , AX9 and AX1, AX2, . . . , AY9 of the nine thresholds in the present embodiment are obtained by the following expression. In this case, it is assumed that the width 604 of the dithering matrix 601 is MW, and the height 603 is MH. The following MOD represents a function of a modulo operation, which returns the remainder left when the first argument is divided by the second argument.
AX1=MOD(X×N−1,MW)
AX2=MOD(X×N,MW)
AX3=MOD(X×N+1,MW)
AX4=MOD(X×N−1,MW)
AX5=MOD(X×N,MW)
AX6=MOD(X×N+1,MW)
AX7=MOD(X×N−1,MW)
AX8=MOD(X×N,MW)
AX9=MOD(X×N+1,MW)
AY1=MOD(Y×M−1,MH)
AY2=MOD(Y×M−1,MH)
AY3=MOD(Y×M−1,MH)
AY4=MOD(Y×M,MH)
AY5=MOD(Y×M,MH)
AY6=MOD(Y×M,MH)
AY7=MOD(Y×M+1,MH)
AY8=MOD(Y×M+1,MH)
AY9=MOD(Y×M+1,MH)
Here, relationships between the image data to be printed, the dithering matrix and the reference region described before will be described.
Assume that the coordinates in the dithering matrix 601 are (AY, AX). In this case, the coordinates of the thresholds Th1, Th2, Th3, Th4, Th5, Th6, Th7, Th8 and Th9 are (3, 7), (3, 8), (3, 9), (4, 7), (4, 8), (4, 9), (5, 7), (5, 8) and (5, 9), respectively. It is found that the pixel 1001 with the coordinates (2, 89) is the pixel of interest with a value DIN, and the NM thresholds on the dithering matrix 601 corresponding to the pixel 1001 are placed in the reference region 1003 of the thresholds, and its central threshold 1002 is the threshold Th5 (165).
On the other hand,
The pixel 1101 is a pixel at the coordinates one pixel forward from the pixel 1001 of
Likewise,
The pixel 1201 is a pixel at the coordinates one pixel forward from the pixel 1001 of
As described above, the present embodiment employs the dithering matrix with the total of quadruple resolution (1200 dpi), that is, double the resolution in the main scanning and subscanning directions as compared with the image data to be printed with the resolution of 600 dpi, and compares the value DIN of the pixel of interest with each of the nine thresholds Th1-Th9. When each pixel of the image data to be printed 901 becomes the pixel of interest, the processing is carried out by using not all but some thresholds of the dithering matrix 601 referred to by the adjacent neighboring pixels, that is, by making repeated use of the thresholds. In addition, the comparison results O1-O9 between the value DIN of the pixel of interest and the nine thresholds Th1-Th9 are multiplied by the weight coefficient C1-C9 acquired from the weight coefficient table 801 to obtain the 16 (0-15) Dout(s) which are the value of the output pixel for the pixel of interest DIN. In other words, the comparison results ONM are inflated using the weight coefficients to obtain the 16 (0-15) Dout(s). In this way, since thresholds ThNM are used repeatedly and the comparison results ONM are inflated in the present invention, it can reduce the memory capacity used as compared with the conventional multilevel dithering.
The halftone dot cell 602 constituting the dithering matrix 601 is constructed as shown in
Although the reference regions 1003, 1103 and 1203 have three thresholds in the address coordinate AX direction and three thresholds in the AY direction in the present embodiment, these values are not so limited depending on the values N and M. For example, when both N and M are four, since the number NM becomes 25, the reference region has five thresholds in the address coordinate AX direction and five thresholds in the AY direction. In this case, the address coordinates AX1, AX2, . . . , AX25, and AX1, AX2, . . . , AY25 of the 25 thresholds are obtained by the following expression.
AX1=MOD(X×N−2,MW)
AX2=MOD(X×N−1,MW)
AX3=MOD(X×N,MW)
AX4=MOD(X×N+1,MW)
AX5=MOD(X×N+2,MW)
AX6=MOD(X×N−2,MW)
AX7=MOD(X×N−1,MW)
AX8=MOD(X×N,MW)
AX9=MOD(X×N+1,MW)
AX10=MOD(X×N+2,MW)
AX11=MOD(X×N−2,MW)
AX12=MOD(X×N−1,MW)
AX13=MOD(X×N,MW)
AX14=MOD(X×N+1,MW)
AX15=MOD(X×N+2,MW)
AX16=MOD(X×N−2,MW)
AX17=MOD(X×N−1,MW)
AX18=MOD(X×N,MW)
AX19=MOD(X×N+1,MW)
AX20=MOD(X×N+2,MW)
AX21=MOD(X×N−2,MW)
AX22=MOD(X×N−1,MW)
AX23=MOD(X×N,MW)
AX24=MOD(X×N+1,MW)
AX25=MOD(X×N+2,MW)
AY1=MOD(Y×M−2,MH)
AY2=MOD(Y×M−2,MH)
AY3=MOD(Y×M−2,MH)
AY4=MOD(Y×M−2,MH)
AY5=MOD(Y×M−2,MH)
AY6=MOD(Y×M−1,MH)
AY7=MOD(Y×M−1,MH)
AY8=MOD(Y×M−1,MH)
AY9=MOD(Y×M−1,MH)
AY10=MOD(Y×M−1,MH)
AY11=MOD(Y×M,MH)
AY12=MOD(Y×M,MH)
AY13=MOD(Y×M,MH)
AY14=MOD(Y×M,MH)
AY15=MOD(Y×M,MH)
AY16=MOD(Y×M+1,MH)
AY17=MOD(Y×M+1,MH)
AY18=MOD(Y×M+1,MH)
AY19=MOD(Y×M+1,MH)
AY20=MOD(Y×M+1,MH)
AY21=MOD(Y×M+2,MH)
AY22=MOD(Y×M+2,MH)
AY23=MOD(Y×M+2,MH)
AY24=MOD(Y×M+2,MH)
AY25=MOD(Y×M+2,MH)
Next, the weight coefficient table will be described in detail with reference to
As described, the weight coefficient table retains by associating the weight coefficients C1, C2, . . . , CNM and indices. In addition, since the sum total of the weight coefficients of the weight coefficient table must be equal to the maximum value of the output pixel value DOUT, the sum total of the weight coefficients of the weight coefficient table is set at the maximum number of levels of gray of the output pixel value DOUT in advance. Thus, it is 15 in the present embodiment. The values of the individual weight coefficients in the table can be set arbitrarily as long as they meet the foregoing condition.
As can be seen from them, the value of the weight coefficient C5 corresponding to the central threshold Th5 in the reference region of the thresholds is made large (maximum) with the values of the weight coefficients corresponding to the other thresholds being made small. This makes it possible to concentrate the form of the halftone dots at its center. As for the weight coefficient table 801 whose central weight coefficient value is not so large relatively though greater than the minimum, it is affected by the neighboring thresholds greater than the other tables 1401 and 1601, which increases the reproducibility of the high resolution dithering matrix 601. To the contrary, as for the weight coefficient table 1601, the effect of the neighboring threshold becomes smaller, and the reproducibility of the high resolution dithering matrix 601 reduces. However, since the halftone dots concentrate more highly, more stable halftone dots are obtained.
The reason for using the weight coefficient table and the dithering table with the foregoing structures in the present embodiment is that it is possible that without using the tables with the foregoing structures, the dithering processing results of the adjacent pixels are nearly the same. For example, assuming that the gray levels of the image are nearly constant, it can occur that the processing result becomes continuity of black, black, black, and black. Thus, the proper function of the dithering processing can be lost such as producing levels of gray by skillfully arranging black and white in a range of the size of the dithering matrix (such as 8×8) by using the dithering matrix when the processing result is binary.
The present embodiment converts the 600-DPI 256-value image to a 16-value image using the 1200-DPI dithering matrix, and prints the 600-DPI 16-value image at 600 DPI. This makes it possible to achieve an image quality as in the case of creating a 1200-DPI 2-value image using the 1200-DPI dithering matrix and printing at 1200 DPI.
Although the resolution of the image data to be printed is 600 DPI in both the main scanning and subscanning directions and the resolution of the dithering matrix is 1200 DPI in both the main scanning and subscanning directions in the present embodiment, the present invention is not so limited. For example, when the resolution of the image data to be printed is 600 DPI in the main scanning and subscanning directions, the resolution of the dithering matrix in the main scanning direction can be 2400 DPI, and the resolution in the subscanning direction can be 1200 DPI. It goes without saying that the processing is performed in this case under the assumption that N=4, M=2, and the number NM is 15, and that the reference region of the thresholds has five thresholds in the main scanning direction and three thresholds in the subscanning direction with the threshold Th8 as the central threshold.
In addition, although the present embodiment constructs the dithering matrix 601 by repeatedly placing the same halftone dot cell 602, this is not essential. For example, it is also possible to employ a dithering matrix using a sub-matrix formed by combining a plurality of halftone dot cells with different thresholds, or a dithering matrix using a super-cell formed by combining a plurality of halftone dot cells with different size.
Next, a second embodiment in accordance with the present invention will be described in detail with reference to the drawings.
In the foregoing embodiment 1, the resolution-enhancing dithering processing that employs the dithering method based on the rational tangent method is described. In the present embodiment, the high resolution dithering processing employing the dithering method based on the irrational tangent method will be described. In the present embodiment, the threshold acquiring unit 307 in the halftone processing unit 302 described in the embodiment 1 acquires a plurality of thresholds based on the irrational tangent method. As for the configuration other than that relating to the high resolution dithering processing employing the dithering method based on the irrational tangent method which will be described later, since it is the same as that of the foregoing embodiment 1, its description will be omitted here.
The processing of the halftone processing unit 302 in the present embodiment will now be described in detail with reference to
It is assumed in the present embodiment that the resolution of the image data to be printed is 600 DPI, and the resolution of the dithering matrix to be applied is double (N=2 and M=2), that is, 1200 DPI as in the embodiment 1.
In addition, the number NM is also assumed to be nine.
First, a dithering matrix used by the present embodiment will be described.
Next, the resolution-enhancing dithering processing method in the present embodiment will be described with reference to
First, at step S401, as for a pixel of interest 2401, its value DIN, its coordinate X in the main scanning direction and its coordinate Y in the subscanning direction are acquired as described in the embodiment 1.
Next, at step S2001, the threshold acquiring unit 307 obtains the nine address coordinates of the image data to be printed on the X-Y coordinate system. The address coordinates are nine values AX1, AX2, . . . , AXNM in the main scanning direction, and nine values AY1, AY2, . . . , AYNM in the subscanning direction. In the present embodiment, since the number NM is 9, the address coordinates in the main scanning direction are up to AX9, and the address coordinates in the subscanning direction are up to AY9. Details of the calculation method of the address coordinates on the X-Y coordinate system will be described later.
Next, at step S2002, the threshold acquiring unit 307 obtains the address coordinates AU1, AU2, . . . , AUNM and AV1, AV2, . . . , AVNM on the U-V coordinate system of the dithering matrix 1801. Assume that the address coordinates on the ith X-Y coordinate system are AXi and AYi, and the address coordinates converted to those on the U-V coordinate system corresponding to them are AUi and AVi, the conversion can be carried out by the following expression.
AUi=(AXi×cos θ+AYi×sin θ)×pw
AVi=(−AXi×sin θ+AYi×cos θ)×ph
pw=MW/(RDither/L)
ph=MH/(RDither/L)
In this case, pw is an address coordinate conversion value in the AU direction, ph is an address coordinate conversion value in the AV direction, MW is the width 1802 of the dithering matrix 1801, MH is the height 1803 thereof, RDither is the resolution of dithering, θ is the screen angle of the dithering, and L is the number of screen lines of the dithering. For example, when the number of screen lines L is 133 lpi (lines per inch), the screen angle θ is 15 degrees, and the width MW and the height MH are both 15, both pw and ph become about 1.66.
Next, at step S2003, the threshold acquiring unit 307 obtains the nine thresholds Th1, Th2, . . . , ThNM from the address coordinates AU1, AU2, . . . , AUNM and AV1, AV2, . . . , AVNM and the dithering matrix 1801. On the address coordinate system U-V, the dithering matrix 1801 is repeatedly arranged like tiles with the width 1802 and the height 1803 as shown in
AUi′=MOD(INT(AUi),MW)
AVi′=MOD(INT(AVi),MH)
Here, MOD represents a function of a module operation, which returns the remainder left when the first argument is divided by the second argument, and INT represents the operation of giving the whole number part by rounding down the fractional part. In other words, as shown by the foregoing expressions, the coordinates equal to the remainders left when the whole number parts of the address coordinates are divided by the width MW and the height MH of the dithering matrix correspond to the lattice point of the dithering matrix 1801, and the threshold Thi is acquired from the lattice point.
Next, at step S404, as described before in embodiment 1, the comparing unit 308 compares the value DIN of the pixel of interest 2401 acquired at step S401 with the nine thresholds 2402, Th1, Th2, . . . , ThNM, acquired at step S403, respectively. As a result of the comparison, if the value of the pixel of interest 2401 is greater than the threshold, it assigns “1” and otherwise it assigns “0”, and outputs them as 1-bit comparison decision results 2403, O1, O2, . . . , ONM, each of which corresponds to one of the nine thresholds.
Finally, step S405 is executed. The integrating unit 309 obtains the value Dout of the output pixel 2405 corresponding to the pixel of interest 2401 from the comparison results 2403 obtained at step S404 and from the weight coefficients 2404, C1, C2, . . . , CNM, corresponding to the comparison results O1, O2, . . . , ONM, respectively. The weight coefficients 2404, C1, C2, . . . , CNM, are acquired from the weight coefficient table 801, 1401 or 1601 shown in
Next, a calculation method of the address coordinates on the X-Y coordinate system will be described in detail with reference to
The address coordinates AX1, AX2, . . . , AX9 and AX1, AX2, . . . , AY9 of the nine thresholds in the present embodiment are obtained from the coordinate X and coordinate Y of the pixel of interest by the following expression.
AX1=X×N−1
AX2=X×N
AX3=X×N+1
AX4=X×N−1
AX5=X×N
AX6=X×N+1
AX7=X×N−1
AX8=X×N
AX9=X×N+1
AY1=Y×M−1
AY2=Y×M−1
AY3=Y×M−1
AY4=Y×M
AY5=Y×M
AY6=Y×M
AY7=Y×M+1
AY8=Y×M+1
AY9=Y×M+1
When the pixel of interest having the value DIN in
On the other hand, when the pixel of interest having the value DIN in
As can be seen from the coordinate values, some of the coordinates of the thresholds ((3, 5), (4, 5), (5, 5)) on the X-Y coordinate system are common to
The above is the description of the embodiments in accordance with the present invention.
The object of the present invention can be achieved by reading, from a storage medium that stores program code for implementing the procedures of the flowcharts shown in the embodiments described above, the program code and executing it with a computer (or CPU or MPU) of the system or device.
In this case, the program code itself read from the storage medium implements the functions of the foregoing embodiments. Accordingly, the program code and a computer readable storage medium that stores the program code constitute the present invention.
As the storage medium for supplying the program code, a floppy (registered trademark) disk, hard disk, optical disk, magneto-optical disk, CD-ROM, CD-R, magnetic tape, nonvolatile memory card, ROM and the like can be used.
The functions of the foregoing embodiments can be achieved by a computer executing the program code. In addition, the term “execution of the program” includes the case where an OS and the like of a computer performs part or all of the actual processing according to the instructions of the program code.
Furthermore, the functions of the foregoing embodiments can also be implemented by a function expansion board inserted into a computer or a function expansion unit connected to the computer. In this case, the program read out of the storage medium is written into a memory in the function expansion board inserted into the computer or in the function expansion unit connected to the computer. After that, according to the instructions of the program, the CPU in the expansion board or in the expansion unit performs part or all of the actual processing. The functions of the foregoing embodiments can also be implemented by such a function expansion board or a function expansion unit.
While the present invention has been described with reference to exemplary embodiments, it is to be understood that the invention is not limited to the disclosed exemplary embodiments. The scope of the following claims is to be accorded the broadest interpretation so as to encompass all such modifications and equivalent structures and functions.
This application claims the benefit of Japanese Patent Application No. 2008-026710, filed Feb. 6, 2008, which is hereby incorporated by reference herein in its entirety.
Number | Date | Country | Kind |
---|---|---|---|
2008-026710 | Feb 2008 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
4771279 | Hannah | Sep 1988 | A |
5777759 | Kaburagi | Jul 1998 | A |
5926582 | Kakutani | Jul 1999 | A |
6519366 | Kaburagi | Feb 2003 | B1 |
6668100 | Kaburagi | Dec 2003 | B1 |
20040227965 | Nakajima | Nov 2004 | A1 |
20060209317 | Shoda | Sep 2006 | A1 |
Number | Date | Country |
---|---|---|
2000-332995 | Nov 2000 | JP |
2004-255700 | Sep 2004 | JP |
2005-094404 | Apr 2005 | JP |
2005-64954 | Oct 2005 | JP |
Number | Date | Country | |
---|---|---|---|
20090195835 A1 | Aug 2009 | US |