JP2002225381A - Image processor and image processing method - Google Patents

Image processor and image processing method

Info

Publication number
JP2002225381A
JP2002225381A JP2001026299A JP2001026299A JP2002225381A JP 2002225381 A JP2002225381 A JP 2002225381A JP 2001026299 A JP2001026299 A JP 2001026299A JP 2001026299 A JP2001026299 A JP 2001026299A JP 2002225381 A JP2002225381 A JP 2002225381A
Authority
JP
Japan
Prior art keywords
image
value
translucent
data
pixel
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
JP2001026299A
Other languages
Japanese (ja)
Inventor
Kanya Ishizaka
敢也 石坂
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP2001026299A priority Critical patent/JP2002225381A/en
Publication of JP2002225381A publication Critical patent/JP2002225381A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To eliminate moire pattern and rough feeling from an output image at the time of semitransparent processing of an object. SOLUTION: The image processor 1 for interpreting a page description language delivered from a host computer H and converting it into print data in print output format comprises a section 12 for making a decision whether the page description language performs semitransparent processing of a foreground image and a background image by logical operation or not, and a semitransparent processing section 16 for calculating the average value of pixels corresponding to the foreground image and background image when a decision is made that semitransparent processing is performed by logical operation to obtain semitransparent image data.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、2つの画像が重な
った場合の半透明処理を行って印刷データを出力する画
像処理装置および画像処理方法に関する。
[0001] 1. Field of the Invention [0002] The present invention relates to an image processing apparatus and an image processing method for performing translucent processing when two images overlap each other and outputting print data.

【0002】[0002]

【従来の技術】Microsoft Office(Microsoft社商標)
などのアプリケーションソフトウェアでは、ドキュメン
ト内のオブジェクトに対して、オブジェクト同士の重な
り部分に半透明効果を指定することが可能である。
[Prior Art] Microsoft Office (a trademark of Microsoft Corporation)
Application software, it is possible to specify a semi-transparent effect on an overlapping portion between objects in an object in a document.

【0003】半透明効果とは、背景オブジェクトと前景
オブジェクトとが50%ずつ表示されるような効果を得
るもので、特にビジネス文書などにおいて、文字部分の
効果を出したりする場合に広く用いられている。
[0003] The translucent effect is used to obtain an effect that 50% of a background object and 50% of a foreground object are displayed. Particularly, it is widely used in a business document or the like to give an effect of a character portion. I have.

【0004】半透明処理は、本来、図6に示すように背
景(Destination)と前景(Pen)と呼ばれる二つのオブ
ジェクトの中間色で定義されるものである。ここで、背
景と前景とは通常R(赤)G(緑)B(青)カラーで各
チャンネル8bit値を有している。
The translucent process is originally defined by an intermediate color between two objects called a background (Destination) and a foreground (Pen) as shown in FIG. Here, the background and the foreground are usually R (red), G (green), and B (blue) colors, and each channel has an 8-bit value.

【0005】例えば、背景値が(R,G,B)=(3
0,160,85)で前景値が(R,G,B)=(12
8,128,64)の場合に、半透明色は各チャンネル
の平均値を求めて(R,G,B)=(79,144,7
5)が得られる。しかしながら、この中間色を求める平
均値演算は論理演算記述を行うことができない。
For example, if the background value is (R, G, B) = (3
0, 160, 85) and the foreground value is (R, G, B) = (12
In the case of (8, 128, 64), the semi-transparent color is obtained by calculating the average value of each channel (R, G, B) = (79, 144, 7).
5) is obtained. However, the average value calculation for obtaining the intermediate color cannot describe the logical operation.

【0006】そこで、従来ではこの平均値演算を用いず
に、図7に示すようなイメージマスクと呼ばれる固定マ
スクパターンを用い、半透明オブジェクトを前景、背
景、イメージマスクに分け、ROP(Raster Operation)
処理に帰結させて処理を行っている。
Therefore, conventionally, this semi-transparent object is divided into a foreground, a background, and an image mask by using a fixed mask pattern called an image mask as shown in FIG.
Processing is performed as a result of the processing.

【0007】ROP処理とは、ROPコード番号によっ
て論理演算方法を選択することができ、8bit値を有
するオブジェクト間の画像重なり部分に指定して、様々
な画像処理を行うことができる論理演算処理手法であ
る。
[0007] ROP processing is a logical operation processing method in which a logical operation method can be selected by an ROP code number, and various image processing can be performed by designating an image overlapping portion between objects having 8-bit values. It is.

【0008】半透明処理においては、イメージマスクの
ドットがOFFの部分に背景値を表示し、ドットがON
の部分に前景値を表示するような論理演算をROPコー
ドによって与える。具体的には、NOTXORPEN、MERGEPE
N、NOTXORPENの3種のROPコードが用いられる。
In the translucent processing, a background value is displayed in a portion where an image mask dot is OFF, and a dot is turned ON.
A logical operation for displaying the foreground value in the portion is given by the ROP code. Specifically, NOTXORPEN, MERGEPE
Three types of ROP codes, N and NOTXORPEN, are used.

【0009】ここで、半透明処理の際のイメージマスク
には通常市松模様と呼ばれる、白(OFF)ドットと黒
(ON)ドットが横方向と縦方向に交互に現れるパター
ンが用いられる。
Here, a pattern called a checkerboard pattern, in which white (OFF) dots and black (ON) dots appear alternately in the horizontal and vertical directions, is usually used as an image mask in the translucent processing.

【0010】このようなROP演算で求めた半透明画像
をCRT上に表示すると、CRTの解像度が充分に高い
ので市松パターンのドット間隔が目に知覚されず、結果
として半透明色が発色されているような効果を得ること
ができる。
When a translucent image obtained by such a ROP operation is displayed on a CRT, the dot spacing of the checkerboard pattern is not perceived by the eye because the resolution of the CRT is sufficiently high. As a result, a translucent color is generated. You can get the effect as if you were.

