JP2020068474A - Image processing apparatus and image correction method - Google Patents

Image processing apparatus and image correction method Download PDF

Info

Publication number
JP2020068474A
JP2020068474A JP2018200737A JP2018200737A JP2020068474A JP 2020068474 A JP2020068474 A JP 2020068474A JP 2018200737 A JP2018200737 A JP 2018200737A JP 2018200737 A JP2018200737 A JP 2018200737A JP 2020068474 A JP2020068474 A JP 2020068474A
Authority
JP
Japan
Prior art keywords
density
image
area
processing unit
density value
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.)
Pending
Application number
JP2018200737A
Other languages
Japanese (ja)
Inventor
田中 一徳
Kazunori Tanaka
一徳 田中
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.)
Kyocera Document Solutions Inc
Original Assignee
Kyocera Document Solutions Inc
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 Kyocera Document Solutions Inc filed Critical Kyocera Document Solutions Inc
Priority to JP2018200737A priority Critical patent/JP2020068474A/en
Publication of JP2020068474A publication Critical patent/JP2020068474A/en
Pending legal-status Critical Current

Links

Landscapes

  • Facsimile Image Signal Circuits (AREA)

Abstract

To provide an image processing apparatus and an image correction method, allowing for suppression of the occurrence of such a trouble that a density value of a background area of an image of a document read by an image reading unit is partially darkened in an area near a high-density area.SOLUTION: An image reading unit of an image processing apparatus 1 reads an image of a document. A first detection processing unit detects a density value of a background area in a read image read by the image reading unit. A second detection processing unit detects a high-density area in the read image. An identification processing unit identifies, as a pixel to be corrected, a neighboring pixel satisfying a predetermined correction condition among neighboring pixels located in a neighboring area of the high-density area. A correction processing unit corrects a density value of the pixel o be corrected.SELECTED DRAWING: Figure 1

Description

本発明は、画像処理装置及び画像補正方法に関する。   The present invention relates to an image processing device and an image correction method.

CCD(Charge Coupled Device)のような画像読取部により読み取られた原稿の画像から地肌濃度を検出し、検出された地肌濃度に応じて決定される閾値を用いて前記画像に対して地肌除去を行うことが可能な画像処理装置が知られている(例えば、特許文献1参照)。   A background density is detected from an image of a document read by an image reading unit such as a CCD (Charge Coupled Device), and the background is removed from the image using a threshold value determined according to the detected background density. An image processing device capable of performing the above is known (for example, refer to Patent Document 1).

特開平4−37258号公報JP-A-4-37258

ところで、CCDのような画像読取部により光学的に読み取られた原稿の画像では、文字のような高濃度領域の近傍領域において、背景領域の濃度値が本来の濃度値よりも暗くなることがある。これは、CCDのような画像読取部によって読み取られる各画素の濃度値は、前記画素に対応する原稿上の領域からの反射光に加えて、前記領域の近傍領域からの反射光の影響も受けるからである。   By the way, in an image of a document optically read by an image reading unit such as a CCD, the density value of the background area may be darker than the original density value in the vicinity of a high density area such as a character. . This is because the density value of each pixel read by an image reading unit such as a CCD is affected by the reflected light from the area near the area in addition to the reflected light from the area on the document corresponding to the pixel. Because.

本発明の目的は、画像読取部により読み取られる原稿の画像の背景領域の濃度値が高濃度領域の近傍領域において部分的に暗くなってしまうことを抑制することが可能な画像処理装置及び画像補正方法を提供することにある。   An object of the present invention is to provide an image processing apparatus and an image correction capable of suppressing the density value of the background area of the image of the document read by the image reading unit from being partially dark in the vicinity of the high density area. To provide a method.

本発明の一の局面に係る画像処理装置は、画像読取部と、第1検出処理部と、第2検出処理部と、特定処理部と、補正処理部とを備える。前記画像読取部は、原稿の画像を読み取る。前記第1検出処理部は、前記画像読取部により読み取られる読取画像における背景領域の濃度値を検出する。前記第2検出処理部は、前記読取画像における高濃度領域を検出する。前記特定処理部は、前記高濃度領域の近傍領域に位置する近傍画素のうち予め定められた補正条件を満たす近傍画素を補正対象画素として特定する。前記補正処理部は、前記補正対象画素の濃度値を補正する。   An image processing apparatus according to one aspect of the present invention includes an image reading unit, a first detection processing unit, a second detection processing unit, a specific processing unit, and a correction processing unit. The image reading unit reads an image of a document. The first detection processing unit detects the density value of the background area in the read image read by the image reading unit. The second detection processing unit detects a high density area in the read image. The identification processing unit identifies, as a pixel to be corrected, a neighboring pixel satisfying a predetermined correction condition among the neighboring pixels located in the neighboring region of the high density region. The correction processing unit corrects the density value of the correction target pixel.

