1. Field of the Invention
The present invention relates generally to image reading apparatuses and particularly to image reading apparatuses reading an original while transporting it.
2. Description of Related Art
Conventionally digital copiers and similar image reading apparatuses employ a technique referred to as so-called “reading an original while passing the original.” More specifically, an original is transported relative to a fixed line sensor in a sub scanning direction orthogonal to the line sensor as the original is read.
Such image reading apparatus is provided with a transparent platen between the original and the line sensor to fix a position at which a transported original is read. The original reflects light which is in turn received via the platen by the line sensor.
As such, if dust, paper particles, flaws or other similar foreign matters (hereinafter generally referred to as “dust”) adhered on the platen's reading position, the line sensor will read the dust while reading a transported original. This provides an output image with noise in the form of a line in the sub scanning direction.
Japanese Laid-Open Patent Publication No. 2000-278485 describes an image reading apparatus that detects noise caused by dust adhering on a platen glass's reading position from a read image by oscillating the platen in a main scanning direction as the apparatus reads an original. This image reading apparatus detects a specific waveform appearing in an image as noise generated by reading dust.
The image reading apparatus described in Japanese Laid-Open Patent Publication No. 2000-278485, however, employs pattern-matching to detect the specific waveform appearing in an image. As such, if an original includes such a pattern, the apparatus would erroneously detect the pattern.
The present invention has been made to overcome the above disadvantage and contemplates an image reading apparatus capable of detecting with improved precision noise generated in an image by dust existing on a platen.
To achieve the above object the present invention in one aspect provides an image reading apparatus including: a plurality of line sensors mutually spaced in a sub scanning direction to scan an original in the sub scanning direction; a platen arranged between the original and the plurality of line sensors; a mover moving the platen at a rate relative to the plurality of line sensors, the rate being different from that of the original relative to the plurality of line sensors; an extractor extracting a feature pixel having a predetermined feature from each of a plurality of data output from the plurality of line sensors; and a detector comparing the plurality of data corresponding to a single location on the original to detect the feature pixel extracted from one of the plurality of data, as a noise pixel if the feature pixel is not a feature pixel for the other data, and the detector includes a determiner determining that a value of a first pixel of one of the plurality of data and that of a second pixel related to the first pixel has a predetermined relationship, and if the feature pixel extracted from one of the plurality of data further satisfies a condition for determination by the determiner, the feature pixel is detected as a noise pixel.
In accordance with the present invention an original is scanned in a sub scanning direction by a plurality of sensors spaced in the sub scanning direction and between the original and the plurality of sensors there is provided a platen moving at a rate relative to the plurality of line sensors, the rate being different from that of the original relative to the plurality of line sensors. When the platen has dust adhering thereon, the dust is read by the plurality of line sensors sequentially. As the platen is moved at a rate relative to the plurality of line sensors, the rate being different from that of the original relative to the plurality of line sensors, the dust on the platen is read by each line sensor at a different location in the original. The image reading apparatus extracts a feature pixel having a predetermined feature from each of a plurality of data output from the plurality of line sensors, compares the plurality of data corresponding to a single location on the original to detect a feature pixel, extracted from one of the plurality of data, as a noise pixel if the feature pixel is not a feature pixel for all of the other data and furthermore its value and that of a pixel related to the feature pixel also have a predetermined relationship. The image reading apparatus can detect the noise generated by dust existing on the platen from an image of a read original with higher precision.
The present invention in another aspect provides an image reading apparatus including: a plurality of line sensors having filters different in spectral sensitivity, and mutually spaced in a sub scanning direction to scan an original in the sub scanning direction; a platen arranged between the original and the plurality of line sensors; a mover moving the platen at a rate relative to the plurality of line sensors, the rate being different from that of the original relative to the plurality of line sensors; an extractor extracting a feature pixel having a predetermined feature from each of a plurality of data output from the plurality of line sensors; a saturation detector obtaining saturation of a pixel from a plurality of data output from the plurality of line sensors; and a detector comparing the plurality of data corresponding to a single location on the original to detect the feature pixel extracted from one of the plurality of data, as a noise pixel if the feature pixel is not a feature pixel for the other data and also has saturation of at least a predetermined value.
The present image reading apparatus can detect the noise generated by dust existing on the platen from an image of a read original with higher precision.
The foregoing and other objects, features, aspects and advantages of the present invention will become more apparent from the following detailed description of the present invention when taken in conjunction with the accompanying drawings.
Hereinafter reference will be made to the drawings to describe embodiments of the present invention. In the following description, like components are denoted by like reference characters and also identical in name and function.
Main body 103 includes a platen 205 formed of a transparent member, a sheet passage guide 207 forming a portion of a path of the original, a source of light 206 illuminating the original at the reading position, a reflector member 208 reflecting the light emitted from the source of light, a reader 213 having three line sensors arranged in a sub scanning direction, a reflector mirror 209 arranged to reflect light reflected from the original and guide the reflection of light to reader 213, a lens 211 focusing the reflection of light on reader 213, an image processor 215 processing an electrical signal output from reader 213, a motor 219 operative to oscillate platen 205, and a motor controller 217 operative in response to a control signal received from image processor 215 to control the driving of motor 219.
An original 200 is transported by timing roller pair 201 between platen 205 and upper restraint plate 203 in a direction D1. The original being transported has its image read at a reading position L by reader 213 successively. ADF 101 transports an original in the sub scanning direction, as seen at a reading position L. During the image reading operation, platen 205 is oscillated by motor 219 in a direction D2. Platen 205 oscillates in a direction substantially parallel to the sub scanning direction.
Reader 213 includes three line sensors each having a plurality of photoelectric conversion elements arranged in a main scanning direction substantially perpendicular to the sub scanning direction. The three line sensors have filters, respectively, different in spectral sensitivity and receive light reflected from an original through the filters. More specifically, the sensors have filters transmitting light of waveforms of red (R), green (G) and blue (B). Thus, the line sensor having the filter of red (R) outputs an R signal, an electrical signal indicating an intensity of red light of light reflected from an original, the line sensor having the filter of green (G) outputs a G signal, an electrical signal indicating an intensity of green light of light reflected from the original, and the line sensor having the filter of blue (B) outputs a B signal, an electrical signal indicating an intensity of blue light of light reflected from the original.
The three line sensors are arranged in the sub scanning direction in a predetermined order with a predetermined distance therebetween. In this example, the line sensors are spaced by a distance corresponding to three original reading lines, and arranged, red first, followed by green and then blue as seen in the direction in which an original is transported, although the line sensors may be spaced by different distances and arranged in different orders.
The three line sensors thus spaced and arranged simultaneously receive at the same timing the light reflected by an original at different locations. As such, the light reflected by the original at a location is initially received by the red light receiving line sensor, subsequently by the green light receiving line sensor, and finally by the blue light receiving line sensor. This delay is adjusted by image processor 215, as will be described later.
Note that while in the present embodiment reader 213 is provided with three line sensors, it may be provided with four or more line sensors.
A shaft 224 at portions corresponding to the two arms 222 has two cams 223 attached thereto. Furthermore, shaft 224 has one end with a gear 225 attached thereto. Gear 225 is arranged to mesh with a gear 226 linked by a belt to the motor 219 drive shaft. As motor 219 runs, the motor's rotation is transmitted by the belt to gear 226, and gear 226 thus rotates. As gear 226 rotates, gear 225 and shaft 224 rotate.
Cam 223 is arranged in the circular hole of arm 222. As such, as shaft 224 rotates, the two cams 223 accordingly provide rotation, which is converted to translation movement of platen holder 221.
Note that platen 205 may be oscillated by a mechanism other than that described above. For example, the platen may be oscillated by a mechanism employing a driving source, such as a piston utilizing an electromagnet, air pressure, hydraulic pressure and the like, causing linear movement.
Platen 205 is oscillated parallel to the sub scanning direction. When platen 205 is moving in a direction opposite that in which an original is transported, platen 205 and the original move in the opposite directions. As such, the speed of platen 205 relative to line sensors 213R, 213G, 213B and that of the original relative to the line sensors are different. In contrast, when platen 205 is moving in the direction in which the original is transported, the speed of platen 205 and that of the original transported are the same in direction. Preferably, they should be different in rate. Note that while herein platen 205 is oscillated parallel to the sub scanning direction, the platen may be oscillated in different directions.
In the present embodiment image reading apparatus 10 detects noise generated by dust adhering on platen 205 from a read image in accordance with a theory as described hereinafter.
Thus an image located in an original at a single location is read by three line sensors at different times. As such, the three line sensors output signals offset in timing. Interline correction synchronizes the signals output from the three line sensors so that the signals all correspond to a single location in the original. More specifically, output R is delayed by eight lines and output G is delayed by four lines.
Interline corrected outputs R, G and B are composited to provide a composite output, which corresponds to outputs R, G and B read at a single location in an original and composited together.
By interline correction the red light receiving line sensor reading the dust outputs R delayed by eight lines and the green light receiving line sensor reading the dust outputs G delayed by four lines. As such, interline corrected outputs R, G and B composited together provide a composite output in which outputs R, G and B with the dust read are not composited at the same timing, offset by two lines.
Note that the figure shows a composite output provided when paper particles or similar white dust adhere on platen 205 and a black original is read. Despite that the white dust is read, the composite output is not white but rather an output of blue, green and red divided in three lines.
The dust adhering on platen 205 is initially read by the red light receiving line sensor arranged most upstream in the direction in which the original is transported. The dust is then transported by a distance corresponding to four lines, and read by the green light receiving line sensor. Between the time point at which the red line sensor reads the dust and that at which the green line sensor reads the dust there is introduced an offset by a period of time corresponding to reading two lines. The dust further is transported by a distance corresponding to four lines, and read by the blue light receiving line sensor. Between the time point at which the green line sensor reads the dust and that at which the blue line sensor reads the dust there is introduced an offset by a period of time corresponding to reading two lines.
By interline correction the red light receiving line sensor reading the dust outputs R delayed by eight lines and the green light receiving line sensor reading the dust outputs G delayed by four lines. As such, interline corrected outputs R, G and B composited together provide a composite output in which outputs R, G and B by five lines with the dust read are not composited at the same timing, offset by two lines. Note that the figure shows a composite output provided when paper particles or similar white dust adhere on platen 205 and a black original is read. Despite that the white dust is read, the composite output is an output varying in color, first in blue, followed by cyan, white yellow and then red.
The dust adhering on platen 205 is thus divided in an image into a plurality of lines, which are extracted for each color as a feature point to detect noise. Furthermore, such division also reduces noise caused by reading the dust.
Reader 213 or a sensor provided separate from reader 213 and fixed to main body 103 can be used to detect the length of mark 205A in the main scanning direction to detect the position of platen 205 relative to reader 213.
Line sensors 213R, 213G and 213B receive light transmitted through platen 205 at regions 205R, 205G and 205B, respectively. Regions 205R, 205G and 205B are arranged to be spaced by three lines. The original initially moves past region 205R, then region 205G and finally region 205B. As such, light reflected by the original at a location is initially received by the red light receiving line sensor 213R, then the green light receiving line sensor 213G, and finally the blue light receiving line sensor 213B. Line sensors 213R, 213G, 213B spaced by three lines thus will not simultaneously receive light reflected by the original at a single location.
If platen 205 has adhering thereto dust 300 having a maximal length of at most four lines, then dust 300 will not exist at two or more of regions 205R, 205G, 205B concurrently as platen 205 moves oscillating parallel to the sub scanning direction.
Furthermore, as platen 205 oscillates, dust 300 will exists at different regions. More specifically, when platen 205 moves in direction D1, dust 300 initially exists at region 205R, then region 205G and finally region 205B. In contrast, when platen 205 moves in a direction opposite direction D1, dust 300 exists initially at region 205B, then region 205G, and finally region 205R.
As such, light reflected by dust 300 is received in such an order that when platen 205 moves in direction D1 the light is received initially by line sensor 213R, then line sensor 213G and finally line sensor 213B and when platen 205 moves opposite to direction D1 the light is received initially by line sensor 213B, then line sensor 213G, and finally line sensor 213R.
Interline corrector 255 delays the R and G signals by eight and four lines, respectively, to synchronize the R, G and B signals to be a single line of the original, since as has been described previously, line sensors 213R, 213G, 213B are spaced in the sub scanning direction by a distance corresponding to three lines.
Noise detection processor 259 receives the R, G and B signals from color aberration corrector 257 and from controller 263 the position of platen 205 and a direction in which platen 205 moves. Noise detection processor 259 detects a noise pixel for each of the R, G and B signals received from color aberration corrector 257, and outputs to noise corrector 260 and controller 263 logical signals of “1” and “0” indicating a noise pixel and a pixel other than a noise pixel, respectively. The detail will be described later.
Noise corrector 260 receives the R, G and B signals from color aberration corrector 257 and from noise detection processor 259 receives for each of the R, G and B signals logical signal of “1” and “0” indicating a noise pixel and a pixel other than a noise pixel, respectively.
Noise corrector 260 determines from logical signals corresponding to the R, G and B signals, respectively, a color of a pixel determined as a noise pixel. More specifically, noise corrector 260 determines a color of a noise pixel successive in the sub scanning direction. Furthermore, if noise pixels are not successive in the sub scanning direction then a color of a pixel existing between two noise pixels is determined, and if the pixels are identically located in the main scanning direction and vary in color in the sub scanning direction in the following order:
(1) CBMRY or YRMBC
(2) CBKRY or YRKBC
(3) RYGCB or BCGYR
(4) RYWCB or BCWYR
then the pixels are all determined as noise pixel, wherein R, G, B, C, M, Y, K, and W represent red, green, blue, cyan, magenta, yellow, black, and white, respectively. It should be noted, however, that herein an order in which a color varies is only indicated, and two or more pixels of the same color may be successively provided. For example, it may be CCBBMMRRYY.
Thus if dust has a size read by a plurality of line sensors concurrently, herein a size corresponding to four or more lines, noise caused by reading the dust can be detected.
Furthermore, noise corrector 260 operates for each of the R, G and B signals in response to a logical signal corresponding thereto to replace a value of a pixel determined as a noise pixel with that of a neighboring, non-noise pixel. This can simply be done by replacing the value of the pixel determined as the noise pixel with an average, maximum or minimum value of a plurality of neighboring non-noise pixels. Noise corrector 260 outputs to the printer interface the R, G and B signals with any noise pixels replaced with a neighboring pixel(s).
Controller 263 receives the position of platen 205 from position detector 265 and from noise detection processor 260 logical signals of “1” and “0” indicating a noise pixel and a pixel other than noise pixel, respectively. Controller 263 determines from these signals the dust's location on platen 205. More specifically, it determines the position of platen 205 in the sub scanning direction from the position of platen 205 and a logical signal's line number, and the position of platen 205 in the main scanning direction from a location of a noise pixel of the logical signal.
The noise detection process will more specifically be described hereinafter. As has been described with reference to
As such, if platen 205 has dust adhering thereon, R, G and B signals having read a single location on an original have one of them affected.
The
The
(1) Detecting Dust of Achromatic Color High in Lightness
To prevent a cyan line from being detected erroneously as noise, the difference between a maximum value in lightness (255) and one of the values in lightness output from the line sensors other than line sensor 213R, i.e., line sensors 213G and 213B, reading a color complementary to red, or cyan, can be set as Ref2(G), Ref2(B). To prevent a magenta line from being detected erroneously as noise, the difference between the maximum value in lightness (255) and one of the values in lightness output from the line sensors other than line sensor 213G, i.e., line sensors 213R and 213B, reading a color complementary to green, or magenta, can be set as Ref2(R), Ref2(B). To prevent a yellow line from being detected erroneously as noise, the difference between the maximum value in lightness (255) and one of the values in lightness output from the line sensors other than line sensor 213B, i.e., line sensors 213R and 213G, reading a color complementary to blue, or yellow, can be set as Ref2(R), Ref2(G).
(2) Detecting Dust of Achromatic Color Low in Lightness
To prevent a red line from being detected erroneously as noise, the difference between a minimum value in lightness (0) and one of the values in lightness output from the line sensors other than line sensor 213R, i.e., line sensors 213G and 213B, reading red color; can be set as Ref2(G), Ref2(B). To prevent a green line from being detected erroneously as noise, the difference between the minimum value in lightness (0) and one of the values in lightness output from the line sensors other than line sensor 213G, i.e., line sensors 213R and 213B, reading green color, can be set as Ref2(R), Ref2(B). To prevent a blue line from being detected erroneously as noise, the difference between the minimum value in lightness (0) and one of the values in lightness output from the line sensors other than line sensor 213B, i.e., line sensors 213R and 213G, reading blue color, can be set as Ref2(R), Ref2(G).
Thus more than one threshold value Ref2(R), Ref2(G), Ref2(B) are obtained, and a minimum value thereof can simply be used.
While herein black dust is detected as noise, dust of achromatic color other than black can also be detected, since any achromatic dust affects all of R, G and B signals.
Furthermore, while herein a white original is read by way of example, an original of any color other than white may be read.
R, G, B signals are input to noise detection processor 259, one line at a time, sequentially. Note that the R, G and B signals may be input collectively by a plurality of lines or an entire image.
The first lightness difference detector 301R receives the R signal and threshold value Ref1(R) and extracts from the R signal a region having the predetermined feature of a first level. This region is a region having a limited variation in lightness and a difference in lightness of at least threshold Ref1(R) from a region surrounding it. Such region is only required to have a size of at least one pixel. In this description a pixel included in a region having the predetermined feature of the first level will be referred to as a first feature pixel.
The region having the predetermined feature of the first level may be extracted by employing an edge extraction filter. More than one edge extraction filter are prepared for sizes of edge regions, respectively, and a value obtained as a result of filtering is compared with threshold value Ref1(R). A pixel satisfying a condition with threshold value Ref1(R) is determined as a center pixel of an edge region and from an edge extraction filter satisfying that condition the edge region's size is obtained.
These edge extraction filters are established under the following conditions:
(1) An edge region high in lightness is extracted when an average in lightness of pixels A and B minus that in lightness of pixel C equals at least threshold value Ref1(R):
(Average of Pixels A and B)−(Average of Pixel C)>Ref1(R).
In that case, the center pixel is one of pixels A, B and C that is the highest in lightness.
(2) An edge region low in lightness is extracted when an average in lightness of pixel C minus that in lightness of pixels A and B equals at least threshold value Ref1(R):
(Average of Pixel C)−(Average of Pixels A and B)>Ref1(R).
In that case, the center pixel is one of pixels A, B and C that is the lowest in lightness.
G and B signals can also be handled with an edge extraction filter similar to that used for the R signal.
The first lightness difference detectors 301R, 301G, 301B compare a value calculated by the above described edge extraction filter with threshold values Ref1(R), Ref1(G), Ref1(B).
With reference again to
The second lightness difference detector 302R receives the R signal and threshold value Ref2(R) and extracts from the R signal a region having the predetermined feature of a second level. This region is a region having a limited variation in lightness and a difference in lightness of at least threshold Ref2(R) from a region surrounding it. Such region is only required to have a size of at least one pixel. In this description a pixel included in a region having the predetermined feature of the second level will be referred to as a second feature pixel. It should be noted that threshold value Ref2(R) is a smaller value than threshold value Ref1(R).
The region having the predetermined feature of the second level may be extracted by employing an edge extraction filter. More than one edge extraction filter are prepared for sizes of edge regions, respectively, and a value obtained as a result of filtering is compared with threshold value Ref2(R). A pixel satisfying a condition with threshold value Ref2(R) is determined as a center pixel of an edge region and from an edge extraction filter satisfying that condition the edge region's size is obtained.
The second lightness difference detectors 302R, 302G, 302B compare a value calculated by the above described edge extraction filter with threshold values Ref2(R), Ref2(G), Ref2(B).
The second feature pixel extracted by the second lightness difference detector 302R is represented by a logical signal of “1” and a pixel other than the second feature pixel is represented by a logical signal of “0” and thus output to detection result extension processor 303R.
Detection result extension processor 303R sets a pixel neighboring the second feature pixel extracted by the second lightness difference detector 302R as a second feature pixel to extend a region having the predetermined feature of the second level. In other words, a pixel that exists in a vicinity of a pixel of “1” in value as represented by a logical signal received from the second lightness difference detector 302R and has a value of “0” is changed to “1”. Noise can be detected with higher precision. A logical signal having contributed to extended region is output to NOR devices 305G, 305B.
The first lightness difference detector 301G receives the G signal and threshold value Ref1(G) and extracts from the G signal a region having the predetermined feature of the first level. This region is a region having a limited variation in lightness and a difference in lightness of at least threshold Ref1(G) from a region surrounding it.
The region having the predetermined feature of the first level may be extracted by employing an edge extraction filter. More than one edge extraction filter are prepared for sizes of edge regions, respectively, and a value obtained as a result of filtering is compared with threshold value Ref1(G). A pixel satisfying a condition with threshold value Ref1(G) is determined as a center pixel of an edge region and from an edge extraction filter satisfying that condition the edge region's size is obtained.
The feature pixel extracted by the first lightness difference detector 301G is represented by a logical signal of “1” and a pixel other than the first feature pixel is represented by a logical signal of “0” and thus output to AND device 307G.
The second lightness difference detector 302G receives the G signal and threshold value Ref2(G) and extracts from the G signal a region having the predetermined feature of the second level. This region is a region having a limited variation in lightness and a difference in lightness of at least threshold Ref2(G) from a region surrounding it. Such region is only required to have a size of at least one pixel. In this description a pixel included in a region having the predetermined feature of the second level will be referred to as a second feature pixel. It should be noted that threshold value Ref2(G) is a smaller value than threshold value Ref1(G).
The region having the predetermined feature of the second level may be extracted by employing an edge extraction filter. More than one edge extraction filter are prepared for sizes of edge regions, respectively, and a value obtained as a result of filtering is compared with threshold value Ref2(G). A pixel satisfying a condition with threshold value Ref2(G) is determined as a center pixel of an edge region and from an edge extraction filter satisfying that condition the edge region's size is obtained.
The second feature pixel extracted by the second lightness difference detector 302G is represented by a logical signal of “1” and a pixel other than the second. feature pixel is represented by a logical signal of “0” and thus output to detection result extension processor 303G.
Detection result extension processor 303G sets a pixel neighboring the second feature pixel extracted by the second lightness difference detector 302G as a second feature pixel to extend a region having the predetermined feature of the second level. A logical signal having contributed to an extended region is output to NOR devices 305R, 305B.
The first lightness difference detector 301B receives the B signal and threshold value Ref1(B) and extracts from the B signal a region having the predetermined feature of the first level. This region is a region having a limited variation in lightness and a difference in lightness of at least threshold Ref1(B) from a region surrounding it.
The region having the predetermined feature of the first level may be extracted by employing an edge extraction filter. More than one edge extraction filter are prepared for sizes of edge regions, respectively, and a value obtained as a result of filtering is compared with threshold value Ref1(B). A pixel satisfying a condition with threshold value Ref1(B) is determined as a center pixel of an edge region and from an edge extraction filter satisfying that condition the edge region's size is obtained.
The feature pixel extracted by the first lightness difference detector 301B is represented by a logical signal of “1” and a pixel other than the first feature pixel is represented by a logical signal of “0” and thus output to AND device 307B.
The second lightness difference detector 302B receives the B signal and threshold value Ref2(B) and extracts from the B signal a region having the predetermined feature of the second level. This region is a region having a limited variation in lightness and a difference in lightness of at least threshold Ref2(B) from a region surrounding it. Such region is only required to have a size of at least one pixel. In this description a pixel included in a region having the predetermined feature of the second level will be referred to as a second feature pixel. It should be noted that threshold value Ref2(B) is a smaller value than threshold value Ref1(B).
The region having the predetermined feature of the second level may be extracted by employing an edge extraction filter. More than one edge extraction filter are prepared for sizes of edge regions, respectively, and a value obtained as a result of filtering is compared with threshold value Ref2(B). A pixel satisfying a condition with threshold value Ref2(B) is determined as a center pixel of an edge region and from an edge extraction filter satisfying that condition the edge region's size is obtained.
The second feature pixel extracted by the second lightness difference detector 302B is represented by a logical signal of “1” and a pixel other than the second feature pixel is represented by a logical signal of “0” and thus output to detection result extension processor 303B.
Detection result extension processor 303B sets a pixel neighboring the second feature pixel extracted by the second lightness difference detector 302B as a second feature pixel to extend a region having the predetermined feature of the second level. A logical signal having contributed to an extended region is output to NOR devices 305R, 305G.
Saturation value calculator 321 receives R, G and B signals and calculates a saturation value from all of the signals. The saturation value is maximum minus minimum values of corresponding pixels in the R, G and B signals. As a one line of R, G and B signals is input, a saturation value is calculated for all of the pixels of one line, and output to comparator 323.
Comparator 323 compares the received saturation value with an externally provided threshold value Ref(I), which is a predetermined value stored for example in a ROM. If the saturation value is equal to or larger than threshold value Ref(I) comparator 323 outputs a logical signal of “1”, otherwise comparator 323 outputs a logical signal of “0” to AND devices 307R, 307G, 307B so as to prevent a pixel having a small value in saturation from being erroneously detected as a noise pixel.
NOR device 305R receives from each of detection result extension processor 303G, 303B a logical signal having contributed to an extended region. NOR device 305R outputs to AND device 307R a logical signal corresponding to an inversion of an OR of two received logical signals. More specifically, a pixel which is not a second feature pixel for either a G or B signal is represented by a logical signal of “1” for output and a pixel which is a second feature pixel for at least one of the signals is represented by a logical signal of “0” for output.
AND device 307R outputs to detected-area extension processor 309R an AND of a logical signal received from the first lightness difference detector 301R, that received from NOR device 305R, and that received from comparator 323. More specifically, a pixel which is a first feature pixel for an R signal and not an extended second feature pixel for either a B or G signal, and is high in saturation is represented by a logical signal of “1” and a pixel different therefrom is represented by a logical signal of “0” for output. A pixel of “1” in value as represented by this logical signal indicates a noise pixel. Thus by NOR device 305R and AND device 307R a first feature pixel extracted from an R signal that has not been extracted as a second feature pixel for either a G or B signal, and is high in saturation is determined as a noise pixel.
In the present embodiment if a first feature pixel extracted from an R signal is a pixel which is not extracted as a second feature pixel for either a G or B signal and is high in saturation, the pixel is determined as a noise pixel. Alternatively, the first feature pixel extracted from the R signal may be determined as a noise pixel if the first feature pixel and G and B signals positionally identical thereto have difference in lightness exceeding a predetermined value.
If detected-area extension processor 309R receives a logical signal of “1” from AND device 307R for a pixel, detected-area extension processor 309R sets a pixel that exists in a vicinity of the pixel corresponding to the “1” to a “1” to extend a noise pixel's range. This is done to provide improved precision with which a noise pixel is corrected. The noise pixel extended in range is represented by a logical signal of “1” which is in turn output to noise corrector 260.
NOR device 305G receives from each of detection result extension processors 303R, 303B a logical signal having contributed to an extended region. NOR device 305G outputs to AND device 307G a logical signal corresponding to an inversion of an OR of two received logical signals. More specifically, a pixel which is not a second feature pixel for either an R or B signal is represented by a logical signal of “1” for output and a pixel which is a second feature pixel for at least one of the signals is represented by a logical signal of “0” for output.
AND device 307G outputs to detected-area extension processor 309G an AND of a logical signal received from the first lightness difference detector 301G, that received from NOR device 305G, and that received from comparator 323. More specifically, a pixel which is a first feature pixel for a G signal and not an extended second feature pixel for either an R or B signal, and is high in saturation is represented by a logical signal of “1” and a pixel different therefrom is represented by a logical signal of “0” for output. A pixel of “1” in value as represented by this logical signal indicates a noise pixel. Thus by NOR device 305G and AND device 307G a first feature pixel extracted from a G signal that has not been extracted as a second feature pixel for either an R or B signal, and is high in saturation is determined as a noise pixel.
In the present embodiment if a first feature pixel extracted from a G signal is a pixel which is not extracted as a second feature pixel for either an R or B signal and is high in saturation, the pixel is determined as a noise pixel. Alternatively, the first feature pixel extracted from the G signal may be determined as a noise pixel if the first feature pixel and R and B signals positionally identical thereto have difference in lightness exceeding a predetermined value.
If detected-area extension processor 309G receives a logical signal of “1” from AND device 307G for a pixel, detected-area extension processor 309G sets a pixel that exists in a vicinity of the pixel corresponding to the “1” to a “1” to extend a noise pixel's range. This is done to provide improved precision with which a noise pixel is corrected. The noise pixel extended in range is represented by a: logical signal of “1” which is in turn output to noise corrector 260.
NOR device 305B receives from each of detection result extension processors 303R, 303G a logical signal having contributed to an extended region. NOR device 305B outputs to AND device 307B a logical signal corresponding to an inversion of an OR of two received logical signals. More specifically, a pixel which is not a second feature pixel for either an R or G signal is represented by a logical signal of “1” for output and a pixel which is a second feature pixel for at least one of the signals is represented by a logical signal of “0” for output.
AND device 307B outputs to detected-area extension processor 309B an AND of a logical signal received from the first lightness difference detector 301B, that received from NOR device 305B, and that received from comparator 323. More specifically, a pixel which is a first feature pixel for a B signal and not an extended second feature pixel for either an R or G signal, and is high in saturation is represented by a logical signal of “1” and a pixel different therefrom is represented by a logical signal of “0” for output. A pixel of “1” in value as represented by this logical signal indicates a noise pixel. Thus by NOR device 305B and AND device 307B a first feature pixel extracted from a B signal that has not been extracted as a second feature pixel for either an R or G signal, and is high in saturation is determined as a noise pixel.
In the present embodiment if a first feature pixel extracted from a B signal is a pixel which is not extracted as a second feature pixel for either an R or G signal and is high in saturation, the pixel is determined as a noise pixel. Alternatively, the first feature pixel extracted from the B signal may be determined as a noise pixel if the first feature pixel and R and G signals positionally identical thereto have difference in lightness exceeding a predetermined value:
If detected-area extension processor 309B receives a logical signal of “1” from AND device 307B for a pixel, detected-area extension processor 309B sets a pixel that exists in a vicinity of the pixel corresponding to the “1” to a “1” to extend a noise pixel's range. This is done to provide improved precision with which a noise pixel is corrected. The noise pixel extended in range is represented by a logical signal of “1” which is in turn output to noise corrector 260.
With reference to
Edge extractor 325R employs the
Average value calculator 326R calculates an average in lightness of pixels neighboring each pixel of the received R signal. As has been described previously, there are a plurality of edge extraction filters prepared for different sizes of edge regions. A neighboring pixel is determined by a size of an edge extraction filter used in edge extractor 325R, i.e., a size of an edge region. As such, average value calculator 326R calculates an average of neighboring pixels corresponding to an edge extraction filter used by edge extractor 326R. The calculated average value is output to comparator 327R.
Comparator 327R receives the R signal, the average value of neighboring pixels calculated for each pixel, and a threshold value Ref(V). Comparator 327R compares a difference between the lightness of the pixel and an average in lightness of pixels neighboring the edge region with threshold value Ref(V), and outputs logical signals of “1” and “0” for each pixel of the R signal for the difference that is equal to or higher than the threshold value and the difference that is smaller than the threshold value, respectively, to AND device 328R. As many logical signals are output as the number of sizes of edge regions.
AND device 328R takes an AND of the logical signal received from edge extractor 325R and that received from comparator 327R to output a logical signal.
Thus if in the first lightness difference detector 301R the difference between the lightness of an edge region extracted by an edge extraction filter and an average lightness of neighboring pixels is smaller than threshold value Ref(V) the region is not determined an edge region. A region erroneously extracted by an edge extraction filter can be prevented from being determined as an edge region, and noise can be detected with higher precision.
Note that in
Noise detection processor 259A operates so that if a pixel once determined as a noise pixel is high in lightness and so is a pixel neighboring the pixel or if a pixel determined as a noise pixel is low in lightness and so is a pixel neighboring the pixel, the pixel once determined as the noise pixel is redetermined as a non-noise pixel. If a neighboring pixel is high in lightness, noise of white color, achromatic and high in lightness, is less noticeable. Similarly, if a neighboring pixel is low in lightness, noise of black color, achromatic and low in lightness, is less noticeable. By redetermining such a pixel as a non-noise pixel, it can be prevented from being determined erroneously as a noise pixel.
Average value calculator 329R receives an R signal. For each pixel of the received R signal, average calculator 329R calculates an average value of pixels neighboring the pixel. A neighboring pixel is determined by the first feature pixel extracted by the first lightness difference detector 301R. Thus average value calculator 329R determines a neighboring pixel for each pixel for each of a plurality of sizes with the pixel serving as the center and calculates an average of such neighboring pixels. For example, it calculates an average value of neighboring pixels corresponding to an isolated first feature pixel, an average of neighboring pixels corresponding to a cluster of three first feature pixels. Hereinafter, for the sake of illustration, an isolated first feature pixel will be exemplified. Average calculator 329R outputs to minimum and maximum value calculators 331 and 333 an average value of neighboring pixels calculated for each pixel.
Similarly, average calculators 329G and 329B receive G and B signals and for each pixel calculate an average value of neighboring pixels for the G signal and that of neighboring pixels for the B signal, respectively, for output to minimum and maximum value calculators 331 and 333.
Minimum value calculator 331 determines for each pixel a minimum value of the received average values of neighboring pixels for the R, G and B signals and outputs the determined minimum value to comparator 335. Maximum value calculator 333 determines for each pixel a maximum value of the received average values of neighboring pixels for the R, G and B signals arid outputs the determined maximum value to comparator 337.
Comparator 335 receives the minimum value of the average values of the neighboring pixels for the R, G and B signals and a threshold value Ref(W) to compare the minimum value with threshold value Ref(W) for each pixel and output logical signals of “0” and “1” for the minimum value larger than threshold value Ref(W) and that equal to or smaller than threshold value Ref(W), respectively, to detected-area extension processors 309R, 309G, 309B. In other words, the average values of neighboring pixels for the R, G and B signals, respectively, are all larger than threshold value Ref(W) the logical signal of “0” is output, otherwise the logical signal of “1” is output.
Comparator 337 receives the maximum value of the average values of the neighboring pixels for the R, G and B signals and a threshold value Ref(K) to compare the maximum value with threshold value Ref(K) for each pixel and output logical signals of “0” and “1” for the maximum value smaller than threshold value Ref(K) and that equal to or larger than threshold value Ref(K), respectively, to detected-area extension processors 309R, 309G, 309B. In other words, the average values of neighboring pixels for the R, G and B signals, respectively, are all smaller than threshold value Ref(B) the logical signal of “0” is output, otherwise the logical signal of “1” is output.
AND device 307R outputs to detected-area extension processor 309R an AND of a logical signal received from the first lightness difference detector 301R and that received from NOR device 305R. More specifically, a pixel that is a first pixel feature pixel for an R signal and not an extended second feature pixel for either a B or G signal is indicated by a logical signal of “1” and other pixels are represented by a logical signal of “0” for output. Herein a pixel of “1” in value as represented by a logical signal will be referred to as a candidate pixel. More specifically, a candidate pixel is a first feature pixel extracted from an R signal which is not extracted for either a G or B signal as a second feature pixel by NOR device 305R and AND device 307R.
Detected-area extension processor 309R receives a logical signal indicating a candidate pixel by “1” and an R signal from AND device 307R, a logical signal indicating a neighboring pixel high in lightness by “0” from comparator 335, a logical signal indicating a neighboring pixel low in lightness by “0” from comparator 337, and threshold values Ref(W), Ref(K). Threshold value Ref(W) is employed to detect that a pixel value of the R signal is high in lightness, and threshold value Ref(B) is employed to detect that a pixel value of the R signal is low in lightness. Detected-area extension processor 309R effects a process, as described hereinafter, for a pixel set as “1” by a logical signal received from AND device 307R representing a candidate pixel by “1”.
(1) A value of a pixel corresponding to the R signal is compared with threshold value Ref(W) and if the former is larger than the latter a decision is made as to whether the logical signal received from comparator 335 representing a neighboring pixel high in lightness by “0” is “0”. If it is true the logical signal received from AND device 307R indicating the candidate pixel by “1” is replaced with “0”.
(2) The value of the pixel corresponding to the R signal is compared with threshold value Ref(B) and if the former is smaller than the latter a decision is made as to whether the logical signal received from comparator 337 representing a neighboring pixel high in lightness by “0” is “0”. If it is true the logical signal received from AND device 307R indicating the candidate pixel by “1” is replaced with “0”.
(3) After the (1) or (2) step a pixel set to “1” by a logical signal received from AND device 307R is a noise pixel. By setting a noise pixel's neighboring pixel to “1” the noise pixel's range is extended. This is done to allow a noise pixel to be corrected with higher precision.
Thus detected-area extension processor 309R determines that a pixel determined by NOR device 305R and AND device 307R as a candidate pixel is not a noise pixel if the pixel is high in lightness and so are those neighboring the pixel or if the pixel is low in lightness and so are those neighboring the pixel.
AND device 307G outputs to detected-area extension processor 309G an AND of a logical signal received from the first lightness difference detector 301G and that received from NOR device 305G. More specifically, a pixel that is a first pixel feature pixel for a G signal and not an extended second feature pixel for either an R or B signal is indicated by a logical signal of “1” and other pixels are represented by a logical signal of “0” for output. Herein a pixel of “1” in value as represented by a logical signal will be referred to as a candidate pixel. More specifically, a candidate pixel is a first feature pixel extracted from a G signal which is not extracted for either an R or B signal as a second feature pixel by NOR device 305G and AND device 307G.
Detected-area extension processor 309G receives a logical signal indicating a candidate pixel by “1” and a G signal from AND device 307G, a logical signal indicating a neighboring pixel high in lightness by “0” from comparator 335, a logical signal indicating a neighboring pixel low in lightness by “0” from comparator 337, and threshold values Ref(W), Ref(K). Threshold value Ref(W) is employed to detect that a pixel value of the G signal is high in lightness, and threshold value Ref(B) is employed to detect that a pixel value of the G signal is low in lightness. Detected-area extension processor 309G effects a process, as described hereinafter, for a pixel set as “1” by a logical signal received from AND device 307G representing a candidate pixel by “1”.
(1) A value of a pixel corresponding to the G signal is compared with threshold value Ref(W) and if the former is larger than the latter a decision is made as to whether the logical signal received from comparator 335 representing a neighboring pixel high in lightness by “0” is “0”. If it is true the logical signal received from AND device 307G indicating the candidate pixel by “1” is replaced with “0”.
(2) The value of the pixel corresponding to the G signal is compared with threshold value Ref(B) and if the former is smaller than the latter a decision is made as to whether the logical signal received from comparator 337 representing a neighboring pixel high in lightness by “0” is “0”. If it is true the logical signal received from AND device 307G indicating the candidate pixel by “1” is replaced with “0”.
(3) After the (1) or (2) step a pixel set to “1” by a logical signal received from AND device 307G is a noise pixel. By setting a noise pixel's neighboring pixel to “1” the noise pixel's range is extended. This is done to allow a noise pixel to be corrected with higher precision.
(4) If required, the noise pixel for the G signal is interpolated by the neighboring pixels' value and output to a subsequent stage.
Thus detected-area extension processor 309G determines that a pixel determined by NOR device 305G and AND device 307G as a candidate pixel is not a noise pixel if the pixel is high in lightness and so are those neighboring the pixel or if the pixel is low in lightness and so are those neighboring the pixel.
AND device 307B outputs to detected-area extension processor 309B an AND of a logical signal received from the first lightness difference detector 301B and that received from NOR device 305B. More specifically, a pixel that is a first pixel feature pixel for a B signal and not an extended second feature pixel for either an R or G signal is indicated by a logical signal of “1” and other pixels are represented by a logical signal of “0” for output. Herein a pixel of “1” in value as represented by a logical signal will be referred to as a candidate pixel. More specifically, a candidate pixel is a first feature pixel extracted from a B signal which is not extracted for either an R or G signal as a second feature pixel by NOR device 305B and AND device 307B.
Detected-area extension processor 309B receives a logical signal indicating a candidate pixel by “1” and a B signal from AND device 307B, a logical signal indicating a neighboring pixel high in lightness by “0” from comparator 335, a logical signal indicating a neighboring pixel low in lightness by “0” from comparator 337, and threshold values Ref(W), Ref(K). Threshold value Ref(W) is employed to detect that a pixel value of the B signal is high in lightness, and threshold value Ref(B) is employed to detect that a pixel value of the B signal is low in lightness. Detected-area extension processor 309B effects a process, as described hereinafter, for a pixel set as “1” by a logical signal received from AND device 307B representing a candidate pixel by “1”.
(1) A value of a pixel corresponding to the B signal is compared with threshold value Ref(W) and if the former is larger than the latter a decision is made as to whether the logical signal received from comparator 335 representing a neighboring pixel high in lightness by “0” is “0”. If it is true the logical signal received from AND device 307B indicating the candidate pixel by “1” is replaced with “0”.
(2) The value of the pixel corresponding to the B signal is compared with threshold value Ref(B) and if the former is smaller than the latter a decision is made as to whether the logical signal received from comparator 337 representing a neighboring pixel high in lightness by “0” is “0”. If it is true the logical signal received from AND device 307B indicating the candidate pixel by “1” is replaced with “0”.
(3) After the (1) or (2) step a pixel set to “1” by a logical signal received from AND device 307B is a noise pixel. By setting a noise pixel's neighboring pixel to “1” the noise pixel's range is extended. This is done to allow a noise pixel to be corrected with higher precision.
Thus detected-area extension processor 309B determines that a pixel determined by NOR device 305B and AND device 307B as a candidate pixel is not a noise pixel if the pixel is high in lightness and so are those neighboring the pixel or if the pixel is low in lightness and so are those neighboring the pixel.
When dust of achromatic color reflects light, the light is received by line sensors 213R, 213G, 213B at different times. The line sensors, however, should output lightness close in value.
In the second exemplary variation if of pixels detected as noise pixels, corresponding noise pixels between R, G and B signals have a large difference in lightness the detection is cancelled. The “corresponding noise” pixel is a pixel output as line sensor 213R, 213G, 213B each read light reflected by dust.
The first delay circuits 311R, 311G, 311B receive from controller 263 a direction in which platen 205 moves, and delay R, G and B signals so that the corresponding noise pixels are positionally identical. The number of lines to be delayed depends on in which direction the platen moves.
In Case with Platen Moving in Direction Opposite to that of Original
As has been described previously, a noise pixel is detected first for a B signal, then a G signal and finally for an R signal. Accordingly, a B signal of a line including a detected noise pixel is delayed until a line including a noise pixel of an R signal that corresponds to the noise pixel of the B signal is output. Furthermore, a G signal of a line including a detected noise pixel is delayed until a line including a noise pixel of an R signal that corresponds to the noise pixel of the G signal is output.
The first delay circuit 311B delays a B signal by a number of lines to be delayed as determined by the following equation (1):
B signal's number of lines to be delayed=(line interval×(system rate/platen movement rate)+line interval)×2 (1),
wherein the system rate indicates a rate at which an original is transported, and the line interval is an interval of line sensors 213R, 213G, 213B (unit: line).
The first delay circuit 311G delays a G signal by a number of lines to be delayed as determined by the following equation (2):
G signal's number of lines to be delayed=(line interval×(system rate/platen movement rate)+line interval) (2).
Note that noise's length (unit: line) is represented by the following equation (3):
Noise's length=dust's size×(system rate/platen movement rate) (3).
In Case with Platen Moving in the Same Direction as Original
As has been described previously, a noise pixel is detected first for a B signal, then a G signal and finally for an R signal. Accordingly, an R signal of a line including a detected noise pixel is delayed until a line including a noise pixel of a B signal that corresponds to the noise pixel of the R signal is output. Furthermore, a G signal of a line including a detected noise pixel is delayed until a line including a noise pixel of a B signal that corresponds to the noise pixel of the G signal is output.
The first delay circuit 311R delays an R signal by a number of lines to be delayed as determined by the following equation (4):
R signal's number of lines to be delayed=(line interval×(system rate/platen movement rate)−line interval)×2 (4).
The first delay circuit 311G delays a G signal by a number of lines to be delayed as determined by the following equation (5):
G signal's number of lines to be delayed=(line interval×(system rate/platen movement rate)−line interval) (5).
The second delay circuits 315R, 315G, 315B delay logical signals received from AND circuits 307R, 307G, 307B, respectively. The second delay circuits 315R, 315G, 315B delay the same number of lines as the first delay circuits 311R, 311G, 311B.
Lightness comparison processor 313 receives delayed R, G and B signals from the first delay circuits 311R, 311 G, 311B, and threshold value Ref2. Lightness comparison processor 313 outputs to detection result canceller 317 a logical signal of “1” if a corresponding pixel's maximal and minimal values in lightness has a difference of at least threshold value Ref2, otherwise lightness comparison processor 313 outputs a logical signal of “0” to detected-area extension processors 309R, 309G, 309B. A logical signal with this value being “1” is referred to as a cancel signal.
AND device 307R outputs to detected-area extension processor 309R an AND of a logical signal received from the first lightness difference detector 301R and that received from NOR device 305R. More specifically, a pixel which is a first feature pixel for an R signal and not an extended second feature pixel for either a B or G signal is represented by a logical signal of “1” and a pixel different therefrom represented by a logical signal of “0” for output. Herein a pixel of “1” in value by this logical signal is referred to as a candidate pixel.
AND device 307G outputs to detected-area extension processor 309G an AND of a logical signal received from the first lightness difference detector 301G and that received from NOR device 305G. More specifically, a pixel which is a first feature pixel for a G signal and not an extended second feature pixel for either a R or B signal is represented by a logical signal of “1” and a pixel different therefrom represented by a logical signal of “0” for output. Herein a pixel of “1” in value by this logical signal is referred to as a candidate pixel.
AND device 307B outputs to detected-area extension processor 309B an AND of a logical signal received from the first lightness difference detector 301B and that received from NOR device 305B. More specifically, a pixel which is a first feature pixel for a B signal and not an extended second feature pixel for either an R or G signal is represented by a logical signal of “1” and a pixel different therefrom represented by a logical signal of “0” for output. Herein a pixel of “1” in value by this logical signal is referred to as a candidate pixel.
Detected-area extension processors 309R, 309G, 309B receive a logical signal representing a candidate pixel by “1” from the second delay circuits 315R, 315G, 315B, and a logical signal including a cancellation signal from lightness comparison processor 313. Detected-area extension processors 309R, 309G, 309B effect a process, as described hereinafter, for a candidate pixel for a logical signal received from each of the second delay circuits 315R, 315G, 315B representing a candidate pixel by “1”.
(1) A pixel is set to “0” when a corresponding logical signal received from lightness comparison processor 313 is a cancel signal of “1”. More specifically, a candidate pixel is determined for each of R, G and B signals and if corresponding pixels for the other signals have difference in lightness exceeding a predetermined value, the pixel is not determined as a noise pixel. A noise pixel can thus be detected with higher precision.
(2) By setting to “1” a pixel neighboring a pixel set to “1” by a logical signal representing a noise pixel by “1”, the noise pixel's range is extended. This is done to allow noise pixel to be corrected with higher precision.
Thus detected-area extension processor 309R determines that a pixel determined by NOR device 305R and AND device 307R as a candidate pixel is a noise pixel if a difference between maximum and minimum values of the candidate pixel's lightness and those of corresponding candidate pixels for G and B signals does not exceed threshold value Ref(2).
Detected-area extension processor 309G determines that a pixel determined by NOR device 305G and AND device 307G as a candidate pixel is a noise pixel if a difference between maximum and minimum values of the candidate pixel's lightness and those of corresponding candidate pixels for R and B signals does not exceed threshold value Ref(2). Detected-area extension processor 309B determines that a pixel determined by NOR device 305B and AND device 307B as a candidate pixel is a noise pixel if a difference between maximum and minimum values of the candidate pixel's lightness and those of corresponding candidate pixels for R and G signals does not exceed threshold value Ref(2).
Note that while in the present embodiment image reading apparatus 10 is provided with the second lightness difference detectors 302R,302G, 302B, the apparatus may dispense with the detectors. In that case, the first lightness difference detectors 301R, 301 G, 301B output to detection result extension processors 303R, 303G, 303B a logical signal representing the first feature pixel by “1” and it is extended, and a pixel which is a first feature pixel unextended for the other data is detected as a noise pixel.
Note that while the present embodiment has been described with reader 213 fixed to main body 103 by way of example, alternatively, the present invention is also applicable to moving reader 213 for scanning. For example, the upper restraint plate is of monochromatic color of white or black, and reader 213 or the source of light 206, reflector mirror 209 and reflector member 208 are moved in the sub scanning direction for scanning. During the scan, platen 205 can be oscillated in the sub scanning direction to detect dust adhering on platen 205.
Although the present invention has been described and illustrated in detail, it is clearly understood that the same is by way of illustration and example only and is not to be taken by way of limitation, the spirit and scope of the present invention being limited only by the terms of the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
2004-286215 | Sep 2004 | JP | national |
This application is a divisional application of U.S. patent application Ser. No. 11/019,181 filed Dec. 23, 2004 which claims the benefit of priority under 35 U.S.C. 119(a) on Japanese Patent Application No. 2004-286215 with the Japan Patent Office on Sep. 30, 2004, the entire content of which is hereby incorporated by reference.
Number | Date | Country | |
---|---|---|---|
Parent | 11019181 | Dec 2004 | US |
Child | 12686173 | US |