JP2008103987A - Image processor - Google Patents
Image processor Download PDFInfo
- Publication number
- JP2008103987A JP2008103987A JP2006284811A JP2006284811A JP2008103987A JP 2008103987 A JP2008103987 A JP 2008103987A JP 2006284811 A JP2006284811 A JP 2006284811A JP 2006284811 A JP2006284811 A JP 2006284811A JP 2008103987 A JP2008103987 A JP 2008103987A
- Authority
- JP
- Japan
- Prior art keywords
- luminance
- hue
- value
- data
- color
- 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
Links
- 238000006243 chemical reaction Methods 0.000 claims abstract description 106
- 238000000034 method Methods 0.000 claims abstract description 18
- 239000000284 extract Substances 0.000 claims abstract description 6
- 238000012545 processing Methods 0.000 claims description 115
- 230000002093 peripheral effect Effects 0.000 claims description 54
- 238000012937 correction Methods 0.000 claims description 21
- 238000000605 extraction Methods 0.000 claims description 16
- 230000007423 decrease Effects 0.000 claims description 4
- 230000003247 decreasing effect Effects 0.000 abstract description 6
- 238000010586 diagram Methods 0.000 description 22
- 238000013075 data extraction Methods 0.000 description 10
- 230000002087 whitening effect Effects 0.000 description 9
- 230000006870 function Effects 0.000 description 8
- 238000003705 background correction Methods 0.000 description 5
- 238000012546 transfer Methods 0.000 description 4
- 239000003086 colorant Substances 0.000 description 3
- 238000003384 imaging method Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 230000001678 irradiating effect Effects 0.000 description 2
- 229920006395 saturated elastomer Polymers 0.000 description 2
- 239000000654 additive Substances 0.000 description 1
- 230000000996 additive effect Effects 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 238000010438 heat treatment Methods 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 230000035945 sensitivity Effects 0.000 description 1
Images
Landscapes
- Facsimile Image Signal Circuits (AREA)
- Image Processing (AREA)
- Color Image Communication Systems (AREA)
Abstract
Description
本発明は、画像処理装置に係り、さらに詳しくは、スキャナなどの撮像装置が原稿から読み取ったカラー画像を画像処理し、モノクロ画像を出力する画像処理装置の改良に関する。 The present invention relates to an image processing apparatus, and more particularly to an improvement in an image processing apparatus that performs image processing on a color image read from an original by an imaging device such as a scanner and outputs a monochrome image.
近年、原稿から読み取られたカラー画像について、特定の色を白レベルに変換して白黒画像(モノクロ画像)を生成する技術が提案されている(例えば、特許文献1)。この特許文献1に記載の画像処理装置は、原稿から画像を読み取る画像読取部と、色を指定する色指定部と、指定された色を白レベルに変換して白黒画像を生成する画像処理部からなる。この画像処理装置では、予め指定された色相、彩度、明度の範囲内にあるピクセルが抽出され、当該ピクセルについて輝度成分を白レベルに変換する処理が行われる。これにより、カラー画像から特定の色のピクセルを白化させた白黒画像が得られ、原稿中に上記特定の色、例えば、赤インクで印刷されている記入枠などのオブジェクトを画像データから消去することができる。
In recent years, a technique has been proposed for generating a monochrome image (monochrome image) by converting a specific color into a white level for a color image read from an original (for example, Patent Document 1). The image processing apparatus described in
一方、色相が所定範囲内にある画素の彩度を増加させ、特定の色相を強調してカラー画像を印刷するカラー印刷装置が提案されている(例えば、特許文献2)。このカラー印刷装置では、彩度を増加させる色相の範囲を予め指定させ、色相がこの範囲内にある画素の彩度を増加させることにより、カラー画像の印刷品質を向上させている。
カラースキャナなどの撮像装置により原稿から読み取られたカラー画像を印刷用紙にモノクロ印刷させる際、黒で印刷された原稿に赤色のペンで書き込まれている文字などの特定箇所を強調して印刷できれば極めて便利である。特に、赤色で書き込まれた文字などの特定箇所を濃くして強調し、黒で印刷された他の箇所を薄くして印刷することができれば、モノクロ画像であっても、赤色で書き込まれた箇所と、黒で印刷された箇所とを識別することができて便利である。 If a color image read from an original by an imaging device such as a color scanner is printed in black and white on a print sheet, it is extremely possible to print with emphasis on specific parts such as characters written with a red pen on an original printed in black. Convenient. In particular, if a specific part such as a character written in red is darkened and emphasized, and other parts printed in black can be thinned and printed, even if it is a monochrome image, the part written in red And a portion printed in black is convenient.
本発明は、上記事情に鑑みてなされたものであり、原稿から読み取られたカラー画像をモノクロ印刷させる際に、特定の色で書き込まれた箇所を強調させることができる画像処理装置を提供することを目的としている。特に、ピクセルごとの輝度データ及び色度データからなるカラー画像からモノクロ画像を得る際に、ユーザが指定する色相のピクセルを強調することができる画像処理装置を提供することを目的としている。また、ユーザが指定する色相と、この色相に色空間において近い色相との境界が目立つのを抑制させることができる画像処理装置を提供することを目的としている。 The present invention has been made in view of the above circumstances, and provides an image processing apparatus capable of highlighting a portion written in a specific color when a color image read from an original is printed in monochrome. It is an object. In particular, an object of the present invention is to provide an image processing apparatus that can emphasize pixels of a hue specified by a user when obtaining a monochrome image from a color image made up of luminance data and chromaticity data for each pixel. It is another object of the present invention to provide an image processing apparatus capable of suppressing the conspicuous boundary between a hue specified by a user and a hue close to the hue in a color space.
第1の本発明による画像処理装置は、原稿から読み取られたピクセルごとの輝度データ及び色度データからなるカラー画像を画像処理し、モノクロ画像を出力する画像処理装置であって、ユーザ操作に基づいて、変換対象とする色相を指定する色相指定情報を生成する色相指定手段と、上記色度データから得られる色相に基づいて、上記色相指定情報で指定された色相のピクセルを上記カラー画像から抽出するピクセル抽出手段と、上記ピクセル抽出手段により抽出されたピクセルの上記輝度データに対し、輝度の上限値を低下させ、かつ、上限値を含む所定の範囲内において単調増加する関数を用いて輝度値を変換する処理を行い、上記カラー画像から上記モノクロ画像を生成する輝度データ変換手段とを備えて構成される。 An image processing apparatus according to a first aspect of the present invention is an image processing apparatus that performs image processing on a color image composed of luminance data and chromaticity data for each pixel read from a document and outputs a monochrome image, based on a user operation. The hue designation means for generating hue designation information for designating the hue to be converted and the pixel of the hue designated by the hue designation information are extracted from the color image based on the hue obtained from the chromaticity data. And a luminance value using a function that decreases the upper limit value of the luminance and monotonously increases within a predetermined range including the upper limit value with respect to the luminance data of the pixel extracted by the pixel extracting unit. And luminance data conversion means for generating the monochrome image from the color image.
この画像処理装置では、ユーザ操作に基づいて色相指定情報が生成され、色相指定情報で指定された色相のピクセルが原稿から読み取られたカラー画像から抽出される。そして、抽出されたピクセルの輝度データを変換する処理が行われ、カラー画像からモノクロ画像が生成される。この輝度データの変換処理は、輝度の上限値を低下させるとともに、上限値を含む所定の範囲内において単調増加する関数を用いて行われる。この様な構成により、ユーザが指定する色相のピクセルについて、上限値近傍の輝度値が低下するので、モノクロ画像の印刷時に濃く印刷され、当該箇所を強調させることができる。 In this image processing apparatus, hue designation information is generated based on a user operation, and pixels having a hue designated by the hue designation information are extracted from a color image read from a document. And the process which converts the luminance data of the extracted pixel is performed, and a monochrome image is produced | generated from a color image. The luminance data conversion process is performed using a function that decreases the upper limit value of luminance and monotonously increases within a predetermined range including the upper limit value. With such a configuration, the luminance value in the vicinity of the upper limit value of the pixel of the hue specified by the user is reduced, so that it is darkly printed when the monochrome image is printed, and the portion can be emphasized.
第2の本発明による画像処理装置は、上記構成に加え、上記輝度データ変換手段が、輝度値を当該輝度値に一定数を乗じた値に対応付けるように構成される。 In addition to the above configuration, the image processing apparatus according to the second aspect of the present invention is configured such that the luminance data conversion means associates a luminance value with a value obtained by multiplying the luminance value by a certain number.
第3の本発明による画像処理装置は、上記構成に加え、上記輝度データ変換手段が、下限値から第1の閾値までの範囲内に存在する輝度値を下限値に対応付け、上記第1の閾値から上限値までの範囲内に存在する輝度値を当該輝度値から一定数を減じた値に対応付けるように構成される。 In the image processing apparatus according to a third aspect of the present invention, in addition to the above configuration, the luminance data conversion unit associates a luminance value existing in a range from a lower limit value to a first threshold value with the lower limit value, and The luminance value existing within the range from the threshold value to the upper limit value is associated with a value obtained by subtracting a certain number from the luminance value.
第4の本発明による画像処理装置は、上記構成に加え、上記ピクセル抽出手段が、上記色度データから得られる色相に基づいてカラー画像からピクセルを抽出する際、第2の閾値よりも彩度の大きなピクセルを抽出し、上記第2の閾値よりも彩度の小さなピクセルを抽出しないように構成される。この様な構成によれば、第2の閾値よりも彩度の大きなピクセルだけを抽出対象として抽出処理が行われるので、ユーザが指定する色相とは異なる彩度の小さなピクセルが誤って抽出されるのを防止することができる。 In addition to the above configuration, the image processing apparatus according to the fourth aspect of the present invention, when the pixel extraction unit extracts pixels from a color image based on a hue obtained from the chromaticity data, is more saturated than the second threshold value. Are extracted, and pixels having a saturation smaller than the second threshold value are not extracted. According to such a configuration, the extraction process is performed only for pixels having a saturation greater than the second threshold value, and thus pixels having a small saturation different from the hue specified by the user are erroneously extracted. Can be prevented.
第5の本発明による画像処理装置は、上記構成に加え、上記輝度データ変換手段による変換処理後の輝度データに対して輝度値を第3の閾値と比較し、この比較結果に基づいて2値データを生成する2値化処理手段を備え、ピクセルごとの上記2値データからなる上記モノクロ画像が出力されるように構成される。 In addition to the above configuration, the image processing apparatus according to the fifth aspect of the present invention compares the luminance value of the luminance data after the conversion processing by the luminance data conversion means with a third threshold value, and binaries based on the comparison result A binarization processing unit for generating data is provided, and the monochrome image including the binary data for each pixel is output.
第6の本発明による画像処理装置は、上記構成に加え、上記輝度データ変換手段による変換処理後の輝度データに対して、下限値を含む第1の範囲内に存在する輝度値を上記下限値に変換し、或いは、上限値を含む第2の範囲内に存在する輝度値を上記上限値に変換する処理を行う輝度補正手段を備え、上記2値化処理手段が、上記輝度補正手段による変換処理後の輝度データに基づいて上記2値データを生成するように構成される。 In addition to the above configuration, an image processing apparatus according to a sixth aspect of the present invention uses the luminance value existing in the first range including the lower limit value for the luminance data after the conversion processing by the luminance data conversion means as the lower limit value. Or a luminance correction unit that performs a process of converting a luminance value existing in a second range including the upper limit value into the upper limit value, and the binarization processing unit converts the luminance value by the luminance correction unit. The binary data is generated based on the luminance data after processing.
第7の本発明による画像処理装置は、上記構成に加え、上記輝度データ変換手段が、上記色相指定情報で指定された色相以外のピクセルに対しては、輝度値を増加させるように構成される。 In addition to the above configuration, the image processing apparatus according to the seventh aspect of the present invention is configured such that the luminance data conversion means increases the luminance value for pixels other than the hue specified by the hue specifying information. .
第8の本発明による画像処理装置は、上記構成に加え、上記色相指定情報に基づいて、当該色相指定情報が指定する色相の色空間における周辺領域を指定する周辺領域指定情報を生成する周辺領域指定手段を備え、上記輝度データ変換手段が、上記周辺領域指定情報で指定された周辺領域のピクセルに対して、上記変換処理よりも輝度値を増加させる割合を小さくして輝度データを変換し、上記カラー画像から上記モノクロ画像を生成するように構成される。この様な構成によれば、ユーザが指定した色相の周辺領域のピクセルについても、輝度データが適切に変換されるので、ユーザが指定する色相と、この色相に色空間において近い色相との境界がモノクロ画像の印刷時に目立つのを抑制させることができる。 In addition to the above configuration, an image processing apparatus according to an eighth aspect of the present invention generates a peripheral area specifying information for specifying a peripheral area in a color space of a hue specified by the hue specifying information based on the hue specifying information. Comprising: designation means, wherein the luminance data conversion means converts the luminance data with respect to the pixels in the peripheral area designated by the peripheral area designation information at a lower rate of increasing the luminance value than the conversion process, The monochrome image is generated from the color image. According to such a configuration, luminance data is also appropriately converted for pixels in the peripheral region of the hue specified by the user, so that the boundary between the hue specified by the user and a hue close to the hue in the color space is present. Conspicuousness can be suppressed when printing a monochrome image.
本発明による画像処理装置によれば、ユーザが指定する色相のピクセルについて、輝度値が低下するので、モノクロ画像の印刷時に特定の色相が濃く印刷され、当該箇所を強調させることができる。ユーザが指定した色相の周辺領域のピクセルについても、輝度データが適切に変換されるので、ユーザが指定する色相と、この色相に色空間において近い色相との境界がモノクロ画像の印刷時に目立つのを抑制させることができる。従って、原稿から読み取られたカラー画像をモノクロ印刷させる際に、特定の色で書き込まれた箇所を強調させることができる。 According to the image processing apparatus of the present invention, the brightness value of the pixel of the hue specified by the user is lowered, so that the specific hue is printed darkly when the monochrome image is printed, and the portion can be emphasized. Since the luminance data is also appropriately converted for pixels in the peripheral area of the hue specified by the user, the boundary between the hue specified by the user and a hue close to this hue in the color space is noticeable when printing a monochrome image. Can be suppressed. Therefore, when a color image read from a document is printed in monochrome, a portion written in a specific color can be emphasized.
実施の形態1.
図1は、本発明の実施の形態1による画像処理装置の概略構成の一例を示したブロック図であり、画像処理装置の一例として、カラースキャナ部10、画像処理部20及びプリンタ部30からなるデジタル複合機100が示されている。カラースキャナ部10は、読み取り対象とする原稿に光を照射し、当該原稿による反射光を受光して画像データを生成する撮像装置である。ここでは、原稿(用紙)の紙送り方向に照射光を走査(スキャン)させることにより、原稿上の手書き文字や印刷パターンが読み取られるものとする。また、少なくとも3つの異なる色ごとの輝度データからなるカラー画像データが生成されるものとする。
FIG. 1 is a block diagram showing an example of a schematic configuration of an image processing apparatus according to
画像処理部20は、カラースキャナ部10が原稿から読み取ったカラー画像データについて輝度データの輝度値を変更してモノクロ画像データを生成する処理を行い、生成したモノクロ画像データをプリンタ部30へ出力する動作を行っている。輝度値を変更する処理は、ユーザが指定する色相に基づいて行われる。画像処理部20では、表示部42に色相を指定させるための入力画面を表示させ、操作入力部41からの入力信号に基づいて色相が指定される。
The
プリンタ部30は、モノクロ画像データの出力装置であり、LEDプリントヘッド31、駆動制御部32、感光体ドラム33、帯電器34、現像部35、転写部36及び定着部37からなる。LEDプリントヘッド31は、複数のLED(Light Emitting Diode:発光ダイオード)を直線上に配置させたLEDアレイを備え、画像処理部20から入力されるモノクロ画像データに基づいて、光を感光体ドラム33に照射する動作を行っている。
The
駆動制御部32は、感光体ドラム33、帯電器34、現像部35、転写部36及び定着部37からなるプリンタ機構の制御を行っている。感光体ドラム33は、表面に感光体層が形成された円筒状の回転体であり、印刷時には、帯電器34により表面が一様に帯電される。この様に帯電された感光体ドラム33の表面に、光を照射させることにより、静電潜像が形成される。
The
現像部35は、静電潜像が形成された感光体ドラム33の表面に、トナーを付着させて、トナー像を形成させる動作を行っている。転写部36は、感光体ドラム33の表面に形成されたトナー像を印刷用紙に転写させる動作を行っている。定着部37は、トナー像が転写された印刷用紙を加熱処理及び加圧処理し、モノクロ画像を印刷用紙表面に定着させる動作を行っている。
The developing
図2は、図1のデジタル複合機100におけるカラースキャナ部10の構成例を示したブロック図である。このカラースキャナ部10は、ラインセンサ11、AFE回路12、A/Dコンバータ13、シェーディング補正回路14、γ補正回路15及び色空間変換回路16からなる。ラインセンサ11は、CCD(Charge Coupled Device:電荷結合素子)などの複数の受光素子を直線L上に配置させた受光素子アレイを備え、受光量(輝度)を示すアナログ信号、例えば、電圧信号をR(赤)、G(緑)及びB(青)の各色ごとに生成する動作を行っている。
FIG. 2 is a block diagram illustrating a configuration example of the
AFE(Analog Front End:アナログフロントエンド)回路12は、ラインセンサ11から入力されたアナログ信号の電圧レベルを調整してA/Dコンバータ13へ出力するアンプである。A/Dコンバータ13は、AFE回路12から入力されたアナログ信号を所定のサンプリングレートでサンプリングし、デジタルデータを生成する変換素子である。ここでは、8ビット(256階調)のビットデータからなる輝度データが、R,G,Bの各色ごとに生成されるものとする。
An AFE (Analog Front End)
シェーディング補正回路14は、ラインセンサ11における画素ごとの受光量の基準を揃えるために、輝度データの補正処理を行うデジタル処理回路である。具体的には、シェーディング補正用に予め作成され、ライン方向(直線L方向)に配置された光の反射率が既知の複数のオブジェクト、いわゆる「白基準」又は「黒基準」をラインセンサ11に読み取らせる。このとき得られる輝度データと、上記オブジェクトの反射率情報に基づいて、原稿から新たに読み取られた輝度データが補正される。これにより、原稿読み取り用の光源の明るさにおけるライン方向(直線L方向)のバラツキ、照射用の集光レンズにおける周辺光量低下の影響、或いは、ラインセンサ11の受光感度におけるライン方向のバラツキを補正することができる。
The
γ(ガンマ)補正回路15は、シェーディング補正回路14から入力されるR,G,Bの輝度データを色調整するγ補正処理を行うデジタル処理回路である。例えば、デバイスに依存するRGB色空間に対し、国際標準規格の表色系「sRGB(standard RGB)表色系」に則って輝度データの色調整が行われる。RGB色空間は、光の3原色(R,G,B)を用いて加法混色を表現するのに使われる色空間であり、数値が増すほど白に近づく。sRGB表色系は、スキャナ、デジタルカメラ、プリンタ、モニターなどの様々な画像の入出力機器に採用されており、sRGB表色系に則って色調整することにより、入力時と出力時における色の差異を少なくすることができる。
The γ (gamma)
色空間変換回路16は、γ補正回路15から入力されるR,G,Bの輝度データについて、色空間を変換してカラー画像データを出力するデジタル処理回路である。具体的には、RGB色空間を輝度及び色相からなる色空間、例えば、YCbCr表色系に変換する処理が行われる。YCbCr表色系は、JPEG形式の画像データなどに用いられている表色系であり、Yが輝度データを示し、CbCrが色度データをそれぞれ示している。この色度データCbCrでは、Cbが青の差分(色相成分)、Crが赤の差分(色相成分)をそれぞれ示している。この色空間変換回路16により、ピクセルごとの輝度データ及び色度データからなるカラー画像データが生成される。
The color
YCbCr表色系に変換するのに代えて、均等色空間の1つであるLab表色系に変換するものであっても良い。Lab表色系では、Lが輝度データを示し、abが色度データをそれぞれ示している。この色度データabでは、a及びbがそれぞれ色相成分を示している。なお、Lab表色系におけるL成分は、通常、明度と呼ばれる。本明細書中における輝度データには、Lab表色系のL成分データ、すなわち、明度データが含まれるものとする。 Instead of converting to the YCbCr color system, it may be converted to the Lab color system which is one of the uniform color spaces. In the Lab color system, L indicates luminance data, and ab indicates chromaticity data. In the chromaticity data ab, a and b each indicate a hue component. Note that the L component in the Lab color system is usually called lightness. The luminance data in this specification includes Lab color system L component data, that is, lightness data.
図3は、図1のデジタル複合機100の要部における構成例を示したブロック図であり、画像処理部20の機能構成の一例が示されている。この画像処理部20は、色相指定部21、周辺領域指定部22、モノクロ画像生成部23、変換テーブル記憶部24、周辺領域変換テーブル記憶部25、輝度補正部26及び2値化処理部27からなる。色相指定部21は、ユーザ操作に基づいて、輝度値の変換対象とする色相を指定する色相指定情報を生成する動作を行っている。
FIG. 3 is a block diagram illustrating a configuration example of a main part of the
この色相指定では、YCbCr表色系における異なる色相成分Cb及びCrをそれぞれ独立に指定することができる。ここでは、色空間が複数の色相領域に予め区分され、これらの色相領域のうちの1つがユーザにより選択されるものとする。 In this hue designation, different hue components Cb and Cr in the YCbCr color system can be designated independently. Here, it is assumed that the color space is divided into a plurality of hue regions in advance, and one of these hue regions is selected by the user.
周辺領域指定部22は、色相指定部21からの色相指定情報に基づいて、当該色相指定情報が指定する色相の色空間における周辺領域を指定する周辺領域指定情報を生成する動作を行っている。この周辺領域指定情報により指定される周辺領域は、ユーザにより指定される色相領域とは重複しない領域である。
Based on the hue designation information from the
変換テーブル記憶部24は、第1の閾値よりも高い輝度値を飽和させ、第1の閾値よりも低い輝度値を増加させる変換テーブルを記憶するメモリである。この変換テーブルは、輝度値の対応付けを規定する対応付け情報であり、ここでは、下限値から第1の閾値までの範囲内に存在する変換処理前の輝度の入力値に一定数を乗じた値を変換処理後の輝度の出力値とする変換テーブルが予め記憶されているものとする。
The conversion
周辺領域変換テーブル記憶部25は、上記変換テーブルよりも輝度値を増加させる割合の小さな周辺領域変換テーブルを記憶するメモリである。
The peripheral area conversion
モノクロ画像生成部23は、色相指定情報及び周辺領域指定情報に基づいてカラー画像データからピクセルを抽出し、抽出したピクセルの輝度データを変換テーブル及び周辺領域変換テーブルに基づいて変換してモノクロ画像データを生成する処理を行っている。
The monochrome
輝度補正部26は、モノクロ画像生成部23からのモノクロ画像データについて、ノイズを除去するために、輝度を補正する処理を行っている。具体的には、輝度データに対して、下限値を含む第1の範囲内に存在する輝度値を上記下限値に変換し、上限値を含む第2の範囲内に存在する輝度値を上記上限値に変換する処理が行われる。
The
カラー画像からピクセルを抽出し、輝度データを変換してモノクロ画像を生成する処理を輝度の補正処理よりも前に行わせることにより、色相判定、すなわち、色度データが示す色相が属する色相領域の判定を正確に行うことができる。 By extracting pixels from the color image and converting the luminance data to generate a monochrome image before the luminance correction processing, hue determination, that is, the hue region to which the hue indicated by the chromaticity data belongs Judgment can be made accurately.
2値化処理部27は、輝度補正部26による変換処理後の輝度データについて階調数を減少させて2値化する処理を行っている。具体的には、輝度データの輝度値を所定の閾値(第4の閾値)と比較し、この比較結果に基づいて2値データが生成される。この2値化処理部27により生成され、ピクセルごとの2値データからなるモノクロ画像データがLEDプリントヘッド31へ出力される。
The
ここでは、輝度成分を2値化する際、白黒の多値の階調変化を2値で再現するために、ディザ法などの擬似階調表示処理(中間調表示処理)が行われるものとする。擬似階調表示処理は、2値化のための閾値を複数のピクセルからなるブロックごとに定めてモノクロ画像データを得る画像処理である。 Here, when the luminance component is binarized, pseudo gradation display processing (halftone display processing) such as a dither method is performed in order to reproduce black and white multi-value gradation changes in binary. . The pseudo gradation display process is an image process for obtaining monochrome image data by setting a threshold for binarization for each block composed of a plurality of pixels.
図4は、図3の画像処理部20におけるモノクロ画像生成部23の構成例を示したブロック図である。このモノクロ画像生成部23は、色度データ抽出部1、ピクセル抽出部2、輝度データ抽出部3及び輝度データ変換部4からなる。色度データ抽出部1は、カラー画像データから色度データを抽出する動作を行っている。具体的には、色空間変換回路16において生成されたカラー画像データ(ここでは、YCbCr)から色度データCbCrが抽出され、ピクセル抽出部2へ出力される。
FIG. 4 is a block diagram illustrating a configuration example of the monochrome
ピクセル抽出部2は、色度データ抽出部1からの色度データCbCrに基づいて、色相指定情報及び周辺領域指定情報で指定された色相のピクセルを抽出する動作を行っている。
Based on the chromaticity data CbCr from the chromaticity
具体的には、色度データCbCrに含まれる色相成分に基づいて当該ピクセルが属する色空間における色相領域が判別され、ユーザが指定する色相領域と一致するピクセルが抽出される。また、周辺領域指定情報で指定された色相領域と一致するピクセルが抽出される。 Specifically, the hue area in the color space to which the pixel belongs is determined based on the hue component included in the chromaticity data CbCr, and the pixel that matches the hue area specified by the user is extracted. Also, pixels that match the hue area specified by the peripheral area specifying information are extracted.
輝度データ抽出部3は、カラー画像データから輝度データを抽出する動作を行っている。具体的には、色空間変換回路16において生成されたカラー画像データYCbCrから輝度データYが抽出され、輝度データ変換部4へ出力される。
The luminance data extraction unit 3 performs an operation of extracting luminance data from the color image data. Specifically, the luminance data Y is extracted from the color image data YCbCr generated by the color
輝度データ変換部4は、強調処理部5及び輝度選択部6からなり、ピクセル抽出部2により抽出されたピクセルの輝度データを変換テーブルに基づいて変換し、カラー画像データからモノクロ画像データを生成する動作を行っている。
The luminance
強調処理部5は、変換テーブル記憶部24から読み出した変換テーブルと、周辺領域変換テーブル記憶部25から読み出した周辺領域変換テーブルに基づいて輝度データYを変換し、輝度値を増大させた第1輝度データ及び第2輝度データを生成する処理を行っている。具体的には、変換テーブルに従って輝度値を変換して第1輝度データが生成される。また、周辺領域変換テーブルに従って輝度値を変換して第2輝度データが生成される。
The
輝度選択部6は、ピクセル抽出部2からのピクセルの抽出情報に基づいて、輝度データを選択し、モノクロ画像データとして出力する動作を行っている。具体的には、色相指定情報に基づいて抽出されたピクセルについて、第1輝度データが選択され、周辺領域指定情報に基づいて抽出されたピクセルについて、第2輝度データが選択される。また、ピクセル抽出部2により抽出されなかったピクセルについて、輝度データYが選択される。
The luminance selection unit 6 performs an operation of selecting luminance data based on the pixel extraction information from the
本実施の形態では、ピクセル抽出部2により抽出されたピクセルの輝度データについて変換処理する際、輝度値の対応付けが規定された変換テーブルを用いているが、この様なソフトウェア的な処理に代えて、演算回路を用いてハードウェア的に処理させるものであっても良い。
In the present embodiment, when conversion processing is performed on the luminance data of the pixels extracted by the
図5は、図3の画像処理部20における動作の一例を示した図であり、ユーザに色相を指定させる際に用いられる色空間が示されている。この色空間は、YCbCr表色系の色空間であり、縦軸にCb軸が配置され、横軸にCr軸が配置されている。Cb成分が大きくなれば、青味が強くなり、小さくなれば、黄味が強くなる。また、Cr成分が大きくなれば、赤味が強くなり、小さくなれば、緑味が強くなる。
FIG. 5 is a diagram showing an example of the operation in the
ここでは、色空間が原点を通る6本の直線51〜56、Cb軸及びCr軸により、16個の色相領域に区分されているものとする。また、Cb成分の入力レンジ及びCr成分の入力レンジは、一致しているものとする。
Here, it is assumed that the color space is divided into 16 hue regions by the six
直線51は、傾き2の直線Cb=2Cr、直線52は、傾き1の直線Cb=Cr、直線53は、傾き1/2の直線Cb=(1/2)Crをそれぞれ示している。また、直線54は、傾き(−1)/2の直線(−2)Cb=Cr、直線55は、傾き(−1)の直線Cb=−Cr、直線56は、傾き(−2)の直線Cb=(−2)Crをそれぞれ示している。これらの直線51〜56により区分された各色相領域は、互いに面積の等しい領域となっている。
A
色空間の原点近傍の領域は、色相成分の絶対値が小さな無彩色領域57となっている。この無彩色(モノトーン)領域57は、彩度の低い色相を示す領域であり、色相成分Cb及びCr間に成り立つ所定の関係式によって規定される。この例では、原点を中心とする円の内部として無彩色領域57が示されている。
A region near the origin of the color space is an
この様な無彩色領域57は、輝度値の変換対象とする色相からは除外される。つまり、色度データに基づいてカラー画像からピクセルを抽出する際には、所定の閾値(第3の閾値)よりも彩度の大きなピクセルだけが抽出され、当該閾値よりも彩度の小さなピクセルについては抽出しないこととなる。
Such an
この様な色空間に対し、輝度値を変更してモノクロ画像から白化させる色相領域及び周辺領域が指定される。 For such a color space, a hue area and a peripheral area to be whitened from a monochrome image by changing the luminance value are designated.
図6は、図3の画像処理部20における動作の一例を示した図であり、ユーザにより指定された色相領域A1及び周辺領域A2が示されている。この例では、第1象限における直線52及び直線53間の色相領域A1がユーザにより指定され、この色相領域A1に隣接する2つの色相領域が周辺領域A2に指定されている。つまり、周辺領域A2は、ユーザにより色相領域A1が1つ指定されれば、当該色相領域A1の色空間内における位置又は区分に基づいて自動的に指定される。
FIG. 6 is a diagram illustrating an example of the operation in the
モノクロ画像生成部23では、色相が色相領域A1に属するピクセルの輝度データを変換テーブルに基づいて変換するとともに、色相が周辺領域A2に属するピクセルの輝度データを周辺領域変換テーブルに基づいて変換する処理が行われる。
The monochrome
図7は、図3の画像処理部20における動作の一例を示した図であり、輝度値を変更して特定の色相を白化させる際に用いる変換テーブルを表すグラフB2及びB3が示されている。グラフB1は、傾き1の直線であり、輝度の入力値を同一輝度の出力値に対応付ける対応付けを表すグラフとなっている。
FIG. 7 is a diagram illustrating an example of the operation in the
グラフB2は、ユーザが指定した色相領域に属するピクセルの変換テーブルを表す折れ線であり、第1の閾値a1から輝度の上限値(飽和値)255までの範囲内の輝度の入力値を出力値255に対応付けている。また、グラフB2は、輝度の下限値0から第1の閾値a1までの範囲内の輝度の入力値を輝度に比例して増加させた出力値に対応付けている。
The graph B2 is a polygonal line representing a conversion table of pixels belonging to the hue area designated by the user, and the input value of the luminance within the range from the first threshold value a1 to the upper limit value (saturation value) 255 of the luminance is the
この例では、下限値0から第1の閾値a1までの範囲におけるグラフB2の比例係数(直線の傾き)が4となっており、上限値255の1/4が第1の閾値a1となっている。
In this example, the proportionality coefficient (straight line) of the graph B2 in the range from the
グラフB3は、周辺領域に属するピクセルの輝度データを変換する際に用いられる周辺領域変換テーブルを表す折れ線であり、グラフB2に比べて輝度値を増加させる割合が小さくなっている。具体的には、閾値a2から上限値255までの範囲内の輝度の入力値を出力値255に対応付け、下限値0から閾値a2(>a1)までの範囲内の輝度の入力値を輝度に比例して増加させた出力値に対応付けている。下限値0から閾値a2までの範囲におけるグラフB3の比例係数は、1よりも大きく、グラフB2の比例係数よりも小さくなっている。
The graph B3 is a line representing a peripheral area conversion table used when converting the luminance data of pixels belonging to the peripheral area, and the rate of increasing the luminance value is smaller than that of the graph B2. Specifically, the input value of the luminance within the range from the threshold value a2 to the
この例では、下限値0から閾値a2までの範囲におけるグラフB3の比例係数が2となっており、上限値255の1/2が閾値a2となっている。
In this example, the proportional coefficient of the graph B3 in the range from the
モノクロ画像生成部23では、この様なグラフB2,B3が表す変換テーブルに基づいて、輝度データを変換する処理が行われ、変換処理後の輝度データがモノクロ画像データとして出力される。
In the monochrome
図8は、図3の画像処理部20における動作の一例を示した図であり、ノイズ除去のための輝度補正に用いられる変換テーブルを表すグラフC1が示されている。このグラフC1は、輝度の下限値0を含む第1の範囲内、すなわち、0以上b1以下の範囲内に存在する輝度値を下限値0に対応付け、上限値255を含む第2の範囲内、すなわち、b2以上255以下の範囲内に存在する輝度値を上限値255に対応付ける。また、グラフC1は、b1以上b2以下の範囲内の輝度値をb1との差分を一定数倍した輝度値に対応付けている。
FIG. 8 is a diagram showing an example of the operation in the
輝度補正部26では、モノクロ画像生成部23により生成されたモノクロ画像データに対して、この様なグラフC1が表す変換テーブルに基づく変換処理が行われる。この様な変換テーブルに基づいて輝度を補正することにより、上限値に近い輝度値が飽和され、下限値に近い輝度値が下限値に変換されるので、モノクロ画像において、白の領域の中にノイズ状に黒が点在し、或いは、黒の領域の中にノイズ状に白が点在するのを抑制させることができる。
In the
図9のステップS101〜S108は、図3の画像処理部20における動作の一例を示したフローチャートである。まず、色相指定部21は、ユーザにより輝度値の変換対象とする色相領域が指定されれば、色相指定情報を生成する(ステップS101)。周辺領域指定部22は、色相指定情報が色相指定部21から入力されると、当該色相指定情報に基づいて、周辺領域指定情報を生成する。
Steps S101 to S108 in FIG. 9 are flowcharts showing an example of the operation in the
次に、モノクロ画像生成部23は、色相指定情報及び周辺領域指定情報が入力されると、カラースキャナ部10からカラー画像データを読み込み、色度データの色相成分に基づいて指定領域に属するピクセルであるか否かを判定し、色相指定情報で指定されている色相領域に属するピクセルと、周辺領域指定情報で指定されている周辺領域に属するピクセルを抽出する(ステップS102〜S104)。
Next, when the hue designation information and the peripheral area designation information are input, the monochrome
このとき、モノクロ画像生成部23は、抽出したピクセルの輝度データについて、変換テーブルに基づく輝度の変換処理を行い、モノクロ画像データを生成する(ステップS105)。
At this time, the monochrome
次に、輝度補正部26は、モノクロ画像生成部23からモノクロ画像データが入力されると、当該モノクロ画像データについてノイズ除去のための輝度の補正処理を行う(ステップS106)。そして、2値化処理部27は、補正処理後のモノクロ画像データについて階調数を減少させる処理を行い、2値データとして出力する(ステップS107,S108)。
Next, when the monochrome image data is input from the monochrome
図10は、図3の画像処理部20における動作の一例を示した図であり、輝度値を変更して特定の色相を白化させる際に用いる変換テーブルの他の例を表すグラフB4が示されている。このグラフB4は、ユーザが指定した色相領域に属するピクセルの変換テーブルを表す折れ線である。グラフB4では、第1の閾値a4から上限値255までの範囲内の輝度の入力値を出力値255に対応付け、第1の閾値a4に比べて小さな第2の閾値a3(例えば、128)よりも高く第1の閾値a4よりも低い輝度の入力値を増加させ、下限値0から第2の閾値a3までの範囲内の輝度の入力値を同一輝度に対応付けている。
FIG. 10 is a diagram showing an example of the operation in the
ここでは、第2の閾値a3から第1の閾値a4までの範囲内の輝度の入力値が閾値a3との差分を一定数倍した出力値に対応付けられている。つまり、グラフB4では、下限値0及び第1の閾値a4間に関して、直線の傾きを2段階で変化させている。
Here, the luminance input value within the range from the second threshold value a3 to the first threshold value a4 is associated with an output value obtained by multiplying the difference from the threshold value a3 by a certain number. That is, in the graph B4, the slope of the straight line is changed in two steps between the
輝度の下限値と第1の閾値との間を多段階に傾きを変化させたこの様なグラフB4が表す変換テーブルを用いて輝度データを変換させても良い。この様にすれば、ユーザが指定する色相のピクセルについて輝度データを変更する際、下限値から第1の閾値までの範囲内の輝度値が多段階に変更されるので、モノクロ画像の印刷時に白黒の境界が目立つのをより効果的に抑制させることができる。 Luminance data may be converted using a conversion table represented by such a graph B4 in which the slope is changed in multiple steps between the lower limit of luminance and the first threshold. In this way, when changing the luminance data for the pixel of the hue specified by the user, the luminance value within the range from the lower limit value to the first threshold value is changed in multiple stages. It is possible to more effectively suppress the boundary of
図11は、図3の画像処理部20における動作の一例を示した図であり、輝度値を変更して特定の色相を白化させる際に用いる変換テーブルのその他の例を表すグラフB5が示されている。このグラフB5は、ユーザが指定した色相領域に属するピクセルの変換テーブルを表す折れ線である。グラフB5では、第1の閾値a6から上限値255までの範囲内の輝度の入力値を出力値255に対応付け、下限値0から第1の閾値a6までの範囲内の輝度の入力値xを一定量a5だけ増加させた出力値(x+a5)に対応付けている。
FIG. 11 is a diagram illustrating an example of the operation in the
また、グラフB5では、第1の閾値a6が、a6+a5=255の関係を満たしている。この様なグラフB5が表す変換テーブルを用いて輝度データを変換させても良い。 In the graph B5, the first threshold value a6 satisfies the relationship of a6 + a5 = 255. Luminance data may be converted using a conversion table represented by such a graph B5.
本実施の形態によれば、ユーザが指定する色相領域に属するピクセルについて、輝度データがその輝度値に応じて変更されるとともに、第1の閾値よりも高い輝度値が輝度の上限値に変更されるので、モノクロ画像の印刷時に白黒の境界が目立つのを抑制しつつ特定の色相を白化させることができる。 According to the present embodiment, for pixels belonging to the hue region specified by the user, the luminance data is changed according to the luminance value, and the luminance value higher than the first threshold is changed to the upper limit value of luminance. Therefore, it is possible to whiten a specific hue while suppressing the black-and-white boundary from being noticeable when printing a monochrome image.
具体的には、記入枠やテンプレートなどが薄い色、例えば、明るさ(輝度)の高い赤で印刷された原稿用紙に記入枠などと同じ色のペンで文字などが書き込まれている場合に、ペンで書き込まれた文字や黒で印刷されたオブジェクトを白化させることなく、記入枠やテンプレートのみ白化させてモノクロ画像を印刷させることが想定される。本実施の形態によるデジタル複合機100では、原稿用紙にペンで書き込まれた文字が記入枠などに比べて輝度が低い(濃い)ことを利用して、手書き文字を残しつつ記入枠やテンプレートを適切に白化させることができる。 Specifically, when text or the like is written on a manuscript paper printed in light color, for example, red with high brightness (brightness) with a pen of the same color as the text frame, etc. It is assumed that a monochrome image is printed by whitening only an entry frame and a template without whitening a character written with a pen or an object printed in black. In the digital multi-function peripheral 100 according to the present embodiment, using the fact that characters written with a pen on manuscript paper have lower brightness (darker) than an entry frame or the like, an entry frame and a template are appropriately used while leaving handwritten characters. Can be whitened.
また、本実施の形態によれば、第3の閾値よりも彩度の大きなピクセルを抽出対象として抽出処理が行われるので、ユーザが指定する色相領域とは異なる彩度の小さなピクセルが誤って抽出されるのを防止することができる。 In addition, according to the present embodiment, since extraction processing is performed on pixels whose saturation is greater than the third threshold value, pixels with small saturation different from the hue region specified by the user are erroneously extracted. Can be prevented.
また、ユーザが指定した色相領域の周辺領域のピクセルについても、周辺領域変換テーブルに従って輝度データが変換されるので、ユーザが指定する色相と、この色相に色空間において近い色相との境界がモノクロ画像の印刷時に目立つのを抑制させることができる。 Also, luminance data is converted according to the peripheral area conversion table for pixels in the peripheral area of the hue area specified by the user, so the boundary between the hue specified by the user and the hue close to this hue in the color space is a monochrome image. Can be suppressed from being noticeable during printing.
なお、本実施の形態では、原稿からカラー画像を読み取るスキャナ機能と、読み取ったカラー画像から得られるモノクロ画像を印刷用紙に印刷するプリンタ機能を備えたデジタル複合機に本発明を適用する場合の例について説明したが、本発明はこれに限られるものではない。例えば、スキャナ機能のみを有する画像読取装置、或いは、プリンタ機能のみを有する印刷装置にも本発明は適用することができる。また、原稿から読み取ったカラー画像をモノクロ画像データに変換して通信先に送信し、通信先から受信したカラー画像データをモノクロ画像データに変換して印刷用紙に印刷するファクシミリ装置にも本発明は適用することができる。 In this embodiment, an example in which the present invention is applied to a digital multi-function peripheral having a scanner function for reading a color image from a document and a printer function for printing a monochrome image obtained from the read color image on printing paper. However, the present invention is not limited to this. For example, the present invention can be applied to an image reading apparatus having only a scanner function or a printing apparatus having only a printer function. The present invention also relates to a facsimile apparatus that converts a color image read from a document into monochrome image data and transmits it to a communication destination, converts the color image data received from the communication destination into monochrome image data, and prints it on printing paper. Can be applied.
また、本実施の形態では、輝度値を変更して特定の色相を白化させる際に用いる変換テーブルとして、図7のグラフB2、図10のグラフB4又は図11のグラフB5のいずれかが用いられる場合の例について説明したが、白化させる際に用いる変換テーブルをこれらのグラフが表す変換テーブルのいずれかに必要に応じて切り替え可能とする構成であっても良い。また、色相領域に応じて輝度値の対応付けを異ならせた複数の変換テーブルを保持し、ユーザが色相領域を指定した際に、当該色相領域に対応する変換テーブルを用いて輝度値の変換処理を行うようにしても良い。 Further, in the present embodiment, any of the graph B2 in FIG. 7, the graph B4 in FIG. 10, or the graph B5 in FIG. 11 is used as a conversion table used when changing the luminance value to whiten a specific hue. Although an example of the case has been described, a configuration in which a conversion table used for whitening can be switched to any of the conversion tables represented by these graphs as necessary may be employed. In addition, when a user specifies a hue area by holding a plurality of conversion tables with different brightness values according to the hue area, the brightness value conversion process is performed using the conversion table corresponding to the hue area. May be performed.
また、本実施の形態では、ピクセル抽出部2により抽出されなかったピクセルについて輝度データYが選択される場合の例について説明したが、本発明はこれに限られるものではない。例えば、輝度データ抽出部3において抽出された輝度データYを変換し、輝度値を低下させた第3輝度データを生成する処理を行う。そして、ピクセル抽出部2により抽出されなかったピクセルについて、第3輝度データが選択されるようにしても良い。
In the present embodiment, an example in which the luminance data Y is selected for pixels that are not extracted by the
また、本実施の形態では、色空間変換回路16において生成されたカラー画像データYCbCrに基づいて、ピクセル抽出及び輝度データの変換処理が行われる場合の例について説明したが、本発明はこれに限られるものではない。例えば、カラー画像データとしてRGB色空間によるカラーデータが入力されるものにも本発明は適用することができる。カラー画像データとして、RGBデータが入力される場合、色度データ抽出部1では、RGBデータに基づいて、色成分の差分(G−R)及び(G−B)が算出され、色度データとして出力される。また、輝度データ抽出部3では、RGBデータからG成分が抽出され、輝度データとして出力される。
In the present embodiment, an example in which pixel extraction and luminance data conversion processing is performed based on the color image data YCbCr generated in the color
実施の形態2.
実施の形態1では、ユーザが指定する色相のピクセルについて輝度値を増加させ、モノクロ画像の印刷時に白化させる場合の例について説明した。これに対し、本実施の形態では、特定の色で書き込まれた箇所を強調させるために、ユーザが指定する色相のピクセルに対して輝度値を低下させる場合について説明する。
In the first embodiment, the example has been described in which the luminance value is increased for the pixel of the hue specified by the user and whitened when the monochrome image is printed. On the other hand, in the present embodiment, a case will be described in which the luminance value is lowered with respect to the pixel of the hue specified by the user in order to emphasize the portion written in a specific color.
図12は、本発明の実施の形態2による画像処理装置における動作の一例を示した図であり、輝度値を変更して特定の色相を強調させる際に用いる変換テーブルを表すグラフD1及びD2が示されている。本実施の形態による画像処理装置は、実施の形態1によるデジタル複合機100と比較すれば、色相が特定の色相領域に属するピクセルの輝度値を変更する際に用いる変換テーブルのみ異なっている。その他の構成は、実施の形態1と同様である。 FIG. 12 is a diagram illustrating an example of an operation in the image processing apparatus according to the second embodiment of the present invention. Graphs D1 and D2 representing conversion tables used when changing a luminance value to emphasize a specific hue are shown. It is shown. The image processing apparatus according to the present embodiment is different from the digital multifunction peripheral 100 according to the first embodiment only in the conversion table used when changing the luminance value of a pixel whose hue belongs to a specific hue area. Other configurations are the same as those in the first embodiment.
グラフD1は、ユーザが指定した色相領域に属するピクセルに対して、輝度値を変更する際に用いる変換テーブルを表す直線である。このグラフD1は、輝度の下限値0から上限値(飽和値)255までの範囲内の輝度の入力値を輝度に比例して低下させた出力値に対応付けている。つまり、グラフD1は、輝度値を当該輝度値に一定数を乗じた値に対応付ける対応付けを表している。この例では、グラフD1の比例係数(直線の傾き)が1/4となっており、例えば、入力値255に対し、255/4に近い整数63又は64を出力値として対応付けている。ここで、入力値及び出力値は、いずれも整数であるものとし、入力値に対応するグラフD1上の出力値が小数である場合には、小数点以下は、切り上げ、切り捨て、或いは、四捨五入されるものとする。
The graph D1 is a straight line representing a conversion table used when changing the luminance value for pixels belonging to the hue region designated by the user. This graph D1 is associated with an output value obtained by lowering the luminance input value in the range from the
グラフD2は、色相が周辺領域に属するピクセルに対して、輝度値を変更する際に用いられる周辺領域変換テーブルを表す直線である。このグラフD2は、グラフD1に比べて輝度値を低下させる割合が小さくなっている。具体的には、グラフD2の比例係数は、1よりも小さく、グラフD1の比例係数よりも大きくなっている。この例では、グラフD2の比例係数が1/2となっており、例えば、入力値255を出力値255/2に対応付けている。
The graph D2 is a straight line representing a peripheral area conversion table used when changing the luminance value for pixels whose hue belongs to the peripheral area. In the graph D2, the ratio of decreasing the luminance value is smaller than that in the graph D1. Specifically, the proportional coefficient of the graph D2 is smaller than 1 and larger than the proportional coefficient of the graph D1. In this example, the proportional coefficient of the graph D2 is ½, and for example, the
モノクロ画像生成部23では、この様なグラフD1,D2が表す変換テーブルに基づいて、輝度データを変換する処理が行われ、変換処理後の輝度データがモノクロ画像データとして出力される。この様な輝度データの変換処理に用いる変換テーブルは、輝度値の対応付けを規定する関数が上限値255を含む所定の範囲内において単調増加関数となるようなものであれば良い。
In the monochrome
図13は、本発明の実施の形態2による画像処理装置における動作の一例を示した図であり、輝度値を変更して特定の色相を強調させる際に用いる変換テーブルの他の例を表すグラフD3が示されている。このグラフD3は、ユーザが指定した色相領域に属するピクセルの変換テーブルを表す折れ線である。 FIG. 13 is a diagram showing an example of the operation in the image processing apparatus according to the second embodiment of the present invention, and is a graph showing another example of the conversion table used when emphasizing a specific hue by changing the luminance value D3 is shown. This graph D3 is a polygonal line representing a conversion table of pixels belonging to the hue area designated by the user.
グラフD3では、輝度の下限値0から第1の閾値d2までの範囲内の輝度の入力値を出力値0に対応付け、第1の閾値d2から上限値255までの範囲内の輝度の入力値xを一定数d1だけ減少させた出力値(x−d1)に対応付けている。つまり、グラフD3は、下限値0から第1の閾値d2までの範囲内に存在する輝度値を下限値0に対応付け、第1の閾値d2から上限値255までの範囲内に存在する輝度値を当該輝度値から一定数d1を減じた値に対応付ける対応付けを表している。
In the graph D3, the input value of the luminance within the range from the
また、グラフD3では、第1の閾値d2が、d2−d1=0の関係を満たしている。この様なグラフD3が表す変換テーブルを用いて輝度データを変換させても良い。 In the graph D3, the first threshold value d2 satisfies the relationship d2-d1 = 0. Luminance data may be converted using a conversion table represented by such a graph D3.
本実施の形態によれば、ユーザが指定する色相領域のピクセルについて、輝度値が低下するので、モノクロ画像の印刷時に特定の色相が濃く印刷され、当該箇所を強調させることができる。 According to the present embodiment, since the luminance value of the pixel in the hue area specified by the user is reduced, the specific hue is printed darkly when printing a monochrome image, and the portion can be emphasized.
具体的には、記入枠やテンプレートなどが黒で印刷された原稿に赤色のペンで書き込まれている文字などの特定箇所を強調して印刷させることができる。特に、赤色で書き込まれた文字などの特定箇所を濃くして強調し、黒で印刷された他の箇所を薄くして印刷することができる。 Specifically, a specific portion such as a character written with a red pen can be emphasized and printed on an original in which an entry frame or a template is printed in black. In particular, it is possible to darken and emphasize a specific portion such as a character written in red and to lighten other portions printed in black.
実施の形態3.
実施の形態2では、ユーザが指定する色相領域のピクセルに対して輝度値を低下させる場合の例について説明した。これに対し、本実施の形態では、ユーザが指定した色相領域に属するピクセルについて輝度値を低下させるとともに、当該色相領域に属していないピクセルに対して輝度値を増加させる場合について説明する。
Embodiment 3 FIG.
In the second embodiment, the example in which the luminance value is decreased with respect to the pixels in the hue region designated by the user has been described. On the other hand, in the present embodiment, a case will be described in which the luminance value is decreased for a pixel belonging to the hue area designated by the user and the luminance value is increased for a pixel not belonging to the hue area.
本実施の形態による画像処理装置では、色相指定情報で指定された色相領域に属するピクセルに対し、輝度値が変換テーブルに基づいて変更される。すなわち、当該ピクセルについて、輝度値を低下させる処理が行われる。一方、色相指定情報で指定された色相領域に属していないピクセルについては、輝度値を増加させる処理が行われる。 In the image processing apparatus according to the present embodiment, the luminance value is changed based on the conversion table for the pixels belonging to the hue area designated by the hue designation information. That is, a process for reducing the luminance value is performed for the pixel. On the other hand, for pixels that do not belong to the hue area designated by the hue designation information, processing for increasing the luminance value is performed.
この様に構成すれば、ユーザが指定する色相領域のピクセルについて輝度値を低下させるとともに、他のピクセルについては輝度値を増加させるので、モノクロ画像の印刷時に特定の色相箇所をより強調して印刷することができる。 With this configuration, the luminance value is decreased for the pixels in the hue area specified by the user, and the luminance value is increased for the other pixels. Therefore, when a monochrome image is printed, the specific hue portion is emphasized and printed. can do.
1 色度データ抽出部
2 ピクセル抽出部
3 輝度データ抽出部
4 輝度データ変換部
5 強調処理部
6 輝度選択部
10 カラースキャナ部
11 ラインセンサ
12 AFE回路
13 A/Dコンバータ
14 シェーディング補正回路
15 γ補正回路
16 色空間変換回路
20 画像処理部
21 色相指定部
22 周辺領域指定部
23 モノクロ画像生成部
24 変換テーブル記憶部
25 周辺領域変換テーブル記憶部
26 輝度補正部
27 2値化処理部
30 プリンタ部
31 LEDプリントヘッド
32 駆動制御部
33 感光体ドラム
34 帯電器
35 現像部
36 転写部
37 定着部
41 操作入力部
42 表示部
100 デジタル複合機
DESCRIPTION OF
Claims (8)
ユーザ操作に基づいて、変換対象とする色相を指定する色相指定情報を生成する色相指定手段と、
上記色度データから得られる色相に基づいて、上記色相指定情報で指定された色相のピクセルを上記カラー画像から抽出するピクセル抽出手段と、
上記ピクセル抽出手段により抽出されたピクセルの上記輝度データに対し、輝度の上限値を低下させ、かつ、上限値を含む所定の範囲内において単調増加する関数を用いて輝度値を変換する処理を行い、上記カラー画像から上記モノクロ画像を生成する輝度データ変換手段とを備えたことを特徴とする画像処理装置。 In an image processing apparatus that performs image processing on a color image composed of luminance data and chromaticity data for each pixel read from a document and outputs a monochrome image,
Based on a user operation, hue designation means for generating hue designation information for designating a hue to be converted;
Pixel extraction means for extracting, from the color image, pixels of the hue designated by the hue designation information based on the hue obtained from the chromaticity data;
For the luminance data of the pixels extracted by the pixel extracting means, processing for converting the luminance value using a function that decreases the upper limit value of luminance and monotonously increases within a predetermined range including the upper limit value is performed. An image processing apparatus comprising: luminance data conversion means for generating the monochrome image from the color image.
ピクセルごとの上記2値データからなる上記モノクロ画像が出力されることを特徴とする請求項1に記載の画像処理装置。 Comparing the luminance value with the third threshold value for the luminance data after the conversion processing by the luminance data converting means, the binarization processing means for generating binary data based on the comparison result,
The image processing apparatus according to claim 1, wherein the monochrome image including the binary data for each pixel is output.
上記2値化処理手段が、上記輝度補正手段による変換処理後の輝度データに基づいて上記2値データを生成することを特徴とする請求項5に記載の画像処理装置。 With respect to the luminance data after the conversion processing by the luminance data converting means, the luminance value existing in the first range including the lower limit value is converted into the lower limit value, or the luminance data existing in the second range including the upper limit value. A luminance correction means for performing processing for converting the existing luminance value into the upper limit value;
6. The image processing apparatus according to claim 5, wherein the binarization processing unit generates the binary data based on the luminance data after the conversion processing by the luminance correction unit.
上記輝度データ変換手段が、上記周辺領域指定情報で指定された周辺領域のピクセルに対して、上記変換処理よりも輝度値を増加させる割合を小さくして輝度データを変換し、上記カラー画像から上記モノクロ画像を生成することを特徴とする請求項1に記載の画像処理装置。 Peripheral area specifying means for generating peripheral area specifying information for specifying a peripheral area in the color space of the hue specified by the hue specifying information based on the hue specifying information,
The luminance data conversion means converts luminance data with respect to the pixels in the peripheral area specified by the peripheral area specification information at a lower rate of increasing the luminance value than the conversion process, and converts the luminance data from the color image. The image processing apparatus according to claim 1, wherein a monochrome image is generated.
Priority Applications (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006284811A JP2008103987A (en) | 2006-10-19 | 2006-10-19 | Image processor |
EP07019490A EP1914978A3 (en) | 2006-10-19 | 2007-10-04 | Image processing apparatus and image processing method |
CNA2007101642509A CN101166225A (en) | 2006-10-19 | 2007-10-17 | Image processing apparatus and image processing method |
US11/875,722 US20080094517A1 (en) | 2006-10-19 | 2007-10-19 | Image Processing Apparatus and Image Processing Method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006284811A JP2008103987A (en) | 2006-10-19 | 2006-10-19 | Image processor |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2008103987A true JP2008103987A (en) | 2008-05-01 |
Family
ID=39334677
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2006284811A Pending JP2008103987A (en) | 2006-10-19 | 2006-10-19 | Image processor |
Country Status (2)
Country | Link |
---|---|
JP (1) | JP2008103987A (en) |
CN (1) | CN101166225A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009296439A (en) * | 2008-06-06 | 2009-12-17 | Canon Inc | Image compositing method and image compositing apparatus |
JP2012010318A (en) * | 2010-05-24 | 2012-01-12 | Ricoh Co Ltd | Image processing apparatus, image processing method and program |
CN113643649A (en) * | 2020-04-26 | 2021-11-12 | 西安诺瓦星云科技股份有限公司 | Correction method, device and system for LED lamp panel |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010211466A (en) * | 2009-03-10 | 2010-09-24 | Canon Inc | Image processing apparatus, image processing method, and program |
CN102055882B (en) * | 2009-10-30 | 2013-12-25 | 夏普株式会社 | Image processing apparatus, image forming apparatus and image processing method |
JP5418791B2 (en) * | 2011-03-02 | 2014-02-19 | カシオ計算機株式会社 | Image processing apparatus, image processing method, and program |
JP6564285B2 (en) * | 2015-09-08 | 2019-08-21 | 理想科学工業株式会社 | Image processing apparatus and image forming apparatus |
CN107220578B (en) * | 2017-05-31 | 2020-03-10 | 维沃移动通信有限公司 | Two-dimensional code scanning and identifying method and device, mobile terminal and storage medium |
JP7067262B2 (en) * | 2018-05-21 | 2022-05-16 | 富士フイルムビジネスイノベーション株式会社 | Information processing equipment and programs |
-
2006
- 2006-10-19 JP JP2006284811A patent/JP2008103987A/en active Pending
-
2007
- 2007-10-17 CN CNA2007101642509A patent/CN101166225A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009296439A (en) * | 2008-06-06 | 2009-12-17 | Canon Inc | Image compositing method and image compositing apparatus |
JP2012010318A (en) * | 2010-05-24 | 2012-01-12 | Ricoh Co Ltd | Image processing apparatus, image processing method and program |
CN113643649A (en) * | 2020-04-26 | 2021-11-12 | 西安诺瓦星云科技股份有限公司 | Correction method, device and system for LED lamp panel |
Also Published As
Publication number | Publication date |
---|---|
CN101166225A (en) | 2008-04-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6393148B1 (en) | Contrast enhancement of an image using luminance and RGB statistical metrics | |
US7502150B2 (en) | Color converting device, image forming apparatus, color conversion method, computer program and recording medium | |
US8395832B2 (en) | Image processing apparatus | |
JP4878572B2 (en) | Image processing apparatus and image processing method | |
JP4883789B2 (en) | Image processing apparatus and image processing method | |
JP4139834B2 (en) | Image processing apparatus, image forming apparatus, image reading apparatus, image processing method, image processing program, and computer-readable recording medium recording image processing program | |
JP4331159B2 (en) | Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium therefor | |
US7903872B2 (en) | Image-processing apparatus and method, computer program, and storage medium | |
JP2008103987A (en) | Image processor | |
US20050078867A1 (en) | System and method for generating black and white reproductions of color documents | |
EP1914978A2 (en) | Image processing apparatus and image processing method | |
JP2009038529A (en) | Image processing method, image processing device, image forming apparatus, image reading device, computer program, and record medium | |
JP2006279329A (en) | Image processing apparatus, image forming apparatus, and method of processing image | |
JP4285127B2 (en) | Color reduction processing apparatus and color reduction processing method | |
JP4957668B2 (en) | Image processing device | |
EP2439922B1 (en) | Image processing apparatus, method for processing image, and program therefor | |
JP2007088741A (en) | Image processing apparatus and image processing method | |
JP7266462B2 (en) | IMAGE PROCESSING APPARATUS, IMAGE FORMING APPARATUS, IMAGE PROCESSING METHOD AND PROGRAM | |
JP2009005159A (en) | Image processor | |
JP2001223915A (en) | Image processing method, image processor, and image forming device | |
JP2008103986A (en) | Image processor | |
JP4176656B2 (en) | Image processing apparatus, image processing method, image forming apparatus, image processing program, and recording medium recording the program | |
JP4101741B2 (en) | Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium | |
JP2005175824A (en) | Image processing method, image processor and image forming apparatus, and computer program | |
JP2005142740A (en) | Ink jet original discriminating method, image processing apparatus, image reading apparatus, image forming apparatus, ink jet original discriminating program and recording medium |