本発明の一の局面に係る画像補正方法は、画像読取ステップと、第1検出ステップと、第2検出ステップと、特定ステップと、補正ステップとを含む。前記画像読取ステップでは、原稿の画像が読み取られる。前記第1検出ステップでは、前記画像読取ステップで読み取られる読取画像における背景領域の濃度値が検出される。前記第2検出ステップでは、前記読取画像における高濃度領域が検出される。前記特定ステップでは、前記高濃度領域の近傍領域に位置する近傍画素のうち予め定められた補正条件を満たす近傍画素が補正対象画素として特定される。前記補正ステップでは、前記補正対象画素の濃度値が補正される。   An image correction method according to one aspect of the present invention includes an image reading step, a first detecting step, a second detecting step, a specifying step, and a correcting step. In the image reading step, the image of the document is read. In the first detecting step, the density value of the background area in the read image read in the image reading step is detected. In the second detecting step, a high density area in the read image is detected. In the specifying step, among the neighboring pixels located in the neighboring region of the high-density region, neighboring pixels satisfying a predetermined correction condition are designated as correction target pixels. In the correction step, the density value of the correction target pixel is corrected.

本発明によれば、画像読取部により読み取られる原稿の画像の背景領域の濃度値が高濃度領域の近傍領域において部分的に暗くなってしまうことを抑制することが可能な画像処理装置及び画像補正方法が提供される。   According to the present invention, the image processing apparatus and the image correction capable of suppressing the density value of the background area of the image of the document read by the image reading unit from being partially dark in the vicinity of the high density area. A method is provided.

図1は、本発明の実施形態に係る画像処理装置のシステム構成を示すブロック図である。FIG. 1 is a block diagram showing the system configuration of an image processing apparatus according to an embodiment of the present invention. 図2は、本発明の実施形態に係る画像処理装置で用いられる原稿及び読取画像の一例を示す図である。FIG. 2 is a diagram showing an example of a document and a read image used in the image processing apparatus according to the embodiment of the present invention. 図3は、本発明の実施形態に係る画像処理装置で実行される画像補正処理の手順の一例を示すフローチャートである。FIG. 3 is a flowchart showing an example of the procedure of the image correction processing executed by the image processing apparatus according to the embodiment of the present invention. 図4は、本発明の実施形態に係る画像処理装置で用いられる補正前の読取画像及び補正後の読取画像の一例を示す図である。FIG. 4 is a diagram showing an example of a read image before correction and a read image after correction used in the image processing apparatus according to the embodiment of the present invention. 図5は、本発明の実施形態に係る画像処理装置で用いられる第2閾値の変更方法の一例を説明するための図である。FIG. 5 is a diagram for explaining an example of a second threshold value changing method used in the image processing apparatus according to the embodiment of the present invention.

以下添付図面を参照しながら、本発明の実施形態について説明し、本発明の理解に供する。なお、以下の実施形態は、本発明を具体化した一例であって、本発明の技術的範囲を限定するものではない。   Embodiments of the present invention will be described below with reference to the accompanying drawings to provide an understanding of the present invention. The following embodiments are examples of embodying the present invention and do not limit the technical scope of the present invention.

[画像処理装置の構成]
図1に示されるように、本発明の実施形態に係る画像処理装置1は、操作表示部10、ADF(Auto Document Feeder)11、画像読取部12、画像形成部13、通信I/F14、記憶部15、及び制御部16などを備える。具体的に、画像処理装置1は、プリンター機能、スキャナー機能、コピー機能、及びファクシミリ機能などを有する複合機である。なお、本発明は、複合機に限らず、画像読取部12を備える任意の画像処理装置に適用可能である。
[Configuration of image processing device]
As shown in FIG. 1, an image processing apparatus 1 according to an embodiment of the present invention includes an operation display unit 10, an ADF (Auto Document Feeder) 11, an image reading unit 12, an image forming unit 13, a communication I / F 14, and a storage. The unit 15 and the control unit 16 are provided. Specifically, the image processing apparatus 1 is a multifunction machine having a printer function, a scanner function, a copy function, a facsimile function, and the like. The present invention is not limited to the multi-function peripheral, and can be applied to any image processing apparatus including the image reading unit 12.

操作表示部10は、情報を表示する液晶ディスプレーなどの表示部と、ユーザー操作を受け付けるタッチパネル及び操作ボタンなどの操作部とを備える。   The operation display unit 10 includes a display unit such as a liquid crystal display that displays information, and an operation unit such as a touch panel and operation buttons that accept user operations.

ADF11は、原稿セット部、搬送ローラー、原稿押さえ、及び排紙部を備え、画像読取部12の読み取り対象となる原稿を搬送する自動原稿搬送装置である。   The ADF 11 is an automatic document feeder that includes a document setting unit, a transport roller, a document retainer, and a paper discharge unit, and transports a document to be read by the image reading unit 12.

画像読取部12は、原稿台、光源、ミラー、光学レンズ、及びCCDを備え、原稿D1(図2参照)の画像を読み取って読取画像G1(図2参照)として出力することが可能である。   The image reading unit 12 includes a document table, a light source, a mirror, an optical lens, and a CCD, and can read an image of the document D1 (see FIG. 2) and output it as a read image G1 (see FIG. 2).

画像形成部13は、電子写真方式又はインクジェット方式で画像データに基づく印刷処理を実行することが可能であり、前記画像データに基づいてシート上に画像を形成する。例えば、画像形成部13が電子写真方式で印刷処理を実行するものである場合、画像形成部13は感光体ドラム、帯電器、露光装置、現像装置、転写装置、及び定着装置などを備える。   The image forming unit 13 can execute a printing process based on image data by an electrophotographic system or an inkjet system, and forms an image on a sheet based on the image data. For example, when the image forming unit 13 executes the printing process by the electrophotographic method, the image forming unit 13 includes a photosensitive drum, a charger, an exposure device, a developing device, a transfer device, a fixing device, and the like.

