JP2009141529A - Device and method for processing image, and program - Google Patents

Device and method for processing image, and program Download PDF

Info

Publication number
JP2009141529A
JP2009141529A JP2007313956A JP2007313956A JP2009141529A JP 2009141529 A JP2009141529 A JP 2009141529A JP 2007313956 A JP2007313956 A JP 2007313956A JP 2007313956 A JP2007313956 A JP 2007313956A JP 2009141529 A JP2009141529 A JP 2009141529A
Authority
JP
Japan
Prior art keywords
correction
image processing
type
reference pattern
pattern
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
JP2007313956A
Other languages
Japanese (ja)
Inventor
Takeshi Yamamoto
剛 山本
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2007313956A priority Critical patent/JP2009141529A/en
Publication of JP2009141529A publication Critical patent/JP2009141529A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a device and a method for processing images and a program capable of improving the flexibility in jaggy correction with respect to image data made to be printed by an ink-jet printer. <P>SOLUTION: The device for processing the image carries out image processings, regarding the image data printed by the ink-jet printer. The device for processing the image has a correction-kind input means for receiving the specifications of kinds of jaggy corrections, regarding the image data and a reference-pattern determining means determining reference patterns used for pattern matching on the basis of kinds of jaggy corrections, and the device for processing the image, further, has a correction means conducting the pattern, matching the image data by using the reference pattern and carrying out processing, corresponding to the kind of correction regarding specified pixels within a matched range, and thereby solving the problem. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、画像処理装置、画像処理方法及びプログラムに関し、特にインクジェットプリンタに印刷させる画像データに関する画像処理を実行する画像処理装置、画像処理方法及びプログラムに関する。   The present invention relates to an image processing apparatus, an image processing method, and a program, and more particularly to an image processing apparatus, an image processing method, and a program that execute image processing related to image data to be printed by an inkjet printer.

インクジェットプリンタの記録画像は、ヘッドの走査方向、及びそれと直交する方向である記録紙の搬送方向にマトリクス状に形成されたドットで表される。ここで、ドット画像として文字を印写したとき、印字する画像の解像度によって、文字の品質は大きく異なる。例えば、同じ大きさの文字を300dpiで印写したときと600dpiで印写したときとでは、文字を構成するドット数が4倍異なるため、600dpiで印写したときの方が細かいところまで表現でき、当然のことながら文字品質は良い。特に、文字の斜線部では、解像度にしたがって、階段状にドットが増えていく(あるいは、減っていく)ので、300dpiで印写したときの方が、ギザギザ(ジャギー)として認識され易くなる。   The recorded image of the ink jet printer is represented by dots formed in a matrix in the scanning direction of the head and the transport direction of the recording paper, which is a direction perpendicular thereto. Here, when a character is printed as a dot image, the quality of the character varies greatly depending on the resolution of the image to be printed. For example, when characters of the same size are printed at 300 dpi and when printed at 600 dpi, the number of dots that make up the characters differs by a factor of 4, so that when printed at 600 dpi, it can be expressed in more detail. Of course, the character quality is good. In particular, in the shaded portion of a character, dots increase (or decrease) in a staircase pattern according to the resolution, so that when printed at 300 dpi, it becomes easier to be recognized as jagged (jaggy).

そこで、従来、印刷対象となる画像データを処理する段階においてジャギーを補正するための技術が各種検討されている(例えば、特許文献1)。
特開2005−193384号公報
Therefore, conventionally, various techniques for correcting jaggies at the stage of processing image data to be printed have been studied (for example, Patent Document 1).
JP 2005-193384 A

しかしながら、ジャギー補正の方法及びその結果は各種存在するところ、従来の技術では、開発者側の観点において望ましいジャギー補正結果が予め選択され、斯かる補正結果が得られるようなジャギー補正処理がプログラムロジックとして組み込まれていた。   However, there are various methods and results of jaggy correction. In the conventional technique, a jaggy correction result that is desirable from the viewpoint of the developer is selected in advance and such a correction result is obtained by program logic. Was incorporated as.

したがって、全てのユーザに対して同一のジャギー補正処理が提供されており、ユーザに応じて異なるジャギー補正処理を提供するのが困難であるという問題があった。   Therefore, the same jaggy correction processing is provided for all users, and it is difficult to provide different jaggy correction processing depending on the user.

本発明は、上記の点に鑑みてなされたものであって、インクジェットプリンタに印刷させる画像データに対するジャギー補正について柔軟性を向上させることのできる画像処理装置、画像処理方法及びプログラムの提供を目的とする。   The present invention has been made in view of the above points, and it is an object of the present invention to provide an image processing apparatus, an image processing method, and a program capable of improving the flexibility of jaggy correction for image data to be printed by an inkjet printer. To do.

そこで上記課題を解決するため、本発明は、インクジェットプリンタに印刷させる画像データに関する画像処理を実行する画像処理装置であって、前記画像データについてジャギー補正の種類の指定を受け付ける補正種類入力手段と、前記ジャギー補正の種類に基づいてパターンマッチングに用いる参照パターンを決定する参照パターン決定手段と、前記参照パターンを用いて前記画像データに対してパターンマッチングを行い、マッチした範囲における所定の画素について前記補正の種類に応じた処理を実行する補正手段とを有することを特徴とする。   In order to solve the above problems, the present invention is an image processing apparatus that executes image processing related to image data to be printed by an inkjet printer, and a correction type input unit that receives a specification of a jaggy correction type for the image data; Reference pattern determining means for determining a reference pattern to be used for pattern matching based on the type of jaggy correction, pattern matching is performed on the image data using the reference pattern, and the correction is performed on a predetermined pixel in a matched range. And a correction unit that executes processing according to the type.