【0011】また、市松パターンとROP演算処理とで
作成された半透明オブジェクトを含む画像をプリンタに
出力する場合、アプリケーションがWindows GDI(Graph
icalDisplay Interface)を通じて背景、イメージマス
ク、前景とそれぞれのROP演算コードを送信する。
When an image including a translucent object created by the checkerboard pattern and the ROP operation processing is output to a printer, the application uses Windows GDI (Graph
The background, the image mask, the foreground and the respective ROP operation codes are transmitted through the ical display interface.

【0012】プリンタの画像形成装置は、送信されてき
たROPコードに基づいてROP演算処理を行い、描画
メモリに画像を書き込んで行く。しかし、RGB8bi
tまたはCMY8bitのままROP演算を行うために
はROP後の8bit画像を保存しておかなければなら
ず、膨大なメモリが必要となってしまう。
The image forming apparatus of the printer performs ROP calculation processing based on the transmitted ROP code, and writes an image in the drawing memory. However, RGB8bi
In order to perform the ROP operation with the t or CMY 8 bits, an 8-bit image after the ROP must be stored, which requires a huge memory.

【0013】また、プリンタなどの画像形成装置は、通
常CMYKの1bitデータを必要としているため、G
DIから送られてくるRGB8bit値を有する各オブ
ジェクトは、最終的にスクリーン処理されてCMYK1
bit画像データに変換される。従って、描画メモリに
書き込まれる画像はCMYK1bit画像で良い。
An image forming apparatus such as a printer usually requires 1-bit CMYK data.
Each object having an RGB 8-bit value sent from the DI is finally screen-processed and CMYK1
It is converted into bit image data. Therefore, the image written in the drawing memory may be a CMYK 1-bit image.

【0014】この点に鑑みて、例えば特開平11−16
4164号公報などのように、ROP処理自体を1bi
tで行う方法が知られている。この方法を用いると、G
DIから送られてきたオブジェクトは、直ちに1bit
画像に変換され、ROPコードに基づいて1bitにて
ROP演算が行われ保存されるので、8bit画像時に
比べてデータ量が各色1/8となる。
In view of this, for example, Japanese Patent Application Laid-Open No. 11-16 / 1999
ROP processing itself is performed by 1 bi
A method performed at t is known. Using this method, G
The object sent from DI is immediately 1 bit
Since the image is converted into an image, the ROP operation is performed at 1 bit based on the ROP code, and the image is stored, the data amount becomes 1/8 of each color as compared with the 8-bit image.

【0015】しかしながら、本来8bitで定義された
ROP処理を1bitで行うことによって、色ずれやざ
らつきなどの画質劣化を完全に防止することは困難であ
る。従って、ざらつき防止や色一致を正確に行う場合に
は処理速度が低下してもROP処理を8bitにてCP
U側で行うようにし、処理速度を優先させる場合には1
bitに変換してプリンタ側のハード内でROP処理行
うといった方法が取られることもある。
However, it is difficult to completely prevent image quality deterioration such as color shift and roughness by performing ROP processing originally defined by 8 bits with 1 bit. Therefore, in order to prevent roughness and accurately perform color matching, even if the processing speed is reduced, the ROP processing is performed in 8-bit CP.
If the processing is performed on the U side and priority is given to the processing speed, 1
A method of converting the data into bits and performing ROP processing in hardware on the printer side may be adopted.

【0016】[0016]

【発明が解決しようとする課題】上述のようにMicrosof
t Officeなどのアプリケーションでは、半透明部分が現
れると、背景、イメージマスク、前景に分解され、RO
Pコードが付加される。
As described above, Microsof
t In applications such as Office, when translucent parts appear, they are decomposed into background, image mask, and foreground, and RO
A P code is added.

【0017】この演算は上述のとおり、背景を市松模様
などのイメージマスクでマスキングし、透けた部分(イ
メージマスクのドットが乗っていない部分)に背景を描
画し、透けていない部分(イメージマスクのドットが乗
っている部分)に新たに前景を描画するという効果を持
っている。
In this operation, as described above, the background is masked with an image mask such as a checkered pattern, the background is drawn on a transparent portion (a portion where no dot of the image mask is placed), and a non-transparent portion (the image mask of the image mask) is drawn. This has the effect of drawing a new foreground in the area where the dots are on).

【0018】しかしながら、このROP処理において、
イメージマスクと2値化で用いるスクリーンマトリクス
のパターンとが干渉し、みにくいモアレパターンを発生
させるという問題がある。
However, in this ROP processing,
There is a problem that an image mask and a screen matrix pattern used for binarization interfere with each other to generate a moire pattern that is difficult to see.

【0019】例えば、イメージマスクに市松模様を使用
した場合、各スクリーン角度を45度にしないと必ずモ
アレが発生する。また、仮に各スクリーン角度を45度
にして市松模様と同じ線数としても、今度はイメージマ
スクとスクリーンマトリクスとのドットが完全に重なる
か、あるいは完全に重ならないかのどちらか極端の現象
が発生し、ROP演算後の色がまったく変わってしまう
という別の問題も発生する。
For example, when a checkered pattern is used for an image mask, moire always occurs unless each screen angle is 45 degrees. Even if each screen angle is 45 degrees and the number of lines is the same as that of the checkerboard pattern, an extreme phenomenon occurs in which the dots of the image mask and the screen matrix completely overlap or do not overlap completely. However, another problem that the color after the ROP operation is completely changed occurs.

【0020】上述の問題は、ROPを1bitで処理し
た場合に顕著に発生するが、8bitにて処理した場合
においても、既に固体パターンでマスキングされたオブ
ジェクトに対してスクリーンを掛けることになり、同様
のモアレや色ずれが発生する場合がある。
The above problem occurs remarkably when the ROP is processed with 1 bit. However, even when the ROP is processed with 8 bits, an object already masked by the solid pattern is screened. Moire and color misregistration may occur.

【0021】[0021]

