JP4923914B2 - Image processing apparatus and image processing program - Google Patents
Image processing apparatus and image processing program Download PDFInfo
- Publication number
- JP4923914B2 JP4923914B2 JP2006262860A JP2006262860A JP4923914B2 JP 4923914 B2 JP4923914 B2 JP 4923914B2 JP 2006262860 A JP2006262860 A JP 2006262860A JP 2006262860 A JP2006262860 A JP 2006262860A JP 4923914 B2 JP4923914 B2 JP 4923914B2
- Authority
- JP
- Japan
- Prior art keywords
- image
- image information
- information
- image data
- range
- 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.)
- Expired - Fee Related
Links
- 238000012545 processing Methods 0.000 title claims description 56
- 238000006243 chemical reaction Methods 0.000 claims description 28
- 238000004364 calculation method Methods 0.000 description 45
- 238000000034 method Methods 0.000 description 28
- 238000010586 diagram Methods 0.000 description 9
- 230000000694 effects Effects 0.000 description 7
- 230000014509 gene expression Effects 0.000 description 5
- 239000003086 colorant Substances 0.000 description 4
- 239000000470 constituent Substances 0.000 description 4
- 238000009795 derivation Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
Images
Landscapes
- Image Processing (AREA)
Description
本発明は、画像処理装置及び画像処理プログラムに関する。 The present invention relates to an image processing apparatus and an image processing program.
従来、帳票等の予め定められた原稿に対する追記箇所を特定するための技術として、特許文献1には、追記前画像と追記後画像の位置合わせを行った後、追記前画像データと追記後画像データの単色化・二値化を行い、これによって得られた追記後画像データから追記前画像データを減算することにより追記箇所を抽出する技術が開示されている。 Conventionally, as a technique for specifying a location to be added to a predetermined document such as a form, Japanese Patent Application Laid-Open Publication No. 2003-28259 discloses that after pre-addition image and post-addition image alignment, before-addition image data and post-addition image There has been disclosed a technique for extracting a postscript portion by performing monochromatic / binarization of data and subtracting the pre-write image data from the post-write image data obtained thereby.
また、特許文献2には、追記前後の画像を所定個数に分割し、各分割領域毎に画像の位置合わせを行った後、追記前画像を膨張させて、追記前画像データと追記後画像データの各画素単位で排他的論理和を算出することにより追記箇所を抽出する技術が開示されている。
本発明は、以上のような技術背景においてなされたものであり、中間調画像に対して行われた追記の箇所を高精度に特定することができる画像処理装置及び画像処理プログラムを提供することを目的とする。 The present invention has been made in the technical background as described above, and provides an image processing apparatus and an image processing program capable of specifying with high accuracy the location of additional writing performed on a halftone image. Objective.
上記目的を達成するために、請求項1に記載の画像処理装置は、追記が行われる前の原稿の画像を示す第1画像情報、及び追記が行われた後の前記原稿の画像を示す第2画像情報を、各々の各画素情報が複数ビットで構成されるものとして取得する取得手段と、前記取得手段によって取得された前記第1画像情報と前記第2画像情報との対応する画素毎の画素情報の減算を行うか、又は除算を行うことにより第3画像情報を導出する導出手段と、前記第3画像情報を、色相H、輝度L、及び彩度Sにより示されるHLS色空間の第4画像情報に変換する変換手段と、前記追記の色が含まれる、色相H、輝度L、及び彩度Sの少なくとも1つの情報の範囲を示す範囲情報を受け付ける受付手段と、前記変換手段により得られた前記第4画像情報における、前記受付手段によって受け付けられた前記範囲情報により示される範囲に含まれる箇所を前記追記が行われた箇所として特定する特定手段と、を備えている。 In order to achieve the above object, an image processing apparatus according to a first aspect of the present invention provides first image information indicating an image of a document before additional writing and a first image indicating the image of the original after additional recording is performed. Acquisition means for acquiring two-image information as each pixel information composed of a plurality of bits, and for each pixel corresponding to the first image information and the second image information acquired by the acquisition means Deriving means for deriving third image information by performing subtraction or division of pixel information, and the third image information in the HLS color space indicated by hue H, luminance L, and saturation S. Obtained by a conversion means for converting into four image information, a reception means for receiving range information indicating a range of at least one of hue H, luminance L, and saturation S including the color of the additional recording, and the conversion means Said fourth image information Definitive, and a, a specifying means for specifying a location as location where the additional recording is performed to be within the scope indicated by the range information received by the receiving unit.
また、請求項2に記載の発明は、請求項1に記載の発明において、前記特定手段は、前記第4画像情報における、前記輝度Lが所定値より大きな箇所を前記追記が行われた箇所の特定対象から除外するものである。 According to a second aspect of the present invention, in the first aspect of the present invention, the specifying unit is configured to determine a location where the additional recording is performed on a location where the luminance L is greater than a predetermined value in the fourth image information. Excluded from specific targets.
更に、請求項3に記載の発明は、請求項1又は請求項2記載の発明において、前記第3画像情報により示される画素情報を、予め定められた範囲内の値となるように制限する制限手段を更に備えたものである。
Furthermore, the invention described in claim 3 is a limitation in which the pixel information indicated by the third image information is limited to a value within a predetermined range in the invention described in
一方、上記目的を達成するために、請求項4に記載の画像処理プログラムは、追記が行われる前の原稿の画像を示す第1画像情報、及び追記が行われた後の前記原稿の画像を示す第2画像情報を、各々の各画素情報が複数ビットで構成されるものとして取得する取得ステップと、前記取得ステップによって取得された前記第1画像情報と前記第2画像情報との対応する画素毎の画素情報の減算を行うか、又は除算を行うことにより第3画像情報を導出する導出ステップと、前記第3画像情報を、色相H、輝度L、及び彩度Sにより示されるHLS色空間の第4画像情報に変換する変換ステップと、前記追記の色が含まれる、色相H、輝度L、及び彩度Sの少なくとも1つの情報の範囲を示す範囲情報を受け付ける受付ステップと、前記変換ステップにより得られた前記第4画像情報における、前記受付ステップによって受け付けられた前記範囲情報により示される範囲に含まれる箇所を前記追記が行われた箇所として特定する特定ステップと、をコンピュータに実行させるものである。 On the other hand, in order to achieve the above object, an image processing program according to claim 4 includes first image information indicating an image of a document before additional recording and an image of the document after additional recording are performed. An acquisition step of acquiring the second image information shown as each pixel information is composed of a plurality of bits, and pixels corresponding to the first image information and the second image information acquired by the acquisition step A derivation step of deriving third image information by subtracting or dividing pixel information for each pixel , and an HLS color space represented by hue H, luminance L, and saturation S. A conversion step for converting to the fourth image information; a reception step for receiving range information indicating a range of at least one of hue H, luminance L, and saturation S including the additional color; and the conversion step Run in the fourth image information obtained by-up, and a specifying step of specifying a location as location where the additional recording is performed to be within the scope indicated by the range information received by the reception step to the computer It is something to be made.
請求項1及び請求項4記載の発明によれば、中間調画像に対して行われた追記の箇所を高精度に特定することができる、という効果が得られる。
また、請求項1及び請求項4記載の発明によれば、色相を有しない色空間上で追記の箇所を特定する場合に比較して、より高精度に追記の箇所を特定することができる、という効果が得られる。
更に、請求項1及び請求項4記載の発明によれば、追記の色に応じて追記が行われた箇所を絞り込むことができる結果、より高精度に追記の箇所を特定することができる、という効果が得られる。
According to the first and fourth aspects of the invention, there is an effect that it is possible to specify the location of additional writing performed on the halftone image with high accuracy.
In addition, according to the invention of
Furthermore, according to invention of
また、請求項2記載の発明によれば、白色系の原稿に対して追記が行われた箇所を特定する場合において、追記が行われた箇所を絞り込むことができる結果、より高精度に追記の箇所を特定することができる、という効果が得られる。 According to the second aspect of the present invention, in the case of specifying the location where the additional writing is performed on the white document, it is possible to narrow down the location where the additional writing has been performed. The effect that a location can be specified is obtained.
更に、請求項3記載の発明によれば、第3画像情報の汎用性を高めることができる結果、利便性を向上させることができる、という効果が得られる。 Further, according to the third aspect of the present invention, the results can be enhanced versatility of the third image information, it is possible to improve convenience, effect is obtained that.
以下、図面を参照して本発明の実施の形態を詳細に説明する。 Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
図1には、本発明が適用された画像処理システム10の構成例が示されている。同図に示されるように、本実施の形態に係る画像処理システム10は、パーソナル・コンピュータ等の画像処理装置20と、スキャナ等の画像読取装置30とを備えている。画像処理装置20と画像読取装置30は電気的に接続されており、画像処理装置20は画像読取装置30による読み取りによって得られた画像データを画像読取装置30から取得することができる。
FIG. 1 shows a configuration example of an image processing system 10 to which the present invention is applied. As shown in the figure, the image processing system 10 according to the present embodiment includes an
本実施の形態に係る画像処理システム10は、手書きによる追記や押印等による追記が行われる前の原稿(以下、「追記前原稿」という。)と、当該追記が行われた後の原稿(以下、「追記後原稿」という。)を画像読取装置30によって読み取り、これによって得られた2つの画像データに基づき、画像処理装置20により、追記が行われた箇所を特定し、特定した箇所から追記された画像部分を抽出する処理を行うものである。なお、以下では、追記前原稿の読み取りによって得られた画像データを「追記前画像データ」といい、追記後原稿の読み取りによって得られた画像データを「追記後画像データ」という。
The image processing system 10 according to the present embodiment includes a document before additional writing by handwriting or stamping (hereinafter referred to as “original document before adding”) and a document after the additional writing (hereinafter referred to as “original document”). , “Added document”) is read by the
本実施の形態に係る画像読取装置30は、読み取りによって得る画像データを、各画素値(画素情報)が複数ビット(本実施の形態では、8ビット)で構成されるものとして取得するものとされている。また、本実施の形態に係る画像処理システム10では、画像読取装置30として、読み取り対象とする原稿の画像をR(赤)、G(緑)、B(青)の3原色に分解して読み取るカラー・スキャナを適用している。
The
次に、図2を参照して、画像処理システム10において特に重要な役割を有する画像処理装置20の電気系の要部構成を説明する。
Next, with reference to FIG. 2, the main configuration of the electrical system of the
同図に示すように、本実施の形態に係る画像処理装置20は、画像処理装置20全体の動作を司るCPU(中央処理装置)20Aと、CPU20Aによる各種処理プログラムの実行時のワークエリア等として用いられるRAM(Random Access Memory)20Bと、各種制御プログラムや各種パラメータ等が予め記憶されたROM(Read Only Memory)20Cと、各種情報を記憶するために用いられる記憶手段であるハードディスク20Dと、各種情報を入力するために用いられるキーボード20Eと、各種情報を表示するために用いられるディスプレイ20Fと、外部装置との各種情報の授受を司る入出力インタフェース(I/F)20Gと、が備えられており、これら各部はシステムバスBUSにより電気的に相互に接続されている。ここで、入出力インタフェース20Gには、前述した画像読取装置30が接続されている。
As shown in the figure, the
従って、CPU20Aは、RAM20B、ROM20C、及びハードディスク20Dに対するアクセス、キーボード20Eを介した各種入力情報の取得、ディスプレイ20Fに対する各種情報の表示、及び入出力インタフェース20Gを介した画像読取装置30との各種情報の授受を、各々行うことができる。
Accordingly, the
図3は、本実施の形態に係る画像処理装置20の機能的な構成を示す機能ブロック図である。同図に示されるように、本実施の形態に係る画像処理装置20は、演算部22と、制限部24と、変換部26A及び特定部26Bを有する追記特定部26と、記憶部28とを備えている。
FIG. 3 is a functional block diagram showing a functional configuration of the
なお、上記演算部22は、画像読取装置30によって取得された追記前画像データと追記後画像データの対応する画素毎に画素値の減算演算を行うか、又は除算演算を行って、これにより得られた画像データ(以下、「演算結果画像データ」という。)を出力する。本実施の形態に係る画像処理システム10では、処理対象とする画像データとしてR,G,Bにより構成されたカラー画像データを適用しているため、演算部22では、上記減算演算又は上記除算演算をR,G,Bの各々別に行う。
The
ここで、演算部22が上記減算演算を行う場合、追記前画像データの画素値をAVとし、これに対応する位置の追記後画像データの画素値をBVとすると、次の(1)式により演算結果画像データを構成する画素値RVを得ることができる。
Here, when the
RV=(255−BV)−(255−AV)
=AV−BV (1)
ところで、(1)式による減算結果は、追記がない部分が概ね0(零)で、追記部分が1〜255の範囲内の値となり、これによって得られた演算結果画像データを用いて画像を表示又は印刷する場合には、反転画像(ネガティブ画像)を示すものとなる。そこで、この場合には(1)式による減算結果を白色の背景に相当する画素値255から減算するようにすればよい。すなわち、次の(2)式を適用することで、表示又は印刷する場合の画像が反転画像とならないようにすることができる。
RV = (255−BV) − (255−AV)
= AV-BV (1)
By the way, the subtraction result by the equation (1) is that the portion without additional writing is generally 0 (zero), and the additional writing portion has a value within the range of 1 to 255. An image is obtained using the calculation result image data obtained thereby. In the case of display or printing, an inverted image (negative image) is shown. Therefore, in this case, the subtraction result obtained by the expression (1) may be subtracted from the
RV=255−{(255−BV)−(255−AV)}
=BV−AV+255 (2)
図4(A)には、追記前原稿における中間調画像が形成されている部分を画像読取装置30により読み取ることによって得られた追記前画像データにより示される追記前画像の一例が示されており、図4(B)には、当該中間調画像に重なるように追記がなされた後に当該中間調画像の部分を画像読取装置30により読み取ることによって得られた追記後画像データにより示される追記後画像の一例が示されている。
RV = 255-{(255-BV)-(255-AV)}
= BV-AV + 255 (2)
FIG. 4A shows an example of the image before the additional recording indicated by the image data before the additional recording obtained by reading the portion where the halftone image is formed in the document before the additional recording by the
一方、図5(A)は、図4(A)に示される追記前画像のA1−A2断面における画素値を、Rを例に示したものであり、縦軸は255−Red(Rの画素値)としている。また、図5(B)は、図4(B)に示される追記後画像のA1−A2断面における画素値を、Rを例に示したものであり、図5(A)と同様に縦軸は255−Red(Rの画素値)としている。更に、図5(C)は、図4(A)に示される追記前画像を示す追記前画像データと、図4(B)に示される追記後画像を示す追記後画像データとを入力として演算部22から出力された演算結果画像データにより示される画像におけるA1−A2断面の画素値を示したものである。
On the other hand, FIG. 5A shows pixel values in the A1-A2 cross section of the pre-append image shown in FIG. 4A, with R as an example, and the vertical axis is 255-Red (R pixels). Value). FIG. 5B shows the pixel value in the A1-A2 cross section of the post-recording image shown in FIG. 4B by taking R as an example, and the vertical axis is the same as in FIG. Is 255-Red (R pixel value). Further, FIG. 5C is calculated by inputting the pre-recording image data indicating the pre-recording image data shown in FIG. 4A and the post-recording image data indicating the post-recording image data shown in FIG. 7 shows pixel values of an A1-A2 cross section in an image indicated by calculation result image data output from the
図5(C)に示されるように、追記が行われた箇所以外では、追記前画像と追記後画像とで画素値が殆ど変化しないため、演算結果が概ね0(零)となる一方、追記が行われた箇所では、演算結果として追記による画素値の変化分が現れることになる。従って、当該変化分の現れた部分が、追記が行われた箇所であるものとして特定することができる。 As shown in FIG. 5C, since the pixel value hardly changes between the pre-addition image and the post-addition image except for the location where the additional recording is performed, the calculation result is almost 0 (zero). In the place where the process is performed, a change in the pixel value due to the additional writing appears as a calculation result. Therefore, the portion where the change appears can be specified as the portion where the additional writing has been performed.
なお、以上の説明は、追記前画像データ及び追記後画像データがRGB画像データである場合についての説明であるが、これらの画像データがC(シアン),M(マゼンタ),Y(イエロー)により構成されるカラー画像データか、又はこれらC,M,Yと、K(ブラック)の4色により構成されるカラー画像データである場合には、次の(3)式により演算結果画像データを構成する画素値RVを得ることができる。 The above description is for the case where the pre-recording image data and post-recording image data are RGB image data. These image data are represented by C (cyan), M (magenta), and Y (yellow). If the color image data is composed or color image data composed of the four colors C, M, Y and K (black), the calculation result image data is composed of the following equation (3). The pixel value RV to be obtained can be obtained.
RV=BV−AV (3)
一方、演算部22が上記除算演算を行う場合、追記前画像データの画素値をAVとし、これに対応する位置の追記後画像データの画素値をBVとすると、次の(4)式により演算結果画像データを構成する画素値RVを得ることができる。
RV = BV-AV (3)
On the other hand, when the
RV=BV÷AV (4)
ところで、(4)式による除算結果は、追記がない部分が概ね1.0で、追記部分が追記の濃さに応じて0以上1.0未満の範囲内の値となり、そのままの値では、画像として表示又は印刷することができない。そこで、当該表示又は印刷を行う場合には、(4)式による除算結果に対して255を乗算するようにすればよい。すなわち、次の(5)式を適用することで、表示又は印刷することができる値とすることができる。
RV = BV ÷ AV (4)
By the way, as for the division result by the equation (4), the portion where there is no additional writing is approximately 1.0, and the additional writing portion becomes a value in the range of 0 or more and less than 1.0 according to the density of the additional writing. It cannot be displayed or printed as an image. Therefore, when the display or printing is performed, the division result obtained by the expression (4) may be multiplied by 255. That is, by applying the following equation (5), a value that can be displayed or printed can be obtained.
RV=255×(BV÷AV) (5)
図6(A)は、図4(A)に示される追記前画像のA1−A2断面における画素値を、Rを例に示したものである。また、図6(B)は、図4(B)に示される追記後画像のA1−A2断面における画素値を、Rを例に示したものである。更に、図6(C)は、図4(A)に示される追記前画像を示す追記前画像データと、図4(B)に示される追記後画像を示す追記後画像データとを入力として除算演算を行う演算部22から出力された演算結果画像データにより示される画像におけるA1−A2断面の画素値を示したものである。
RV = 255 × (BV ÷ AV) (5)
FIG. 6A shows pixel values in the A1-A2 cross section of the pre-recording image shown in FIG. FIG. 6B shows pixel values in the A1-A2 cross section of the post-recording image shown in FIG. Further, FIG. 6C is a diagram in which the pre-recording image data indicating the pre-recording image data shown in FIG. 4A and the post-recording image data indicating the post-recording image data shown in FIG. The pixel value of the A1-A2 cross section in the image shown by the calculation result image data output from the calculating
図6(C)に示されるように、追記が行われた箇所以外では、追記前画像と追記後画像とで画素値が殆ど変化しないため、演算結果が概ね1.0となる一方、追記が行われた箇所では、演算結果として追記による画素値の変化分だけ1.0より小さな値となる。従って、当該変化分の現れた部分が、追記が行われた箇所であるものとして特定することができる。 As shown in FIG. 6C, since the pixel value hardly changes between the pre-addition image and the post-addition image except for the location where the additional recording has been performed, the calculation result is approximately 1.0. In the place where it was performed, the calculation result is a value smaller than 1.0 by the amount of change in the pixel value due to additional writing. Therefore, the portion where the change appears can be specified as the portion where the additional writing has been performed.
なお、以上の説明は、追記前画像データ及び追記後画像データがRGB画像データである場合における説明であるが、これらの画像データがC,M,Yにより構成されるカラー画像データか、又はC,M,Y,Kにより構成されるカラー画像データである場合においても、(4)式又は(5)式により演算結果画像データを構成する画素値RVを得ることができる。 The above description is for the case where the image data before additional recording and the image data after additional recording are RGB image data. However, these image data are color image data composed of C, M, and Y, or C , M, Y, and K, the pixel value RV that constitutes the operation result image data can be obtained from the equation (4) or (5).
ところで、演算部22による演算により得られる値は画素値の正常範囲を外れることがあり、こういった画素もエラーとならずに、後の処理において利用できるようにする必要がある。
By the way, the value obtained by the calculation by the
例えば、演算部22が(1)式により減算演算を行う場合、「追記後画像の画素値>追記前画像の画素値」である場合に演算結果が負の値となり、演算部22が(2)式により減算演算を行う場合、「追記後画像の画素値>追記前画像の画素値」である場合に演算結果が255より大きな値となる。
For example, when the
そこで、上記制限部24は、演算結果画像データにおける各画素値を、予め定められた範囲内の値となるように制限する。なお、本実施の形態に係る画像処理システム10では、画像データとして8ビット構成のものを取り扱い対象としているため、上記予め定められた範囲として、0以上255以下の範囲を適用している。すなわち、制限部24は、演算部22から入力された演算結果画像データの各画素値のうち、0未満となっている画素値を0とし、255より大きな値となっている画素値を255とするものとされている。
Therefore, the limiting
ところで、本発明の発明者らにより、R,G,Bにより構成されるカラー画像データ、又はC,M,Yにより構成されるカラー画像データ、又はC,M,Y,Kにより構成されるカラー画像データを入力データとして演算部22から出力された演算結果画像データをHLS色空間の画像データに変換した後、同一色による追記箇所の中間調画像に重なっている部分と中間調画像に重なっていない部分とを比較したところ、輝度L及び彩度Sについては大きな差があるものの、色相Hについては差が著しく小さいことが判明した。
By the way, the inventors of the present invention, color image data composed of R, G, B, color image data composed of C, M, Y, or color composed of C, M, Y, K. After the calculation result image data output from the
すなわち、本発明の発明者らは、まず、一例として図7(A)に模式的に示すように、背景が緑である部分に赤の筆記具で追記を行った場合の背景領域a、追記領域b、及び背景に追記が重なっている重なり領域cの3領域における複数箇所について色相Hを測定し、その分布を調べたところ、一例として図7(B)に示されるものとなった。また、一例として図8(A)に模式的に示すように、背景が青である部分に赤の筆記具で追記を行った場合の背景領域d、追記領域e、及び背景に追記が重なっている重なり領域fの3領域における複数箇所について色相Hを測定し、その分布を調べたところ、一例として図8(B)に示されるものとなった。 That is, the inventors of the present invention firstly, as schematically shown in FIG. 7A as an example, a background area a and a write-on area when a red writing tool is used to write a portion where the background is green. When hue H was measured at a plurality of locations in three areas of b and the overlapping area c where the additional writing overlapped with the background, and the distribution thereof was examined, it was as shown in FIG. 7B as an example. Further, as schematically shown in FIG. 8A as an example, the background region d, the additional recording region e, and the additional recording overlap when the additional writing is performed with the red writing tool on the portion where the background is blue. When the hue H was measured for a plurality of locations in the three regions of the overlapping region f and the distribution thereof was examined, it was as shown in FIG. 8B as an example.
次に、本発明の発明者らは、一例として図7(A)に示した画像における追記前画像データと追記後画像データを入力して演算部22から出力された演算結果画像データをHLS色空間の画像データに変換した後、背景領域a、追記領域b、及び重なり領域cの3領域における複数箇所について色相Hを測定し、その分布を調べたところ、一例として図9(B)に示されるものとなった。なお、図9(A)は、この場合の演算結果画像データにより示される画像を模式的に示したものである。また、一例として図8(A)に示した画像における追記前画像データと追記後画像データを入力して演算部22から出力された演算結果画像データをHLS色空間の画像データに変換した後、背景領域d、追記領域e、及び重なり領域fの3領域における複数箇所について色相Hを測定し、その分布を調べたところ、一例として図10(B)に示されるものとなった。なお、図10(A)は、この場合の演算結果画像データにより示される画像を模式的に示したものである。
Next, the inventors of the present invention input the pre-recording image data and post-recording image data in the image shown in FIG. 7A as an example, and the calculation result image data output from the
図7(B)と図9(B)とを比較すると、重なり領域cの色相Hの分布領域が追記領域bの色相Hの分布領域の方向に移動して当該追記領域bの分布領域に著しく接近していることが分かる。また、図8(B)と図10(B)とを比較すると、重なり領域fの色相Hの分布領域が追記領域fの色相Hの分布領域の方向に移動して当該追記領域fの分布領域に著しく接近していることが分かる。 Comparing FIG. 7B and FIG. 9B, the distribution area of the hue H in the overlapping area c moves in the direction of the distribution area of the hue H in the additional recording area b, so that the distribution area of the additional recording area b is significantly different. You can see that they are approaching. Further, when FIG. 8B is compared with FIG. 10B, the distribution area of the hue H of the overlapping area f moves in the direction of the distribution area of the hue H of the additional recording area f, and the distribution area of the additional recording area f is compared. It turns out that it is approaching remarkably.
これに対し、輝度L及び彩度Sについては、色相Hのような分布領域の接近は見られなかった。また、この傾向は、C,M,Yにより構成されるカラー画像データ、及びC,M,Y,Kにより構成されるカラー画像データについても見られた。 On the other hand, with respect to the luminance L and the saturation S, the approach of the distribution region such as the hue H was not observed. This tendency was also observed for color image data composed of C, M, Y and color image data composed of C, M, Y, K.
そこで、上記変換部26Aは、制限部24から出力された演算結果画像データを、色相Hを有する予め定められた色空間(本実施の形態では、HLS色空間)の画像データである変換画像データに変換する。
Therefore, the
そして、上記特定部26Bは、変換部26Aによって得られた変換画像データに基づいて追記が行われた箇所を特定し、当該追記が行われた箇所を示す情報を記憶部28に記憶する。なお、本実施の形態に係る画像処理システム10では、追記の色が含まれる、色相H、輝度L、及び彩度Sの少なくとも1つの情報の範囲を示す範囲情報を受け付け、特定部26により、上記変換画像データにおける、当該範囲情報により示される範囲に含まれる画素の位置を追記が行われた箇所として特定する。
Then, the specifying
なお、以上のように構成された画像処理装置20の各構成要素(演算部22、制限部24、変換部26A、特定部26B)による処理は、プログラムを実行することにより、コンピュータを利用してソフトウェア構成により実現することができる。この場合、当該プログラムに本発明の画像処理プログラムが含まれることになる。但し、ソフトウェア構成による実現に限られるものではなく、ハードウェア構成や、ハードウェア構成とソフトウェア構成の組み合わせによって実現することもできることは言うまでもない。
In addition, the process by each component (the calculating
以下では、本実施の形態に係る画像処理システム10が、上記プログラム(以下、「画像処理プログラム」という。)を実行することにより上記各構成要素による処理を実現するものとされている場合について説明する。この場合、当該画像処理プログラムを画像処理装置20に予めインストールしておく形態や、コンピュータ読み取り可能な記録媒体に格納された状態で提供される形態、有線又は無線による通信手段を介して配信される形態等を適用することができる。
Hereinafter, a description will be given of a case where the image processing system 10 according to the present embodiment is configured to realize processing by each of the above-described components by executing the above-described program (hereinafter referred to as “image processing program”). To do. In this case, the image processing program is installed in the
次に、図11を参照して、本実施の形態に係る画像処理システム10の作用を説明する。なお、図11は、画像処理装置20のCPU20Aにより実行される画像処理プログラムの処理の流れを示すフローチャートである。また、ここでは、錯綜を回避するために、特定対象とする追記の色を黒、赤、緑、及び青の4色とし、これらの色に対応する上記範囲情報がキーボード20Eを介して入力され、ハードディスク20Dの所定領域に予め記憶されている場合について説明する。この場合、キーボード20Eが本発明の受付手段に相当することになる。更に、ここでは、錯綜を回避するために、処理対象とする追記前画像データ及び追記後画像データが同一サイズの原稿画像を示すものとして画像読取装置30から入力され、ハードディスク20Dの所定領域に予め記憶されている場合について説明する。
Next, the operation of the image processing system 10 according to the present embodiment will be described with reference to FIG. FIG. 11 is a flowchart showing the flow of processing of the image processing program executed by the
同図のステップ100では、処理対象とする追記前画像データ及び追記後画像データをハードディスク20Dから読み出すことにより取得し、次のステップ102では、読み出した各画像データにより示される画像の幅(ここでは、当該画像の水平方向の画素数)を変数Wに代入すると共に、当該画像の高さ(ここでは、当該画像の垂直方向の画素数)を変数Tに代入する。
In step 100 of the figure, the pre-addition image data and post-addition image data to be processed are acquired by reading from the
次のステップ104では、変数iに0を代入し、次のステップ106では、変数kに0を代入し、次のステップ108にて、追記前画像データ及び追記後画像データにおける、高さ方向位置が変数iの値で示される位置で、かつ幅方向位置が変数kの値で示される位置の画素値を用いてR,G,Bの各画素値毎に(1)式による減算演算を行う。このように、本実施の形態に係る画像処理プログラムでは、本ステップ108において(1)式による減算演算を行うものとしているが、これに限らず、例えば(2)式による減算演算を行う形態や、(4)式や(5)式による除算演算を行う形態としてもよいことは言うまでもない。なお、追記前画像データにより示される追記前画像と、追記後画像データにより示される追記後画像とでは、画像読取装置30において読み取る際の追記前原稿と追記後原稿の傾斜角の違い等に起因して、対応する画素の位置がずれている場合も考えられるので、上記減算演算の実行に先立ち、従来既知の技術を用いて、各画像データの位置合わせを行うことが好ましい。本ステップ108の処理が演算部22の処理に相当する。
In the
次のステップ110では、上記ステップ108による演算によって得られた値(R,G,B毎の画素値であり、以下、「演算値」という。)が所定の範囲内(本実施の形態では、0以上255以下の範囲内)にあるか否かを判定し、否定判定となった場合はステップ112に移行して、上記演算値を上記所定の範囲内にクランプ(本実施の形態では、上記演算値が0未満である場合は0とし、上記演算値が255より大きな値である場合は255とする。)した後にステップ114に移行する一方、上記ステップ110において肯定判定となった場合には、上記ステップ112の処理を実行することなくステップ114に移行する。上記ステップ110〜ステップ112の処理が制限部24の処理に相当する。
In the
ステップ114では、上記演算値をHLS色空間の値(以下、「変換値」という。)に変換する。本ステップ114の処理が変換部26Aの処理に相当する。
In
次のステップ116では、上記変換値における輝度Lが、追記後原稿の地の色の輝度Lの下限値として予めハードディスク20Dの所定領域に記憶された第1閾値(一例として、240)より大きいか否かを判定し、肯定判定となった場合は後述するステップ134に移行する一方、否定判定となった場合にはステップ118に移行する。
In the
ステップ118では、上記範囲情報における黒の追記が含まれる範囲を示す情報(本実施の形態では、輝度Lが第2閾値(一例として、10)未満、又は彩度Sが第3閾値(一例として、15)未満との情報。)をハードディスク20Dから読み出し、当該情報により示される範囲に上記変換値が含まれるか否かを判定して、肯定判定となった場合はステップ120に移行し、上記変換値に対応する画素の位置が黒による追記箇所である旨を示す情報を記憶した後、ステップ134に移行する一方、上記ステップ118において否定判定となった場合にはステップ122に移行する。
In
ステップ122では、上記範囲情報における赤の追記が含まれる範囲を示す情報(本実施の形態では、色相Hが第4閾値(一例として、236度)以上、又は第5閾値(一例として、20度)以下との情報。)をハードディスク20Dから読み出し、当該情報により示される範囲に上記変換値が含まれるか否かを判定して、肯定判定となった場合はステップ124に移行し、上記変換値に対応する画素の位置が赤による追記箇所である旨を示す情報を記憶した後、ステップ134に移行する一方、上記ステップ122において否定判定となった場合にはステップ126に移行する。
In
ステップ126では、上記範囲情報における緑の追記が含まれる範囲を示す情報(本実施の形態では、色相Hが第6閾値(一例として、65度)以上で、かつ第7閾値(一例として、105度)以下との情報。)をハードディスク20Dから読み出し、当該情報により示される範囲に上記変換値が含まれるか否かを判定して、肯定判定となった場合はステップ128に移行し、上記変換値に対応する画素の位置が緑による追記箇所である旨を示す情報を記憶した後、ステップ134に移行する一方、上記ステップ126において否定判定となった場合にはステップ130に移行する。
In
ステップ130では、上記範囲情報における青の追記が含まれる範囲を示す情報(本実施の形態では、色相Hが第8閾値(一例として、150度)以上で、かつ第9閾値(一例として、190度)以下との情報。)をハードディスク20Dから読み出し、当該情報により示される範囲に上記変換値が含まれるか否かを判定して、肯定判定となった場合はステップ132に移行し、上記変換値に対応する画素の位置が青による追記箇所である旨を示す情報を記憶した後、ステップ134に移行する一方、上記ステップ130において否定判定となった場合には上記ステップ132の処理を実行することなくステップ134に移行する。
In
ステップ134では、変数kの値を1だけインクリメントし、次のステップ136にて、変数kの値が変数Wの値(画像の幅を示す値)未満であるか否かを判定して、肯定判定となった場合は上記ステップ108に戻り、当該ステップ108以降の処理を再び実行する一方、否定判定となった場合にはステップ138に移行する。
In
ステップ138では、変数iの値を1だけインクリメントし、次のステップ140にて、変数iの値が変数Tの値(画像の高さを示す値)未満であるか否かを判定して、肯定判定となった場合は上記ステップ106に戻り、当該ステップ106以降の処理を再び実行する一方、否定判定となった場合には本画像処理プログラムを終了する。上記ステップ116〜ステップ132の処理が特定部26Bの処理に相当する。
In
なお、上記ステップ120、ステップ124、ステップ128、及びステップ132の各ステップによる、上記変換値に対応する画素の位置が追記箇所である旨を示す情報の記憶を、本実施の形態に係る画像処理プログラムでは、変数Wにより示される幅で、かつ変数Tにより示される高さの白色画像を示す画像データを追記色の種類毎に予め用意し、各追記色毎に、対応する当該画像データに対して、対応する色の変換値に、対応する画素値を置き換えることにより行うものとしているが、これに限らず、各追記色毎に、変換値と、当該変換値の画像上の位置を示す位置情報とを対応付けて記憶する形態や、これ以降の処理において変換値を必要としない場合等には、各追記色毎に上記位置情報のみを記憶する形態等、他の形態とすることもできることは言うまでもない。
It should be noted that information indicating that the position of the pixel corresponding to the converted value is an additional write location in each of the
以上、本発明を実施の形態を用いて説明したが、本発明の技術的範囲は上記実施の形態に記載の範囲には限定されない。発明の要旨を逸脱しない範囲で上記実施の形態に多様な変更または改良を加えることができ、当該変更または改良を加えた形態も本発明の技術的範囲に含まれる。 As mentioned above, although this invention was demonstrated using embodiment, the technical scope of this invention is not limited to the range as described in the said embodiment. Various modifications or improvements can be added to the above-described embodiment without departing from the gist of the invention, and embodiments to which such modifications or improvements are added are also included in the technical scope of the present invention.
また、上記の実施の形態は、クレーム(請求項)にかかる発明を限定するものではなく、また実施の形態の中で説明されている特徴の組合せの全てが発明の解決手段に必須であるとは限らない。前述した実施の形態には種々の段階の発明が含まれており、開示される複数の構成要件における適宜の組み合せにより種々の発明を抽出できる。実施の形態に示される全構成要件から幾つかの構成要件が削除されても、効果が得られる限りにおいて、この幾つかの構成要件が削除された構成が発明として抽出され得る。 The above embodiments do not limit the invention according to the claims (claims), and all the combinations of features described in the embodiments are essential for the solution of the invention. Is not limited. The above-described embodiments include inventions at various stages, and various inventions can be extracted by appropriately combining a plurality of disclosed constituent elements. Even if some constituent requirements are deleted from all the constituent requirements shown in the embodiment, as long as an effect is obtained, a configuration from which these some constituent requirements are deleted can be extracted as an invention.
例えば、上記実施の形態では、画像処理をソフトウェア構成によって実現した場合について説明したが、本発明はこれに限定されるものではなく、例えば、当該画像処理をハードウェア構成により実現する形態とすることもできる。この場合の形態例としては、例えば、図3に示した画像処理装置20の各構成要素(演算部22、制限部24、変換部26A、特定部26B)と同一の処理を実行する機能デバイスを作成して用いる形態が例示できる。この場合は、上記実施の形態に比較して、画像処理の高速化が期待できる。
For example, in the above embodiment, the case where the image processing is realized by the software configuration has been described. However, the present invention is not limited to this, and for example, the image processing is realized by the hardware configuration. You can also. As an example of the form in this case, for example, a functional device that executes the same processing as each component (calculating
また、上記実施の形態では、本発明の色相を有する色空間としてHLS色空間を適用した場合について説明したが、本発明はこれに限定されるものではなく、例えば、HSV色空間等、色相を有する他の色空間を適用する形態とすることもできる。この場合も、上記実施の形態と同様の効果を奏することができる。 In the above embodiment, the case where the HLS color space is applied as the color space having the hue of the present invention has been described. However, the present invention is not limited to this, and for example, the hue such as the HSV color space is used. It can also be set as the form which applies the other color space which has. In this case as well, the same effects as in the above embodiment can be obtained.
その他、上記実施の形態で説明した画像処理システム10や画像処理装置20の構成(図1〜図3参照。)は一例であり、本発明の主旨を逸脱しない範囲内において不要な部分を削除したり、新たな部分を追加したりすることができることは言うまでもない。
In addition, the configurations (see FIGS. 1 to 3) of the image processing system 10 and the
また、上記実施の形態で説明した各種演算式((1)式〜(5)式参照。)も一例であり、本発明の主旨を逸脱しない範囲内において変更を加えることができることは言うまでもない。 Further, various arithmetic expressions described in the above embodiment (see Expressions (1) to (5)) are also examples, and it goes without saying that changes can be made without departing from the gist of the present invention.
更に、上記実施の形態で説明した画像処理プログラムの処理の流れ(図11参照。)も一例であり、本発明の主旨を逸脱しない範囲内において不要なステップを削除したり、新たなステップを追加したり、処理順序を入れ替えたりすることができることは言うまでもない。 Furthermore, the processing flow of the image processing program described in the above embodiment (see FIG. 11) is also an example, and unnecessary steps are deleted or new steps are added without departing from the gist of the present invention. Needless to say, the processing order can be changed.
10 画像処理システム
20 画像処理装置
20A CPU
20D ハードディスク
20E キーボード(受付手段)
22 演算部(導出手段)
24 制限部(制限手段)
26 追記特定部
26A 変換部(変換手段)
26B 特定部(特定手段)
28 記憶部
30 画像読取装置(取得手段)
DESCRIPTION OF SYMBOLS 10
20D
22 Calculation unit (derivation means)
24 Restriction part (restriction means)
26 appending
26B identification part (identification means)
28
Claims (4)
前記取得手段によって取得された前記第1画像情報と前記第2画像情報との対応する画素毎の画素情報の減算を行うか、又は除算を行うことにより第3画像情報を導出する導出手段と、
前記第3画像情報を、色相H、輝度L、及び彩度Sにより示されるHLS色空間の第4画像情報に変換する変換手段と、
前記追記の色が含まれる、色相H、輝度L、及び彩度Sの少なくとも1つの情報の範囲を示す範囲情報を受け付ける受付手段と、
前記変換手段により得られた前記第4画像情報における、前記受付手段によって受け付けられた前記範囲情報により示される範囲に含まれる箇所を前記追記が行われた箇所として特定する特定手段と、
を備えた画像処理装置。 The first image information indicating the image of the document before the additional recording is performed and the second image information indicating the image of the document after the additional recording are performed, each pixel information is composed of a plurality of bits. Acquisition means for acquiring;
Deriving means for deriving third image information by subtracting or dividing pixel information for each corresponding pixel of the first image information and the second image information obtained by the obtaining means;
Conversion means for converting the third image information into fourth image information in an HLS color space indicated by hue H, luminance L, and saturation S;
Receiving means for receiving range information indicating a range of at least one of hue H, luminance L, and saturation S including the color of the additional writing;
In the fourth image information obtained by the converting means, a specifying means for specifying a place included in the range indicated by the range information received by the receiving means as a place where the additional writing is performed,
An image processing apparatus.
請求項1記載の画像処理装置。 The specifying unit excludes a portion where the luminance L is larger than a predetermined value in the fourth image information from a specifying target of the portion where the additional recording is performed.
The image processing apparatus according to claim 1 .
を更に備えた請求項1又は請求項2記載の画像処理装置。 The image processing apparatus of the pixel information, further claim 1 or claim 2, wherein comprising a limiting means for limiting to a value within a predetermined range indicated by the third image information.
前記取得ステップによって取得された前記第1画像情報と前記第2画像情報との対応する画素毎の画素情報の減算を行うか、又は除算を行うことにより第3画像情報を導出する導出ステップと、
前記第3画像情報を、色相H、輝度L、及び彩度Sにより示されるHLS色空間の第4画像情報に変換する変換ステップと、
前記追記の色が含まれる、色相H、輝度L、及び彩度Sの少なくとも1つの情報の範囲を示す範囲情報を受け付ける受付ステップと、
前記変換ステップにより得られた前記第4画像情報における、前記受付ステップによって受け付けられた前記範囲情報により示される範囲に含まれる箇所を前記追記が行われた箇所として特定する特定ステップと、
をコンピュータに実行させる画像処理プログラム。 The first image information indicating the image of the document before the additional recording is performed and the second image information indicating the image of the document after the additional recording are performed, each pixel information is composed of a plurality of bits. An acquisition step to acquire;
Deriving step of deriving third image information by subtracting or dividing pixel information for each corresponding pixel of the first image information and second image information acquired by the acquiring step;
A conversion step of converting the third image information into fourth image information of an HLS color space indicated by hue H, luminance L, and saturation S;
A receiving step for receiving range information indicating a range of at least one of hue H, luminance L, and saturation S including the color of the additional writing;
In the fourth image information obtained by the conversion step, a specifying step for specifying a location included in the range indicated by the range information received by the receiving step as a location where the additional writing has been performed,
An image processing program for causing a computer to execute.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2006262860A JP4923914B2 (en) | 2006-09-27 | 2006-09-27 | Image processing apparatus and image processing program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2006262860A JP4923914B2 (en) | 2006-09-27 | 2006-09-27 | Image processing apparatus and image processing program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2008083972A JP2008083972A (en) | 2008-04-10 |
| JP4923914B2 true JP4923914B2 (en) | 2012-04-25 |
Family
ID=39354798
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2006262860A Expired - Fee Related JP4923914B2 (en) | 2006-09-27 | 2006-09-27 | Image processing apparatus and image processing program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4923914B2 (en) |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0481979A (en) * | 1990-07-24 | 1992-03-16 | Hitachi Ltd | Document image processing method and device |
| JP4080750B2 (en) * | 2002-01-10 | 2008-04-23 | グローリー株式会社 | Character extraction method, character extraction device, and program |
| JP2006135664A (en) * | 2004-11-05 | 2006-05-25 | Fuji Xerox Co Ltd | Picture processor and program |
-
2006
- 2006-09-27 JP JP2006262860A patent/JP4923914B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2008083972A (en) | 2008-04-10 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP4389976B2 (en) | Image processing apparatus and image processing program | |
| JP5387193B2 (en) | Image processing system, image processing apparatus, and program | |
| JP2010034683A (en) | Image processing apparatus, and program | |
| JP4853560B2 (en) | Image processing method, image processing apparatus, and computer program | |
| JP4923914B2 (en) | Image processing apparatus and image processing program | |
| JP4706612B2 (en) | Image processing apparatus and image processing program | |
| JP4863011B2 (en) | Image processing apparatus and image processing program | |
| US9619901B2 (en) | Image processing apparatus, image processing method, and non-transitory computer readable medium using an elimination color to determine color processing for a document image | |
| JP4910635B2 (en) | Image processing apparatus and image processing program | |
| JP6535222B2 (en) | Image processing apparatus and image forming system | |
| JP5056063B2 (en) | Image processing apparatus and image processing program | |
| JP5337060B2 (en) | Image processing apparatus, control method, and program | |
| JP2012181618A (en) | Image processing program and image processing device | |
| JP5939132B2 (en) | Image processing apparatus and image processing program | |
| EP2938059B1 (en) | Color processing apparatus and color processing method | |
| JP5883963B2 (en) | Image processing device | |
| JP5053979B2 (en) | Image processing program, image processing apparatus, and image processing method | |
| JP2010120305A (en) | Image processor, image processing method, and program | |
| JP5637911B2 (en) | Color adjustment apparatus, method and program | |
| JP5692554B1 (en) | Color conversion apparatus and color conversion program | |
| JP2008085731A (en) | Pixel data correction apparatus and pixel data correction method | |
| JP2007180930A (en) | Image combining device, image combining method and program, and recording medium | |
| JP2005130000A (en) | Image processing device | |
| JP5337059B2 (en) | Image processing apparatus, control method, and program | |
| JP5712153B2 (en) | Image processing method and image processing program |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20090818 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20110526 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20110607 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20110728 |
|
| 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: 20120110 |
|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20120123 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20150217 Year of fee payment: 3 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 4923914 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| S533 | Written request for registration of change of name |
Free format text: JAPANESE INTERMEDIATE CODE: R313533 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
| LAPS | Cancellation because of no payment of annual fees |