このような画像処理装置では、インクジェットプリンタに印刷させる画像データに対するジャギー補正について柔軟性を向上させることができる。   In such an image processing apparatus, the flexibility of jaggy correction for image data to be printed by an inkjet printer can be improved.

本発明によれば、インクジェットプリンタに印刷させる画像データに対するジャギー補正について柔軟性を向上させることのできる画像処理装置、画像処理方法及びプログラムを提供することができる。   According to the present invention, it is possible to provide an image processing apparatus, an image processing method, and a program capable of improving the flexibility of jaggy correction for image data to be printed by an inkjet printer.

以下、図面に基づいて本発明の実施の形態を説明する。図1は、本発明の実施の形態におけるシステム構成例を示す図である。同図において、一台以上のホストコンピュータ10と一台以上のプリンタ20とは、LAN(Local Area Network)等のネットワーク30(有線又は無線の別は問わない。)を介して接続されている。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a diagram showing an example of a system configuration in the embodiment of the present invention. In the figure, one or more host computers 10 and one or more printers 20 are connected via a network 30 (whether wired or wireless) such as a LAN (Local Area Network).

ホストコンピュータ10は、アプリケーションによって生成されたデータについてプリンタ20が解釈可能な印刷データを生成し、当該印刷データをプリンタ20に送信するコンピュータである。ホストコンピュータ10は、印刷データの生成過程において各種の画像処理を実行する。当該画像処理には、ジャギー補正処理も含まれる。すなわち、本実施の形態では、ホストコンピュータ10が画像処理装置に相当する。   The host computer 10 is a computer that generates print data that can be interpreted by the printer 20 for data generated by an application, and transmits the print data to the printer 20. The host computer 10 executes various types of image processing in the print data generation process. The image processing includes jaggy correction processing. That is, in the present embodiment, the host computer 10 corresponds to the image processing apparatus.

プリンタ20は、ホストコンピュータ10より受信される印刷データに基づいて印刷を実行するインクジェットプリンタである。すなわち、プリンタ20は、ノズルヘッドを備え、ノズルヘッドに設けられたノズルよりインクを吐出することにより記録媒体(印刷用紙)に対して画像を形成する。本実施の形態において、プリンタ20は、記録媒体における一つのドットについて、滴なし、小滴、中滴、及び大滴の4階調の表現が可能であるとする。但し、本発明の適用範囲が、1ドットあたり4階調の表現が可能なプリンタのみに限定されるわけではない。   The printer 20 is an ink jet printer that performs printing based on print data received from the host computer 10. That is, the printer 20 includes a nozzle head, and forms an image on a recording medium (printing paper) by ejecting ink from nozzles provided in the nozzle head. In the present embodiment, it is assumed that the printer 20 can express four gradations, that is, no droplet, small droplet, medium droplet, and large droplet, for one dot on the recording medium. However, the application range of the present invention is not limited to only a printer that can express four gradations per dot.

図2は、本発明の実施の形態におけるホストコンピュータの機能構成例を示す図である。同図において、ホストコンピュータ10は、アプリケーション11、描画データメモリ12、ラスタライザ13、ラスタデータメモリ14、インタフェース部15、フォント処理部16、フォントデータメモリ17、補正定義ファイル18、及び印刷設定UI部19等を有する。   FIG. 2 is a diagram illustrating a functional configuration example of the host computer according to the embodiment of the present invention. In the figure, a host computer 10 includes an application 11, a drawing data memory 12, a rasterizer 13, a raster data memory 14, an interface unit 15, a font processing unit 16, a font data memory 17, a correction definition file 18, and a print setting UI unit 19. Etc.

アプリケーション11から発行される画像や文字のプリント命令(例えば画像の線の位置・太さ・形、文字の書体・大きさ・位置など)は描画データメモリ12に一旦蓄積される。ラスタライザ13は、描画データメモリ12に記憶されたプリント命令を読み込んで解釈し、線の描画命令であれば指定された位置や太さ等に応じた画像データ(例えば、ビットマップ等のドットパターン)に変換し、文字の記録命令であればフォントデータメモリ17より、対応したフォントデータを取り込み、インクジェットプリンタ20で記録可能なラスタデータを生成する。このラスタデータはラスタデータメモリ14に一旦蓄積され、インタフェース部15を介してインクジェットプリンタ20に出力される。   Image and character print commands issued from the application 11 (for example, image line position / thickness / shape, character font / size / position, etc.) are temporarily stored in the drawing data memory 12. The rasterizer 13 reads and interprets a print command stored in the drawing data memory 12, and if it is a line drawing command, image data (for example, a dot pattern such as a bitmap) according to the designated position and thickness. If it is a character recording command, the corresponding font data is fetched from the font data memory 17 and raster data that can be recorded by the inkjet printer 20 is generated. The raster data is temporarily stored in the raster data memory 14 and output to the ink jet printer 20 via the interface unit 15.

文字の画像データへの展開はラスタライザ13と独立したフォント処理部16で行われる。ただし、フォント処理部16とラスタライザ13とを統合してもよい。また、ラスタライザ13及びフォント処理部16は、プリンタドライバなどのソフトウェアとして実現されるのが一般的であろうが、その一方又は両方をハードウェアとして実現してもよい。   Expansion of characters into image data is performed by a font processing unit 16 independent of the rasterizer 13. However, the font processing unit 16 and the rasterizer 13 may be integrated. The rasterizer 13 and the font processing unit 16 are generally realized as software such as a printer driver, but one or both of them may be realized as hardware.

