JPH1063833A - Processor and method for image processing - Google Patents

Processor and method for image processing

Info

Publication number
JPH1063833A
JPH1063833A JP8221269A JP22126996A JPH1063833A JP H1063833 A JPH1063833 A JP H1063833A JP 8221269 A JP8221269 A JP 8221269A JP 22126996 A JP22126996 A JP 22126996A JP H1063833 A JPH1063833 A JP H1063833A
Authority
JP
Japan
Prior art keywords
color
image
conversion
pixels
color value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP8221269A
Other languages
Japanese (ja)
Inventor
Hiromi Bessho
ひろみ 別所
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.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP8221269A priority Critical patent/JPH1063833A/en
Publication of JPH1063833A publication Critical patent/JPH1063833A/en
Withdrawn legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To perform optimum conversion according to a color image to be converted by analyzing a color-value frequency distribution of pixels by color components and detecting a color value area, expanding the color value area and generating a conversion table consisting of color values before and after expansion, and converting a color image into a monochromatic image. SOLUTION: Multi-valued color image data of R, G, and B held in an auxiliary storage device 4 are read in a RAM 2, only R components of the color image data are extracted, and a histogram of the number of pixels to color values is generated and recorded in the RAM 2. The histogram is so shifted so that only an area having the number of pixels larger than a threshold value previously set for the histogram is regarded as an object. A new color value area is regarded as an object area of color/black-and-white conversion thereafter to obtain proper contrast to be converted. With the new histogram, a color value area having no distribution of pixels is detected and stored. Further, a conversion table having the same color value after conversion with input color values is generated and the R value process is completed.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は画像処理装置及びそ
の方法に関し、例えば、カラー画像を白黒画像に変換す
る画像処理装置及びその方法に関する。
The present invention relates to an image processing apparatus and method, and more particularly, to an image processing apparatus and method for converting a color image into a black and white image.

【0002】[0002]

【従来の技術】近年のデジタルカメラやスキャナ等の画
像入力装置の発達に伴い、コンピュータ内にフルカラー
の自然画像を取り込むことが容易となった。
2. Description of the Related Art With the development of image input devices such as digital cameras and scanners in recent years, it has become easy to capture a full-color natural image into a computer.

【0003】しかしながら、例えばコンピュータ内に取
り込まれたフルカラーの自然画像を記録媒体上に印刷出
力する際には、印刷装置の性能に応じた画像処理を施す
必要がある。特に、印刷装置が白黒プリンタであった場
合には、フルカラーの自然画像を白黒画像に変換せねば
ならない。この場合、白黒変換後の画像データにおいて
は、変換前よりも少ない情報量で画像を表現する必要が
あり、従って、従来のカラー画像を白黒画像に変換可能
な画像処理装置においては、自然画像に多く存在する色
を強調させるような係数を用いた一般式に従って、カラ
ー画像の白黒変換を行うことが多かった。尚、この係数
は、経験上得られるものであった。
However, for example, when printing a full-color natural image captured in a computer on a recording medium, it is necessary to perform image processing according to the performance of the printing apparatus. In particular, if the printing device is a monochrome printer, a full-color natural image must be converted to a monochrome image. In this case, in the image data after the black-and-white conversion, it is necessary to represent the image with a smaller amount of information than before the conversion. In many cases, a black-and-white conversion of a color image is performed according to a general formula using a coefficient that emphasizes a large number of colors. This coefficient was obtained empirically.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、上記従
来例においてカラー/白黒画像変換用の一般式を使用し
て変換を行なった場合、変換後の白黒画像においては変
換前のカラー画像に比べてデータ量が減少する。即ち、
変換後の白黒画像においては、画像を表現する情報量が
減少してしまうために、微妙な階調が認識しにくくなっ
てしまう。
However, when the conversion is performed using the general formula for color / black and white image conversion in the above-described conventional example, the converted black and white image has a larger data size than the color image before conversion. The amount is reduced. That is,
In the converted black and white image, the amount of information expressing the image is reduced, so that it is difficult to recognize subtle gradations.

【0005】また、上記従来のカラー/白黒画像変換用
の一般式は、あくまでも一般的な自然画像を想定して得
られた経験式であるため、どのような画像にも最適であ
るとは必ずしも言えなかった。例えば、上述した様に微
妙な階調を表現したい場合や、コントラストを強調した
い場合等、処理対象の画像に応じて最適な変換処理を行
うことはできなかった。
Further, the above-mentioned general formula for color / black and white image conversion is an empirical formula obtained assuming a general natural image, and is not necessarily optimal for any image. I could not say it. For example, as described above, when it is desired to express a delicate gradation or to enhance contrast, an optimal conversion process cannot be performed according to an image to be processed.

【0006】本発明は上述した問題点を解決するために
なされたものであり、カラー/モノクロ画像変換を行う
際に、変換対象のカラー画像に応じて最適な変換を行う
画像処理装置及びその方法を提供することを目的とす
る。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned problems, and an image processing apparatus and method for performing optimal conversion according to a color image to be converted when performing color / monochrome image conversion. The purpose is to provide.

【0007】例えば、変換対象のカラー画像に応じて、
自然な階調表現を可能とするカラー/モノクロ画像変換
を可能とすることを目的とする。
For example, according to a color image to be converted,
An object of the present invention is to enable color / monochrome image conversion enabling natural gradation expression.

【0008】また、変換対象のカラー画像に応じて、画
像全体のコントラストを強調したカラー/モノクロ画像
変換を可能とすることを目的とする。
It is another object of the present invention to enable color / monochrome image conversion in which the contrast of the entire image is enhanced according to the color image to be converted.

【0009】[0009]

【課題を解決するための手段】上記目的を達成するため
の一手段として、本発明の画像処理装置は以下の構成を
備える。
As one means for achieving the above object, the image processing apparatus of the present invention has the following arrangement.