【課題を解決するための手段】本発明は、このような課
題を解決するために成されたものである。すなわち、本
発明は、ホストコンピュータから送られるページ記述言
語を解釈し、印刷出力形式の印刷データへ変換する画像
処理装置であり、ページ記述言語が前景画像と背景画像
とを論理演算によって半透明処理するものであるか否か
を判定する判定手段と、判定手段により、ページ記述言
語が論理演算によって半透明処理するものであると判定
された場合、前景画像と背景画像との対応画素の平均値
を計算して半透明画像データとする半透明処理手段とを
備えている。
SUMMARY OF THE INVENTION The present invention has been made to solve such problems. That is, the present invention is an image processing apparatus that interprets a page description language sent from a host computer and converts the page description language into print data in a print output format. Determining means for determining whether or not the page description language is to be subjected to translucent processing by a logical operation, when the determining means determines that the page description language is to be subjected to translucent processing, the average value of the corresponding pixels of the foreground image and the background image And translucent processing means for calculating translucent image data.

【0022】また、本発明は、ホストコンピュータから
送られるページ記述言語を解釈し、印刷出力形式の印刷
データへ変換する画像処理方法であり、ページ記述言語
が前景画像と背景画像とを論理演算によって半透明処理
するものであるか否かを判定する工程と、ページ記述言
語が論理演算によって半透明処理するものであると判定
された場合、前景画像と背景画像との対応画素の平均値
を計算して半透明画像データとする工程とを備える。
According to another aspect of the present invention, there is provided an image processing method for interpreting a page description language sent from a host computer and converting the page description language into print data in a print output format, wherein the page description language performs a logical operation on a foreground image and a background image. A step of determining whether or not to perform translucent processing, and, if it is determined that the page description language is to perform translucent processing by a logical operation, calculating an average value of corresponding pixels of a foreground image and a background image And making the image data translucent image data.

【0023】このような本発明では、ホストコンピュー
タから送られてきたページ記述言語が、前景画像と背景
画像とを論理演算によって半透明処理するものであった
場合、前景画像と背景画像との対応画素の平均値を計算
して半透明画像データを生成しているため、イメージマ
スクを用いた論理演算を行わずに半透明画像データを作
成でき、半透明処理後のざらつきやモアレの発生を抑制
できるようになる。
According to the present invention, when the page description language sent from the host computer performs a translucent process on the foreground image and the background image by a logical operation, the correspondence between the foreground image and the background image is obtained. Since translucent image data is generated by calculating the average value of pixels, translucent image data can be created without performing logical operations using an image mask, and the occurrence of roughness and moiré after translucent processing is suppressed. become able to.

【0024】[0024]

【発明の実施の形態】以下、本発明の実施の形態を図に
基づいて説明する。図1は、本実施形態に係る画像処理
装置を説明するブロック図である。すなわち、本実施形
態の画像処理装置1は、ホストコンピュータHから送ら
れるPDL(ページ記述言語)を解釈し、画像出力部2
で用いる印刷出力形式の印刷データへ変換する機能を有
するもので、PDL解釈部11、判定部12、2値化処
理部13、ROP処理部14、描画メモリ15、半透明
処理部16、多値復元部17、平均値処理部18を備え
ている。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram illustrating an image processing apparatus according to the present embodiment. That is, the image processing apparatus 1 of the present embodiment interprets the PDL (page description language) sent from the host computer H,
A PDL interpretation unit 11, a determination unit 12, a binarization processing unit 13, a ROP processing unit 14, a drawing memory 15, a translucent processing unit 16, a multi-valued A restoring unit 17 and an average processing unit 18 are provided.

【0025】PDL解釈部11は、ホストコンピュータ
Hから送られるPDLを解釈する部分である。このPD
L解釈部11には、画像データがRGB各8bitで表
現されたPDLが入力される。
The PDL interpretation section 11 is a section for interpreting the PDL sent from the host computer H. This PD
The PDL in which the image data is expressed by RGB each having 8 bits is input to the L interpretation unit 11.

【0026】判定部12は、PDL解釈部11で解釈し
たPDLに、半透明処理を指定したROPコード(NOTX
ORPEN、MERGEPEN、NOTXORPENの3種)が含まれているか
否かを判断する。
The determining unit 12 adds, to the PDL interpreted by the PDL interpreting unit 11, a ROP code (NOTX
ORPEN, MERGEPEN, NOTXORPEN) are determined.

【0027】2値化処理部13には、C(シアン)、M
(マゼンタ)、Y(イエロー)、K(ブラック)各8b
itのデータが入力され、所定のスクリーンマトリクス
(閾値マトリクス)を用いた2値化が施される。
C (cyan), M
(Magenta), Y (yellow), K (black) 8b each
It data is input and binarized using a predetermined screen matrix (threshold matrix).

【0028】ROP処理部14には、2値化処理部13
によって2値化処理されたCMYK各1bitのデータ
が入力され、指定されたROP処理(半透明処理を除
く)を施す。ROP処理が施されたCMYK各1bit
のデータは描画メモリ15に格納される。
The ROP processing unit 14 includes a binarization processing unit 13
The CMYK 1-bit data that has been binarized is input, and the specified ROP processing (excluding translucent processing) is performed. 1 bit for each CMYK after ROP processing
Are stored in the drawing memory 15.

【0029】半透明処理部16は、判定部12によって
ROP処理が半透明処理を指定するものであると判定さ
れた場合に、描画メモリ15から2値化された画像デー
タを読み出して多値復元部17で多値データを生成し、
平均値処理部18によって半透明処理に当たる平均値処
理を施す。また、2値化処理部18aによって平均値処
理が施された多値画像データを2値データに変換し、描
画メモリ15へ再度格納する。
When the determining unit 12 determines that the ROP process specifies the translucent process, the translucent processing unit 16 reads the binarized image data from the drawing memory 15 and performs multi-value restoration. The multi-value data is generated by the unit 17,
The average processing unit 18 performs an average processing corresponding to a translucent processing. Further, the multi-valued image data subjected to the average value processing by the binarization processing unit 18a is converted into binary data, and stored in the drawing memory 15 again.

