JP2008103987A - Image processor - Google Patents

Image processor Download PDF

Info

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
Application number
JP2006284811A
Other languages
Japanese (ja)
Inventor
Yoshihisa Takeuchi
祥久 竹内
Katsumi Minamino
勝巳 南野
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.)
Murata Machinery Ltd
Original Assignee
Murata Machinery Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Murata Machinery Ltd filed Critical Murata Machinery Ltd
Priority to JP2006284811A priority Critical patent/JP2008103987A/en
Priority to EP07019490A priority patent/EP1914978A3/en
Priority to CNA2007101642509A priority patent/CN101166225A/en
Priority to US11/875,722 priority patent/US20080094517A1/en
Publication of JP2008103987A publication Critical patent/JP2008103987A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Facsimile Image Signal Circuits (AREA)
  • Image Processing (AREA)
  • Color Image Communication Systems (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processor capable of emphasizing a place written in a specified color when a color image read out of a document is monochromatically printed. <P>SOLUTION: The image processor, which processes the color image comprising luminance data and chromaticity data by pixels read out of the document and outputs a monochromatic image, is composed of: a color hue specifying unit 21 which generates color hue specification information specifying a color hue to be converted according to user's operation; a conversion table storage unit 24 which stores a conversion table for decreasing an upper-limit value of luminance and making a monotonous increase in correspondence of luminance within a predetermined range including the upper-limit value; a pixel extracting unit 2 which extracts pixels of the color hue specified with the color hue specification information from the color image based upon a color hue obtained from chromaticity data; and a luminance data converter 4 which converts the luminance data of the pixels extracted by the pixel extracting unit 2 according to the conversion table to generate the monochromatic image from the color image. <P>COPYRIGHT: (C)2008,JPO&INPIT

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 Patent Document 1 includes an image reading unit that reads an image from a document, a color designation unit that designates a color, and an image processing unit that converts the designated color into a white level to generate a monochrome image. Consists of. In this image processing apparatus, a pixel within a range of hue, saturation, and brightness specified in advance is extracted, and a process of converting the luminance component into a white level is performed on the pixel. As a result, a black and white image in which pixels of a specific color are whitened from a color image is obtained, and objects such as entry frames printed with the specific color, for example, red ink, in the document are deleted from the image data. Can do.

一方、色相が所定範囲内にある画素の彩度を増加させ、特定の色相を強調してカラー画像を印刷するカラー印刷装置が提案されている(例えば、特許文献2)。このカラー印刷装置では、彩度を増加させる色相の範囲を予め指定させ、色相がこの範囲内にある画素の彩度を増加させることにより、カラー画像の印刷品質を向上させている。
特開2005−303584号公報 特開2003−118168号公報
On the other hand, there has been proposed a color printing apparatus that prints a color image by increasing the saturation of a pixel whose hue is within a predetermined range and emphasizing a specific hue (for example, Patent Document 2). In this color printing apparatus, the hue range for increasing the saturation is designated in advance, and the saturation of the pixels whose hue is within this range is increased, thereby improving the print quality of the color image.
Japanese Patent Laid-Open No. 2005-303584 JP 2003-118168 A

カラースキャナなどの撮像装置により原稿から読み取られたカラー画像を印刷用紙にモノクロ印刷させる際、黒で印刷された原稿に赤色のペンで書き込まれている文字などの特定箇所を強調して印刷できれば極めて便利である。特に、赤色で書き込まれた文字などの特定箇所を濃くして強調し、黒で印刷された他の箇所を薄くして印刷することができれば、モノクロ画像であっても、赤色で書き込まれた箇所と、黒で印刷された箇所とを識別することができて便利である。   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つの異なる色ごとの輝度データからなるカラー画像データが生成されるものとする。
Embodiment 1 FIG.
FIG. 1 is a block diagram showing an example of a schematic configuration of an image processing apparatus according to Embodiment 1 of the present invention, and includes a color scanner unit 10, an image processing unit 20, and a printer unit 30 as an example of the image processing apparatus. A digital multi-function peripheral 100 is shown. The color scanner unit 10 is an imaging device that generates image data by irradiating a document to be read with light and receiving reflected light from the document. Here, it is assumed that the handwritten characters and the print pattern on the document are read by scanning the irradiation light in the paper feed direction of the document (paper). In addition, color image data including luminance data for at least three different colors is generated.

画像処理部20は、カラースキャナ部10が原稿から読み取ったカラー画像データについて輝度データの輝度値を変更してモノクロ画像データを生成する処理を行い、生成したモノクロ画像データをプリンタ部30へ出力する動作を行っている。輝度値を変更する処理は、ユーザが指定する色相に基づいて行われる。画像処理部20では、表示部42に色相を指定させるための入力画面を表示させ、操作入力部41からの入力信号に基づいて色相が指定される。   The image processing unit 20 performs processing for changing the luminance value of the luminance data for the color image data read from the original by the color scanner unit 10 to generate monochrome image data, and outputs the generated monochrome image data to the printer unit 30. It is operating. The process of changing the luminance value is performed based on the hue specified by the user. In the image processing unit 20, an input screen for designating a hue is displayed on the display unit 42, and a hue is designated based on an input signal from the operation input unit 41.

プリンタ部30は、モノクロ画像データの出力装置であり、LEDプリントヘッド31、駆動制御部32、感光体ドラム33、帯電器34、現像部35、転写部36及び定着部37からなる。LEDプリントヘッド31は、複数のLED(Light Emitting Diode:発光ダイオード)を直線上に配置させたLEDアレイを備え、画像処理部20から入力されるモノクロ画像データに基づいて、光を感光体ドラム33に照射する動作を行っている。   The printer unit 30 is a monochrome image data output device, and includes an LED print head 31, a drive control unit 32, a photosensitive drum 33, a charger 34, a developing unit 35, a transfer unit 36, and a fixing unit 37. The LED print head 31 includes an LED array in which a plurality of LEDs (Light Emitting Diodes) are arranged on a straight line, and emits light to the photosensitive drum 33 based on monochrome image data input from the image processing unit 20. The operation to irradiate is performed.

駆動制御部32は、感光体ドラム33、帯電器34、現像部35、転写部36及び定着部37からなるプリンタ機構の制御を行っている。感光体ドラム33は、表面に感光体層が形成された円筒状の回転体であり、印刷時には、帯電器34により表面が一様に帯電される。この様に帯電された感光体ドラム33の表面に、光を照射させることにより、静電潜像が形成される。   The drive control unit 32 controls a printer mechanism including the photosensitive drum 33, the charger 34, the developing unit 35, the transfer unit 36, and the fixing unit 37. The photosensitive drum 33 is a cylindrical rotating body having a photosensitive layer formed on the surface, and the surface is uniformly charged by the charger 34 during printing. An electrostatic latent image is formed by irradiating light on the surface of the photosensitive drum 33 thus charged.

現像部35は、静電潜像が形成された感光体ドラム33の表面に、トナーを付着させて、トナー像を形成させる動作を行っている。転写部36は、感光体ドラム33の表面に形成されたトナー像を印刷用紙に転写させる動作を行っている。定着部37は、トナー像が転写された印刷用紙を加熱処理及び加圧処理し、モノクロ画像を印刷用紙表面に定着させる動作を行っている。   The developing unit 35 performs an operation of forming a toner image by attaching toner to the surface of the photosensitive drum 33 on which the electrostatic latent image is formed. The transfer unit 36 performs an operation of transferring the toner image formed on the surface of the photosensitive drum 33 onto the printing paper. The fixing unit 37 performs an operation of fixing the monochrome image on the surface of the printing paper by subjecting the printing paper on which the toner image has been transferred to heat treatment and pressure treatment.

図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 color scanner unit 10 in the digital multifunction peripheral 100 of FIG. The color scanner unit 10 includes a line sensor 11, an AFE circuit 12, an A / D converter 13, a shading correction circuit 14, a γ correction circuit 15, and a color space conversion circuit 16. The line sensor 11 includes a light receiving element array in which a plurality of light receiving elements such as a CCD (Charge Coupled Device) is arranged on a straight line L, and receives an analog signal indicating the amount of received light (luminance), for example, a voltage signal. An operation for generating each color of R (red), G (green), and B (blue) is performed.

AFE(Analog Front End:アナログフロントエンド)回路12は、ラインセンサ11から入力されたアナログ信号の電圧レベルを調整してA/Dコンバータ13へ出力するアンプである。A/Dコンバータ13は、AFE回路12から入力されたアナログ信号を所定のサンプリングレートでサンプリングし、デジタルデータを生成する変換素子である。ここでは、8ビット(256階調)のビットデータからなる輝度データが、R,G,Bの各色ごとに生成されるものとする。   An AFE (Analog Front End) circuit 12 is an amplifier that adjusts the voltage level of an analog signal input from the line sensor 11 and outputs the analog signal to the A / D converter 13. The A / D converter 13 is a conversion element that samples the analog signal input from the AFE circuit 12 at a predetermined sampling rate and generates digital data. Here, it is assumed that luminance data composed of 8-bit (256 gradations) bit data is generated for each color of R, G, and B.

シェーディング補正回路14は、ラインセンサ11における画素ごとの受光量の基準を揃えるために、輝度データの補正処理を行うデジタル処理回路である。具体的には、シェーディング補正用に予め作成され、ライン方向(直線L方向)に配置された光の反射率が既知の複数のオブジェクト、いわゆる「白基準」又は「黒基準」をラインセンサ11に読み取らせる。このとき得られる輝度データと、上記オブジェクトの反射率情報に基づいて、原稿から新たに読み取られた輝度データが補正される。これにより、原稿読み取り用の光源の明るさにおけるライン方向(直線L方向)のバラツキ、照射用の集光レンズにおける周辺光量低下の影響、或いは、ラインセンサ11の受光感度におけるライン方向のバラツキを補正することができる。   The shading correction circuit 14 is a digital processing circuit that performs luminance data correction processing in order to align the reference of received light amount for each pixel in the line sensor 11. Specifically, a plurality of objects, which are prepared in advance for shading correction and are arranged in the line direction (straight line L direction) and having a known reflectance of light, so-called “white reference” or “black reference” are applied to the line sensor 11. Let me read. Based on the luminance data obtained at this time and the reflectance information of the object, the luminance data newly read from the document is corrected. As a result, the variation in the line direction (straight line L direction) in the brightness of the light source for reading the document, the influence of the decrease in the peripheral light amount in the irradiation condenser lens, or the variation in the line direction in the light receiving sensitivity of the line sensor 11 is corrected. can do.

γ(ガンマ)補正回路15は、シェーディング補正回路14から入力されるR,G,Bの輝度データを色調整するγ補正処理を行うデジタル処理回路である。例えば、デバイスに依存するRGB色空間に対し、国際標準規格の表色系「sRGB(standard RGB)表色系」に則って輝度データの色調整が行われる。RGB色空間は、光の3原色(R,G,B)を用いて加法混色を表現するのに使われる色空間であり、数値が増すほど白に近づく。sRGB表色系は、スキャナ、デジタルカメラ、プリンタ、モニターなどの様々な画像の入出力機器に採用されており、sRGB表色系に則って色調整することにより、入力時と出力時における色の差異を少なくすることができる。   The γ (gamma) correction circuit 15 is a digital processing circuit that performs γ correction processing for color adjustment of the R, G, and B luminance data input from the shading correction circuit 14. For example, color adjustment of luminance data is performed in accordance with an international standard color system “sRGB (standard RGB) color system” for an RGB color space that depends on a device. The RGB color space is a color space used to represent an additive color mixture using the three primary colors (R, G, B) of light, and approaches white as the value increases. The sRGB color system is used in various image input / output devices such as scanners, digital cameras, printers, monitors, and the like. By adjusting the color according to the sRGB color system, the color of the input and output colors can be adjusted. Differences can be reduced.

色空間変換回路16は、γ補正回路15から入力されるR,G,Bの輝度データについて、色空間を変換してカラー画像データを出力するデジタル処理回路である。具体的には、RGB色空間を輝度及び色相からなる色空間、例えば、YCbCr表色系に変換する処理が行われる。YCbCr表色系は、JPEG形式の画像データなどに用いられている表色系であり、Yが輝度データを示し、CbCrが色度データをそれぞれ示している。この色度データCbCrでは、Cbが青の差分(色相成分)、Crが赤の差分(色相成分)をそれぞれ示している。この色空間変換回路16により、ピクセルごとの輝度データ及び色度データからなるカラー画像データが生成される。   The color space conversion circuit 16 is a digital processing circuit that converts the color space of the R, G, and B luminance data input from the γ correction circuit 15 and outputs color image data. Specifically, processing for converting the RGB color space into a color space composed of luminance and hue, for example, a YCbCr color system is performed. The YCbCr color system is a color system used for JPEG format image data, etc., where Y indicates luminance data and CbCr indicates chromaticity data. In the chromaticity data CbCr, Cb indicates a blue difference (hue component) and Cr indicates a red difference (hue component). The color space conversion circuit 16 generates color image data including luminance data and chromaticity data for each pixel.

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 digital multifunction peripheral 100 of FIG. 1, and illustrates an example of a functional configuration of the image processing unit 20. The image processing unit 20 includes a hue specifying unit 21, a peripheral region specifying unit 22, a monochrome image generating unit 23, a conversion table storage unit 24, a peripheral region conversion table storage unit 25, a luminance correction unit 26, and a binarization processing unit 27. Become. The hue designation unit 21 performs an operation for generating hue designation information for designating a hue to be converted into luminance values based on a user operation.

この色相指定では、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 hue designation unit 21, the peripheral area designation unit 22 performs an operation of generating peripheral area designation information that designates a peripheral area in the color space of the hue designated by the hue designation information. The peripheral area specified by the peripheral area specifying information is an area that does not overlap with the hue area specified by the user.

変換テーブル記憶部24は、第1の閾値よりも高い輝度値を飽和させ、第1の閾値よりも低い輝度値を増加させる変換テーブルを記憶するメモリである。この変換テーブルは、輝度値の対応付けを規定する対応付け情報であり、ここでは、下限値から第1の閾値までの範囲内に存在する変換処理前の輝度の入力値に一定数を乗じた値を変換処理後の輝度の出力値とする変換テーブルが予め記憶されているものとする。   The conversion table storage unit 24 is a memory that stores a conversion table that saturates luminance values higher than the first threshold and increases luminance values lower than the first threshold. This conversion table is association information that defines the association of luminance values. Here, the input value of luminance before conversion processing existing in the range from the lower limit value to the first threshold value is multiplied by a certain number. It is assumed that a conversion table in which values are output as luminance output values after conversion processing is stored in advance.

周辺領域変換テーブル記憶部25は、上記変換テーブルよりも輝度値を増加させる割合の小さな周辺領域変換テーブルを記憶するメモリである。   The peripheral area conversion table storage unit 25 is a memory that stores a peripheral area conversion table having a smaller ratio of increasing the luminance value than the conversion table.

モノクロ画像生成部23は、色相指定情報及び周辺領域指定情報に基づいてカラー画像データからピクセルを抽出し、抽出したピクセルの輝度データを変換テーブル及び周辺領域変換テーブルに基づいて変換してモノクロ画像データを生成する処理を行っている。   The monochrome image generation unit 23 extracts pixels from the color image data based on the hue designation information and the surrounding area designation information, and converts the luminance data of the extracted pixels based on the conversion table and the surrounding area conversion table to obtain monochrome image data. Processing to generate.

輝度補正部26は、モノクロ画像生成部23からのモノクロ画像データについて、ノイズを除去するために、輝度を補正する処理を行っている。具体的には、輝度データに対して、下限値を含む第1の範囲内に存在する輝度値を上記下限値に変換し、上限値を含む第2の範囲内に存在する輝度値を上記上限値に変換する処理が行われる。   The luminance correction unit 26 performs a process of correcting the luminance of the monochrome image data from the monochrome image generation unit 23 in order to remove noise. Specifically, with respect to the luminance data, the luminance value existing in the first range including the lower limit value is converted into the lower limit value, and the luminance value existing in the second range including the upper limit value is converted to the upper limit value. Processing to convert to a value is performed.

カラー画像からピクセルを抽出し、輝度データを変換してモノクロ画像を生成する処理を輝度の補正処理よりも前に行わせることにより、色相判定、すなわち、色度データが示す色相が属する色相領域の判定を正確に行うことができる。   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 binarization processing unit 27 performs a process of binarizing the luminance data after the conversion processing by the luminance correction unit 26 by reducing the number of gradations. Specifically, the luminance value of the luminance data is compared with a predetermined threshold (fourth threshold), and binary data is generated based on the comparison result. Monochrome image data generated by the binarization processing unit 27 and including binary data for each pixel is output to the LED print head 31.

ここでは、輝度成分を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 image generation unit 23 in the image processing unit 20 of FIG. The monochrome image generation unit 23 includes a chromaticity data extraction unit 1, a pixel extraction unit 2, a luminance data extraction unit 3, and a luminance data conversion unit 4. The chromaticity data extraction unit 1 performs an operation of extracting chromaticity data from color image data. Specifically, the chromaticity data CbCr is extracted from the color image data (here, YCbCr) generated by the color space conversion circuit 16 and output to the pixel extraction unit 2.

ピクセル抽出部2は、色度データ抽出部1からの色度データCbCrに基づいて、色相指定情報及び周辺領域指定情報で指定された色相のピクセルを抽出する動作を行っている。   Based on the chromaticity data CbCr from the chromaticity data extraction unit 1, the pixel extraction unit 2 performs an operation of extracting pixels having a hue designated by the hue designation information and the surrounding area designation information.

具体的には、色度データ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 space conversion circuit 16 and output to the luminance data conversion unit 4.

輝度データ変換部4は、強調処理部5及び輝度選択部6からなり、ピクセル抽出部2により抽出されたピクセルの輝度データを変換テーブルに基づいて変換し、カラー画像データからモノクロ画像データを生成する動作を行っている。   The luminance data conversion unit 4 includes an enhancement processing unit 5 and a luminance selection unit 6. The luminance data conversion unit 4 converts the luminance data of the pixels extracted by the pixel extraction unit 2 based on the conversion table, and generates monochrome image data from the color image data. It is operating.

強調処理部5は、変換テーブル記憶部24から読み出した変換テーブルと、周辺領域変換テーブル記憶部25から読み出した周辺領域変換テーブルに基づいて輝度データYを変換し、輝度値を増大させた第1輝度データ及び第2輝度データを生成する処理を行っている。具体的には、変換テーブルに従って輝度値を変換して第1輝度データが生成される。また、周辺領域変換テーブルに従って輝度値を変換して第2輝度データが生成される。   The enhancement processing unit 5 converts the luminance data Y based on the conversion table read from the conversion table storage unit 24 and the peripheral region conversion table read from the peripheral region conversion table storage unit 25, and increases the luminance value. Processing for generating luminance data and second luminance data is performed. Specifically, the first luminance data is generated by converting the luminance value according to the conversion table. Further, the second luminance data is generated by converting the luminance value according to the peripheral area conversion table.

輝度選択部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 pixel extraction unit 2 and outputting it as monochrome image data. Specifically, the first luminance data is selected for the pixels extracted based on the hue designation information, and the second luminance data is selected for the pixels extracted based on the surrounding area designation information. Also, the luminance data Y is selected for the pixels that have not been extracted by the pixel extraction unit 2.

本実施の形態では、ピクセル抽出部2により抽出されたピクセルの輝度データについて変換処理する際、輝度値の対応付けが規定された変換テーブルを用いているが、この様なソフトウェア的な処理に代えて、演算回路を用いてハードウェア的に処理させるものであっても良い。   In the present embodiment, when conversion processing is performed on the luminance data of the pixels extracted by the pixel extraction unit 2, a conversion table in which association of luminance values is defined is used. However, instead of such software processing, In addition, hardware processing may be performed using an arithmetic circuit.

図5は、図3の画像処理部20における動作の一例を示した図であり、ユーザに色相を指定させる際に用いられる色空間が示されている。この色空間は、YCbCr表色系の色空間であり、縦軸にCb軸が配置され、横軸にCr軸が配置されている。Cb成分が大きくなれば、青味が強くなり、小さくなれば、黄味が強くなる。また、Cr成分が大きくなれば、赤味が強くなり、小さくなれば、緑味が強くなる。   FIG. 5 is a diagram showing an example of the operation in the image processing unit 20 of FIG. 3, and shows a color space used when the user specifies a hue. This color space is a color space of the YCbCr color system, in which the Cb axis is arranged on the vertical axis and the Cr axis is arranged on the horizontal axis. When the Cb component is increased, the bluish color is increased, and when the Cb component is decreased, the yellow color is increased. Moreover, if Cr component becomes large, redness will become strong, and if it becomes small, greenness will become strong.

ここでは、色空間が原点を通る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 straight lines 51 to 56 passing through the origin, the Cb axis, and the Cr axis. Also, it is assumed that the input range of the Cb component and the input range of the Cr component are the same.

直線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 straight line 51 represents a straight line Cb = 2Cr having a slope 2, a straight line 52 represents a straight line Cb = Cr having a slant 1, and a straight line 53 represents a straight line Cb = (1/2) Cr having a slant 1/2. The straight line 54 is a straight line (−2) Cb = Cr with an inclination (−1) / 2, the straight line 55 is a straight line Cb = −Cr with an inclination (−1), and the straight line 56 is a straight line with an inclination (−2). Cb = (− 2) Cr is shown. The hue regions divided by the straight lines 51 to 56 are regions having the same area.

色空間の原点近傍の領域は、色相成分の絶対値が小さな無彩色領域57となっている。この無彩色(モノトーン)領域57は、彩度の低い色相を示す領域であり、色相成分Cb及びCr間に成り立つ所定の関係式によって規定される。この例では、原点を中心とする円の内部として無彩色領域57が示されている。   A region near the origin of the color space is an achromatic region 57 in which the absolute value of the hue component is small. The achromatic color (monotone) region 57 is a region showing a hue with low saturation, and is defined by a predetermined relational expression established between the hue components Cb and Cr. In this example, an achromatic region 57 is shown as the inside of a circle centered on the origin.

この様な無彩色領域57は、輝度値の変換対象とする色相からは除外される。つまり、色度データに基づいてカラー画像からピクセルを抽出する際には、所定の閾値(第3の閾値)よりも彩度の大きなピクセルだけが抽出され、当該閾値よりも彩度の小さなピクセルについては抽出しないこととなる。   Such an achromatic color region 57 is excluded from hues to be converted into luminance values. That is, when pixels are extracted from a color image based on chromaticity data, only pixels having a saturation greater than a predetermined threshold (third threshold) are extracted, and pixels having a saturation less than the threshold are extracted. Will not be extracted.

この様な色空間に対し、輝度値を変更してモノクロ画像から白化させる色相領域及び周辺領域が指定される。   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 image processing unit 20 of FIG. 3, in which a hue area A1 and a peripheral area A2 designated by the user are shown. In this example, the hue area A1 between the straight line 52 and the straight line 53 in the first quadrant is designated by the user, and two hue areas adjacent to the hue area A1 are designated as the peripheral area A2. That is, if one hue area A1 is designated by the user, the peripheral area A2 is automatically designated based on the position or division of the hue area A1 in the color space.

モノクロ画像生成部23では、色相が色相領域A1に属するピクセルの輝度データを変換テーブルに基づいて変換するとともに、色相が周辺領域A2に属するピクセルの輝度データを周辺領域変換テーブルに基づいて変換する処理が行われる。   The monochrome image generation unit 23 converts luminance data of pixels whose hue belongs to the hue area A1 based on the conversion table, and converts luminance data of pixels whose hue belongs to the peripheral area A2 based on the peripheral area conversion table. Is done.

図7は、図3の画像処理部20における動作の一例を示した図であり、輝度値を変更して特定の色相を白化させる際に用いる変換テーブルを表すグラフB2及びB3が示されている。グラフB1は、傾き1の直線であり、輝度の入力値を同一輝度の出力値に対応付ける対応付けを表すグラフとなっている。   FIG. 7 is a diagram illustrating an example of the operation in the image processing unit 20 of FIG. 3, and graphs B <b> 2 and B <b> 3 representing conversion tables used when changing the luminance value and whitening a specific hue are illustrated. . The graph B1 is a straight line with a slope of 1, and is a graph representing the association in which the input luminance value is associated with the output value of the same luminance.

グラフ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 output value 255. It is associated with. Further, the graph B2 correlates with the output value obtained by increasing the input value of the luminance within the range from the lower limit value 0 of the luminance to the first threshold value a1 in proportion to the luminance.

この例では、下限値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 lower limit value 0 to the first threshold value a1 is 4, and 1/4 of the upper limit value 255 is the first threshold value a1. Yes.

グラフ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 upper limit value 255 is associated with the output value 255, and the input value of the luminance within the range from the lower limit value 0 to the threshold value a2 (> a1) is set as the luminance. The output value is proportionally increased. The proportional coefficient of the graph B3 in the range from the lower limit value 0 to the threshold value a2 is larger than 1 and smaller than the proportional coefficient of the graph B2.

この例では、下限値0から閾値a2までの範囲におけるグラフB3の比例係数が2となっており、上限値255の1/2が閾値a2となっている。   In this example, the proportional coefficient of the graph B3 in the range from the lower limit value 0 to the threshold value a2 is 2, and 1/2 of the upper limit value 255 is the threshold value a2.

モノクロ画像生成部23では、この様なグラフB2,B3が表す変換テーブルに基づいて、輝度データを変換する処理が行われ、変換処理後の輝度データがモノクロ画像データとして出力される。   In the monochrome image generation unit 23, processing for converting the luminance data is performed based on the conversion tables represented by such graphs B2 and B3, and the luminance data after the conversion processing is output as monochrome image data.

図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 image processing unit 20 of FIG. 3, and shows a graph C1 representing a conversion table used for luminance correction for noise removal. This graph C1 associates the luminance value existing in the first range including the lower limit value 0 of the luminance, that is, in the range of 0 to b1 with the lower limit value 0, and is in the second range including the upper limit value 255. That is, the luminance value existing in the range of b2 to 255 is associated with the upper limit value 255. Further, the graph C1 associates luminance values in the range from b1 to b2 with luminance values obtained by multiplying the difference from b1 by a certain number.

輝度補正部26では、モノクロ画像生成部23により生成されたモノクロ画像データに対して、この様なグラフC1が表す変換テーブルに基づく変換処理が行われる。この様な変換テーブルに基づいて輝度を補正することにより、上限値に近い輝度値が飽和され、下限値に近い輝度値が下限値に変換されるので、モノクロ画像において、白の領域の中にノイズ状に黒が点在し、或いは、黒の領域の中にノイズ状に白が点在するのを抑制させることができる。   In the brightness correction unit 26, the monochrome image data generated by the monochrome image generation unit 23 is subjected to conversion processing based on such a conversion table represented by the graph C1. By correcting the luminance based on such a conversion table, the luminance value close to the upper limit value is saturated, and the luminance value close to the lower limit value is converted to the lower limit value. It is possible to suppress black noise from being scattered or white noise from being scattered in a black region.

図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 image processing unit 20 in FIG. First, the hue designation unit 21 generates hue designation information when the user designates a hue area to be converted in luminance value (step S101). When the hue designation information is input from the hue designation section 21, the peripheral area designation section 22 generates the peripheral area designation information based on the hue designation information.

次に、モノクロ画像生成部23は、色相指定情報及び周辺領域指定情報が入力されると、カラースキャナ部10からカラー画像データを読み込み、色度データの色相成分に基づいて指定領域に属するピクセルであるか否かを判定し、色相指定情報で指定されている色相領域に属するピクセルと、周辺領域指定情報で指定されている周辺領域に属するピクセルを抽出する(ステップS102〜S104)。   Next, when the hue designation information and the peripheral area designation information are input, the monochrome image generation unit 23 reads the color image data from the color scanner unit 10, and the pixels belonging to the designation area based on the hue component of the chromaticity data. It is determined whether or not there is a pixel, and pixels belonging to the hue area designated by the hue designation information and pixels belonging to the peripheral area designated by the peripheral area designation information are extracted (steps S102 to S104).

このとき、モノクロ画像生成部23は、抽出したピクセルの輝度データについて、変換テーブルに基づく輝度の変換処理を行い、モノクロ画像データを生成する(ステップS105)。   At this time, the monochrome image generation unit 23 performs luminance conversion processing based on the conversion table for the extracted pixel luminance data to generate monochrome image data (step S105).

次に、輝度補正部26は、モノクロ画像生成部23からモノクロ画像データが入力されると、当該モノクロ画像データについてノイズ除去のための輝度の補正処理を行う(ステップS106)。そして、2値化処理部27は、補正処理後のモノクロ画像データについて階調数を減少させる処理を行い、2値データとして出力する(ステップS107,S108)。   Next, when the monochrome image data is input from the monochrome image generation unit 23, the brightness correction unit 26 performs brightness correction processing for noise removal on the monochrome image data (step S106). Then, the binarization processing unit 27 performs a process of reducing the number of gradations for the monochrome image data after the correction process, and outputs it as binary data (steps S107 and S108).

図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 image processing unit 20 of FIG. 3, and a graph B4 showing another example of the conversion table used when changing the luminance value and whitening a specific hue is shown. ing. This graph B4 is a polygonal line representing a conversion table of pixels belonging to the hue area designated by the user. In the graph B4, the input value of the luminance within the range from the first threshold value a4 to the upper limit value 255 is associated with the output value 255, and is smaller than the second threshold value a3 (for example, 128) that is smaller than the first threshold value a4. The input value of the brightness higher than the first threshold value a4 is increased, and the input values of the brightness within the range from the lower limit value 0 to the second threshold value a3 are associated with the same brightness.

ここでは、第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 lower limit value 0 and the first threshold value a4.

輝度の下限値と第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 image processing unit 20 in FIG. 3, and a graph B <b> 5 representing another example of the conversion table used when changing the luminance value and whitening a specific hue is shown. ing. This graph B5 is a polygonal line representing a conversion table of pixels belonging to the hue area designated by the user. In the graph B5, the luminance input value in the range from the first threshold value a6 to the upper limit value 255 is associated with the output value 255, and the luminance input value x in the range from the lower limit value 0 to the first threshold value a6 is represented. The output value (x + a5) is increased by a certain amount a5.

また、グラフ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 pixel extraction unit 2 has been described, but the present invention is not limited to this. For example, the luminance data Y extracted by the luminance data extraction unit 3 is converted to generate third luminance data with a reduced luminance value. Then, the third luminance data may be selected for pixels that are not extracted by the pixel extraction unit 2.

また、本実施の形態では、色空間変換回路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 space conversion circuit 16 has been described. However, the present invention is not limited to this. It is not something that can be done. For example, the present invention can be applied to the case where color data in RGB color space is input as color image data. When RGB data is input as color image data, the chromaticity data extraction unit 1 calculates color component differences (GR) and (GB) based on the RGB data, and as chromaticity data. Is output. Further, the luminance data extraction unit 3 extracts the G component from the RGB data and outputs it as luminance data.

実施の形態2.
実施の形態1では、ユーザが指定する色相のピクセルについて輝度値を増加させ、モノクロ画像の印刷時に白化させる場合の例について説明した。これに対し、本実施の形態では、特定の色で書き込まれた箇所を強調させるために、ユーザが指定する色相のピクセルに対して輝度値を低下させる場合について説明する。
Embodiment 2. FIG.
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 lower limit value 0 to the upper limit value (saturation value) 255 in proportion to the luminance. That is, the graph D1 represents the association in which the luminance value is associated with a value obtained by multiplying the luminance value by a certain number. In this example, the proportional coefficient (straight line) of the graph D1 is ¼, and for example, the input value 255 is associated with an integer 63 or 64 close to 255/4 as an output value. Here, it is assumed that both the input value and the output value are integers, and when the output value on the graph D1 corresponding to the input value is a decimal, the decimal part is rounded up, rounded down, or rounded off. Shall.

グラフ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 input value 255 is associated with the output value 255/2.

モノクロ画像生成部23では、この様なグラフD1,D2が表す変換テーブルに基づいて、輝度データを変換する処理が行われ、変換処理後の輝度データがモノクロ画像データとして出力される。この様な輝度データの変換処理に用いる変換テーブルは、輝度値の対応付けを規定する関数が上限値255を含む所定の範囲内において単調増加関数となるようなものであれば良い。   In the monochrome image generation unit 23, processing for converting the luminance data is performed based on the conversion table represented by such graphs D1 and D2, and the luminance data after the conversion processing is output as monochrome image data. The conversion table used for such luminance data conversion processing only needs to be such that the function that defines the association of luminance values becomes a monotonically increasing function within a predetermined range including the upper limit value 255.

図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 lower limit value 0 of the luminance to the first threshold value d2 is associated with the output value 0, and the input value of the luminance within the range from the first threshold value d2 to the upper limit value 255. This is associated with an output value (x−d1) in which x is reduced by a certain number d1. That is, the graph D3 associates the brightness value existing in the range from the lower limit value 0 to the first threshold value d2 with the lower limit value 0, and the brightness value existing in the range from the first threshold value d2 to the upper limit value 255. Is associated with a value obtained by subtracting a certain number d1 from the luminance value.

また、グラフ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による画像処理装置の概略構成の一例を示したブロック図であり、画像処理装置の一例としてデジタル複合機100が示されている。1 is a block diagram illustrating an example of a schematic configuration of an image processing apparatus according to Embodiment 1 of the present invention, in which a digital multifunction peripheral 100 is illustrated as an example of an image processing apparatus. 図1のデジタル複合機100におけるカラースキャナ部10の構成例を示したブロック図である。FIG. 2 is a block diagram illustrating a configuration example of a color scanner unit 10 in the digital multifunction peripheral 100 of FIG. 1. 図1のデジタル複合機100の要部における構成例を示したブロック図であり、画像処理部20の機能構成の一例が示されている。FIG. 2 is a block diagram illustrating a configuration example of a main part of the digital multifunction peripheral 100 of FIG. 1, and illustrates an example of a functional configuration of the image processing unit 20. 図3の画像処理部20におけるモノクロ画像生成部23の構成例を示したブロック図である。FIG. 4 is a block diagram illustrating a configuration example of a monochrome image generation unit 23 in the image processing unit 20 of FIG. 3. 図3の画像処理部20における動作の一例を示した図であり、ユーザに色相を指定させる際に用いられる色空間が示されている。FIG. 4 is a diagram illustrating an example of an operation in the image processing unit 20 in FIG. 3, and illustrates a color space used when a user specifies a hue. 図3の画像処理部20における動作の一例を示した図であり、ユーザにより指定された色相領域A1及び周辺領域A2が示されている。FIG. 4 is a diagram illustrating an example of an operation in the image processing unit 20 of FIG. 3, in which a hue area A1 and a peripheral area A2 designated by a user are illustrated. 図3の画像処理部20における動作の一例を示した図であり、白化させる際に用いる変換テーブルを表すグラフB2及びB3が示されている。FIG. 4 is a diagram illustrating an example of an operation in the image processing unit 20 of FIG. 3, and graphs B <b> 2 and B <b> 3 representing conversion tables used for whitening are illustrated. 図3の画像処理部20における動作の一例を示した図であり、ノイズ除去のための輝度補正に用いられる変換テーブルを表すグラフC1が示されている。FIG. 4 is a diagram illustrating an example of an operation in the image processing unit 20 of FIG. 3, and shows a graph C <b> 1 representing a conversion table used for luminance correction for noise removal. 図3の画像処理部20における動作の一例を示したフローチャートである。4 is a flowchart illustrating an example of an operation in the image processing unit 20 of FIG. 3. 図3の画像処理部20における動作の一例を示した図であり、白化させる際に用いる変換テーブルの他の例を表すグラフB4が示されている。FIG. 4 is a diagram illustrating an example of an operation in the image processing unit 20 of FIG. 3, and shows a graph B4 representing another example of a conversion table used for whitening. 図3の画像処理部20における動作の一例を示した図であり、白化させる際に用いる変換テーブルのその他の例を表すグラフB5が示されている。FIG. 4 is a diagram illustrating an example of an operation in the image processing unit 20 of FIG. 3, and shows a graph B5 representing another example of a conversion table used for whitening. 本発明の実施の形態2による画像処理装置における動作の一例を示した図であり、色相強調の際に用いる変換テーブルを表すグラフD1及びD2が示されている。It is a figure which showed an example of the operation | movement in the image processing apparatus by Embodiment 2 of this invention, and the graphs D1 and D2 showing the conversion table used in the case of hue emphasis are shown. 本発明の実施の形態2による画像処理装置における動作の一例を示した図であり、色相強調の際に用いる変換テーブルの他の例を表すグラフD3が示されている。It is a figure which showed an example of the operation | movement in the image processing apparatus by Embodiment 2 of this invention, and the graph D3 showing the other example of the conversion table used in the case of hue emphasis is shown.

符号の説明Explanation of symbols

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 SYMBOLS 1 Chromaticity data extraction part 2 Pixel extraction part 3 Luminance data extraction part 4 Luminance data conversion part 5 Enhancement processing part 6 Brightness selection part 10 Color scanner part 11 Line sensor 12 AFE circuit 13 A / D converter 14 Shading correction circuit 15 γ correction Circuit 16 Color space conversion circuit 20 Image processing unit 21 Hue designation unit 22 Peripheral region designation unit 23 Monochrome image generation unit 24 Conversion table storage unit 25 Peripheral region conversion table storage unit 26 Luminance correction unit 27 Binary processing unit 30 Printer unit 31 LED print head 32 drive control unit 33 photoconductor drum 34 charger 35 developing unit 36 transfer unit 37 fixing unit 41 operation input unit 42 display unit 100 digital multifunction device

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.
上記輝度データ変換手段が、輝度値を当該輝度値に一定数を乗じた値に対応付けることを特徴とする請求項1に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the luminance data conversion unit associates the luminance value with a value obtained by multiplying the luminance value by a certain number. 上記輝度データ変換手段が、下限値から第1の閾値までの範囲内に存在する輝度値を下限値に対応付け、上記第1の閾値から上限値までの範囲内に存在する輝度値を当該輝度値から一定数を減じた値に対応付けることを特徴とする請求項1に記載の画像処理装置。   The luminance data conversion means associates a luminance value existing within a range from the lower limit value to the first threshold value with the lower limit value, and determines a luminance value existing within the range from the first threshold value to the upper limit value. The image processing apparatus according to claim 1, wherein the image processing apparatus is associated with a value obtained by subtracting a certain number from the value. 上記ピクセル抽出手段が、上記色度データから得られる色相に基づいてカラー画像からピクセルを抽出する際、第2の閾値よりも彩度の大きなピクセルを抽出し、上記第2の閾値よりも彩度の小さなピクセルを抽出しないことを特徴とする請求項1に記載の画像処理装置。   When the pixel extracting means extracts pixels from the color image based on the hue obtained from the chromaticity data, the pixel extracting means extracts pixels having a saturation higher than the second threshold, and the saturation is higher than the second threshold. The image processing apparatus according to claim 1, wherein a small pixel is not extracted. 上記輝度データ変換手段による変換処理後の輝度データに対して輝度値を第3の閾値と比較し、この比較結果に基づいて2値データを生成する2値化処理手段を備え、
ピクセルごとの上記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.
上記輝度データ変換手段による変換処理後の輝度データに対して、下限値を含む第1の範囲内に存在する輝度値を上記下限値に変換し、或いは、上限値を含む第2の範囲内に存在する輝度値を上記上限値に変換する処理を行う輝度補正手段を備え、
上記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に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the luminance data conversion unit increases a luminance value for pixels other than the hue designated by the hue designation information. 上記色相指定情報に基づいて、当該色相指定情報が指定する色相の色空間における周辺領域を指定する周辺領域指定情報を生成する周辺領域指定手段を備え、
上記輝度データ変換手段が、上記周辺領域指定情報で指定された周辺領域のピクセルに対して、上記変換処理よりも輝度値を増加させる割合を小さくして輝度データを変換し、上記カラー画像から上記モノクロ画像を生成することを特徴とする請求項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.
JP2006284811A 2006-10-19 2006-10-19 Image processor Pending JP2008103987A (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Cited By (3)

* Cited by examiner, † Cited by third party
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