【0010】即ち、カラー画像の各色成分毎に、色値に
対する画素の頻度分布を解析する解析手段と、前記頻度
分布に基づいて前記画素の分布する色値領域を検出する
検出手段と、前記検出手段によって検出された色値領域
を拡張する拡張手段と、前記拡張前の色値と拡張後の色
値との変換テーブルを作成するテーブル作成手段と、前
記変換テーブルに基づいて前記カラー画像をモノクロ画
像に変換する変換手段とを有することを特徴とする。
That is, for each color component of a color image, analysis means for analyzing a frequency distribution of pixels with respect to color values, detection means for detecting a color value area in which the pixels are distributed based on the frequency distribution, Expansion means for expanding the color value area detected by the means, table creation means for creating a conversion table between the color values before expansion and color values after expansion, and monochrome conversion of the color image based on the conversion table. Conversion means for converting into an image.

【0011】また、カラー画像の各色成分毎に、色値に
対する画素の頻度分布を解析する解析手段と、前記頻度
分布に基づいて前記画素の分布率を検出する検出手段
と、前記検出手段によって検出された各色成分毎の分布
率に基づいて前記カラー画像をモノクロ画像に変換する
変換手段とを有することを特徴とする。
Analysis means for analyzing a frequency distribution of pixels with respect to color values for each color component of the color image; detection means for detecting a distribution ratio of the pixels based on the frequency distribution; Converting means for converting the color image into a monochrome image based on the distribution ratio of each color component thus obtained.

【0012】また、上記目的を達成するための一手法と
して、本発明の画像処理方法は以下の工程を備える。
Further, as a method for achieving the above object, the image processing method of the present invention includes the following steps.

【0013】即ち、カラー画像の各色成分毎に、色値に
対する画素の頻度分布を解析する解析工程と、前記頻度
分布に基づいて前記画素の分布する色値領域を検出する
検出工程と、前記検出工程において検出された色値領域
を拡張する拡張工程と、前記拡張前の色値と拡張後の色
値との変換テーブルを作成するテーブル作成工程と、前
記変換テーブルに基づいて前記カラー画像をモノクロ画
像に変換する変換工程とを有することを特徴とする。
That is, for each color component of a color image, an analyzing step of analyzing a frequency distribution of pixels with respect to color values, a detecting step of detecting a color value area in which the pixels are distributed based on the frequency distribution, An expansion step of expanding the color value area detected in the step, a table creation step of creating a conversion table between the color value before expansion and the color value after expansion, and monochrome conversion of the color image based on the conversion table. And converting the image into an image.

【0014】また、カラー画像の各色成分毎に、色値に
対する画素の頻度分布を解析する解析工程と、前記頻度
分布に基づいて前記画素の分布率を検出する検出工程
と、前記検出工程によって検出された各色成分毎の分布
率に基づいて前記カラー画像をモノクロ画像に変換する
変換工程とを有することを特徴とする。
An analyzing step of analyzing a frequency distribution of pixels with respect to a color value for each color component of the color image; a detecting step of detecting a distribution ratio of the pixels based on the frequency distribution; And converting the color image into a monochrome image based on the distribution ratio of each of the color components.

【0015】[0015]

【発明の実施の形態】以下、本発明に係る一実施形態に
ついて、図面を参照して詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment according to the present invention will be described below in detail with reference to the drawings.

【0016】<第1実施形態>本実施形態においては、
カラー/白黒画像変換をホストコンピュータにおいて行
う例について説明する。図1は、本実施形態のホストコ
ンピュータ内部のブロック構成図である。同図におい
て、1は本実施形態におけるカラー/白黒画像変換処理
を制御するCPU、2はCPU1の作業領域を提供する
RAM、3は補助記憶装置4を制御するデータ制御部で
ある。4は補助記憶装置であり、本実施形態における制
御プログラムやライブラリ等もここに格納されている。
補助記憶装置4としては、ハードディスクやCD−RO
M,MO,FD,RAM等が考えられる。尚、5はメイ
ンバスであり、CPU1はメインバス5を介してRAM
2,データ制御部3,補助記憶装置4を制御する。ま
た、本実施形態における制御プログラムは、CPU1の
制御によって補助記憶装置4からRAM2にロードさ
れ、実行されるものとする。
<First Embodiment> In the present embodiment,
An example in which color / monochrome image conversion is performed in a host computer will be described. FIG. 1 is a block diagram of the inside of the host computer according to the present embodiment. In FIG. 1, reference numeral 1 denotes a CPU for controlling the color / monochrome image conversion processing in the present embodiment, reference numeral 2 denotes a RAM for providing a work area for the CPU 1, and reference numeral 3 denotes a data control unit for controlling the auxiliary storage device 4. Reference numeral 4 denotes an auxiliary storage device, which also stores a control program, a library, and the like in the present embodiment.
As the auxiliary storage device 4, a hard disk or a CD-RO
M, MO, FD, RAM and the like can be considered. 5 is a main bus, and the CPU 1 is a RAM via the main bus 5.
2, a data control unit 3 and an auxiliary storage device 4 are controlled. The control program in the present embodiment is loaded from the auxiliary storage device 4 into the RAM 2 under the control of the CPU 1 and executed.

【0017】本実施形態においては、カラー/白黒画像
変換後の白黒画像において、微妙な階調表現を可能とす
ることを特徴とする。
The present embodiment is characterized in that a subtle gradation can be expressed in a monochrome image after color / monochrome image conversion.

【0018】以下、本実施形態におけるカラー/白黒画
像変換処理を、図2のフローチャートを参照して説明す
る。
Hereinafter, the color / monochrome image conversion processing in this embodiment will be described with reference to the flowchart of FIG.

【0019】まず、補助記憶装置4に保持されているR
GB多値のカラー画像データをRAM2上に読み込む
(S201)。次に、RAM2上のカラー画像データの
R成分のみを抽出し、「色値」対「画素数」のヒストグ
ラムを取り、RAM2に記録する(S202)。このヒ
ストグラムの例を図3に示す。図3において、横軸は画
像濃度値(色値)を、縦軸は該濃度値を有するデータ数
(画素数)を示す。
First, the R held in the auxiliary storage device 4
The GB multi-valued color image data is read into the RAM 2 (S201). Next, only the R component of the color image data on the RAM 2 is extracted, a histogram of “color value” versus “number of pixels” is obtained, and is recorded in the RAM 2 (S202). FIG. 3 shows an example of this histogram. In FIG. 3, the horizontal axis indicates the image density value (color value), and the vertical axis indicates the number of data (pixel number) having the density value.

