JPH1188712A - Image processing method and image processor - Google Patents

Image processing method and image processor

Info

Publication number
JPH1188712A
JPH1188712A JP9248486A JP24848697A JPH1188712A JP H1188712 A JPH1188712 A JP H1188712A JP 9248486 A JP9248486 A JP 9248486A JP 24848697 A JP24848697 A JP 24848697A JP H1188712 A JPH1188712 A JP H1188712A
Authority
JP
Japan
Prior art keywords
image data
pixel value
color
pixel
change amount
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
JP9248486A
Other languages
Japanese (ja)
Inventor
Hisashi Sousa
久 宗佐
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.)
Konica Minolta Inc
Original Assignee
Konica Minolta 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 Konica Minolta Inc filed Critical Konica Minolta Inc
Priority to JP9248486A priority Critical patent/JPH1188712A/en
Publication of JPH1188712A publication Critical patent/JPH1188712A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To make a boundary between graphics and characters whose lightness is approximated clear at the time of converting color image data into monochromatic image data and to obtain the monochromatic image whose content is easily discriminated. SOLUTION: When the image processor 200 outputs color image data as monochromatic image data, a monochromatic data conversion part 205 is provided. The monochromatic data conversion part 205 obtains image element value change quantity between the picture elements of color image data, converts data into monochromatic image data corresponding to the picture element value of color image data when picture element value change quantity is within a prescribed range and substitutes it for monochromatic image data different from the picture element value of color image data when picture element value change quantity is out of the prescribed range.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、画像処理方法及び
画像処理装置に関し、コンピュータ等からのカラー画像
データをグレイスケールのモノクローム画像データとし
て変換もしくは置換して出力する画像処理方法及び画像
処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing method and an image processing apparatus, and more particularly to an image processing method and an image processing apparatus for converting or replacing color image data from a computer or the like as grayscale monochrome image data and outputting the same. .

【0002】[0002]

【従来の技術】ホストコンピュータ等のカラーCRT画
面に表示されるカラー画像をモノクロハードコピー装置
に出力する場合や、カラーハードコピー装置からモノク
ロモードで出力する場合等では、カラー画像データをモ
ノクローム画像データに変換して出力する必要がある。
2. Description of the Related Art When a color image displayed on a color CRT screen of a host computer or the like is output to a monochrome hard copy device, or when output from a color hard copy device in a monochrome mode, the color image data is converted to monochrome image data. Need to be converted and output.

【0003】このような場合には、画像処理装置がカラ
ー画像データを一連の画像処理過程の中でグレイスケー
ルのモノクローム画像データに変換している。
In such a case, the image processing apparatus converts the color image data into grayscale monochrome image data in a series of image processing steps.

【0004】[0004]

【発明が解決しようとする課題】このようにカラー画像
データをモノクローム画像データに変換する画像処理装
置では、カラー画像データに含まれる明度情報などによ
って一義的にグレイスケールに変換される。このため、
色相が急激に変化している領域を含むカラー画像であっ
ても、明度変化が小さければ、モノクローム画像データ
に変換された場合にダイナミックレンジの小さなモノク
ローム画像しか得られない場合がある。
In an image processing apparatus for converting color image data into monochrome image data as described above, the image data is uniquely converted to gray scale by the brightness information and the like included in the color image data. For this reason,
Even if the color image includes a region where the hue changes rapidly, if the change in brightness is small, only a monochrome image with a small dynamic range may be obtained when converted to monochrome image data.

【0005】例えば、「赤色の背景」の上の「青色の文
字」は、カラー画像としては判別が容易であるが、これ
をグレイスケールのモノクローム画像に変換すると「赤
色の背景」と「青色の文字」がほぼ同じグレイスケール
に変換されるため内容の判別はほとんど不可能になって
しまう。
For example, a “blue character” on a “red background” is easy to discriminate as a color image, but when this is converted into a grayscale monochrome image, the “red background” and the “blue Since "characters" are converted to almost the same gray scale, it is almost impossible to determine the contents.

【0006】図6にマンセル色相の理論上の色域を示
す。クロマ限界線と色濃度限界線の交点上にある純色の
明度は各色相によって異なるが、異なる色相でもV値
(明度)が同じであればカラー画像データをグレイスケ
ール変換すると、同一のグレイスケールが選択されてし
まう。この結果、グレイスケールからでは元の色の区別
が全く付かない状態に陥ってしまう。
FIG. 6 shows the theoretical color gamut of Munsell hue. The lightness of a pure color at the intersection of the chroma limit line and the color density limit line differs for each hue, but if the V value (lightness) is the same for different hues, the same gray scale is obtained by converting the color image data to gray scale. It will be selected. As a result, the original color cannot be distinguished at all from the gray scale.

【0007】その他、「明るい橙」と「黄緑」、「暗い
灰」と「紫」等の明度の近い色の組合せもグレイスケー
ル変換後の判別はほとんど不可能であり、このような色
の組合せは多数存在する。
[0007] In addition, it is almost impossible to discriminate a combination of colors having similar lightness such as "bright orange" and "yellow green", "dark gray" and "purple" after gray scale conversion. There are many combinations.

【0008】このように、近接または同等のグレイスケ
ールに変換される色の組み合わせを含むカラー画像デー
タによっては、カラー画像データをモノクローム画像デ
ータに変換して出力すると図形については特に画像情報
の欠落が甚だしくなることが多々ある。
As described above, depending on color image data including a combination of colors that are converted to close or equivalent gray scales, when color image data is converted to monochrome image data and output, there is a lack of image information especially for a figure. Often it can be severe.

【0009】本願発明は、このような問題を解決するも
のであり、カラー画像データをモノクローム画像データ
に変換して出力する際に、明度の近似した図形や文字等
の境界を明確にして、内容を判別しやすいモノクローム
画像を得ることが可能な画像処理方法及び画像処理装置
を提供するものである。
The present invention solves such a problem. When converting color image data into monochrome image data and outputting the same, the boundaries of figures, characters, and the like having similar lightness are clarified, and the contents are changed. It is an object of the present invention to provide an image processing method and an image processing apparatus capable of obtaining a monochrome image in which the image can be easily determined.

【0010】[0010]

【課題を解決するための手段】したがって、課題を解決
する手段としての発明は、以下の(1)〜(11)に説
明するものである。
Accordingly, the invention as a means for solving the problem is described in the following (1) to (11).

【0011】(1)請求項1記載の発明は、カラー画像
データをモノクローム画像データとして出力する画像処
理方法であって、カラー画像データの画素間の画素値変
化量を求め、前記画素値変化量が所定の範囲内である場
合にはカラー画像データの画素値に応じたモノクローム
画像データに変換し、前記画素値変化量が所定の範囲外
である場合にはカラー画像データの画素値とは異なるモ
ノクローム画像データに置換する、ことを特徴とする画
像処理方法である。
(1) The invention according to claim 1 is an image processing method for outputting color image data as monochrome image data, wherein a pixel value change amount between pixels of the color image data is obtained, and the pixel value change amount is calculated. Is within a predetermined range, the image data is converted into monochrome image data corresponding to the pixel value of the color image data. If the pixel value change amount is outside the predetermined range, the pixel value is different from the pixel value of the color image data. This is an image processing method characterized by replacing the image data with monochrome image data.

【0012】この画像処理方法の発明では、まず、カラ
ー画像データの画素間の画素値変化量を求めており、色
境界を求めている。そして、この色境界での変化が所定
の範囲内である場合には通常のモノクローム画像データ
への変換を行う。また、色境界において変化が所定の範
囲外である場合には、元のカラー画像データの画素値と
は異なるモノクローム画像データへの置換を行う。
In the invention of this image processing method, first, a pixel value change amount between pixels of color image data is obtained, and a color boundary is obtained. If the change at the color boundary is within a predetermined range, conversion to normal monochrome image data is performed. If the change at the color boundary is outside the predetermined range, replacement with monochrome image data different from the pixel value of the original color image data is performed.

【0013】この結果、画素値変化量が所定の範囲外と
なる変化の小さい色境界では、元のカラー画像データの
画素値とは異なるモノクローム画像データへの置換によ
って、境界線が形成される。
As a result, at a color boundary where the amount of change in pixel value falls outside a predetermined range, a boundary line is formed by replacing the original color image data with monochrome image data different from the pixel value.

【0014】従って、カラー画像データをモノクローム
画像データに変換して出力する際に、明度の近似した図
形や文字等の境界を明確にして、内容を判別しやすいモ
ノクローム画像を得ることが可能になる。
Therefore, when converting color image data into monochrome image data and outputting it, it is possible to clarify the boundaries of figures, characters, and the like having similar lightness and obtain a monochrome image whose contents can be easily discriminated. .

【0015】(2)請求項2記載の発明は、上記(1)
において、画素値変化量を、色差、色相角差、明度差に
より算出することを特徴とする。この画像処理方法の発
明では、色差、色相角差、明度差に注目してカラー画像
データの画素間の画素値変化量を求めることにより、色
相角差や色差がありながら明度の近似した図形や文字等
の境界を明確にして、内容を判別しやすいモノクローム
画像を得ることが可能になる。
(2) The invention according to claim 2 is characterized in that (1)
Wherein the amount of change in pixel value is calculated based on a color difference, a hue angle difference, and a lightness difference. According to the invention of this image processing method, the color difference, the hue angle difference, and the lightness difference are calculated to calculate the pixel value change amount between the pixels of the color image data. This makes it possible to clarify the boundaries of characters and the like and obtain a monochrome image whose contents can be easily determined.