通信I/F14は、電話回線、インターネット、又はLANなどの通信網を介して、外部のファクシミリ装置又はパーソナルコンピューターなどの情報処理装置との間で所定の通信プロトコルに従った通信処理を実行することが可能な通信インターフェイスである。   The communication I / F 14 performs communication processing according to a predetermined communication protocol with an external facsimile device or an information processing device such as a personal computer via a communication network such as a telephone line, the Internet, or a LAN. It is a communication interface that can.

記憶部15は、ハードディスク又はEEPROM(登録商標)などの不揮発性の記憶部である。記憶部15には、制御部16によって実行される各種の制御プログラム、及び各種のデータなどが記憶される。前記制御プログラムには、制御部16に後述の画像補正処理(図3参照)を実行させるための制御プログラムが含まれる。   The storage unit 15 is a non-volatile storage unit such as a hard disk or an EEPROM (registered trademark). The storage unit 15 stores various control programs executed by the control unit 16 and various data. The control program includes a control program for causing the control unit 16 to execute an image correction process (see FIG. 3) described later.

制御部16は、CPU、ROM、及びRAMなどの制御機器を備える。前記CPUは、各種の演算処理を実行するプロセッサーである。前記ROMは、前記CPUに各種の処理を実行させるための制御プログラムなどの情報が予め記憶される不揮発性の記憶部である。前記RAMは、前記CPUが実行する各種の処理の一時記憶メモリー(作業領域)として使用される揮発性又は不揮発性の記憶部である。   The control unit 16 includes control devices such as a CPU, a ROM, and a RAM. The CPU is a processor that executes various arithmetic processes. The ROM is a non-volatile storage unit in which information such as a control program for causing the CPU to execute various processes is stored in advance. The RAM is a volatile or nonvolatile storage unit used as a temporary storage memory (work area) for various processes executed by the CPU.

ところで、原稿が白紙に黒色の文字が印刷されたものである場合、画像読取部12により光学的に読み取られた原稿の画像(例えば、図2に示される読取画像G1)では、文字を表す画像に対応する高濃度領域A1(図2における黒塗り部分)の近傍領域A3(図2におけるハッチング部分)において、近傍領域Aの濃度値が本来の濃度値(つまり、背景領域A2の濃度値)よりも暗くなることがある。これは、画像読取部12によって読み取られる各画素の濃度値は、前記画素に対応する原稿上の領域からの反射光に加えて、前記領域の近傍領域からの反射光の影響も受けるからである。これに対して、本実施形態に係る画像処理装置1によれば、画像読取部12により読み取られる原稿の画像の背景領域A2の濃度値が高濃度領域A1の近傍領域A3において部分的に暗くなってしまうことを抑制することが可能である。   By the way, in the case where the original is a white paper with black characters printed, the image of the original optically read by the image reading unit 12 (for example, the read image G1 shown in FIG. 2) is an image representing the characters. In the vicinity area A3 (hatched portion in FIG. 2) of the high-density area A1 (black portion in FIG. 2) corresponding to, the density value of the vicinity area A is smaller than the original density value (that is, the density value of the background area A2). May get dark. This is because the density value of each pixel read by the image reading unit 12 is affected by the reflected light from the area near the area in addition to the reflected light from the area on the original corresponding to the pixel. . On the other hand, according to the image processing apparatus 1 according to the present embodiment, the density value of the background area A2 of the image of the document read by the image reading unit 12 is partially dark in the vicinity area A3 of the high density area A1. It is possible to suppress that.

具体的に、制御部16は、第1検出処理部161、第2検出処理部162、特定処理部163、及び補正処理部164を含む。なお、制御部16は、前記制御プログラムに従って各種の処理を実行することによりこれらの各処理部として機能する。また、制御部16は、これらの各処理部の一部又は複数の処理機能を実現する電子回路を備えるものであってもよい。   Specifically, the control unit 16 includes a first detection processing unit 161, a second detection processing unit 162, a specific processing unit 163, and a correction processing unit 164. The control unit 16 functions as each of these processing units by executing various processes according to the control program. Further, the control unit 16 may include an electronic circuit that realizes a part of these processing units or a plurality of processing functions.

第1検出処理部161は、画像読取部12により読み取られる読取画像G1(図2参照)における背景領域A2の濃度値を検出する。例えば、前記原稿が白紙に文字が印刷された原稿(例えば、図2に示される原稿D1)である場合、背景領域A2の濃度値として白色に相当する濃度値が検出される。また、前記原稿が新聞である場合、背景領域A2の濃度値として灰色に相当する濃度値が検出される。背景領域A2の濃度値を検出する手法としては、公知の任意の手法を採用することができる。例えば、第1検出処理部161は、前記画像の濃度ヒストグラム(すなわち、濃度値ごとの画素数を示すヒストグラム)を生成し、前記濃度ヒストグラムにおけるピークに対応する濃度値を、背景領域A2の濃度値として検出してもよい。   The first detection processing unit 161 detects the density value of the background area A2 in the read image G1 (see FIG. 2) read by the image reading unit 12. For example, when the original is an original in which characters are printed on a blank sheet (for example, the original D1 shown in FIG. 2), a density value corresponding to white is detected as the density value of the background area A2. When the original is a newspaper, a density value corresponding to gray is detected as the density value of the background area A2. As a method for detecting the density value of the background area A2, any known method can be adopted. For example, the first detection processing unit 161 generates a density histogram of the image (that is, a histogram indicating the number of pixels for each density value), and calculates the density value corresponding to the peak in the density histogram as the density value of the background area A2. May be detected as

第2検出処理部162は、前記読取画像における高濃度領域A1を検出する。高濃度領域A1は、例えば、濃度値が予め定められた閾値以上の領域であってもよいし、背景領域A2よりも予め定められた閾値以上暗い領域であってもよい。例えば、前記原稿が白紙に黒文字が印刷された原稿(例えば、図2に示される原稿D1)である場合、読取画像G1における高濃度領域A1は、文字部分の領域である。なお、第2検出処理部162は、公知の任意のエッジ抽出手法(例えば、Sobelフィルタなど)を用いて、高濃度領域A1のエッジ(すなわち、背景領域A2と隣接する部分)を検出してもよい。   The second detection processing unit 162 detects the high density area A1 in the read image. The high-density area A1 may be, for example, an area whose density value is equal to or larger than a predetermined threshold value, or may be an area darker than the background area A2 by a predetermined threshold value or more. For example, when the original is an original in which black characters are printed on white paper (for example, the original D1 shown in FIG. 2), the high density area A1 in the read image G1 is an area of a character portion. The second detection processing unit 162 may detect an edge of the high-density area A1 (that is, a portion adjacent to the background area A2) by using a known arbitrary edge extraction method (for example, Sobel filter). Good.

特定処理部163は、高濃度領域A1の近傍領域A3に位置する近傍画素のうち予め定められた補正条件を満たす近傍画素を補正対象画素として特定する。近傍領域A3は、例えば、高濃度領域A1のエッジ上の任意の画素を中心としたa×b画素(ただし、a及びbは任意の整数)の範囲内の領域である。例えば、近傍領域A3は、高濃度領域A1のエッジ上の任意の画素を中心とした3×3画素の範囲内の領域であってもよい。なお、近傍領域A3は、状況に応じて適宜に変更されてもよい。例えば、高濃度領域A1と背景領域A2との濃度差が大きいほど、近傍領域A3を広くしてもいい。   The identification processing unit 163 identifies, as the correction target pixel, a neighboring pixel satisfying a predetermined correction condition among the neighboring pixels located in the neighboring area A3 of the high density area A1. The neighboring area A3 is, for example, an area within a range of a × b pixels (where a and b are arbitrary integers) centered on an arbitrary pixel on the edge of the high-density area A1. For example, the neighborhood area A3 may be an area within a range of 3 × 3 pixels centered on an arbitrary pixel on the edge of the high-density area A1. The neighborhood area A3 may be appropriately changed depending on the situation. For example, the larger the density difference between the high density area A1 and the background area A2, the wider the neighboring area A3 may be.

前記補正条件には、前記近傍画素の濃度値が、第1検出処理部161により検出される背景領域A2の濃度値を基準とした予め定められた第1濃度範囲内であることが含まれていてもよい。前記第1濃度範囲は、例えば、第1検出処理部161により検出される背景領域A2の濃度値よりも予め定められた第1閾値以上暗い濃度範囲(すなわち、背景領域A2より暗く、且つ背景領域A2との濃度差が前記第1閾値以上であるような濃度範囲)であってもよい。前記第1閾値は、例えば、0より大きい任意の値である。前記第1閾値は、予め設定された固定値であってもよいし、状況に応じて適宜に変更されてもよい。例えば、背景領域A2の濃度値、高濃度領域A1と背景領域A2との濃度差などに応じて、前記第1閾値が自動的に変更されてもよい。   The correction condition includes that the density value of the neighboring pixel is within a predetermined first density range based on the density value of the background area A2 detected by the first detection processing unit 161. May be. The first density range is, for example, a density range darker than a density value of the background area A2 detected by the first detection processing unit 161 by a predetermined threshold or more (that is, darker than the background area A2 and the background area A2). The density range may be such that the density difference from A2 is equal to or more than the first threshold value. The first threshold is an arbitrary value greater than 0, for example. The first threshold value may be a preset fixed value, or may be appropriately changed depending on the situation. For example, the first threshold value may be automatically changed according to the density value of the background area A2, the density difference between the high density area A1 and the background area A2, and the like.

前記補正条件には、前記近傍画素の濃度値が、前記高濃度領域の濃度値を基準とした予め定められた第2濃度範囲内であることが含まれていてもよい。前記第2濃度範囲は、例えば、高濃度領域A1の濃度値よりも予め定められた第2閾値以上明るい濃度範囲(すなわち、高濃度領域A1より明るく、且つ高濃度領域A1との濃度差が前記第2閾値以上であるような濃度範囲)であってもよい。前記第2閾値は、例えば、0より大きい任意の値である。前記第2閾値は、予め設定された固定値であってもよいし、状況に応じて適宜に変更されてもよい。例えば、高濃度領域A1の濃度値、高濃度領域A1と背景領域A2との濃度差などに応じて、前記第2閾値が自動的に変更されてもよい。   The correction condition may include that the density value of the neighboring pixel is within a predetermined second density range based on the density value of the high density region. The second density range is, for example, a density range brighter than a density value of the high-density area A1 by a predetermined second threshold or more (that is, brighter than the high-density area A1 and the density difference from the high-density area A1 is The density range may be a second threshold value or more). The second threshold is an arbitrary value greater than 0, for example. The second threshold value may be a preset fixed value or may be appropriately changed depending on the situation. For example, the second threshold value may be automatically changed according to the density value of the high density area A1 and the density difference between the high density area A1 and the background area A2.

また、特定処理部163は、前記近傍画素を中心とした特定範囲における高濃度領域A1の画素数に応じて前記第2濃度範囲を変更してもよい。前記特定範囲は、例えば、前記近傍画素を中心としたc×d画素(ただし、c及びdは任意の整数)の範囲内の領域である。前記特定範囲が前記近傍画素を中心とした3×3画素の範囲内の領域である場合、図5の(A)に示される近傍画素P1を中心とした前記特定範囲における高濃度領域A1の画素数は1個である。また、図5の(B)に示される近傍画素P2を中心とした前記特定範囲における高濃度領域A1の画素数は3個である。また、図5の(C)に示される近傍画素P3を中心とした前記特定範囲における高濃度領域A1の画素数は5個である。   Further, the specification processing unit 163 may change the second density range according to the number of pixels in the high density area A1 in the specific range centered on the neighboring pixel. The specific range is, for example, a region within a range of c × d pixels (where c and d are arbitrary integers) centered on the neighboring pixels. When the specific range is an area within a range of 3 × 3 pixels centered on the neighboring pixel, pixels of the high-density area A1 in the specific range centered on the neighboring pixel P1 shown in FIG. The number is one. Further, the number of pixels in the high-density area A1 in the specific range centered on the neighboring pixel P2 shown in FIG. 5B is three. Further, the number of pixels in the high-density area A1 in the specific range centered on the neighboring pixel P3 shown in FIG. 5C is five.

例えば、特定処理部163は、前記特定範囲における高濃度領域A1の画素数が多いほど、前記第2閾値を大きくしてもよい。これは、前記特定範囲における高濃度領域A1の画素数が多いほど、前記近傍画素の濃度値が本来の濃度値よりも暗くなるため、それに応じて前記第2閾値を大きくする(すなわち、より暗い近傍画素まで補正対象画素とする)ことにより、高濃度領域A1の近傍領域A3の濃度値を適切に補正することが可能となる。   For example, the specific processing unit 163 may increase the second threshold value as the number of pixels in the high density region A1 in the specific range increases. This is because as the number of pixels in the high-density area A1 in the specific range increases, the density value of the neighboring pixels becomes darker than the original density value, and accordingly the second threshold value is increased (that is, darker). It is possible to appropriately correct the density value of the neighboring area A3 of the high-density area A1 by setting the neighboring pixels as the correction target pixels.

補正処理部164は、前記補正対象画素の濃度値を補正する。具体的に、補正処理部164は、前記補正対象画素の濃度値を、背景領域A2の濃度値に近づけるように補正する。例えば、補正処理部164は、前記補正対象画素の濃度値を、背景領域A2の濃度値と同じ濃度値に補正してもよい。これにより、図4に示される補正後の読取画像G2のように、高濃度領域A1の近傍領域A3において部分的に暗くなってしまっている背景領域A2の濃度値が、本来の背景領域A2の濃度値に補正される。   The correction processing unit 164 corrects the density value of the correction target pixel. Specifically, the correction processing unit 164 corrects the density value of the correction target pixel so as to approach the density value of the background area A2. For example, the correction processing unit 164 may correct the density value of the correction target pixel to the same density value as the density value of the background area A2. As a result, as in the corrected read image G2 shown in FIG. 4, the density value of the background area A2 that is partially dark in the vicinity area A3 of the high density area A1 is the same as that of the original background area A2. Corrected to the density value.

なお、他の実施形態では、制御部16は、判定処理部165(図1参照)を含んでいてもよい。判定処理部165は、高濃度領域A1が文字又は線図であるか否かを判定する。例えば、判定処理部165は、高濃度領域A1の幅(すなわち、高濃度領域A1における対向する2つのエッジ間の距離)を算出し、算出された幅が予め定められた閾値以下である場合に、高濃度領域A1が文字又は線図であると判定してもよい。そして、特定処理部163は、判定処理部165により文字又は線図であると判定された高濃度領域A1の近傍領域A3に位置する近傍画素の中から前記補正対象画素を特定してもよい。これにより、文字又は線図の近傍領域に位置する画素のみを補正対象画素とすることができ、文字でも線図でもない高濃度領域A1(例えば、写真画像内の高濃度領域A1など)の近傍領域に位置する画素が不必要に補正されることを抑制することが可能である。   Note that in another embodiment, the control unit 16 may include the determination processing unit 165 (see FIG. 1). The determination processing unit 165 determines whether the high-density area A1 is a character or a diagram. For example, the determination processing unit 165 calculates the width of the high-density area A1 (that is, the distance between two opposing edges in the high-density area A1), and when the calculated width is less than or equal to a predetermined threshold value. Alternatively, it may be determined that the high-density area A1 is a character or a diagram. Then, the identification processing unit 163 may identify the correction target pixel from the neighboring pixels located in the neighboring region A3 of the high-density region A1 determined to be a character or a diagram by the determination processing unit 165. As a result, only the pixels located in the vicinity area of the character or diagram can be set as the correction target pixel, and the vicinity of the high density area A1 (for example, the high density area A1 in the photographic image) which is neither a character nor a diagram. It is possible to suppress unnecessary correction of pixels located in the area.