【0020】次に、ステップS202で得られたヒスト
グラムに対して、予め設定されている閾値以上の画素数
を有する領域のみを対象とするように、ヒストグラムを
シフトする(S203)。即ち、図4に示す様に、閾値
S以上の画素数を有する色値領域を抽出することによ
り、図5に示すヒストグラムが得られる。以降、図5に
示す新たな色値領域を、カラー/白黒変換の対象領域と
する。これにより、変換対象画像に含まれるノイズを除
去し、変換すべき適度なコントラストを得ることができ
る。尚、この閾値Sは、処理対象のカラー画像の特性、
及び変換後の白黒画像特性等に応じて、色成分毎に異な
らせることも可能である。
Next, with respect to the histogram obtained in step S202, the histogram is shifted so that only the region having the number of pixels equal to or greater than a preset threshold value is targeted (S203). That is, as shown in FIG. 4, a histogram shown in FIG. 5 is obtained by extracting a color value region having the number of pixels equal to or larger than the threshold value S. Hereinafter, the new color value area shown in FIG. 5 is set as the target area of the color / monochrome conversion. This makes it possible to remove noise included in the conversion target image and obtain an appropriate contrast to be converted. Note that this threshold S is a characteristic of a color image to be processed,
It is also possible to make the color components different depending on the converted black-and-white image characteristics and the like.

【0021】次に、ステップS203において得られた
新たなヒストグラムにおいて、画素の分布がない色値領
域(非色分布領域)、即ち、画素数が0の色値範囲を検
出すし、RAM2に記憶する(S204)。また、画素
が分布する色値領域(色分布領域)を検出し、RAM2
に記憶する(S205)。例えば図5のヒストグラムを
例とすると、非色分布領域は図6においてaで示される
領域であり、それ以外の領域が色分布領域である。
Next, in the new histogram obtained in step S203, a color value area having no pixel distribution (non-color distribution area), that is, a color value range in which the number of pixels is 0 is detected and stored in the RAM 2. (S204). Further, a color value area (color distribution area) where pixels are distributed is detected,
(S205). For example, taking the histogram of FIG. 5 as an example, the non-color distribution area is the area indicated by a in FIG. 6, and the other areas are the color distribution areas.

【0022】ここで、非色分布領域が検出されなければ
(S206)、ステップS210に進んで、実際には変
換を行なわないダミーの変換テーブルを作成する。即
ち、入力色値と変換後の色値とが等しくなるような変換
テーブルを作成し、RAM2に保持する。これによりR
値に関する処理を終了し、ステップS211に進んで次
の色成分(例えばG成分)に関する処理を開始する。
If no non-color distribution area is detected (S206), the process proceeds to step S210, where a dummy conversion table that does not actually perform conversion is created. That is, a conversion table is created so that the input color value and the converted color value are equal, and the conversion table is stored in the RAM 2. This gives R
The process for the value ends, and the process proceeds to step S211 to start the process for the next color component (for example, the G component).

【0023】ステップS206で非色分布領域が検出さ
れた場合、図7に示す様に、得られた色分布領域におけ
る中央値Mをそれぞれ求める(S207)。そして、該
中央値Mを中心にして、非色分布領域に画素分布を拡張
する(S208)。尚、この際の拡張率は、拡張された
色分布領域同士が重なり合わないように設定するが、変
換対象のカラー画像、及び変換後の白黒画像の特徴等に
応じて、適宜変更可能である。この色分布領域の拡張の
様子を図8に示す。図8において、点線がステップS2
03で得られたヒストグラムであり、該ヒストグラムが
矢印方向に拡張されることにより、実線で示す拡張され
たヒストグラムが得られる。
When a non-color distribution area is detected in step S206, a median M in the obtained color distribution area is obtained as shown in FIG. 7 (S207). Then, the pixel distribution is extended to the non-color distribution area around the median M (S208). The expansion rate at this time is set so that the expanded color distribution areas do not overlap each other, but can be changed as appropriate according to the characteristics of the color image to be converted and the converted monochrome image. . FIG. 8 shows how the color distribution region is expanded. In FIG. 8, a dotted line indicates step S2.
03 is a histogram obtained by expanding the histogram in the direction of the arrow to obtain an expanded histogram indicated by a solid line.

【0024】そして、このようにして得られた拡張ヒス
トグラムに基づいて、原画像のR成分について、元の色
値と拡張後の色値との変換テーブル、即ち、図8におけ
る点線のヒストグラムから実線のヒストグラムへの色値
の変換テーブルを作成し、RAM2内に保持する(S2
09)。
On the basis of the extended histogram thus obtained, the conversion table between the original color value and the expanded color value for the R component of the original image, that is, the solid line from the dotted histogram in FIG. A conversion table of the color values to the histogram is created and stored in the RAM 2 (S2
09).

【0025】以上でR成分についての処理を終了する。
そして、原画像の全色成分についての処理が終了したか
否かを判断する(S211)。未終了であれば例えば次
にG成分についての処理を行うために、ステップS20
2へ戻る。このようにして、ステップS202〜S21
0の処理をR,G,Bの全色成分について行うことによ
り、R,G,Bの各色成分毎の変換テーブルが作成され
る。
Thus, the processing for the R component is completed.
Then, it is determined whether or not the processing for all the color components of the original image has been completed (S211). If not completed, for example, in order to perform processing on the G component next, step S20
Return to 2. Thus, steps S202 to S21
By performing the process of 0 for all the R, G, and B color components, a conversion table for each of the R, G, and B color components is created.

【0026】次に、以上のステップにより作成された
R,G,Bの各変換テーブルに基づいて、カラー画像デ
ータから白黒多値画像データへ変換する(S212)。
以下、この変換の具体例について説明する。
Next, color image data is converted into black-and-white multi-value image data based on the R, G, B conversion tables created by the above steps (S212).
Hereinafter, a specific example of this conversion will be described.

