JP3015050B2 - Image processing method and apparatus - Google Patents

Image processing method and apparatus

Info

Publication number
JP3015050B2
JP3015050B2 JP1225386A JP22538689A JP3015050B2 JP 3015050 B2 JP3015050 B2 JP 3015050B2 JP 1225386 A JP1225386 A JP 1225386A JP 22538689 A JP22538689 A JP 22538689A JP 3015050 B2 JP3015050 B2 JP 3015050B2
Authority
JP
Japan
Prior art keywords
data
image data
aperture
color image
black component
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP1225386A
Other languages
Japanese (ja)
Other versions
JPH0388578A (en
Inventor
真琴 高岡
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 JP1225386A priority Critical patent/JP3015050B2/en
Publication of JPH0388578A publication Critical patent/JPH0388578A/en
Application granted granted Critical
Publication of JP3015050B2 publication Critical patent/JP3015050B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、画像処理方法及び装置に関し、特にn値画
像データをm値画像データ(n<m)に変換する画像処
理方法及びその装置に関する。
Description: TECHNICAL FIELD The present invention relates to an image processing method and apparatus, and more particularly, to an image processing method and apparatus for converting n-value image data into m-value image data (n <m). .

[従来の技術] 濃度保存されている2値画像データから多値画像デー
タを復元する方法としては注目画素周りにウインド(開
口)を設定し、その開口内の平均値を用いる方法が一般
的である。しかし、この開口の大きさをどのようにする
かが問題となる。これに対して2つの方法が従来提案さ
れている。1つは注目画素を中心として大きさの異なる
複数の開口を用意し、そのうちの選択した開口内の2値
画像データの平均値から多値画像データを推定した後、
再び組織的デイザ法によって前記推定画像データの2値
化を行い、元の2値画像とパターンの一致した開口を採
用するものである。
[Related Art] As a method of restoring multi-valued image data from binary image data whose density is stored, a method of setting a window (opening) around a target pixel and using an average value in the opening is general. is there. However, there is a problem how to make the size of the opening. On the other hand, two methods have been conventionally proposed. One is to prepare a plurality of apertures having different sizes around the pixel of interest, estimate multi-valued image data from the average value of the binary image data in the selected aperture,
The estimated image data is binarized again by the systematic dither method, and an aperture whose pattern matches the pattern of the original binary image is adopted.

もう1つは、同様に開口を設けて多値画像データを推
定した後、与えられた条件式に推定値が満足する開口の
大きさを選択し、それにより、多値画像データを採用す
るものである。
The other is to provide an aperture in the same manner and estimate multi-valued image data, and then select a size of the aperture that satisfies the estimated value in a given conditional expression, thereby adopting the multi-valued image data. It is.

一般に、開口(ウインド)処理を階調画像に施す場
合、その開口が大きい程、階調性にすぐれるが、解像度
の点で劣る。逆に開口が小さい程、解像度ですぐれる
が、階調性で劣る。
Generally, when an aperture (window) process is performed on a gradation image, the larger the aperture, the better the gradation, but the resolution is inferior. Conversely, the smaller the aperture, the better the resolution but the lower the gradation.

その為前記従来例は、画像の中で開口の大きさを自由
に換えられ、画像の濃度変化の急峻(エツジ部)なとこ
ろは開口が小さく、滑らかなところは開口が大きくなる
ようにしたものである。
For this reason, in the conventional example, the size of the opening in the image can be freely changed, and the opening is small when the density change of the image is sharp (edge portion), and the opening is large when the image is smooth. It is.

[発明の解決しようとする課題] しかしながら従来の方法においてはカラー画像に対す
る考慮がなされておらず、n値カラー画像データをm値
カラー画像データ(m>n)に変換するに際しては必ず
しも充分であるとはいえないという問題が生じた。
[Problems to be Solved by the Invention] However, in the conventional method, no consideration is given to a color image, and it is not always sufficient to convert n-value color image data into m-value color image data (m> n). There was a problem that it could not be said.

本発明はかかる問題を解消してn値カラー画像データ
をm値カラー画像データ(m>n)に変換するに際して
良好に変換出来る様にした画像処理方法及び装置を提供
することを目的とする。
SUMMARY OF THE INVENTION It is an object of the present invention to provide an image processing method and apparatus which can solve the above problem and convert satisfactorily when converting n-valued color image data into m-valued color image data (m> n).

[課題を解決するための手段] 上述の目的を達成するために本発明は、注目画素周り
に設定した開口内のn値カラー画像データの分布状況に
応じて、注目画素のn値カラー画像データをm値カラー
画像データ(n<m)に変換する画像処理方法であっ
て、n値カラー画像データから黒色成分を検出し、黒色
成分が検出されなかった場合に比べて黒色成分が検出さ
れた場合は小さなサイズの開口を用いて前記変換を行う
ことを特徴とする。
Means for Solving the Problems In order to achieve the above object, the present invention provides an n-valued color image data of a pixel of interest according to a distribution state of the n-valued color image data within an opening set around the pixel of interest. To m-valued color image data (n <m), wherein a black component is detected from the n-valued color image data, and a black component is detected as compared with a case where no black component is detected. In this case, the conversion is performed using a small-sized aperture.

[実施例] 以下図面を用いて本発明の実施例について説明する。Embodiment An embodiment of the present invention will be described below with reference to the drawings.

本実施例における画像データは色画像データを対象と
しており、例えば色の三原色であるRGBもしくは、その
補色関係にあるCMY画素を用いるが本発明はかかる実施
例に限定されるものではない。
The image data in the present embodiment is intended for color image data. For example, RGB, which is the three primary colors of colors, or CMY pixels having a complementary color relationship therebetween is used, but the present invention is not limited to this embodiment.

以下の本実施例ではかかるRGB、或はYMCの組み合わせ
により、黒成分を形成する。
In the following embodiment, a black component is formed by such a combination of RGB or YMC.

即ちCYAN、MAGENTA、YELLOWの混色は、グレー色を作
り、濃度が高い部分は黒成分を形成する。
That is, the mixed color of CYAN, MAGENTA, and YELLOW produces a gray color, and a portion having a high density forms a black component.

第1図にRGBあるいはCMY8bitデータよりBlack成分を
抽出するブロツク図を示す。図中色修正として示した2
つのブロツクは色修正部(マスキング部)で、配置はど
ちらでもよい。以下の式を示す。
FIG. 1 is a block diagram for extracting a Black component from RGB or CMY 8-bit data. 2 shown as color correction in the figure
One block is a color correction section (masking section), and the arrangement may be either. The following equation is shown.

補色変換 Yellow =255−Blue Magenta=255−Green Cyan =255−Red 但し8bit画像データ0〜255とする。 Complementary color conversion Yellow = 255-Blue Magenta = 255-Green Cyan = 255-Red However, 8-bit image data is 0 to 255.

色修正(マスキング)(1次) Yellow =a11・Yellow+a12・Magenta+a12・Cyan Magenta=a21・Yellow+a22・Magenta+a22・Cyan Cyan =a31・Yellow+a32・Magenta+a33・Cyan 上項にBlack項が入る式がYMCKとして示したブロック
側である。
Color correction (masking) (primary) Yellow = a 11 · Yellow + a 12 · Magenta + a 12 · Cyan Magenta = a 21 · Yellow + a 22 · Magenta + a 22 · Cyan Cyan = a 31 · Yellow + a 32 · Magenta + a Black claim on claim 33 · Cyan Is the block side indicated as YMCK.

またRGBに関しても同様の式である。 The same applies to RGB.

図中Black Generationに示すブロックで、YMCデータ
より以下の式に応じて黒成分を作り出す。
In the block shown as Black Generation in the figure, a black component is created from YMC data according to the following equation.

Black=min(Y,M,C)k UCR(Under Color Removal)で、各色成分より黒成分
を引く。
Black = min (Y, M, C) k UCR (Under Color Removal) subtracts the black component from each color component.

Yellow′ =Yellow−Black Magenta′=Magenta−Black Cyan′ =Cyan−Black 以上の修正により、Black成分を抽出し、2値化部
で、濃度保存型2値化例えば誤差拡散法等を行い、2値
化データYMCKを得る。
Yellow ′ = Yellow−Black Magenta ′ = Magenta−Black Cyan ′ = Cyan−Black With the above correction, the Black component is extracted and the binarization unit performs density preservation type binarization such as error diffusion. Obtain the valued data YMCK.

以上第1図を基に説明してきたように、RGB若しくはY
MC色データよりBlackを含むYMCK2値化データがあるとす
る。
As described above with reference to FIG. 1, RGB or Y
Assume that there is YMCK binarized data including Black from the MC color data.

第2図は本実施例のモデルを示し、第3図はブロツク
図、第4図はフローチヤート、第5図は画像中のエツジ
部を示す。
FIG. 2 shows a model of the present embodiment, FIG. 3 is a block diagram, FIG. 4 is a flowchart, and FIG. 5 shows an edge portion in an image.

本実施例では例えば第2図において、YMCK2値化デー
タのうちKデータのみに着目し、Kデータが1の時、開
口の小さいものを選択し、同一画素中のCMYKそれぞれ、
例えば周辺を含む3×3の開口にて画素中の1を数え
“1"“0"比率を求める。その比率に他の開口と同範囲デ
ータとするため、補正をかける。
In this embodiment, for example, in FIG. 2, only the K data among the YMCK binarized data is focused on, and when the K data is 1, a small aperture is selected, and CMYK in the same pixel is selected.
For example, 1 in a pixel is counted at a 3 × 3 opening including the periphery, and a “1” “0” ratio is obtained. The ratio is corrected so that it is in the same range data as the other apertures.

例えば3×3開口中、1が6画素分あると6/9×255=
170となるデータを得る。ここで本実施例では第2図
中、YMCK2値化データのうち、Kデータが0の時、開口
の大きいものを選択し、同一画素中のCMYKそれぞれ、例
えば周辺を含む7×7の開口中の1を数え、“1"“0"比
率を求める。その比率に先と同様に補正をかける。例え
ば7×7開口中1が30画素分あると となるデータを得る。
For example, if there are 1 pixels for 6 pixels in a 3 × 3 aperture, 6/9 × 255 =
Obtain 170 data. In this embodiment, in FIG. 2, when the K data is 0 among the YMCK binarized data, the data having a large aperture is selected, and the CMYK in the same pixel is, for example, a 7 × 7 aperture including the periphery. Is counted, and the ratio of “1” to “0” is obtained. The ratio is corrected as before. For example, if one of the 7 × 7 apertures has 30 pixels Obtain the data

これにより多値画像データを推定する。 Thereby, multi-valued image data is estimated.

次に第3図を用いて本発明の一実施例のブロツク図に
ついて説明する。
Next, a block diagram of an embodiment of the present invention will be described with reference to FIG.

YMCK2値化データは伝送路を介して入力手段30を通
り、画像メモリ31に一次貯えられる。注目画素データラ
ツチ回路32により、注目する画素のKデータをラツチす
る。もし1がたっていると開口発生回路34より小のもの
を選択し、アドレス発生回路35では画像メモリ中の開口
に合ったサイズに含まれる画素をアクセスし、演算回路
37により前述の様な加算、補正をかけ、YMCK多値データ
を得る。
The YMCK binarized data passes through the input means 30 via the transmission path and is temporarily stored in the image memory 31. The target pixel data latch circuit 32 latches the K data of the target pixel. If 1 is set, a smaller one is selected than the aperture generating circuit 34, and the address generating circuit 35 accesses a pixel included in the image memory in a size corresponding to the aperture, and
The addition and correction as described above are applied by 37 to obtain YMCK multi-value data.

又データラツチ回路32によってラツチされるKデータ
が“0"の時アドレス発生手段35は大きい開口を選択し、
上述の小開口の時と同じような処理を行う。
When the K data latched by the data latch circuit 32 is "0", the address generating means 35 selects a large aperture,
The same processing as that for the small opening is performed.

以上説明した動作を第4図のフローチヤートに示す。 The operation described above is shown in the flowchart of FIG.

ここでは、仮に開口の小さい方を3×3、開口の大き
い方を7×7としたが、その大きさには、特に限定せ
ず、m1×m2、n1×n2でよい。又矩形以外の形状であって
もよい。
Here, it is assumed that the smaller opening is 3 × 3 and the larger opening is 7 × 7, but the size is not particularly limited, and may be m1 × m2 or n1 × n2. The shape may be other than a rectangle.

尚説明は前後したが一般に画像中には黒成分は必ず存
在し、カラープリンターに印字をする時には、黒がその
画像をひきしめる役割を果たす。
Although the description has been made before and after, generally, a black component always exists in an image, and when printing on a color printer, black plays a role of tightening the image.

例えば第5図のような画像においての部分のように
画像中のエツジ部は、黒成分が多く、解像度が高いもの
が要求され、の部分のように平坦部では解像度より階
調性が要求される。
For example, an edge portion in an image such as a portion in an image as shown in FIG. 5 has a high black component and a high resolution is required, and a flat portion such as a portion requires a gradation property rather than the resolution. You.

したがって本実施例に依れば2値画像に所定の開口を
用いて多値画像データを復元する方法、特にカラー画像
データの復元において、黒画素があると開口の大きさを
小さく、逆に黒画素がないと開口の大きさを大きくする
様に構成したことにより、画像の輪郭成分に多く含まれ
る黒の解像度を向上させ更に平坦部では色ムラの発生を
防止し階調性を向上させることが出来る。
Therefore, according to the present embodiment, in a method of restoring multi-valued image data using a predetermined opening in a binary image, particularly in restoring color image data, if there is a black pixel, the size of the opening is reduced, and By increasing the size of the aperture when there are no pixels, the resolution of black, which is often included in the contour components of the image, is improved. Further, the occurrence of color unevenness in flat areas is improved, and the gradation is improved. Can be done.

[他の実施例] 次に本発明の他の実施例について説明する。Another Embodiment Next, another embodiment of the present invention will be described.

先の実施例においては2値化された色画像データとし
てCMYKの場合について説明したがこれに限らずCMYデー
タあるいはRGBデータであってもよい。
In the above-described embodiment, the case where CMYK is used as binarized color image data has been described, but the present invention is not limited to this, and CMY data or RGB data may be used.

CMYデータが与えられる場合には2値化データが“1"
“1"“1"の時は黒成分と見なし、小さい開口を選択すれ
ばよい。以下かかる実施例について説明する。
When CMY data is given, binary data is "1"
When "1" or "1", it is regarded as a black component, and a small aperture may be selected. Hereinafter, such an embodiment will be described.

第6図にCMYデータ入力の場合のブロツク図を示し、
第7図にかかる場合のフローチヤートを示す。
Fig. 6 shows a block diagram for CMY data input.
FIG. 7 shows a flowchart in the case according to FIG.

第6図において、CMY2値化データが入力手段40より画
像メモリに入力され、画素データラツチ回路42により、
注目画素のCMYデータをラツチする。黒成分判別回路49
によってYMCデータが全て“1"の時、開口発生手段44及
び演算手段47へ、小さい開口を選択するように指令信号
を送る。
In FIG. 6, the CMY binarized data is input to the image memory from the input means 40, and the pixel data latch circuit 42
Latch the CMY data of the target pixel. Black component determination circuit 49
When the YMC data are all "1", a command signal is sent to the aperture generating means 44 and the arithmetic means 47 to select a small aperture.

CMYデータのうち1つでも“0"の場合、開口発生手段4
4及び演算手段47へ大きい開口を選択するように指令信
号を送る。
If at least one of the CMY data is "0", the aperture generating means 4
A command signal is sent to 4 and the arithmetic means 47 to select a large aperture.

演算手段47では、開口内の“1"“0"比率により多値画
像データを推定する。
The calculating means 47 estimates multi-valued image data based on the ratio of “1” and “0” in the opening.

以下の動作を第7図に示す。 The following operation is shown in FIG.

その他の構成動作については第3図に示した実施例と
同様であるので説明を省略する。
The other configuration operation is the same as that of the embodiment shown in FIG.

以上説明したように、本実施例に依れば画像の黒成分
を用いて、開口の大きさを選択する手段を設けた、2値
画像データより、多値画像データを推定する方法は、人
間の視覚上目立つ部分のエツジの解像度を高め、その他
の部分は、階調性を重視させる。
As described above, according to the present embodiment, a method for estimating multi-valued image data from binary image data provided with a means for selecting the size of an aperture using a black component of an image is performed by a human. The resolution of the edge in the visually conspicuous portion is increased, and the gradation is emphasized in the other portions.

これにより、復元される多値画像データは点状の色む
らが軽減され、区切りのはっきりした画像を得ることが
できる。
As a result, in the restored multi-valued image data, dot-like color unevenness is reduced, and an image with clear divisions can be obtained.

以上の実施例では入力データを2値データとしたがこ
れに限らず3値、4値の入力であってもよい。又出力デ
ータは入力データよりは多値のデータであればいかなる
場合でも本発明を適用出来る。又入力データが4値の場
合には例えば4値として入力されるYMCデータが全て
“1.1"であれば開口の大きさを大きくすればよい。
In the above embodiment, the input data is binary data. However, the input data is not limited to this, and it may be a ternary or quaternary input. The present invention can be applied to any case as long as the output data is multi-valued data than the input data. When the input data is quaternary, for example, if the YMC data input as quaternary data is all "1.1", the size of the aperture may be increased.

又本実施例においては入力したn値カラーデータを用
いて黒成分を抽出したが、多値データに変換する途中、
或は変換した後のデータから黒成分を抽出する様にして
もよい。
Further, in the present embodiment, the black component is extracted using the input n-valued color data.
Alternatively, a black component may be extracted from the converted data.

又、本実施例では特定色成分として黒成分を用いたが
これに限らず他の成分、例えばYMC或はRGB等の成分であ
ってもよい。
In this embodiment, the black component is used as the specific color component. However, the present invention is not limited to this, and another component such as YMC or RGB may be used.

[発明の効果] 以上説明した様に本発明に依ればn値のカラー画像デ
ータを良好にm値(m>n)に変換することが出来る。
[Effects of the Invention] As described above, according to the present invention, it is possible to satisfactorily convert n-valued color image data into m-valued (m> n).

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

第1図は多値カラーデータを、2値化データに変換する
回路の構成を示すブロツク図、 第2図は、黒データに応じて開口の大きさの選択を行う
状態を示す図、 第3図は、本発明の一実施例のブロツク図、 第4図は、本発明の一実施例の動作を示すフローチヤー
ト、 第5図は画像中のエツヂを示す図、 第6図は本発明の他の実施例のブロツク図、 第7図は、本発明の他の実施例の動作を示すフローチヤ
ートである。 31……画像メモリ 32……データラツチ回路 34……開口発生回路 35……アドレス発生回路
FIG. 1 is a block diagram showing a configuration of a circuit for converting multi-valued color data into binary data, FIG. 2 is a diagram showing a state of selecting an aperture size according to black data, and FIG. Fig. 4 is a block diagram of one embodiment of the present invention, Fig. 4 is a flowchart showing the operation of one embodiment of the present invention, Fig. 5 is a diagram showing edges in an image, Fig. 6 is a diagram of the present invention. FIG. 7 is a block diagram showing another embodiment of the present invention. 31 Image memory 32 Data latch circuit 34 Opening circuit 35 Address generating circuit

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】注目画素周りに設定した開口内のn値カラ
ー画像データの分布状況に応じて、注目画素のn値カラ
ー画像データをm値カラー画像データ(n<m)に変換
する画像処理方法であって、 n値カラー画像データから黒色成分を検出し、 黒色成分が検出されなかった場合に比べて黒色成分が検
出された場合は小さなサイズの開口を用いて前記変換を
行うことを特徴とする画像処理方法。
1. Image processing for converting n-value color image data of a target pixel into m-value color image data (n <m) according to the distribution state of the n-value color image data within an opening set around the target pixel. A method for detecting a black component from n-valued color image data, and performing the conversion using an aperture of a smaller size when a black component is detected as compared with a case where no black component is detected. Image processing method.
【請求項2】注目画素周りに設定した開口内のn値カラ
ー画像データの分布状況に応じて、注目画素のn値カラ
ー画像データをm値カラー画像データ(n<m)に変換
する変換手段と、 n値カラー画像データから黒色成分を検出する検出手段
とを有し、 前記変換手段は、黒色成分が検出されなかった場合に比
べて黒色成分が検出された場合は小さなサイズの開口を
用いて前記変換を行うことを特徴とする画像処理装置。
2. A conversion means for converting n-value color image data of a target pixel into m-value color image data (n <m) according to the distribution state of the n-value color image data within an aperture set around the target pixel. And a detecting means for detecting a black component from the n-valued color image data, wherein the converting means uses an opening having a smaller size when a black component is detected as compared with a case where no black component is detected. An image processing apparatus for performing the conversion.
JP1225386A 1989-08-31 1989-08-31 Image processing method and apparatus Expired - Fee Related JP3015050B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1225386A JP3015050B2 (en) 1989-08-31 1989-08-31 Image processing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1225386A JP3015050B2 (en) 1989-08-31 1989-08-31 Image processing method and apparatus

Publications (2)

Publication Number Publication Date
JPH0388578A JPH0388578A (en) 1991-04-12
JP3015050B2 true JP3015050B2 (en) 2000-02-28

Family

ID=16828546

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1225386A Expired - Fee Related JP3015050B2 (en) 1989-08-31 1989-08-31 Image processing method and apparatus

Country Status (1)

Country Link
JP (1) JP3015050B2 (en)

Also Published As

Publication number Publication date
JPH0388578A (en) 1991-04-12

Similar Documents

Publication Publication Date Title
JPH06501144A (en) How to display multitone images
JP2008227759A (en) Image processing device, image forming device, image processing method, image processing program, and computer readable recording medium
US7224487B2 (en) Ink reduction error diffusion
JP2877356B2 (en) Image data processing method
JP3015050B2 (en) Image processing method and apparatus
JP2001157056A (en) Method and device for producing halftone, and computer- readable recording medium with halftone making program thereon
JPH06205220A (en) Picture processor and printer
JP2621865B2 (en) Image processing device
JP6765103B2 (en) Image processing device, image processing program and image processing method
JP2008306400A (en) Image processing method, image processing device, image forming apparatus, computer program, and record medium
JP3658255B2 (en) Color output method and color output device
JP3728025B2 (en) Image processing method and apparatus
JPH10229501A (en) Image processing device and method
JP3094810B2 (en) Color image processing equipment
JP3015048B2 (en) Image processing method
JP4134441B2 (en) Image processing device
JP2008271131A (en) Method and device for image processing, and image forming apparatus
JP2001352456A (en) Image-processing method and image-processing unit, and image-forming device provided with them
JP3190527B2 (en) Color image processing equipment
JP2821238B2 (en) Multi-valued image estimation method
JP3015049B2 (en) Image data processing method
JP3094809B2 (en) Color image processing equipment
JPS63288566A (en) Image processor
JP3220110B2 (en) Color image processing equipment
JPH0691605B2 (en) Image processing device

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees