JP2003069824A - Image luminance correcting device, image reader, image forming device and program - Google Patents

Image luminance correcting device, image reader, image forming device and program

Info

Publication number
JP2003069824A
JP2003069824A JP2001260397A JP2001260397A JP2003069824A JP 2003069824 A JP2003069824 A JP 2003069824A JP 2001260397 A JP2001260397 A JP 2001260397A JP 2001260397 A JP2001260397 A JP 2001260397A JP 2003069824 A JP2003069824 A JP 2003069824A
Authority
JP
Japan
Prior art keywords
image
brightness
area
value
pixel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2001260397A
Other languages
Japanese (ja)
Other versions
JP4111697B2 (en
Inventor
Sadafumi Araki
禎史 荒木
Umikatsu Seki
海克 関
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2001260397A priority Critical patent/JP4111697B2/en
Publication of JP2003069824A publication Critical patent/JP2003069824A/en
Application granted granted Critical
Publication of JP4111697B2 publication Critical patent/JP4111697B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Optical Systems Of Projection Type Copiers (AREA)
  • Control Of Exposure In Printing And Copying (AREA)
  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an image luminance correcting device capable of preventing black lines and light shadows from occurring in an image that has been subjected to luminance correction. SOLUTION: A scanned image is divided into a plurality of blocks (step S4), the luminance value of a pixel with the highest luminance value among pixels included in each block is regarded as a background value of the each block (step S4), and luminance correction processing is applied to the scanned image on the basis of the background value of the each block (step S5 to S8). According to this, if the lighting of an image reading means is not uniform and even if the way of placing a book document on contact glass is not uniform (if the way of a page floating differs between the upper edge and the lower edge of the page), it is possible to prevent black lines and light shadows from occurring in the image that has been subjected to luminance correction, because a background value is detected within a local area to perform luminance correction compared with a case where the scanned image is subjected to luminance correction in a band-shape on the basis of a background value of a portion of the scanned image.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、画像輝度補正装
置、画像読取装置、画像形成装置及びプログラムに関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image brightness correction device, an image reading device, an image forming device and a program.

【0002】[0002]

【従来の技術】フラッドベットスキャナを用いて読み取
る原稿の多くはシート状の原稿であり、コンタクトガラ
ス上に開閉自在の圧板を設け、コンタクトガラス上に原
稿を載置した後に圧板を閉じて原稿をスキャンするよう
にしている。しかし、原稿としてはシート状のものに限
られず、ブック原稿(本、冊子など)も原稿として扱わ
れることがあり、そのような場合にもコンタクトガラス
上にブック原稿を載置し、原稿をスキャンすることにな
る。
2. Description of the Related Art Most of originals read by using a flood bed scanner are sheet-like originals. An openable / closable pressure plate is provided on the contact glass, and after placing the original on the contact glass, the original is closed by the pressure plate. I try to scan. However, the originals are not limited to sheet-like ones, and book originals (books, booklets, etc.) may also be handled as originals. In such a case, place the book original on the contact glass and scan the original. Will be done.

【0003】ところが、原稿としてブック原稿を用いた
場合には、図16に示すように、ブック原稿100のペ
ージ綴じ部101がコンタクトガラス102から浮き上
がってしまう。このようにブック原稿100のページ綴
じ部101がコンタクトガラス102から浮き上がって
しまった場合には、ページ綴じ部101が焦点面から離
れてしまうため、浮き上がった部分のスキャン画像に
は、画像歪み、影、文字ぼけなどの画像劣化が発生す
る。劣化した画像のページ綴じ部101は読みにくく、
OCRにより文字認識処理を行うときの認識率が著しく
低下する。特に、厚手製本ではその割合が高く、また、
ブック原稿100のページ綴じ部101を焦点面から離
れないように加圧作業した場合には、ブック原稿100
自体を破損してしまうこともある。
However, when a book original is used as the original, the page binding portion 101 of the book original 100 is lifted up from the contact glass 102 as shown in FIG. When the page binding portion 101 of the book original 100 floats above the contact glass 102 in this way, the page binding portion 101 moves away from the focal plane, so that the scan image of the floating portion has image distortion and shadow. , Image deterioration such as character blurring occurs. The page binding section 101 of the deteriorated image is difficult to read,
The recognition rate when performing character recognition processing by OCR is significantly reduced. Especially in thick binding, the ratio is high,
When the page binding portion 101 of the book original 100 is pressed so as not to be separated from the focal plane, the book original 100
It may damage itself.

【0004】このような問題を解決すべく、画像の濃度
情報から物体の3次元形状を推定する方法を用いて、画
像の歪みを補正する方法が提案されている。このような
画像の濃度情報から物体の3次元形状を推定する方法と
しては、T. Wada, H. Uchida and T. Matsuyama, “Sha
pe from Shading with Interreflections under a Prox
imal Light Source: Distortion-Free Copying of an U
nfolded Book”, International Journal Computer Vis
ion 24(2), 125-135(1997)に記載されているShape from
Shadingと呼ばれる方法が代表的な例である。
In order to solve such a problem, there has been proposed a method of correcting image distortion by using a method of estimating a three-dimensional shape of an object from density information of the image. As a method for estimating the three-dimensional shape of an object from such density information of an image, T. Wada, H. Uchida and T. Matsuyama, “Sha
pe from Shading with Interreflections under a Prox
imal Light Source: Distortion-Free Copying of an U
nfolded Book ”, International Journal Computer Vis
Ion 24 (2), 125-135 (1997) Shape from
The method called Shading is a typical example.

【0005】また、特開平5-161002号公報には、三角測
量方式により書籍の形状を測定し、歪みを補正する方法
が提案されている。
Further, Japanese Patent Laid-Open No. 5-160002 proposes a method of measuring the shape of a book by a triangulation method and correcting the distortion.

【0006】さらに、特開平11-41455号公報には、読み
取りスキャン画像のページ外形の形状を用いて書籍表面
の3次元形状を推定する方法が提案されている。
Further, Japanese Laid-Open Patent Publication No. 11-41455 proposes a method of estimating the three-dimensional shape of the surface of a book using the shape of the page outline of the read scan image.

【0007】しかしながら、前述したShape from Shadi
ngと呼ばれる方法によれば、計算量が多く、歪み補正処
理の計算時間が長いので、実用化は困難である。
However, the above-mentioned Shape from Shadi
According to the method called ng, the amount of calculation is large and the calculation time of the distortion correction processing is long, so that it is difficult to put it into practical use.

【0008】また、特開平5-161002号公報に記載されて
いる方法によれば、三角測量方式により書籍の形状を測
定するための特別な形状計測装置が必要になるため、適
当ではない。
Further, the method disclosed in Japanese Patent Laid-Open No. 5-160002 is not suitable because a special shape measuring device for measuring the shape of a book by the triangulation method is required.

【0009】さらに、特開平11-41455号公報に記載され
ている方法によれば、少ない計算量で歪み補正ができる
が、ページ外形が画像中に完全に収まりきれずに途中で
切れているような場合には有効な補正ができない。
Further, according to the method disclosed in Japanese Patent Application Laid-Open No. 11-41455, distortion correction can be performed with a small amount of calculation, but it seems that the outer shape of the page is not completely contained in the image and is cut off on the way. In that case, effective correction cannot be performed.

【0010】そこで、近年においては、ページ外形が途
中で切れているような読み取りスキャン画像であって
も、その歪みを少ない計算量で有効に補正することがで
きる画像歪み補正装置が提案されている。
Therefore, in recent years, there has been proposed an image distortion correction device which can effectively correct the distortion of a read scan image whose page outline is cut off in the middle with a small amount of calculation. .

【0011】[0011]

【発明が解決しようとする課題】しかしながら、上述し
たようなページ外形が途中で切れているような読み取り
スキャン画像であっても、その歪みを少ない計算量で有
効に補正することができる画像歪み補正装置によれば、
ページ外形ではなく、文字行情報および罫線情報を用い
て画像の歪みを補正するようにしているが、まだ、完全
とはいえず、解決されねばならない課題が存在する。
However, even in the case of the read scan image in which the page outline is cut off in the middle as described above, the image distortion can be effectively corrected with a small calculation amount. According to the device
Although the image distortion is corrected by using the character line information and ruled line information instead of the page outline, it is still not perfect and there is a problem to be solved.

【0012】例えば、従来においては、スキャン画像の
一部分の地肌値に基づいてスキャン画像を帯状に輝度補
正することによりブック原稿のページ綴じ部の輝度補正
処理を行うようにしているが、スキャナの照明が均一で
ない場合やブック原稿のコンタクトガラスへの載せ方が
不均一な場合(ページの上端と下端とでコンタクトガラ
スからの浮き上がり方が異なる場合)に、輝度補正後の
画像に黒い筋や薄い影が生じてしまうことがある。
For example, in the prior art, the brightness correction processing of the page binding portion of the book document is performed by correcting the brightness of the scan image in a band shape based on the background value of a part of the scan image. Unevenness or uneven placement of the book document on the contact glass (when the top and bottom edges of the page differ from the contact glass), black lines and light shadows appear on the image after brightness correction. May occur.

【0013】本発明の目的は、輝度補正後の画像に黒い
筋や薄い影が生じてしまうのを防止することができる画
像輝度補正装置、画像読取装置、画像形成装置及びプロ
グラムを提供することである。
An object of the present invention is to provide an image brightness correction device, an image reading device, an image forming device and a program capable of preventing black stripes and light shadows from appearing in an image after brightness correction. is there.

【0014】本発明の目的は、スキャン画像の写真領域
に対して輝度補正を施した場合に、黒い写真領域が白っ
ぽくなるのを防止することができる画像輝度補正装置、
画像読取装置、画像形成装置及びプログラムを提供する
ことである。
An object of the present invention is to provide an image brightness correction apparatus capable of preventing a black photographic area from becoming whitish when brightness correction is applied to a photographic area of a scanned image,
An image reading device, an image forming device, and a program are provided.

【0015】[0015]

【課題を解決するための手段】請求項1記載の発明の画
像輝度補正装置は、コンタクトガラス上に載置されたブ
ック原稿を画像読取手段により読み取ったスキャン画像
の輝度を補正する画像輝度補正装置において、前記スキ
ャン画像を複数のブロックに分割するブロック分割手段
と、このブロック分割手段により分割された前記各ブロ
ックに含まれる画素の中で最も輝度値の高い画素をそれ
ぞれ選択し、その画素の輝度値を当該各ブロックの地肌
値とみなして検出する地肌値検出手段と、この地肌値検
出手段により前記ブロック毎に検出された前記地肌値に
基づき、前記スキャン画像に対して輝度補正処理を施す
輝度補正手段と、を備える。
An image brightness correction apparatus according to the present invention is an image brightness correction apparatus for correcting the brightness of a scan image obtained by reading a book document placed on a contact glass by an image reading means. In the block division means for dividing the scan image into a plurality of blocks, and the pixel having the highest luminance value among the pixels included in each block divided by the block division means is selected, and the luminance of the pixel is selected. A background value detecting unit that detects a value by regarding it as a background value of each block, and a brightness that performs a brightness correction process on the scan image based on the background value detected for each block by the background value detecting unit. And a correction unit.

【0016】したがって、スキャン画像が複数のブロッ
クに分割され、各ブロックに含まれる画素の中で最も輝
度値の高い画素の輝度値が当該各ブロックの地肌値とみ
なされ、この各ブロックの地肌値に基づいてスキャン画
像に対する輝度補正処理が施される。これにより、画像
読取手段の照明が均一でない場合やブック原稿のコンタ
クトガラスへの載せ方が不均一な場合(ページの上端と
下端とでコンタクトガラスからの浮き上がり方が異なる
場合)であっても、スキャン画像の一部分の地肌値に基
づいてスキャン画像を帯状に輝度補正する場合に比べて
局所的な範囲で地肌値を検出して輝度補正するので、輝
度補正後の画像に黒い筋や薄い影が生じてしまうのを防
止することが可能になる。
Therefore, the scan image is divided into a plurality of blocks, the luminance value of the pixel having the highest luminance value among the pixels included in each block is regarded as the background value of each block, and the background value of each block is determined. The brightness correction processing is performed on the scan image based on the. As a result, even if the illumination of the image reading unit is not uniform or the book document is placed unevenly on the contact glass (when the upper edge and the lower edge of the page differ from the contact glass), Compared with the case where brightness correction is performed on the scanned image in a strip shape based on the background value of a part of the scanned image, the background value is detected and the brightness is corrected in a local range, so black streaks and light shadows appear in the image after the brightness correction. It becomes possible to prevent the occurrence.

【0017】請求項2記載の発明は、請求項1記載の画
像輝度補正装置において、前記輝度補正手段は、前記各
ブロックの地肌値を各ブロック間で平滑化し、平滑後の
地肌値に基づいて前記スキャン画像の輝度を補正する。
According to a second aspect of the present invention, in the image luminance correcting apparatus according to the first aspect, the luminance correcting means smoothes the background value of each block between the blocks, and based on the smoothed background value. The brightness of the scan image is corrected.

【0018】したがって、ノイズの影響を抑制すること
が可能になる。
Therefore, it becomes possible to suppress the influence of noise.

【0019】請求項3記載の発明は、請求項1または2
記載の画像輝度補正装置において、前記輝度補正手段
は、隣接する4ブロックの各地肌値を基に補間処理を行
って求めた前記スキャン画像の画素毎の地肌値に基づ
き、前記スキャン画像の輝度を補正する。
The invention according to claim 3 is the invention according to claim 1 or 2.
In the image brightness correction device described above, the brightness correction means determines the brightness of the scan image based on the background value for each pixel of the scan image obtained by performing an interpolation process based on the background values of four adjacent blocks. to correct.

【0020】したがって、ブロック毎の地肌値をそのま
ま利用して輝度補正した場合に比べ、ブロックとブロッ
クとの間に輝度の境目が生じることがないので、ブロッ
ク歪みの発生を防止することが可能になる。
Therefore, as compared with the case where the background value of each block is used as it is for the brightness correction, the boundary of the brightness does not occur between the blocks, so that the block distortion can be prevented. Become.

【0021】請求項4記載の発明は、請求項3記載の画
像輝度補正装置において、前記輝度補正手段は、補正す
る前の各画素(x,y)の輝度値をI(x,y)、補間
処理を行って求められた前記スキャン画像の各画素
(x,y)の地肌値をbase(x,y)とした場合に、下
記の式により、 g(x,y)=I(x,y)×(指定輝度値/base
(x,y)) 各画素(x,y)の補正輝度値g(x,y)を求めて前
記スキャン画像の輝度を補正する。
According to a fourth aspect of the present invention, in the image luminance correction apparatus according to the third aspect, the luminance correction means sets the luminance value of each pixel (x, y) before correction to I (x, y), When the background value of each pixel (x, y) of the scan image obtained by performing the interpolation process is base (x, y), g (x, y) = I (x, y) x (specified brightness value / base
(X, y)) The corrected brightness value g (x, y) of each pixel (x, y) is obtained to correct the brightness of the scan image.

【0022】したがって、補正輝度値が容易に求めら
れ、スキャン画像の本来の地肌の濃さに合わせた輝度補
正を確実に行うことが可能になる。
Therefore, the corrected luminance value can be easily obtained, and the luminance correction can be surely performed according to the original background darkness of the scanned image.

【0023】請求項5記載の発明は、請求項1ないし4
のいずれか一記載の画像輝度補正装置において、前記ス
キャン画像の写真領域と非写真領域とを判別する写真領
域判別手段と、この写真領域判別手段により前記写真領
域が判別された場合、前記スキャン画像の当該写真領域
を含む部分を複数の帯状領域に分割する帯状分割手段
と、この帯状分割手段により分割された前記各帯状領域
に含まれる前記非写真領域中の画素の中で最も輝度値の
高い画素をそれぞれ選択し、その画素の輝度値を当該帯
状領域の地肌値とみなして検出する帯状領域地肌値検出
手段と、この帯状領域地肌値検出手段により前記帯状領
域毎に検出された前記地肌値に基づき、前記写真領域に
対して輝度補正処理を施す写真領域輝度補正手段と、を
備える。
The invention according to claim 5 is the same as claims 1 to 4.
In the image brightness correction device according to any one of the above, a photographic region discriminating unit that discriminates between a photographic region and a non-photographic region of the scanned image, and if the photographic region is discriminated by the photographic region determining unit, the scanned image A strip-shaped dividing unit that divides a portion including the photographic region into a plurality of strip-shaped regions, and the highest luminance value among the pixels in the non-photographic region included in each of the strip-shaped regions divided by the strip-shaped dividing unit. A strip-shaped area background value detecting unit that detects each pixel by selecting the luminance value of the pixel as the background value of the belt-shaped area, and the background value detected for each belt-shaped area by the belt-shaped area background value detecting unit. Based on the above, a photo area brightness correction means for performing brightness correction processing on the photo area is provided.

【0024】したがって、スキャン画像の写真領域が存
在する場合には、スキャン画像の当該写真領域を含む部
分が複数の帯状領域に分割され、各帯状領域に含まれる
非写真領域中の画素の中で最も輝度値の高い画素の輝度
値が当該各帯状領域の地肌値とみなされ、この各帯状領
域の地肌値に基づいて写真領域に対する輝度補正処理が
施される。これにより、前述したような分割した各ブロ
ックの地肌値に基づく輝度補正処理を写真領域と非写真
領域とに対してまとめて施した場合には、黒い写真領域
が白っぽくなる場合があるので、写真領域と非写真領域
とを分けて異なる輝度補正処理を行うことにより、これ
を防止することが可能になる。
Therefore, when the photographed area of the scanned image exists, the portion of the scanned image including the photographed area is divided into a plurality of strip-shaped areas, and among the pixels in the non-photographed area included in each strip-shaped area. The luminance value of the pixel having the highest luminance value is regarded as the background value of each strip-shaped area, and the luminance correction process is performed on the photographic area based on the background value of each strip-shaped area. As a result, when the brightness correction processing based on the background value of each divided block as described above is collectively applied to the photo area and the non-photo area, the black photo area may become whitish. This can be prevented by dividing the area and the non-photographic area and performing different brightness correction processing.

【0025】請求項6記載の発明は、請求項5記載の画
像輝度補正装置において、前記写真領域輝度補正手段
は、前記各帯状領域の地肌値を各帯状領域間で平滑化
し、平滑後の地肌値に基づいて前記写真領域の輝度を補
正する。
According to a sixth aspect of the present invention, in the image luminance correcting apparatus according to the fifth aspect, the photographic area luminance correcting means smoothes the background value of each of the strip areas between the strip areas, and the smoothed background The brightness of the photo area is corrected based on the value.

【0026】したがって、ノイズの影響を抑制すること
が可能になる。
Therefore, the influence of noise can be suppressed.

【0027】請求項7記載の発明は、請求項5または6
記載の画像輝度補正装置において、前記写真領域輝度補
正手段は、隣接する前記帯状領域の各地肌値を基に補間
処理を行って求めた前記帯状領域の画素毎の地肌値に基
づき、前記写真領域の輝度を補正する。
The invention according to claim 7 is the invention according to claim 5 or 6.
In the image brightness correction device described, the photographic area brightness correction means, based on the background value for each pixel of the band-shaped area obtained by performing an interpolation process based on the skin value of each adjacent band-shaped area, the photographic area Correct the brightness of.

【0028】したがって、帯状領域毎の地肌値をそのま
ま利用して輝度補正した場合に比べ、帯状領域と帯状領
域との間に輝度の境目が生じることがないので、帯状領
域歪みの発生を防止することが可能になる。
Therefore, as compared with the case where the background value of each strip-shaped area is used as it is for the brightness correction, a luminance boundary does not occur between the strip-shaped areas, so that the distortion of the strip-shaped area is prevented. It will be possible.

【0029】請求項8記載の発明は、請求項7記載の画
像輝度補正装置において、前記写真領域輝度補正手段
は、補正する前の前記写真領域の各画素(x,y)の輝
度値をI(x,y)、補間処理を行って求められた前記
帯状領域の各画素(x,y)の地肌値をbase(x,y)
とした場合に、下記の式により、 g(x,y)=I(x,y)×(指定輝度値/base
(x,y)) 前記写真領域の各画素(x,y)の補正輝度値g(x,
y)を求めて前記写真領域の輝度を補正する。
According to an eighth aspect of the present invention, in the image luminance correcting apparatus according to the seventh aspect, the photograph area luminance correcting means sets the luminance value of each pixel (x, y) in the photograph area before correction to I. (X, y), the background value of each pixel (x, y) of the band-shaped area obtained by performing the interpolation processing is base (x, y)
In this case, g (x, y) = I (x, y) × (designated luminance value / base
(X, y)) The corrected luminance value g (x, y of each pixel (x, y) in the photograph area
y) is obtained to correct the brightness of the photographic area.

【0030】したがって、補正輝度値が容易に求めら
れ、スキャン画像の本来の地肌の濃さに合わせた写真領
域の輝度補正を確実に行うことが可能になる。
Therefore, the corrected brightness value can be easily obtained, and the brightness of the photographic area can be surely corrected in accordance with the original background darkness of the scanned image.

【0031】請求項9記載の発明の画像読取装置は、原
稿画像を読み取る画像読取手段と、この画像読取手段に
より読み取られたスキャン画像の輝度の補正を行う請求
項1ないし8の何れか一記載の画像輝度補正装置と、を
備える。
An image reading apparatus according to a ninth aspect of the present invention is an image reading apparatus for reading an original image, and the brightness of a scan image read by the image reading section is corrected. Image brightness correction device.

【0032】したがって、請求項1ないし8の何れか一
記載の発明と同様の作用を奏する画像読取装置が得られ
る。
Therefore, it is possible to obtain an image reading apparatus having the same operation as the invention according to any one of claims 1 to 8.

【0033】請求項10記載の発明の画像形成装置は、
原稿画像を読み取る画像読取手段と、この画像読取手段
により読み取られたスキャン画像の輝度の補正を行う請
求項1ないし8の何れか一記載の画像輝度補正装置と、
この画像輝度補正装置から出力される画像データに基づ
いた画像を用紙上に印刷する画像印刷装置と、を備え
る。
An image forming apparatus according to the invention of claim 10 is
9. An image reading unit for reading an original image, and an image brightness correction device according to claim 1, which corrects the brightness of a scan image read by the image reading unit.
An image printing device that prints an image based on image data output from the image brightness correction device on a sheet.

【0034】したがって、請求項1ないし8の何れか一
記載の発明と同様の作用を奏する画像形成装置が得られ
る。
Therefore, it is possible to obtain an image forming apparatus having the same operation as that of the invention according to any one of claims 1 to 8.

【0035】請求項11記載の発明のプログラムは、コ
ンタクトガラス上に載置されたブック原稿を画像読取手
段により読み取ったスキャン画像の輝度補正をコンピュ
ータに実行させるプログラムであって、前記コンピュー
タに、前記スキャン画像を複数のブロックに分割するブ
ロック分割機能と、このブロック分割機能により分割さ
れた前記各ブロックに含まれる画素の中で最も輝度値の
高い画素をそれぞれ選択し、その画素の輝度値を当該各
ブロックの地肌値とみなして検出する地肌値検出機能
と、この地肌値検出機能により前記ブロック毎に検出さ
れた前記地肌値に基づき、前記スキャン画像に対して輝
度補正処理を施す輝度補正機能と、を実行させる。
The program according to the invention of claim 11 is a program for causing a computer to execute brightness correction of a scan image obtained by reading a book document placed on a contact glass by an image reading means. A block division function for dividing a scan image into a plurality of blocks, and a pixel having the highest luminance value among the pixels included in each block divided by the block division function is selected, and the luminance value of the pixel is A background value detection function for detecting the background value of each block and a brightness correction function for performing a brightness correction process on the scan image based on the background value detected for each block by the background value detection function. , To be executed.

【0036】したがって、スキャン画像が複数のブロッ
クに分割され、各ブロックに含まれる画素の中で最も輝
度値の高い画素の輝度値が当該各ブロックの地肌値とみ
なされ、この各ブロックの地肌値に基づいてスキャン画
像に対する輝度補正処理が施される。これにより、画像
読取手段の照明が均一でない場合やブック原稿のコンタ
クトガラスへの載せ方が不均一な場合(ページの上端と
下端とでコンタクトガラスからの浮き上がり方が異なる
場合)であっても、スキャン画像の一部分の地肌値に基
づいてスキャン画像を帯状に輝度補正する場合に比べて
局所的な範囲で地肌値を検出して輝度補正するので、輝
度補正後の画像に黒い筋や薄い影が生じてしまうのを防
止することが可能になる。
Therefore, the scan image is divided into a plurality of blocks, the luminance value of the pixel having the highest luminance value among the pixels included in each block is regarded as the background value of each block, and the background value of each block is determined. The brightness correction processing is performed on the scan image based on the. As a result, even if the illumination of the image reading unit is not uniform or the book document is placed unevenly on the contact glass (when the upper edge and the lower edge of the page differ from the contact glass), Compared with the case where brightness correction is performed on the scanned image in a strip shape based on the background value of a part of the scanned image, the background value is detected and the brightness is corrected in a local range, so black streaks and light shadows appear in the image after the brightness correction. It becomes possible to prevent the occurrence.

【0037】請求項12記載の発明は、請求項11記載
のプログラムにおいて、前記輝度補正機能は、前記各ブ
ロックの地肌値を各ブロック間で平滑化し、平滑後の地
肌値に基づいて前記スキャン画像の輝度を補正する。
According to a twelfth aspect of the present invention, in the program according to the eleventh aspect, the brightness correction function smoothes the background value of each block between the blocks, and the scanned image is based on the smoothed background value. Correct the brightness of.

【0038】したがって、ノイズの影響を抑制すること
が可能になる。
Therefore, it becomes possible to suppress the influence of noise.

【0039】請求項13記載の発明は、請求項11また
は12記載のプログラムにおいて、前記輝度補正機能
は、隣接する4ブロックの各地肌値を基に補間処理を行
って求めた前記スキャン画像の画素毎の地肌値に基づ
き、前記スキャン画像の輝度を補正する。
According to a thirteenth aspect of the present invention, in the program according to the eleventh or twelfth aspect, the brightness correction function performs the interpolation processing based on the local skin values of four adjacent blocks to obtain the pixels of the scan image. The brightness of the scan image is corrected based on the background value for each.

【0040】したがって、ブロック毎の地肌値をそのま
ま利用して輝度補正した場合に比べ、ブロックとブロッ
クとの間に輝度の境目が生じることがないので、ブロッ
ク歪みの発生を防止することが可能になる。
Therefore, as compared with the case where the background value of each block is used as it is for the brightness correction, the boundary of the brightness does not occur between the blocks, so that the block distortion can be prevented. Become.

【0041】請求項14記載の発明は、請求項13記載
のプログラムにおいて、前記輝度補正機能は、補正する
前の各画素(x,y)の輝度値をI(x,y)、補間処
理を行って求められた前記スキャン画像の各画素(x,
y)の地肌値をbase(x,y)とした場合に、下記の式
により、 g(x,y)=I(x,y)×(指定輝度値/base
(x,y)) 各画素(x,y)の補正輝度値g(x,y)を求めて前
記スキャン画像の輝度を補正する。
According to a fourteenth aspect of the present invention, in the program according to the thirteenth aspect, the brightness correction function is I (x, y) for the brightness value of each pixel (x, y) before correction, and interpolation processing is performed. Each pixel (x,
When the background value of y) is base (x, y), g (x, y) = I (x, y) × (designated luminance value / base
(X, y)) The corrected brightness value g (x, y) of each pixel (x, y) is obtained to correct the brightness of the scan image.

【0042】したがって、補正輝度値が容易に求めら
れ、スキャン画像の本来の地肌の濃さに合わせた輝度補
正を確実に行うことが可能になる。
Therefore, the corrected luminance value can be easily obtained, and it becomes possible to surely perform the luminance correction according to the original background darkness of the scanned image.

【0043】請求項15記載の発明は、請求項11ない
し14のいずれか一記載のプログラムにおいて、前記ス
キャン画像の写真領域と非写真領域とを判別する写真領
域判別機能と、この写真領域判別機能により前記写真領
域が判別された場合、前記スキャン画像の当該写真領域
を含む部分を複数の帯状領域に分割する帯状分割機能
と、この帯状分割機能により分割された前記各帯状領域
に含まれる前記非写真領域中の画素の中で最も輝度値の
高い画素をそれぞれ選択し、その画素の輝度値を当該帯
状領域の地肌値とみなして検出する帯状領域地肌値検出
機能と、この帯状領域地肌値検出機能により前記帯状領
域毎に検出された前記地肌値に基づき、前記写真領域に
対して輝度補正処理を施す写真領域輝度補正機能と、を
備える。
According to a fifteenth aspect of the present invention, in the program according to any one of the eleventh to fourteenth aspects, a photographic area discriminating function for discriminating between a photographic area and a non-photographic area of the scan image, and this photographic area discriminating function. When the photographic region is determined by, the strip-shaped dividing function that divides the portion including the photo region of the scan image into a plurality of strip-shaped regions, and the non-strips included in each strip-shaped region divided by the strip-shaped dividing function. A band-shaped area background value detection function that selects the pixel with the highest brightness value among the pixels in the photo area and regards the brightness value of that pixel as the background value for the band-shaped area, and this band-shaped area background value detection A photographic area brightness correction function for performing brightness correction processing on the photographic area based on the background value detected for each of the strip areas by the function.

【0044】したがって、スキャン画像の写真領域が存
在する場合には、スキャン画像の当該写真領域を含む部
分が複数の帯状領域に分割され、各帯状領域に含まれる
非写真領域中の画素の中で最も輝度値の高い画素の輝度
値が当該各帯状領域の地肌値とみなされ、この各帯状領
域の地肌値に基づいて写真領域に対する輝度補正処理が
施される。これにより、前述したような分割した各ブロ
ックの地肌値に基づく輝度補正処理を写真領域と非写真
領域とに対してまとめて施した場合には、黒い写真領域
が白っぽくなる場合があるので、写真領域と非写真領域
とを分けて異なる輝度補正処理を行うことにより、これ
を防止することが可能になる。
Therefore, when the photographed area of the scanned image exists, the portion of the scanned image including the photographed area is divided into a plurality of strip-shaped areas, and among the pixels in the non-photographed area included in each strip-shaped area. The luminance value of the pixel having the highest luminance value is regarded as the background value of each strip-shaped area, and the luminance correction process is performed on the photographic area based on the background value of each strip-shaped area. As a result, when the brightness correction processing based on the background value of each divided block as described above is collectively applied to the photo area and the non-photo area, the black photo area may become whitish. This can be prevented by dividing the area and the non-photographic area and performing different brightness correction processing.

【0045】請求項16記載の発明は、請求項15記載
のプログラムにおいて、前記写真領域輝度補正機能は、
前記各帯状領域の地肌値を各帯状領域間で平滑化し、平
滑後の地肌値に基づいて前記写真領域の輝度を補正す
る。
According to a sixteenth aspect of the present invention, in the program according to the fifteenth aspect, the photograph area brightness correction function is:
The background value of each strip area is smoothed between the strip areas, and the brightness of the photographic area is corrected based on the smoothed background value.

【0046】したがって、ノイズの影響を抑制すること
が可能になる。
Therefore, it becomes possible to suppress the influence of noise.

【0047】請求項17記載の発明は、請求項15また
は16記載のプログラムにおいて、前記写真領域輝度補
正機能は、隣接する前記帯状領域の各地肌値を基に補間
処理を行って求めた前記帯状領域の画素毎の地肌値に基
づき、前記写真領域の輝度を補正する。
According to a seventeenth aspect of the present invention, in the program according to the fifteenth or sixteenth aspect, the photographic area luminance correction function performs the interpolation processing based on the skin value of each of the adjacent strip areas. The brightness of the photographic area is corrected based on the background value for each pixel of the area.

【0048】したがって、帯状領域毎の地肌値をそのま
ま利用して輝度補正した場合に比べ、帯状領域と帯状領
域との間に輝度の境目が生じることがないので、帯状領
域歪みの発生を防止することが可能になる。
Therefore, as compared with the case where the background value of each strip-shaped area is used as it is for the brightness correction, a luminance boundary does not occur between the strip-shaped areas, so that the distortion of the strip-shaped area is prevented. It will be possible.

【0049】請求項18記載の発明は、請求項17記載
のプログラムにおいて、前記写真領域輝度補正機能は、
補正する前の前記写真領域の各画素(x,y)の輝度値
をI(x,y)、補間処理を行って求められた前記帯状
領域の各画素(x,y)の地肌値をbase(x,y)とし
た場合に、下記の式により、 g(x,y)=I(x,y)×(指定輝度値/base
(x,y)) 前記写真領域の各画素(x,y)の補正輝度値g(x,
y)を求めて前記写真領域の輝度を補正する。
According to an eighteenth aspect of the present invention, in the program according to the seventeenth aspect, the photograph area luminance correction function is:
The brightness value of each pixel (x, y) in the photographic area before correction is I (x, y), and the background value of each pixel (x, y) in the band-shaped area obtained by performing the interpolation process is base. When (x, y) is set, g (x, y) = I (x, y) × (specified luminance value / base
(X, y)) The corrected luminance value g (x, y of each pixel (x, y) in the photograph area
y) is obtained to correct the brightness of the photographic area.

【0050】したがって、補正輝度値が容易に求めら
れ、スキャン画像の本来の地肌の濃さに合わせた写真領
域の輝度補正を確実に行うことが可能になる。
Therefore, the corrected luminance value can be easily obtained, and the luminance of the photographic area can be surely corrected according to the original background darkness of the scanned image.

【0051】[0051]

【発明の実施の形態】本発明の実施の一形態を図1ない
し図15に基づいて説明する。本実施の形態の画像輝度
補正装置は画像形成装置であるデジタル複写機に備えら
れており、画像読取装置としてはデジタル複写機のスキ
ャナ部が適用されている。
BEST MODE FOR CARRYING OUT THE INVENTION An embodiment of the present invention will be described with reference to FIGS. The image brightness correction apparatus according to the present embodiment is provided in a digital copying machine which is an image forming apparatus, and the scanner section of the digital copying machine is applied as the image reading apparatus.

【0052】ここで、図1はスキャナ部1の構成を示す
縦断正面図である。図1に示すように、スキャナ部1
は、原稿を載置するコンタクトガラス2と、原稿の露光
用の露光ランプ3および第一反射ミラー4からなる第一
走行体5と、第二反射ミラー6および第三反射ミラー7
からなる第二走行体8と、原稿の画像を読み取る撮像素
子としてのCCD(Charge Coupled Device)9と、こ
のCCD9に結像させるためのレンズユニット10と、
原稿を載置する基準になるとともにコンタクトガラス2
のズレや外れを防止する原稿スケール11と、この原稿
スケール11の下側に設置されたシェーディング補正用
の白基準板12と、フレーム14とを備えている。CC
D9はセンサボード13上に形成されている。
Here, FIG. 1 is a vertical sectional front view showing the structure of the scanner unit 1. As shown in FIG. 1, the scanner unit 1
Is a contact glass 2 on which an original is placed, a first traveling body 5 including an exposure lamp 3 for exposing the original and a first reflecting mirror 4, a second reflecting mirror 6 and a third reflecting mirror 7.
A second traveling body 8 composed of a CCD, a charge coupled device (CCD) 9 as an image pickup device for reading an image of a document, and a lens unit 10 for forming an image on the CCD 9.
Contact glass 2 as a standard for placing originals
A document scale 11 for preventing misalignment and misalignment, a white reference plate 12 for shading correction installed below the document scale 11, and a frame 14 are provided. CC
D9 is formed on the sensor board 13.

【0053】原稿の走査時には、第一走行体5および第
二走行体8はステッピングモータ24(図3参照)によ
って副走査方向に移動する。すなわち、第一走行体5お
よび第二走行体8がコンタクトガラス2の下を走行し
て、露光ランプ3で原稿を露光走査し、その反射光を第
一反射ミラー4、第二反射ミラー6および第三反射ミラ
ー7で反射して、レンズユニット10を通してCCD9
に結像させる。ここに、画像読取手段が実現されてい
る。
When scanning the original, the first traveling body 5 and the second traveling body 8 are moved in the sub-scanning direction by the stepping motor 24 (see FIG. 3). That is, the first traveling body 5 and the second traveling body 8 travel under the contact glass 2 to expose and scan an original with the exposure lamp 3, and the reflected light thereof is reflected by the first reflection mirror 4, the second reflection mirror 6, and the second reflection mirror 6. The light is reflected by the third reflection mirror 7, and the CCD 9 passes through the lens unit 10.
Image. The image reading means is realized here.

【0054】このようなスキャナ部1は、このスキャナ
部1で読み取られた原稿の画像に基づく画像データに応
じ、例えば電子写真方式で用紙上に画像の形成を行う画
像印刷装置であるプリンタ部(図示せず)を備えるデジ
タル複写機16に搭載されている。図2は、スキャナ部
1を搭載したデジタル複写機16の上部部分を示す斜視
図である。図2に示すように、スキャナ部1には、コン
タクトガラス2に対して開閉自在な圧板17と、この圧
板17の開閉を検出する開閉センサ18とが設けられて
いる。なお、デジタル複写機16に備えられるプリンタ
としては、電子写真方式のほか、インクジェット方式、
昇華型熱転写方式、銀塩写真方式、直接感熱記録方式、
溶融型熱転写方式など、種々の印刷方式を適用すること
ができる。その具体的な構成については周知であるた
め、詳細な説明は省略する。
Such a scanner unit 1 is a printer unit (a printer unit which is an image printing device for forming an image on a sheet by, for example, an electrophotographic system according to image data based on an image of an original read by the scanner unit 1 ( It is mounted on a digital copying machine 16 including an unillustrated device). FIG. 2 is a perspective view showing an upper portion of the digital copying machine 16 equipped with the scanner unit 1. As shown in FIG. 2, the scanner unit 1 is provided with a pressure plate 17 that can be opened and closed with respect to the contact glass 2 and an opening / closing sensor 18 that detects opening / closing of the pressure plate 17. The printer provided in the digital copying machine 16 includes an electrophotographic system, an inkjet system,
Sublimation type thermal transfer system, silver salt photography system, direct thermal recording system,
Various printing methods such as a fusion type thermal transfer method can be applied. Since its specific configuration is well known, detailed description thereof will be omitted.

【0055】図3は、スキャナ部1の制御系の電気的な
接続を示すブロック図である。図3に示すように、この
制御系は、スキャナ部1の全体を制御するメイン制御部
19に、CCD9で読み取った画像データに各種の画像
処理を施す回路である画像処理部20と、第一走行体5
および第二走行体8を制御する回路である走行体制御部
21と、デジタル複写機16への各種操作を受け付け、
また、各種メッセージを表示する操作パネル22と、C
CD9で読み取った画像データや所定のデータ等を記憶
するメモリ23とが接続されている。なお、操作パネル
22には、コピー開始を宣言するためのコピースタート
キー等が設けられている。また、走行体制御部21に
は、露光ランプ3と、第一走行体5および第二走行体8
を駆動するステッピングモータ24と、第一走行体5お
よび第二走行体8がホームポジションにあるか否かを検
出するスキャナホームポジションセンサ(HPセンサ)
25と、開閉センサ18とが接続されている。
FIG. 3 is a block diagram showing the electrical connection of the control system of the scanner section 1. As shown in FIG. 3, this control system includes a main control unit 19 that controls the entire scanner unit 1, an image processing unit 20 that is a circuit that performs various image processes on image data read by the CCD 9, and a first control unit 19. Traveling body 5
And various operations to the traveling body control unit 21 which is a circuit for controlling the second traveling body 8 and the digital copying machine 16,
In addition, an operation panel 22 for displaying various messages and C
A memory 23 for storing image data read by the CD 9 and predetermined data is connected. The operation panel 22 is provided with a copy start key for declaring the start of copying. Further, the traveling body control unit 21 includes the exposure lamp 3, the first traveling body 5, and the second traveling body 8.
A scanner home position sensor (HP sensor) that detects whether the first traveling body 5 and the second traveling body 8 are in the home position and the stepping motor 24 that drives the
25 and the open / close sensor 18 are connected.

【0056】ここで、図4は画像処理部20の基本的な
内部構成を示すブロック図である。図4に示すように、
画像処理部20は、原稿をCCD9により読み取ったア
ナログ画像信号の増幅処理やデジタル変換処理等を行う
アナログビデオ処理部26、シェーディング補正処理を
行うシェーディング補正処理部27、シェーディング補
正処理後のデジタル画像信号に、MTF補正、変倍処
理、γ補正等の各種画像データ処理を行いスキャン画像
を生成する画像データ処理部28、スキャン画像の画像
輝度補正機能を含む歪み補正機能を実現する画像歪み補
正部29から構成されている。以上のような画像処理後
のデジタル画像信号は、メイン制御部19を介してプリ
ンタ部に送信されて、画像形成に供される。
FIG. 4 is a block diagram showing the basic internal structure of the image processing section 20. As shown in FIG.
The image processing unit 20 includes an analog video processing unit 26 that performs amplification processing and digital conversion processing of an analog image signal obtained by reading an original with the CCD 9, a shading correction processing unit 27 that performs shading correction processing, and a digital image signal after shading correction processing. In addition, an image data processing unit 28 that performs various image data processes such as MTF correction, scaling processing, and γ correction to generate a scan image, and an image distortion correction unit 29 that realizes a distortion correction function including an image brightness correction function of the scan image. It consists of The digital image signal after the above image processing is transmitted to the printer unit via the main control unit 19 and is used for image formation.

【0057】メイン制御部19は、図5に示すように、
各部を集中的に制御するCPU(Central Processing U
nit)31を備えており、このCPU31には、BIO
Sなどを記憶した読出し専用メモリであるROM(Read
Only Memory)32と、各種データを書換え可能に記憶
してCPU31の作業エリアとして機能するRAM(Ra
ndom Access Memory)33とがバス34で接続されてお
り、マイクロコンピュータを構成している。さらにバス
34には、制御プログラムが記憶されたHDD35と、
CD(Compact Disc)−ROM37を読み取るCD−R
OMドライブ36と、プリンタ部等との通信を司るイン
タフェース(I/F)38とが接続されている。
The main controller 19 is, as shown in FIG.
A CPU (Central Processing Unit) that centrally controls each unit
nit) 31 and the CPU 31 has a BIO
ROM (Read Only Memory that stores S etc.)
Only Memory) 32 and a RAM (Ra that functions as a work area of the CPU 31 by rewritably storing various data.
ndom Access Memory) 33 is connected by a bus 34 to form a microcomputer. Further, on the bus 34, an HDD 35 in which a control program is stored,
CD (Compact Disc) -CD-R that reads ROM 37
An OM drive 36 and an interface (I / F) 38 that controls communication with the printer unit and the like are connected.