【0016】(3)請求項3記載の発明は、上記(1)
において、前記画素値変化量が所定の範囲外の場合に、
置換を受ける画素の画素値に基づいて、該画素値とは異
なるモノクローム画像データに置換することを特徴とす
る。
(3) The invention according to claim 3 is characterized in that (1)
In the above, when the pixel value change amount is out of a predetermined range,
It is characterized in that monochrome image data different from the pixel value is replaced based on the pixel value of the pixel to be replaced.

【0017】この画像処理方法の発明では、元のカラー
画像データの画素値とは異なるモノクローム画像データ
への置換をする際に、置換を受ける画素の画素値に基づ
いて置換を実行している。
According to the invention of this image processing method, when replacing with monochrome image data different from the pixel value of the original color image data, the replacement is executed based on the pixel value of the pixel to be replaced.

【0018】すなわち、置換を受ける画素の画素値を参
照して、置換すべきモノクロームの画素値を決定して置
換を実行していることにより、置換を受ける画素の画素
値とは明確に異なるように置換を実行して、明度の近似
した図形や文字等の境界を明確にして、内容を判別しや
すいモノクローム画像を得ることが可能になる。
That is, the pixel value of the pixel to be replaced is determined by referring to the pixel value of the pixel to be replaced, and the pixel value of the monochrome to be replaced is determined. , The boundaries of figures, characters, and the like with similar lightness are clarified, and it is possible to obtain a monochrome image whose contents can be easily distinguished.

【0019】(4)請求項4記載の発明は、上記(1)
〜(3)において、画素値変化量が所定の範囲外である
場合に、カラー画像データの画素値に応じたモノクロー
ム画像データに変換するか、カラー画像データの画素値
とは異なるモノクローム画像データに置換するか、いず
れかを選択可能にしたことを特徴とする。
(4) The invention according to claim 4 is characterized in that:
In (3), when the pixel value change amount is out of the predetermined range, the pixel value is converted into monochrome image data corresponding to the pixel value of the color image data, or is converted into monochrome image data different from the pixel value of the color image data. It is characterized in that it can be replaced or one of them can be selected.

【0020】この画像処理方法の発明では、境界におい
て別な画素値に置換されたモノクローム画像データか、
境界において変換されたモノクローム画像データか、の
いずれかを選択して出力している。
According to the invention of this image processing method, whether the monochrome image data is replaced with another pixel value at the boundary,
Either monochrome image data converted at the boundary or selected is output.

【0021】この結果、画素値変化量が所定の範囲外と
なる変化の小さい色境界で、置換による境界線を形成す
るか否かを選択することが可能になる。したがって、明
度の近似した図形や文字等の境界を明確にして内容を判
別しやすいモノクローム画像と、明度の近似した図形や
文字をそのままの明度にしたモノクローム画像と、を得
ることが可能になる。
As a result, it is possible to select whether or not to form a boundary line by replacement at a color boundary with a small change in which the pixel value change amount is outside a predetermined range. Therefore, it is possible to obtain a monochrome image in which the boundaries between figures and characters with similar lightness are clear and the content is easy to determine, and a monochrome image in which figures and characters with similar lightness are kept as they are.

【0022】(5)請求項5記載の発明は、上記(1)
〜(3)において、カラー画像データの画素間の画素値
変化量にかかわらず、カラー画像データの画素値に応じ
たモノクローム画像データに変換した結果を選択して出
力することを特徴とする。
(5) The invention according to claim 5 is characterized in that:
In (3), a result of conversion into monochrome image data corresponding to the pixel value of the color image data is selected and output irrespective of the pixel value change amount between pixels of the color image data.

【0023】この画像処理方法の発明では、画素値変化
量にかかわらず、カラー画像データの画素値に基づいて
変換されたモノクローム画像データを選択して出力して
いる。この場合、写真などのカラー画像データを処理す
るのに適した状態になる。
In the invention of this image processing method, monochrome image data converted based on the pixel values of the color image data is selected and output regardless of the pixel value change amount. In this case, the state becomes suitable for processing color image data such as a photograph.

【0024】(6)請求項6記載の発明は、カラー画像
データをモノクローム画像データとして出力する画像処
理装置であって、カラー画像データの画素間の画素値変
化量を求める判定手段と、前記画素値変化量が所定の範
囲内である場合にカラー画像データの画素値に応じたモ
ノクローム画像データに変換する変換手段と、前記画素
値変化量が所定の範囲外である場合にカラー画像データ
の画素値とは異なるモノクローム画像データに置換する
置換手段と、を備えたことを特徴とする画像処理装置で
ある。
(6) An image processing apparatus for outputting color image data as monochrome image data according to a sixth aspect of the present invention, wherein: a determination unit for determining a pixel value change amount between pixels of the color image data; A conversion unit that converts the pixel value of the color image data into monochrome image data according to the pixel value of the color image data when the value change amount is within a predetermined range; A replacement unit for replacing with monochrome image data having a different value.

【0025】この画像処理装置の発明では、まず、カラ
ー画像データの画素間の画素値変化量を求めており、色
境界を求めている。そして、この色境界での変化が所定
の範囲内である場合には通常のモノクローム画像データ
への変換を行う。また、色境界において変化が所定の範
囲外である場合には、元のカラー画像データの画素値と
は異なるモノクローム画像データへの置換を行う。
In the invention of the image processing apparatus, first, a pixel value change amount between pixels of color image data is obtained, and a color boundary is obtained. If the change at the color boundary is within a predetermined range, conversion to normal monochrome image data is performed. If the change at the color boundary is outside the predetermined range, replacement with monochrome image data different from the pixel value of the original color image data is performed.

【0026】この結果、画素値変化量が所定の範囲外と
なる変化の小さい色境界では、元のカラー画像データの
画素値とは異なるモノクローム画像データへの置換によ
って、境界線が形成される。
As a result, at a color boundary where the amount of change in pixel value falls outside a predetermined range, a boundary line is formed by replacing the original color image data with monochrome image data different from the pixel value.

【0027】従って、カラー画像データをモノクローム
画像データに変換して出力する際に、明度の近似した図
形や文字等の境界を明確にして、内容を判別しやすいモ
ノクローム画像を得ることが可能になる。
Therefore, when converting color image data into monochrome image data and outputting it, it is possible to clarify the boundaries of figures, characters, and the like having similar lightness and obtain a monochrome image whose contents can be easily discriminated. .

【0028】(7)請求項7記載の発明は、上記(6)
において、前記判定手段が、色差、色相角差、明度差に
より前記画素値変化量を算出することを特徴とする。こ
の画像処理装置の発明では、色差、色相角差、明度差に
注目してカラー画像データの画素間の画素値変化量を求
めることにより、色相角差や色差がありながら明度の近
似した図形や文字等の境界を明確にして、内容を判別し
やすいモノクローム画像を得ることが可能になる。
(7) The invention according to claim 7 is characterized in that:
Wherein the determination means calculates the pixel value change amount based on a color difference, a hue angle difference, and a brightness difference. According to the invention of this image processing apparatus, by calculating the pixel value change amount between the pixels of the color image data by paying attention to the color difference, the hue angle difference, and the lightness difference, it is possible to obtain a graphic having an approximate lightness while having a hue angle difference or a color difference. This makes it possible to clarify the boundaries of characters and the like and obtain a monochrome image whose contents can be easily determined.

【0029】(8)請求項8記載の発明は、上記(6)
において、前記置換手段が、前記画素値変化量が所定の
範囲外の場合に、置換を受ける画素の画素値に基づい
て、該画素値とは異なるモノクローム画像データに置換
することを特徴とする。
(8) The invention according to claim 8 is characterized in that:
Wherein the replacement means replaces, based on the pixel value of a pixel to be replaced, monochrome image data different from the pixel value, when the pixel value change amount is outside a predetermined range.

【0030】この画像処理装置の発明では、元のカラー
画像データの画素値とは異なるモノクローム画像データ
への置換をする際に、置換を受ける画素の画素値に基づ
いて置換を実行している。
According to the invention of the image processing apparatus, when replacing the original color image data with the monochrome image data different from the pixel value, the replacement is executed based on the pixel value of the pixel to be replaced.

【0031】すなわち、置換を受ける画素の画素値を参
照して、置換すべきモノクロームの画素値を決定して置
換を実行していることにより、置換を受ける画素の画素
値とは明確に異なるように置換を実行して、明度の近似
した図形や文字等の境界を明確にして、内容を判別しや
すいモノクローム画像を得ることが可能になる。
That is, the pixel value of the pixel to be replaced is determined with reference to the pixel value of the pixel to be replaced, and the pixel value of the monochrome to be replaced is determined. , The boundaries of figures, characters, and the like with similar lightness are clarified, and it is possible to obtain a monochrome image whose contents can be easily distinguished.

