This application claims the benefit under 35 U.S.C. § 119(a) of Korean Patent Application No. 2005-67567, filed on Jul. 25, 2005 in the Korean Intellectual Property Office, the entire contents of which are incorporated herein by reference.
1. Field of the Invention
The present general inventive concept relates to a method of generating a halftone screen in an image forming device and a system thereof, and more particularly, to a method of generating a halftone screen to improve a printing quality in an image forming device, and a system thereof.
2. Description of the Related Art
Generally, printing devices have two brightness levels according to whether dots are printed, which is different from multi-level image devices. A method of printing a multi-level input image using a binary printing device is called halftoning.
In other words, an image having 256 brightness levels from 0 to 255 is generally called a continuous gray-level image, and a method of expressing or generating the continuous gray-level image in a binary output device (e.g., a printing device) using only 0 (i.e., black) and 255 (i.e., white) is called halftoning. An image generated based on a halftoning method is referred to as a binary image.
The halftoning method includes a screening method, an error spreading (diffusion) method to halftone through optimization. The screening method is a method of performing binarization by comparing a gray-level value of a pixel to be binarized with a predetermined threshold, which is part of a threshold array. The error spreading method is a method of taking an error occurring during binarization into consideration by spreading the error on surrounding pixels to be binarized based on a predetermined kernel value at a predetermined rate.
Although the screening method is a faster method than the error spreading method, the screening method has an inferior image quality at a low definition level. Since the error spreading method is not suitable for a laser printing device with irregular dot positions and sizes, the screening method is widely adopted by laser printing devices.
Screens are divided into an amplitude modulated (AM) screen and a frequency modulated (FM) screen according to how dots are arrayed. Since the AM screen is output with clusters of dots, the AM screen can be output more stably compared to the FM screen.
For this reason, the laser printing devices use the AM screen. The AM screens are classified into one of an AM ordered screen and an AM stochastic screen according to how the cluster dots are arrayed.
An output image binarized by using an AM ordered screen has a periodic cluster dot array or a periodic halftone dot array. However, an output image binarized by using an AM stochastic screen does not have the periodic cluster dot array.
The image binarized by using the AM ordered screen may have an unpleasant pattern due to the periodic cluster dot pattern. Particularly, when an input image has a periodic pattern, the output image has a subject moiré pattern having a periodic band in a predetermined direction.
In order to solve the above-described problems, a method of generating a screen which does not to have the periodic cluster dot array has been suggested. The conventional screen-generating method forms dot clusters from halftone dots using a spatial filter (i.e., an evaluation function).
In the direct dot growing method 10, one arbitrary dot is selected as an initial dot and then a continuous dot order is determined based on the spatial filter. A multi-level input is converted into an output tone level based on the number of dots, so that a light gray-level range has a small number of dots while a shadow range has a large number of dots. Here, the number of dots increases as the output tone level varies from a light gray-level to a dark gray-level. The increase in the number of dots is called growing, and a gradual increase of the number of black dots is called order. Here, the order is determined according to a position having a minimum value after a mask operation using the spatial filter.
The following Equation 1 illustrates the above-described order determining method.
cos t(i,j)=filter(i,j)**dot(i,j) Equation 1
where filter (j,j) denotes the spatial filter, dot(i,j) denotes a dot distribution, and ** denotes a circular convolution.
Dots with a determined order have a ‘1 (on)’ value, whereas dots without a determined order have a ‘0 (off)’ value. The mask operation is performed until determining positions of all dots that have a ‘1’ value. In short, when horizontal and vertical sizes of a screen are M and N, respectively, the dot order may have a value from ‘0’ to ‘M*N−1’. The following Equation 2 represents the above-described spatial filter.
The Equation 2 uses a difference between two Gaussian functions, i and j are coordinates of a dot and, herein, a standard deviation ‘σ1’ should be always larger than a standard deviation ‘σ2.’ However, in the direct dot growing method, the dot distribution is not uniform in a highlight range. For this reason, the mask operation is carried out after the swapping growing method 20 using the initial binary pattern of
In this case, after a predetermined number of dots that represent a particular gray-level are initially distributed arbitrarily, the initial dot distribution is rearrayed by using the spatial filter. A rearray operation is as follows.
First, a value of a cost function for an initial dot distribution is calculated and then the initial dot distribution is rearrayed. Then, a value of the cost function for the rearrayed dot distribution is calculated. The dot distribution with a smaller cost value between the initial distribution and the rearrayed distribution is stored. The above-described operation is repeated until the value of the cost function converges to a predetermined value. A final dot distribution is defined as a uniform binary pattern. The operation of rearraying the dots is called a swapping operation, and the numbers of black and white dots before and after the swapping operation should be the same.
When a uniform binary pattern is completed at a predetermined gray-level, the mask operation is performed by using the same spatial filter. For a gray-level lighter than the predetermined gray-level, dots are removed one by one and, for a gray-level darker than the predetermined gray-level, dots are added one by one. In an image binarized by using the above-described AM screen generating method, an undesirable circular pattern disappears compared to when using the AM ordered screen generating method.
However, although in the above-described conventional method a main distance of a cluster of dots is adjusted by tuning the values ‘σ1’ and ‘σ2’, the conventional halftoning method does not provide any basis for a proper controlling method of the main distance. In short, the conventional method has a problem in that it is hard to generate a screen such that the cluster of dots have a particular main distance.
The present general inventive concept provides a method of generating a halftone screen to improve a printing quality in an image forming device, and a system thereof.
Additional aspects and advantages of the present general inventive concept will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the general inventive concept.
The foregoing and/or other aspects of the present general inventive concept may be achieved by providing a method of generating a halftone screen in an image forming device, which includes growing dot centers into uniform binary patterns in an input image, calculating a main distance of each dot center, forming a screen filter using the main distance, and generating the halftone screen using the screen filter to form a binary image.
The growing of the dot centers operation may include using a distance function to evaluate an extent of a uniform distribution of the dot centers such that the main distance is calculated.
The forming of the screen filter may include forming a frequency filter based on the main distance, and forming a spatial filter by performing inversion on the frequency filter from a frequency domain into a spatial domain.
Also, the frequency filter may be formed to have characteristics opposite to characteristics of the frequency domain of the binary image of the image.
Also, the spatial filter may be one of spatial filters that can be generated by inverting a graph obtained by shifting a graph of the frequency filter formed based on the main distance by a predetermined offset value.
Also, the dot centers may be generated arbitrarily by white noise.
The foregoing and/or other aspects of the present general inventive concept may also be achieved by providing a system to generate a halftone screen in an image forming device, which includes a dot center determining unit to grow arbitrarily generated dot centers into uniform binary patterns, a filter forming unit to calculate a main distance of a dot center and to form a screen filter based on the main distance, and a screen generating unit to generate a halftone screen based on the screen filter.
The dot center determining unit may evaluate an extent of a uniform distribution of dot centers based on a distance function.
The filter forming unit may form a frequency filter based on the main distance and may form the screen filter by inverting the frequency filter.
The filter forming unit may form the frequency filter to have characteristics opposite to characteristics in the frequency domain of the binary image of the image.
The spatial filter may be one of spatial filters that are generated by inverting a graph obtained by shifting a graph of the frequency filter by a predetermined offset.
The dot centers may be generated arbitrarily by white noise.
The foregoing and/or other aspects of the present general inventive concept may also be achieved by providing an image forming device having a halftone screen generating system, which includes a dot center determining unit to grow arbitrarily generated dot centers into uniform binary patterns, a filter forming unit to calculate a main distance of a dot center and forming a screen filter based on the main distance, and a screen generating unit to generate a halftone screen based on the screen filter.
These and/or other aspects and advantages of the present general inventive concept will become apparent and more readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
Reference will now be made in detail to the embodiments of the present general inventive concept, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to the like elements throughout. The embodiments are described below in order to explain the present general inventive concept by referring to the figures.
The halftone screen generating method according to the present embodiment will be described hereinafter with reference to
When the channels overlap, the initial dot centers are uniformly distributed so that clusters of adjacent dot centers do not overlap between the dot centers.
For this, a cost function to evaluate an extent of the uniform distribution of the dot centers is defined. The cost function used in the present embodiment includes a distance function to compute effects of one dot center on adjacent dot centers.
Thus, the distance function has a minimum value at more than a principal distance, i.e., a desirable distance that should be maintained between dot centers. The minimum value of the distance function at a dot center may be 0.
A cost for one dot center can be calculated by using the distance function as a weight based on Equation 3:
where D(m+i, n+j) denotes distribution of a dot center and DF(i, j) denotes the distance function. The values i and j are in a range of −n to n, and the range is large enough to cover values of the distance function. An operator {circle around (×)} is a circular multiplication for taking ‘tilting’ into cost calculation.
When the smoothing operation is carried out about five to seven times with respect to all the dot centers, uniformly distributed dot centers can be obtained.
Subsequently, in operation S110 (see
In other words, in operation S120, a screen filter is formed based on the main distance calculated for the dot centers.
In a mask operation, frequency characteristics of a filter and dot distribution are checked in a frequency modulated (FM) stochastic screen. The spatial filter used to generate the screen performs convolution, and the convolution in a spatial domain can be expressed in a frequency domain as Equation 4:
[filter(i,j)**dot(i,j)]=Filter(u,v)×Dot(u,v) Equation 4
where Filter(u,v) is obtained by performing frequency conversion on the spatial filter used to generate a screen, and Dot(u,v) is obtained by performing frequency conversion on the dot distribution.
When Filter(u,v) has a characteristic of a low pass filter in the frequency domain, Dot(u,v) has a characteristic of a high pass filter due to a position (imin, jmin) having the minimum cost in the mask operation.
When ‘Filter(u,v)×Dot(u,v)’ maintains the minimum value, ‘Filter(u,v)’ and ‘Dot(u,v)’ have opposite frequency characteristics to each other.
When ‘Dot(u,v)’ has the characteristics of a band pass filter in the AM stochastic screen generating method of the present embodiment, the ‘Filter(u,v)’ used to generate a screen in the present embodiment has the characteristics of a band reject filter. The following Equation 5 is used for the ‘Filter(u,v)’ that has the characteristics of the band reject filter.
A value σ is determined such that a minimum value of the Filter(r) is used as the main distance of cluster dots. The value σ is determined as follows.
1) A desired main distance of cluster dots is determined as λ0, and λ0 is converted into a frequency coordinate value r0.
2)
is calculated to induce a relational equation between σ and r.
3) A value σ0 is calculated by substituting r0 into the above-generated equation.
4) An offset value is obtained by substituting r0 and σ0 into the following Equation 6.
5) Filter(r) is obtained by substituting σ0 and the offset value into the Equation 5.
where r0 denotes a frequency coordinate value corresponding to the main distance of cluster dots and σ0 is a value maintaining r0 in the minimum value.
The graph of
In the present embodiment of the present general inventive concept, the frequency inversion is performed to transform (invert) a filter Filter (u,v) from the frequency domain into Filter(i,j) in the spatial domain. A frequency component has a real number part and an imaginary number part. In order for the Filter(i,j) to be radially symmetric, that is, to form an even function, all the imaginary number part should be ‘0.’ Therefore, only the real number part is considered in the Filter(u,v) used in the present embodiment.
As illustrated in
As described above, the present general inventive concept provides a filter by analyzing a distribution of cluster dots through frequency analysis, whereas a conventional technology uses a method of controlling the values σ1 and σ2 to determine a distribution of cluster dots to have a main distance.
Furthermore, since the filter is formed in the frequency domain, the screen can have particular frequency characteristics, while the conventional methods form a filter in a spatial domain to generate a screen.
As described above, according to various embodiments of the present general inventive concept, halftone screen generating methods can easily control cluster dots to have a predetermined main distance when generating a screen (binary image), and can improve a printing quality by growing the dot centers uniformly.
Although a few embodiments of the present general inventive concept have been shown and described, it will be appreciated by those skilled in the art that changes may be made in these embodiments without departing from the principles and spirit of the general inventive concept, the scope of which is defined in the appended claims and their equivalents.
Number | Date | Country | Kind |
---|---|---|---|
10-2005-0067567 | Jul 2005 | KR | national |
Number | Name | Date | Kind |
---|---|---|---|
5859955 | Wang | Jan 1999 | A |
6233060 | Shu et al. | May 2001 | B1 |
6710778 | Cooper | Mar 2004 | B2 |
6791718 | Allebach et al. | Sep 2004 | B1 |
20030107768 | Crounse | Jun 2003 | A1 |
20060103883 | Damera-Venkata | May 2006 | A1 |
Number | Date | Country |
---|---|---|
2000-295473 | Oct 2000 | JP |
1020010048592 | Jun 2001 | KR |
Number | Date | Country | |
---|---|---|---|
20070019240 A1 | Jan 2007 | US |