【0058】図5に示すCD−ROM37は、この発明
の記憶媒体を実施するものであり、所定の制御プログラ
ムが記憶されている。CPU31は、CD−ROM37
に記憶されている制御プログラムをCD−ROMドライ
ブ36で読み取り、HDD35にインストールする。こ
れにより、メイン制御部19は、後述するような各種の
処理を行うことが可能な状態となる。
The CD-ROM 37 shown in FIG. 5 embodies the storage medium of the present invention and stores a predetermined control program. The CPU 31 is a CD-ROM 37
The control program stored in is read by the CD-ROM drive 36 and installed in the HDD 35. As a result, the main control unit 19 enters a state in which it is possible to perform various types of processing described below.

【0059】なお、記憶媒体としては、CD−ROM3
7のみならず、DVDなどの各種の光ディスク、各種光
磁気ディスク、フロッピー(登録商標)ディスクなどの
各種磁気ディスク、半導体メモリ等、各種方式のメディ
アを用いることができる。また、インターネットなどの
ネットワークからプログラムをダウンロードし、HDD
35にインストールするようにしてもよい。この場合
に、送信側のサーバでプログラムを記憶している記憶装
置も、この発明の記憶媒体である。なお、プログラム
は、所定のOS(Operating System)上で動作するもの
であってもよいし、その場合に後述の各種処理の一部の
実行をOSに肩代わりさせるものであってもよいし、ワ
ープロソフトなど所定のアプリケーションソフトやOS
などを構成する一群のプログラムファイルの一部として
含まれているものであってもよい。
The storage medium is a CD-ROM 3
7, various types of media such as various optical discs such as DVD, various magneto-optical discs, various magnetic discs such as floppy (registered trademark) discs, and semiconductor memories can be used. Also, download the program from a network such as the Internet and
You may make it install in 35. In this case, the storage device that stores the program in the server on the transmission side is also the storage medium of the present invention. The program may be one that runs on a predetermined OS (Operating System), in which case some of the various processes described below may be executed by the OS, or a word processor may be used. Specific application software such as software and OS
It may be included as a part of a group of program files configuring the above.