[画像補正処理]
次に、図3を参照しつつ、制御部16によって実行される画像補正処理の手順の一例について説明する。ここで、ステップS1,S2,・・・は、制御部16により実行される処理手順(ステップ)の番号を表している。なお、前記画像補正処理は、例えば、操作表示部10に対する画像読取開始操作が行われたことに応じて開始される。
[Image correction processing]
Next, an example of the procedure of the image correction processing executed by the control unit 16 will be described with reference to FIG. Here, steps S1, S2, ... Show the numbers of the processing procedures (steps) executed by the control unit 16. The image correction process is started in response to an image reading start operation performed on the operation display unit 10, for example.

<ステップS1>
まず、ステップS1において、制御部16は、画像読取部12を制御して、原稿台又はADF11の原稿セット部に載置された原稿D1の画像を読み取る。なお、ここでは、原稿D1が白紙に黒色の文字が印刷されたものである場合について説明する。当該ステップS1は、本発明の画像読取ステップの一例である。
<Step S1>
First, in step S1, the control unit 16 controls the image reading unit 12 to read the image of the document D1 placed on the document table or the document setting unit of the ADF 11. Note that, here, a case will be described in which the document D1 is a blank sheet in which black characters are printed. The step S1 is an example of the image reading step of the present invention.

<ステップS2>
ステップS2において、制御部16は、前記ステップS1で読み取られた読取画像G1の濃度ヒストグラムを生成する。
<Step S2>
In step S2, the control unit 16 generates a density histogram of the read image G1 read in step S1.

<ステップS3>
ステップS3において、制御部16は、前記ステップS2で生成された濃度ヒストグラムに基づいて、読取画像G1における背景領域A2の濃度値を検出する。例えば、制御部16は、前記ステップS2で生成された濃度ヒストグラムにおけるピークに対応する濃度値(すなわち、画素数が最も多い濃度値)を、背景領域A2の濃度値として検出する。当該ステップS3は、本発明の第1検出ステップの一例である。当該ステップS3の処理は、制御部16の第1検出処理部161により実行される。
<Step S3>
In step S3, the control unit 16 detects the density value of the background area A2 in the read image G1 based on the density histogram generated in step S2. For example, the control unit 16 detects the density value corresponding to the peak in the density histogram generated in step S2 (that is, the density value having the largest number of pixels) as the density value of the background area A2. The step S3 is an example of the first detection step of the present invention. The process of step S3 is executed by the first detection processing unit 161 of the control unit 16.

<ステップS4>
ステップS4において、制御部16は、読取画像G1における高濃度領域A1を検出する。例えば、制御部16は、前記ステップS3で検出された背景領域A2の濃度値よりも予め定められた閾値以上暗い濃度値の領域を高濃度領域A1として検出する。当該ステップS4は、本発明の第2検出ステップの一例である。当該ステップS4の処理は、制御部16の第2検出処理部162により実行される。
<Step S4>
In step S4, the control unit 16 detects the high density area A1 in the read image G1. For example, the control unit 16 detects, as the high-density area A1, an area having a density value darker than the density value of the background area A2 detected in step S3 by a predetermined threshold value or more. The step S4 is an example of the second detection step of the present invention. The process of step S4 is executed by the second detection processing unit 162 of the control unit 16.

<ステップS5>
ステップS5において、制御部16は、前記ステップS4で検出された高濃度領域A1の近傍領域A3に含まれるいずれか1つの近傍画素を、注目画素として選択する。
<Step S5>
In step S5, the control unit 16 selects any one of the neighboring pixels included in the neighboring area A3 of the high-density area A1 detected in step S4 as the target pixel.

なお、他の実施形態では、制御部16は、前記ステップS4で検出された高濃度領域A1が文字又は線図であるか否かを判定し、文字又は線図であると判定された高濃度領域A1の近傍領域A3のみから前記注目画素を選択してもよい。   In another embodiment, the control unit 16 determines whether or not the high-density area A1 detected in step S4 is a character or a diagram, and determines that the high-density area A1 is a character or a diagram. The target pixel may be selected only from the area A3 near the area A1.

<ステップS6>
ステップS6において、制御部16は、前記注目画素の濃度値が、前記ステップS3で検出された背景領域A2の濃度値よりも第1閾値以上暗いか否かを判断する。そして、前記注目画素の濃度値が背景領域A2の濃度値よりも前記第1閾値以上暗いと判断されると(S6:Yes)、処理がステップS7に移行する。一方、前記注目画素の濃度値が背景領域A2の濃度値よりも前記第1閾値以上暗くはないと判断されると(S6:No)、処理がステップS9に移行する。
<Step S6>
In step S6, the control unit 16 determines whether or not the density value of the target pixel is darker than the density value of the background area A2 detected in step S3 by a first threshold value or more. When it is determined that the density value of the pixel of interest is darker than the density value of the background area A2 by the first threshold value or more (S6: Yes), the process proceeds to step S7. On the other hand, if it is determined that the density value of the target pixel is not darker than the density value of the background area A2 by the first threshold value or more (S6: No), the process proceeds to step S9.