【0032】(9)請求項9記載の発明は、上記(6)
〜(8)において、前記画素値変化量が所定の範囲外で
ある場合に、カラー画像データの画素値に応じたモノク
ローム画像データに変換するか、カラー画像データの画
素値とは異なるモノクローム画像データに置換するか、
いずれかを選択する選択手段を備えたことを特徴とす
る。
(9) The invention according to claim 9 is characterized in that:
In (8), when the pixel value change amount is out of a predetermined range, the pixel value is converted into monochrome image data according to the pixel value of the color image data, or the monochrome image data is different from the pixel value of the color image data. Or replace
It is characterized by comprising a selection means for selecting either one.

【0033】この画像処理装置の発明では、境界におい
て別な画素値に置換されたモノクローム画像データか、
境界において変換されたモノクローム画像データか、の
いずれかを選択して出力している。
According to the invention of this image processing apparatus, whether the monochrome image data is replaced with another pixel value at the boundary,
Either monochrome image data converted at the boundary or selected is output.

【0034】この結果、画素値変化量が所定の範囲外と
なる変化の小さい色境界で、置換による境界線を形成す
るか否かを選択することが可能になる。したがって、明
度の近似した図形や文字等の境界を明確にして内容を判
別しやすいモノクローム画像と、明度の近似した図形や
文字をそのままの明度にしたモノクローム画像と、を得
ることが可能になる。
As a result, it is possible to select whether or not to form a boundary line by replacement at a color boundary with a small change in which the pixel value change amount is outside a predetermined range. Therefore, it is possible to obtain a monochrome image in which the boundaries between figures and characters with similar lightness are clear and the content is easy to determine, and a monochrome image in which figures and characters with similar lightness are kept as they are.

【0035】(10)請求項10記載の発明は、上記
(6)〜(8)において、前記画素値変化量にかかわら
ず、カラー画像データの画素値に応じたモノクローム画
像データに変換した結果を選択して出力する選択手段を
備えたことを特徴とする。
(10) In the invention according to claim 10, in the above (6) to (8), the result of conversion into monochrome image data corresponding to the pixel value of the color image data is obtained irrespective of the pixel value change amount. A selection means for selecting and outputting is provided.

【0036】この画像処理装置の発明では、画素値変化
量にかかわらず、カラー画像データの画素値に基づいて
変換されたモノクローム画像データを選択して出力して
いる。この場合、写真などのカラー画像データを処理す
るのに適した状態になる。
In the invention of this image processing apparatus, the monochrome image data converted based on the pixel values of the color image data is selected and output regardless of the pixel value change amount. In this case, the state becomes suitable for processing color image data such as a photograph.

【0037】(11)請求項11記載の発明は、上記
(6)〜(9)において、前記画素値変化量の所定の範
囲について設定を変更可能に構成したことを特徴とす
る。この画像処理装置の発明では、色境界として処理す
べき画素を判定するための画素値変化量の所定の範囲
(しきい値)を、ユーザの操作により変更することが可
能になっている。
(11) The invention according to claim 11 is characterized in that, in the above (6) to (9), the setting can be changed in a predetermined range of the pixel value change amount. According to the invention of this image processing apparatus, it is possible to change a predetermined range (threshold) of a pixel value change amount for determining a pixel to be processed as a color boundary by a user operation.

【0038】従って、カラー画像データをモノクローム
画像データに変換して出力する際に、ユーザが設定した
条件において明度の近似した図形や文字等の境界を明確
にして、内容を判別しやすいモノクローム画像を得るこ
とが可能になる。
Therefore, when converting color image data into monochrome image data and outputting the monochrome image data, the boundary between figures and characters with similar lightness is clarified under the conditions set by the user, and a monochrome image whose contents are easy to determine is obtained. It is possible to obtain.

【0039】[0039]

【発明の実施の形態】以下、本発明の実施の形態例につ
いて図面を参照しつつ説明する。図1は本発明の実施の
形態例の画像処理方法を実施する画像処理装置の全体構
成の一例を示すブロック図である。また、図3は図1の
主要部を詳細に示すブロック図である。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram illustrating an example of the overall configuration of an image processing apparatus that performs an image processing method according to an embodiment of the present invention. FIG. 3 is a block diagram showing a main part of FIG. 1 in detail.

【0040】以下、添付図面を参照しながら、本発明の
実施例を詳細に説明する。ここで、100はホストコン
ピュータなどの外部の機器の一例であり、カラー画像デ
ータを出力するものである。200は本実施の形態例の
画像形成装置であり、カラー画像データをモノクローム
画像データに変換するものである。300はモノクロー
ム画像データについて画像形成を行って記録紙に印刷出
力するものである。
Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings. Here, reference numeral 100 denotes an example of an external device such as a host computer, which outputs color image data. Reference numeral 200 denotes an image forming apparatus according to the present embodiment, which converts color image data into monochrome image data. Reference numeral 300 denotes a unit for forming an image of monochrome image data and printing out the recording image on recording paper.

【0041】ホストコンピュータ100から画像データ
入力部202を通じて入力される画像データ(RGBカ
ラー画像データ)や制御コマンド等は、プログラムRO
M203に格納されている画像データ処理プログラムに
従って動作するCPU207にて処理され、本画像処理
装置が処理可能な形式の画像データとして画像メモリ2
08に記憶される。
Image data (RGB color image data) and control commands input from the host computer 100 through the image data input unit 202 are stored in the program RO.
The image memory 2 is processed by the CPU 207 that operates according to the image data processing program stored in the M203 and is in a format that can be processed by the image processing apparatus.
08 is stored.

【0042】画像メモリ208に記憶される画像データ
は画像全てのデータであっても画像の一部のデータであ
ってもよい。また、操作パネル206は本画像処理装置
の設定を変更したり、操作パネル206内の表示部(図
示しない)にてオペレーターに本画像処理装置の状態を
通知する。
The image data stored in the image memory 208 may be data of the entire image or data of a part of the image. The operation panel 206 changes the settings of the image processing apparatus, and notifies the operator of the state of the image processing apparatus on a display unit (not shown) in the operation panel 206.

【0043】一般に、カラー画像データは各256階調
(各8ビット)のRGB形式が用いられており、本実施
例もこれにならって説明する。画像メモリ208に一時
的に格納された本画像処理装置の処理可能なRGB形式
の画像データは、画素値の分布変化を画素毎に計算しや
すいよう、領域抽出部204によって画像データの一部
が処理対象の画素(注目画素)を中心とした矩形領域の
形で図2のように切り出される。
Generally, RGB image data of 256 gradations (8 bits each) is used for color image data, and the present embodiment will be described in accordance with this. A part of the image data in the RGB format which is temporarily stored in the image memory 208 and can be processed by the image processing apparatus is processed by the region extracting unit 204 so that the distribution change of the pixel value can be easily calculated for each pixel. It is cut out as shown in FIG. 2 in the form of a rectangular area centering on the pixel to be processed (pixel of interest).

【0044】図3に示す例では、処理対象の画素の周囲
の8画素を含む合計9画素の矩形領域の例を示すが、こ
こに示すものはデータ処理単位の一例を示したものであ
り、必ずしもこの状態と同じでなくともよい。
In the example shown in FIG. 3, an example of a rectangular area of a total of 9 pixels including 8 pixels around the pixel to be processed is shown. However, this example shows an example of a data processing unit. It does not necessarily have to be the same as this state.

【0045】矩形領域内の各画素のRGB画像データ
は、モノクローム画像データ変換部205によって以下
のような処理が施される。なお、モノクローム画像デー
タ変換部205の処理について、図3を用いて詳細に説
明する。
The RGB image data of each pixel in the rectangular area is subjected to the following processing by the monochrome image data conversion unit 205. The processing of the monochrome image data conversion unit 205 will be described in detail with reference to FIG.

【0046】[RGB→XYZ変換]以上の矩形領域内
のRGB画像データは、図3の色変換部401によって
次の(1)式で一旦XYZ表色系に変換される。
[RGB → XYZ Conversion] The RGB image data in the rectangular area described above is once converted to the XYZ color system by the color conversion unit 401 in FIG.

【0047】[0047]

【数1】 (Equation 1)