【0060】次に、メイン制御部19に設けられたCP
U31が制御プログラムに基づいて実行する各種処理の
内容について説明する。ここでは、CPU31が実行す
る処理のうち、本実施の形態のスキャナ部1が備える特
長的な機能であるスキャン画像の輝度補正機能を実現す
る画像輝度補正装置である画像歪み補正部29における
スキャン画像のページ綴じ部の輝度補正処理についての
み説明する。
Next, the CP provided in the main control section 19
The contents of various processes executed by the U31 based on the control program will be described. Here, among the processes executed by the CPU 31, the scan image in the image distortion correction unit 29, which is an image brightness correction device that realizes the brightness correction function of the scan image, which is a characteristic function of the scanner unit 1 according to the present embodiment. Only the brightness correction process of the page binding unit will be described.

【0061】図6は、スキャン画像のページ綴じ部の輝
度補正処理の流れを概略的に示すフローチャートであ
る。なお、ここでは、図7に示すように、ブック原稿4
0がそのページ綴じ部41とスキャナ部1の画像読み取
りの主走査方向とが平行になるように位置させてコンタ
クトガラス2に載置されている場合について説明する。
FIG. 6 is a flow chart schematically showing the flow of the brightness correction processing of the page binding portion of the scanned image. Note that, here, as shown in FIG.
A case where 0 is placed on the contact glass 2 with the page binding section 41 and the scanner section 1 positioned so as to be parallel to the main scanning direction of image reading will be described.