<ステップS7>
ステップS7において、制御部16は、前記注目画素の濃度値が、前記ステップS4で検出された高濃度領域A1の濃度値よりも第2閾値以上暗いか否かを判断する。そして、前記注目画素の濃度値が高濃度領域A1の濃度値よりも前記第2閾値以上暗いと判断されると(S7:Yes)、処理がステップS8に移行する。一方、前記注目画素の濃度値が高濃度領域A1の濃度値よりも前記第2閾値以上暗くはないと判断されると(S7:No)、処理がステップS9に移行する。
<Step S7>
In step S7, the control unit 16 determines whether or not the density value of the pixel of interest is darker than the density value of the high density area A1 detected in step S4 by a second threshold value or more. When it is determined that the density value of the target pixel is darker than the density value of the high density area A1 by the second threshold value or more (S7: Yes), the process proceeds to step S8. On the other hand, if it is determined that the density value of the pixel of interest is not darker than the density value of the high density area A1 by the second threshold value or more (S7: No), the process proceeds to step S9.

なお、前記ステップS7において、制御部16は、前記注目画素を中心とした特定範囲における高濃度領域A1の画素数が多いほど、前記第2閾値を大きくしてもよい。   In step S7, the control unit 16 may increase the second threshold value as the number of pixels in the high-density area A1 in the specific range centered on the target pixel increases.

前記ステップS6及び前記ステップS7は、本発明の特定ステップの一例である。前記ステップS6及び前記ステップS7の処理は、制御部16の特定処理部163により実行される。   The step S6 and the step S7 are examples of the specific step of the present invention. The processing of steps S6 and S7 is executed by the specific processing unit 163 of the control unit 16.

<ステップS8>
ステップS8において、制御部16は、前記注目画素(すなわち、補正対象画素)の濃度値を補正する。例えば、制御部16は、前記注目画素の濃度値を、前記ステップS3で検出された背景領域A2の濃度値と同じ濃度値に補正する。
<Step S8>
In step S8, the control unit 16 corrects the density value of the target pixel (that is, the correction target pixel). For example, the control unit 16 corrects the density value of the target pixel to the same density value as the density value of the background area A2 detected in step S3.

<ステップS9>
ステップS9において、制御部16は、前記ステップS4で検出された高濃度領域A1の近傍領域A3に、まだ前記注目画素として選択されていない近傍画素が存在するか否かを判断する。そして、まだ前記注目画素として選択されていない近傍画素が存在すると判断されると(S9:Yes)、処理が前記ステップS5に戻る。一方、まだ前記注目画素として選択されていない近傍画素が存在しないと判断されると(S9:No)、前記画像補正処理は終了する。
<Step S9>
In step S9, the control unit 16 determines whether or not there is a neighboring pixel that has not been selected as the target pixel in the neighboring area A3 of the high density area A1 detected in step S4. When it is determined that there is a neighboring pixel that has not been selected as the target pixel (S9: Yes), the process returns to step S5. On the other hand, when it is determined that there is no neighboring pixel that has not been selected as the target pixel (S9: No), the image correction process ends.

前記画像補正処理により、例えば、図2又は図4に示される補正前の読取画像G1は、最終的に図4に示される補正後の読取画像G2のように補正される。   By the image correction processing, for example, the read image G1 before correction shown in FIG. 2 or 4 is finally corrected like the read image G2 after correction shown in FIG.

以上のように、本実施形態に係る画像処理装置1では、読取画像G1における高濃度領域A1の近傍領域A3に位置する近傍画素のうち予め定められた補正条件を満たす近傍画素の濃度値が、読取画像G1における背景領域A2の濃度値と同じ濃度値に補正される。よって、画像読取部12により読み取られる原稿の画像の背景領域A2の濃度値が高濃度領域A1の近傍領域A3において部分的に暗くなってしまうことを抑制することが可能である。   As described above, in the image processing apparatus 1 according to the present embodiment, the density values of the neighboring pixels that satisfy the predetermined correction condition among the neighboring pixels located in the neighboring area A3 of the high-density area A1 in the read image G1 are The density value is corrected to be the same as the density value of the background area A2 in the read image G1. Therefore, it is possible to prevent the density value of the background area A2 of the image of the document read by the image reading unit 12 from being partially dark in the area A3 near the high density area A1.

1 画像処理装置
12 画像読取部
16 制御部
161 第1検出処理部
162 第2検出処理部
163 特定処理部
164 補正処理部
165 判定処理部
Reference Signs List 1 image processing device 12 image reading unit 16 control unit 161 first detection processing unit 162 second detection processing unit 163 specific processing unit 164 correction processing unit 165 determination processing unit

Claims (8)