【0048】ここで、(XR,YR,ZR),(XG,Y
G,ZG),(XB,YB,ZB)はR,G,BのXYZ空
間における座標値である。またγ=2.2(CRTの通
常のガンマ値)である。
Here, (XR, YR, ZR), (XG, Y
(G, ZG) and (XB, YB, ZB) are coordinate values of R, G, and B in the XYZ space. Γ = 2.2 (normal gamma value of CRT).

【0049】[XYZ→L*a*b*変換]そして、XY
Z空間における座標値は、色変換部401において更に
以下の(2)式により知覚的にはほぼ均一なCIE L*
a*b*均等色空間座標に変換され、各画素のL*値、a*
値、b*値を得る。
[XYZ → L * a * b * conversion] and XY
The coordinate values in the Z space are furthermore perceptually substantially uniform in the color conversion unit 401 by the following equation (2).
a * b * is converted to uniform color space coordinates, and the L * value of each pixel, a *
Get the value, b * value.

【0050】[0050]

【数2】 (Equation 2)

【0051】なお、ここでXo、Yo、Zoは、標準光源
でのX、Y、Zである。ただし、Y/Yoが0.008
856以下の場合、L*=903.29(Y/Yo)、ま
た、X/Xo,Y/Yo,Z/Zoのいずれかが0.00
8856以下の場合、それぞれの立方根を「7.787
(A/Ao)+16/116」に置き換える。 このC
IE L*a*b*均等空間においては、等しい大きさの
任意の区間は、知覚される色の等しい大きさの変化に一
致するので画素値変化量を定量的に表すことができる利
点がある。
Here, Xo, Yo and Zo are X, Y and Z in a standard light source. However, Y / Yo is 0.008
In the case of 856 or less, L * = 903.29 (Y / Yo), and any of X / Xo, Y / Yo and Z / Zo is 0.00
In the case of 8856 or less, each cubic root is set to “7.778
(A / Ao) +16/116 ". This C
In the IE L * a * b * uniform space, any section having the same size matches the change in the perceived color of the same size, so that there is an advantage that the pixel value change amount can be quantitatively represented. .

【0052】[色差,色相角差,明度差の計算]ここ
で、任意の画素mと画素nの2画素間の画素値変化量に
ついて、色差(ΔEmn)・色相角差(Δθmn)・明度差
(ΔVmn)は以下のように計算される。
[Calculation of color difference, hue angle difference, and lightness difference] Here, the pixel value change amount between two arbitrary pixels m and n is calculated based on the color difference (ΔEmn), the hue angle difference (Δθmn), and the lightness difference. (ΔVmn) is calculated as follows.

【0053】[0053]

【数3】 (Equation 3)

【0054】ただし、ここで計算される明度差(ΔVmn
・Bk)は2画素間の変換されるグレイスケールでの明度
差である。また、f(x)は画像処理装置のグレイスケ
ール変換関数であり、f(Lx*)は変換されたグレイレ
ベルを表す。
However, the brightness difference calculated here (ΔVmn
Bk) is a lightness difference in a gray scale converted between two pixels. Further, f (x) is a gray scale conversion function of the image processing apparatus, and f (Lx *) represents a converted gray level.

【0055】装置内の実動作はグレイスケールテーブル
参照の形で変換が行われるので明度差(ΔVmn・Bk)は
テーブルのインデックス値の差として計算される。これ
ら画素mと画素nの色差(ΔEmn)・色相格差(Δθm
n)・明度差(ΔVmn)の画素値変化量が
Since the actual operation in the apparatus is converted in the form of reference to a gray scale table, the brightness difference (ΔVmn · Bk) is calculated as the difference between the index values of the table. The color difference (ΔEmn) / hue difference (Δθm) between these pixels m and n
n) The change in pixel value of the brightness difference (ΔVmn)

【0056】[0056]

【数4】 (Equation 4)

【0057】の(4)式を満足する場合、カラー画像デ
ータをそのままモノクローム画像データに変換して出力
した時に、画素m−n間の色差と色相差が少なくないに
も関わらず、画素eとaが互いに類似したグレイスケー
ルで表示されてしまうことを示す。
When the expression (4) is satisfied, when the color image data is converted into monochrome image data as it is and outputted, the pixel e and the pixel e have the same color difference and hue difference between the pixels mn. a is displayed in a gray scale similar to each other.

【0058】なお、この場合には、α1、α2、α3の各
設定値を調整することで類似グレイスケールの判定度合
いを調整することができる。 [画素変化量の計算]図3の矩形領域の中心に位置する
処理対象の画素eは、その左上に位置する画素aとの画
素値変化量が計算される。
In this case, the degree of similarity gray scale determination can be adjusted by adjusting the set values of α1, α2, and α3. [Calculation of Pixel Change Amount] For the pixel e to be processed located at the center of the rectangular area in FIG. 3, the pixel value change amount with respect to the pixel a located at the upper left is calculated.

【0059】まず、画素eのRGB値は図3の色変換部
401によってL*a*b*値に変換され、その値が第1
レジスタ402に格納される。これと共に、色相角計算
部404によって計算された画素eの色相角と、変換用
グレイスケールテーブル405に参照される画素eのイ
ンデックスナンバーとが、第3レジスタ408に格納さ
れる。
First, the RGB values of the pixel e are converted into L * a * b * values by the color conversion unit 401 in FIG.
Stored in register 402. At the same time, the hue angle of the pixel e calculated by the hue angle calculation unit 404 and the index number of the pixel e referred to in the conversion gray scale table 405 are stored in the third register 408.

【0060】次に画素aのRGB値が入力され、色変換
部401でL*a*b*値に変換されてその値が第2レジ
スタ403に格納される。これと共に色相角計算部40
4によって計算された画素aの色相角と、変換用グレイ
スケールテーブル405に参照される画素aのインデッ
クスナンバーとが、第4レジスタ409に格納される。
Next, the RGB values of the pixel a are input, converted into L * a * b * values by the color conversion unit 401, and the values are stored in the second register 403. At the same time, the hue angle calculator 40
The hue angle of the pixel a calculated by 4 and the index number of the pixel a referred to in the conversion gray scale table 405 are stored in the fourth register 409.

【0061】減算器411は第3レジスタ408に格納
されている画素eの色相角とインデックスナンバーか
ら、第4レジスタ409に格納されている画素aの色相
角とインデックスナンバーをそれぞれ減算し、減算結果
を比較器412へ送る。
The subtractor 411 subtracts the hue angle and the index number of the pixel a stored in the fourth register 409 from the hue angle and the index number of the pixel e stored in the third register 408, respectively. To the comparator 412.

【0062】また、第1レジスタ402および第2レジ
スタ403にそれぞれ格納されている画素eのL*a*b
*値と画素aのL*a*b*値は色差計算部407でL*a*
b*空間での距離(ΔE)が求められ、その値が比較器
412へ送られる。
The L * a * b of the pixel e stored in the first register 402 and the second register 403, respectively.
The * value and the L * a * b * value of the pixel a are calculated by the color difference calculator 407 as L * a *.
The distance (ΔE) in the b * space is obtained, and the value is sent to the comparator 412.

【0063】比較器412は入力されたL*a*b*空間
での距離(ΔE)と色相角差(Δθ)とインデックスナ
ンバー差(ΔV)を、条件設定部410に設定されてい
るしきい値(α1、α2、α3)と比較し、比較結果を反
映したフラグをフラグ用レジスタ413に格納する。
The comparator 412 sets the input distance (ΔE), hue angle difference (Δθ) and index number difference (ΔV) in the L * a * b * space in the condition setting section 410. The value (α1, α2, α3) is compared, and a flag reflecting the comparison result is stored in the flag register 413.

【0064】なお、条件設定部410に設定されている
しきい値は、外部から変更することが可能である。例え
ば、操作パネル206からユーザによる設定変更指示が
あると、条件設定部410が保持しているしきい値デー
タを、CPU207が新たなしきい値データに設定す
る。
The threshold value set in condition setting section 410 can be changed externally. For example, when there is a setting change instruction from the operation panel 206 by the user, the CPU 207 sets the threshold data held by the condition setting unit 410 as new threshold data.

【0065】比較器412での比較は画素a−e間の画
素値変化量が上記(4)式を満たすかどうかの判定であ
り、この場合、上記(4)式は以下の(5)式となる。
The comparison by the comparator 412 is for judging whether or not the pixel value change amount between the pixels a and e satisfies the above equation (4). In this case, the above equation (4) is replaced by the following equation (5) Becomes

【0066】[0066]

【数5】 (Equation 5)

【0067】この(5)式を満たす場合、画素a−e間
の画素値変化量が条件を満足したことを示すフラグaが
立てられ、フラグ用レジスタ413に格納される。続い
て、処理対象の画素eは、その真上に位置する画素bと
の画素値変化量が以下のように計算される。
When the expression (5) is satisfied, a flag a indicating that the amount of change in the pixel value between the pixels a and e satisfies the condition is set and stored in the flag register 413. Subsequently, the pixel e to be processed is calculated as follows in terms of a pixel value change amount with respect to the pixel b located immediately above the pixel e.

【0068】画素bのRGB値が色変換部401に入力
され、変換された画素bのL*a*b*値が第2レジスタ
403に格納される。これと共に色相角計算部404に
よって計算された画素bの色相角と変換用グレイスケー
ルテーブル405に参照される画素bのインデックスナ
ンバーがレジスタ4(409)に格納される。
The RGB values of the pixel b are input to the color conversion unit 401, and the converted L * a * b * values of the pixel b are stored in the second register 403. At the same time, the hue angle of the pixel b calculated by the hue angle calculation unit 404 and the index number of the pixel b referred to in the conversion grayscale table 405 are stored in the register 4 (409).

【0069】第1レジスタ402に格納されている画素
eのL*a*b*値と第3レジスタ408に格納されてい
る画素eの色相角とインデックスナンバーはそのまま残
される。
The L * a * b * value of the pixel e stored in the first register 402 and the hue angle and index number of the pixel e stored in the third register 408 are left as they are.

【0070】減算器411は第3レジスタ408に格納
されている画素eの色相角とインデックスナンバーか
ら、レジスタ4(409)に格納された画素bの色相角
とインデックスナンバーをそれぞれ減算し、減算結果を
比較器412へ送る。
The subtractor 411 subtracts the hue angle and the index number of the pixel b stored in the register 4 (409) from the hue angle and the index number of the pixel e stored in the third register 408, respectively. To the comparator 412.

【0071】また、第1レジスタ402および第2レジ
スタ403にそれぞれ格納されている画素eのL*a*b
*値と画素bのL*a*b*値は、色差計算部407でL*
a*b*空間での距離(ΔE)が求められ、その値が比較
器412へ送られる。
The L * a * b of the pixel e stored in the first register 402 and the second register 403, respectively.
The * value and the L * a * b * value of the pixel b are calculated by the color difference calculation unit 407 using L * a * b *.
The distance (ΔE) in the a * b * space is determined, and the value is sent to the comparator 412.

【0072】比較器412は入力されたL*a*b*空間
での距離(ΔE)と色相角差(Δθ)とインデックスナ
ンバー差(ΔV)を、条件設定部410に設定されてい
るしきい値(α1、α2、α3)と比較する。
The comparator 412 sets the input distance (ΔE), hue angle difference (Δθ) and index number difference (ΔV) in the L * a * b * space in the condition setting section 410. Compare with the values (α1, α2, α3).

【0073】比較器412での比較は画素b−e間の画
素値変化量が上記(4)式を満たすかどうかの判定であ
り、この場合、上記(4)式は以下の(6)式となる。
The comparison by the comparator 412 is for judging whether or not the pixel value change amount between the pixels b and e satisfies the above equation (4). In this case, the above equation (4) is replaced by the following equation (6) Becomes

【0074】[0074]

【数6】 (Equation 6)

【0075】この(6)式を満たす場合、画素b−e間
の画素値変化量が条件を満足したことを示すフラグbが
立てられ、フラグ用レジスタ413に追加格納される。
続いて、処理対象の画素eは、その左に位置する画素d
との画素値変化量が上記と同じように計算され画素d−
e間の画素値変化量が上記(4)式を満たすかどうかが
判定される。この場合、上記(4)式は以下の(7)式
となる。
When the expression (6) is satisfied, a flag b indicating that the pixel value change between the pixels be satisfies the condition is set, and is additionally stored in the flag register 413.
Subsequently, the pixel e to be processed is the pixel d located on the left side.
Is calculated in the same manner as above, and the pixel d−
It is determined whether or not the pixel value change amount between e satisfies the above equation (4). In this case, the above equation (4) becomes the following equation (7).

【0076】[0076]

【数7】 (Equation 7)

【0077】この(7)式を満たす場合、画素d−e間
の画素値変化量が条件を満足したことを示すフラグdが
立てられ、フラグ用レジスタ413に追加格納される。
フラグa・b・dの内、1つでもフラグがセットされて
いれば画素eの色差変化フラグHeがセットされる。
When the equation (7) is satisfied, a flag d indicating that the amount of change in pixel value between the pixels d and e satisfies the condition is set, and is additionally stored in the flag register 413.
If at least one of the flags a, b, and d is set, the color difference change flag He of the pixel e is set.

【0078】このような画素eに対する演算と同様の演
算が、縦横各3画素の矩形領域内の画素f・h・iにつ
いても行われる。画素eはその左上・真上・左に位置す
る画素a・b・dとの画素値変化量を求めることにより
色差変化フラグHを得たが、画素fはその左上・真上・
左に位置する画素b,c,eとの画素値変化量を求める
ことにより色差変化フラグHfを得る。
The same operation as that for the pixel e is also performed for the pixels f.hi.i in the rectangular area of three pixels each in the vertical and horizontal directions. The pixel e obtains the color difference change flag H by obtaining the pixel value change amount with the pixels a, b, and d located on the upper left, right above, and left, while the pixel f obtains the color difference change flag H.
The color difference change flag Hf is obtained by obtaining the amount of change in the pixel value between the pixels b, c, and e located on the left.

【0079】同様にして、画素hはその左上・真上・左
に位置する画素d,e,gとの画素値変化量を求めるこ
とにより色差変化フラグHhを得る。また、画素iはそ
の左上・真上・左に位置する画素e,f,hとの画素値
変化量を求めることにより色差変化フラグHiを得る。
このようにして、フラグ用レジスタ413に処理対象の
画素eとその右・下・右下の画素f・h・iの計4画素
の色相変化フラグHe・Hf・Hh・Hiの4フラグが格納
される。
Similarly, the pixel h obtains the color difference change flag Hh by calculating the pixel value change amount with the pixels d, e, g located at the upper left, right above, and left. The pixel i obtains the color difference change flag Hi by calculating the pixel value change amount with the pixels e, f, and h located at the upper left, right above, and left.
In this way, the flag register 413 stores the hue change flags He, Hf, Hh, and Hi of the four pixels, that is, the pixel e to be processed and the right, bottom, and bottom right pixels f, h, and i. Is done.

【0080】[判定・変換・置換]この4つの色相変化
フラグの状態によって、セレクタ414はカラー画像デ
ータをグレイスケール変換するテーブルとして、通常の
グレイスケールに変換する変換用グレイスケールテーブ
ル405を用いるか、境界線を生成するために置換を行
う置換用グレイスケールテーブル406を用いるかを切
り換える。
[Determination / Conversion / Replacement] Depending on the states of these four hue change flags, the selector 414 determines whether to use the conversion grayscale table 405 for converting the color image data into the normal grayscale as the grayscale conversion table. Is switched to use the replacement grayscale table 406 for performing replacement to generate a boundary line.

【0081】He・Hf・Hh・Hiの4フラグの内の1〜
3フラグがセットされた場合、セレクタ414は置換用
グレイスケールテーブル406を選択する。この場合、
モノクローム画像データ変換部205は、画素eの画素
値を本来変換されるはずのグレイスケールでなく境界用
グレイスケールに変換(置換)してフレームメモリ20
9にライトする。
One of the four flags He, Hf, Hh, Hi
When the 3 flag is set, the selector 414 selects the replacement grayscale table 406. in this case,
The monochrome image data conversion unit 205 converts (replaces) the pixel value of the pixel e into the gray scale for the boundary instead of the gray scale that should be originally converted, and converts the pixel value into the frame memory 20.
Write 9

【0082】一方、He・Hf・Hh・Hiの4フラグの
内、0フラグまたは4フラグがセットされた場合、セレ
クタ414は変換用グレイスケールテーブル405を選
択する。この場合、画素eの画素値は通常のグレイスケ
ールで変換されてフレームメモリ209にライトされ
る。
On the other hand, when the 0 flag or the 4 flags among the 4 flags of He, Hf, Hh, Hi are set, the selector 414 selects the conversion gray scale table 405. In this case, the pixel value of the pixel e is converted into a normal gray scale and written to the frame memory 209.

【0083】0フラグまたは4フラグがセットされた場
合に境界用グレイスケールでなく通常のグレイスケール
を用いるのは、0フラグがセットされた場合は注目画素
eの周辺で色相変化があまり無く、境界を明確にする必
要がないためである。
When the 0 flag or 4 flag is set, the normal gray scale is used instead of the boundary gray scale. When the 0 flag is set, there is not much change in hue around the target pixel e, and the boundary gray scale is not used. This is because it is not necessary to clarify.

【0084】4フラグがセットされた場合は注目画素e
の周辺で色相変化が比較的激しいことを意味し、写真画
等のイメージデータであることが推察されるため、通常
のグレイスケールを用いる。
When the 4 flag is set, the target pixel e
Means that the hue change is relatively large around the image, and it is presumed that the data is image data such as a photographic image. Therefore, a normal gray scale is used.

【0085】置換用グレイスケールテーブル406は複
数の濃度レベルを有し、画素eの画素値に応じてどの濃
度レベルのグレイスケールを使用するかが決定される。
この場合の置換用グレイスケールテーブル406の濃度
レベルは、単に濃・中・薄等の大まかな区分けで充分で
ある。例えば、画素eの画素値が比較的低い場合は中濃
度レベル、画素値が中程度の場合は濃または薄濃度レベ
ル、画素値が比較的高い場合は薄濃度レベルというよう
に、カラー画像データをモノクローム変換しても色差変
化の境界がわかる程度でよい。
The replacement gray scale table 406 has a plurality of density levels, and it is determined which gray level to use in accordance with the pixel value of the pixel e.
In this case, the density level of the gray scale table for replacement 406 simply suffices if it is roughly classified into dark, medium, and light. For example, when the pixel value of the pixel e is relatively low, the color image data is expressed as a medium density level, when the pixel value is medium, a dark or light density level, and when the pixel value is relatively high, a light density level. Even if the monochrome conversion is performed, it is sufficient that the boundary of the color difference change can be recognized.

【0086】このような画素eに対する一連の処理を終
了すると、領域抽出部204は別の画素を中心とした新
たな縦横各3画素の矩形領域を画像メモリ208から切
り出し、画素eに対する一連の処理と同様の演算を行
う。
When the series of processing for the pixel e is completed, the area extracting unit 204 cuts out a new rectangular area of three pixels each in the vertical and horizontal directions centering on another pixel from the image memory 208, and performs a series of processing for the pixel e. The same operation as is performed.

【0087】以上のような演算により、図4(a)のよ
うなカラー画像は、図4(b)のような境界が不明瞭な
モノクローム画像ではなく、図4(c)のように境界部
分を別な濃度に置換した明瞭なモノクローム画像が得ら
れる。
By the above operation, the color image as shown in FIG. 4A is not a monochrome image with unclear boundaries as shown in FIG. 4B, but the boundary portion as shown in FIG. Is replaced with another density to obtain a clear monochrome image.

【0088】なお、いくつかのまとまった領域が重なっ
ているような図形では、境界部分であって奥に存在する
画像側を置換することで奥行感が得られるという利点も
生じる。
In a graphic in which several groups of areas overlap, there is also an advantage that a sense of depth can be obtained by replacing the image part which is a boundary part and exists in the back.

【0089】[画像形成]この演算は画像メモり208
内に記憶されている画像データの全画素について終了す
るまで続けられる。そして、フレームメモリ209に画
像形成装置300が印刷可能なデータの全てまたは一部
が形成されると、CPU207は画像形成装置300に
対し印刷命令を発行し、画像形成装置300は印刷を行
う。
[Image formation] This operation is performed by the image memory 208.
This is continued until all pixels of the image data stored in are completed. When all or part of the data that can be printed by the image forming apparatus 300 is formed in the frame memory 209, the CPU 207 issues a print command to the image forming apparatus 300, and the image forming apparatus 300 performs printing.

【0090】なお、画像形成装置300がラインプリン
タ等であれば、印刷可能なデータの一部が形成された時
点でCPU207は画像形成装置300に対し印刷命令
を発行する。また、画像形成装置300がページプリン
タ等であれば、印刷可能なデータの全てが形成された時
点で、CPU207が画像形成装置300に対し印刷命
令を発行する。
When the image forming apparatus 300 is a line printer or the like, the CPU 207 issues a print command to the image forming apparatus 300 when a part of printable data is formed. If the image forming apparatus 300 is a page printer or the like, the CPU 207 issues a print command to the image forming apparatus 300 when all printable data has been formed.

【0091】[その他の実施の形態例] (1)なお、図3は説明を簡易にするため1画素毎に処
理するような構成となっているが、例えばライン単位や
バンド単位で画素の演算処理を行う等の処理スピードを
考慮した構成にしてもよい。その場合には、それに適合
したハードウェアとソフトウェアを構成する必要があ
る。また、ソフトウェアのみで画像処理を行っても良
い。
[Other Embodiments] (1) Although FIG. 3 has a configuration in which processing is performed for each pixel for the sake of simplicity, pixel operations are performed, for example, in line units or band units. A configuration in which the processing speed such as performing the processing may be considered. In that case, it is necessary to configure hardware and software suitable for it. Further, the image processing may be performed only by software.

【0092】(2)また、上記の例では画像データの画
素値の分布変化から画像データの境界を判定し、必要に
応じて境界上のモノクローム画像データのグレイスケー
ル値を境界が明確になるように置換するために、置換デ
ータを境界用グレイスケールテーブルから採っている
が、処理対象の画素の画素値を加算・減算等の演算して
置換用データを得る形式の置換でも同等の結果が得られ
る。
(2) In the above example, the boundary of the image data is determined from the change in the distribution of the pixel values of the image data, and the gray scale value of the monochrome image data on the boundary is determined as necessary so that the boundary becomes clear. Although the replacement data is taken from the grayscale table for the boundary in order to perform the replacement, the same result can be obtained by the replacement in which the pixel value of the pixel to be processed is calculated by addition or subtraction to obtain the replacement data. Can be

【0093】(4)また、上記の画像データ変換はホス
トコンピュータ等に接続する画像処理装置での例である
が、同様の変換処理の機能をプリンタドライバに持たせ
るようにして、ホストコンピュータ内で同様の画像デー
タ変換処理をおこなってもよい。
(4) The above-described image data conversion is an example of an image processing apparatus connected to a host computer or the like. However, the same conversion processing function is provided to the printer driver so that the image data can be converted in the host computer. Similar image data conversion processing may be performed.

【0094】(5)また、境界用グレイスケールを使用
せず通常のグレイスケール変換のみ行うように、操作パ
ネル206もしくは画像データ入力部202より入力さ
れた制御コマンドにより本画像処理装置を設定しておく
ことが可能である。
(5) The image processing apparatus is set by a control command input from the operation panel 206 or the image data input unit 202 so that only normal gray scale conversion is performed without using the boundary gray scale. It is possible to put.

【0095】この場合、図5に示すように、CPU20
7からのコマンド設定に基づいて、コマンドレジスタ4
15によってセレクタ414を変換用グレイスケールテ
ーブル側に固定すればよい。このように、セレクタ41
4を変換用グレイスケールテーブル405側に固定する
と、従来法でのモノクローム変換の動作のみ行う。この
場合、写真などのカラー画像データを処理するのに適し
た状態になる。
In this case, as shown in FIG.
Command register 4 based on the command setting from
15, the selector 414 may be fixed to the conversion gray scale table. Thus, the selector 41
4 is fixed to the conversion gray scale table 405, only the conventional monochrome conversion operation is performed. In this case, the state becomes suitable for processing color image data such as a photograph.

【0096】また、同様にコマンド設定に基づいてコマ
ンドレジスタ415がセレクタ414の固定状態を解除
することで、所定の変化量の場合に置換用グレイスケー
ルテーブルを用いるようにする。
Similarly, the command register 415 releases the fixed state of the selector 414 based on the command setting, so that the replacement gray scale table is used in the case of a predetermined change amount.

【0097】[0097]

【発明の効果】以上詳細に説明したように、この明細書
に記載の各発明によれば以下のような効果が得られる。
As described in detail above, according to the inventions described in this specification, the following effects can be obtained.

【0098】(1)請求項1記載の画像処理方法の発明
では、まず、カラー画像データの画素間の画素値変化量
を求めており、色境界を求めている。そして、この色境
界での変化が所定の範囲内である場合には通常のモノク
ローム画像データへの変換を行う。また、色境界におい
て変化が所定の範囲外である場合には、元のカラー画像
データの画素値とは異なるモノクローム画像データへの
置換を行う。
(1) In the image processing method according to the first aspect, first, the amount of change in pixel value between pixels of color image data is obtained, and the color boundary is obtained. If the change at the color boundary is within a predetermined range, conversion to normal monochrome image data is performed. If the change at the color boundary is outside the predetermined range, replacement with monochrome image data different from the pixel value of the original color image data is performed.

【0099】この結果、画素値変化量が所定の範囲外と
なる変化の小さい色境界では、元のカラー画像データの
画素値とは異なるモノクローム画像データへの置換によ
って、境界線が形成される。従って、カラー画像データ
をモノクローム画像データに変換して出力する際に、明
度の近似した図形や文字等の境界を明確にして、内容を
判別しやすいモノクローム画像を得ることが可能にな
る。
As a result, at a color boundary where the amount of change in the pixel value falls outside the predetermined range, a boundary line is formed by replacing the original color image data with monochrome image data different from the pixel values. Therefore, when converting color image data into monochrome image data and outputting the monochrome image data, it is possible to clarify the boundaries of figures, characters, and the like having similar lightness and obtain a monochrome image whose contents can be easily discriminated.

【0100】(2)請求項2記載の画像処理方法の発明
では、色差、色相角差、明度差に注目してカラー画像デ
ータの画素間の画素値変化量を求めることにより、色相
角差や色差がありながら明度の近似した図形や文字等の
境界を明確にして、内容を判別しやすいモノクローム画
像を得ることが可能になる。
(2) In the image processing method according to the second aspect, the pixel value variation between the pixels of the color image data is obtained by paying attention to the color difference, the hue angle difference, and the lightness difference. It is possible to clarify the boundaries of figures, characters, and the like having similar lightness while having a color difference, and to obtain a monochrome image whose contents can be easily distinguished.

【0101】(3)請求項3記載の画像処理方法の発明
では、元のカラー画像データの画素値とは異なるモノク
ローム画像データへの置換をする際に、置換を受ける画
素の画素値に基づいて置換を実行している。
(3) In the image processing method according to the third aspect, when replacing with monochrome image data different from the pixel value of the original color image data, based on the pixel value of the pixel to be replaced. Performing a replacement.

【0102】すなわち、置換を受ける画素の画素値を参
照して、置換すべきモノクロームの画素値を決定して置
換を実行していることにより、置換を受ける画素の画素
値とは明確に異なるように置換を実行して、明度の近似
した図形や文字等の境界を明確にして、内容を判別しや
すいモノクローム画像を得ることが可能になる。
That is, since the pixel value of the monochrome to be replaced is determined with reference to the pixel value of the pixel to be replaced and the replacement is performed, the pixel value of the pixel to be replaced is clearly different. , The boundaries of figures, characters, and the like with similar lightness are clarified, and it is possible to obtain a monochrome image whose contents can be easily distinguished.

【0103】(4)請求項4記載の画像処理方法の発明
では、境界において別な画素値に置換されたモノクロー
ム画像データか、境界において変換されたモノクローム
画像データか、のいずれかを選択して出力している。
(4) In the image processing method according to the fourth aspect, either one of the monochrome image data replaced at the boundary with another pixel value and the monochrome image data converted at the boundary is selected. Output.

【0104】この結果、画素値変化量が所定の範囲外と
なる変化の小さい色境界で、置換による境界線を形成す
るか否かを選択することが可能になる。したがって、明
度の近似した図形や文字等の境界を明確にして内容を判
別しやすいモノクローム画像と、明度の近似した図形や
文字をそのままの明度にしたモノクローム画像と、を得
ることが可能になる。
As a result, it is possible to select whether or not to form a boundary line by replacement at a color boundary with a small change in which the pixel value change amount is outside a predetermined range. Therefore, it is possible to obtain a monochrome image in which the boundaries between figures and characters with similar lightness are clear and the content is easy to determine, and a monochrome image in which figures and characters with similar lightness have the same brightness.

【0105】(5)請求項5記載の画像処理方法の発明
では、画素値変化量にかかわらず、カラー画像データの
画素値に基づいて変換されたモノクローム画像データを
選択して出力している。この場合、写真などのカラー画
像データを処理するのに適した状態になる。
(5) In the image processing method according to the fifth aspect, the monochrome image data converted based on the pixel values of the color image data is selected and output regardless of the pixel value change amount. In this case, the state becomes suitable for processing color image data such as a photograph.

【0106】(6)請求項6記載の画像処理装置の発明
では、まず、カラー画像データの画素間の画素値変化量
を求めており、色境界を求めている。そして、この色境
界での変化が所定の範囲内である場合には通常のモノク
ローム画像データへの変換を行う。また、色境界におい
て変化が所定の範囲外である場合には、元のカラー画像
データの画素値とは異なるモノクローム画像データへの
置換を行う。
(6) In the image processing apparatus according to the sixth aspect, first, the amount of change in pixel value between pixels of the color image data is obtained, and the color boundary is obtained. If the change at the color boundary is within a predetermined range, conversion to normal monochrome image data is performed. If the change at the color boundary is outside the predetermined range, replacement with monochrome image data different from the pixel value of the original color image data is performed.

【0107】この結果、画素値変化量が所定の範囲外と
なる変化の小さい色境界では、元のカラー画像データの
画素値とは異なるモノクローム画像データへの置換によ
って、境界線が形成される。従って、カラー画像データ
をモノクローム画像データに変換して出力する際に、明
度の近似した図形や文字等の境界を明確にして、内容を
判別しやすいモノクローム画像を得ることが可能にな
る。
As a result, at a color boundary where the pixel value change amount is outside the predetermined range and the change is small, a boundary line is formed by replacing the original color image data with monochrome image data different from the pixel value. Therefore, when converting color image data into monochrome image data and outputting the monochrome image data, it is possible to clarify the boundaries of figures, characters, and the like having similar lightness and obtain a monochrome image whose contents can be easily discriminated.

【0108】(7)請求項7記載の画像処理装置の発明
では、色差、色相角差、明度差に注目してカラー画像デ
ータの画素間の画素値変化量を求めることにより、色相
角差や色差がありながら明度の近似した図形や文字等の
境界を明確にして、内容を判別しやすいモノクローム画
像を得ることが可能になる。
(7) In the image processing apparatus according to the seventh aspect, the pixel value change amount between pixels of the color image data is obtained by paying attention to the color difference, the hue angle difference, and the lightness difference. It is possible to clarify the boundaries of figures, characters, and the like having similar lightness while having a color difference, and to obtain a monochrome image whose contents can be easily distinguished.

【0109】(8)請求項8記載の画像処理装置の発明
では、元のカラー画像データの画素値とは異なるモノク
ローム画像データへの置換をする際に、置換を受ける画
素の画素値に基づいて置換を実行している。
(8) In the image processing apparatus according to the eighth aspect, when replacing the original color image data with monochrome image data different from the pixel value of the original color image data, based on the pixel value of the pixel to be replaced. Performing a replacement.

【0110】すなわち、置換を受ける画素の画素値を参
照して、置換すべきモノクロームの画素値を決定して置
換を実行していることにより、置換を受ける画素の画素
値とは明確に異なるように置換を実行して、明度の近似
した図形や文字等の境界を明確にして、内容を判別しや
すいモノクローム画像を得ることが可能になる。
That is, since the pixel value of the monochrome to be replaced is determined with reference to the pixel value of the pixel to be replaced and the replacement is performed, the pixel value of the pixel to be replaced is clearly different. , The boundaries of figures, characters, and the like with similar lightness are clarified, and it is possible to obtain a monochrome image whose contents can be easily distinguished.

【0111】(9)請求項9記載の画像処理装置の発明
では、境界において別な画素値に置換されたモノクロー
ム画像データか、境界において変換されたモノクローム
画像データか、のいずれかを選択して出力している。
(9) In the image processing apparatus according to the ninth aspect, either one of monochrome image data replaced at the boundary with another pixel value and monochrome image data converted at the boundary is selected. Output.

【0112】この結果、画素値変化量が所定の範囲外と
なる変化の小さい色境界で、置換による境界線を形成す
るか否かを選択することが可能になる。したがって、明
度の近似した図形や文字等の境界を明確にして内容を判
別しやすいモノクローム画像と、明度の近似した図形や
文字をそのままの明度にしたモノクローム画像と、を得
ることが可能になる。
As a result, it is possible to select whether or not to form a boundary line by replacement at a color boundary with a small change in which the pixel value change amount falls outside a predetermined range. Therefore, it is possible to obtain a monochrome image in which the boundaries between figures and characters with similar lightness are clear and the content is easy to determine, and a monochrome image in which figures and characters with similar lightness have the same brightness.

【0113】(10)請求項10記載の画像処理装置の
発明では、画素値変化量にかかわらず、カラー画像デー
タの画素値に基づいて変換されたモノクローム画像デー
タを選択して出力している。この場合、写真などのカラ
ー画像データを処理するのに適した状態になる。
(10) In the image processing apparatus according to the tenth aspect, irrespective of the pixel value change amount, the monochrome image data converted based on the pixel value of the color image data is selected and output. In this case, the state becomes suitable for processing color image data such as a photograph.

【0114】(11)請求項11記載の画像処理装置の
発明では、色境界として処理すべき画素を判定するため
の画素値変化量の所定の範囲(しきい値)を、ユーザの
操作により変更することが可能になっている。
(11) In the image processing apparatus according to the eleventh aspect, a predetermined range (threshold) of a pixel value change amount for determining a pixel to be processed as a color boundary is changed by a user operation. It is possible to do.

【0115】従って、カラー画像データをモノクローム
画像データに変換して出力する際に、ユーザが設定した
条件において明度の近似した図形や文字等の境界を明確
にして、内容を判別しやすいモノクローム画像を得るこ
とが可能になる。
Therefore, when converting color image data into monochrome image data and outputting the monochrome image data, the boundary between figures and characters with similar lightness is clarified under the conditions set by the user, and the monochrome image whose contents can be easily discriminated is determined. It is possible to obtain.

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

【図1】本発明の一実施の形態例の画像処理装置全体の
回路構成を機能別に示す機能ブロック図である。
FIG. 1 is a functional block diagram showing, by function, a circuit configuration of an entire image processing apparatus according to an embodiment of the present invention;

【図2】本発明の一実施の形態例の処理対象の画素の切
り出しの様子を示す説明図である。
FIG. 2 is an explanatory diagram showing how a pixel to be processed is cut out according to the embodiment of the present invention;

【図3】本発明の一実施の形態例の画像処理装置の主要
部の回路構成を機能別に示す機能ブロック図である。
FIG. 3 is a functional block diagram showing, by function, a circuit configuration of a main part of the image processing apparatus according to the embodiment of the present invention;

【図4】本発明の一実施の形態例の画像処理によって、
カラー画像をモノクローム画像に変換した様子を示す説
明図である。
FIG. 4 illustrates an image processing according to an embodiment of the present invention.
FIG. 4 is an explanatory diagram illustrating a state where a color image is converted into a monochrome image.

【図5】本発明の他の実施の形態例の画像処理装置の主
要部の回路構成を機能別に示す機能ブロック図である。
FIG. 5 is a functional block diagram showing, by function, a circuit configuration of a main part of an image processing apparatus according to another embodiment of the present invention.

【図6】マンセル色相の理論上の色域を示す説明図であ
る。
FIG. 6 is an explanatory diagram showing a theoretical color gamut of Munsell hue.

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

100 ホストコンピュータ 200 画像処理装置 202 画像データ入力部 203 プログラムROM 204 領域抽出部 205 モノクロームデータ変換部 206 操作パネル 207 CPU 208 画像メモリ 209 フレームメモリ 300 画像形成装置 REFERENCE SIGNS LIST 100 host computer 200 image processing device 202 image data input unit 203 program ROM 204 area extraction unit 205 monochrome data conversion unit 206 operation panel 207 CPU 208 image memory 209 frame memory 300 image forming device

Claims (11)

【特許請求の範囲】[Claims] 【請求項1】 カラー画像データをモノクローム画像デ
ータとして出力する画像処理方法であって、 カラー画像データの画素間の画素値変化量を求め、 前記画素値変化量が所定の範囲内である場合にはカラー
画像データの画素値に応じたモノクローム画像データに
変換し、前記画素値変化量が所定の範囲外である場合に
はカラー画像データの画素値とは異なるモノクローム画
像データに置換する、 ことを特徴とする画像処理方法。
1. An image processing method for outputting color image data as monochrome image data, wherein a pixel value change amount between pixels of the color image data is obtained, and the pixel value change amount is within a predetermined range. Is converted into monochrome image data according to the pixel value of the color image data, and when the pixel value change amount is outside a predetermined range, the pixel value is replaced with monochrome image data different from the pixel value of the color image data. Characteristic image processing method.
【請求項2】 前記画素値変化量は、色差、色相角差、
明度差により算出することを特徴とする請求項1記載の
画像処理方法。
2. The method according to claim 1, wherein the pixel value change amount is a color difference, a hue angle difference,
2. The image processing method according to claim 1, wherein the calculation is performed based on a brightness difference.
【請求項3】 前記画素値変化量が所定の範囲外の場合
に、置換を受ける画素の画素値に基づいて、該画素値と
は異なるモノクローム画像データに置換することを特徴
とする請求項1記載の画像処理方法。
3. The method according to claim 1, wherein when the pixel value change amount is outside a predetermined range, the pixel value is replaced with monochrome image data different from the pixel value based on the pixel value of the pixel to be replaced. The image processing method described in the above.
【請求項4】 前記画素値変化量が所定の範囲外である
場合に、カラー画像データの画素値に応じたモノクロー
ム画像データに変換するか、カラー画像データの画素値
とは異なるモノクローム画像データに置換するか、いず
れかを選択可能にしたことを特徴とする請求項1乃至請
求項3のいずれかに記載の画像処理方法。
4. When the pixel value change amount is out of a predetermined range, the pixel value is converted into monochrome image data according to the pixel value of the color image data, or is converted into monochrome image data different from the pixel value of the color image data. 4. The image processing method according to claim 1, wherein replacement or one of the replacement is selectable.
【請求項5】 カラー画像データの画素間の画素値変化
量にかかわらず、カラー画像データの画素値に応じたモ
ノクローム画像データに変換した結果を選択して出力す
ることを特徴とする請求項1乃至請求項3のいずれかに
記載の画像処理方法。
5. The method according to claim 1, wherein a result of conversion into monochrome image data corresponding to the pixel value of the color image data is selected and output irrespective of a pixel value change amount between pixels of the color image data. The image processing method according to claim 3.
【請求項6】 カラー画像データをモノクローム画像デ
ータとして出力する画像処理装置であって、 カラー画像データの画素間の画素値変化量を求める判定
手段と、 前記画素値変化量が所定の範囲内である場合にカラー画
像データの画素値に応じたモノクローム画像データに変
換する変換手段と、 前記画素値変化量が所定の範囲外である場合にカラー画
像データの画素値とは異なるモノクローム画像データに
置換する置換手段と、 を備えたことを特徴とする画像処理装置。
6. An image processing apparatus for outputting color image data as monochrome image data, comprising: a determination unit for determining a pixel value change amount between pixels of the color image data, wherein the pixel value change amount is within a predetermined range. A conversion unit that converts the pixel value of the color image data into monochrome image data according to the pixel value of the color image data in a case where the pixel value change amount is out of a predetermined range; An image processing apparatus comprising:
【請求項7】 前記判定手段は、色差、色相角差、明度
差により前記画素値変化量を算出することを特徴とする
請求項6記載の画像処理装置。
7. The image processing apparatus according to claim 6, wherein the determination unit calculates the pixel value change amount based on a color difference, a hue angle difference, and a brightness difference.
【請求項8】 前記置換手段は、前記画素値変化量が所
定の範囲外の場合に、置換を受ける画素の画素値に基づ
いて、該画素値とは異なるモノクローム画像データに置
換することを特徴とする請求項6記載の画像処理装置。
8. The method according to claim 1, wherein when the pixel value change amount is out of a predetermined range, the replacement unit replaces the image data with monochrome image data different from the pixel value based on a pixel value of a pixel to be replaced. The image processing apparatus according to claim 6, wherein
【請求項9】 前記画素値変化量が所定の範囲外である
場合に、カラー画像データの画素値に応じたモノクロー
ム画像データに変換するか、カラー画像データの画素値
とは異なるモノクローム画像データに置換するか、いず
れかを選択する選択手段を備えたことを特徴とする請求
項6乃至請求項8のいずれかに記載の画像処理装置。
9. When the pixel value change amount is out of a predetermined range, the pixel value is converted into monochrome image data according to the pixel value of the color image data, or is converted into monochrome image data different from the pixel value of the color image data. 9. The image processing apparatus according to claim 6, further comprising a selection unit for performing replacement or selecting one of the replacement.
【請求項10】 前記画素値変化量にかかわらず、カラ
ー画像データの画素値に応じたモノクローム画像データ
に変換した結果を選択して出力する選択手段を備えたこ
とを特徴とする請求項6乃至請求項8のいずれかに記載
の画像処理装置。
10. A system according to claim 6, further comprising a selection unit that selects and outputs a result of conversion into monochrome image data according to the pixel value of the color image data, regardless of the pixel value change amount. An image processing apparatus according to claim 8.
【請求項11】 前記画素値変化量の所定の範囲につい
て設定を変更することが可能に構成したことを特徴とす
る請求項6乃至請求項9のいずれかに記載の画像形成装
置。
11. The image forming apparatus according to claim 6, wherein a setting can be changed in a predetermined range of the pixel value change amount.
JP9248486A 1997-09-12 1997-09-12 Image processing method and image processor Pending JPH1188712A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9248486A JPH1188712A (en) 1997-09-12 1997-09-12 Image processing method and image processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9248486A JPH1188712A (en) 1997-09-12 1997-09-12 Image processing method and image processor

Publications (1)

Publication Number Publication Date
JPH1188712A true JPH1188712A (en) 1999-03-30

Family

ID=17178886

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9248486A Pending JPH1188712A (en) 1997-09-12 1997-09-12 Image processing method and image processor

Country Status (1)

Country Link
JP (1) JPH1188712A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1137257A2 (en) * 2000-03-23 2001-09-26 Riso Kagaku Corporation Method of and apparatus for image processing
JP2006350413A (en) * 2005-06-13 2006-12-28 Fuji Xerox Co Ltd Image processor, edge detecting device, image processing method, edge detecting method, and its program
JP2007011735A (en) * 2005-06-30 2007-01-18 Canon Marketing Japan Inc Information processor, printing control method, program and recording medium
US7706033B2 (en) 2006-06-20 2010-04-27 Brother Kogyo Kabushiki Kaisha Image processing device, image processing method, and medium including image processing program
US7924466B2 (en) 2006-06-20 2011-04-12 Brother Kogyo Kabushiki Kaisha Image processing device, and medium employed for the same

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1137257A2 (en) * 2000-03-23 2001-09-26 Riso Kagaku Corporation Method of and apparatus for image processing
US7095889B2 (en) 2000-03-23 2006-08-22 Riso Kagaku Corporation Method of and apparatus for image processing
JP2006350413A (en) * 2005-06-13 2006-12-28 Fuji Xerox Co Ltd Image processor, edge detecting device, image processing method, edge detecting method, and its program
JP4730525B2 (en) * 2005-06-13 2011-07-20 富士ゼロックス株式会社 Image processing apparatus and program thereof
JP2007011735A (en) * 2005-06-30 2007-01-18 Canon Marketing Japan Inc Information processor, printing control method, program and recording medium
US7706033B2 (en) 2006-06-20 2010-04-27 Brother Kogyo Kabushiki Kaisha Image processing device, image processing method, and medium including image processing program
US7924466B2 (en) 2006-06-20 2011-04-12 Brother Kogyo Kabushiki Kaisha Image processing device, and medium employed for the same

Similar Documents

Publication Publication Date Title
US7916973B2 (en) Image processing apparatus, an image processing method, and a computer readable medium having recorded thereon a processing program for permitting a computer to perform image processing routines
JP3890211B2 (en) Image processing method, image processing apparatus, program, and storage medium
US7394468B2 (en) Converted digital colour image with improved colour distinction for colour-blinds
US6549654B1 (en) Image processing method and apparatus and storage medium storing processes of executing the method
EP0357385B1 (en) Image processing method and apparatus
US7809187B2 (en) Color processing method and apparatus
JPH0774933A (en) System and method for color conversion
US7015929B2 (en) Color conversion method and image processor
JP2003092690A (en) Image data processing method, apparatus, storage medium and program
JPH1132227A (en) Image-processing method and unit and storage medium
JP2009154365A (en) Image processing apparatus, image processing method, image processing program and recording medium
JP2578170B2 (en) Image display device
US7656414B2 (en) System and method for determination of gray for CIE color conversion using chromaticity
US6426802B1 (en) Complementary halftone screens for highlight printing
JPH1188712A (en) Image processing method and image processor
US20220335662A1 (en) Contrast Ratio Color Picker
JP4467202B2 (en) Color conversion apparatus and color conversion method
JPH07203235A (en) Method and processor for color picture
US20070211266A1 (en) System and method for extracting grayscale data in accordance with a prescribed tolerance function
JP4802981B2 (en) Color conversion table creation program, color conversion table creation device, and color conversion table creation system
EP1453008A1 (en) Cocverted digital colour image with improved colour distinction for colour-blinds
JP2001036756A (en) Method and device for processing image
JP2011223198A (en) Image processing device and image processing program
JP2005057570A (en) Printing controller, color conversion device, printing control method, color conversion method, printing control program, color conversion program; method, device and program for generating color conversion table; and color conversion table and medium recording data of color conversion table
JP3230533B2 (en) Image processing apparatus and method