【0062】まず、ステップS1において、画像データ
処理部28から出力されたコンタクトガラス2に載置さ
れているブック原稿40のスキャン画像を入力する。こ
こで、図8は入力した画像の一例を示したものである。
そして、図9に示すように、入力されたブック原稿40
のスキャン画像には、ページ綴じ部41の近傍において
歪みが生じている。
First, in step S1, the scan image of the book original 40 placed on the contact glass 2 output from the image data processing unit 28 is input. Here, FIG. 8 shows an example of the input image.
Then, as shown in FIG. 9, the input book original 40
In the scan image of, the distortion occurs near the page binding unit 41.

【0063】ここで、図10はスキャン画像のページ綴
じ部付近の画像輝度分布を示すグラフである。図10は
8bitモノクロ多値画像の例であり、この場合、最も白
い画素の輝度値は“255”であって、最も黒い画素の
輝度値は“0”である。したがって、地肌部分の最大の
輝度値はほぼ“255”であって、文字部分の輝度値は
ほぼ“0”を示している。しかしながら、ブック原稿4
0のスキャン画像にはページ綴じ部41の近傍において
歪みが生じていることから、ページ綴じ部41の近傍の
地肌部分の輝度値はページ綴じ部41に近いほど“0”
に近づいており、ページ綴じ部41の輝度値はほぼ
“0”を示している。つまり、スキャン画像のページ綴
じ部の輝度補正処理は、歪みが生じることにより変化し
たページ綴じ部41の近傍の地肌部分の輝度値を補正す
るものである。
Here, FIG. 10 is a graph showing the image luminance distribution in the vicinity of the page binding portion of the scanned image. FIG. 10 shows an example of an 8-bit monochrome multi-valued image. In this case, the brightness value of the whitest pixel is “255” and the brightness value of the blackest pixel is “0”. Therefore, the maximum luminance value of the background portion is almost "255", and the luminance value of the character portion is almost "0". However, book manuscript 4
Since the scan image of 0 is distorted near the page binding portion 41, the brightness value of the background portion near the page binding portion 41 is “0” as it is closer to the page binding portion 41.
, And the brightness value of the page binding portion 41 is almost “0”. That is, the brightness correction processing of the page binding portion of the scan image is to correct the brightness value of the background portion near the page binding portion 41 which has changed due to the distortion.

【0064】続くステップS2においては、スキャン画
像の中に写真領域が存在するか否かを判別し、写真領域
が存在する場合にはスキャン画像から写真領域を抽出す
る。ここに、写真領域判別手段の機能が実行される。な
お、スキャン画像からの写真領域の抽出処理については
周知の技術であるので、その説明は省略する。ステップ
S3以降においては、このようにしてスキャン画像から
抽出された写真領域と、非写真領域とを区別して処理す
ることになる。
In the following step S2, it is determined whether or not a photograph area exists in the scan image, and if the photograph area exists, the photograph area is extracted from the scan image. Here, the function of the photograph area discrimination means is executed. Note that the process of extracting a photo region from a scan image is a well-known technique, and therefore its description is omitted. After step S3, the photographic area extracted from the scan image and the non-photographic area are processed separately.

【0065】まず、非写真領域における輝度補正につい
て説明する。非写真領域を輝度補正するためには、概略
的には、スキャン画像をブロック分割し、ブロック毎に
局所的な地肌値を検出する。より詳細には、スキャン画
像を所定のブロックに細かく分割し(ステップS4:ブ
ロック分割手段)、ブロック毎に地肌値を求める(ステ
ップS5:地肌値検出手段)。
First, the brightness correction in the non-photographic area will be described. In order to correct the brightness of the non-photographic area, the scan image is roughly divided into blocks, and a local background value is detected for each block. More specifically, the scan image is finely divided into predetermined blocks (step S4: block dividing means), and a background value is obtained for each block (step S5: background value detecting means).

【0066】ステップS4におけるスキャン画像の分割
は、図11に示すようにスキャン画像全体をm×n個の
ブロックで分割する。なお、分割するブロックの数は予
め設定しておく。
In the division of the scan image in step S4, the entire scan image is divided into m × n blocks as shown in FIG. The number of blocks to be divided is set in advance.

【0067】また、ステップS5におけるブロック毎の
地肌値の求め方としては、まず、各ブロック内で一番白
い画素(輝度値が最大の画素)を探し、この画素の輝度
値をブロックの地肌値とする。すなわち、ブロック
[i,j]での地肌値をf(i,j)とするとm×n
個の地肌値f(i,j)が得られることになる。
As a method of obtaining the background value for each block in step S5, first, the whitest pixel (pixel having the maximum brightness value) is searched for in each block, and the brightness value of this pixel is used as the background value of the block. And That is, if the background value in block [i, j] is f 0 (i, j), then m × n
The individual background value f 0 (i, j) is obtained.

【0068】ブロック毎に地肌値が得られると、ステッ
プS6に進み、各ブロックの地肌値に対して平滑化処理
を行う。このように各ブロックの地肌値に対して平滑化
処理を行うのは、各ブロックの地肌値の違いによるノイ
ズの影響を極力抑えるためである。なお、平滑化処理後
の地肌値は、f(i,j)とする。
When the background value is obtained for each block, the process proceeds to step S6 and the background value of each block is smoothed. The smoothing process is performed on the background value of each block in order to suppress the influence of noise due to the difference of the background value of each block as much as possible. The background value after the smoothing process is f (i, j).

【0069】ところで、ブロック毎の地肌値をそのまま
利用して輝度補正した場合には、ブロックとブロックと
の間に輝度の境目が生じてしまいブロック歪みが発生す
る。そこで、本実施の形態においてはこれを解消するた
め、ステップS7において、画素毎の地肌値を線形補間
処理により求める。図12は、非写真領域における画素
レベルの地肌値の線形補間処理による求め方を示す説明
図である。図12に示す座標(x,y)での地肌値base
(x,y)は、その周辺ブロックの平滑化処理後の地肌
値f(i,j)、f(i+1,j)、f(i,j+
1)、f(i+1,j+1)の線形補間値として計算さ
れる。より具体的には、座標(x,y)での地肌値base
(x,y)は、
By the way, when the background value of each block is used as it is for brightness correction, a boundary of brightness is generated between the blocks, and block distortion occurs. Therefore, in order to eliminate this in the present embodiment, in step S7, the background value for each pixel is obtained by linear interpolation processing. FIG. 12 is an explanatory diagram showing a method for obtaining a pixel level background value in a non-photographic area by linear interpolation processing. Background value base at coordinates (x, y) shown in FIG.
(X, y) are background values f (i, j), f (i + 1, j), f (i, j +) after the smoothing processing of the peripheral blocks.
1), f (i + 1, j + 1) is calculated as a linear interpolation value. More specifically, the background value base at the coordinates (x, y)
(X, y) is

【0070】[0070]

【数1】 により、算出される。[Equation 1] Is calculated by

【0071】なお、本実施の形態においては画素毎の地
肌値を線形補間処理により求めたが、これに限るもので
はなく、他の補間方法により画素ごとの地肌値を求める
ようにしても良い。
In this embodiment, the background value for each pixel is obtained by linear interpolation processing, but the present invention is not limited to this, and the background value for each pixel may be obtained by another interpolation method.

【0072】以上のようにして画素毎の地肌値が求めら
れると、ステップS8に進み、輝度補正処理が実行され
る。輝度補正処理については、詳細は後述する。
When the background value for each pixel is obtained as described above, the process proceeds to step S8 and the brightness correction process is executed. Details of the brightness correction process will be described later.

【0073】次に、写真領域における輝度補正について
説明する。写真領域を輝度補正するためには、概略的に
は、スキャン画像の写真領域を含む部分を帯状領域に分
割し(ステップS9:帯状分割手段)、帯状領域毎に局
所的な地肌値を求める(ステップS10:帯状領域地肌
値検出手段)。
Next, the brightness correction in the photograph area will be described. In order to correct the brightness of the photographic area, roughly, a portion including the photographic area of the scan image is divided into strip-shaped areas (step S9: strip-shaped dividing means), and a local background value is obtained for each strip-shaped area ( Step S10: Band-shaped area background value detecting means).

【0074】ステップS9におけるスキャン画像の写真
領域を含む部分の帯状領域分割は、図13に示すよう
に、スキャン画像の写真領域を含む部分をブック原稿4
0のページ綴じ部41である綴じ部境界線と平行なm個
の帯状領域に細かく分割する。
As shown in FIG. 13, the band-shaped area division of the portion including the photographic area of the scan image in step S9 is performed by dividing the portion including the photographic area of the scan image into the book document 4 as shown in FIG.
The page binding portion 41 of 0 is finely divided into m strip-shaped regions parallel to the binding portion boundary line.

【0075】ステップS10における帯状領域毎の地肌
値の求め方としては、まず、各帯状領域内で一番白い画
素(輝度値が最大の画素)を探し、この画素の輝度値を
当該帯状領域に含まれる写真領域の地肌値とする。すな
わち、帯状領域[k]での地肌値をf´(k)とする
とm個の地肌値f´(k)が得られることになる。
As a method of obtaining the background value for each strip-shaped area in step S10, first, the whitest pixel (pixel having the maximum luminance value) is searched for in each strip-shaped area, and the luminance value of this pixel is set in the strip-shaped area. The background value of the included photo area. That is, if the background value in the strip-shaped region [k] is f ′ 0 (k), m background values f ′ 0 (k) will be obtained.

【0076】帯状領域毎に地肌値が得られると、ステッ
プS11に進み、隣接する帯状領域間の地肌値に対して
平滑化処理を行う。このように各帯状領域の地肌値に対
して平滑化処理を行うのは、各帯状領域の地肌値の違い
によるノイズの影響を極力抑えるためである。なお、平
滑化処理後の地肌値は、f´(k)とする。
When the background value is obtained for each strip-shaped region, the process proceeds to step S11, and the smoothing process is performed on the background value between the adjacent strip-shaped regions. The smoothing process is performed on the background value of each strip area in order to suppress the influence of noise due to the difference in the background value of each strip area as much as possible. The background value after the smoothing process is f ′ (k).