原稿の画像を読み取る画像読取部と、
前記画像読取部により読み取られる読取画像における背景領域の濃度値を検出する第1検出処理部と、
前記読取画像における高濃度領域を検出する第2検出処理部と、
前記高濃度領域の近傍領域に位置する近傍画素のうち予め定められた補正条件を満たす近傍画素を補正対象画素として特定する特定処理部と、
前記補正対象画素の濃度値を補正する補正処理部と、
を備える画像処理装置。
An image reading unit that reads the image of the original,
A first detection processing unit that detects a density value of a background area in the read image read by the image reading unit;
A second detection processing unit that detects a high-density area in the read image;
A specific processing unit that specifies, as a pixel to be corrected, a neighboring pixel that satisfies a predetermined correction condition among neighboring pixels located in the neighboring region of the high density region,
A correction processing unit for correcting the density value of the correction target pixel;
An image processing apparatus including.
前記補正条件は、前記近傍画素の濃度値が、前記第1検出処理部により検出される前記背景領域の濃度値を基準とした予め定められた第1濃度範囲内であることを含む、
請求項1に記載の画像処理装置。
The correction condition includes that the density value of the neighboring pixel is within a predetermined first density range based on the density value of the background region detected by the first detection processing unit,
The image processing apparatus according to claim 1.
前記第1濃度範囲は、前記第1検出処理部により検出される前記背景領域の濃度値よりも予め定められた第1閾値以上暗い濃度範囲である、
請求項2に記載の画像処理装置。
The first density range is a density range darker than a density value of the background region detected by the first detection processing unit by a predetermined threshold value or more.
The image processing apparatus according to claim 2.
前記補正条件は、前記近傍画素の濃度値が、前記高濃度領域の濃度値を基準とした予め定められた第2濃度範囲内であることを含む、
請求項1〜3のいずれかに記載の画像処理装置。
The correction condition includes that the density value of the neighboring pixel is within a predetermined second density range based on the density value of the high density region.
The image processing apparatus according to claim 1.
前記第2濃度範囲は、前記高濃度領域の濃度値よりも予め定められた第2閾値以上明るい濃度範囲である、
請求項4に記載の画像処理装置。
The second density range is a density range brighter than a density value of the high density region by a predetermined second threshold or more.
The image processing apparatus according to claim 4.
前記特定処理部は、前記近傍画素を中心とした特定範囲における前記高濃度領域の画素数に応じて前記第2濃度範囲を変更する、
請求項4又は請求項5に記載の画像処理装置。
The specific processing section changes the second density range according to the number of pixels in the high density region in a specific range centered on the neighboring pixels.
The image processing apparatus according to claim 4.
前記高濃度領域が文字又は線図であるか否かを判定する判定処理部を更に備え、
前記特定処理部は、前記判定処理部により文字又は線図であると判定された前記高濃度領域の近傍領域に位置する近傍画素の中から前記補正対象画素を特定する、
請求項1〜6のいずれかに記載の画像処理装置。
Further comprising a determination processing unit that determines whether the high-density region is a character or a diagram,
The identification processing unit identifies the correction target pixel from among the neighboring pixels located in the neighborhood region of the high-density region determined to be a character or a diagram by the determination processing unit,
The image processing device according to claim 1.
原稿の画像を読み取る画像読取ステップと、
前記画像読取ステップで読み取られる読取画像における背景領域の濃度値を検出する第1検出ステップと、
前記読取画像における高濃度領域を検出する第2検出ステップと、
前記高濃度領域の近傍領域に位置する近傍画素のうち予め定められた補正条件を満たす近傍画素を補正対象画素として特定する特定ステップと、
前記補正対象画素の濃度値を補正する補正ステップと、
を含む画像補正方法。
An image reading step of reading the image of the original,
A first detecting step of detecting a density value of a background area in the read image read in the image reading step;
A second detection step of detecting a high density area in the read image;
A specifying step of specifying, as a pixel to be corrected, a neighboring pixel satisfying a predetermined correction condition among neighboring pixels located in the neighboring region of the high density region,
A correction step of correcting the density value of the pixel to be corrected,
Image correction method including.
JP2018200737A 2018-10-25 2018-10-25 Image processing apparatus and image correction method Pending JP2020068474A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018200737A JP2020068474A (en) 2018-10-25 2018-10-25 Image processing apparatus and image correction method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018200737A JP2020068474A (en) 2018-10-25 2018-10-25 Image processing apparatus and image correction method

Publications (1)

Publication Number Publication Date
JP2020068474A true JP2020068474A (en) 2020-04-30

Family

ID=70390608

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018200737A Pending JP2020068474A (en) 2018-10-25 2018-10-25 Image processing apparatus and image correction method

Country Status (1)

Country Link
JP (1) JP2020068474A (en)

Similar Documents

Publication Publication Date Title
US20190196766A1 (en) Preview display apparatus, multifunction peripheral, and preview display method
US20140320933A1 (en) Image processing apparatus and image forming apparatus
JP4079046B2 (en) Image processing apparatus and image processing method
JP2018056797A (en) Image processing device
KR20080073479A (en) Image processing apparatus and control thereof
JP2020068474A (en) Image processing apparatus and image correction method
US11330146B2 (en) Image processing apparatus, method of controlling image processing apparatus, and storage medium
US10873672B2 (en) Image processing apparatus, method of controlling image processing apparatus, and storage medium
JP2021081572A (en) Display control unit, image processing apparatus, and display control method
EP2773097A2 (en) Image forming apparatus, image forming method, program, and storage medium
JP2021002187A (en) Data transfer device and data transfer method
JP6520853B2 (en) Image processing apparatus and image processing method
US10939010B2 (en) Information processing system, information processing apparatus, image forming apparatus
JP2019215700A (en) Image processing device and image processing program
JP2020120359A (en) Image forming apparatus and image forming method
JP6623979B2 (en) Image processing apparatus and image processing method
JP6524942B2 (en) Image processing apparatus and image processing method
JP6311599B2 (en) Image reading apparatus and image forming apparatus
JP6436115B2 (en) Image reading apparatus and image forming apparatus
JP6451693B2 (en) Image processing apparatus and image processing method
JP2019114933A (en) Image processing apparatus
JP6213444B2 (en) Image reading apparatus and image forming apparatus
JP2016139868A (en) Image processing apparatus
JP2017108298A (en) Image reading device and image forming apparatus
JP2021180397A (en) Image processing apparatus, control program, and control method