【0030】次に、半透明処理部16の多値復元部17
における多値データ生成および2値化処理部18aによ
る2値化処理について説明する。本実施形態では、2つ
の処理について示す。先ず、第1の方法として、比較的
簡易に多値データを生成する方法を説明する。
Next, the multi-value restoration section 17 of the translucent processing section 16
The multi-value data generation and the binarization processing by the binarization processing unit 18a will be described. In the present embodiment, two processes will be described. First, as a first method, a method of relatively easily generating multi-value data will be described.

【0031】ここでは、PDL解釈部11から入力され
てきた8bitの前景画像における画素値をP8、1b
itのイメージマスクをIM、および既に描画メモリ1
5に蓄積されている背景画像の画素値をD1、2値化の
際に用いられたスクリーンマトリクスの閾値をS8とす
る。
Here, the pixel values in the 8-bit foreground image input from the PDL interpretation unit 11 are P8, 1b
image mask of it and IM
The pixel value of the background image stored in 5 is D1, and the threshold value of the screen matrix used for binarization is S8.

【0032】先ず、背景画像の画素値D1のうち、ドッ
トがONの部分に関して、対応するスクリーンマトリク
スの閾値S8を選択する。背景画像の画素値D1のドッ
トがONであるということは、少なくとも8bit復元
した背景値が閾値S8以上になることを意味している。
そこで、8bit復元近似値をD8として、D8=(2
56+S8)/2を与える。
First, a threshold value S8 of the corresponding screen matrix is selected for a portion where the dot is ON in the pixel value D1 of the background image. That the dot of the pixel value D1 of the background image is ON means that the background value restored by at least 8 bits is equal to or larger than the threshold value S8.
Therefore, assuming that the 8-bit restoration approximate value is D8, D8 = (2
56 + S8) / 2.

【0033】また、背景画像の画素値D1のうち、ドッ
トがOFFの部分に関しては、8bit復元した背景値
が閾値S8未満であることを意味している。従って、8
bit復元近似値をD8としてD8=S8/2を与え
る。これらによって、8bit近似復元値が得られる。
In the pixel value D1 of the background image, the portion where the dot is OFF means that the background value restored by 8 bits is less than the threshold value S8. Therefore, 8
The bit restoration approximate value is set to D8, and D8 = S8 / 2 is given. As a result, an 8-bit approximate restored value is obtained.

【0034】次に、この復元近似値D8と前景画蔵王の
画素値P8との間で平均値V8を取り、2値化値V1を
得る。なお、この8bit復元値は、イメージマスクI
M領域と重なった部分のみに対して計算する。
Next, an average value V8 is obtained between the restoration approximate value D8 and the pixel value P8 of the foreground picture Zao to obtain a binarized value V1. Note that this 8-bit restoration value corresponds to the image mask I
The calculation is performed only for the portion that overlaps the M region.

【0035】まとめると、 ONドット部分:V8=(D8+P8)/2=((25
6+S8)/2+P8)/2 OFFドット部分:V8=(D8+P8)/2=(S8
/2+P8)/2 であり、これを閾値S8と比較して、V8>S8ならば
ドットをON、V8≦S8ならばドットをOFFとす
る。
In summary, the ON dot portion: V8 = (D8 + P8) / 2 = ((25
6 + S8) / 2 + P8) / 2 OFF dot portion: V8 = (D8 + P8) / 2 = (S8
/ 2 + P8) / 2, which is compared with the threshold value S8. If V8> S8, the dot is turned on, and if V8 ≦ S8, the dot is turned off.

【0036】従って、計算を簡略化すると、 ONドット部分:(256+2*P8)/3とS8との
比較 OFFドット部分:2*P8/3とS8との比較 で半透明領域のドットのON、OFFを決定可能とな
る。
Therefore, if the calculation is simplified, ON dot portion: comparison of (256 + 2 * P8) / 3 with S8 OFF dot portion: comparison of 2 * P8 / 3 with S8, the ON of the dot in the translucent area, OFF can be determined.

【0037】このようにして得られた画像を背景画像D
1に再入力することによって、半透明画像を得ることが
可能となる。
The image obtained in this manner is used as a background image D
By re-entering 1, the translucent image can be obtained.

【0038】この第1の方法は、注目画素一点から8b
it復元値を算出でき、また得られる半透明画像にはざ
らつきが発生しにくいという利点がある。
In this first method, 8b from one point of the pixel of interest
It is possible to calculate the it restoration value, and there is an advantage that the resulting translucent image is less likely to be rough.

【0039】次に、第2の方法を説明する。第2の方法
では、注目画素の周囲の画素およびこれらに対応するス
クリーンマトリクスの閾値を利用することに特徴があ
り、また、多値逆変換した画像は8bitにて半透明値
を求めた後に再び2値化されることも考慮されている。
Next, the second method will be described. The second method is characterized in that pixels around the pixel of interest and the threshold values of the screen matrix corresponding to the pixels are used, and the multi-value inversely transformed image is obtained again after obtaining a translucent value with 8 bits. The binarization is also considered.

【0040】以下、図2〜図4を参照しながら具体的な
背景値の8bit変換法を述べる。先ず、背景値の各ド
ットを中心として、それぞれ一定範囲のドットを走査し
てゆく。この際のドット走査範囲の最大値を定めるw
m,hmを与える(図2ステップS101)。
Hereinafter, a specific 8-bit conversion method of the background value will be described with reference to FIGS. First, a certain range of dots is scanned with each dot of the background value as the center. At this time, w that determines the maximum value of the dot scanning range
m and hm are given (step S101 in FIG. 2).