【0077】続くステップS12において、画素毎の地
肌値を線形補間処理により求める。図14は、写真領域
における画素レベルの地肌値の線形補間処理による求め
方を示す説明図である。図14に示す座標(x,y)で
の地肌値base(x,y)は、隣接する帯状領域の平滑化
処理後の地肌値f´(k)、f´(k+1)の線形補間
値として計算される。より具体的には、座標(x,y)
での地肌値base(x,y)は、
In the following step S12, the background value for each pixel is obtained by linear interpolation processing. FIG. 14 is an explanatory diagram showing how to obtain a pixel level background value in a photographic area by linear interpolation processing. The background value base (x, y) at the coordinates (x, y) shown in FIG. 14 is a linear interpolation value of the background values f ′ (k) and f ′ (k + 1) after the smoothing processing of the adjacent strip areas. Calculated. More specifically, the coordinates (x, y)
The background value base (x, y) at is

【0078】[0078]

【数2】 により、算出される。[Equation 2] Is calculated by

【0079】なお、本実施の形態においては画素毎の地
肌値を線形補間処理により求めたが、これに限るもので
はなく、他の補間方法により画素ごとの地肌値を求める
ようにしても良い。
In the present embodiment, the background value for each pixel is obtained by linear interpolation processing, but the present invention is not limited to this, and the background value for each pixel may be obtained by another interpolation method.

【0080】以上のようにして画素毎の地肌値が求めら
れると、ステップS8に進み、輝度補正処理が実行され
る。
When the background value for each pixel is obtained as described above, the process proceeds to step S8 and the brightness correction process is executed.

【0081】ここで、ステップS8の輝度補正処理につ
いて、詳細に説明する。輝度補正処理は、ステップS7
及びステップS12において求められた各画素の地肌値
を用いて行われる。輝度補正処理は、図10に示したよ
うに、輝度値がほぼ“0”に変化したページ綴じ部41
の近傍の地肌部分の輝度値を補正するものであって、ス
キャン画像本来の地肌の輝度に戻すのが目標である。こ
の目標とすべき本来の地肌の輝度値を「指定輝度値」と
呼び、この例では8bitモノクロ多値画像の最大値であ
る“255”を指定輝度値とする(つまり、この例の本
来の地肌は「白色」であるとする)。しかしながら、画
素値に、255とその画素地肌値との差分を単純に加算
するだけでは、地肌部分と文字部分のコントラストが低
いままとなってあまり改善されない。そこで、本実施の
形態においては、
Here, the brightness correction processing in step S8 will be described in detail. The brightness correction process is performed in step S7.
And the background value of each pixel obtained in step S12. As shown in FIG. 10, the brightness correction process is performed by the page binding unit 41 in which the brightness value changes to almost “0”.
The purpose is to correct the luminance value of the background portion in the vicinity of, and the goal is to restore the original background luminance of the scanned image. The original brightness value of the background to be targeted is called a "specified brightness value", and in this example, "255" which is the maximum value of the 8-bit monochrome multi-valued image is set as the specified brightness value (that is, the original brightness value of this example). The background is “white”). However, simply adding the difference between 255 and the pixel background value to the pixel value does not improve much because the contrast between the background portion and the character portion remains low. Therefore, in the present embodiment,

【0082】[0082]

【数3】 を用いて各画素の輝度を補正する。これは、補正する前
の各画素(x,y)の輝度値I(x,y)とステップS
7及びステップS12において求められた各画素(x,
y)の地肌値base(x,y)とが同じである場合には、
補正された各画素(x,y)の輝度値g(x,y)は
“255”になることによる。つまり、(6)式に基づ
く輝度補正によれば、地肌の黒い影を取り除くと共にブ
ック原稿40のページ綴じ部41の画像のダイナミック
レンジが広くなり、コントラストが強調されることにな
る。ここに、輝度補正手段の機能及び写真領域輝度補正
手段の機能が実行される。
[Equation 3] Is used to correct the brightness of each pixel. This is the luminance value I (x, y) of each pixel (x, y) before correction and step S
7 and each pixel (x,
If the background value base (x, y) of y) is the same,
This is because the corrected luminance value g (x, y) of each pixel (x, y) becomes “255”. That is, according to the brightness correction based on the expression (6), the black shadow of the background is removed, the dynamic range of the image of the page binding portion 41 of the book document 40 is widened, and the contrast is enhanced. Here, the function of the brightness correction means and the function of the photographic area brightness correction means are executed.

【0083】ここで、図15は輝度を補正したスキャン
画像のページ綴じ部付近の画像輝度分布を示すグラフで
ある。以上の処理によれば、図10に示したようなブッ
ク原稿40の輝度値がほぼ“0”に変化したページ綴じ
部41の近傍の地肌部分の輝度が、図15に示すように
補正されることになる。
Here, FIG. 15 is a graph showing the image brightness distribution in the vicinity of the page binding part of the scan image whose brightness has been corrected. According to the above processing, the luminance of the background portion near the page binding portion 41 where the luminance value of the book document 40 shown in FIG. 10 has changed to almost “0” is corrected as shown in FIG. It will be.

【0084】ここに、スキャン画像が複数のブロックに
分割され、各ブロックに含まれる画素の中で最も輝度値
の高い画素の輝度値が当該各ブロックの地肌値とみなさ
れ、この各ブロックの地肌値に基づいてスキャン画像に
対する輝度補正処理が施される。これにより、画像読取
手段の照明が均一でない場合やブック原稿のコンタクト
ガラスへの載せ方が不均一な場合(ページの上端と下端
とでコンタクトガラスからの浮き上がり方が異なる場
合)であっても、スキャン画像の一部分の地肌値に基づ
いてスキャン画像を帯状に輝度補正する場合に比べて局
所的な範囲で地肌値を検出して輝度補正するので、輝度
補正後の画像に黒い筋や薄い影が生じてしまうのを防止
することが可能になる。
Here, the scan image is divided into a plurality of blocks, the luminance value of the pixel having the highest luminance value among the pixels included in each block is regarded as the background value of each block, and the background of each block is Luminance correction processing is performed on the scanned image based on the value. As a result, even if the illumination of the image reading unit is not uniform or the book document is placed unevenly on the contact glass (when the upper edge and the lower edge of the page differ from the contact glass), Compared with the case where brightness correction is performed on the scanned image in a strip shape based on the background value of a part of the scanned image, the background value is detected and the brightness is corrected in a local range, so black streaks and light shadows appear in the image after the brightness correction. It becomes possible to prevent the occurrence.

【0085】また、スキャン画像の写真領域が存在する
場合には、スキャン画像の当該写真領域を含む部分が複
数の帯状領域に分割され、各帯状領域に含まれる非写真
領域中の画素の中で最も輝度値の高い画素の輝度値が当
該各帯状領域の地肌値とみなされ、この各帯状領域の地
肌値に基づいて写真領域に対する輝度補正処理が施され
る。これにより、前述したような分割した各ブロックの
地肌値に基づく輝度補正処理を写真領域と非写真領域と
に対してまとめて施した場合には、黒い写真領域が白っ
ぽくなる場合があるので、写真領域と非写真領域とを分
けて異なる輝度補正処理を行うことにより、これを防止
することが可能になる。
When the photographed area of the scanned image exists, the portion of the scanned image including the photographed area is divided into a plurality of strip-shaped areas, and among the pixels in the non-photographed area included in each strip-shaped area. The luminance value of the pixel having the highest luminance value is regarded as the background value of each strip-shaped area, and the luminance correction process is performed on the photographic area based on the background value of each strip-shaped area. As a result, when the brightness correction processing based on the background value of each divided block as described above is collectively applied to the photo area and the non-photo area, the black photo area may become whitish. This can be prevented by dividing the area and the non-photographic area and performing different brightness correction processing.

【0086】なお、本実施の形態においては、画像輝度
補正装置を画像形成装置であるデジタル複写機16に備
え、デジタル複写機16のスキャナ部1で読み取ったス
キャン画像に対して画像の輝度補正処理を施すようにし
たが、これに限るものではない。例えば、原稿画像を読
み取る画像読取手段を備えたイメージスキャナを、図5
に示したメイン制御部19と同等なシステム構成を備え
たパーソナルコンピュータに接続するとともに、このパ
ーソナルコンピュータのHDDに記憶媒体であるCD−
ROM37に格納されたプログラムをインストールし、
このプログラムに従ってパーソナルコンピュータのCP
Uを動作させることによって画像輝度補正装置を構成し
ても、前述したような各種の作用効果と同様の作用効果
を得ることができる。また、記憶媒体であるCD−RO
M37に格納されたプログラムを、図5に示したメイン
制御部19と同等なシステム構成を備えたパーソナルコ
ンピュータのHDDにインストールし、このプログラム
に従ってパーソナルコンピュータのCPUを動作させる
ことによって画像輝度補正装置を構成し、予め画像読取
手段により読み取られたスキャン画像に対して輝度補正
処理を施すようにしても良い。
In this embodiment, the image brightness correction apparatus is provided in the digital copying machine 16 which is an image forming apparatus, and the image brightness correction processing is performed on the scan image read by the scanner unit 1 of the digital copying machine 16. However, it is not limited to this. For example, an image scanner equipped with an image reading unit for reading a document image is shown in FIG.
A personal computer having a system configuration equivalent to that of the main control unit 19 shown in FIG.
Install the program stored in ROM37,
CP of personal computer according to this program
Even if the image brightness correction apparatus is configured by operating U, it is possible to obtain the same operational effects as the various operational effects described above. In addition, a CD-RO which is a storage medium
The program stored in M37 is installed in the HDD of a personal computer having a system configuration equivalent to that of the main control unit 19 shown in FIG. 5, and the CPU of the personal computer is operated according to this program to operate the image brightness correction apparatus. Alternatively, the brightness correction process may be performed on the scan image read by the image reading unit in advance.

【0087】また、本実施の形態においては、指定輝度
値を白色である“255”にしたが、これに限るもので
はなく、特定の原稿色の輝度値を指定輝度値として、そ
の原稿の地肌の濃さに合わせた輝度補正ができるように
しても良い。
Further, in the present embodiment, the designated luminance value is set to "255" which is white, but the present invention is not limited to this, and the luminance value of a specific document color is set as the designated luminance value, and the background of the document is set. The brightness may be corrected according to the darkness of.

【0088】[0088]

【発明の効果】請求項1記載の発明の画像輝度補正装置
によれば、コンタクトガラス上に載置されたブック原稿
を画像読取手段により読み取ったスキャン画像の輝度を
補正する画像輝度補正装置において、前記スキャン画像
を複数のブロックに分割するブロック分割手段と、この
ブロック分割手段により分割された前記各ブロックに含
まれる画素の中で最も輝度値の高い画素をそれぞれ選択
し、その画素の輝度値を当該各ブロックの地肌値とみな
して検出する地肌値検出手段と、この地肌値検出手段に
より前記ブロック毎に検出された前記地肌値に基づき、
前記スキャン画像に対して輝度補正処理を施す輝度補正
手段と、を備え、スキャン画像を複数のブロックに分割
し、各ブロックに含まれる画素の中で最も輝度値の高い
画素の輝度値を当該各ブロックの地肌値とみなし、この
各ブロックの地肌値に基づいてスキャン画像に対する輝
度補正処理を施すことにより、画像読取手段の照明が均
一でない場合やブック原稿のコンタクトガラスへの載せ
方が不均一な場合(ページの上端と下端とでコンタクト
ガラスからの浮き上がり方が異なる場合)であっても、
スキャン画像の一部分の地肌値に基づいてスキャン画像
を帯状に輝度補正する場合に比べて局所的な範囲で地肌
値を検出して輝度補正するので、輝度補正後の画像に黒
い筋や薄い影が生じてしまうのを防止することができ
る。
According to the image brightness correction apparatus of the present invention, an image brightness correction apparatus for correcting the brightness of a scan image obtained by reading the book document placed on the contact glass by the image reading means, A block dividing unit that divides the scan image into a plurality of blocks and a pixel having the highest luminance value among the pixels included in each block divided by the block dividing unit are selected, and the luminance value of the pixel is determined. Based on the background value detection means for detecting the background value of each block and the background value detected for each block by the background value detection means,
Brightness correction means for performing brightness correction processing on the scan image, the scan image is divided into a plurality of blocks, and the brightness value of the pixel having the highest brightness value among the pixels included in each block If the illumination of the image reading unit is not uniform or the book document is placed on the contact glass unevenly, it is regarded as the background value of the block and the brightness correction process is performed on the scanned image based on the background value of each block. Even if the top and bottom edges of the page differ in how they float from the contact glass,
Compared with the case where brightness correction is performed on the scanned image in a strip shape based on the background value of a part of the scanned image, the background value is detected and the brightness is corrected in a local range, so black streaks and light shadows appear in the image after brightness correction. It can be prevented from occurring.

【0089】請求項2記載の発明によれば、請求項1記
載の画像輝度補正装置において、前記輝度補正手段は、
前記各ブロックの地肌値を各ブロック間で平滑化し、平
滑後の地肌値に基づいて前記スキャン画像の輝度を補正
することにより、ノイズの影響を抑制することができ
る。
According to a second aspect of the invention, in the image luminance correcting apparatus according to the first aspect, the luminance correcting means is
The influence of noise can be suppressed by smoothing the background value of each block between the blocks and correcting the brightness of the scan image based on the smoothed background value.

【0090】請求項3記載の発明によれば、請求項1ま
たは2記載の画像輝度補正装置において、前記輝度補正
手段は、隣接する4ブロックの各地肌値を基に補間処理
を行って求めた前記スキャン画像の画素毎の地肌値に基
づき、前記スキャン画像の輝度を補正することにより、
ブロック毎の地肌値をそのまま利用して輝度補正した場
合に比べ、ブロックとブロックとの間に輝度の境目が生
じることがないので、ブロック歪みの発生を防止するこ
とができる。
According to the third aspect of the invention, in the image luminance correction apparatus according to the first or second aspect, the luminance correction means obtains it by performing an interpolation process based on the skin value of each of four adjacent blocks. Based on the background value for each pixel of the scan image, by correcting the brightness of the scan image,
As compared with the case where the background value of each block is used as it is for the brightness correction, the boundary of the brightness does not occur between the blocks, so that the block distortion can be prevented.