【0027】下記のカラー画像データ/白黒画像データ
変換式(1)に対して、原画像の各色成分毎の色値を代
入することにより、白黒多値画像データを求め、RAM
2に記録する。即ち、カラー画像における画素iについ
て、そのR,G,Bの各色成分をRi,Gi,Biとする
と、該画素の変換される白黒多値データValueiは、以
下の(1)式によって得られる。
By substituting the color values for each color component of the original image into the following color image data / black and white image data conversion formula (1), black and white multivalued image data is obtained.
Record in 2. That is, assuming that the R, G, and B color components of a pixel i in a color image are Ri, Gi, and Bi, the converted black-and-white multivalued data Valuei of the pixel is obtained by the following equation (1).

【0028】 Valuei=(3×TableR(Ri)+6×TableG(Gi) +TableB(Bi))/10 …(1) 但し、 TableR:R用の変換テーブル TableG:G用の変換テーブル TableB:B用の変換テーブル 以上の様に、本実施形態では上記(1)式に従ってカラ
ー/白黒画像変換が行われる。
Valuei = (3 × TableR (Ri) + 6 × TableG (Gi) + TableB (Bi)) / 10 (1) where TableR: R conversion table TableG: G conversion table TableB: B conversion table Conversion Table As described above, in the present embodiment, color / black and white image conversion is performed according to the above equation (1).

【0029】以上説明した様に本実施形態によれば、カ
ラー/白黒画像変換を行う際に、変換対象のカラー画像
の各色成分毎に、色分布領域を拡張して画像情報を振り
分けることにより、変換後の白黒画像においても画像情
報量を確保することができる。従って、変換後の白黒画
像における微妙な階調表現も可能となる。
As described above, according to the present embodiment, when performing color / monochrome image conversion, the color distribution area is expanded and the image information is sorted for each color component of the color image to be converted. The image information amount can be ensured even in the converted black and white image. Therefore, subtle gradation expression in the converted black and white image is also possible.

【0030】尚、本実施形態では(1)式に対して各色
成分毎の変換テーブルを適用する例について説明を行っ
たが、特にその係数等、該(1)式に限定されるもので
はない。変換対象となるカラー画像の色分布を分布のな
い領域に拡張して得られる変換テーブルにより、入力画
像の濃度値を変換して変換式に適用するところに本実施
形態の特徴があり、従って(1)式における係数等は適
宜変更可能である。
In this embodiment, an example in which the conversion table for each color component is applied to the equation (1) has been described. However, the coefficients and the like are not limited to the equation (1). . The present embodiment is characterized in that the density value of an input image is converted and applied to a conversion formula by a conversion table obtained by expanding the color distribution of a color image to be converted into an area having no distribution. The coefficients and the like in the expression 1) can be changed as appropriate.

【0031】<第2実施形態>以下、本発明に係る第2
実施形態について説明する。
<Second Embodiment> Hereinafter, a second embodiment according to the present invention will be described.
An embodiment will be described.

【0032】第2実施形態を実現するホストコンピュー
タの構成は、上述した第1実施形態と同様であるため、
説明を省略する。
Since the configuration of the host computer for realizing the second embodiment is the same as that of the above-described first embodiment,
Description is omitted.

【0033】第2実施形態においては、コントラストを
強調したカラー/白黒変換を行う例について説明する。
In the second embodiment, an example will be described in which color / black and white conversion in which contrast is enhanced is performed.

【0034】以下、第2実施形態におけるカラー/白黒
画像変換処理について、図9のフローチャートを参照し
て詳細に説明する。
Hereinafter, the color / monochrome image conversion processing in the second embodiment will be described in detail with reference to the flowchart of FIG.

【0035】まず、補助記憶装置4に保持されているR
GB多値のカラー画像データをRAM2上に読み込む
(S901)。次に、RAM2上のカラー画像データの
R,G,B成分のそれぞれについて、「色値」対「画素
数」のヒストグラムを取り、RAM2に記録する(S9
02)。このヒストグラムの例を図10に示す。図10
の(a),(b),(c)がそれぞれR,G,Bの各色
成分におけるヒストグラムであり、それぞれ横軸は画像
濃度値(色値)を、縦軸は該濃度値を有するデータ数
(画素数)を示す。
First, the R stored in the auxiliary storage device 4
The GB multi-valued color image data is read into the RAM 2 (S901). Next, for each of the R, G, and B components of the color image data on the RAM 2, a histogram of “color value” versus “number of pixels” is obtained and recorded in the RAM 2 (S9).
02). FIG. 10 shows an example of this histogram. FIG.
(A), (b), and (c) are histograms for each of the R, G, and B color components. The horizontal axis represents the image density value (color value), and the vertical axis represents the number of data having the density value. (Number of pixels).

【0036】次に、各色成分のヒストグラム毎に、画素
分布領域の面積(分布面積)を求める(S903)。例
えば図10の(a)〜(c)においては、それぞれ斜線
で示される部分が分布面積に相当している。
Next, the area (distribution area) of the pixel distribution area is determined for each color component histogram (S903). For example, in (a) to (c) of FIG. 10, hatched portions respectively correspond to distribution areas.

【0037】そして次に、ステップS903で得られた
色成分毎の分布面積の比を求め(S904)、カラー画
像を白黒多値画像データに変換するための変換式の係数
を設定する(S905)。以下、その設定方法について
説明する。
Next, the ratio of the distribution area for each color component obtained in step S903 is determined (S904), and a coefficient of a conversion formula for converting a color image into black-and-white multivalued image data is set (S905). . Hereinafter, the setting method will be described.

【0038】まず、各色成分の強度比、及びその合計を Kr:Kg:Kb K=Kr+Kg+Kb とすると、R,G,Bの各色成分の強度係数はそれぞれ
Kr/K,Kg/K,Kb/Kで表される。尚、この強度
係数は一般的な画像に基づいて予め設定された値であ
り、例えばKr=3,Kg=6,Kb=1とすれば、強度
係数Kr/K,Kg/K,Kb/Kはそれぞれ3/10,
6/10,1/10となる。
First, assuming that the intensity ratio of each color component and the sum thereof are Kr: Kg: Kb K = Kr + Kg + Kb, the intensity coefficients of the R, G, and B color components are Kr / K, Kg / K, and Kb / K, respectively. It is represented by The intensity coefficient is a value preset based on a general image. For example, if Kr = 3, Kg = 6, and Kb = 1, the intensity coefficients Kr / K, Kg / K, and Kb / K Are 3/10,
6/10 and 1/10.