【0041】すなわち、図3に示すように、注目画素
(x,y)を含み、4点(x−wm,y−hm),(x
+wm,y−hm),(x−mw,y+mh),(x+
mw,y+mh)を頂点とする正方形内の全画素を走査
対象とする。
That is, as shown in FIG. 3, four points (x−wm, y−hm), (x
+ Wm, y-hm), (x-mw, y + mh), (x +
mw, y + mh) are all pixels within the square having the vertex as the scanning target.

【0042】8bit値に逆変換する場合、wm,hm
は3から7くらいの値が適当である。この値が大きいほ
ど処理時間が掛かるが、階調再現性は良くなる。そこ
で、4程度の値を取れば充分な場合が多い。
When inversely converted to an 8-bit value, wm, hm
The value of 3 to 7 is appropriate. The larger the value, the longer the processing time, but the better the gradation reproducibility. Therefore, it is often sufficient to take a value of about 4.

【0043】次に、走査初期値をw=h=1に設定し
(図2ステップS102)、背景値の注目画素(x,
y)を選択し(図2ステップS103)、4点(x−
w,y−h),(x+w,y−h),(x−w,y+
h),(x+w,y+h)を頂点とする正方形(この場
合3×3画素)内の全画素を走査して行く。
Next, the initial scanning value is set to w = h = 1 (step S102 in FIG. 2), and the pixel of interest (x,
y) (step S103 in FIG. 2) and four points (x-
w, y-h), (x + w, y-h), (x-w, y +
h), (x + w, y + h), all pixels in a square (3 × 3 pixels in this case) having vertices are scanned.

【0044】その際に、1bit背景値のうち、ONド
ットが乗っている部分に対応するスクリーンマトリクス
の閾値を全て選択し、それらの中で閾値の最大値を求め
maxvとおき、同様にOFFドットが乗っている部分
に対応するスクリーンマトリクスの閾値をすべて選択
し、それらの中で閾値の最小値をminvとおく(図2
ステップS104)。
At this time, among the 1-bit background values, all the threshold values of the screen matrix corresponding to the portion where the ON dots are laid are selected, and the maximum value of the threshold values is determined and set as maxv. 2 are selected, and the minimum value of the thresholds is set to minv (FIG. 2).
Step S104).

【0045】ここで、maxv≦minvの場合には、
注目画素周囲の正方形内の8bit値をすべてmaxv
からminvの間にある同じ値で近似したとしてもスク
リーンマトリクスとの間で矛盾を生じないことになる
(つまり、近似8bit値を再2値化したら再び同じ背
景値が得られる)。
Here, when maxv ≦ minv,
All the 8-bit values in the square around the pixel of interest are maxv
Even if the approximation is made with the same value between to and minv, there will be no inconsistency with the screen matrix (that is, if the approximate 8-bit value is re-binarized, the same background value will be obtained again).

【0046】そこで、この場合には、より広い範囲での
走査を行い、近似の精度を上げることとする。すなわ
ち、wとhに1を加算し、再び4点(x−w,y−
h),(x+w,y−h),(x−w,y+h),(x
+w,y+h)を頂点とする正方形(この場合5×5画
素)内の全画素を走査して同じ演算を行う。この操作を
繰り返し、w=wmかh=hmとなった場合には、ma
xvを注目画素の8bit復元値に採用する(図2ステ
ップS105〜S108)。
Therefore, in this case, scanning in a wider range is performed to improve the approximation accuracy. That is, 1 is added to w and h, and four points (xw, y-
h), (x + w, yh), (xw, y + h), (x
The same operation is performed by scanning all the pixels in a square (5 × 5 pixels in this case) having the vertices of + w, y + h). This operation is repeated, and if w = wm or h = hm, ma
xv is adopted as the 8-bit restoration value of the target pixel (steps S105 to S108 in FIG. 2).

【0047】また、途中でmaxv>minvの関係を
満たした場合、一段階前のw,h値に対して、4点(x
−w,y−h),(x+w,y−h),(x−w,y+
h),(x+w,y+h)を頂点とする正方形内の点灯
画素比率に255を乗じた値と一段階前のmaxv値の
うちの最大値を注目画素の8bit復元値として算出す
る(図2ステップS110〜S112)。
When the relation of maxv> minv is satisfied on the way, four points (x
−w, y−h), (x + w, y−h), (x−w, y +)
h), the maximum value of the value obtained by multiplying the lighting pixel ratio in the square having the vertices of (x + w, y + h) by 255 and the maxv value one step before is calculated as the 8-bit restored value of the pixel of interest (step in FIG. 2). S110 to S112).

【0048】例えば、図4に示した2値背景値および対
応するスクリーンマトリクスの閾値に関しては、注目画
素に対して、まず3×3範囲でONドットに対応する閾
値のうちの最大値maxvとOFFドットに対応する閾
値のうちの最小値minvを求める。
For example, regarding the binary background value and the threshold value of the corresponding screen matrix shown in FIG. 4, the maximum value maxv and the OFF value of the threshold value corresponding to the ON dot in the 3 × 3 range are first set for the target pixel. The minimum value minv of the threshold values corresponding to the dots is obtained.

【0049】この場合はmaxv=48,minv=8
3となり、maxv≦minvであるから、走査範囲を
拡大して、5×5範囲で同様の工程を行い、maxv=
65,minv=77が得られる。注目画素の8bit
値はmaxvからminvの間にあると考えれば、この
工程を範囲を広げながら続けることで8bit値を絞り
込むことが可能となる。
In this case, maxv = 48, minv = 8
3, and since maxv ≦ minv, the scanning range is expanded, and the same process is performed in a 5 × 5 range.
65, minv = 77 are obtained. 8 bits of the pixel of interest
Assuming that the value is between maxv and minv, it is possible to narrow down the 8-bit value by continuing this process while expanding the range.