【0091】請求項4記載の発明によれば、請求項3記
載の画像輝度補正装置において、前記輝度補正手段は、
補正する前の各画素(x,y)の輝度値をI(x,
y)、補間処理を行って求められた前記スキャン画像の
各画素(x,y)の地肌値をbase(x,y)とした場合
に、下記の式により、 g(x,y)=I(x,y)×(指定輝度値/base
(x,y)) 各画素(x,y)の補正輝度値g(x,y)を求めて前
記スキャン画像の輝度を補正することにより、補正輝度
値を容易に求めることができ、スキャン画像の本来の地
肌の濃さに合わせた輝度補正を確実に行うことができ
る。
According to the invention described in claim 4, in the image brightness correction device according to claim 3, the brightness correction means is:
The brightness value of each pixel (x, y) before correction is I (x,
y), when the background value of each pixel (x, y) of the scan image obtained by performing the interpolation processing is base (x, y), g (x, y) = I (X, y) x (specified brightness value / base
(X, y)) The corrected brightness value can be easily obtained by calculating the corrected brightness value g (x, y) of each pixel (x, y) and correcting the brightness of the scan image. It is possible to surely perform the brightness correction according to the original darkness of the background.

【0092】請求項5記載の発明によれば、請求項1な
いし4のいずれか一記載の画像輝度補正装置において、
前記スキャン画像の写真領域と非写真領域とを判別する
写真領域判別手段と、この写真領域判別手段により前記
写真領域が判別された場合、前記スキャン画像の当該写
真領域を含む部分を複数の帯状領域に分割する帯状分割
手段と、この帯状分割手段により分割された前記各帯状
領域に含まれる前記非写真領域中の画素の中で最も輝度
値の高い画素をそれぞれ選択し、その画素の輝度値を当
該帯状領域の地肌値とみなして検出する帯状領域地肌値
検出手段と、この帯状領域地肌値検出手段により前記帯
状領域毎に検出された前記地肌値に基づき、前記写真領
域に対して輝度補正処理を施す写真領域輝度補正手段
と、を備え、スキャン画像の写真領域が存在する場合に
は、スキャン画像の当該写真領域を含む部分を複数の帯
状領域に分割し、各帯状領域に含まれる非写真領域中の
画素の中で最も輝度値の高い画素の輝度値を当該各帯状
領域の地肌値とみなし、この各帯状領域の地肌値に基づ
いて写真領域に対する輝度補正処理を施すことにより、
前述したような分割した各ブロックの地肌値に基づく輝
度補正処理を写真領域と非写真領域とに対してまとめて
施した場合には、黒い写真領域が白っぽくなる場合があ
るので、写真領域と非写真領域とを分けて異なる輝度補
正処理を行い、これを防止することができる。
According to a fifth aspect of the present invention, in the image brightness correction apparatus according to any one of the first to fourth aspects,
A photograph area discriminating unit that discriminates between a photograph area and a non-photo area of the scan image, and when the photograph area is discriminated by the photograph area discriminating unit, a portion including the photograph area of the scan image is divided into a plurality of strip-shaped areas And a pixel having the highest luminance value among the pixels in the non-photographed area included in each of the belt-shaped areas divided by the belt-shaped dividing means, and the luminance value of the pixel is selected. Based on the background value detected for each of the belt-shaped areas by the belt-shaped area background value detecting means for detecting the belt-shaped area as a background value, the brightness correction processing is performed on the photographic area. If there is a photographic area of the scan image, the portion including the photographic area of the scan image is divided into a plurality of strip-shaped areas. The brightness value of the pixel with the highest brightness value among the pixels in the non-photo area included in the striped area is regarded as the background value of each strip area, and the brightness correction processing for the photo area is performed based on the background value of each strip area. By applying
When the brightness correction processing based on the background value of each divided block as described above is collectively applied to the photo area and the non-photo area, the black photo area may become whitish. This can be prevented by performing different brightness correction processing separately for the photo area.

【0093】請求項6記載の発明によれば、請求項5記
載の画像輝度補正装置において、前記写真領域輝度補正
手段は、前記各帯状領域の地肌値を各帯状領域間で平滑
化し、平滑後の地肌値に基づいて前記写真領域の輝度を
補正することにより、ノイズの影響を抑制することがで
きる。
According to the sixth aspect of the present invention, in the image luminance correcting apparatus according to the fifth aspect, the photograph area luminance correcting means smoothes the background value of each of the belt-shaped areas between the belt-shaped areas, and after smoothing. The influence of noise can be suppressed by correcting the brightness of the photographic area based on the background value of 1.

【0094】請求項7記載の発明によれば、請求項5ま
たは6記載の画像輝度補正装置において、前記写真領域
輝度補正手段は、隣接する前記帯状領域の各地肌値を基
に補間処理を行って求めた前記帯状領域の画素毎の地肌
値に基づき、前記写真領域の輝度を補正することによ
り、帯状領域毎の地肌値をそのまま利用して輝度補正し
た場合に比べ、帯状領域と帯状領域との間に輝度の境目
が生じることがないので、帯状領域歪みの発生を防止す
ることができる。
According to the seventh aspect of the invention, in the image luminance correcting apparatus according to the fifth or sixth aspect, the photograph area luminance correcting means performs the interpolation processing based on the skin value of each of the adjacent strip-shaped areas. Based on the background value of each pixel of the strip-shaped area obtained by correcting the brightness of the photographic area, as compared with the case of performing brightness correction using the background value of each strip-shaped area as it is, Since no boundary of brightness is generated between the two, it is possible to prevent the occurrence of band-shaped region distortion.

【0095】請求項8記載の発明によれば、請求項7記
載の画像輝度補正装置において、前記写真領域輝度補正
手段は、補正する前の前記写真領域の各画素(x,y)
の輝度値をI(x,y)、補間処理を行って求められた
前記帯状領域の各画素(x,y)の地肌値をbase(x,
y)とした場合に、下記の式により、 g(x,y)=I(x,y)×(指定輝度値/base
(x,y)) 前記写真領域の各画素(x,y)の補正輝度値g(x,
y)を求めて前記写真領域の輝度を補正することによ
り、補正輝度値を容易に求めることができ、スキャン画
像の本来の地肌の濃さに合わせた写真領域の輝度補正を
確実に行うことができる。
According to the eighth aspect of the present invention, in the image luminance correcting apparatus according to the seventh aspect, the photograph area luminance correcting means has each pixel (x, y) in the photograph area before correction.
Is a brightness value of I (x, y), and a background value of each pixel (x, y) of the strip-shaped area obtained by performing an interpolation process is base (x,
y), g (x, y) = I (x, y) × (specified luminance value / base
(X, y)) The corrected luminance value g (x, y of each pixel (x, y) in the photograph area
y) and correcting the brightness of the photographic area, the corrected brightness value can be easily calculated, and the brightness of the photographic area can be surely corrected in accordance with the original background darkness of the scanned image. it can.

【0096】請求項9記載の発明の画像読取装置によれ
ば、原稿画像を読み取る画像読取手段と、この画像読取
手段により読み取られたスキャン画像の輝度の補正を行
う請求項1ないし8の何れか一記載の画像輝度補正装置
と、を備えることにより、請求項1ないし8の何れか一
記載の発明と同様の作用効果を奏する画像読取装置を得
ることができる。
According to the image reading apparatus of the present invention, the image reading means for reading the original image and the brightness of the scan image read by the image reading means are corrected. By including the image brightness correction device according to one aspect, it is possible to obtain an image reading device that exhibits the same operation and effect as the invention according to any one of claims 1 to 8.

【0097】請求項10記載の発明の画像形成装置によ
れば、原稿画像を読み取る画像読取手段と、この画像読
取手段により読み取られたスキャン画像の輝度の補正を
行う請求項1ないし8の何れか一記載の画像輝度補正装
置と、この画像輝度補正装置から出力される画像データ
に基づいた画像を用紙上に印刷する画像印刷装置と、を
備えることにより、請求項1ないし8の何れか一記載の
発明と同様の作用効果を奏する画像形成装置を得ること
ができる。
According to the image forming apparatus of the tenth aspect of the present invention, the image reading means for reading the original image and the brightness of the scan image read by the image reading means are corrected. 9. The image brightness correction device according to claim 1, and an image printing device that prints an image based on image data output from the image brightness correction device on a sheet, thereby providing the image brightness correction device. It is possible to obtain an image forming apparatus having the same effects as those of the invention described above.

【0098】請求項11記載の発明のプログラムによれ
ば、コンタクトガラス上に載置されたブック原稿を画像
読取手段により読み取ったスキャン画像の輝度補正をコ
ンピュータに実行させるプログラムであって、前記コン
ピュータに、前記スキャン画像を複数のブロックに分割
するブロック分割機能と、このブロック分割機能により
分割された前記各ブロックに含まれる画素の中で最も輝
度値の高い画素をそれぞれ選択し、その画素の輝度値を
当該各ブロックの地肌値とみなして検出する地肌値検出
機能と、この地肌値検出機能により前記ブロック毎に検
出された前記地肌値に基づき、前記スキャン画像に対し
て輝度補正処理を施す輝度補正機能と、を実行させ、ス
キャン画像を複数のブロックに分割し、各ブロックに含
まれる画素の中で最も輝度値の高い画素の輝度値を当該
各ブロックの地肌値とみなし、この各ブロックの地肌値
に基づいてスキャン画像に対する輝度補正処理を施すこ
とにより、画像読取手段の照明が均一でない場合やブッ
ク原稿のコンタクトガラスへの載せ方が不均一な場合
(ページの上端と下端とでコンタクトガラスからの浮き
上がり方が異なる場合)であっても、スキャン画像の一
部分の地肌値に基づいてスキャン画像を帯状に輝度補正
する場合に比べて局所的な範囲で地肌値を検出して輝度
補正するので、輝度補正後の画像に黒い筋や薄い影が生
じてしまうのを防止することができる。
According to the eleventh aspect of the present invention, there is provided a program for causing a computer to execute brightness correction of a scan image obtained by reading a book document placed on a contact glass by image reading means. , A block division function of dividing the scan image into a plurality of blocks, and a pixel having the highest luminance value among the pixels included in each block divided by the block division function is selected, and the luminance value of the pixel is selected. And a background value detecting function for detecting the block as the background value of each block, and a brightness correction for performing a brightness correction process on the scan image based on the background value detected for each block by the background value detecting function. Function is executed, the scan image is divided into multiple blocks, and among the pixels included in each block Also considers the brightness value of a pixel with a high brightness value as the background value of each block, and performs brightness correction processing on the scan image based on the background value of each block, so that the illumination of the image reading unit is not uniform or Even when the original is placed unevenly on the contact glass (when the top and bottom edges of the page differ from the contact glass), the scanned image is striped based on the background value of a part of the scanned image. Since the background value is detected and the brightness is corrected in a local range as compared with the case where the brightness is corrected, it is possible to prevent a black stripe or a light shadow from being generated in the image after the brightness correction.

【0099】請求項12記載の発明によれば、請求項1
1記載のプログラムにおいて、前記輝度補正機能は、前
記各ブロックの地肌値を各ブロック間で平滑化し、平滑
後の地肌値に基づいて前記スキャン画像の輝度を補正す
ることにより、ノイズの影響を抑制することができる。
According to the invention of claim 12, claim 1
In the program described in 1, the brightness correction function suppresses the influence of noise by smoothing the background value of each block among the blocks and correcting the brightness of the scan image based on the smoothed background value. can do.

【0100】請求項13記載の発明によれば、請求項1
1または12記載のプログラムにおいて、前記輝度補正
機能は、隣接する4ブロックの各地肌値を基に補間処理
を行って求めた前記スキャン画像の画素毎の地肌値に基
づき、前記スキャン画像の輝度を補正することにより、
ブロック毎の地肌値をそのまま利用して輝度補正した場
合に比べ、ブロックとブロックとの間に輝度の境目が生
じることがないので、ブロック歪みの発生を防止するこ
とができる。
According to the invention of claim 13, claim 1
In the program of 1 or 12, the brightness correction function determines the brightness of the scan image based on the background value for each pixel of the scan image obtained by performing interpolation processing based on the skin values of four adjacent blocks. By correcting,
As compared with the case where the background value of each block is used as it is for the brightness correction, the boundary of the brightness does not occur between the blocks, so that the block distortion can be prevented.

【0101】請求項14記載の発明によれば、請求項1
3記載のプログラムにおいて、前記輝度補正機能は、補
正する前の各画素(x,y)の輝度値をI(x,y)、
補間処理を行って求められた前記スキャン画像の各画素
(x,y)の地肌値をbase(x,y)とした場合に、下
記の式により、 g(x,y)=I(x,y)×(指定輝度値/base
(x,y)) 各画素(x,y)の補正輝度値g(x,y)を求めて前
記スキャン画像の輝度を補正することにより、補正輝度
値を容易に求めることができ、スキャン画像の本来の地
肌の濃さに合わせた輝度補正を確実に行うことができ
る。
According to the invention of claim 14, claim 1
In the program described in 3, the brightness correction function sets the brightness value of each pixel (x, y) before correction to I (x, y),
When the background value of each pixel (x, y) of the scan image obtained by performing the interpolation process is base (x, y), g (x, y) = I (x, y) x (specified brightness value / base
(X, y)) The corrected brightness value can be easily obtained by calculating the corrected brightness value g (x, y) of each pixel (x, y) and correcting the brightness of the scan image. It is possible to surely perform the brightness correction according to the original darkness of the background.