フォント処理部16は、展開部161及びジャギー補正部162を含む。展開部161は、文字を2値の画像データ(フォントデータ)に展開する。ジャギー補正部162は、印刷設定UI部19が表示させる印刷設定画面における設定内容や補正定義ファイル18等に基づいて、フォントデータにおける文字輪郭部についてジャギー補正を行う。なお、印刷設定画面は、一般的にプリンタドライバによって表示される、印刷条件等を設定させるための画面である。   The font processing unit 16 includes a development unit 161 and a jaggy correction unit 162. The expansion unit 161 expands characters into binary image data (font data). The jaggy correction unit 162 performs jaggy correction on the character outline portion in the font data based on the setting contents on the print setting screen displayed by the print setting UI unit 19 and the correction definition file 18. The print setting screen is a screen for setting printing conditions and the like that are generally displayed by a printer driver.

本実施の形態では、フォントデータに対してジャギー補正が施される例を説明する。ただし、文字だけでなく他の2値画像、例えばグラフィックス画像の斜線などに対しても同様のジャギー補正を施す態様も本発明に包含される。そのようなジャギー補正は、ラスタライザ13で実行してもよいし、別に設けたジャギー補正手段において実行してもよい。   In this embodiment, an example in which jaggy correction is performed on font data will be described. However, a mode in which similar jaggy correction is performed not only on characters but also on other binary images, for example, diagonal lines of graphics images, is also included in the present invention. Such jaggy correction may be executed by the rasterizer 13 or may be executed by a separately provided jaggy correction means.

図3は、本発明の実施の形態におけるホストコンピュータのハードウェア構成例を示す図である。図3のホストコンピュータ10は、それぞれバスBで相互に接続されているドライブ装置100と、補助記憶装置102と、メモリ装置103と、CPU104と、インタフェース装置105と、表示装置106と、入力装置107とを有するように構成される。   FIG. 3 is a diagram illustrating a hardware configuration example of the host computer according to the embodiment of the present invention. The host computer 10 in FIG. 3 includes a drive device 100, an auxiliary storage device 102, a memory device 103, a CPU 104, an interface device 105, a display device 106, and an input device 107, which are mutually connected by a bus B. And is configured to have.

ホストコンピュータ10での処理を実現するプログラムは、CD−ROM等の記録媒体101によって提供される。プログラムを記録した記録媒体101がドライブ装置100にセットされると、プログラムが記録媒体101からドライブ装置100を介して補助記憶装置102にインストールされる。補助記憶装置102は、インストールされたプログラムを格納すると共に、必要なファイルやデータ等を格納する。例えば、補正定義ファイル18やフォントデータ等は、補助記憶装置102に記録される
メモリ装置103は、プログラムの起動指示があった場合に、補助記憶装置102からプログラムを読み出して格納する。メモリ装置103は、また、描画データメモリ12、ラスタデータメモリ14、及びフォントデータメモリ17等に対応する記憶領域として用いられる。
A program for realizing processing in the host computer 10 is provided by a recording medium 101 such as a CD-ROM. When the recording medium 101 on which the program is recorded is set in the drive device 100, the program is installed from the recording medium 101 to the auxiliary storage device 102 via the drive device 100. The auxiliary storage device 102 stores the installed program and also stores necessary files and data. For example, the correction definition file 18 and the font data are recorded in the auxiliary storage device 102. The memory device 103 reads the program from the auxiliary storage device 102 and stores it when an instruction to start the program is given. The memory device 103 is also used as a storage area corresponding to the drawing data memory 12, the raster data memory 14, the font data memory 17, and the like.

CPU104は、メモリ装置103に格納されたプログラムに従ってホストコンピュータ10に係る機能(例えば、ラスタライザ13、インタフェース部15、フォント処理部16、及び印刷設定UI部19等)を実現する。インタフェース装置105は、ネットワークに接続するためのインタフェースとして用いられる。表示装置106はプログラムによるGUI(Graphical User Interface)等を表示する。入力装置107はキーボード及びマウス等で構成され、様々な操作指示を入力させるために用いられる。   The CPU 104 realizes functions related to the host computer 10 (for example, the rasterizer 13, the interface unit 15, the font processing unit 16, the print setting UI unit 19, and the like) according to the program stored in the memory device 103. The interface device 105 is used as an interface for connecting to a network. The display device 106 displays a GUI (Graphical User Interface) or the like by a program. The input device 107 includes a keyboard and a mouse, and is used for inputting various operation instructions.

なお、プログラムのインストールは必ずしも記録媒体101より行う必要はなく、ネットワークを介して他のコンピュータよりダウンロードするようにしてもよい。   The program need not be installed from the recording medium 101 and may be downloaded from another computer via a network.

以下、ホストコンピュータ10による処理手順について説明する。まず、ジャギー補正部162によるジャギー補正処理について説明する。本実施の形態におけるジャギー補正部162は、フォントデータにおける文字の輪郭の境界に係る画素について、新たに小滴若しくは中滴によって印字する画素を追加したり、又は既に印字対象とされている画素の滴種を変更したりすることにより文字輪郭部のジャギー補正を行う。   Hereinafter, the processing procedure by the host computer 10 will be described. First, jaggy correction processing by the jaggy correction unit 162 will be described. The jaggy correction unit 162 according to the present embodiment adds a pixel to be newly printed with small droplets or medium droplets to the pixels related to the boundary of the character outline in the font data, or the pixels already targeted for printing. The jaggy correction of the character outline is performed by changing the drop type.