【0039】この場合、カラー画像データ/白黒画像デ
ータ変換式は、カラー画像における画素iについて、そ
のR,G,Bの各色成分をRi,Gi,Bi、該画素の変
換される白黒多値データをValueiとすると、以下の
(2)式のようになる。
In this case, the color image data / monochrome image data conversion formula is as follows: for a pixel i in a color image, its R, G, B color components are Ri, Gi, Bi, Is the value, the following equation (2) is obtained.

【0040】 Valuei=(Kr×Ri+Kg×Gi+Kb×Bi)/K …(2) ここで、ステップS903で得られたR,G,B色成分
毎の面積比、及びその合計を、 Sr:Sg:Sb S=Sr+Sg+Sb とすると、上記変換式(2)は、これら面積比を考慮し
て以下の様に変形される。
Valuei = (Kr × Ri + Kg × Gi + Kb × Bi) / K (2) Here, the area ratio for each of the R, G, and B color components obtained in step S 903 and the sum thereof are represented by Sr: Sg: Assuming that Sb S = Sr + Sg + Sb, the above conversion equation (2) is modified as follows in consideration of these area ratios.

【0041】 Valuei=(Kr×Sr×Ri+Kg×Sg×Gi+Kb×Sb×Bi)×m /(K×S) …(3) m=(K×S)/(Kr×Sr+Kg×Sg+Kb×Sb) …(4) 第2実施形態においては即ち、カラー/白黒画像変換式
(2)における強度係数に対し、画素分布領域の面積比
を各色成分毎に乗じることによって新たな強度係数を設
定し、変換式(3),(4)を得る。
Valuei = (Kr × Sr × Ri + Kg × Sg × Gi + Kb × Sb × Bi) × m / (K × S) (3) m = (K × S) / (Kr × Sr + Kg × Sg + Kb × Sb) (4) In the second embodiment, a new intensity coefficient is set by multiplying the intensity coefficient in the color / monochrome image conversion equation (2) by the area ratio of the pixel distribution area for each color component. (3) and (4) are obtained.

【0042】そして、該変換式(3),(4)に従っ
て、色成分毎の画素分布領域の面積比を考慮したカラー
/白黒画像変換が行われる(S906)。
Then, according to the conversion formulas (3) and (4), color / monochrome image conversion is performed in consideration of the area ratio of the pixel distribution area for each color component (S906).

【0043】以上説明した様に第2実施形態によれば、
カラー画像の各色成分毎の画素分布領域面積をカラー/
白黒画像変換式の強度係数に乗じることにより、画像全
体に占める割合の多い色を強調した変換が可能となる。
従って、画像全体のコントラストを強調することができ
る。
As described above, according to the second embodiment,
The area of the pixel distribution area for each color component of the color image
By multiplying the intensity coefficient of the black-and-white image conversion formula, it is possible to perform conversion that emphasizes colors that have a large proportion in the entire image.
Therefore, the contrast of the entire image can be enhanced.

【0044】尚、上述した第1及び第2実施形態におい
ては、RGBのカラー画像を白黒画像に変換する処理に
ついて説明を行ったが、複数色成分からなるカラー画像
をモノクロ画像に変換する処理であれば、本発明はもち
ろん適用可能である。
In the first and second embodiments described above, the processing for converting an RGB color image into a monochrome image has been described. However, the processing for converting a color image composed of a plurality of color components into a monochrome image is described. If so, the present invention is of course applicable.

【0045】<他の実施形態>尚、本発明は、複数の機
器(例えばホストコンピュータ,インタフェイス機器,
リーダ,プリンタなど)から構成されるシステムに適用
しても、一つの機器からなる装置(例えば、複写機,フ
ァクシミリ装置など)に適用してもよい。
<Other Embodiments> The present invention relates to a plurality of devices (for example, a host computer, an interface device,
The present invention may be applied to a system including a reader, a printer, or the like, or may be applied to an apparatus (for example, a copying machine, a facsimile machine, or the like) including one device.

【0046】また、本発明の目的は、前述した実施形態
の機能を実現するソフトウェアのプログラムコードを記
録した記憶媒体を、システムあるいは装置に供給し、そ
のシステムあるいは装置のコンピュータ(またはCPU
やMPU)が記憶媒体に格納されたプログラムコードを
読出し実行することによっても、達成されることは言う
までもない。
Another object of the present invention is to provide a storage medium storing a program code of software for realizing the functions of the above-described embodiments to a system or apparatus, and to provide a computer (or CPU) of the system or apparatus.
And MPU) read and execute the program code stored in the storage medium.

【0047】この場合、記憶媒体から読出されたプログ
ラムコード自体が前述した実施形態の機能を実現するこ
とになり、そのプログラムコードを記憶した記憶媒体は
本発明を構成することになる。
In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiment, and the storage medium storing the program code constitutes the present invention.

【0048】プログラムコードを供給するための記憶媒
体としては、例えば、フロッピディスク,ハードディス
ク,光ディスク,光磁気ディスク,CD−ROM,CD
−R,磁気テープ,不揮発性のメモリカード,ROMな
どを用いることができる。
As a storage medium for supplying the program code, for example, a floppy disk, hard disk, optical disk, magneto-optical disk, CD-ROM, CD
-R, a magnetic tape, a nonvolatile memory card, a ROM, or the like can be used.

【0049】また、コンピュータが読出したプログラム
コードを実行することにより、前述した実施形態の機能
が実現されるだけでなく、そのプログラムコードの指示
に基づき、コンピュータ上で稼働しているOS(オペレ
ーティングシステム)などが実際の処理の一部または全
部を行い、その処理によって前述した実施形態の機能が
実現される場合も含まれることは言うまでもない。
When the computer executes the readout program code, not only the functions of the above-described embodiment are realized, but also the OS (Operating System) running on the computer based on the instruction of the program code. ) May perform some or all of the actual processing, and the processing may realize the functions of the above-described embodiments.

