JP2010124220A - Image processing apparatus - Google Patents
Image processing apparatus Download PDFInfo
- Publication number
- JP2010124220A JP2010124220A JP2008295771A JP2008295771A JP2010124220A JP 2010124220 A JP2010124220 A JP 2010124220A JP 2008295771 A JP2008295771 A JP 2008295771A JP 2008295771 A JP2008295771 A JP 2008295771A JP 2010124220 A JP2010124220 A JP 2010124220A
- Authority
- JP
- Japan
- Prior art keywords
- thinning
- thinned
- lines
- bitmap
- processing
- 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
Links
- 238000000034 method Methods 0.000 claims description 20
- 238000006243 chemical reaction Methods 0.000 abstract description 5
- 238000010586 diagram Methods 0.000 description 10
- 238000003672 processing method Methods 0.000 description 7
- 238000011946 reduction process Methods 0.000 description 6
- 238000009877 rendering Methods 0.000 description 5
- 230000010365 information processing Effects 0.000 description 3
- 101100058681 Drosophila melanogaster Btk29A gene Proteins 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 230000015556 catabolic process Effects 0.000 description 1
- 238000006731 degradation reaction Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000007429 general method Methods 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
Images
Landscapes
- Image Processing (AREA)
- Editing Of Facsimile Originals (AREA)
Abstract
Description
本発明は、画像処理装置、画像処理方法に関しており、特にパーソナルコンピュータなどの情報処理システムにおける画像処理方法に関するものである。 The present invention relates to an image processing apparatus and an image processing method, and more particularly to an image processing method in an information processing system such as a personal computer.
通常600*600dpi出力のホストベースプリンタには600*600dpiのビットマップを入力するが、近年出力とは異なる解像度のビットマップを入力するプリンタが開発されている。例えば、600*400dpiのビットマップをデバイスにて副走査方向に1.5倍に引き伸ばし 600*600dpi相当の出力をするプリンタがある(図1)。アプリケーション(OS)から600*400dpiでデータを受け取れれば良い。しかし、縦横解像度非対称(600*400dpi)に対応していないアプリケーションも多数存在する。またN-up等のレイアウトモジュールがプリンタドライバに内蔵される場合に、受け取るビットマップと出力するビットマップの解像度が縦横が逆になる等問題も多い(図2)。そのためアプリケーション(OS)からは600*600dpiでデータを受け取り、ドライバのレンダリングモジュールにて600*400dpiに解像度を変換する方式が用いられる(図3)。 A 600 * 600 dpi bitmap is normally input to a 600 * 600 dpi host-based printer, but recently, printers have been developed that input a bitmap with a resolution different from the output. For example, there is a printer that stretches a 600 * 400 dpi bitmap by 1.5 times in the sub-scan direction on the device and outputs an output equivalent to 600 * 600 dpi (FIG. 1). Data can be received from the application (OS) at 600 * 400dpi. However, there are many applications that do not support vertical and horizontal resolution asymmetry (600 * 400dpi). In addition, when a layout module such as N-up is built in the printer driver, there are many problems such as the resolution of the received bitmap and the output bitmap being reversed vertically and horizontally (FIG. 2). Therefore, a method is used in which data is received from the application (OS) at 600 * 600 dpi and the resolution is converted to 600 * 400 dpi by the driver rendering module (FIG. 3).
解像度を変換する際にビットマップの縮小処理が発生し、単純間引きが行われる。 When converting the resolution, bitmap reduction processing occurs, and simple decimation is performed.
自然画イメージの場合はプリンタで引き伸ばして出力した結果も違和感がない(図4)。
しかしながら、ビットマップの縮小処理の際に、SmallTextや細線は描画が欠ける場合があるという課題がある(図5)。 However, during bitmap reduction processing, there is a problem that SmallText and fine lines may lack drawing (FIG. 5).
図6の様に単純間引きでは間引かれたラインの情報が欠如することが原因である。 This is because the information of the thinned line is lacking in simple thinning as shown in FIG.
上記課題を解決するため、本発明に関わる画像処理装置は、
ビットマップを縮小する画像データ処理装置であって、
縮小するビットマップの属性を判断する手段と、
属性毎に縮小処理を行う手段と
属性毎に縮小処理を行った結果をマージする手段とからなる。
In order to solve the above problems, an image processing apparatus according to the present invention
An image data processing apparatus for reducing a bitmap,
Means for determining the attributes of the bitmap to be reduced;
It consists of means for performing reduction processing for each attribute and means for merging the results of reduction processing for each attribute.
以上説明したように、本発明によれば、
解像度変換の際に、SmallText、細線が崩れずに出力することが可能となる。
As explained above, according to the present invention,
During resolution conversion, SmallText and fine lines can be output without breaking.
また、オブジェクト毎に最適な縮小処理が行える。 In addition, an optimal reduction process can be performed for each object.
(出力の劣化が少ない自然画イメージには処理の速い単純間引きを行い、出力が変化するGraphicsやTextには処理が遅いが出力の品位が保たれるHalftone処理を行う。)
という効果がある。
(Simple decimation is performed for natural image images with little degradation of output, and Halftone processing is performed for graphics and text whose output changes, which is slow but maintains the quality of the output.)
There is an effect.
次に、本発明の詳細を実施例の記述に従って説明する。 Next, details of the present invention will be described in accordance with the description of the embodiments.
以下本発明の実施の形態を図面を参照し説明する。 Embodiments of the present invention will be described below with reference to the drawings.
本実施形態における画像処理システムの全体構成は図8となる。 The overall configuration of the image processing system in this embodiment is shown in FIG.
図9は図8における描画データ処理部の詳細を示したブロック図である。 FIG. 9 is a block diagram showing details of the drawing data processing unit in FIG.
図9のレンダリング部では縮小前の多値ビットマップとオブジェクト属性を出力する。 The rendering unit in FIG. 9 outputs a multi-value bitmap and object attributes before reduction.
オブジェクト毎に色処理を変更する際にも使用されるオブジェクトハンドリング技術である(図7)。 This is an object handling technique that is also used when color processing is changed for each object (FIG. 7).
図9のオブジェクト属性判断部では、これから間引きを行う領域がText、Graphics、イメージ、細線、SmallTextのどの属性かを判断する。 The object attribute determination unit in FIG. 9 determines which of the attributes of Text, Graphics, image, thin line, and SmallText the area to be thinned from now on.
図9の間引き縮小部ではオブジェクト属性に適した間引き処理を行う。 The thinning reduction unit in FIG. 9 performs thinning processing suitable for the object attribute.
図9の印刷データ生成部では間引き処理部で作成したビットマップをマージして全体の出力ビットマップを生成する。 The print data generation unit in FIG. 9 merges the bitmaps created by the thinning processing unit to generate the entire output bitmap.
間引き方法には「Contone間引き」と「Halftone間引き」があるが(図10)、今回600*600dpiを600*400dpiにする場合にはHalftone間引きの出力結果が良好であったためHalftone間引きを採用した。 There are “Contone thinning” and “Halftone thinning” as the thinning methods (Fig. 10). However, when 600 * 600 dpi was changed to 600 * 400 dpi this time, Halftone thinning was adopted because the output result of Halftone thinning was good.
細線やSmallTextは単純間引きでは間引かれたラインの情報が欠如したため、描画が欠ける場合があった。対策として図11の様に、間引かれるラインの情報を間引かれないラインに反映することで間引かれるラインの情報が残り、描画が欠けることはなくなる。 For thin lines and SmallText, there was a case where drawing was missing due to lack of thinned line information in simple thinning. As a countermeasure, as shown in FIG. 11, the information on the thinned lines is reflected in the lines that are not thinned, so that the information on the thinned lines remains and the drawing is not lost.
イメージ(自然画)の場合は図4の様に単純に間引いても縮小結果に問題は出にくい。逆に間引かれるラインの情報を間引かれないラインに反映すると境界線がぼやけた結果となり劣化することが多い。 In the case of an image (natural image), even if it is simply thinned out as shown in FIG. Conversely, if the information of the thinned line is reflected on the line that is not thinned, the boundary line is often blurred and deteriorated.
細線やSmallText以外のText, Graphicsの場合は図12の様に間引かれるラインの情報を、間引かれない上下のラインに反映した場合に、上下の対象性が保たれて出力結果が良好になる。 In the case of text and graphics other than thin lines and small text, when the information of the thinned lines is reflected on the upper and lower lines that are not thinned as shown in FIG. 12, the upper and lower target characteristics are maintained and the output result is good. Become.
細線、SmallTextの場合は元々の描画が細いためText、Graphicsの様に上下のラインに反映すると非常に太ってしまう。そのため細線、SmallTextには図13のように上下ではなく片方(上)のラインに反映する間引き方法が適している。 In the case of fine lines and SmallText, the original drawing is thin, so if it is reflected in the upper and lower lines like Text and Graphics, it will become very thick. For this reason, the thinning method for reflecting the thin line and SmallText on one (upper) line instead of the upper and lower sides as shown in FIG. 13 is suitable.
以下、印刷処理システムにおいて特にプリンタドライバ内に本発明であるビットマップ縮小処理を適合させた場合の実施例を説明する。しかしこのビットマップ縮小処理は、プリンタドライバではなく、印刷装置内で行っても同様に成立する。またこのビットマップ縮小処理は、ディスプレイ装置やその他ビットマップ処理を行うアプリケーションで行っても同様に成立する。 Hereinafter, an embodiment in the case where the bitmap reduction processing according to the present invention is adapted in the printer driver in the print processing system will be described. However, this bitmap reduction processing is similarly established even if it is performed in the printing apparatus instead of the printer driver. This bitmap reduction processing is similarly established even when it is performed by a display device or other application that performs bitmap processing.
図14、図15、図16は本発明である画像処理印刷方法が適用される情報処理システムの構成の一例を示すブロック図である。 FIGS. 14, 15 and 16 are block diagrams showing an example of the configuration of an information processing system to which the image processing printing method according to the present invention is applied.
図14において、1は中央処理装置で、上記プログラムおよび関連データが記憶されているFD,CD−ROM,ICメモリカード等の記憶媒体をシステムに接続された媒体読取装置6から読み込む。そして補助記憶装置3から主記憶装置2にロードされたシステムプログラム、アプリケーションプログラムによって、入力装置4から入力される情報を処理して、出力装置5やプリンタ7に出力する。なお、本実施例では、出力装置5はディスプレイなどの表示装置とし、本来出力装置に含まれるプリンタ7と区別する。また、入力装置4はキーボード、ポインティングデバイス等で構成されているものとする。さらに補助記憶装置3は、ハードディスク、光磁気ディスクで構成されるものであってもいいし、これらの組み合わせで構成されるものであってもよい。また、それぞれの装置がネットワークを介して接続されていようとも、本発明を制約するものではない。
In FIG. 14,
図15は媒体読取装置記憶装置に格納されていた画像処理方法制御プログラムと関連するデータが中央処理演算装置に読み込まれ、入力装置から印刷命令が入力されて、プリンタへデータを送り印刷するまでの概念図をあらわす。アプリケーション、ドライバともOSの制御下で機能する。 FIG. 15 shows a process from when data related to the image processing method control program stored in the storage device of the medium reader is read into the central processing unit, a print command is input from the input device, and the data is sent to the printer to be printed. A conceptual diagram is shown. Both applications and drivers function under the control of the OS.
図16は、本発明の特徴を最もよくあらわす図面である。同図において9は後述する本発明の印刷システムにおけるクライアントコンピュータ本体およびそれを制御しているOSを示し、後述する印刷装置7とはセントロニクスインターフェースにより接続されている。
FIG. 16 is a drawing that best represents the features of the present invention. In the figure, reference numeral 9 denotes a client computer main body and an OS controlling the client computer in the printing system of the present invention, which will be described later, and is connected to a
11はそのOS上に印刷装置を制御するアプリケーションソフト(プリンタドライバ)である。
12は本発明におけるユーザが印刷装置に対しての設定など各種印刷設定等を入力したり、印刷開始指示をおこなうためのユーザーインターフェース部である。
13は印刷データ制御部で、アプリケーションから指定される描画命令を受け、印刷装置において処理できるデータを作成する。この印刷データ制御部は、本発明である印刷システムにおけるホスト装置側の重要な処理部を含む。
A print
14は、縮小前の多値ビットマップとオブジェクト属性を出力するレンダリング部である。
15は、これから間引きを行う領域がText、Graphics、イメージ、細線、SmallTextのどの属性かを判断するオブジェクト属性判断部である。
16は、15で判断されたオブジェクト属性に適した間引き処理を行う間引き縮小部である。 Reference numeral 16 denotes a thinning reduction unit that performs thinning processing suitable for the object attribute determined in 15.
17は間引き処理部で作成したビットマップをマージして全体の出力ビットマップを生成する印刷データ生成部である。 Reference numeral 17 denotes a print data generation unit that merges the bitmaps created by the thinning processing unit to generate an entire output bitmap.
18は印刷コマンド制御部で、印刷データ生成部により作成された印刷データに対し、印刷装置に対応した印刷コマンドに変更するものであり、また、印刷コマンド全体を制御する。 A print command control unit 18 changes the print data created by the print data generation unit to a print command corresponding to the printing apparatus, and controls the entire print command.
19はOSの機能であり、セントロニクス接続により印刷装置とのデータ送受信を行うデータ送受信部である。
7は印刷装置であり、接続されたホスト装置からの指示に応じた印刷処理等を行う。
ビットマップ縮小処理は図17に示されるフローチャートに基づいてプログラム化されたものである。以下、図17のフローチャートを参照しながら本発明に係るビットマップ縮小処理方法について説明する。 The bitmap reduction process is programmed based on the flowchart shown in FIG. Hereinafter, the bitmap reduction processing method according to the present invention will be described with reference to the flowchart of FIG.
まず、図14−4の入力装置から印刷を実行するように命令が入力されると、図14−3の補助記憶装置から図14−2の主記憶装置上に読み込まれたOS、ドライバやアプリケーション(図15)のうち、OSがそのメッセージを受け取る。OSは現在アクティブであるアプリケーションに印刷実行メッセージを送る。 First, when a command is input to execute printing from the input device in FIG. 14-4, the OS, driver, and application read from the auxiliary storage device in FIG. 14-3 onto the main storage device in FIG. 14-2. In FIG. 15, the OS receives the message. The OS sends a print execution message to the currently active application.
アプリケーションは、そのメッセージをOSが認識できるコマンドに変換して印刷するデータやコマンドのメッセージを送る。OSはドライバの認識できるコマンドに変換して、メッセージを送る。 The application converts the message into a command that can be recognized by the OS, and sends data to be printed or a message of the command. The OS converts the command to be recognized by the driver and sends a message.
ドライバに初期化用のメッセージが送られてきたら、プリンタドライバ(図15−11)のユーザインターフェース部(図16−12)の設定、あるいはデフォルト値により、解像度ビットマップ縮小処理を決定する。 When an initialization message is sent to the driver, resolution bitmap reduction processing is determined according to the setting of the user interface (FIG. 16-12) of the printer driver (FIG. 15-11) or the default value.
ドライバは通常解像度(600dpi*600dpi)のContoneビットマップと属性ビットマップを作成する。(17−1)。全ライン終了するまで以下の処理を繰り返す。(17−2)
600dpi*600dpiを600dpi*400dpiに変更するため3ラインを2ラインに間引いていく。
The driver creates a normal resolution (600dpi * 600dpi) Contone bitmap and attribute bitmap. (17-1). The following processing is repeated until all lines are completed. (17-2)
In order to change 600dpi * 600dpi to 600dpi * 400dpi, 3 lines are thinned out to 2 lines.
3ライン取り出し(17−3)、取り出した3ラインに含まれる属性分(17−4)、属性に合わせたHalftone処理を繰り返す(17−5)。 Three lines are extracted (17-3), attributes included in the extracted three lines (17-4), and Halftone processing according to the attributes is repeated (17-5).
Text, Graphicsに適した間引かれるラインの情報を間引かれない上下のラインに反映するHalftone間引き方法を図18に示す。元の3ライン(Src)から出力の2ライン(Dst)を生成する。出力の2ライン両方のディザを間引かれる2番目のラインに両方掛けることを特徴としている。 FIG. 18 shows a Halftone thinning method in which thinned line information suitable for Text and Graphics is reflected on the upper and lower lines that are not thinned. Generate two output lines (Dst) from the original three lines (Src). It is characterized by dithering both the two lines of output to the second line to be thinned out.
SmallText、細線に適した間引かれるラインの情報を間引かれない片方(上)のラインに反映するHalftone間引き方法を図19に示す。出力の片方のみのディザを間引かれる2番目のラインに掛けることを特徴としている。 FIG. 19 shows a Halftone thinning method in which information of thinned lines suitable for thin lines is reflected on one (upper) line that is not thinned. It is characterized by applying only one dither of output to the second line to be thinned out.
イメージに適した間引かれるラインの情報を間引かれないラインに反映しない(単純間引き)Halftone間引き方法を図20に示す。間引かれるラインの情報を出力の2ラインに反映させないことを特徴とする。 FIG. 20 shows a Halftone thinning method in which information of thinned lines suitable for an image is not reflected on lines that are not thinned (simple thinning). It is characterized in that the information of the thinned lines is not reflected in the two output lines.
またContone間引きの一般的な方法を図21に示す。計算式Dst1 = (Src1 * 2 + Src2) / 3、Dst2 = (Src2 + Src3 * 2) / 3 に従い3ラインを2ラインに間引く。Contoneデータの時点で間引き処理を行うので自然画イメージ等には適していると思われるが、純白や純黒の色が間引かれる際に上下のラインの影響を受けて純白や純黒となくなるため、文字等には使えない。 A general method for thinning Contone is shown in FIG. 3 lines are thinned out into 2 lines according to the calculation formula Dst1 = (Src1 * 2 + Src2) / 3, Dst2 = (Src2 + Src3 * 2) / 3. Since it is thinned out at the time of Contone data, it seems to be suitable for natural images etc., but when pure white or pure black color is thinned out, it is affected by the upper and lower lines and disappears as pure white or pure black Therefore, it cannot be used for characters.
Halftone処理したイメージをORをとりひとつのイメージに結合する(17−6)。 The halftone processed image is ORed and combined into one image (17-6).
以上で、解像度変換ビットマップ縮小処理が終了する。 This is the end of the resolution conversion bitmap reduction process.
(他の実施例)
このビットマップ縮小処理は、プリンタドライバではなく、プリンタ内で行なっても同様に成立する。
(Other examples)
This bitmap reduction process is similarly established even if it is performed in the printer instead of the printer driver.
1 中央処理装置
2 主記憶装置
3 補助記憶装置
4 入力装置
5 出力装置
6 媒体読取装置
7 印刷装置
8 ROM
9 OS
10 アプリケーション
11 プリンタドライバ
12 ユーザーインターフェース部
13 印刷データ制御部
14 レンダリング部
15 オブジェクト属性判断部
16 間引き縮小部
17 印刷データ生成部
18 印刷コマンド制御部
19 データ送受信部(ホスト装置側)
DESCRIPTION OF
9 OS
DESCRIPTION OF
Claims (4)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008295771A JP2010124220A (en) | 2008-11-19 | 2008-11-19 | Image processing apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008295771A JP2010124220A (en) | 2008-11-19 | 2008-11-19 | Image processing apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2010124220A true JP2010124220A (en) | 2010-06-03 |
Family
ID=42325160
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008295771A Pending JP2010124220A (en) | 2008-11-19 | 2008-11-19 | Image processing apparatus |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2010124220A (en) |
-
2008
- 2008-11-19 JP JP2008295771A patent/JP2010124220A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7071564B2 (en) | Image processing system, image processing method, and image processing device | |
US9176935B2 (en) | Image forming apparatus capable of displaying print preview on screen | |
JP6482265B2 (en) | Method and program for generating dither threshold matrix | |
JP2008067044A (en) | Image processor, image reader, image processing method, and image processing program | |
JP4564986B2 (en) | Image processing apparatus, image processing method, and image processing program | |
EP2429166B1 (en) | Image forming apparatus and image forming method thereof | |
JP6464695B2 (en) | Image processing apparatus and computer program | |
JP2009232369A (en) | Image processing method | |
JP2010124220A (en) | Image processing apparatus | |
JP4514168B2 (en) | Image processing system and image processing method | |
JP2009129342A (en) | Image processing device and method | |
JP5990217B2 (en) | Image processing apparatus, image forming apparatus, and control method thereof | |
JP2019004380A (en) | Image processing apparatus, control method thereof, and program | |
KR100571788B1 (en) | The method of printing the appointed domain of document enlargeably | |
JP2019121870A (en) | Image processing apparatus, control method of the same, and program | |
JP2007081886A (en) | Drawing processing apparatus | |
JP4379571B2 (en) | Image processing apparatus and image processing method | |
JP2007324996A (en) | Image information output device, image information output system, and program | |
JP2008072654A (en) | Image storage method, program, device, and system, and computer-readable recording medium | |
JP2006191294A (en) | Image processor, program and image-processing method | |
JP4298579B2 (en) | Image processing method and print control apparatus | |
JP2005275671A (en) | Printing controller, printing control method and printing control program-recorded medium | |
JP2010186298A (en) | Image processor | |
JP2000011161A (en) | Image processor | |
JP4685047B2 (en) | Image processing apparatus, image processing method, and image processing program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
RD01 | Notification of change of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7421 Effective date: 20100630 |