図4は、フォントデータの一部の画素の例を概念的に示す図である。同図において、黒丸は当該画素に基づいて印字されるインク滴を示す。すなわち、黒丸が存在する画素は印字対象である。また、黒丸の大きさはインク滴のサイズを示す。したがって、印字する画素の追加とは、同図において黒丸が存在しない画素(以下、「ブランクの画素」という。)に対して小滴又は中滴に対応するサイズの黒丸の追加を意味する。また、滴種の変更とは、黒丸のサイズの変更を意味する。なお、フォントデータの初期状態として、印字対象の画素は大滴とされる。具体的には、1画素が1バイトによって表現され、0が滴なしで255が大滴に対応する場合、補正前に印字対象の画素の画素値は255とされ、印字対象でない画素値は0に初期化される。   FIG. 4 is a diagram conceptually illustrating an example of a part of pixels of font data. In the figure, black circles indicate ink droplets printed based on the pixels. That is, a pixel with a black circle is a printing target. The size of the black circle indicates the size of the ink droplet. Therefore, the addition of a pixel to be printed means the addition of a black circle having a size corresponding to a small droplet or a medium droplet with respect to a pixel having no black circle (hereinafter referred to as “blank pixel”) in FIG. Moreover, the change of the drop type means the change of the size of the black circle. As an initial state of the font data, a pixel to be printed is a large droplet. Specifically, when 1 pixel is represented by 1 byte, 0 is no drop and 255 corresponds to a large drop, the pixel value of the pixel to be printed is set to 255 before correction, and the pixel value not to be printed is 0. It is initialized to.

ドットの追加又はドットサイズの変更の対象とされる画素(以下「補正対象の画素」という。)は、パターンマッチングにより判別される。パターンマッチングには仮想的なウィンドウが用いられる。   Pixels that are the targets of dot addition or dot size change (hereinafter referred to as “correction target pixels”) are determined by pattern matching. A virtual window is used for pattern matching.

図5は、パターンマッチングに用いられる仮想的なウィンドウの例を示す図である。同図には、m×n画素のウィンドウが示されている。ここで、注目画素として示されている画素が、パターンマッチングにおいて補正対象とされる画素となる。なお、mとnの値は同じでもよいし、異なっていてもよい。   FIG. 5 is a diagram illustrating an example of a virtual window used for pattern matching. In the figure, an m × n pixel window is shown. Here, the pixel indicated as the target pixel is a pixel to be corrected in the pattern matching. Note that the values of m and n may be the same or different.

以上をふまえて、ジャギー補正処理の処理手順についてフローチャートを用いて説明する。図6は、ジャギー補正部によるジャギー補正処理の処理手順を説明するためのフローチャートである。   Based on the above, the processing procedure of the jaggy correction processing will be described using a flowchart. FIG. 6 is a flowchart for explaining the processing procedure of the jaggy correction processing by the jaggy correction unit.

まず、フォントデータの先頭画素を注目画素とする(S101)。続いて、注目画素を例えば中心としたm×nのウィンドウに対応した画素によって構成されるビットマップデータをフォントデータより抽出し(S102)、予め用意されたm×nのサイズの参照パターンとのパターンマッチングを行う(S103)。参照パターンとは、注目画素が補正対象となる場合のドット配置を表すものである。   First, the first pixel of the font data is set as a target pixel (S101). Subsequently, bitmap data composed of pixels corresponding to an m × n window centered on the target pixel, for example, is extracted from the font data (S102), and the reference pattern prepared in advance with an m × n size reference pattern is extracted. Pattern matching is performed (S103). The reference pattern represents a dot arrangement when the target pixel is a correction target.

図7は、参照パターンの例を示す図である。同図では、ウィンドウサイズが3×3に対応した参照パターンの例が示されている。なお、参照パターンは、複数存在しうる。   FIG. 7 is a diagram illustrating an example of a reference pattern. In the figure, an example of a reference pattern corresponding to a window size of 3 × 3 is shown. There may be a plurality of reference patterns.

パターンマッチングにおいて、抽出されたビットマップデータが参照パターンにマッチした場合には(S104でYes)、注目画素を補正する(S105)。すなわち、注目画素が、新たに小滴若しくは中滴に対応する印字対象とされる。又は、注目画素の滴種が変更される。例えば、滴なしが0、大滴が255によって表現される場合、小滴とされた画素は、その画素値を例えば85とすればよい。中滴とされた画素は、その画素値を例えば170とすればよい。なお、どのような場合にどのような補正が行われるかについては後述する。   In the pattern matching, when the extracted bitmap data matches the reference pattern (Yes in S104), the target pixel is corrected (S105). That is, the target pixel is newly set as a print target corresponding to a small droplet or a medium droplet. Alternatively, the drop type of the target pixel is changed. For example, when no drop is represented by 0 and a large drop is represented by 255, the pixel value of a small drop pixel may be set to 85, for example. The pixel value of the medium drop may be set to 170, for example. Note that what correction is performed in which case will be described later.

続いて、注目画素を次の画素位置に移動し(S106)、ステップS102から処理を繰り返す。パターンマッチングでマッチしない場合は(S104でNo)、ステップS105をスキップしステップS106に進む。このような処理は、フォントデータの全画素が処理済みとなるまで(S107でYes)繰り返される。また、パターンマッチングすべき参照パターンが複数存在する場合は、複数の参照パターンについて図6の処理が実行される。   Subsequently, the target pixel is moved to the next pixel position (S106), and the processing is repeated from step S102. If the pattern matching does not match (No in S104), step S105 is skipped and the process proceeds to step S106. Such processing is repeated until all the pixels of the font data have been processed (Yes in S107). When there are a plurality of reference patterns to be pattern-matched, the process of FIG. 6 is executed for the plurality of reference patterns.

続いて、図6の前に実行される処理について説明する。図8は、ジャギー補正の前処理を説明するためのフローチャートである。   Next, processing executed before FIG. 6 will be described. FIG. 8 is a flowchart for explaining preprocessing for jaggy correction.

ユーザによる印刷指示時において、印刷設定UI部19は、印刷設定画面を表示させ、印刷条件等と共にジャギー補正の補正タイプ(補正の種類)の設定の設定を受け付ける(S201)。設定された補正タイプはジャギー補正部16に伝達され、保持される。   At the time of printing instruction by the user, the print setting UI unit 19 displays a print setting screen, and accepts the setting of the correction type (correction type) of the jaggy correction together with the printing conditions (S201). The set correction type is transmitted to the jaggy correction unit 16 and held.

図9は、補正タイプを説明するための図である。同図に示されるように、補正タイプに応じて補正内容(補正の方法)が異なる。具体的には、補正タイプ1は、ブランクの注目画素を常に小滴とするものである。補正タイプ2は、ブランクの注目画素を常に中滴とするものである。補正タイプ3は、ブランクの注目画素を小滴又は中滴とするものである。すなわち、補正タイプ3による補正結果は、小滴及び中滴が混在しうる。補正タイプ4は、ブランクでない(すなわち、大滴)の注目画素の滴種を中滴に変更するものである。補正タイプ5は、補正タイプ3と補正タイプ4を合わせたものである。このように、補正タイプは、注目画素に適用されるインク滴のサイズに応じて異なる。また、補正タイプは、注目画素について適用対象とされるインク的のサイズの組み合わせに応じて異なる。   FIG. 9 is a diagram for explaining the correction type. As shown in the figure, the correction content (correction method) differs depending on the correction type. Specifically, in the correction type 1, the blank target pixel is always a small droplet. The correction type 2 always uses a blank pixel of interest as a medium drop. In the correction type 3, a blank pixel of interest is a small droplet or a medium droplet. That is, the correction result by the correction type 3 can include a small droplet and a medium droplet. The correction type 4 is to change the drop type of the target pixel that is not blank (that is, a large drop) to a medium drop. The correction type 5 is a combination of the correction type 3 and the correction type 4. Thus, the correction type varies depending on the size of the ink droplet applied to the target pixel. In addition, the correction type differs depending on the combination of ink sizes to be applied to the target pixel.

なお、いずれの補正タイプによる補正結果が望ましいかは、ユーザに応じて異なる。文字輪郭部分が滑らかに見えても線の細い文字になってしまったりすることがあるからである。したがって、ユーザに補正タイプを選択させることによって、ユーザ所望のジャギー補正を行うことができる。   Note that which correction type is desirable for the correction result depends on the user. This is because even if the character outline portion looks smooth, it may become a thin line character. Therefore, the user-desired jaggy correction can be performed by allowing the user to select the correction type.

印刷の開始が指示され、アプリケーション11より文字のプリント命令が描画データメモリ12に入力されると、ジャギー補正部162は、出力解像度(印刷時の解像度)に基づいてパターンマッチングに用いるウィンドウのサイズ(m×nの値)を判定する(S201)。出力解像度とウィンドウサイズとの対応は、ロジックとしてジャギー補正部162に組み込まれていてもよいし(すなわち、ハードコーディング)、又は外部ファイルに定義されていてもよい。基本的に、解像度が高いほどウィンドウサイズを大きくするとよい。また、出力解像度は、ユーザによる印刷指示時において印刷設定UI部19が表示させる印刷設定画面において設定されてもよいし、プリンタ20が対応している解像度に基づいて自動的に判断されてもよい。   When the start of printing is instructed and a character print command is input from the application 11 to the drawing data memory 12, the jaggy correction unit 162 uses the size of the window used for pattern matching (resolution at the time of printing) based on the output resolution (resolution at the time of printing). m × n value) is determined (S201). The correspondence between the output resolution and the window size may be incorporated as logic in the jaggy correction unit 162 (that is, hard coding) or may be defined in an external file. Basically, the higher the resolution, the larger the window size. Further, the output resolution may be set on a print setting screen displayed by the print setting UI unit 19 when a user instructs printing, or may be automatically determined based on a resolution supported by the printer 20. .

続いて、ジャギー補正部162は、判定されたウィンドウサイズに対応する補正定義ファイル18をオープンする(S202)。すなわち、本実施の形態では、ウィンドウサイズごと(換言すれば、解像度ごと)に補正定義ファイル18が管理されている。   Subsequently, the jaggy correction unit 162 opens the correction definition file 18 corresponding to the determined window size (S202). That is, in this embodiment, the correction definition file 18 is managed for each window size (in other words, for each resolution).

図10は、補正定義ファイルの構成例を示す図である。同図において、補正定義ファイル18には、当該ウィンドウサイズに対応する参照パターンが、補正タイプごとに定義されている。補正タイプ1の参照パターンとしては、注目画素に小滴を追加するための参照パターン(小滴追加パターン)の識別情報(ファイル名等)が登録されている。補正タイプ2の参照パターンとしては、注目画素に中滴を追加するための参照パターン(中滴追加パターン)の識別情報が登録されている。補正タイプ3の参照パターンとしては、小滴追加パターンの識別情報と中滴追加パターンの識別情報とが登録されている。補正タイプ4の参照パターンとしては、注目画素の大滴を中滴に変更するための参照パターン(滴種変更パターン)の識別情報が登録されている。補正パターン5の参照パターンとしては、小滴追加パターン、中滴追加パターン、及び滴種変更パターンの識別情報が登録されている。   FIG. 10 is a diagram illustrating a configuration example of the correction definition file. In the figure, the correction definition file 18 defines a reference pattern corresponding to the window size for each correction type. As the correction type 1 reference pattern, identification information (file name, etc.) of a reference pattern (small droplet addition pattern) for adding a small droplet to the target pixel is registered. As the correction type 2 reference pattern, identification information of a reference pattern (medium drop addition pattern) for adding a medium drop to the target pixel is registered. As the reference pattern of the correction type 3, the identification information of the small droplet addition pattern and the identification information of the medium droplet addition pattern are registered. As the correction type 4 reference pattern, identification information of a reference pattern (droplet type change pattern) for changing a large droplet of a target pixel to a medium droplet is registered. As reference patterns of the correction pattern 5, identification information of a small drop addition pattern, a medium drop addition pattern, and a drop type change pattern is registered.

なお、補正タイプ1、3、及び5における小滴追加パターンは、同一であるとは限らない。同様に、補正タイプ3及び5における中滴追加パターン、補正タイプ4及び5における滴種変更パターンについても同一であるとは限らない。   Note that the droplet addition patterns in the correction types 1, 3, and 5 are not necessarily the same. Similarly, the medium drop addition pattern in correction types 3 and 5 and the drop type change pattern in correction types 4 and 5 are not necessarily the same.

また、図中における「小滴追加パターン」、「中滴追加パターン」、及び「滴種変更パターン」は、それぞれ、一つの参照パターンであるとは限らない。それぞれについて複数の参照パターンが登録されていてもよい。   Further, the “small droplet addition pattern”, “medium droplet addition pattern”, and “droplet type change pattern” in the figure are not necessarily one reference pattern. A plurality of reference patterns may be registered for each.

また、補正定義ファイル18は、容易に書き換え可能である。したがって、補正タイプに応じた参照パターンは容易に変更可能である。   The correction definition file 18 can be easily rewritten. Therefore, the reference pattern according to the correction type can be easily changed.

続いて、ジャギー補正部162は、ユーザによって設定された補正タイプに対応する参照パターンを補正定義ファイル18に基づいて判定し(決定)、当該参照パターンをメモリ上に読み込む(S204)。続いて、展開部161は、プリント命令の対象とされた文字のフォントデータをフォントデータメモリ17に展開する(S205)。   Subsequently, the jaggy correction unit 162 determines (determines) a reference pattern corresponding to the correction type set by the user based on the correction definition file 18, and reads the reference pattern onto the memory (S204). Subsequently, the expansion unit 161 expands the font data of the character that is the target of the print command in the font data memory 17 (S205).

続いて、図6において説明したジャギー補正処理が実行される(S206)。したがって、図6におけるパターンマッチングでは、解像度及び補正タイプに基づいて決定された参照パターンデータが用いられる。また、図6のステップS105においては、補正タイプに応じた補正が行われる。   Subsequently, the jaggy correction process described in FIG. 6 is executed (S206). Therefore, the pattern matching in FIG. 6 uses reference pattern data determined based on the resolution and the correction type. In step S105 of FIG. 6, correction according to the correction type is performed.

例えば、補正タイプ1の場合、注目画素は小滴とされる。補正タイプ2の場合、注目画素は中滴とされる。補正タイプ3の場合、小滴追加パターンとマッチした際の注目画素は小滴とされ、中滴追加パターンとマッチした際の注目画素は中滴とされる。補正タイプ4の場合、注目画素は中滴に変更される。補正タイプ5の場合、小滴追加パターンとマッチした際の注目画素は小滴とされ、中滴追加パターンとマッチした際の注目画素は中滴とされ、滴種変更パターンとマッチした際の注目画素は中滴に変更される。   For example, in the case of correction type 1, the pixel of interest is a droplet. In the case of correction type 2, the target pixel is a medium drop. In the case of correction type 3, the target pixel when matched with the small droplet addition pattern is a small droplet, and the target pixel when matched with the medium droplet additional pattern is a medium droplet. In the case of correction type 4, the target pixel is changed to a medium drop. In the case of correction type 5, the pixel of interest when matched with the small droplet addition pattern is a small droplet, the pixel of interest when matched with the medium droplet additional pattern is a medium droplet, and attention when matching with the droplet type change pattern The pixel is changed to a medium drop.

その結果、同一のソース(補正元のフォントデータ)に基づいて、補正タイプに応じて以下のような補正結果が得られる。図11は、補正タイプに応じたジャギー補正結果の例を示す図である。   As a result, the following correction result is obtained according to the correction type based on the same source (correction source font data). FIG. 11 is a diagram illustrating an example of a jaggy correction result corresponding to the correction type.

同図において、最上段は補正前の状態(ソース)を示す。2段目は、補正タイプ1の補正結果を示す。当該補正結果では、ブランクであった画素の一部に小滴が追加されている。3段目は、補正タイプ2の補正結果を示す、当該補正結果では、ブランクであった画素の一部に中滴が追加されている。4段目は、補正タイプ3の補正結果を示す。当該補正結果では、ブランクであった画素の一部に小敵又は中滴が追加されている。5段目は、補正タイプ4の補正結果を示す。当該補正結果では、大滴であった画素の一部が中滴に変更されている。6段目は、補正タイプ5の補正結果を示す。当該補正結果では、当該補正結果では、ブランクであった画素の一部に小敵又は中滴が追加され、更に、大滴であった画素の一部が中滴に変更されている。   In the figure, the top row shows a state (source) before correction. The second row shows the correction type 1 correction result. In the correction result, a small droplet is added to a part of the pixel that was blank. The third row shows correction type 2 correction results. In the correction results, medium drops are added to some of the pixels that were blank. The fourth row shows the correction type 3 correction result. In the correction result, small enemies or medium drops are added to some of the blank pixels. The fifth row shows the correction type 4 correction result. In the correction result, some of the pixels that were large droplets are changed to medium droplets. The sixth row shows the correction type 5 correction result. In the correction result, in the correction result, a small enemy or a medium drop is added to a part of the pixel that is blank, and a part of the pixel that is a large drop is changed to a medium drop.

上述したように、本実施の形態におけるホストコンピュータ10は、ジャギー補正の補正タイプをユーザに選択させることができ、選択された補正タイプに応じた補正処理を実行する。したがって、ユーザの好みに応じたジャギー補正を実行することができる。   As described above, the host computer 10 according to the present embodiment can cause the user to select a correction type for jaggy correction, and executes a correction process according to the selected correction type. Therefore, it is possible to execute jaggy correction according to the user's preference.

また、補正タイプに応じて利用される参照パターンは、容易に書き換え可能な補正定義ファイル18において定義されている。したがって、補正タイプに応じた参照パターンを、ジャギー補正部162に係るプログラムのソースコードを変更することなく簡便に変更することができる。このことは、ジャギー補正の内容を容易に変更できることを意味する。   The reference pattern used according to the correction type is defined in the correction definition file 18 that can be easily rewritten. Therefore, the reference pattern corresponding to the correction type can be easily changed without changing the source code of the program related to the jaggy correction unit 162. This means that the contents of the jaggy correction can be easily changed.

なお、本実施の形態では、ホストコンピュータ10においてジャギー補正が実行される例について説明したが、プリンタ20においてジャギー補正が行われてもよい。この場合、プリンタ20が画像処理装置に相当する。   In this embodiment, the example in which the host computer 10 performs jaggy correction has been described. However, the printer 20 may perform jaggy correction. In this case, the printer 20 corresponds to an image processing apparatus.

以上、本発明の実施例について詳述したが、本発明は斯かる特定の実施形態に限定されるものではなく、特許請求の範囲に記載された本発明の要旨の範囲内において、種々の変形・変更が可能である。   As mentioned above, although the Example of this invention was explained in full detail, this invention is not limited to such specific embodiment, In the range of the summary of this invention described in the claim, various deformation | transformation・ Change is possible.

本発明の実施の形態におけるシステム構成例を示す図である。It is a figure which shows the system configuration example in embodiment of this invention. 本発明の実施の形態におけるホストコンピュータの機能構成例を示す図である。It is a figure which shows the function structural example of the host computer in embodiment of this invention. 本発明の実施の形態におけるホストコンピュータのハードウェア構成例を示す図である。It is a figure which shows the hardware structural example of the host computer in embodiment of this invention. フォントデータの一部の画素の例を概念的に示す図である。It is a figure which shows notionally the example of the one part pixel of font data. パターンマッチングに用いられる仮想的なウィンドウの例を示す図である。It is a figure which shows the example of the virtual window used for pattern matching. ジャギー補正部によるジャギー補正処理の処理手順を説明するためのフローチャートである。It is a flowchart for demonstrating the process sequence of the jaggy correction process by a jaggy correction | amendment part. 参照パターンの例を示す図である。It is a figure which shows the example of a reference pattern. ジャギー補正の前処理を説明するためのフローチャートである。It is a flowchart for demonstrating the pre-process of jaggy correction. 補正タイプを説明するための図である。It is a figure for demonstrating a correction type. 補正定義ファイルの構成例を示す図である。It is a figure which shows the structural example of a correction definition file. 補正タイプに応じたジャギー補正結果の例を示す図である。It is a figure which shows the example of the jaggy correction result according to a correction type.

符号の説明Explanation of symbols

10 ホストコンピュータ
11 アプリケーション
12 描画データメモリ
13 ラスタライザ
14 ラスタデータメモリ
15 インタフェース部
16 フォント処理部
17 フォントデータメモリ
18 補正定義ファイル
19 印刷設定UI部19
20 プリンタ
100 ドライブ装置
101 記録媒体
102 補助記憶装置
103 メモリ装置
104 CPU
105 インタフェース装置
106 表示装置
107 入力装置
B バス
10 host computer 11 application 12 drawing data memory 13 rasterizer 14 raster data memory 15 interface unit 16 font processing unit 17 font data memory 18 correction definition file 19 print setting UI unit 19
20 Printer 100 Drive device 101 Recording medium 102 Auxiliary storage device 103 Memory device 104 CPU
105 interface device 106 display device 107 input device B bus

Claims (11)

インクジェットプリンタに印刷させる画像データに関する画像処理を実行する画像処理装置であって、
前記画像データについてジャギー補正の種類の指定を受け付ける補正種類入力手段と、
前記ジャギー補正の種類に基づいてパターンマッチングに用いる参照パターンを決定する参照パターン決定手段と、
前記参照パターンを用いて前記画像データに対してパターンマッチングを行い、マッチした範囲における所定の画素について前記補正の種類に応じた処理を実行する補正手段とを有することを特徴とする画像処理装置。
An image processing apparatus that executes image processing related to image data to be printed by an inkjet printer,
Correction type input means for accepting designation of the type of jaggy correction for the image data;
Reference pattern determining means for determining a reference pattern used for pattern matching based on the type of the jaggy correction;
An image processing apparatus comprising: a correction unit configured to perform pattern matching on the image data using the reference pattern, and to execute a process according to the type of correction on a predetermined pixel in the matched range.
前記ジャギー補正の種類に応じた前記参照パターンを識別するための情報を含む定義ファイルが記録された記憶手段を有し、
前記参照パターン決定手段は、前記定義ファイルを用いてパターンマッチングに用いる参照パターンを決定することを特徴とする請求項1記載の画像処理装置。
A storage unit in which a definition file including information for identifying the reference pattern according to the type of the jaggy correction is recorded;
The image processing apparatus according to claim 1, wherein the reference pattern determination unit determines a reference pattern used for pattern matching using the definition file.
前記補正の種類は、前記所定の画素に適用されるインク滴のサイズに応じて異なることを特徴とする請求項1又は2記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the type of correction differs according to a size of an ink droplet applied to the predetermined pixel. 前記補正の種類は、前記所定の画素について適用対象とされるインク滴のサイズの組み合わせに応じて異なることを特徴とする請求項1乃至3いずれか一項記載の画像処理装置。   4. The image processing apparatus according to claim 1, wherein the type of correction differs according to a combination of ink droplet sizes to be applied to the predetermined pixel. 5. 前記参照パターン決定手段は、前記画像データを印刷させる解像度に応じて前記参照パターンのサイズを決定し、前記参照パターンのサイズと前記ジャギー補正の種類とに基づいてパターンマッチングに用いる参照パターンを決定することを特徴とする請求項1乃至4いずれか一項記載の画像処理装置。   The reference pattern determining means determines the size of the reference pattern according to the resolution at which the image data is printed, and determines a reference pattern used for pattern matching based on the size of the reference pattern and the type of jaggy correction The image processing apparatus according to claim 1, wherein the image processing apparatus is an image processing apparatus. インクジェットプリンタに印刷させる画像データに関して画像処理装置が実行する画像処理方法であって、
前記画像データについてジャギー補正の種類の指定を受け付ける補正種類入力手順と、
前記ジャギー補正の種類に基づいてパターンマッチングに用いる参照パターンを決定する参照パターン決定手順と、
前記参照パターンを用いて前記画像データに対してパターンマッチングを行い、マッチした範囲における所定の画素について前記補正の種類に応じた処理を実行する補正手順とを有することを特徴とする画像処理方法。
An image processing method executed by an image processing apparatus for image data to be printed by an inkjet printer,
A correction type input procedure for accepting designation of a jaggy correction type for the image data;
A reference pattern determination procedure for determining a reference pattern used for pattern matching based on the type of the jaggy correction;
An image processing method comprising: performing a pattern matching on the image data using the reference pattern, and executing a process according to the type of correction on a predetermined pixel in the matched range.
前記画像処理装置は、前記ジャギー補正の種類に応じた前記参照パターンを識別するための情報を含む定義ファイルが記録された記憶手段を有し、
前記参照パターン決定手順は、前記定義ファイルを用いてパターンマッチングに用いる参照パターンを決定することを特徴とする請求項6記載の画像処理方法。
The image processing apparatus includes a storage unit in which a definition file including information for identifying the reference pattern according to the type of the jaggy correction is recorded.
The image processing method according to claim 6, wherein the reference pattern determination procedure determines a reference pattern to be used for pattern matching using the definition file.
前記補正の種類は、前記所定の画素に適用されるインク滴のサイズに応じて異なることを特徴とする請求項6又は7記載の画像処理方法。   The image processing method according to claim 6, wherein the type of correction varies depending on a size of an ink droplet applied to the predetermined pixel. 前記補正の種類は、前記所定の画素について適用対象とされるインク滴のサイズの組み合わせに応じて異なることを特徴とする請求項6乃至8いずれか一項記載の画像処理方法。   The image processing method according to claim 6, wherein the type of correction differs according to a combination of ink droplet sizes to be applied to the predetermined pixel. 前記参照パターン決定手順は、前記画像データを印刷させる解像度に応じて前記参照パターンのサイズを決定し、前記参照パターンのサイズと前記ジャギー補正の種類とに基づいてパターンマッチングに用いる参照パターンを決定することを特徴とする請求項6乃至9いずれか一項記載の画像処理方法。   The reference pattern determination procedure determines the size of the reference pattern according to the resolution at which the image data is printed, and determines a reference pattern used for pattern matching based on the size of the reference pattern and the type of jaggy correction The image processing method according to claim 6, wherein the image processing method is an image processing method. 請求項6乃至10いずれか一項記載の画像処理方法を画像処理装置に実行させるためのプログラム。   A program for causing an image processing apparatus to execute the image processing method according to any one of claims 6 to 10.
JP2007313956A 2007-12-04 2007-12-04 Device and method for processing image, and program Pending JP2009141529A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007313956A JP2009141529A (en) 2007-12-04 2007-12-04 Device and method for processing image, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007313956A JP2009141529A (en) 2007-12-04 2007-12-04 Device and method for processing image, and program

Publications (1)

Publication Number Publication Date
JP2009141529A true JP2009141529A (en) 2009-06-25

Family

ID=40871731

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007313956A Pending JP2009141529A (en) 2007-12-04 2007-12-04 Device and method for processing image, and program

Country Status (1)

Country Link
JP (1) JP2009141529A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019123078A (en) * 2018-01-11 2019-07-25 キヤノン株式会社 Inkjet recording device, image processing method and program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019123078A (en) * 2018-01-11 2019-07-25 キヤノン株式会社 Inkjet recording device, image processing method and program
JP7041520B2 (en) 2018-01-11 2022-03-24 キヤノン株式会社 Inkjet recording equipment, image processing methods and programs

Similar Documents

Publication Publication Date Title
US10315436B2 (en) Control device and method for printing first image and second image
JP4941153B2 (en) Device driver
US20120140249A1 (en) Information processing device, information processing method, and computer program product
JP2018116442A (en) Print control device, page data correction method, raster data generation method, page data correction program, and raster data generation program
JP4564986B2 (en) Image processing apparatus, image processing method, and image processing program
JP5025338B2 (en) Image processing apparatus, printer, image processing method, and image processing program
EP1128329A2 (en) Image processing apparatus and method
JP2009141529A (en) Device and method for processing image, and program
US9712718B2 (en) Image processing apparatus, image processing method, and storage medium
JP5359800B2 (en) Image processing apparatus and program
JP6330790B2 (en) Print control system, print control apparatus, and program
US9363414B2 (en) Halftone mechanism
EP1988490A1 (en) Selective density enhancement of graphical objects
JP5112223B2 (en) Image processing apparatus and image processing program
US20150043034A1 (en) Printing control device, printing control method, and printing control program
US8086069B2 (en) Data-generating apparatus, method, and program for image forming
JP2019004380A (en) Image processing apparatus, control method thereof, and program
JP2011124637A (en) Printing system, print data generation device, and printer
JP5131144B2 (en) Image processing apparatus, image processing program, and image forming apparatus
JP2005178178A (en) Printing system and printing control method
KR100571788B1 (en) The method of printing the appointed domain of document enlargeably
JP6866107B2 (en) Image processing equipment, image processing methods, and programs
US9729756B2 (en) Image forming system that restrains increase of print data amount, image forming apparatus, and recording medium
JP2004326659A (en) Image processor
JP2019014064A (en) Hybrid workflow system and rasterization device