【0050】次に、7×7範囲で同様の工程を行うと、
maxv=110,minv=77となりmaxv>m
invが成り立つので、一段階前のmaxv値65と、
そのときのドット点灯比率5/25から算出した近似8
bit値5/25*255=51との最大値を近似8b
it値として採用する。この場合は65と51であるか
ら近似値として65を採用する。
Next, when a similar process is performed in a 7 × 7 range,
maxv = 110, minv = 77, and maxv> m
Since inv holds, the maxv value 65 one step before, and
Approximate 8 calculated from the dot lighting ratio 5/25 at that time
Approximate the maximum value with bit value 5/25 * 255 = 51 8b
Adopted as the it value. In this case, since 65 and 51 are used, 65 is adopted as an approximate value.

【0051】以上の工程を、注目画素を移動しながら繰
り返し、背景の8bit復元値が得られれば、後は平均
値算出工程と2値化処理工程を経て、半透明色を得るこ
とができる。このようにして8bit復元した画像は、
閾値関係が正しい限り範囲を増大させながら閾値近似を
させてゆく点で、階調再現性に優れている。
The above steps are repeated while moving the pixel of interest, and if an 8-bit restored value of the background is obtained, a translucent color can be obtained through the average value calculation step and the binarization processing step. The 8 bit restored image in this way is
It is excellent in gradation reproducibility in that approximation of the threshold is performed while increasing the range as long as the threshold relation is correct.

【0052】実際に、グラデーション部分などにおいて
は、最大走査範囲分の階調を確保することができる。つ
まり、wm=hm=4とすれば、(4*2+1)*(4
*2+1)=81階調の確保が可能である。
Actually, in a gradation portion or the like, the gradation for the maximum scanning range can be ensured. That is, if wm = hm = 4, (4 * 2 + 1) * (4
* 2 + 1) = 81 gradations can be secured.

【0053】また、閾値関係が成立しなくなった場合に
は、直ちに周辺画素の点灯比率から注目画素の閾値を算
出するので、元画像のシャープな部分の再現性に優れて
いる。
Further, when the threshold value relationship is not satisfied, the threshold value of the target pixel is immediately calculated from the lighting ratio of the peripheral pixels, so that the reproducibility of the sharp portion of the original image is excellent.

【0054】また、このように多値復元した画像に対し
て半透明処理を施した場合に、同じスクリーンで再び2
値画像に変換されるので、ざらつきが起こることもな
く、また実際の分解能低下もほとんど目立たない。
When the multi-value restored image is subjected to the translucency processing, the same screen is used for the second screen again.
Since the image is converted into a value image, roughness does not occur, and actual reduction in resolution is hardly noticeable.

【0055】また、この第2の方法を用いると、網点だ
けでなく、ブルーノイズマスクなどを2値化スクリーン
に用いても、半透明処理での従来のざらつきを軽減させ
ることができる。
Further, by using the second method, it is possible to reduce the conventional roughness in the translucent processing even if a blue noise mask or the like is used for the binarized screen in addition to the halftone dots.

【0056】なお、上記8bit値算出工程は、ここに
述べた形態の限りではなく、走査範囲の増分をより小さ
く取って行くことも可能である。また、正方形以外の形
態を取ってもかまわない。また、この第2の方法と前記
第1の方法とを組み合わせて使用することも可能であ
る。
Note that the 8-bit value calculation step is not limited to the above-described embodiment, and it is also possible to reduce the increment of the scanning range. Also, a form other than a square may be used. It is also possible to use the second method in combination with the first method.

【0057】例えば、前景値が濃い色の場合には背景色
から受ける影響が減るので第1の方法で多値復元を行う
といったような使い方も可能である。あるいは、前景色
が濃い色の場合には、wm,hmの値を小さ目に設定
し、多値復元を高速化することも可能である。
For example, when the foreground value is a dark color, the influence of the background color is reduced, so that it is possible to use the method of performing multi-value restoration by the first method. Alternatively, when the foreground color is dark, the values of wm and hm can be set to a small value to speed up multi-value restoration.

【0058】以上の説明はROP処理を1ビットにて行
う場合について行ったが、ROP処理を8ビットで行う
場合は、図5に示すような構成となる。すなわち、この
構成は、PDL解釈部11、判定部12、ROP処理部
13、描画メモリ15、色変換部19、2値化処理部1
3の順でPDLを処理していく。
The above description has been made for the case where the ROP processing is performed with one bit. However, when the ROP processing is performed with eight bits, the configuration is as shown in FIG. That is, this configuration includes a PDL interpretation unit 11, a determination unit 12, a ROP processing unit 13, a drawing memory 15, a color conversion unit 19, and a binarization processing unit 1.
PDL is processed in the order of 3.

【0059】半透明処理部16は、判定部12において
PDLに半透明処理を指示するROPコード(NOTXORPE
N、MERGEPEN、NOTXORPEN)が含まれている場合、ROP
処理部13に送られたRGB8bitの前景を読み出
し、既に描画メモリ15に格納されたRGB8bitの
背景を読み出して平均値をとる処理を行う(平均値処理
18)。その後、得られた画像を描画メモリ15に入力
する(PDL解釈部11より入力されたイメージマスク
は使用しない)。この処理を行うことによって、半透明
画像は正確に再現できるようになる。
The translucent processing section 16 determines the ROP code (NOTXORPE
N, MERGEPEN, NOTXORPEN), ROP
The processing of reading the RGB 8-bit foreground sent to the processing unit 13 and reading the RGB 8-bit background already stored in the drawing memory 15 and taking an average value is performed (average value processing 18). Thereafter, the obtained image is input to the drawing memory 15 (the image mask input from the PDL interpretation unit 11 is not used). By performing this process, the translucent image can be accurately reproduced.

【0060】[0060]