【0102】請求項15記載の発明によれば、請求項1
1ないし14のいずれか一記載のプログラムにおいて、
前記スキャン画像の写真領域と非写真領域とを判別する
写真領域判別機能と、この写真領域判別機能により前記
写真領域が判別された場合、前記スキャン画像の当該写
真領域を含む部分を複数の帯状領域に分割する帯状分割
機能と、この帯状分割機能により分割された前記各帯状
領域に含まれる前記非写真領域中の画素の中で最も輝度
値の高い画素をそれぞれ選択し、その画素の輝度値を当
該帯状領域の地肌値とみなして検出する帯状領域地肌値
検出機能と、この帯状領域地肌値検出機能により前記帯
状領域毎に検出された前記地肌値に基づき、前記写真領
域に対して輝度補正処理を施す写真領域輝度補正機能
と、を備え、スキャン画像の写真領域が存在する場合に
は、スキャン画像の当該写真領域を含む部分を複数の帯
状領域に分割し、各帯状領域に含まれる非写真領域中の
画素の中で最も輝度値の高い画素の輝度値を当該各帯状
領域の地肌値とみなし、この各帯状領域の地肌値に基づ
いて写真領域に対する輝度補正処理を施すことにより、
前述したような分割した各ブロックの地肌値に基づく輝
度補正処理を写真領域と非写真領域とに対してまとめて
施した場合には、黒い写真領域が白っぽくなる場合があ
るので、写真領域と非写真領域とを分けて異なる輝度補
正処理を行い、これを防止することができる。
According to the invention of claim 15, claim 1
In the program according to any one of 1 to 14,
When a photograph area is discriminated by the photograph area discriminating function for discriminating between the photograph area and the non-photo area of the scan image, and the photograph area is discriminated by the photograph area discriminating function, a portion including the photograph area of the scan image is divided into a plurality of strip-shaped areas. A strip-shaped division function for dividing into a strip-shaped area and a pixel having the highest luminance value among the pixels in the non-photographed area included in each strip-shaped area divided by the strip-shaped division function, and the luminance value of the pixel is selected. Based on the background value detected for each belt-shaped area by this belt-shaped area background value detection function and the belt-shaped area background value detection function that is detected as the background value of the belt-shaped area, the brightness correction processing is performed on the photo area. If there is a photographic region of the scan image, the portion including the photographic region of the scan image is divided into a plurality of strip-shaped regions, and The brightness value of the pixel with the highest brightness value among the pixels in the non-photo area included in the striped area is regarded as the background value of each strip area, and the brightness correction processing for the photo area is performed based on the background value of each strip area. By applying
When the brightness correction processing based on the background value of each divided block as described above is collectively applied to the photo area and the non-photo area, the black photo area may become whitish. This can be prevented by performing different brightness correction processing separately for the photo area.

【0103】請求項16記載の発明によれば、請求項1
5記載のプログラムにおいて、前記写真領域輝度補正機
能は、前記各帯状領域の地肌値を各帯状領域間で平滑化
し、平滑後の地肌値に基づいて前記写真領域の輝度を補
正することにより、ノイズの影響を抑制することができ
る。
According to the invention of claim 16, claim 1
In the program according to 5, the photo region brightness correction function smoothes the background value of each of the band-shaped regions between the band-shaped regions and corrects the brightness of the photo region based on the smoothed background value. The influence of can be suppressed.

【0104】請求項17記載の発明によれば、請求項1
5または16記載のプログラムにおいて、前記写真領域
輝度補正機能は、隣接する前記帯状領域の各地肌値を基
に補間処理を行って求めた前記帯状領域の画素毎の地肌
値に基づき、前記写真領域の輝度を補正することによ
り、帯状領域毎の地肌値をそのまま利用して輝度補正し
た場合に比べ、帯状領域と帯状領域との間に輝度の境目
が生じることがないので、帯状領域歪みの発生を防止す
ることができる。
According to the invention of claim 17, claim 1
In the program of 5 or 16, the photographic area brightness correction function is configured to perform the photographic area based on a background value for each pixel of the zonal area obtained by performing an interpolation process based on each flesh value of the adjacent zonal area. By correcting the brightness of, the brightness boundary does not occur between the band-shaped areas as compared with the case where the background value of each band-shaped area is used as it is, and therefore the band-shaped area distortion occurs. Can be prevented.

【0105】請求項18記載の発明によれば、請求項1
7記載のプログラムにおいて、前記写真領域輝度補正機
能は、補正する前の前記写真領域の各画素(x,y)の
輝度値をI(x,y)、補間処理を行って求められた前
記帯状領域の各画素(x,y)の地肌値をbase(x,
y)とした場合に、下記の式により、 g(x,y)=I(x,y)×(指定輝度値/base
(x,y)) 前記写真領域の各画素(x,y)の補正輝度値g(x,
y)を求めて前記写真領域の輝度を補正することによ
り、補正輝度値を容易に求めることができ、スキャン画
像の本来の地肌の濃さに合わせた写真領域の輝度補正を
確実に行うことができる。
According to the invention of claim 18, claim 1
In the program according to 7, the photograph area luminance correction function is I (x, y) representing a luminance value of each pixel (x, y) in the photograph area before correction, and the strip shape obtained by performing an interpolation process. The background value of each pixel (x, y) in the area is set to base (x,
y), g (x, y) = I (x, y) × (specified luminance value / base
(X, y)) The corrected luminance value g (x, y of each pixel (x, y) in the photograph area
y) and correcting the brightness of the photographic area, the corrected brightness value can be easily calculated, and the brightness of the photographic area can be surely corrected in accordance with the original background darkness of the scanned image. it can.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の実施の一形態のスキャナ部の構成を示
す縦断正面図である。
FIG. 1 is a vertical sectional front view showing a configuration of a scanner unit according to an embodiment of the present invention.

【図2】スキャナ部を搭載したデジタル複写機の上部部
分を示す斜視図である。
FIG. 2 is a perspective view showing an upper portion of a digital copying machine equipped with a scanner unit.

【図3】スキャナ部の制御系の電気的な接続を示すブロ
ック図である。
FIG. 3 is a block diagram showing electrical connection of a control system of a scanner unit.

【図4】画像処理部の基本的な内部構成を示すブロック
図である。
FIG. 4 is a block diagram showing a basic internal configuration of an image processing unit.

【図5】メイン制御部の電気的な接続を示すブロック図
である。
FIG. 5 is a block diagram showing electrical connection of a main control unit.

【図6】スキャン画像のページ綴じ部の輝度補正処理の
流れを概略的に示すフローチャートである。
FIG. 6 is a flowchart schematically showing a flow of brightness correction processing of a page binding part of a scan image.

【図7】スキャナ部のコンタクトガラス上にブック原稿
を載置した状態を示す斜視図である。
FIG. 7 is a perspective view showing a state where a book document is placed on the contact glass of the scanner unit.

【図8】入力した画像の一例を示す平面図である。FIG. 8 is a plan view showing an example of an input image.

【図9】スキャン画像のページ綴じ部の近傍の歪みを示
す説明図である。
FIG. 9 is an explanatory diagram showing distortion in the vicinity of a page binding portion of a scan image.

【図10】スキャン画像のページ綴じ部付近の画像輝度
分布を示すグラフである。
FIG. 10 is a graph showing an image brightness distribution in the vicinity of a page binding portion of a scan image.

【図11】スキャン画像をm×n個のブロックで分割し
た状態を示す説明図である。
FIG. 11 is an explanatory diagram showing a state in which a scan image is divided into m × n blocks.

【図12】非写真領域における画素レベルの地肌値の線
形補間処理による求め方を示す説明図である。
FIG. 12 is an explanatory diagram showing how to obtain a pixel level background value in a non-photographic area by linear interpolation processing.

【図13】スキャン画像の写真領域を含む部分を帯状領
域で分割した状態を示す説明図である。
FIG. 13 is an explanatory diagram showing a state in which a portion including a photographic region of a scanned image is divided into strip-shaped regions.

【図14】写真領域における画素レベルの地肌値の線形
補間処理による求め方を示す説明図である。
FIG. 14 is an explanatory diagram showing how to obtain a pixel level background value in a photographic area by linear interpolation processing.

【図15】輝度を補正したスキャン画像のページ綴じ部
付近の画像輝度分布を示すグラフである。
FIG. 15 is a graph showing an image brightness distribution in the vicinity of a page binding part of a scan image whose brightness is corrected.

【図16】コンタクトガラス上にブック原稿を載置した
状態を示す正面図である。
FIG. 16 is a front view showing a state where a book document is placed on the contact glass.

【符号の説明】[Explanation of symbols]

1 画像読取装置 2 コンタクトガラス 16 画像形成装置 29 画像輝度補正装置 40 ブック原稿 1 Image reading device 2 contact glass 16 image forming apparatus 29 Image brightness correction device 40 book manuscripts

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 2H108 AA01 CA01 CA03 CB01 2H110 AC02 BA17 CA02 5B057 AA11 BA02 CA08 CA12 CA16 CB08 CB12 CB16 CC02 CE05 CE11 DA08 DA17 DB02 DB09 DC22 DC36 5C077 LL04 MP01 PP10 PP43 PP44 PP48 PP68 PQ12 SS01 TT06   ─────────────────────────────────────────────────── ─── Continued front page    F-term (reference) 2H108 AA01 CA01 CA03 CB01                 2H110 AC02 BA17 CA02                 5B057 AA11 BA02 CA08 CA12 CA16                       CB08 CB12 CB16 CC02 CE05                       CE11 DA08 DA17 DB02 DB09                       DC22 DC36                 5C077 LL04 MP01 PP10 PP43 PP44                       PP48 PP68 PQ12 SS01 TT06

Claims (18)

【特許請求の範囲】[Claims] 【請求項1】 コンタクトガラス上に載置されたブック
原稿を画像読取手段により読み取ったスキャン画像の輝
度を補正する画像輝度補正装置において、 前記スキャン画像を複数のブロックに分割するブロック
分割手段と、 このブロック分割手段により分割された前記各ブロック
に含まれる画素の中で最も輝度値の高い画素をそれぞれ
選択し、その画素の輝度値を当該各ブロックの地肌値と
みなして検出する地肌値検出手段と、 この地肌値検出手段により前記ブロック毎に検出された
前記地肌値に基づき、前記スキャン画像に対して輝度補
正処理を施す輝度補正手段と、を備えることを特徴とす
る画像輝度補正装置。
1. An image brightness correction device for correcting the brightness of a scan image obtained by reading a book document placed on a contact glass by an image reading device, and a block dividing device for dividing the scan image into a plurality of blocks. Background value detecting means for selecting a pixel having the highest luminance value among the pixels included in each block divided by the block dividing means, and detecting the luminance value of the pixel as the background value of each block for detection. An image brightness correction device comprising: a brightness correction unit that applies brightness correction processing to the scan image based on the background value detected for each block by the background value detection unit.
【請求項2】 前記輝度補正手段は、前記各ブロックの
地肌値を各ブロック間で平滑化し、平滑後の地肌値に基
づいて前記スキャン画像の輝度を補正することを特徴と
する請求項1記載の画像輝度補正装置。
2. The brightness correction means smoothes the background value of each block between the blocks, and corrects the brightness of the scan image based on the smoothed background value. Image brightness correction device.
【請求項3】 前記輝度補正手段は、隣接する4ブロッ
クの各地肌値を基に補間処理を行って求めた前記スキャ
ン画像の画素毎の地肌値に基づき、前記スキャン画像の
輝度を補正することを特徴とする請求項1または2記載
の画像輝度補正装置。
3. The brightness correction means corrects the brightness of the scan image based on the background value of each pixel of the scan image obtained by performing an interpolation process based on the skin values of four adjacent blocks. The image brightness correction device according to claim 1 or 2.
【請求項4】 前記輝度補正手段は、補正する前の各画
素(x,y)の輝度値をI(x,y)、補間処理を行っ
て求められた前記スキャン画像の各画素(x,y)の地
肌値をbase(x,y)とした場合に、下記の式により、
g(x,y)=I(x,y)×(指定輝度値/base
(x,y))各画素(x,y)の補正輝度値g(x,
y)を求めて前記スキャン画像の輝度を補正することを
特徴とする請求項3記載の画像輝度補正装置。
4. The brightness correction means sets the brightness value of each pixel (x, y) before correction to I (x, y), and each pixel (x, y) of the scan image obtained by performing an interpolation process. When the background value of y) is base (x, y),
g (x, y) = I (x, y) × (specified luminance value / base
(X, y)) Corrected luminance value g (x, y) of each pixel (x, y)
The image brightness correction apparatus according to claim 3, wherein y) is calculated to correct the brightness of the scan image.
【請求項5】 前記スキャン画像の写真領域と非写真領
域とを判別する写真領域判別手段と、 この写真領域判別手段により前記写真領域が判別された
場合、前記スキャン画像の当該写真領域を含む部分を複
数の帯状領域に分割する帯状分割手段と、 この帯状分割手段により分割された前記各帯状領域に含
まれる前記非写真領域中の画素の中で最も輝度値の高い
画素をそれぞれ選択し、その画素の輝度値を当該帯状領
域の地肌値とみなして検出する帯状領域地肌値検出手段
と、 この帯状領域地肌値検出手段により前記帯状領域毎に検
出された前記地肌値に基づき、前記写真領域に対して輝
度補正処理を施す写真領域輝度補正手段と、を備えるこ
とを特徴とする請求項1ないし4のいずれか一記載の画
像輝度補正装置。
5. A photographic area discriminating means for discriminating between a photographic area and a non-photographic area of the scan image, and a portion including the photographic area of the scan image when the photographic area is discriminated by the photographic area discriminating means. To a plurality of strip-shaped areas, and a pixel having the highest luminance value among the pixels in the non-photographed area included in each of the strip-shaped areas divided by the strip-shaped dividing means is selected. Based on the background value detected for each of the belt-shaped areas by the belt-shaped area background value detecting means for detecting the luminance value of the pixel by considering it as the background value of the belt-shaped area, and in the photographic area. 5. The image brightness correction apparatus according to claim 1, further comprising: a photograph area brightness correction unit that performs brightness correction processing.
【請求項6】 前記写真領域輝度補正手段は、前記各帯
状領域の地肌値を各帯状領域間で平滑化し、平滑後の地
肌値に基づいて前記写真領域の輝度を補正することを特
徴とする請求項5記載の画像輝度補正装置。
6. The photograph area brightness correction means smoothes the background value of each of the belt-shaped areas between the belt-shaped areas, and corrects the luminance of the photograph area based on the smoothed background value. The image brightness correction device according to claim 5.
【請求項7】 前記写真領域輝度補正手段は、隣接する
前記帯状領域の各地肌値を基に補間処理を行って求めた
前記帯状領域の画素毎の地肌値に基づき、前記写真領域
の輝度を補正することを特徴とする請求項5または6記
載の画像輝度補正装置。
7. The photographic area brightness correction means determines the brightness of the photographic area based on the background value for each pixel of the belt-shaped area obtained by performing an interpolation process based on the background values of the adjacent belt-shaped areas. The image brightness correction device according to claim 5, wherein the image brightness correction device corrects the brightness.
【請求項8】 前記写真領域輝度補正手段は、補正する
前の前記写真領域の各画素(x,y)の輝度値をI
(x,y)、補間処理を行って求められた前記帯状領域
の各画素(x,y)の地肌値をbase(x,y)とした場
合に、下記の式により、 g(x,y)=I(x,y)×(指定輝度値/base
(x,y)) 前記写真領域の各画素(x,y)の補正輝度値g(x,
y)を求めて前記写真領域の輝度を補正することを特徴
とする請求項7記載の画像輝度補正装置。
8. The photographic area brightness correction means sets the brightness value of each pixel (x, y) of the photographic area before correction to I
(X, y), assuming that the background value of each pixel (x, y) of the band-shaped area obtained by performing the interpolation process is base (x, y), g (x, y) ) = I (x, y) × (specified luminance value / base
(X, y)) The corrected luminance value g (x, y of each pixel (x, y) in the photograph area
8. The image brightness correction apparatus according to claim 7, wherein y) is calculated to correct the brightness of the photographic area.
【請求項9】 原稿画像を読み取る画像読取手段と、 この画像読取手段により読み取られたスキャン画像の輝
度の補正を行う請求項1ないし8の何れか一記載の画像
輝度補正装置と、を備えることを特徴とする画像読取装
置。
9. An image reading unit for reading an original image, and an image brightness correction apparatus according to claim 1, which corrects the brightness of a scan image read by the image reading unit. An image reading device characterized by.
【請求項10】 原稿画像を読み取る画像読取手段と、 この画像読取手段により読み取られたスキャン画像の輝
度の補正を行う請求項1ないし8の何れか一記載の画像
輝度補正装置と、 この画像輝度補正装置から出力される画像データに基づ
いた画像を用紙上に印刷する画像印刷装置と、を備える
ことを特徴とする画像形成装置。
10. An image reading unit for reading an original image, an image brightness correction apparatus according to claim 1, which corrects the brightness of a scan image read by the image reading unit, and the image brightness. An image forming apparatus, comprising: an image printing apparatus that prints an image based on image data output from the correction apparatus on a sheet.
【請求項11】 コンタクトガラス上に載置されたブッ
ク原稿を画像読取手段により読み取ったスキャン画像の
輝度補正をコンピュータに実行させるプログラムであっ
て、前記コンピュータに、 前記スキャン画像を複数のブロックに分割するブロック
分割機能と、 このブロック分割機能により分割された前記各ブロック
に含まれる画素の中で最も輝度値の高い画素をそれぞれ
選択し、その画素の輝度値を当該各ブロックの地肌値と
みなして検出する地肌値検出機能と、 この地肌値検出機能により前記ブロック毎に検出された
前記地肌値に基づき、前記スキャン画像に対して輝度補
正処理を施す輝度補正機能と、を実行させることを特徴
とするプログラム。
11. A program for causing a computer to perform brightness correction of a scan image obtained by reading a book document placed on a contact glass by an image reading means, the computer dividing the scan image into a plurality of blocks. The block division function to perform and the pixel having the highest luminance value among the pixels included in each block divided by the block division function are selected, and the luminance value of the pixel is regarded as the background value of each block. A background value detecting function for detecting, and a brightness correction function for performing a brightness correction process on the scan image based on the background value detected for each block by the background value detecting function. Program to do.
【請求項12】 前記輝度補正機能は、前記各ブロック
の地肌値を各ブロック間で平滑化し、平滑後の地肌値に
基づいて前記スキャン画像の輝度を補正することを特徴
とする請求項11記載のプログラム。
12. The brightness correction function smoothes the background value of each block between the blocks, and corrects the brightness of the scan image based on the smoothed background value. Program of.
【請求項13】 前記輝度補正機能は、隣接する4ブロ
ックの各地肌値を基に補間処理を行って求めた前記スキ
ャン画像の画素毎の地肌値に基づき、前記スキャン画像
の輝度を補正することを特徴とする請求項11または1
2記載のプログラム。
13. The brightness correction function corrects the brightness of the scan image based on the background value of each pixel of the scan image obtained by performing an interpolation process based on the background values of four adjacent blocks. 11. The method according to claim 11 or 1, wherein
The program described in 2.
【請求項14】 前記輝度補正機能は、補正する前の各
画素(x,y)の輝度値をI(x,y)、補間処理を行
って求められた前記スキャン画像の各画素(x,y)の
地肌値をbase(x,y)とした場合に、下記の式によ
り、 g(x,y)=I(x,y)×(指定輝度値/base
(x,y)) 各画素(x,y)の補正輝度値g(x,y)を求めて前
記スキャン画像の輝度を補正することを特徴とする請求
項13記載のプログラム。
14. The brightness correction function uses I (x, y) as a brightness value of each pixel (x, y) before correction, and each pixel (x, y) of the scan image obtained by performing an interpolation process. When the background value of y) is base (x, y), g (x, y) = I (x, y) × (designated luminance value / base
(X, y)) The program according to claim 13, wherein the brightness of the scan image is corrected by obtaining a corrected brightness value g (x, y) of each pixel (x, y).
【請求項15】 前記スキャン画像の写真領域と非写真
領域とを判別する写真領域判別機能と、 この写真領域判別機能により前記写真領域が判別された
場合、前記スキャン画像の当該写真領域を含む部分を複
数の帯状領域に分割する帯状分割機能と、 この帯状分割機能により分割された前記各帯状領域に含
まれる前記非写真領域中の画素の中で最も輝度値の高い
画素をそれぞれ選択し、その画素の輝度値を当該帯状領
域の地肌値とみなして検出する帯状領域地肌値検出機能
と、 この帯状領域地肌値検出機能により前記帯状領域毎に検
出された前記地肌値に基づき、前記写真領域に対して輝
度補正処理を施す写真領域輝度補正機能と、を備えるこ
とを特徴とする請求項11ないし14のいずれか一記載
のプログラム。
15. A photograph area discrimination function for discriminating a photograph area and a non-photo area of the scan image, and a portion including the photograph area of the scan image when the photograph area is discriminated by the photograph area discrimination function. To a plurality of strip-shaped areas, and a pixel having the highest luminance value among the pixels in the non-photographic area included in each of the strip-shaped areas divided by the strip-shaped division function is selected, Based on the background value detected for each of the belt-shaped areas by the belt-shaped area background value detection function that detects the brightness value of the pixel as the background value of the belt-shaped area and is detected in the photograph area. 15. The program according to claim 11, further comprising: a photo area brightness correction function for performing brightness correction processing.
【請求項16】 前記写真領域輝度補正機能は、前記各
帯状領域の地肌値を各帯状領域間で平滑化し、平滑後の
地肌値に基づいて前記写真領域の輝度を補正することを
特徴とする請求項15記載のプログラム。
16. The photo area brightness correction function smoothes the background value of each of the belt-shaped areas between the belt-shaped areas, and corrects the brightness of the photograph area based on the smoothed background value. The program according to claim 15.
【請求項17】 前記写真領域輝度補正機能は、隣接す
る前記帯状領域の各地肌値を基に補間処理を行って求め
た前記帯状領域の画素毎の地肌値に基づき、前記写真領
域の輝度を補正することを特徴とする請求項15または
16記載のプログラム。
17. The photographic area brightness correction function calculates the luminance of the photographic area based on a background value for each pixel of the zonal area obtained by performing an interpolation process based on each flesh value of the adjacent zonal area. The program according to claim 15 or 16, wherein the program is corrected.
【請求項18】 前記写真領域輝度補正機能は、補正す
る前の前記写真領域の各画素(x,y)の輝度値をI
(x,y)、補間処理を行って求められた前記帯状領域
の各画素(x,y)の地肌値をbase(x,y)とした場
合に、下記の式により、 g(x,y)=I(x,y)×(指定輝度値/base
(x,y)) 前記写真領域の各画素(x,y)の補正輝度値g(x,
y)を求めて前記写真領域の輝度を補正することを特徴
とする請求項17記載のプログラム。
18. The brightness correction function of the photo area sets the brightness value of each pixel (x, y) of the photo area before correction to I
(X, y), assuming that the background value of each pixel (x, y) of the band-shaped area obtained by performing the interpolation process is base (x, y), g (x, y) ) = I (x, y) × (specified luminance value / base
(X, y)) The corrected luminance value g (x, y of each pixel (x, y) in the photograph area
18. The program according to claim 17, wherein y) is calculated to correct the luminance of the photograph area.
JP2001260397A 2001-08-29 2001-08-29 Image brightness correction apparatus, image reading apparatus, image forming apparatus, and program Expired - Fee Related JP4111697B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001260397A JP4111697B2 (en) 2001-08-29 2001-08-29 Image brightness correction apparatus, image reading apparatus, image forming apparatus, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001260397A JP4111697B2 (en) 2001-08-29 2001-08-29 Image brightness correction apparatus, image reading apparatus, image forming apparatus, and program

Publications (2)

Publication Number Publication Date
JP2003069824A true JP2003069824A (en) 2003-03-07
JP4111697B2 JP4111697B2 (en) 2008-07-02

Family

ID=19087608

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001260397A Expired - Fee Related JP4111697B2 (en) 2001-08-29 2001-08-29 Image brightness correction apparatus, image reading apparatus, image forming apparatus, and program

Country Status (1)

Country Link
JP (1) JP4111697B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100295977A1 (en) * 2009-05-20 2010-11-25 Casio Computer Co., Ltd. Image processor and recording medium
CN102801900A (en) * 2011-05-27 2012-11-28 富士施乐株式会社 Image processing device and image processing method
CN102801896A (en) * 2011-05-25 2012-11-28 富士施乐株式会社 Image processing apparatus, and image processing method
US8792139B2 (en) 2010-12-28 2014-07-29 Canon Kabushiki Kaisha Image processing apparatus and method of controlling same
CN106331473A (en) * 2015-06-30 2017-01-11 卡西欧计算机株式会社 Image processing apparatus, image processing system, and image processing method

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5488530B2 (en) 2011-05-23 2014-05-14 富士ゼロックス株式会社 Image processing apparatus and image processing program
JP6720012B2 (en) 2016-08-01 2020-07-08 オリンパス株式会社 Image processing device, imaging device, image processing method, and image processing program

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100295977A1 (en) * 2009-05-20 2010-11-25 Casio Computer Co., Ltd. Image processor and recording medium
US8792139B2 (en) 2010-12-28 2014-07-29 Canon Kabushiki Kaisha Image processing apparatus and method of controlling same
CN102801896A (en) * 2011-05-25 2012-11-28 富士施乐株式会社 Image processing apparatus, and image processing method
JP2012248945A (en) * 2011-05-25 2012-12-13 Fuji Xerox Co Ltd Image processor and image processing program
CN102801900A (en) * 2011-05-27 2012-11-28 富士施乐株式会社 Image processing device and image processing method
JP2012249065A (en) * 2011-05-27 2012-12-13 Fuji Xerox Co Ltd Image processor and image processing program
US8958637B2 (en) 2011-05-27 2015-02-17 Fuji Xerox Co., Ltd. Image processing apparatus, image processing method, and computer readable medium
CN106331473A (en) * 2015-06-30 2017-01-11 卡西欧计算机株式会社 Image processing apparatus, image processing system, and image processing method

Also Published As

Publication number Publication date
JP4111697B2 (en) 2008-07-02

Similar Documents

Publication Publication Date Title
JP4141235B2 (en) Image correction apparatus and program
US7016081B2 (en) Image distortion correction apparatus, distortion correction method therefor, recording media, image scanner and image construction apparatus
JP2003234888A (en) Image correction device, program, storage medium, and method for correcting image
JP4271085B2 (en) Image correction apparatus, image reading apparatus, program, and storage medium
JP4085580B2 (en) Image processing device
JP4111697B2 (en) Image brightness correction apparatus, image reading apparatus, image forming apparatus, and program
JP4646130B2 (en) Image processing apparatus, image processing method, program, and storage medium storing program
JP3983721B2 (en) Image distortion correction apparatus, image reading apparatus, image forming apparatus, and program
JP2009303164A (en) Image reading apparatus and method of controlling the same
JP4577844B2 (en) Image processing apparatus, image processing method, program, and storage medium storing program
JP4318874B2 (en) Blurred image correction apparatus, image reading apparatus, image forming apparatus, and program
JP2003143407A (en) Picture luminance correcting apparatus, picture read apparatus, picture forming apparatus, program, and memorizing medium
JP3865215B2 (en) Image distortion correction apparatus, program, storage medium, and image distortion correction method
JP4577845B2 (en) Image processing apparatus, image processing method, program, and storage medium storing program
JP3917421B2 (en) Image brightness correction apparatus, image reading apparatus, image forming apparatus, program, and storage medium
JP4480291B2 (en) Image distortion correction apparatus, storage medium, program, image distortion correction method, image reading apparatus, and image forming apparatus
JP3926294B2 (en) Image distortion correction apparatus, image reading apparatus, image forming apparatus, image distortion correction method, image distortion correction program, and recording medium
JP3852247B2 (en) Image forming apparatus and transfer image distortion correction method
JP2003234890A (en) Image correction device, program, storage medium, and method for correcting image
JP3576812B2 (en) Image processing apparatus and image processing method
JP2003204428A (en) Image correcting device, image reader, image forming apparatus program, and recording medium
JP2003069807A (en) Image distortion correction device, image reader, image forming device and program
JPH05336341A (en) Image processor
JP3877142B2 (en) Image distortion correction apparatus, image reading apparatus, image forming apparatus, program, and storage medium
JP4061256B2 (en) Image distortion correction apparatus, image reading apparatus, image forming apparatus, and program

Legal Events

Date Code Title Description
RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20041004

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20051021

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060828

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20070222

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20071105

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20071218

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080215

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20080311

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20080408

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110418

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120418

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130418

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140418

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees