JP3863966B2 - Image processing apparatus and image processing method - Google Patents
Image processing apparatus and image processing method Download PDFInfo
- Publication number
- JP3863966B2 JP3863966B2 JP12507097A JP12507097A JP3863966B2 JP 3863966 B2 JP3863966 B2 JP 3863966B2 JP 12507097 A JP12507097 A JP 12507097A JP 12507097 A JP12507097 A JP 12507097A JP 3863966 B2 JP3863966 B2 JP 3863966B2
- Authority
- JP
- Japan
- Prior art keywords
- image data
- color
- image
- monochrome
- error distribution
- 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
Links
- 238000003672 processing method Methods 0.000 title claims description 4
- 238000009792 diffusion process Methods 0.000 claims description 31
- 239000003086 colorant Substances 0.000 claims description 12
- 230000002093 peripheral effect Effects 0.000 description 7
- 238000000034 method Methods 0.000 description 6
- 230000006866 deterioration Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000007423 decrease Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
Images
Landscapes
- Image Processing (AREA)
- Facsimile Image Signal Circuits (AREA)
- Color Image Communication Systems (AREA)
Description
【0001】
【発明の属する技術分野】
本発明は、ファクシミリ等に用いられる画像処理装置及び画像処理方法に関する。
【0002】
【従来の技術】
従来この種の装置では、カラー多値画像を記録系において擬似中間調表現する場合、モノクロ多値画像の場合と同様に、2値化時の誤差を周辺画像に拡散処理する誤差拡散処理が一般的に使用されている。誤差拡散処理は、入力画像データと、この入力画像データを2値化した際の出力画像データとの誤差である誤差データを周辺画素の画像データへ拡散することによって、局所領域内で入力画像の濃度の総和を出力画像の濃度の総和に等しくさせる処理である。ここで、擬似中間調表現の表示系においては、表示系の基本色(例えば、シアン(C)、マゼンタ(M)、イエロー(Y)の3色)が可能な限り各々重ならないよう配置するのが一般的である。この配置は、誤差拡散時の誤差の周辺画像データへの拡散の割合(誤差の周辺画像データへの分配率のパターン)を同一画素データを構成するシアン、マゼンタ、イエローに対して各々異なるように処理することによって実現される。
【0003】
この処理は、例えば、誤差拡散の周辺画像データの拡散の割合がA、B,Cの3パターンであるとすると、A、B、C、の順序をランダム化することにより行っている。
【0004】
一方、カラー画像の中にモノクロ画像が含まれることは一般的であり、従来は、このモノクロ画像に対しても誤差拡散のパターンをランダム化していた。
【0005】
【発明が解決しようとする課題】
しかし、上記の従来技術のようにモノクロ画像に対しても誤差拡散のパターンをランダム化すると、表示系において、シアン、マゼンタ、イエロー3色のドットがハイライトになるほど重ならない。すなわち、ダーク部ではシアン、マゼンタ、イエローの密度が高くなり、各々のドットが重なる率は高くなるが、逆に、ハイライト部分ではシアン、マゼンタ、イエローの密度が低くなり、各々のドットが重なる率が低くなるため、モノクロ画像であるのに無彩色とならない画像領域が発生し、画像品質を損なうという問題点がある。
【0006】
本発明は、このような問題点に鑑みてなされたものであり、誤差拡散処理に際し、モノクロ画像で色味が生ずることがなく、画質の劣化を回避することができる画像処理装置及び画像処理方法を提供することを目的とする。
【0007】
【課題を解決するための手段】
上記の目的を達成するために、請求項1記載の発明は、黒を含まない複数の基本色により表示される多値の画像データがカラーであるかモノクロであるかを判定する画像データ判定手段と、この画像データ判定手段により、多値の画像データがカラーと判定された場合には基本色毎に誤差の分配を変え、多値の画像データがモノクロと判定された場合には基本色毎に誤差の分配を変えない誤差分配手段と、多値の画像データをこの誤差分配手段からの誤差の分配による誤差拡散処理により2値の画像データに変換する誤差拡散処理手段と、を具備するものである。
【0008】
このような構成により、2値化時における周辺画素への誤差の分配を、カラー画像の場合は基本色毎に変え、モノクロ画像の場合は基本色毎に変えないようにすることができるため、モノクロ画像においては、各画素を重ね合わせて色味を消滅させることができ、画質の劣化を回避することができる。
【0009】
また、請求項2記載の発明は、請求項1記載の画像処理装置において、多値の画像データがカラーであるかモノクロであるかをユーザーが指示入力する指示入力手段を有し、前記誤差分配手段は、前記指示入力又は画像データ判定手段による判定結果のいずれか一方を択一的に選択して誤差の分配を行うことを特徴とするものである。
【0010】
このような構成により、誤差拡散処理において、多値の画像データがカラー画像であるかモノクロ画像であるかを予めユーザーが指示することができるため、装置内部でこの判定を行う必要が無くなり、処理の流れを単純化でき、誤差拡散処理を速やかに行うことができる。また、画像処理装置にカラーかモノクロかを判定させることもできる。
【0011】
また、請求項3記載の発明は、黒を含まない複数の基本色により表示される多値の画像データがカラーであるかモノクロであるかを判定し、この判定により、多値の画像データがカラーと判定された場合には基本色毎に誤差の分配を変え、多値の画像データがモノクロと判定された場合には基本色毎に誤差の分配を変えないで、多値の画像データをこの誤差の分配による誤差拡散処理により2値の画像データに変換するものである。
【0012】
このような構成により、2値化時における周辺画素への誤差の分配を、カラー画像の場合は基本色毎に変え、モノクロ画像の場合は基本色毎に変えないようにすることができるため、モノクロ画像においては、各画素を重ね合わせて色味を消滅させることができ、画質の劣化を回避することができる。
【0013】
【発明の実施の形態】
以下、本発明の実施の形態について、図を参照して具体的に説明する。
【0014】
(実施の形態1)
図1は、本発明の画像処理装置の実施の形態1のブロック構成図である。
図1において、本発明に係る画像処理装置は、スキャナ等からのカラー多値画像データの入力端子1と、誤差拡散処理の対象画像データがモノクロ画像であるかカラー画像であるかを判定する判定部2と、誤差の周辺画像への分配パターンを決める乱数発生部3と、誤差拡散処理部4と、2値化された画データの出力端子5と、から構成され、画像表示系へ接続されている。
【0015】
以上のように構成された画像処理装置について、その動作を説明する。ここで、入力端子1から入力される画像データは、一画素毎にシアン、マゼンタ、イエローの順で配列されているいわゆる点順次データとする。
【0016】
入力端子1から入力された画データは、判定部2において、カラー画像であるかモノクロ画像であるかが判定される。この判定は、1画素を構成するシアン、マゼンタ、イエローの各画データが全て同一値であればモノクロであり、そうでなければカラー画データと判定する。この判定部2における判定の流れを図2を参照して説明する。
【0017】
図2は、判定部2が対象画像データはカラーであるかモノクロであるかを判定する流れを示すフロー図である。
図示しない動作開始信号により対象画像データがカラー画像であるかモノクロ画像であるかの判定が開始される(ステップ1)。
【0018】
次に、ある一画素を構成する画データについて、N=0とする(ステップ2)。画データのサンプルタイミング信号として画データとともにスキャナ部等からストローブ信号が出力される(ステップ3)。このときのNの値をX(N)としてメモリに格納する(ステップ4)。
【0019】
次に、N=N+1としたときの値が(ステップ5)、N=3であるかどうかを判断し(ステップ6)、N=3でなければステップ3へ戻り、X(N+1)としてメモリに格納する。N=3であればステップ7に進む。このステップ7で、X(0)とX(1)とX(2)の値を比較し、この値すべてが等しいときは、画像データはモノクロと判定する。この場合は、図3におけるフロー図に進む。一方、上記のX(0)とX(1)とX(2)の値が一つでも異なればカラー画像と判定し、この場合は図4におけるフロー図に進む。
【0020】
次に、図3を用いて図1における判定部2の判定の結果がモノクロであった場合の誤差拡散処理について説明する。
【0021】
図3において、まず、対象画データを示すNをN=0として(ステップ8)、シアンの画データを取得する(ステップ9)。次に、N=0であるかどうか判断し(ステップ10)、N=0であれば、1画素の先頭画データであるC画データに対して乱数を発生させる(ステップ11)。
【0022】
このシアン画データに対して発生した乱数は、乱数発生部3によって1画素の間保持される。乱数発生部3で発生する乱数の種類は、誤差の分配パターンの数と同一であり、例えば、誤差の分配パターンが3通りならば、0あるいは1あるいは2をランダムに発生する。
【0023】
上記の乱数により誤差の分配率が確定し(ステップ13)、この確定した誤差の分配率によって誤差拡散処理がなされる(ステップ14)。次に、N=2であるかどうかを判断し(ステップ15)、N=2でなければ未処理の画データが残っているので、このときの値に1を加算してこれを新たなNとする(ステップ16)。その結果、N=1となり、マゼンタの画データを取得する(ステップ9)。ステップ10において、現在のNを判断し、N=1となるので、ステップ12の処理に移行する。また、N=2であれば外部に出力し(ステップ17)、処理が終了する(ステップ18)。
【0024】
次に、図4を用いて図1における判定部2の判定の結果がカラーであった場合の誤差拡散処理について説明する。
図4において、まず、シアンをN=0として(ステップ19)、その画データを取得する(ステップ20)。カラーの場合は、シアン、マゼンタ、イエローの全てに対して乱数の発生を行う(ステップ21)。次に、この乱数は誤差拡散処理部4に出力され、この乱数値に対応した誤差の分配により誤差拡散処理が行われる(ステップ22)。ステップ23からステップ26までは、上述のモノクロの場合と同様であるため、説明を省略する。
【0025】
以上のように、図1における誤差拡散処理部4での誤差の分配パターンは、処理対象画素がカラー画像の場合はシアン、マゼンタ、イエロー各々の処理毎に新たに発生した乱数によりランダム化される。一方、モノクロ画素の場合は1画素の先頭画データであるシアン画データと同一となる。
【0026】
(実施の形態2)
図5は、実施の形態2を示すブロック構成図であり、本発明に係る画像処理装置を含んだ読取り・記録機能を有する装置の一例である。実施の形態2は、画像処理部51と、スキャナ部52と、プリンタ部53と、パネル部54と、主制御部55と、から構成される。上述のように、画像処理部51において、画像データがカラー画像であるかモノクロ画像であるかの判定を行うが、実施の形態2では、誤差拡散処理の対象画像データがモノクロ画像であるかカラー画像であるかをユーザーが択一的に指示するための図示しないスイッチをパネル部54に備えており、この指示の入力を主制御部55が制御する。この制御によって、画像処理部51における判定を省略することができるため、誤差拡散処理を速やかに行うことができる。
【0027】
【発明の効果】
以上の説明から明らかなように、本発明によれば、誤差拡散処理において、周辺画素データへの誤差の分配を、モノクロ画像の場合には、一画素を構成する黒を含まない複数の基本色の各画データに対し同一とし、カラー画像の場合には一画素を構成する黒を含まない複数の基本色の各画データに対しランダムとすることができるため、モノクロ画像においては、各画素を重ね合わせて色味を消滅させることができ、画質の劣化を回避することができる。
【図面の簡単な説明】
【図1】本発明の実施の形態1に係る画像処理装置のブロック構成図
【図2】本発明の色判定処理を示すフロー図
【図3】モノクロ画像の場合の誤差拡散処理を示すフロー図
【図4】カラー画像の場合の誤差拡散処理を示すフロー図
【図5】本発明の実施の形態2に係る画像処理装置を含んだ装置のブロック構成図
【符号の説明】
1 入力端子
2 判定部
3 乱数発生部
4 誤差拡散処理部
5 出力端子[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an image processing apparatus and an image processing method used for a facsimile or the like.
[0002]
[Prior art]
Conventionally, in this type of apparatus, when a color multi-valued image is expressed in a pseudo halftone in a recording system, an error diffusion process for diffusing binarization errors into a peripheral image is generally performed as in the case of a monochrome multi-valued image. Has been used. The error diffusion process is performed by diffusing error data, which is an error between input image data and output image data when the input image data is binarized, into image data of peripheral pixels, so that the input image data in the local region This is a process for making the total density equal to the total density of the output image. Here, in the display system of the pseudo halftone expression, the basic colors of the display system (for example, three colors of cyan (C), magenta (M), and yellow (Y)) are arranged so as not to overlap each other as much as possible. Is common. This arrangement is such that the ratio of error diffusion to surrounding image data during error diffusion (pattern of distribution ratio of errors to surrounding image data) differs for cyan, magenta, and yellow constituting the same pixel data. Realized by processing.
[0003]
For example, this processing is performed by randomizing the order of A, B, and C, assuming that the diffusion ratio of the peripheral image data for error diffusion is three patterns of A, B, and C.
[0004]
On the other hand, it is common that a monochrome image is included in a color image, and conventionally, an error diffusion pattern has been randomized for this monochrome image.
[0005]
[Problems to be solved by the invention]
However, if the error diffusion pattern is randomized for a monochrome image as in the above-described prior art, the dots of cyan, magenta, and yellow in the display system do not overlap so as to be highlighted. That is, the density of cyan, magenta, and yellow increases in the dark portion, and the rate of overlapping of each dot increases, but conversely, the density of cyan, magenta, and yellow decreases in the highlight portion, and each dot overlaps. Since the rate is low, there is a problem that an image region that is a monochrome image but does not become an achromatic color is generated, and the image quality is deteriorated.
[0006]
The present invention has been made in view of such problems, and an image processing apparatus and an image processing method capable of avoiding deterioration in image quality without causing a color tone in a monochrome image during error diffusion processing. The purpose is to provide.
[0007]
[Means for Solving the Problems]
In order to achieve the above object, according to the first aspect of the present invention, there is provided image data determination means for determining whether multivalued image data displayed by a plurality of basic colors not including black is color or monochrome. When the multi-value image data is determined to be color by the image data determination means, the distribution of errors is changed for each basic color , and when the multi-value image data is determined to be monochrome, for each basic color which includes the error distribution means which do not alter the distribution of the error, the error diffusion processing means for converting the multivalued image data into binary image data by error diffusion processing by the distribution of the error from the error distribution means, the It is .
[0008]
For this configuration, the error distribution of the peripheral pixels when the binary, which changed to the basic colors in the case of a color image, it is possible to prevent change in the basic colors in the case of monochrome images, In a monochrome image, each pixel can be overlapped to eliminate the color, and deterioration of image quality can be avoided.
[0009]
According to a second aspect of the present invention, there is provided the image processing apparatus according to the first aspect, further comprising instruction input means for a user to input whether the multi-valued image data is color or monochrome, and the error distribution The means is characterized in that error distribution is performed by selectively selecting either the instruction input or the determination result by the image data determination means .
[0010]
With such a configuration, in the error diffusion process, the user can in advance indicate whether the multi-valued image data is a color image or a monochrome image, so there is no need to make this determination inside the apparatus. Thus, the error diffusion process can be performed quickly. It is also possible to cause the image processing apparatus to determine whether it is color or monochrome.
[0011]
The invention of
[0012]
For this configuration, the error distribution of the peripheral pixels when the binary, which changed to the basic colors in the case of a color image, it is possible to prevent change in the basic colors in the case of monochrome images, In a monochrome image, each pixel can be overlapped to eliminate the color, and deterioration of image quality can be avoided.
[0013]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, embodiments of the present invention will be specifically described with reference to the drawings.
[0014]
(Embodiment 1)
FIG. 1 is a block configuration diagram of
In FIG. 1, the image processing apparatus according to the present invention determines the
[0015]
The operation of the image processing apparatus configured as described above will be described. Here, the image data input from the
[0016]
The
[0017]
FIG. 2 is a flowchart showing a flow in which the
Determination of whether the target image data is a color image or a monochrome image is started by an operation start signal (not shown) (step 1).
[0018]
Next, N = 0 is set for image data constituting one pixel (step 2). A strobe signal is output from the scanner unit together with the image data as a sample timing signal for the image data (step 3). The value of N at this time is stored in the memory as X (N) (step 4).
[0019]
Next, when N = N + 1 (step 5), it is determined whether N = 3 (step 6). If N = 3, the process returns to step 3, and X (N + 1) is stored in the memory. Store. If N = 3, go to
[0020]
Next, an error diffusion process when the determination result of the
[0021]
In FIG. 3, first, N indicating target image data is set to N = 0 (step 8), and cyan image data is acquired (step 9). Next, it is determined whether or not N = 0 (step 10). If N = 0, random numbers are generated for the C image data which is the first image data of one pixel (step 11).
[0022]
The random number generated for the cyan image data is held for one pixel by the
[0023]
The error distribution rate is determined by the random number (step 13), and error diffusion processing is performed by the determined error distribution rate (step 14). Next, it is determined whether or not N = 2 (step 15). If N = 2, unprocessed image data remains. Therefore, 1 is added to the value at this time, and this is replaced with new N. (Step 16). As a result, N = 1 and magenta image data is acquired (step 9). In
[0024]
Next, the error diffusion process when the determination result of the
In FIG. 4, first, cyan is set to N = 0 (step 19), and the image data is acquired (step 20). In the case of color, random numbers are generated for all of cyan, magenta, and yellow (step 21). Next, the random number is output to the error
[0025]
As described above, the error distribution pattern in the error
[0026]
(Embodiment 2)
FIG. 5 is a block diagram showing the second embodiment and is an example of an apparatus having a reading / recording function including the image processing apparatus according to the present invention. The second embodiment includes an image processing unit 51, a
[0027]
【The invention's effect】
As is apparent from the above description, according to the present invention, in the error diffusion processing, the error distribution to the peripheral pixel data is performed in the case of a monochrome image, and a plurality of basic colors that do not include black constituting one pixel. In the case of a color image, each pixel data can be random for each image data of a plurality of basic colors that do not include black. The color can be eliminated by superimposing and deterioration of the image quality can be avoided.
[Brief description of the drawings]
FIG. 1 is a block diagram of an image processing apparatus according to
1
Claims (3)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP12507097A JP3863966B2 (en) | 1997-04-28 | 1997-04-28 | Image processing apparatus and image processing method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP12507097A JP3863966B2 (en) | 1997-04-28 | 1997-04-28 | Image processing apparatus and image processing method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH10304199A JPH10304199A (en) | 1998-11-13 |
| JP3863966B2 true JP3863966B2 (en) | 2006-12-27 |
Family
ID=14901088
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP12507097A Expired - Fee Related JP3863966B2 (en) | 1997-04-28 | 1997-04-28 | Image processing apparatus and image processing method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3863966B2 (en) |
-
1997
- 1997-04-28 JP JP12507097A patent/JP3863966B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH10304199A (en) | 1998-11-13 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3874828B2 (en) | Processing system for processing color documents | |
| JPH07195714A (en) | Image processing method for reducing application range of recording material in printing processing | |
| JPH07221971A (en) | Image processing method and apparatus | |
| JPH0779354A (en) | Picture processor for polychromatic printer | |
| US5649071A (en) | Image processing method to reduce marking material coverage in sequential color printing processes | |
| JPH10191083A (en) | Color image binarization method and storage medium | |
| US5418618A (en) | Tone processing method for forming a halftone image | |
| JP3332435B2 (en) | Image processing apparatus and method | |
| JP3863966B2 (en) | Image processing apparatus and image processing method | |
| JP4034061B2 (en) | Image processing method, image processing apparatus, image forming apparatus, image processing program, and computer-readable recording medium | |
| JP4169054B2 (en) | Image processing apparatus, image processing method, and program | |
| JP4454786B2 (en) | Image processing apparatus and control method thereof | |
| JP3932161B2 (en) | Image processing apparatus and method | |
| JP2004274714A (en) | Image processing system and image processing method | |
| JP3976815B2 (en) | Image processing apparatus and method | |
| JP2749328B2 (en) | Digital color copier | |
| JP3880248B2 (en) | Image processing apparatus, image processing method, and storage medium | |
| JP3834484B2 (en) | Image processing method, image processing apparatus, image forming apparatus, and computer-readable recording medium | |
| JP2002010079A5 (en) | ||
| JP3752906B2 (en) | Color number conversion method and image processing apparatus | |
| JP4027719B2 (en) | Color gradation image gradation reproduction device | |
| JPH10200764A (en) | Picture processor | |
| JP2010004241A (en) | Image processor, image processing program and image processing method | |
| JP4303367B2 (en) | Recording position shift processing method and color recording apparatus | |
| JP3227174B2 (en) | Image processing apparatus and control method for image processing apparatus |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20040405 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20060616 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20060627 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20060825 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20060926 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20061002 |
|
| R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| LAPS | Cancellation because of no payment of annual fees |