【発明の効果】以上説明したように、本発明によれば次
のような効果がある。すなわち、半透明オブジェクトを
ROP処理で描画する場合にそれを検知して、背景と前
景の平均値を求めることで半透明色を作成することか
ら、イメージマスクとスクリーンマトリクスのパターン
が干渉して発生する、みにくいモアレパターンやざらつ
きを抑制することが可能となる。これにより、任意のス
クリーンマトリクスを用いることができ、イメージマス
クとの干渉を考慮してスクリーンマトリクスを作成する
必要がなく、通常画質優先でスクリーン設計を行うこと
が可能となる。
As described above, the present invention has the following effects. In other words, when a translucent object is drawn by the ROP process, it is detected and the translucent color is created by calculating the average value of the background and the foreground. This makes it possible to suppress hard-to-see moiré patterns and roughness. As a result, an arbitrary screen matrix can be used, and it is not necessary to create a screen matrix in consideration of interference with an image mask, and it is possible to design a screen with normal image quality giving priority.

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

【図1】 本実施形態を説明するブロック図である。FIG. 1 is a block diagram illustrating an embodiment.

【図2】 本実施形態の流れを説明するフローチャート
である。
FIG. 2 is a flowchart illustrating the flow of the present embodiment.

【図3】 注目画素を含む正方形走査対象を説明する図
である。
FIG. 3 is a diagram illustrating a square scanning target including a target pixel.

【図4】 多値復元の具体例を説明する図である。FIG. 4 is a diagram illustrating a specific example of multi-level restoration.

【図5】 他の実施形態を説明するブロック図である。FIG. 5 is a block diagram illustrating another embodiment.

【図6】 平均値による半透明処理を説明する図であ
る。
FIG. 6 is a diagram illustrating a translucent process using an average value.

【図7】 論理演算による半透明処理を説明する図であ
る。
FIG. 7 is a diagram illustrating translucent processing by a logical operation.

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

1…画像処理装置、2…画像出力部、11…PDL解釈
部、12…判定部、13…2値化処理部、14…ROP
処理部、15…描画メモリ、16…半透明処理部、17
…多値復元部、18…平均値処理部
DESCRIPTION OF SYMBOLS 1 ... Image processing apparatus, 2 ... Image output part, 11 ... PDL interpretation part, 12 ... Judgment part, 13 ... Binarization processing part, 14 ... ROP
Processing unit, 15: drawing memory, 16: translucent processing unit, 17
... Multi-value restoration unit, 18 ... Average value processing unit

フロントページの続き Fターム(参考) 2C087 AA16 AB05 BA03 BA12 BD05 BD07 2C262 AA24 AB01 AB13 AC07 BB03 BB15 CA04 DA06 GA23 5B057 AA11 CA01 CA07 CA12 CA16 CB01 CB07 CB12 CB16 CE08 CE17 5B080 DA01 FA17 GA25 5C076 AA12 BA06 Continued on the front page F term (reference) 2C087 AA16 AB05 BA03 BA12 BD05 BD07 2C262 AA24 AB01 AB13 AC07 BB03 BB15 CA04 DA06 GA23 5B057 AA11 CA01 CA07 CA12 CA16 CB01 CB07 CB12 CB16 CE08 CE17 5B080 DA01 FA17 GA25 5C076 AA

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 ホストコンピュータから送られるページ
記述言語を解釈し、印刷出力形式の印刷データへ変換す
る画像処理装置において、 前記ページ記述言語が前景画像と背景画像とを論理演算
によって半透明処理するものであるか否かを判定する判
定手段と、 前記判定手段により、前記ページ記述言語が論理演算に
よって半透明処理するものであると判定された場合、前
記前景画像と前記背景画像との対応画素の平均値を計算
して半透明画像データとする半透明処理手段とを備える
ことを特徴とする画像処理装置。
1. An image processing apparatus for interpreting a page description language sent from a host computer and converting the page description language into print data in a print output format, wherein the page description language performs a semi-transparent process on a foreground image and a background image by a logical operation. Determining means for determining whether the page description language is to be subjected to semi-transparent processing by a logical operation by the determining means; And a translucent processing means for calculating an average value of the translucent image data to generate translucent image data.
【請求項2】 前記半透明処理手段は、前記前景画像と
前記背景画像のうち前記半透明処理の前に印刷データへ
の変換処理によって2値化されたものを多値画像データ
に復元する多値復元手段を備えていることを特徴とする
請求項1記載の画像処理装置。
2. The translucent processing means restores a binary image of the foreground image and the background image by a conversion process to print data before the translucent process into multivalue image data. 2. The image processing apparatus according to claim 1, further comprising a value restoring unit.
【請求項3】 前記多値復元手段は、2値化された画素
に対応する2値化閾値マトリクスの閾値と、その画素の
2値データとに基づき多値画素値を求めることを特徴と
する請求項2記載の画像処理装置。
3. The multi-level restoration means according to claim 2, wherein a multi-level pixel value is obtained based on a threshold value of a binarization threshold value matrix corresponding to the binarized pixel and binary data of the pixel. The image processing device according to claim 2.
【請求項4】 前記多値復元手段は、2値化された画素
の一つを中心とした周辺画素と対応する2値化閾値マト
リクスの閾値と、その中心となる画素の2値データとに
基づき多値画素値を求めることを特徴とする請求項2記
載の画像処理装置。
4. The multi-level restoring means converts a threshold value of a binarization threshold matrix corresponding to a peripheral pixel centered on one of the binarized pixels and binary data of the center pixel. 3. The image processing apparatus according to claim 2, wherein a multi-valued pixel value is determined based on the multi-valued pixel value.
【請求項5】 ホストコンピュータから送られるページ
記述言語を解釈し、印刷出力形式の印刷データへ変換す
る画像処理方法において、 前記ページ記述言語が前景画像と背景画像とを論理演算
によって半透明処理するものであるか否かを判定する工
程と、 前記ページ記述言語が論理演算によって半透明処理する
ものであると判定された場合、前記前景画像と前記背景
画像との対応画素の平均値を計算して半透明画像データ
とする工程とを備えることを特徴とする画像処理方法。
5. An image processing method for interpreting a page description language sent from a host computer and converting the page description language into print data in a print output format, wherein the page description language performs a semi-transparent process on a foreground image and a background image by a logical operation. Determining whether the page description language is to be subjected to translucent processing by a logical operation, and calculating an average value of corresponding pixels of the foreground image and the background image. Converting the image data into translucent image data.
【請求項6】 前記半透明処理を行うにあたり、前記前
景画像と前記背景画像のうち前記半透明処理の前に印刷
データへの変換処理によって2値化されたものを多値画
像データに復元することを特徴とする請求項5記載の画
像処理方法。
6. When performing the translucent processing, of the foreground image and the background image, those that have been binarized by a conversion process to print data before the translucent processing are restored to multi-valued image data. 6. The image processing method according to claim 5, wherein:
【請求項7】 前記多値復元データを、2値化された画
素に対応する2値化閾値マトリクスの閾値と、その画素
の2値データとに基づき算出することを特徴とする請求
項6記載の画像処理方法。
7. The multi-valued restoration data is calculated based on a threshold value of a binarization threshold value matrix corresponding to a binarized pixel and the binary data of the pixel. Image processing method.
【請求項8】 前記多値復元データを、2値化された画
素の一つを中心とした周辺画素と対応する2値化閾値マ
トリクスの閾値と、その中心となる画素の2値データと
に基づき算出することを特徴とする請求項6記載の画像
処理方法。
8. The multi-level restoration data is converted into a threshold value of a binarization threshold matrix corresponding to peripheral pixels centered on one of the binarized pixels and binary data of a pixel at the center thereof. 7. The image processing method according to claim 6, wherein the calculation is performed based on:
JP2001026299A 2001-02-02 2001-02-02 Image processor and image processing method Pending JP2002225381A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001026299A JP2002225381A (en) 2001-02-02 2001-02-02 Image processor and image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001026299A JP2002225381A (en) 2001-02-02 2001-02-02 Image processor and image processing method

