1. Field of the Invention
The present general inventive concept relates to an image processing apparatus and an image processing method, and more particularly, to an image processing apparatus and an image processing method, which are capable of removing a certain region of an input image or dividing a certain portion of the input image with a reduced computation and a high applicability.
2. Description of the Related Art
An image processing apparatus, such as a copier, a multifunction copier or the like, incorporates scanning an object to generate its image as a copy of the object, processing the generated image, and printing the processed image on a record medium such as a paper. Such image processing may be performed by a separate image processing apparatus.
There are various objects that we can copy, and among them are books copied in two pages at the same time by unfolding them. In this case, a center line formed between the two pages is lifted up from a scan plane during scanning, so relatively less light reaches a region along the center line. Thus, the region comes out relatively darker, compared to other copied area of the two pages. In particular, a very middle line (hereinafter referred to as “folding line”) comes out the darkest. An example of a folding line 11 is shown in
It is desirable to remove a folding line image portion corresponding to a portion where substantial image distortion occurs. As one of conventional techniques for removing the folding line image, U.S. Pat. No. 6,330,050 discloses a conventional technique which estimates heights of portions on coordinates of an input image from a scan plane, and corrects a distortion of the image based on the estimated heights.
However, this technique has a problem in that a great deal of computation is required to estimate the heights and this technique is applicable only when the folding line is parallel to a scanner, that is, is perpendicular to a main scan direction.
The present general inventive concept provides an image processing apparatus and an image processing method, which are capable of removing a certain region of an input image or dividing a certain portion of the input image with a reduced computation and a high applicability.
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 an image processing method including determining one or more candidate pixels having variation of brightness in a first direction, among a plurality of pixels constituting an input image, the variation of brightness exceeding a first reference value, determining a certain region in which a total number of candidate pixels existing in a row of pixels in a second direction different from the first direction exceeds a second reference value, and generating an output image free from the determined certain region.
The first and second directions may be horizontal and vertical directions of the input image, respectively.
The first reference value may be twice the variation of brightness in the vertical direction.
The second reference value may be equal to 80% of the total number of corresponding pixels in the row of pixels.
The determining of the one or more candidate pixels may further include determining a candidate pixel block comprising at least one candidate pixel among a plurality of 9*9 pixel blocks constituting the input image, and the determining of the certain region comprises determining the certain region in a unit of the candidate pixel block.
The image processing method may further include substituting the candidate pixel block for at least one pixel block arranged in the horizontal direction from the candidate pixel block.
The image processing method may further include generating the input image by scanning a copy object.
The image processing method may further include printing the generated output image on a record medium.
The generating of the output image comprises dividing the input image into two output images on the basis of the determined certain region.
The foregoing and/or other aspects of the present general inventive concept may also be achieved by providing an image processing apparatus including an image processing part that determines one or more candidate pixels having variation of brightness in a first direction, among a plurality of pixels constituting an input image, the variation of brightness exceeding a first reference value, and a certain region in which a total number of candidate pixels existing in a row of pixels in a second direction different from the first direction exceeds a second reference value, and generates an output image free from the determined certain region.
The first and second directions may be horizontal and vertical directions of the input image, respectively.
The first reference value may be twice the variation of brightness in the vertical direction.
The second reference value may be equal to 80% of the total number of corresponding pixels in the row of pixels.
The image processing part may determine a candidate pixel block comprising at least one candidate pixel among a plurality of 9*9 pixel blocks constituting the input image, and determines the certain region in a unit of candidate pixel block.
The image processing part may substitute the candidate pixel block for at least one pixel block arranged in the horizontal direction from the candidate pixel block.
The image processing apparatus may further include a scanning part that generates the input image by scanning a copy object.
The image processing apparatus may further include a printing part that prints the generated output image on a record medium.
The image processing part may generate the output image by dividing the input image into two output images on the basis of the determined certain region.
The foregoing and/or other aspects of the present general inventive concept may also be achieved by providing a computer readable recording medium to perform a method, the method including determining one or more candidate pixels having variation of brightness in a first direction, among a plurality of pixels constituting an input image, the variation of brightness exceeding a first reference value; determining a certain region in which a total number of candidate pixels existing in a row of pixels in a second direction different from the first direction exceeds a second reference value; and generating an output image free from the determined certain region.
The foregoing and/or other aspects of the present general inventive concept may also be achieved by providing an image processing apparatus including an image processing part to determine a region of an image as a folding line when the region includes one or more pixels having a predetermined brightness change and when the number of the one or more pixels is greater than a reference number, and to remove the region from the image to generate an output image.
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.
Referring to
The scanning part 110 scans a copy object to generate its image having a plurality of pixels. In the present embodiment, a book will be considered as the copy object. The book contacts a scan plane (not shown) by unfolding two pages to be copied. In this case, a center portion between the two pages is lifted up above the scan plane, and other portions of the two pages may contact the scan plane. An example of an input image 10 generated by the scanning part 110 is illustrated in
Referring to
The printing part 130 prints the output image generated by the image processing part 120 on a record medium such as a paper. The printing part 130 may print the output image on one sheet of paper or may print the first and second output images on separate papers. The printing part 130 may perform at least one of various printing operations, for example, inkjet printing, laser printing, etc.
The image processing part 120 may be incorporated in a separate image processing apparatus (not shown) from the scanning part 110 and/or the printing part 130.
The image processing part 120 determines candidate pixels whose variations of brightness in a first direction exceed a first reference value, among a plurality of pixels that constitute the input image 10. In other words, the image processing part 120 detects the candidate pixels corresponding to an edge whose brightness suddenly changes in a horizontal direction in the input image 10. In the present embodiment, the horizontal direction refers to a direction substantially perpendicular to the folding line 11 and a vertical direction refers to a direction substantially parallel to the folding line 11.
The candidate pixels are determined by detecting the variations of brightness of pixels using conventional methods such as Sobel edge detection and so on. The image processing part 120 finds a horizontal and a vertical brightness gradient of pixels. The following Equation 1 and Equation 2 may be used to find the horizontal and vertical brightness gradients.
Gx=(Image(x−1,y−1)−Image(x−1,y)+Image(x−1,y+1)−Image(x+1,y−1)Image(x+1,y)+Image(x+1,y+1))/3 [Equation 1]
Gy=(Image(x−1,y−1)−Image(x,y−1)+Image(x+1,y−1)−Image(x−1,y+1)−Image(x,y+1)+Image(x+1,y+1))/3 [Equation 2]
Gx represents variations of brightness of pixels in an x-direction, i.e., a vertical direction, Gy represents variations of brightness of pixels in a y-direction, i.e., a horizontal direction, and Image(x,y) represents brightness of any pixel(x,y).
In addition, the image processing part 120 determines pixels whose variations of brightness in the horizontal direction exceed the first reference value, as the candidate pixels. In the present embodiment, the first reference value may be twice the variations of brightness of pixels in the vertical direction. For example, if Gy>Gx*2, that is, if the variations of brightness of pixels in the horizontal direction is more than twice the variations of brightness of pixels in the vertical direction, the image processing part 120 may determine the pixels as the candidate pixels.
The edge map 20 may have noises depending on characteristics of the input image 10. The image processing part 120 may process the image in a unit of a pixel block, which is a set of adjacent pixels, not in a unit of a pixel, in order to minimize effects of the noises and increase a speed of calculation. This image processing is referred to as a sub-sampling. In the present embodiment, the unit of 9*9 pixel blocks is used. The image processing part 120 determines candidate pixel blocks, each including at least one candidate pixel, among the 9*9 pixel blocks. In this case, representative values of the candidate pixel blocks are set to be an on-state.
In the present embodiment, the image processing may be performed in either the unit of “pixel” or the unit of “pixel block.” In the following description, the unit of “pixel” will be described by way of an example, but the unit of “pixel block” can be used for the image processing.
A peak value in the folding line may be reduced due to a skew which may exist in an actual image depending on environments where the input image is obtained or the copy object is scanned. This may lower the precision of detection of the folding line. Accordingly, the image processing part 120 dilates the sub-sampled image 30 in the horizontal direction, which is called morphological dilation.
The image processing part 120 may substitute at least one pixel arranged parallel to a particular candidate pixel with a new candidate pixel. For example, as illustrated in
In order to detect the folding line 11, the image processing part 120 detects a portion where the number of candidate pixels in the vertical direction increases suddenly, that is, a region where the number of candidate pixels in the vertical direction reaches a peak. In other words, the image processing part 120 determines a region where the total number of candidate pixels existing in a row of pixels in the vertical direction exceeds a second reference value, as the folding line 11. The portion determined as the folding line 11 is removed from the input image to generate the output image. Alternatively, two images disposed opposite to each other with respect to the portion determined as the folding line 11 may be separated from the input image 10 to generate two output images. In the present embodiment, the second reference value may correspond to 80% of the total number of pixels in the row of pixels in the vertical direction. If the page images 12 do not extend throughout in the vertical direction, like the input image 10 illustrated in
As illustrated in
Next, at operation S120, sub-sampling is performed on an image in which only the candidate pixels determined at the operation S110 are dotted in order to minimize effects of noises and reduce the amount of computation. Next, at operation S130, morphological dilation is performed on the image sub-sampled at the operation S120 in order to minimize an effect of a skew or the like.
Next, with respect to the image obtained at the operation S130, a folding line in which the number of candidate pixels increases suddenly in the vertical direction is determined at operation S140. Next, an output image free from the folding line determined at the operation S140 is generated at operation S150.
As an alternative embodiment, with respect to the image obtained at the operation S130, a row in which the number of candidate pixels increases suddenly in the vertical direction may be determined, and then, an input image may be divided based on the determined row of pixels to generate an output image at operation S150.
As another alternative embodiment, the image processing method may further include an operation S910 of scanning a copy object to generate an input image before the operation S100 of
The present general inventive concept can also be embodied as computer-readable codes as a program on a computer-readable recording medium to perform the above-described method. The computer-readable recording medium is any data storage device that can store data which can be thereafter read by a computer system. Examples of the computer-readable recording media include read-only memory (ROM), random-access memory (RAM), CD-ROMs, magnetic tapes, floppy disks, optical data storage devices, and carrier waves (such as data transmission through the Internet). The computer-readable recording medium can also be distributed over network-coupled computer systems so that the computer-readable code is stored and executed in a distributed fashion. Also, functional programs, codes, and code segments to accomplish the present general inventive concept can be easily construed by programmers skilled in the art to which the present general inventive concept pertains.
As described above, the present general inventive concept provides an image processing apparatus and an image processing method, which are capable of removing a certain region of an input image with little amount of computation and high applicability.
In addition, according to the present general inventive concept, it is possible to divide and print page images in an input image through detection of a folding line of a book.
In addition, according to the present general inventive concept, by performing sub-sampling, an image robust to noises can be generated and the amount of computation for process of the image can be further reduced.
Furthermore, according to the present general inventive concept, by performing morphological dilation, a certain region of an image can be discriminated more precisely.
For example, although the folding line has been illustrated as the certain region in the above embodiments, the certain region may be circumferences of right and left pages of a book, which come out relatively darker, compared to other regions of the pages. In this case, candidate pixels may be determined in consideration of sudden change of brightness of pixels in both of the horizontal and vertical directions.
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 |
---|---|---|---|
2006-66532 | Jul 2006 | KR | national |
This application is a continuation of prior art application Ser. No. 11/626,480, filed Jan. 24, 2007 now U.S. Pat. No. 7,848,590 in the U.S. Patent and Trademark Office, which claims priority from Korean Patent Application No. 2006-0066532, filed on Jul. 14, 2006, in the Korean Intellectual Property Office, the entire content of which is incorporated herein by reference in its entirety.
Number | Name | Date | Kind |
---|---|---|---|
4538181 | Taylor | Aug 1985 | A |
5377019 | Okisu et al. | Dec 1994 | A |
5400153 | Schonenberg et al. | Mar 1995 | A |
5677776 | Matsuda et al. | Oct 1997 | A |
5751267 | Sato et al. | May 1998 | A |
6124950 | Honda | Sep 2000 | A |
6330050 | Takahashi et al. | Dec 2001 | B1 |
6462835 | Loushin et al. | Oct 2002 | B1 |
6549295 | Fantone et al. | Apr 2003 | B1 |
6658137 | Yuhara et al. | Dec 2003 | B1 |
6950141 | Mori et al. | Sep 2005 | B2 |
7245764 | Nishizawa | Jul 2007 | B2 |
7848590 | Ohk | Dec 2010 | B2 |
20060007505 | Chelvayohan et al. | Jan 2006 | A1 |
20060193533 | Araki et al. | Aug 2006 | A1 |
20080013857 | Ohk | Jan 2008 | A1 |
20080089582 | Ohk | Apr 2008 | A1 |
20110069335 | Ohk | Mar 2011 | A1 |
20110096349 | Braudaway | Apr 2011 | A1 |
Number | Date | Country |
---|---|---|
1093084 | Apr 2001 | EP |
1294174 | Mar 2003 | EP |
05-225391 | Sep 1993 | JP |
05-336341 | Dec 1993 | JP |
06-078133 | Mar 1994 | JP |
08-154166 | Jun 1996 | JP |
2000-41141 | Feb 2000 | JP |
2001-285606 | Oct 2001 | JP |
2007-0009922 | Jan 2007 | KR |
0111864 | Feb 2001 | WO |
Number | Date | Country | |
---|---|---|---|
20110069335 A1 | Mar 2011 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 11626480 | Jan 2007 | US |
Child | 12954722 | US |