【0050】さらに、記憶媒体から読出されたプログラ
ムコードが、コンピュータに挿入された機能拡張ボード
やコンピュータに接続された機能拡張ユニットに備わる
メモリに書込まれた後、そのプログラムコードの指示に
基づき、その機能拡張ボードや機能拡張ユニットに備わ
るCPUなどが実際の処理の一部または全部を行い、そ
の処理によって前述した実施形態の機能が実現される場
合も含まれることは言うまでもない。
Further, after the program code read from the storage medium is written into a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer, based on the instruction of the program code, It goes without saying that the CPU included in the function expansion board or the function expansion unit performs part or all of the actual processing, and the processing realizes the functions of the above-described embodiments.

【0051】本発明を上記記憶媒体に適用する場合、そ
の記憶媒体には、先に説明したフローチャートに対応す
るプログラムコードを格納することになるが、簡単に説
明すると、例えば図11(a)のメモリマップ例に示す
各モジュールを記憶媒体に格納することになる。即ち、
少なくとも「ヒストグラム作成モジュール」「ヒストグ
ラム拡張モジュール」「色変換テーブル作成モジュー
ル」及び「カラー/モノクロ変換モジュール」の各モジ
ュールのプログラムコードを記憶媒体に格納すればよ
い。または、図11(b)のメモリマップ例に示す各モ
ジュールを記憶媒体に格納することになる。即ち、少な
くとも「ヒストグラム作成モジュール」「面積比算出モ
ジュール」及び「カラー/モノクロ変換モジュール」の
各モジュールのプログラムコードを記憶媒体に格納すれ
ばよい。
When the present invention is applied to the storage medium, the storage medium stores program codes corresponding to the above-described flowcharts. Each module shown in the memory map example is stored in the storage medium. That is,
At least the program code of each module of the “histogram creation module”, “histogram extension module”, “color conversion table creation module” and “color / monochrome conversion module” may be stored in the storage medium. Alternatively, each module shown in the example of the memory map in FIG. 11B is stored in a storage medium. That is, the program codes of at least the respective modules of the “histogram creation module”, the “area ratio calculation module”, and the “color / monochrome conversion module” may be stored in the storage medium.

【0052】[0052]

【発明の効果】以上説明した様に本発明によれば、カラ
ー/モノクロ画像変換を行う際に、変換対象のカラー画
像に応じて最適な変換を行うことが可能となる。
As described above, according to the present invention, when performing a color / monochrome image conversion, it is possible to perform an optimum conversion according to a color image to be converted.

【0053】例えば、変換対象のカラー画像に応じて、
自然な階調表現を可能とするカラー/モノクロ画像変換
が可能となる。
For example, according to the color image to be converted,
Color / monochrome image conversion enabling natural gradation expression becomes possible.

【0054】また、変換対象のカラー画像に応じて、画
像全体のコントラストを強調したカラー/モノクロ画像
変換が可能となる。
Further, according to the color image to be converted, color / monochrome image conversion in which the contrast of the entire image is enhanced can be performed.

【0055】[0055]

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

【図1】本発明に係る一実施形態におけるホストコンピ
ュータの構成を示すブロック図である。
FIG. 1 is a block diagram illustrating a configuration of a host computer according to an embodiment of the present invention.

【図2】本実施形態におけるカラー/白黒画像変換処理
を示すフローチャートである。
FIG. 2 is a flowchart illustrating a color / monochrome image conversion process according to the embodiment.

【図3】本実施形態において得られるヒストグラム例を
示す図である。
FIG. 3 is a diagram showing an example of a histogram obtained in the embodiment.

【図4】本実施形態におけるヒストグラムのシフト例を
示す図である。
FIG. 4 is a diagram illustrating an example of a shift of a histogram according to the present embodiment.

【図5】本実施形態におけるヒストグラムのシフト例を
示す図である。
FIG. 5 is a diagram illustrating an example of a shift of a histogram according to the present embodiment.

【図6】本実施形態における非色分布領域例を示す図で
ある。
FIG. 6 is a diagram illustrating an example of a non-color distribution area according to the present embodiment.

【図7】本実施形態における色分布領域の中央値を示す
図である。
FIG. 7 is a diagram illustrating a median value of a color distribution area according to the embodiment.

【図8】本実施形態における色分布領域を拡張する様子
を示す図である。
FIG. 8 is a diagram illustrating a state in which a color distribution area is expanded in the embodiment.

【図9】本発明に係る第2実施形態におけるカラー/白
黒画像変換処理を示すフローチャートである。
FIG. 9 is a flowchart illustrating a color / monochrome image conversion process according to the second embodiment of the present invention.

【図10】第2実施形態において得られるヒストグラム
例を示す図である。
FIG. 10 is a diagram showing an example of a histogram obtained in the second embodiment.

【図11】本発明を記憶媒体に適用した際のメモリマッ
プ例を示す図である。
FIG. 11 is a diagram showing an example of a memory map when the present invention is applied to a storage medium.

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

1 CPU 2 RAM 3 データ制御部 4 補助記憶装置 5 メインバス DESCRIPTION OF SYMBOLS 1 CPU 2 RAM 3 Data control part 4 Auxiliary storage device 5 Main bus

Claims (16)