Publications (1)

Publication Number Publication Date
JP2002225381A true JP2002225381A (en) 2002-08-14

Family

ID=18891136

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001026299A Pending JP2002225381A (en) 2001-02-02 2001-02-02 Image processor and image processing method

Country Status (1)

Country Link
JP (1) JP2002225381A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006256160A (en) * 2005-03-17 2006-09-28 Fuji Xerox Co Ltd Image processor and image processing method
JP2009232269A (en) * 2008-03-24 2009-10-08 Riso Kagaku Corp Image processing apparatus and image processing program
US8049933B2 (en) 2003-09-17 2011-11-01 Canon Kabushiki Kaisha Copy-forgery-inhibited pattern image generation method and image processing apparatus
US8055180B2 (en) 2003-09-17 2011-11-08 Canon Kabushiki Kaisha Copy-forgery-inhibited pattern density parameter determination method, copy-forgery-inhibited pattern image generation method, and image processing
JP2014200995A (en) * 2013-04-04 2014-10-27 キヤノン株式会社 Information processing apparatus, information processing method, and program
US9208415B2 (en) 2014-02-17 2015-12-08 Ricoh Company Limited Image processing apparatus and method encoding multi-valued image generated with fewer values

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8049933B2 (en) 2003-09-17 2011-11-01 Canon Kabushiki Kaisha Copy-forgery-inhibited pattern image generation method and image processing apparatus
US8055180B2 (en) 2003-09-17 2011-11-08 Canon Kabushiki Kaisha Copy-forgery-inhibited pattern density parameter determination method, copy-forgery-inhibited pattern image generation method, and image processing
US8553291B2 (en) 2003-09-17 2013-10-08 Canon Kabushiki Kaisha Copy-forgery-inhibited pattern image generation method and image processing apparatus
US10038802B2 (en) 2003-09-17 2018-07-31 Canon Kabushiki Kaisha Copy-forgery-inhibited pattern image generation method and image processing apparatus
JP2006256160A (en) * 2005-03-17 2006-09-28 Fuji Xerox Co Ltd Image processor and image processing method
JP2009232269A (en) * 2008-03-24 2009-10-08 Riso Kagaku Corp Image processing apparatus and image processing program
US8218200B2 (en) 2008-03-24 2012-07-10 Riso Kagaku Corporation Image processing system, image processing method, and storage medium
JP2014200995A (en) * 2013-04-04 2014-10-27 キヤノン株式会社 Information processing apparatus, information processing method, and program
US9208415B2 (en) 2014-02-17 2015-12-08 Ricoh Company Limited Image processing apparatus and method encoding multi-valued image generated with fewer values

Similar Documents

Publication Publication Date Title
US7667711B2 (en) Image processing system, a method thereof, and a recording medium thereof
JP5132517B2 (en) Image processing apparatus and image processing method
EP1349371A2 (en) Image processing apparatus, image processing program and storage medium storing the program
JP4498233B2 (en) Image processing apparatus and image processing method
JPH06105160A (en) Image controller
JP4501791B2 (en) Image processing method and image processing program
JP4386216B2 (en) Color printing system and control method thereof
JP2002165105A (en) Image processing device, its method, and recording medium
JP2004334852A (en) Image processing by pixel types
JP2002225381A (en) Image processor and image processing method
JP2009071831A (en) Image processor, image processing method, and image forming apparatus
JP2000182045A (en) Method and picture for processing picture, picture processing system and recording medium
US7542173B2 (en) Image processing device and image processing program causing computer to execute image processing
JP4217302B2 (en) Image processing apparatus and image processing method
US20050219565A1 (en) Image processing device and image processing program allowing computer to execute image processing
JP4465654B2 (en) Image dictionary creation device, encoding device, encoding method and program thereof
JP2002262105A (en) Method and device for converting black gradation in monochromatic print of color image
JP2013102299A (en) Image processor and image processing method
JP3112316B2 (en) Image conversion method
JPH05342340A (en) Method for picture processing and device therefor
JP2001309189A (en) Image processing unit and method
JP2002207477A (en) Device and method for image processing
JP2000182044A (en) Method and picture for processing picture, picture processing system and recording medium
JP2001069349A (en) Picture processing method, picture processor and recording medium
JP4124900B2 (en) Color printer and control method thereof