【特許請求の範囲】[Claims] 【請求項1】 カラー画像の各色成分毎に、色値に対す
る画素の頻度分布を解析する解析手段と、 前記頻度分布に基づいて前記画素の分布する色値領域を
検出する検出手段と、 前記検出手段によって検出された色値領域を拡張する拡
張手段と、 前記拡張前の色値と拡張後の色値との変換テーブルを作
成するテーブル作成手段と、 前記変換テーブルに基づいて前記カラー画像をモノクロ
画像に変換する変換手段と、を有することを特徴とする
画像処理装置。
An analyzing unit that analyzes a frequency distribution of pixels with respect to a color value for each color component of a color image; a detecting unit that detects a color value area in which the pixels are distributed based on the frequency distribution; Expansion means for expanding the color value area detected by the means; table creation means for creating a conversion table between the color values before expansion and the color values after expansion; and monochrome conversion of the color image based on the conversion table. An image processing apparatus comprising: a conversion unit configured to convert an image into an image.
【請求項2】 前記解析手段は、頻度分布としてヒスト
グラムを作成することを特徴とする請求項1記載の画像
処理装置。
2. An image processing apparatus according to claim 1, wherein said analysis means creates a histogram as a frequency distribution.
【請求項3】 前記解析手段は、画素の頻度分布が所定
値以上であるヒストグラムを作成することを特徴とする
請求項2記載の画像処理装置。
3. The image processing apparatus according to claim 2, wherein the analysis unit creates a histogram in which the frequency distribution of the pixels is equal to or more than a predetermined value.
【請求項4】 前記拡張手段は、前記色値領域の中央値
を中心として色値領域を拡張することを特徴とする請求
項1記載の画像処理装置。
4. The image processing apparatus according to claim 1, wherein the extension unit extends the color value area around a center value of the color value area.
【請求項5】 前記拡張手段は、前記色値領域を画素分
布のない領域に拡張することを特徴とする請求項4記載
の画像処理装置。
5. The image processing apparatus according to claim 4, wherein the expansion unit expands the color value area to an area without a pixel distribution.
【請求項6】 前記拡張手段は、拡張後の複数の色値領
域が重ならない様に拡張することを特徴とする請求項5
記載の画像処理装置。
6. The expansion unit according to claim 5, wherein the expansion unit expands the plurality of color value areas after expansion so as not to overlap.
The image processing apparatus according to any one of the preceding claims.
【請求項7】 前記変換手段は、前記カラー画像の各色
成分毎の色値を前記変換テーブルによって変換し、該変
換された色値に基づいてモノクロ画像を作成することを
特徴とする請求項1記載の画像処理装置。
7. The apparatus according to claim 1, wherein the conversion unit converts color values of each color component of the color image using the conversion table, and creates a monochrome image based on the converted color values. The image processing apparatus according to any one of the preceding claims.
【請求項8】 前記テーブル作成手段は、前記検出手段
によって色値領域が検出されなかった場合、前記変換テ
ーブルを拡張前の色値を変換しない様に作成することを
特徴とする請求項1記載の画像処理装置。
8. The apparatus according to claim 1, wherein the table creation unit creates the conversion table so as not to convert the color value before expansion when the color value area is not detected by the detection unit. Image processing device.
【請求項9】 カラー画像の各色成分毎に、色値に対す
る画素の頻度分布を解析する解析手段と、 前記頻度分布に基づいて前記画素の分布率を検出する検
出手段と、 前記検出手段によって検出された各色成分毎の分布率に
基づいて前記カラー画像をモノクロ画像に変換する変換
手段と、を有することを特徴とする画像処理装置。
9. An analyzing means for analyzing a frequency distribution of pixels with respect to a color value for each color component of a color image; a detecting means for detecting a distribution rate of the pixels based on the frequency distribution; Converting means for converting the color image into a monochrome image based on the obtained distribution ratio of each color component.
【請求項10】 前記解析手段は、頻度分布としてヒス
トグラムを作成することを特徴とする請求項9記載の画
像処理装置。
10. An image processing apparatus according to claim 9, wherein said analysis means creates a histogram as a frequency distribution.
【請求項11】 前記検出手段は、前記ヒストグラム上
において画素が分布する領域の面積を求め、 前記変換手段は、各色成分毎の面積比に基づいて変換を
行うことを特徴とする請求項10記載の画像処理装置。
11. The apparatus according to claim 10, wherein said detecting means obtains an area of a region where pixels are distributed on said histogram, and said converting means performs conversion based on an area ratio of each color component. Image processing device.
【請求項12】 前記変換手段は、前記面積比を考慮し
た各色成分毎の含有率に基づいて変換を行うことを特徴
とする請求項11記載の画像処理装置。
12. The image processing apparatus according to claim 11, wherein the conversion unit performs conversion based on a content rate of each color component in consideration of the area ratio.
【請求項13】 カラー画像の各色成分毎に、色値に対
する画素の頻度分布を解析する解析工程と、 前記頻度分布に基づいて前記画素の分布する色値領域を
検出する検出工程と、 前記検出工程において検出された色値領域を拡張する拡
張工程と、 前記拡張前の色値と拡張後の色値との変換テーブルを作
成するテーブル作成工程と、 前記変換テーブルに基づいて前記カラー画像をモノクロ
画像に変換する変換工程と、を有することを特徴とする
画像処理方法。
13. An analyzing step of analyzing a frequency distribution of pixels with respect to a color value for each color component of a color image; a detecting step of detecting a color value area in which the pixels are distributed based on the frequency distribution; An expansion step of expanding a color value area detected in the step; a table creation step of creating a conversion table between the color values before expansion and the color values after expansion; and monochrome conversion of the color image based on the conversion table. Converting the image into an image.
【請求項14】 カラー画像の各色成分毎に、色値に対
する画素の頻度分布を解析する解析工程と、 前記頻度分布に基づいて前記画素の分布率を検出する検
出工程と、 前記検出工程によって検出された各色成分毎の分布率に
基づいて前記カラー画像をモノクロ画像に変換する変換
工程と、を有することを特徴とする画像処理方法。
14. An analysis step of analyzing a frequency distribution of pixels with respect to a color value for each color component of a color image; a detection step of detecting a distribution rate of the pixels based on the frequency distribution; A conversion step of converting the color image into a monochrome image based on the obtained distribution ratio of each color component.
【請求項15】 画像処理のプログラムコードが格納さ
れたコンピュータ可読メモリであって、 カラー画像の各色成分毎に、色値に対する画素の頻度分
布を解析する解析工程のコードと、 前記頻度分布に基づいて前記画素の分布する色値領域を
検出する検出工程のコードと、 前記検出工程において検出された色値領域を拡張する拡
張工程のコードと、 前記拡張前の色値と拡張後の色値との変換テーブルを作
成するテーブル作成工程のコードと、 前記変換テーブルに基づいて前記カラー画像をモノクロ
画像に変換する変換工程のコードと、を有することを特
徴とするコンピュータ可読メモリ。
15. A computer-readable memory storing a program code for image processing, comprising: a code of an analyzing step of analyzing a frequency distribution of pixels with respect to a color value for each color component of a color image; A code of a detection step of detecting a color value area in which the pixels are distributed, a code of an expansion step of expanding the color value area detected in the detection step, and a color value before expansion and a color value after expansion. A computer readable memory, comprising: a code for a table creation step for creating the conversion table described above; and a code for a conversion step for converting the color image into a monochrome image based on the conversion table.
【請求項16】 画像処理のプログラムコードが格納さ
れたコンピュータ可読メモリであって、 カラー画像の各色成分毎に、色値に対する画素の頻度分
布を解析する解析工程のコードと、 前記頻度分布に基づいて前記画素の分布率を検出する検
出工程のコードと、 前記検出工程によって検出された各色成分毎の分布率に
基づいて前記カラー画像をモノクロ画像に変換する変換
工程のコードと、を有することを特徴とするコンピュー
タ可読メモリ。
16. A computer-readable memory storing a program code for image processing, comprising: a code of an analyzing step of analyzing a frequency distribution of pixels with respect to a color value for each color component of a color image; And a code for a conversion step of converting the color image into a monochrome image based on the distribution rate of each color component detected in the detection step. Computer readable memory featured.
JP8221269A 1996-08-22 1996-08-22 Processor and method for image processing Withdrawn JPH1063833A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8221269A JPH1063833A (en) 1996-08-22 1996-08-22 Processor and method for image processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8221269A JPH1063833A (en) 1996-08-22 1996-08-22 Processor and method for image processing

Publications (1)

Publication Number Publication Date
JPH1063833A true JPH1063833A (en) 1998-03-06

Family

ID=16764136

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8221269A Withdrawn JPH1063833A (en) 1996-08-22 1996-08-22 Processor and method for image processing

Country Status (1)

Country Link
JP (1) JPH1063833A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000007144A1 (en) * 1998-07-31 2000-02-10 Seiko Epson Corporation Monotone converting device, monotone converting method, and medium on which monotone converting program is recorded
JP2006221148A (en) * 2005-01-14 2006-08-24 Canon Inc Image display apparatus and its control method
JP2008515063A (en) * 2004-09-29 2008-05-08 アップル インコーポレイテッド Method and apparatus for aesthetically enhanced image conversion
KR101297465B1 (en) * 2012-03-29 2013-08-16 가톨릭대학교 산학협력단 Method for converting color image to black-and-white image and recoded media having program performing the same
EP3142345A1 (en) 2015-09-08 2017-03-15 Riso Kagaku Corporation Image processing apparatus for monchrome conversion and image forming apparatus including the same

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000007144A1 (en) * 1998-07-31 2000-02-10 Seiko Epson Corporation Monotone converting device, monotone converting method, and medium on which monotone converting program is recorded
US7027088B1 (en) 1998-07-31 2006-04-11 Seiko Epson Corporation Color to monotone conversion apparatus, color to monotone conversion method and a medium recording thereon a color to monotone conversion program
JP2008515063A (en) * 2004-09-29 2008-05-08 アップル インコーポレイテッド Method and apparatus for aesthetically enhanced image conversion
US8462384B2 (en) 2004-09-29 2013-06-11 Apple Inc. Methods and apparatuses for aesthetically enhanced image conversion
JP2006221148A (en) * 2005-01-14 2006-08-24 Canon Inc Image display apparatus and its control method
JP4677343B2 (en) * 2005-01-14 2011-04-27 キヤノン株式会社 Image display apparatus and method
US8155435B2 (en) 2005-01-14 2012-04-10 Canon Kabushiki Kaisha Display apparatus and its control method
KR101297465B1 (en) * 2012-03-29 2013-08-16 가톨릭대학교 산학협력단 Method for converting color image to black-and-white image and recoded media having program performing the same
EP3142345A1 (en) 2015-09-08 2017-03-15 Riso Kagaku Corporation Image processing apparatus for monchrome conversion and image forming apparatus including the same
US9723175B2 (en) 2015-09-08 2017-08-01 Riso Kagaku Corporation Image processing apparatus for monochrome conversion and image forming apparatus including the same

Similar Documents

Publication Publication Date Title
JP4623301B2 (en) Image processing apparatus and image processing program
JP4250483B2 (en) Image processing apparatus, image processing method, program, and storage medium
JP2002084420A (en) Image processing unit, image processing method and recording medium with stored image processing program
JP2003087563A (en) Image processing device and its control method
JP2004228811A (en) Image processor, image processing method and program for computer to perform execution
JPH0410765A (en) Image processor
JP2008005317A (en) Image processor and image processing method, and computer program and recording medium
JP2007166560A (en) Apparatus, method, and program for image processing and storage medium
US6807301B1 (en) Image production controlling device, image producing device, image production controlling method, and a storage medium
JPH09244475A (en) Image outputting device and control method therefor
JPH1063833A (en) Processor and method for image processing
JP2007067956A (en) Multi-dimensional interpolation apparatus and multi-dimensional interpolation method
JP3870147B2 (en) Image compression apparatus, image expansion apparatus, method thereof, and program
JP3817506B2 (en) Image compression apparatus, image expansion apparatus, method thereof, and program
JP4504096B2 (en) Image processing apparatus, program, and storage medium
JP3754736B2 (en) Image processing apparatus and method
JPH11136505A (en) Picture processor and picture processing method
JP4035696B2 (en) Line segment detection apparatus and image processing apparatus
JP3768560B2 (en) Image processing apparatus and method
JP2003283855A (en) Picture processor, program, and recording medium
JPH1042152A (en) Picture processor and picture processing method
JP2002252773A (en) Color image processing method and device, and recording medium
JP2007013474A (en) Image processing apparatus and method
JPH08191392A (en) Image processor
JP2011166765A (en) Image forming device and image forming method

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20031104