JP2019114845A - Printer controller and computer program - Google Patents

Printer controller and computer program Download PDF

Info

Publication number
JP2019114845A
JP2019114845A JP2017244878A JP2017244878A JP2019114845A JP 2019114845 A JP2019114845 A JP 2019114845A JP 2017244878 A JP2017244878 A JP 2017244878A JP 2017244878 A JP2017244878 A JP 2017244878A JP 2019114845 A JP2019114845 A JP 2019114845A
Authority
JP
Japan
Prior art keywords
print
pixel
correction process
edge
fluctuation
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
JP2017244878A
Other languages
Japanese (ja)
Inventor
上田 昌史
Masashi Ueda
昌史 上田
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.)
Brother Industries Ltd
Original Assignee
Brother Industries 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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2017244878A priority Critical patent/JP2019114845A/en
Publication of JP2019114845A publication Critical patent/JP2019114845A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Facsimile Image Signal Circuits (AREA)

Abstract

To improve the appearance of a print image, by compensating for the intensity of an edge appropriately.SOLUTION: A printer controller for controlling a print execution part includes: an image acquisition part for acquiring object image data; a condition acquisition part for acquiring condition information indicating print conditions for printing a print image based on an object image; a calculation part for calculating a feature amount related to variation of the values of multiple peripheral pixels by using the values of the multiple peripheral pixels located on the periphery of a target pixel in the object image; a determination part for determining correction processing to be applied to the target pixel on the basis of the feature amount and the condition information, and correcting the intensity of an edge in the object image including the target pixel; a generation part for executing generation processing including the determined correction processing for the object image data, and generating print image data indicating the print image; and a print control part for controlling the print execution part to print the print image according to the print image data.SELECTED DRAWING: Figure 8

Description

本明細書は、対象画像データを用いて印刷画像データを生成するための画像処理に関する。   The present specification relates to image processing for generating print image data using target image data.

特許文献1には、複合機が印刷時に実行する画像処理が開示されている。この画像処理では、処理対象画素を中心とする周辺画素群における画素信号値の変動の大きさや頻度等に応じて、エッジ強調の補正強度を変更する画像処理が開示されている。この画像処理によれば、エッジ強調により発生し得る弊害、例えば、モアレの発生を低減できる、とされている。   Patent Document 1 discloses image processing that a multifunction peripheral executes at the time of printing. In this image processing, image processing is disclosed in which the correction strength of edge emphasis is changed according to the magnitude and frequency of the fluctuation of pixel signal values in peripheral pixel groups centering on the processing target pixel. According to this image processing, it is possible to reduce the occurrence of adverse effects that may occur due to edge enhancement, for example, moiré.

特開2008−11268号公報JP, 2008-11268, A

しかしながら、より適切に画像内のエッジの強度の補正の程度を決定することができれば、印刷画像の見栄えをさらに向上し得る。   However, if the degree of correction of the edge intensity in the image can be determined more appropriately, the appearance of the printed image can be further improved.

本明細書は、エッジの強度を適切に補正することで、印刷画像の見栄えを向上できる技術を開示する。   The present specification discloses a technique that can improve the appearance of a printed image by appropriately correcting the edge strength.

本明細書に開示された技術は、上述の課題の少なくとも一部を解決するためになされたものであり、以下の適用例として実現することが可能である。   The technology disclosed in the present specification is made to solve at least a part of the above-mentioned problems, and can be realized as the following application example.

[適用例1]色材を用いて画像を印刷する印刷実行部を制御する印刷制御装置であって、
対象画像を示す対象画像データを取得する画像取得部と、前記対象画像に基づく印刷画像を印刷するための印刷条件を示す条件情報を取得する条件取得部と、前記対象画像内の注目画素の周辺に位置する複数個の周辺画素の値を用いて、前記複数個の周辺画素の値の変動に関する特徴量を算出する算出部と、前記特徴量と前記条件情報とに基づいて、前記注目画素に適用すべき補正処理であって、前記注目画素を含む前記対象画像内のエッジの強度を補正する処理である前記補正処理を決定する決定部と、前記対象画像データに対して、決定済みの前記補正処理を含む生成処理を実行して、前記印刷画像を示す印刷画像データを生成する生成部と、前記印刷画像データに従って、前記印刷実行部に前記印刷画像を印刷させる印刷制御部と、を備える、印刷制御装置。
Application Example 1 A printing control apparatus that controls a printing execution unit that prints an image using a color material,
An image acquisition unit for acquiring target image data indicating a target image, a condition acquisition unit for acquiring condition information indicating a printing condition for printing a print image based on the target image, and a periphery of a target pixel in the target image Calculating the feature amount related to the variation of the values of the plurality of peripheral pixels using the values of the plurality of peripheral pixels located on the target pixel, based on the feature amount and the condition information; A determination unit that determines the correction process, which is a correction process to be applied and is a process of correcting an intensity of an edge in the target image including the pixel of interest; A generation unit that executes generation processing including correction processing to generate print image data indicating the print image; and a print control unit that causes the print execution unit to print the print image according to the print image data. Obtain, print control apparatus.

上記構成によれば、複数個の周辺画素の値の変動に関する特徴量に加えて、印刷条件を示す条件情報に基づいて決定される補正処理によって、注目画素の値が補正される。この結果、印刷条件に応じて、画像内のエッジの強度を補正できる。したがって、画像内のエッジの強度を適切に補正することで、印刷画像の見栄えを向上できる。   According to the above configuration, the value of the pixel of interest is corrected by the correction processing determined based on the condition information indicating the printing condition, in addition to the feature amount related to the fluctuation of the values of the plurality of peripheral pixels. As a result, it is possible to correct the edge strength in the image according to the printing conditions. Therefore, the appearance of the printed image can be improved by appropriately correcting the edge intensity in the image.

なお、本明細書に開示される技術は、種々の形態で実現することが可能であり、例えば、複合機、スキャナ、プリンタ、画像処理方法、これら装置の機能または上記方法を実現するためのコンピュータプログラム、そのコンピュータプログラムを記録した記録媒体、等の形態で実現することができる。   The technology disclosed in the present specification can be realized in various forms, and for example, a multifunction machine, a scanner, a printer, an image processing method, a function of these devices, or a computer for realizing the above method. The present invention can be realized in the form of a program, a recording medium recording the computer program, and the like.

実施例における印刷制御装置としての端末装置100とプリンタ300との構成を示すブロック図である。FIG. 2 is a block diagram showing configurations of a terminal device 100 as a print control device and a printer 300 in the embodiment. 印刷処理のフローチャートである。5 is a flowchart of print processing. 本実施例で用いられる対象画像の一例を示す図である。It is a figure which shows an example of the target image used by a present Example. 補正処理のフローチャートである。5 is a flowchart of correction processing. 補正パラメータの算出の説明図である。It is an explanatory view of calculation of a correction parameter. エッジ強調フィルタの一例を示す図である。It is a figure which shows an example of an edge emphasis filter. 平滑化フィルタの一例を示す図である。It is a figure which shows an example of a smoothing filter. 第1実施例のフィルタ選択テーブルFT1の一例を示す図である。It is a figure which shows an example of filter selection table FT1 of 1st Example. 第2実施例のフィルタ選択テーブルFT2の一例を示す図である。It is a figure which shows an example of filter selection table FT2 of 2nd Example. 第3実施例のフィルタ選択テーブルFT3の一例を示す図である。It is a figure which shows an example of filter selection table FT3 of 3rd Example. 変形例のフィルタ選択テーブルFT4の一例を示す図である。It is a figure which shows an example of filter selection table FT4 of a modification. 変形例のフィルタ選択テーブルFT5の一例を示す図である。It is a figure which shows an example of filter selection table FT5 of a modification. 変形例のフィルタ選択テーブルFT6の一例を示す図である。It is a figure which shows an example of filter selection table FT6 of a modification.

A.実施例:
A−1:印刷制御装置の構成
次に、実施の形態を実施例に基づき説明する。図1は、実施例における印刷制御装置としての端末装置100と、プリンタ300と、の構成を示すブロック図である。端末装置100とプリンタ300とは、有線または無線の通信によって、互いに通信可能に接続されている。
A. Example:
A-1: Configuration of Print Control Device Next, an embodiment will be described based on an example. FIG. 1 is a block diagram showing the configuration of a terminal device 100 as a print control device and a printer 300 in the embodiment. The terminal device 100 and the printer 300 are communicably connected to each other by wired or wireless communication.

端末装置100は、端末装置100のユーザが利用する計算機であり、例えば、パーソナルコンピュータやスマートフォンである。端末装置100は、端末装置100のコントローラとしてのCPU110と、RAMなどの揮発性記憶装置120と、ハードディスクドライブやフラッシュメモリなどの不揮発性記憶装置130と、液晶ディスプレイなどの表示部140と、液晶パネルと重畳されたタッチパネルやボタンなどの操作部150と、通信インタフェース(IF)170と、プリンタ300と、を備えている。端末装置100は、通信インタフェース170を介して、プリンタ300などの外部装置と通信可能に接続される。通信インタフェース170は、例えば、USBインタフェース、有線LANインタフェース、IEEE802.11の無線インタフェースである。   The terminal device 100 is a computer used by the user of the terminal device 100, and is, for example, a personal computer or a smartphone. The terminal device 100 includes a CPU 110 as a controller of the terminal device 100, a volatile storage device 120 such as a RAM, a non-volatile storage device 130 such as a hard disk drive or a flash memory, a display unit 140 such as a liquid crystal display, a liquid crystal panel And a communication interface (IF) 170 and a printer 300. The terminal device 100 is communicably connected to an external device such as the printer 300 via the communication interface 170. The communication interface 170 is, for example, a USB interface, a wired LAN interface, or an IEEE 802.11 wireless interface.

揮発性記憶装置120は、CPU110が処理を行う際に生成される種々の中間データを一時的に格納するバッファ領域を提供する。不揮発性記憶装置130には、コンピュータプログラムPGが格納されている。揮発性記憶装置120や不揮発性記憶装置130は、端末装置100の内部メモリである。   The volatile storage device 120 provides a buffer area for temporarily storing various intermediate data generated when the CPU 110 performs processing. The non-volatile storage device 130 stores a computer program PG. The volatile storage device 120 and the non-volatile storage device 130 are internal memories of the terminal device 100.

コンピュータプログラムPGは、例えば、インターネットを介して接続されたサーバからダウンロードされる形態で提供され得る。これに代えて、コンピュータプログラムPGは、端末装置100の製造時に不揮発性記憶装置130に予め格納される形態、あるいは、CD−ROMなどに記録された形態で提供され得る。CPU110は、コンピュータプログラムPGを実行することにより、プリンタ300を制御するためのプリンタドライバとして機能する。CPU110は、プリンタドライバとして、例えば、後述する印刷処理を実行する。   The computer program PG can be provided, for example, as downloaded from a server connected via the Internet. Alternatively, the computer program PG may be provided in a form stored in advance in the non-volatile storage device 130 when the terminal device 100 is manufactured, or in a form recorded on a CD-ROM or the like. The CPU 110 functions as a printer driver for controlling the printer 300 by executing the computer program PG. The CPU 110 executes, for example, print processing described later as a printer driver.

プリンタ300は、本実施例では、インクを色材として用いて、インクジェット方式に従って、用紙などの被印刷媒体上にドットを形成することよって、画像を印刷する装置である。本実施例のプリンタ300は、色材として、インクを用いて、印刷を行うインクジェットプリンタである。本実施例のプリンタ300は、シアン(C)、マゼンタ(M)、イエロ(Y)、ブラック(K)の4種類のインクを用いて、カラー印刷を行う。   In the present embodiment, the printer 300 is an apparatus that prints an image by using an ink as a coloring material and forming dots on a printing medium such as a sheet according to an inkjet method. The printer 300 of this embodiment is an inkjet printer that performs printing using ink as a color material. The printer 300 according to this embodiment performs color printing using four types of ink, cyan (C), magenta (M), yellow (Y), and black (K).

A−2:印刷処理
図2は、印刷処理のフローチャートである。この印刷処理は、対象画像を示す対象画像データを用いて、プリンタ300に、対象画像に基づく印刷画像を印刷させる処理である。この印刷処理は、端末装置100のCPU110によって実行される。この印刷処理は、端末装置100が、例えば、操作部150を介して、ユーザの印刷指示を取得した場合に、開始される。
A-2: Printing Process FIG. 2 is a flowchart of the printing process. The printing process is a process of causing the printer 300 to print a print image based on a target image using target image data indicating the target image. The printing process is executed by the CPU 110 of the terminal device 100. The printing process is started, for example, when the terminal device 100 acquires a print instruction of the user via the operation unit 150.

S10では、CPU110は、印刷に用いるべき対象画像を示す対象画像データを取得する。対象画像データは、例えば、不揮発性記憶装置130に格納された複数個の画像データの中から、ユーザの指定に基づいて選択される画像データである。本実施例の対象画像データは、例えば、図示しないスキャナやデジタルカメラが、イメージセンサを用いて原稿を光学的に読み取ることによって生成される読取画像データである。これに代えて、対象画像データは、例えば、文書作成、画像生成などのアプリケーションプログラムによって作成された画像データであっても良い。   In S10, the CPU 110 acquires target image data indicating a target image to be used for printing. The target image data is, for example, image data selected from among a plurality of image data stored in the non-volatile storage device 130 based on user's designation. The target image data in this embodiment is, for example, read image data generated by a scanner or a digital camera (not shown) optically reading a document using an image sensor. Instead of this, for example, the target image data may be image data created by an application program such as document creation and image creation.

本実施例で取得される対象画像データは、複数個の画素の値を含み、複数個の画素の値のそれぞれは、画素の色をRGB値で表す。すなわち、対象画像データは、RGB画像データである。1個の画素のRGB値は、例えば、赤(R)と緑(G)と青(B)との3個の成分値(以下、R値、G値、B値とも呼ぶ)を含んでいる。なお、取得される対象画像データが、RGB画像データではない場合には、例えば、該対象画像データに対して、ラスタライズ処理などの変換処理が実行されて、RGB画像データに変換される。   The target image data acquired in this embodiment includes the values of a plurality of pixels, and each of the values of the plurality of pixels represents the color of the pixel by an RGB value. That is, the target image data is RGB image data. The RGB values of one pixel include, for example, three component values of red (R), green (G) and blue (B) (hereinafter also referred to as R value, G value, B value) . If the target image data to be acquired is not RGB image data, conversion processing such as rasterization processing is performed on the target image data, for example, to convert it into RGB image data.

図3は、本実施例で用いられる対象画像の一例を示す図である。この対象画像OI1は、下地BGと、下地BG上に配置される文字TXや写真IMなどのオブジェクトと、を含んでいる。   FIG. 3 is a view showing an example of a target image used in the present embodiment. The target image OI1 includes a background BG, and an object such as a character TX or a photo IM disposed on the background BG.

S15では、CPU110は、印刷条件情報を取得する。第1実施例では、印刷条件情報として、印刷画像を印刷するための用紙の材質を示す材質情報を少なくとも取得する。材質情報は、例えば、図示しないUI画面を介して、印刷指示とともに入力される印刷条件情報に含まれる。本実施例にて想定される用紙の材質は、普通紙と、光沢紙と、の2種類である。光沢紙は、普通紙と比較して、インクの滲みが発生し難い特徴を有する。   At S15, the CPU 110 acquires printing condition information. In the first embodiment, at least material information indicating the material of a sheet for printing a print image is acquired as the printing condition information. The material information is included, for example, in printing condition information input together with a print instruction via a UI screen (not shown). The material of the sheet assumed in this embodiment is two types of plain paper and glossy paper. Glossy paper is characterized in that ink bleeding is less likely to occur compared to plain paper.

S20〜S30では、CPU110は、対象画像データに対して、S20の補正処理を含む生成処理を実行して印刷画像データを生成する。S20では、CPU110は、対象画像データに対して、補正処理を実行して、補正済みの対象画像データを生成する。補正処理は、印刷条件(本実施例では、用紙の材質)に応じた補正処理を実行することで、印刷画像の見栄えを向上するための処理である。本実施例の補正処理は、対象画像内の各画素に対してフィルタ処理を適用する処理である。補正処理については後述する。   In S20 to S30, the CPU 110 executes generation processing including the correction processing of S20 on the target image data to generate print image data. In S20, the CPU 110 executes correction processing on the target image data to generate corrected target image data. The correction process is a process for improving the appearance of the print image by executing the correction process according to the printing conditions (in the present embodiment, the material of the sheet). The correction process of the present embodiment is a process of applying the filter process to each pixel in the target image. The correction process will be described later.

S25では、CPU110は、補正済みの対象画像データ(本実施例ではRGB画像データ)に対して、色変換プロファイルを用いた色変換処理を実行して、CMYK値で画素ごとの色を表すCMYK画像データを生成する。CMYK値は、印刷に用いられる複数種類のインクの色(本実施例では、CMYK)に対応する複数個の成分値(本実施例では、C値、M値、Y値、K値)を含む色値である。本実施例では、R値、G値、B値、C値、M値、Y値、K値は、それぞれ、8ビット(256階調)の値である。色変換プロファイルは、例えば、RGB値とCMYK値との対応関係を規定する公知のルックアップテーブルである。   In S25, the CPU 110 executes color conversion processing using a color conversion profile on the corrected target image data (RGB image data in this embodiment), and a CMYK image representing the color of each pixel with the CMYK value Generate data. The CMYK values include a plurality of component values (C value, M value, Y value, K value in the present embodiment) corresponding to colors of the plurality of types of ink used in printing (in the present embodiment, CMYK) It is a color value. In this embodiment, the R value, the G value, the B value, the C value, the M value, the Y value, and the K value are each 8-bit (256 gradations) values. The color conversion profile is, for example, a known lookup table that defines the correspondence between RGB values and CMYK values.

S30では、CPU110は、生成されたCMYK画像データに対してハーフトーン処理を実行して、印刷画像データとしてのドットデータを生成する。ドットデータは、ドットの形成状態を画素ごと、かつ、色材ごとに表す。ドットデータに含まれる各画素の値は、例えば、「大ドット」、「中ドット」、「小ドット」、「ドット無し」の4つのドットの形成状態のいずれかを示す。これに代えて、ドットデータに含まれる各画素の値は、「ドット有り」、「ドット無し」の2つのドットの形成状態のいずれかを示しても良い。ハーフトーン処理には、例えば、誤差拡散法に従う処理が用いられる。   In S30, the CPU 110 executes halftone processing on the generated CMYK image data to generate dot data as print image data. The dot data represents the dot formation state for each pixel and for each color material. The value of each pixel included in the dot data indicates, for example, any of the formation states of four dots of “large dot”, “medium dot”, “small dot”, and “no dot”. Instead of this, the value of each pixel included in the dot data may indicate either of the formation state of two dots of “dot present” and “dot absent”. For the halftoning process, for example, a process according to an error diffusion method is used.

S35では、CPU110は、ドットデータを用いて印刷ジョブを生成する。例えば、CPU110は、ドットデータを、プリンタ300を用いて印刷を行う際に用いられる順番に並べ替える処理と、ドットデータにプリンタ制御コードやデータ識別コードを付加する処理と、を実行する。この結果、プリンタ300によって解釈可能な印刷ジョブが生成される。S40では、CPU110は、生成された印刷ジョブを、プリンタ300に送信する。プリンタ300は、端末装置100から送信された印刷ジョブに従って、印刷画像データ(ドットデータ)によって示される印刷画像を印刷する。
る。
In S35, the CPU 110 generates a print job using dot data. For example, the CPU 110 executes a process of rearranging dot data in the order used when printing using the printer 300 and a process of adding a printer control code and a data identification code to the dot data. As a result, a print job interpretable by the printer 300 is generated. In S40, the CPU 110 transmits the generated print job to the printer 300. The printer 300 prints a print image indicated by print image data (dot data) in accordance with the print job transmitted from the terminal device 100.
Ru.

A−3:補正処理
図2のS20の補正処理について説明する。補正処理は、上述したように、対象画像内の各画素に対してフィルタ処理を適用して、補正済みの対象画像データを生成する処理である。図4は、補正処理のフローチャートである。図5は、補正パラメータの算出の説明図である。
A-3: Correction Process The correction process of S20 of FIG. 2 will be described. As described above, the correction process is a process of applying the filter process to each pixel in the target image to generate corrected target image data. FIG. 4 is a flowchart of the correction process. FIG. 5 is an explanatory diagram of calculation of the correction parameter.

S100では、CPU110は、対象画像OI内の複数個の画素の中から、1個の注目画素CPを選択する。S105では、CPU110は、1個の注目画素CPを含む周辺領域AAを設定する。図5(A)、(B)に示すように、周辺領域AAは、本実施例では、注目画素CPを中心とする縦7画素×横7画素の矩形の領域である。周辺領域AA内の注目画素CPを除いた複数個の画素を、注目画素CPの周辺に位置する複数個の周辺画素SPとも呼ぶ。図5(A)、(B)の例では、周辺領域AAには、1個の注目画素CPと、48個の周辺画素SPと、が含まれる。変形例としては、周辺領域AAのサイズには、他の任意のサイズ、例えば、縦5画素×横5画素、縦9画素×横9画素などのサイズが採用され得る。   In S100, the CPU 110 selects one target pixel CP from among the plurality of pixels in the target image OI. In S105, the CPU 110 sets a peripheral area AA including one target pixel CP. As shown in FIGS. 5A and 5B, in the present embodiment, the peripheral area AA is a rectangular area of 7 vertical pixels × 7 horizontal pixels centered on the pixel of interest CP. The plurality of pixels excluding the target pixel CP in the peripheral area AA are also referred to as a plurality of peripheral pixels SP located around the target pixel CP. In the example of FIGS. 5A and 5B, the peripheral area AA includes one target pixel CP and 48 peripheral pixels SP. As a modification, for the size of the peripheral area AA, any other size, for example, a size of 5 pixels vertically × 5 pixels horizontally, 9 pixels vertically × 9 pixels horizontally, etc. may be adopted.

S110では、CPU110は、注目画素CPの値(本実施例ではRGB値)と、周辺領域AA内の複数個の周辺画素SPの値と、を用いて、複数個の周辺画素SPの値の変動に関する特徴量である変動パラメータAPを算出する。本実施例では、変動パラメータAPとして、変動速度VSを算出する。変動速度VSは、周辺領域AAにおいて、画素の位置の変動に対して画素の値が変動する程度を示す補正パラメータである。   In S110, the CPU 110 changes the values of the plurality of peripheral pixels SP using the value of the target pixel CP (RGB values in this embodiment) and the values of the plurality of peripheral pixels SP in the peripheral area AA. The variation parameter AP, which is a feature quantity relating to In the present embodiment, the fluctuation speed VS is calculated as the fluctuation parameter AP. The fluctuation speed VS is a correction parameter indicating the degree to which the value of the pixel fluctuates with respect to the fluctuation of the position of the pixel in the peripheral area AA.

具体的には、CPU110は、縦方向、横方向、2個の斜め方向の4個の方向のそれぞれについて、その方向に沿って並び、かつ、注目画素CPを含む7個の周辺画素SPを選択する。例えば、図5(A)に示す画素群PL1は、横方向の7個の周辺画素SPを示し、画素群PL2は、縦方向の7個の周辺画素SPを示す。図5(B)に示す画素群PL3、PL4は、それぞれ、斜め方向の7個の周辺画素SPを示す。   Specifically, the CPU 110 selects seven peripheral pixels SP including the pixel of interest CP, which are arranged along the four directions of the vertical direction, the horizontal direction, and the two oblique directions. Do. For example, a pixel group PL1 shown in FIG. 5A indicates seven peripheral pixels SP in the horizontal direction, and a pixel group PL2 indicates seven peripheral pixels SP in the vertical direction. Pixel groups PL3 and PL4 shown in FIG. 5B respectively indicate seven peripheral pixels SP in the oblique direction.

CPU110は、選択された7個の画素の輝度Lを算出する。輝度Lは、例えば、予め決められた演算式に従って、行われる。本実施例では、以下の演算式が用いられる。
L=(0.25R+0.5G+0.25B)/255
The CPU 110 calculates the luminance L of the selected seven pixels. The luminance L is performed, for example, in accordance with a predetermined arithmetic expression. In the present embodiment, the following arithmetic expression is used.
L = (0.25R + 0.5G + 0.25B) / 255

図5(C)には、1つの方向についての7個の画素の輝度Lの一例が図示されている。7個の画素のうち、注目画素CPには、識別子として「i」が付され、6個の周辺画素SPには、それぞれ、図5(C)の左側から順に、識別子として(i−3)〜(i−1)、(i+1)〜(i+3)が付されている。以下、識別子が末尾に付された符号は、該識別子を付された画素に関する値を示す。例えば、画素(i−1)の輝度Lは、輝度L(i−1)と表す。   FIG. 5C shows an example of the luminance L of seven pixels in one direction. Among the seven pixels, “i” is attached as an identifier to the noticed pixel CP, and each of the six peripheral pixels SP is sequentially added as an identifier (i-3) from the left side of FIG. 5C. To (i-1) and (i + 1) to (i + 3) are attached. Hereinafter, a code attached with an identifier at the end indicates a value related to the pixel attached with the identifier. For example, the luminance L of the pixel (i-1) is expressed as luminance L (i-1).

CPU110は、4方向のそれぞれについて、注目画素CP(図5(C)の画素i)の両側に隣接する2個の周辺画素SPの輝度Lの差分(一次差分ΔL1とも呼ぶ)を算出する。画素iの一次差分ΔL1(i)は、{L(i+1)−L(i−1)}である。CPU110は、当該一次差分ΔL1(i)の絶対値が最大である方向を、注目方向として決定する。   The CPU 110 calculates, for each of the four directions, the difference (also referred to as a primary difference ΔL1) of the luminance L of two neighboring pixels SP adjacent to both sides of the pixel of interest CP (pixel i in FIG. 5C). The primary difference ΔL1 (i) of the pixel i is {L (i + 1) −L (i−1)}. The CPU 110 determines the direction in which the absolute value of the first-order difference ΔL1 (i) is maximum as the attention direction.

CPU110は、注目方向の7個の画素のうちの5個の画素(i−2)〜(i+2)のそれぞれについて、輝度Lの一次差分ΔL1(i−2)〜ΔL1(i+2)を算出する。例えば、画素(i−2)の一次差分ΔL1(i−2)は、{L(i−1)−L(i−3)}であり、画素i(注目画素CP)の一次差分ΔL1(i)は、上述のように{L(i+1)−L(i−1)}である。図5(C)の例では、5個の画素(i−2)〜(i+2)の一次差分ΔL1(i−2)〜ΔL1(i+2)は、それぞれ、20、−100、−100、50、150である。   The CPU 110 calculates primary differences ΔL1 (i-2) to ΔL1 (i + 2) of the luminance L for each of five pixels (i-2) to (i + 2) of seven pixels in the direction of interest. For example, the primary difference ΔL1 (i-2) of the pixel (i-2) is {L (i-1) −L (i-3)}, and the primary difference ΔL1 (i of the pixel i (target pixel CP) ) Is {L (i + 1) -L (i-1)} as described above. In the example of FIG. 5C, the primary differences ΔL1 (i-2) to ΔL1 (i + 2) of the five pixels (i-2) to (i + 2) are 20, -100, -100, 50, and 50, respectively. It is 150.

CPU110は、注目方向の5個の画素(i−2)〜(i+2)の一次差分ΔL1の絶対値の最大値を、注目画素CPの変動速度VSとして決定する。図5(C)の例では、注目画素CP(画素i)の変動速度VSは、画素(i+2)の一次差分ΔL1(i+2)の絶対値「150」である。   The CPU 110 determines the maximum value of the absolute values of the primary differences ΔL1 of the five pixels (i-2) to (i + 2) in the attention direction as the fluctuation speed VS of the attention pixel CP. In the example of FIG. 5C, the fluctuation speed VS of the pixel of interest CP (pixel i) is the absolute value “150” of the primary difference ΔL1 (i + 2) of the pixel (i + 2).

S115では、CPU110は、フィルタ選択テーブルFT1を用いて、複数個の候補フィルタの中から、使用すべき1個の使用フィルタを選択する。なお、本ステップにて選択される使用フィルタが異なれば、後述するS120にて異なる種類のフィルタ処理(注目画素の補正)が行われることになるので、使用フィルタを選択することは、注目画素CPに対して適用すべき補正処理を決定することを意味する。   In S115, the CPU 110 uses the filter selection table FT1 to select one use filter to be used from the plurality of candidate filters. Note that if different filters are selected in this step, different types of filter processing (correction of the pixel of interest) will be performed in S120 described later, so selecting the filter used is the pixel of interest CP To determine the correction process to be applied.

本実施例では、2種類のタイプと、3種類のサイズと、を組み合わせた計6種類のフィルタが候補フィルタとして用いられる。6種類のフィルタは、いずれも対象画像OI内のエッジの強度を補正するためのフィルタである。2種類のタイプは、エッジの強度を高くするエッジ強調フィルタと、エッジの強度を低くする平滑化フィルタである。3種類のサイズは、「小」と「中」と「大」である。   In the present embodiment, a total of six types of filters combining two types and three types of sizes are used as candidate filters. The six types of filters are all filters for correcting the intensity of the edge in the target image OI. Two types are an edge emphasizing filter which makes edge strength high, and a smoothing filter which makes edge strength low. The three sizes are "small", "medium" and "large".

図6は、エッジ強調フィルタの一例を示す図である。図6(A)、(B)、(C)には、サイズが「小」、「中」、「大」のエッジ強調フィルタが示されている。図6(A)の小エッジ強調フィルタFEsは、縦3個×横3個の画素のそれぞれに対応する補正係数(補正値とも呼ぶ)を規定している。すなわち、小エッジ強調フィルタFEsは、注目画素CPと、注目画素CPの周辺に位置する8個の周辺画素SPと、のそれぞれについて、対応する補正係数を規定している。例えば、小エッジ強調フィルタFEsでは、注目画素CPに対応する補正係数は、5であり、注目画素CPの上下左右に隣接する4個の周辺画素SPに対応する4個の補正係数は、−1であり、注目画素CPの左上、右上、左下、左上に位置する4個の周辺画素SPに対応する4個の補正係数は、0である。このように、フィルタは、注目画素CPに対応する補正係数に加えて、M個(Mは1以上の整数)の周辺画素SPのそれぞれについて、注目画素CPに対する相対的な位置と、対応する補正係数と、を規定した情報である、と言うことができる。   FIG. 6 is a diagram showing an example of the edge emphasis filter. In FIGS. 6A, 6B, and 6C, edge emphasis filters having the sizes "small", "medium", and "large" are shown. The small edge emphasis filter FEs of FIG. 6A defines a correction coefficient (also referred to as a correction value) corresponding to each of the 3 vertical pixels × 3 horizontal pixels. That is, the small edge emphasis filter FEs defines a corresponding correction coefficient for each of the target pixel CP and the eight peripheral pixels SP located around the target pixel CP. For example, in the small edge emphasis filter FEs, the correction coefficient corresponding to the pixel of interest CP is 5, and the four correction coefficients corresponding to four neighboring pixels SP adjacent to the pixel of interest CP vertically and horizontally are −1 The four correction coefficients corresponding to the four peripheral pixels SP located at the upper left, upper right, lower left, and upper left of the target pixel CP are zero. Thus, in addition to the correction coefficient corresponding to the pixel of interest CP, the filter corrects the relative position of the pixel of interest CP with respect to each of the M (M is an integer of 1 or more) peripheral pixels SP and the corresponding correction. It can be said that it is the information which specified the coefficient.

なお、小エッジ強調フィルタFEsを用いた補正では、注目画素CPと周辺画素SPとを含むフィルタ範囲内の9個の画素の値に、それぞれ、小エッジ強調フィルタFEsに規定される対応する係数を乗じて、9個の修正値が算出される。そして、該9個の修正値の和が、補正済みの注目画素CPの値として算出される。このことから解るように、対応する補正係数が0である周辺画素SPの値は、補正には用いられない。このために、小エッジ強調フィルタFEsでは、8個の周辺画素SPについて補正係数を規定しているが、補正に用いられる周辺画素SPの個数は、4個である。   In the correction using the small edge emphasis filter FEs, values of nine pixels in the filter range including the target pixel CP and the peripheral pixel SP respectively have corresponding coefficients defined in the small edge emphasis filter FEs. By multiplying, nine correction values are calculated. Then, the sum of the nine correction values is calculated as the value of the corrected target pixel CP. As understood from this, the value of the peripheral pixel SP whose corresponding correction coefficient is 0 is not used for correction. For this reason, in the small edge emphasis filter FEs, correction coefficients are specified for eight peripheral pixels SP, but the number of peripheral pixels SP used for correction is four.

図6(B)の中エッジ強調フィルタFEmは、縦3個×横3個の画素のそれぞれに対応する補正係数を規定している。すなわち、中エッジ強調フィルタFEmは、注目画素CPと、注目画素CPの周辺に位置する8個の周辺画素SPと、のそれぞれについて、対応する補正係数を規定している。例えば、中エッジ強調フィルタFEmでは、注目画素CPに対応する補正係数は、5であり、注目画素CPの上下左右に隣接する4個の周辺画素SPに対応する4個の補正係数は、0であり、注目画素CPの左上、右上、左下、左上に位置する4個の周辺画素SPに対応する4個の補正係数は、−1である。中エッジ強調フィルタFEmでは、対応する補正係数が0とは異なる周辺画素SPの個数は、4個である。このために、中エッジ強調フィルタFEmでは、補正に用いられる周辺画素SPの個数は、4個である。   The middle edge emphasizing filter FEm in FIG. 6B defines a correction coefficient corresponding to each of 3 vertical pixels × 3 horizontal pixels. That is, the middle edge emphasizing filter FEm defines corresponding correction coefficients for each of the target pixel CP and eight peripheral pixels SP located around the target pixel CP. For example, in the middle edge emphasizing filter FEm, the correction coefficient corresponding to the pixel of interest CP is 5, and the four correction coefficients corresponding to four neighboring pixels SP adjacent to the pixel of interest CP vertically and horizontally are 0 The four correction coefficients corresponding to the four peripheral pixels SP located at the upper left, upper right, lower left, and upper left of the pixel of interest CP are −1. In the middle edge emphasizing filter FEm, the number of peripheral pixels SP whose corresponding correction coefficient is different from 0 is four. For this reason, in the middle edge emphasizing filter FEm, the number of peripheral pixels SP used for correction is four.

図6(C)の大エッジ強調フィルタFElは、縦5個×横5個の画素のそれぞれに対応する補正係数を規定している。すなわち、大エッジ強調フィルタFElは、注目画素CPと、注目画素CPの周辺に位置する24個の周辺画素SPと、のそれぞれについて、対応する補正係数を規定している。例えば、大エッジ強調フィルタFElでは、注目画素CPに対応する補正係数は、5であり、24個の周辺画素SPのうち、上下左右の辺の中央に位置する4個の周辺画素SPに対応する4個の補正係数は、−1であり、残りの20個の周辺画素SPに対応する20個の補正係数は、0である。大エッジ強調フィルタFElでは、対応する補正係数が0とは異なる周辺画素SPの個数は、4個である。このために、大エッジ強調フィルタFElでは、補正に用いられる周辺画素SPの個数は、4個である。   The large edge emphasis filter FEl shown in FIG. 6C defines correction coefficients corresponding to each of 5 vertical pixels × 5 horizontal pixels. That is, the large edge emphasis filter FEl defines corresponding correction coefficients for each of the target pixel CP and the 24 peripheral pixels SP located around the target pixel CP. For example, in the large edge emphasizing filter FEl, the correction coefficient corresponding to the target pixel CP is 5, and among the 24 peripheral pixels SP, it corresponds to four peripheral pixels SP located at the center of the upper, lower, left, and right sides. The four correction factors are −1, and the 20 correction factors corresponding to the remaining 20 peripheral pixels SP are zero. In the large edge emphasis filter FEl, the number of peripheral pixels SP whose corresponding correction coefficient is different from 0 is four. For this reason, in the large edge emphasis filter FEl, the number of peripheral pixels SP used for correction is four.

ここで、フィルタのサイズは、補正に用いられる複数個の周辺画素SPのうちの注目画素CPから最も離れた最遠周辺画素FPと、注目画素CPと、の間の距離Dによって示すことができる。すなわち、最遠周辺画素FPと注目画素CPとの間の距離Dが大きいほど、フィルタのサイズが大きいと言うことができる。ここで、小エッジ強調フィルタFEsの距離Desは、1であり、中エッジ強調フィルタFEmの距離Demは、SQRT(2)であり、大エッジ強調フィルタFElの距離Delは、2である。ここで、SQRT(a)は、aの平方根を意味する。   Here, the size of the filter can be indicated by the distance D between the farthest peripheral pixel FP farthest from the target pixel CP among the plurality of peripheral pixels SP used for correction and the target pixel CP. . That is, it can be said that the filter size is larger as the distance D between the farthest peripheral pixel FP and the target pixel CP is larger. Here, the distance Des of the small edge emphasis filter FEs is 1, the distance Dem of the middle edge emphasis filter FEm is SQRT (2), and the distance Del of the large edge emphasis filter FEl is 2. Here, SQRT (a) means the square root of a.

図7は、平滑化フィルタの一例を示す図である。平滑化フィルタは、画像を平滑化する平滑化処理のためのフィルタである。図7(A)、(B)、(C)には、サイズが「小」、「中」、「大」の平滑化フィルタが示されている。図7(A)の小平滑化フィルタFSsは、縦3個×横3個の画素のそれぞれに対応する補正係数を規定している。すなわち、小平滑化フィルタFSsは、注目画素CPと、注目画素CPの周辺に位置する8個の周辺画素SPとのそれぞれについて、対応する補正係数を規定している。例えば、小平滑化フィルタFSsでは、注目画素CPに対応する補正係数と、注目画素CPを囲む8個の周辺画素SPに対応する8個の補正係数は、いずれも(1/9)である。小平滑化フィルタFSsでは、対応する補正係数が0である周辺画素SPは、存在しない。   FIG. 7 is a diagram showing an example of the smoothing filter. The smoothing filter is a filter for smoothing processing that smoothes an image. FIGS. 7A, 7B, and 7C show smoothing filters having the sizes of "small", "medium", and "large". The small smoothing filter FSs of FIG. 7A defines a correction coefficient corresponding to each of 3 vertical pixels × 3 horizontal pixels. That is, the small smoothing filter FSs defines corresponding correction coefficients for each of the target pixel CP and the eight peripheral pixels SP located around the target pixel CP. For example, in the small smoothing filter FSs, the correction coefficient corresponding to the target pixel CP and the eight correction coefficients corresponding to eight peripheral pixels SP surrounding the target pixel CP are all (1/9). In the small smoothing filter FSs, there is no surrounding pixel SP whose corresponding correction coefficient is zero.

図7(B)の中平滑化フィルタFSmは、縦5個×横5個の画素のそれぞれに対応する補正係数を規定している。すなわち、中平滑化フィルタFSmは、注目画素CPと、注目画素CPの周辺に位置する24個の周辺画素SPと、のそれぞれについて、対応する補正係数を規定している。例えば、中平滑化フィルタFSmでは、注目画素CPと、中平滑化フィルタFSmの4隅に位置する4個の周辺画素SPと、中平滑化フィルタFSmの矩形の4辺の中央部分に位置する4個の周辺画素SPに対応する補正係数は、いずれも(1/9)である。そして、24個の周辺画素SPのうち、上述した4隅に位置する4個の周辺画素SPと4辺の中央部分に位置する4個の周辺画素SPとを除く、16個の周辺画素SPに対応する補正係数は、いずれも0である。このために、中平滑化フィルタFSmでは、補正に用いられる周辺画素SPの個数は、8個である。   The middle smoothing filter FSm in FIG. 7B defines a correction coefficient corresponding to each of 5 vertical pixels × 5 horizontal pixels. That is, the middle smoothing filter FSm defines corresponding correction coefficients for each of the target pixel CP and the 24 peripheral pixels SP located around the target pixel CP. For example, in the middle smoothing filter FSm, the target pixel CP, four peripheral pixels SP located at the four corners of the middle smoothing filter FSm, and the middle portion of the four sides of the middle smoothing filter FSm rectangle 4 The correction coefficients corresponding to the number of peripheral pixels SP are all (1/9). Then, among the 24 peripheral pixels SP, 16 peripheral pixels SP are excluded except the four peripheral pixels SP located at the above-mentioned four corners and the four peripheral pixels SP located at the central part of the four sides. The corresponding correction coefficients are all zero. For this reason, in the middle smoothing filter FSm, the number of peripheral pixels SP used for correction is eight.

図7(C)の大平滑化フィルタFSlは、縦7個×横7個の画素のそれぞれに対応する補正係数を規定している。すなわち、大平滑化フィルタFSlは、注目画素CPと、注目画素CPの周辺に位置する48個の周辺画素SPと、のそれぞれについて、対応する補正係数を規定している。例えば、大平滑化フィルタFSlでは、注目画素CPと、大平滑化フィルタFSlの4隅に位置する4個の周辺画素SPと、中平滑化フィルタFSmの矩形の4辺の中央部分に位置する4個の周辺画素SPに対応する補正係数は、いずれも(1/9)である。そして、48個の周辺画素SPのうち、上述した4隅に位置する4個の周辺画素SPと4辺の中央部分に位置する4個の周辺画素SPとを除く、40個の周辺画素SPに対応する補正係数は、いずれも0である。このために、大平滑化フィルタFSlでは、補正に用いられる周辺画素SPの個数は、8個である。   The large smoothing filter FS1 shown in FIG. 7C defines correction coefficients corresponding to each of the seven vertical pixels and seven horizontal pixels. That is, the large smoothing filter FS1 defines corresponding correction coefficients for each of the target pixel CP and the 48 peripheral pixels SP located around the target pixel CP. For example, in the large smoothing filter FSl, the target pixel CP, four peripheral pixels SP located at the four corners of the large smoothing filter FSl, and the central portion of the four sides of the middle smoothing filter FSm rectangle 4 The correction coefficients corresponding to the number of peripheral pixels SP are all (1/9). Then, forty peripheral pixels SP except for the four peripheral pixels SP located at the above-mentioned four corners and the four peripheral pixels SP located at the central part of the four sides among the forty-eight peripheral pixels SP. The corresponding correction coefficients are all zero. For this reason, in the large smoothing filter FSl, the number of peripheral pixels SP used for correction is eight.

ここで、フィルタのサイズは、上述したエッジ強調フィルタと同様に、補正に用いられる複数個の周辺画素SPのうちの注目画素CPから最も離れた最遠周辺画素FPと、注目画素CPと、の間の距離Dによって示すことができる。ここで、小平滑化フィルタFSsの距離Dssは、SQRT(2)であり、中平滑化フィルタFSmの距離Dsmは、SQRT(8)であり、大平滑化フィルタFSlの距離Dslは、SQRT(18)である。   Here, the size of the filter is the same as that of the above-described edge enhancement filter, of the farthest peripheral pixel FP farthest from the target pixel CP among the plurality of peripheral pixels SP used for correction, and the target pixel CP. It can be indicated by the distance D between them. Here, the distance Dss of the small smoothing filter FSs is SQRT (2), the distance Dsm of the middle smoothing filter FSm is SQRT (8), and the distance Dsl of the large smoothing filter FSl is SQRT (18 ).

以上の説明から解るように、図6、図7に示す複数個のフィルタは、互いに異なるフィルタであるので、複数個の周辺画素SPと複数個の補正係数との組み合わせが、互いに異なる。また、小平滑化フィルタFSs、中平滑化フィルタFSm、大平滑化フィルタFSlは、いずれも補正に用いられる周辺画素SPの個数は9個であるが、最遠周辺画素FPと注目画素CPとの間の距離Dが異なるので、フィルタのサイズは互いに異なる(FSs<FSm<FSl)。   As understood from the above description, since the plurality of filters shown in FIGS. 6 and 7 are different from each other, combinations of the plurality of peripheral pixels SP and the plurality of correction coefficients are different from each other. The small smoothing filter FSs, the medium smoothing filter FSm, and the large smoothing filter FSl are all nine for the number of peripheral pixels SP used for correction, but the farthest peripheral pixels FP and the target pixel CP Because the distance D between them is different, the sizes of the filters are different from each other (FSs <FSm <FSl).

なお、図6のエッジ強調フィルタのサイズが大きいほど、補正のレベルが高くなり、エッジの強度が高くなる程度が大きくなる。また、図7の平滑化フィルタのサイズが大きいほど、補正のレベルが高くなり、エッジの強度が低くされる程度が大きくなる。したがって、これらの6種類のフィルタは、補正済みのエッジの強度が低い順に、大平滑化フィルタFSl、中平滑化フィルタFSm、小平滑化フィルタFSs、小エッジ強調フィルタFEs、中エッジ強調フィルタFEm、大エッジ強調フィルタFElである。   The larger the size of the edge emphasizing filter in FIG. 6, the higher the level of correction, and the higher the degree of the edge strength. Also, the larger the size of the smoothing filter in FIG. 7, the higher the level of correction, and the greater the extent to which the edge strength is reduced. Therefore, these six types of filters are the large smoothing filter FSl, the middle smoothing filter FSm, the small smoothing filter FSs, the small edge emphasis filter FEs, the middle edge emphasis filter FEm, in descending order of the corrected edge strength. It is a large edge emphasis filter FEl.

図8は、第1実施例のフィルタ選択テーブルFT1の一例を示す図である。フィルタ選択テーブルFT1は、第1サブテーブルPT1(図8(A))と、第2サブテーブルET1(図8(B))と、を含む。第1サブテーブルPT1では、変動パラメータAPとしての変動速度VSと実現すべきエッジ強度レベルとが対応付けられている。第2サブテーブルET1では、エッジ強度レベルと使用フィルタとが対応付けられている。CPU110は、第1サブテーブルPT1を参照して、S110にて算出済みの変動速度VSに対応するエッジ強度レベルを決定する。本実施例では、S15にて取得される用紙の材質情報が普通紙を示す場合には、図8(A)にて破線で示す対応情報C11が参照されて、変動速度VSに対応するエッジ強度レベルが取得される。S15にて取得される用紙の材質情報が光沢紙を示す場合には、図8(A)にて実線で示す対応情報C12が参照されて、変動速度VSに対応するエッジ強度レベルが取得される。   FIG. 8 is a diagram showing an example of the filter selection table FT1 of the first embodiment. The filter selection table FT1 includes a first sub-table PT1 (FIG. 8 (A)) and a second sub-table ET1 (FIG. 8 (B)). In the first sub-table PT1, the fluctuation speed VS as the fluctuation parameter AP is associated with the edge strength level to be realized. In the second sub-table ET1, the edge strength level and the used filter are associated. The CPU 110 refers to the first sub-table PT1 to determine an edge strength level corresponding to the fluctuation velocity VS calculated at S110. In the present embodiment, when the material information of the sheet acquired in S15 indicates the plain paper, the correspondence information C11 indicated by the broken line in FIG. 8A is referred to, and the edge strength corresponding to the fluctuation speed VS Level is acquired. When the material information of the sheet acquired in S15 indicates glossy paper, the correspondence information C12 indicated by the solid line in FIG. 8A is referred to, and the edge strength level corresponding to the fluctuation speed VS is acquired. .

CPU110は、第2サブテーブルET1を参照して、決定済みのエッジ強度レベルに対応するフィルタを、使用フィルタとして選択する。第2サブテーブルET1は、エッジ強度レベル1〜6のそれぞれに、補正済みのエッジの強度が低い順に、大平滑化フィルタFSl、中平滑化フィルタFSm、小平滑化フィルタFSs、小エッジ強調フィルタFEs、中エッジ強調フィルタFEm、大エッジ強調フィルタFElが対応付けられている(図8(B))。   The CPU 110 refers to the second sub-table ET1 and selects a filter corresponding to the determined edge strength level as a use filter. The second sub-table ET1 includes a large smoothing filter FS1, a middle smoothing filter FSm, a small smoothing filter FSs, and a small edge emphasis filter FEs in descending order of the corrected edge strength for each of the edge intensity levels 1 to 6. , Middle edge emphasis filter FEm, and large edge emphasis filter FEl are associated (FIG. 8 (B)).

ここで、注目画素CPの変動速度VSが大きいほど、該注目画素CPは、文字TXのエッジを構成する画素もしくは文字TXのエッジの近傍に位置する画素である可能性が高くなり、写真IMや下地BGを構成する画素である可能性が低くなる。注目画素CPの変動速度VSが小さいほど、該注目画素CPは、文字TXのエッジを構成する画素もしくは文字TXのエッジの近傍に位置する画素である可能性が低くなり、写真IMや下地BGを構成する画素である可能性が高くなる。文字TXのエッジでは、輝度Lの変動が比較的急激であり、写真IMや下地BGでは、輝度Lの変動が比較的緩やかであるためである。   Here, the higher the fluctuation speed VS of the pixel of interest CP, the higher the possibility that the pixel of interest CP is a pixel forming the edge of the character TX or a pixel located in the vicinity of the edge of the character TX. The possibility of the pixel constituting the background BG is reduced. As the variation speed VS of the pixel of interest CP is smaller, the pixel of interest CP is less likely to be a pixel forming the edge of the character TX or a pixel located in the vicinity of the edge of the character TX. There is a high possibility that the pixel is a component. It is because the fluctuation of the luminance L is relatively rapid at the edge of the character TX, and the fluctuation of the luminance L is relatively gentle in the photograph IM and the background BG.

文字TXのエッジがぼけていると文字TXの可読性が低下し、見栄えも低下し得るために、文字TXのエッジを構成する画素には、エッジ強度を高める補正処理が適用されることが好ましい。一方で、写真IMや下地BGは、エッジの強度を高くすると、色のムラなどが強調されるなどによって見栄えが低下しやすく、エッジの強度を低くすることが好ましい。さらには、写真IMや下地BGを構成する画素には、対象画像データの生成に用いられた原稿内の網点が含まれ得る。これらの網点を含む印刷画像には、画質低下をもたらす現象であるモアレ(干渉縞)が発生し得る。モアレを抑制するべく、写真IMや下地BGを構成する画素には、網点を消去するために、エッジの強度を低くする補正処理が適用されることが好ましい。   Since the readability of the character TX may deteriorate and the appearance of the character TX may be degraded if the edge of the character TX is blurred, it is preferable that a correction process for increasing the edge strength be applied to the pixels forming the edge of the character TX. On the other hand, when the strength of the edge of the photo IM and the base BG is increased, the appearance is likely to be deteriorated due to the color unevenness and the like being emphasized, and it is preferable to reduce the edge strength. Furthermore, the pixels constituting the picture IM and the background BG may include halftone dots in the original used for generating the target image data. In the printed image including these halftone dots, moiré (interference fringes) may occur, which is a phenomenon leading to a decrease in image quality. In order to suppress moiré, it is preferable to apply a correction process to lower the edge intensity in order to eliminate halftone dots on the pixels constituting the picture IM and the background BG.

以上のことから、普通紙用の対応情報C11と光沢紙用の対応情報C12は、いずれも、変動速度VSが増加するに連れて、段階的に、エッジ強度レベルが高くなるように、設定されている。これによって、対象画像OIのオブジェクトの種類(文字、写真、下地)に応じて、画像内のエッジの強度を適切に補正する補正処理が実行されるように、適切な使用フィルタが選択できる。   From the above, both the correspondence information C11 for plain paper and the correspondence information C12 for glossy paper are set so that the edge strength level gradually increases as the fluctuation speed VS increases. ing. As a result, an appropriate use filter can be selected so that the correction processing for appropriately correcting the edge intensity in the image is executed according to the type (text, picture, background) of the object image OI.

さらに、図8(A)に示すように、材質情報が光沢紙を示し、かつ、変動速度VSが特定の値VSaである場合には、大平滑化フィルタFSlが使用フィルタとして選択される。そして、材質情報が普通紙を示し、かつ、変動速度VSが特定の値VSaである場合には、大平滑化フィルタFSlよりもエッジの強度が高くなる小平滑化フィルタFSsが選択される。この結果、用紙の材質に応じた適切なエッジの強度を有するように、対象画像OIを補正できる。具体的には、用紙の材質によって、インクの滲み方が異なる場合がある。例えば、用紙が普通紙である場合には、用紙が光沢紙である場合と比較して、インクの滲みの程度が大きくなる。この結果、用紙が普通紙である場合には、用紙が光沢紙である場合と比較して、インクの滲みによって粒状性が低くなり、上述した色のムラや網点も目立たなくなるので、写真IMや下地BGに対してエッジの強度を低くする処理を行う必要性が低くなる。本実施例によれば、用紙が普通紙である場合には、用紙が光沢紙である場合と比較して、エッジの強度を高くなるので、印刷画像内の写真IMなどのオブジェクトのエッジが過剰にぼけることを抑制できる。また、用紙が普通紙である場合には、用紙が光沢紙である場合と比較して、インクの滲みによって文字TXのエッジがぼけやすくなるので、文字TXに対して、エッジの強度を高くする処理を行う必要性が高くなる。本実施例によれば、用紙が普通紙である場合には、用紙が光沢紙である場合と比較して、エッジの強度を高くなるので、文字TXのエッジがぼけることを抑制できる。   Further, as shown in FIG. 8A, when the material information indicates glossy paper and the fluctuation speed VS is a specific value VSa, the large smoothing filter FS1 is selected as the use filter. Then, when the material information indicates plain paper and the fluctuation speed VS is a specific value VSa, a small smoothing filter FSs is selected in which the edge strength is higher than that of the large smoothing filter FS1. As a result, it is possible to correct the target image OI so as to have an edge strength appropriate for the sheet material. Specifically, the spread of the ink may differ depending on the material of the sheet. For example, when the sheet is plain paper, the degree of ink bleeding is greater than when the sheet is glossy. As a result, when the paper is plain paper, the bleeding of the ink lowers the granularity compared to the case where the paper is glossy paper, and the above-mentioned color unevenness and halftone dots become inconspicuous. And the background BG is less likely to be processed to lower the edge strength. According to the present embodiment, when the paper is plain paper, the edge strength is higher than when the paper is glossy paper, so the edge of an object such as a photo IM in the print image is excessive. Can be suppressed. Also, when the sheet is plain paper, the edge of the character TX is more likely to be blurred due to ink bleeding compared to when the sheet is glossy paper, so the edge strength is increased relative to the character TX The need for processing increases. According to the present embodiment, when the sheet is plain paper, the edge strength is increased compared to when the sheet is glossy paper, so that blurring of the edge of the character TX can be suppressed.

さらに、図8(A)に示すように、特定範囲SR1内の任意の変動速度VSについて、材質情報が普通紙を示す場合に選択されるフィルタは、材質情報が光沢紙を示す場合に選択されるフィルタよりもエッジの強度が高くなるフィルタである。この結果、特定範囲SR1内の任意の変動速度VSについて、用紙の材質に応じた適切な補正処理を実行できる。   Further, as shown in FIG. 8A, for any fluctuation speed VS within the specific range SR1, the filter selected when the material information indicates plain paper is selected when the material information indicates glossy paper. The edge strength of the filter is higher than that of the filter. As a result, it is possible to execute an appropriate correction process according to the material of the sheet for an arbitrary fluctuation speed VS in the specific range SR1.

S120では、CPU110は、注目画素CPに対してフィルタ処理を実行する。すなわち、CPU110は、S115にて選択済みの使用フィルタを注目画素CPに適用して、注目画素CPの値を補正する。具体的には、CPU110は、注目画素CPと周辺画素SPとを含むフィルタ範囲内の(M+1)個の画素の値に、それぞれ、使用するフィルタに規定される対応する補正係数を乗じて、(M+1)個の修正値を算出する。そして、CPU110は、該(M+1)個の修正値の和を、補正済みの注目画素CPの値として算出する。   At S120, the CPU 110 executes filter processing on the pixel of interest CP. That is, the CPU 110 applies the use filter selected at S115 to the target pixel CP to correct the value of the target pixel CP. Specifically, the CPU 110 multiplies the values of (M + 1) pixels in the filter range including the target pixel CP and the peripheral pixel SP by the corresponding correction coefficients defined in the filter to be used, respectively ( Calculate M + 1 correction values. Then, the CPU 110 calculates the sum of the (M + 1) correction values as the value of the corrected target pixel CP.

S125では、CPU110は、全ての画素を注目画素として処理したか否かを判断する。未処理の画素がある場合には(S125:NO)、CPU110は、S100に戻る。全ての画素が処理された場合には(S125:YES)、CPU110は、補正処理を終了する。   In S125, the CPU 110 determines whether all the pixels have been processed as the target pixel. If there is an unprocessed pixel (S125: NO), the CPU 110 returns to S100. If all the pixels have been processed (S125: YES), the CPU 110 ends the correction processing.

以上説明した本実施例によれば、CPU110は、注目画素CPの複数個の周辺画素SPの値の変動に関する特徴量(本実施例では、変動速度VS)を算出し(図4のS110)、該特徴量と、印刷条件情報と、に基づいて、注目画素CPに適用すべき補正処理が決定される(図4のS115、図8)。そして、CPU110は、このような補正処理(図2のS20、図4)を含む生成処理(図2のS20〜S30)が実行されて、印刷画像を示す印刷画像データが生成される。CPU110は、該印刷画像データに従って、印刷実行部としてのプリンタ300に印刷画像を印刷させる(図2のS35、S40)。この結果、複数個の周辺画素SPの値の変動に関する特徴量に加えて、印刷条件情報に基づいて決定される補正処理によって、注目画素CPの値が補正される。この結果、印刷条件に応じて、印刷画像内のエッジの強度を調節することで、印刷画像の見栄えを向上できる。   According to the present embodiment described above, the CPU 110 calculates the feature amount (the fluctuation velocity VS in the present embodiment) regarding the fluctuation of the values of the plurality of peripheral pixels SP of the target pixel CP (S110 in FIG. 4) Based on the feature amount and the printing condition information, the correction process to be applied to the pixel of interest CP is determined (S115 in FIG. 4, FIG. 8). Then, the CPU 110 executes generation processing (S20 to S30 in FIG. 2) including such correction processing (S20 in FIG. 2 and FIG. 4) to generate print image data indicating a print image. The CPU 110 causes the printer 300 as a print execution unit to print a print image according to the print image data (S35, S40 in FIG. 2). As a result, the value of the pixel of interest CP is corrected by the correction processing determined based on the printing condition information, in addition to the feature amount related to the fluctuation of the values of the plurality of peripheral pixels SP. As a result, the appearance of the printed image can be improved by adjusting the edge intensity in the printed image according to the printing conditions.

具体的には、特徴量として、周辺領域AA(図5(A))内において、画素の位置の変動に対して画素の値が変動する程度である変動速度VSが用いられる(図4、図5(C))。この結果、変動速度VSと、印刷条件と、に応じて、印刷画像内のエッジの強度を調節することで、印刷画像の見栄えを向上できる。   Specifically, as the feature amount, a fluctuation velocity VS, which is the degree to which the value of the pixel fluctuates with respect to the fluctuation of the position of the pixel, is used in the peripheral area AA (FIG. 5A) (FIG. 4, FIG. 5 (C)). As a result, the appearance of the printed image can be improved by adjusting the edge intensity in the printed image according to the fluctuation speed VS and the printing conditions.

より具体的には、印刷条件情報は、用紙の材質を示す材質情報を含む。CPU110は、変動速度VSが同じ場合であっても、材質情報が光沢紙を示す場合と、材質情報が普通紙を示す場合と、では、それぞれ、異なるフィルタを使用フィルタとして選択する(図8)。この結果、用紙の材質に応じた適切なエッジの強度を有するように、対象画像を補正できる。   More specifically, the printing condition information includes material information indicating the material of the sheet. Even when the fluctuation speed VS is the same, the CPU 110 selects different filters as the use filters in the case where the material information indicates glossy paper and the case where the material information indicates plain paper (FIG. 8). . As a result, it is possible to correct the target image so as to have an edge strength appropriate for the sheet material.

以上の説明から解るように、第1実施例において、光沢紙は、第1の材質の例であり、普通紙は、第2の材質の例である。そして、変動速度VSが特定の値VSaである場合に選択され得る大平滑化フィルタFSlを用いた補正処理は、第3の補正処理の例であり、変動速度VSが特定の値VSaである場合に選択され得る小平滑化フィルタFSsを用いた補正処理は、第4の補正処理の例である。   As understood from the above description, in the first embodiment, glossy paper is an example of the first material, and plain paper is an example of the second material. The correction process using the large smoothing filter FS1 that can be selected when the fluctuation speed VS is a specific value VSa is an example of a third correction process, and the fluctuation speed VS is a specific value VSa. The correction process using the small smoothing filter FSs that can be selected is an example of a fourth correction process.

B.第2実施例
第2実施例では、図2のS15にて、CPU110は、印刷条件情報として、印刷画像を印刷する際に用いるべき印刷モードを示すモード情報を少なくとも取得する。モード情報は、例えば、図示しないUI画面を介して、印刷指示とともに入力される印刷条件情報に含まれる。本実施例にて想定される印刷モードは、標準モードと、標準モードよりも1ページ当たりの印刷速度が速い高速モードと、の2種類である。高速モードでは、印刷の解像度が標準モードよりも低い分、吐出すべきドットの個数が標準モードより少ないので、標準モードよりも高速に印刷を行うことができるモードである。例えば、標準モードは、1つの画像領域を1回の印刷ヘッドの主走査で印刷する1パス印刷であり、高速モードは、1回の画像領域を複数回の印刷ヘッドの主走査で印刷するマルチパス印刷である。
B. Second Embodiment In the second embodiment, in S15 of FIG. 2, the CPU 110 acquires at least mode information indicating a print mode to be used when printing a print image as printing condition information. Mode information is included, for example, in printing condition information input together with a print instruction via a UI screen (not shown). There are two types of printing modes assumed in this embodiment: the standard mode and the high-speed mode in which the printing speed per page is faster than the standard mode. In the high speed mode, since the printing resolution is lower than in the standard mode and the number of dots to be ejected is smaller than in the standard mode, printing can be performed at higher speed than in the standard mode. For example, the standard mode is one-pass printing in which one image area is printed by one print head main scan, and the high speed mode is a multi-print in which one image area is printed by multiple print head scans. It is pass printing.

第2実施例の補正処理では、図4のS110において、変動パラメータAPとして、変動速度VSに代えて、変動加速度VAが算出される。変動加速度VAは、周辺領域AAにおいて、画素の位置の変動に対して、第1実施例にて算出した変動速度VSが変動する程度を示す補正パラメータである。具体的には、CPU110は、第1実施例のS110と同様に、注目画素CP(図5(C)の画素(i))について、注目方向の5個の画素(i−2)〜(i+2)の一次差分ΔL1(i−2)〜ΔL1(i+2)を算出する。図5(C)の例では、上述したように、5個の画素(i−2)〜(i+2)の一次差分ΔL1は、それぞれ、20、−100、−100、50、150である。   In the correction process of the second embodiment, in S110 of FIG. 4, the fluctuation acceleration VA is calculated as the fluctuation parameter AP, instead of the fluctuation speed VS. The fluctuation acceleration VA is a correction parameter that indicates the degree to which the fluctuation speed VS calculated in the first embodiment fluctuates with respect to the fluctuation of the position of the pixel in the peripheral area AA. Specifically, the CPU 110 controls five pixels (i-2) to (i + 2) in the direction of interest for the pixel of interest CP (pixel (i) in FIG. 5C) as in S110 of the first embodiment. The primary differences ΔL1 (i-2) to ΔL1 (i + 2) are calculated. In the example of FIG. 5C, as described above, the primary differences ΔL1 of the five pixels (i-2) to (i + 2) are 20, -100, -100, 50, and 150, respectively.

CPU110は、該注目方向の5個の画素のうちの3個の画素(i−1)〜(i+1)のそれぞれについて、輝度値Lの二次差分ΔL2(i−1)〜ΔL2(i+1)を算出する。例えば、画素(i−1)の二次差分ΔL2(i−1)は、注目方向において、画素(i−1)の両側に隣接する2個の画素(i−2)、iの一次差分ΔL1(i−2)、ΔL1(i)の差分である。すなわち、ΔL2(i−1)={ΔL1(i)−L(i−2)}である。同様に、画素iの二次差分ΔL2(i)は、注目方向において、画素(i)の両側に隣接する2個の画素(i−1)、(i+1)の一次差分ΔL1(i−1)、ΔL1(i+1)の差分である。すなわち、ΔL2(i)={ΔL1(i+1)−L(i−1)}である。図5(C)の例では、3個の画素(i−1)〜(i+1)の二次差分ΔL2(i−1)〜ΔL2(i+1)は、それぞれ、−120、150、250である。   The CPU 110 calculates secondary differences ΔL2 (i-1) to ΔL2 (i + 1) of the luminance value L for each of three pixels (i-1) to (i + 1) of the five pixels in the direction of interest. calculate. For example, the secondary difference ΔL2 (i-1) of the pixel (i-1) is two pixels (i-2) adjacent to both sides of the pixel (i-1) in the attention direction, and the primary difference ΔL1 of i (I-2) is the difference between ΔL1 (i). That is, ΔL2 (i-1) = {ΔL1 (i) -L (i-2)}. Similarly, the secondary difference ΔL2 (i) of the pixel i is the primary difference ΔL1 (i-1) of two pixels (i-1) and (i + 1) adjacent to both sides of the pixel (i) in the direction of interest. , ΔL 1 (i + 1). That is, ΔL2 (i) = {ΔL1 (i + 1) −L (i−1)}. In the example of FIG. 5C, secondary differences ΔL2 (i-1) to ΔL2 (i + 1) of three pixels (i-1) to (i + 1) are -120, 150, and 250, respectively.

CPU110は、注目方向の3個の画素(i−1)〜(i+1)の二次差分ΔL2の絶対値の最大値を、注目画素CPの変動加速度VAとして決定する。図5(C)の例では、注目画素CP(画素i)の変動速度VSは、画素(i+1)の二次差分ΔL2(i+1)の絶対値「250」である。   The CPU 110 determines the maximum value of the absolute values of the secondary differences ΔL2 of the three pixels (i-1) to (i + 1) in the attention direction as the fluctuation acceleration VA of the attention pixel CP. In the example of FIG. 5C, the fluctuation speed VS of the pixel of interest CP (pixel i) is the absolute value “250” of the secondary difference ΔL2 (i + 1) of the pixel (i + 1).

第2実施例の補正処理では、図4のS115にて、CPU110は、第1実施例のフィルタ選択テーブルFT1(図8)とは異なるフィルタ選択テーブルFT2を用いて、図6、図7の6種類の候補フィルタの中から、使用すべき1個の使用フィルタを選択する。   In the correction process of the second embodiment, the CPU 110 uses the filter selection table FT2 different from the filter selection table FT1 (FIG. 8) of the first embodiment in S115 of FIG. From among the types of candidate filters, select one use filter to be used.

図9は、第2実施例のフィルタ選択テーブルFT2の一例を示す図である。フィルタ選択テーブルFT2は、第1実施例の第1サブテーブルPT1とは異なる図9の第1サブテーブルPT2と、第1実施例と同一の第2サブテーブルET1(図8(B))と、を含む。第2サブテーブルPT2では、変動パラメータAPとしての変動加速度VAと実現すべきエッジ強度レベルとが対応付けられている。CPU110は、第1サブテーブルPT2を参照して、S110にて算出済みの変動加速度VAに対応するエッジ強度レベルを決定する。本実施例では、S15にて取得されるモード情報が高速モードを示す場合には、図9にて破線で示す対応情報C21が参照されて、変動加速度VAに対応するエッジ強度レベルが取得される。S15にて取得されるモード情報が標準モードを示す場合には、図9にて実線で示す対応情報C22が参照されて、変動加速度VAに対応するエッジ強度レベルが取得される。CPU110は、第2サブテーブルET1を参照して、決定済みのエッジ強度レベルに対応するフィルタを、使用フィルタとして選択する。   FIG. 9 is a diagram showing an example of the filter selection table FT2 of the second embodiment. The filter selection table FT2 is different from the first sub-table PT1 of the first embodiment in the first sub-table PT2 of FIG. 9 and the second sub-table ET1 (FIG. 8 (B)) identical to the first embodiment. including. In the second sub-table PT2, the fluctuation acceleration VA as the fluctuation parameter AP is associated with the edge strength level to be realized. The CPU 110 refers to the first sub-table PT2 to determine an edge strength level corresponding to the fluctuation acceleration VA calculated at S110. In the present embodiment, when the mode information acquired in S15 indicates the high-speed mode, the correspondence information C21 indicated by the broken line in FIG. 9 is referred to, and the edge strength level corresponding to the fluctuation acceleration VA is acquired. . When the mode information acquired in S15 indicates the standard mode, the correspondence information C22 indicated by the solid line in FIG. 9 is referred to, and the edge strength level corresponding to the fluctuation acceleration VA is acquired. The CPU 110 refers to the second sub-table ET1 and selects a filter corresponding to the determined edge strength level as a use filter.

ここで、注目画素CPの変動加速度VAが大きいほど、該注目画素CPは、文字TXのエッジを構成する画素もしくは文字TXのエッジの近傍に位置する画素である可能性が高くなり、写真IMや下地BGを構成する画素である可能性が低くなる。注目画素CPの変動加速度VAが小さいほど、該注目画素CPは、文字TXのエッジを構成する画素もしくは文字TXのエッジの近傍に位置する画素である可能性が低くなり、写真IMや下地BGを構成する画素である可能性が高くなる。上述したように、文字TXのエッジでは、輝度Lの変動が比較的急激であり、写真IMや下地BGでは、輝度Lの変動が比較的緩やかであるためである。   Here, as the variation acceleration VA of the pixel of interest CP is larger, the pixel of interest CP is more likely to be a pixel forming the edge of the character TX or a pixel located near the edge of the character TX. The possibility of the pixel constituting the background BG is reduced. As the variation acceleration VA of the pixel of interest CP is smaller, the pixel of interest CP is less likely to be a pixel forming the edge of the character TX or a pixel located near the edge of the character TX, There is a high possibility that the pixel is a component. As described above, at the edge of the character TX, the fluctuation of the luminance L is relatively rapid, and at the photo IM and the background BG, the fluctuation of the luminance L is relatively gentle.

そして、第1実施例にて説明したように文字TXのエッジを構成する画素には、エッジ強度を高める補正処理が適用されることが好ましい。一方で、写真IMや下地BGを構成する画素には、エッジの強度を低くする補正処理が適用されることが好ましい。   Then, as described in the first embodiment, it is preferable that correction processing for increasing the edge strength be applied to the pixels forming the edge of the character TX. On the other hand, it is preferable that correction processing for reducing the intensity of the edge be applied to the pixels constituting the photograph IM and the background BG.

以上のことから、高速モード用の対応情報C21と標準モード用の対応情報C22は、いずれも、変動加速度VAが増加するに連れて、段階的に、エッジ強度レベルが高くなるように、設定されている。これによって、対象画像OIのオブジェクトの種類(文字、写真、下地)に応じて、画像内のエッジの強度を適切に補正する補正処理が実行されるように、適切な使用フィルタが選択できる。   From the above, both the correspondence information C21 for the high-speed mode and the correspondence information C22 for the standard mode are set so that the edge strength level gradually increases as the fluctuation acceleration VA increases. ing. As a result, an appropriate use filter can be selected so that the correction processing for appropriately correcting the edge intensity in the image is executed according to the type (text, picture, background) of the object image OI.

さらに、図9に示すように、モード情報が標準モードを示し、かつ、変動加速度VAが特定の値VAaである場合には、大平滑化フィルタFSlが使用フィルタとして選択される。そして、モード情報が高速モードを示し、かつ、変動加速度VAが特定の値VAaである場合には、大平滑化フィルタFSlよりもエッジの強度が高くなる小平滑化フィルタFSsが選択される。この結果、印刷モードに応じた適切なエッジの強度を有するように、対象画像OIを補正できる。具体的には、印刷モードが高速モードである場合には、解像度が低い分、標準モードと比較して、大ドットが使用される確率が高くなり、小ドットが使用される確率が低くなる。この結果、同じ画像を印刷する場合に、高速モードは、標準モードよりも多量のインクが用いられやすい。同じ面積分のドットを形成するのに必要なインク量は、大ドットを用いる場合に、小ドットを用いる場合よりも多量のインクが必要であるためである。これは、インクの着弾面積は、インク滴の径の2乗に比例するのに対して、インクの量(体積)は、インク滴の径の3乗に比例することによる。また、高速モードでは、標準モードよりも短時間に多量のインク滴が吐出されるために、用紙に吸収されていない状態のインクが用紙上に多量に滞留しやすい。このことから、印刷モードが高速モードである場合には、印刷モードが標準モードである場合と比較して、インクの滲みの程度が大きくなる。この結果、印刷モードが高速モードである場合には、印刷モードが標準モード紙である場合と比較して、インクの滲みによって粒状性が低くなり、上述した色のムラや網点も目立たなくなるので、写真IMや下地BGに対してエッジの強度を低くする処理を行う必要性が低くなる。本実施例によれば、モード情報が高速モードを示す場合には、モード情報が標準モードを示す場合と比較して、エッジの強度を高くなるので、印刷画像内の写真IMなどのオブジェクトのエッジが過剰にぼけることを抑制できる。また、モード情報が高速モードを示す場合には、モード情報が標準モードを示す場合と比較して、インクの滲みによって文字TXのエッジがぼけやすくなるので、文字TXに対して、エッジの強度を高くする処理を行う必要性が高くなる。本実施例によれば、モード情報が高速モードを示す場合には、モード情報が標準モードを示す場合と比較して、エッジの強度を高くなるので、文字TXのエッジがぼけることを抑制できる。   Furthermore, as shown in FIG. 9, when the mode information indicates the standard mode and the fluctuation acceleration VA is a specific value VAa, the large smoothing filter FS1 is selected as the use filter. Then, when the mode information indicates the high-speed mode and the fluctuation acceleration VA has a specific value VAa, a small smoothing filter FSs is selected in which the edge strength is higher than that of the large smoothing filter FSl. As a result, it is possible to correct the target image OI so as to have an edge strength appropriate for the print mode. Specifically, when the printing mode is the high-speed mode, the probability of using a large dot is high and the probability of using a small dot is low because the resolution is low, compared to the standard mode. As a result, when printing the same image, the high speed mode is more likely to use a larger amount of ink than the standard mode. The amount of ink required to form dots of the same area is because a larger amount of ink is required when using a large dot than when using a small dot. This is because the landing area of the ink is proportional to the square of the diameter of the ink droplet, while the amount (volume) of the ink is proportional to the cube of the diameter of the ink droplet. Further, in the high-speed mode, a large amount of ink droplets are ejected in a short time as compared with the standard mode, so the ink in a state not absorbed by the sheet is likely to be accumulated on the sheet in a large amount. From this, when the printing mode is the high-speed mode, the degree of ink bleeding is larger than when the printing mode is the standard mode. As a result, when the printing mode is the high-speed mode, the ink smears and the granularity is lowered compared to the case where the printing mode is the standard mode paper, and the above-mentioned color unevenness and halftone dots become inconspicuous. There is less need to perform processing to lower the intensity of the edge on the photo IM and the background BG. According to the present embodiment, when the mode information indicates the high-speed mode, the edge strength is increased compared to the case where the mode information indicates the standard mode, and thus the edge of an object such as a photo IM in the print image Can suppress excessive blurring. When the mode information indicates the high-speed mode, the edge of the character TX is more likely to be blurred due to ink bleeding compared to the case where the mode information indicates the standard mode. The need for higher processing is increased. According to the present embodiment, when the mode information indicates the high-speed mode, the edge strength is increased as compared to the case where the mode information indicates the standard mode, so blurring of the edge of the character TX can be suppressed.

さらに、図9に示すように、特定範囲SR2内の任意の変動加速度VAについて、モード情報が高速モードを示す場合に選択されるフィルタは、モード情報が標準モードを示す場合に選択されるフィルタよりもエッジの強度が高くなるフィルタである。この結果、特定範囲SR2内の任意の変動加速度VAについて、印刷モードに応じた適切な補正処理を実行できる。   Furthermore, as shown in FIG. 9, for any given variable acceleration VA within the specific range SR2, the filter selected when the mode information indicates the high-speed mode is the filter selected when the mode information indicates the standard mode. Is also a filter that increases the edge strength. As a result, it is possible to execute an appropriate correction process according to the print mode for any fluctuation acceleration VA within the specific range SR2.

以上説明した第2実施例によれば、上述したように、特徴量として、周辺領域AA(図5(A))内において、画素の位置の変動に対して変動速度VSが変動する程度である変動加速度VAが用いられる(図4、図5(C))。この結果、変動加速度VAと、印刷条件と、に応じて、印刷画像内のエッジの強度を調節することで、印刷画像の見栄えを向上できる。   According to the second embodiment described above, as described above, in the peripheral area AA (FIG. 5A), the fluctuation speed VS fluctuates with respect to the fluctuation of the position of the pixel as the feature quantity. The fluctuation acceleration VA is used (FIG. 4, FIG. 5 (C)). As a result, the appearance of the print image can be improved by adjusting the intensity of the edge in the print image according to the fluctuation acceleration VA and the printing condition.

より具体的には、印刷条件情報は、印刷画像の印刷に用いられるべき印刷モードを示すモード情報を含む。CPU110は、変動加速度VAが同じ場合であっても、モード情報が高速モードを示す場合と、モード情報が標準モードを示す場合と、では、それぞれ、異なるフィルタを使用フィルタとして選択する(図9)。この結果、印刷モードに応じた適切なエッジの強度を有するように、対象画像を補正できる。   More specifically, the printing condition information includes mode information indicating a printing mode to be used for printing a print image. Even when the variation acceleration VA is the same, the CPU 110 selects different filters as the use filters in the case where the mode information indicates the high-speed mode and the case where the mode information indicates the standard mode (FIG. 9) . As a result, the target image can be corrected to have an edge strength appropriate for the print mode.

以上の説明から解るように、第2実施例において、標準モードは、第1の印刷モードの例であり、高速モードは、第2の印刷モードの例である。そして、変動加速度VAが特定の値VAaである場合に選択され得る大平滑化フィルタFSlを用いた補正処理は、第5の補正処理の例であり、変動加速度VAが特定の値VAaである場合に選択され得る小平滑化フィルタFSsを用いた補正処理は、第6の補正処理の例である。   As understood from the above description, in the second embodiment, the standard mode is an example of the first print mode, and the high speed mode is an example of the second print mode. The correction process using the large smoothing filter FS1 that can be selected when the fluctuation acceleration VA is a specific value VAa is an example of a fifth correction process, and the fluctuation acceleration VA is a specific value VAa. The correction process using the small smoothing filter FSs that can be selected is an example of a sixth correction process.

C.第3実施例
第3実施例では、図2のS15にて、CPU110は、印刷条件情報として、印刷画像を印刷するための用紙のサイズを示すサイズ情報を少なくとも取得する。サイズ情報は、例えば、図示しないUI画面を介して、印刷指示とともに入力される印刷条件情報に含まれる。本実施例にて想定される用紙のサイズは、A4とL判との2種類である。変形例としては、A4に代えて、例えば、A3サイズ、A5サイズなどの他の様々なサイズが採用され得、L判に代えて、例えば、名刺サイズやハガキサイズなどの他の様々なサイズが採用され得る。
C. Third Embodiment In the third embodiment, the CPU 110 at least acquires size information indicating the size of a sheet for printing a print image as printing condition information in S15 of FIG. The size information is included in, for example, printing condition information input together with a printing instruction via a UI screen (not shown). The sheet size assumed in this embodiment is two types of A4 and L size. As a modification, in place of A4, various other sizes such as A3 size and A5 size may be adopted, and in place of L size, other various sizes such as business card size and postcard size may be adopted. It can be adopted.

第2実施例の補正処理では、図4のS110において、変動パラメータAPとして、変動速度VSに代えて、変動回数VNが算出される。変動回数VNは、周辺領域AAにおいて、画素の位置の変動に対して画素の値が増減する回数である。具体的には、CPU110は、第1実施例のS110と同様に、注目画素CP(図5(C)の画素(i))について、図5に示す4つの方向の画素群PL1〜PL4のそれぞれについて、該画素群の5個の画素(i−2)〜(i+2)の一次差分ΔL1(i−2)〜ΔL1(i+2)を算出する。図5(C)の例では、上述したように、5個の画素(i−2)〜(i+2)の一次差分ΔL1は、それぞれ、20、−100、−100、50、150である。   In the correction process of the second embodiment, the number of times of fluctuation VN is calculated as the fluctuation parameter AP in S110 of FIG. 4 instead of the fluctuation speed VS. The number of times of fluctuation VN is the number of times the value of the pixel increases or decreases with respect to the fluctuation of the position of the pixel in the peripheral area AA. Specifically, as in the case of S110 of the first embodiment, the CPU 110 respectively sets the pixel groups PL1 to PL4 in the four directions shown in FIG. 5 for the pixel of interest CP (pixel (i) in FIG. 5C). , Primary differences ΔL1 (i-2) to ΔL1 (i + 2) of the five pixels (i-2) to (i + 2) of the pixel group are calculated. In the example of FIG. 5C, as described above, the primary differences ΔL1 of the five pixels (i-2) to (i + 2) are 20, -100, -100, 50, and 150, respectively.

CPU110は、該1つの方向の画素群に含まれる5個の画素(i−2)〜(i+2)の一次差分ΔL1(i−2)〜ΔL1(i+2)が、該一つの方向に沿って、負の値から正の値に、または、正の値から負の値に、変動する回数(一次変動回数)を算出する。図5(C)の例では、一次変動回数は、2回である。CPU110は、4つの方向の画素群PL1〜PL4のそれぞれについて、一次変動回数を算出し、該一次変動回数の合計値を、注目画素CPの変動回数VNとして算出する。   The CPU 110 sets primary differences ΔL1 (i-2) to ΔL1 (i + 2) of five pixels (i-2) to (i + 2) included in the pixel group in one direction along the one direction. Calculate the number of changes (the number of primary changes) from a negative value to a positive value or from a positive value to a negative value. In the example of FIG. 5 (C), the number of primary fluctuations is two. The CPU 110 calculates the number of primary fluctuations for each of the pixel groups PL1 to PL4 in the four directions, and calculates the total value of the number of primary fluctuations as the number of fluctuations VN of the target pixel CP.

第3実施例の補正処理では、図4のS115にて、CPU110は、上述のフィルタ選択テーブルFT1(図8)、FT2(図9)とは異なるフィルタ選択テーブルFT3を用いて、図6、図7の6種類の候補フィルタの中から、使用すべき1個の使用フィルタを選択する。   In the correction process of the third embodiment, in S115 of FIG. 4, the CPU 110 uses the filter selection table FT3 different from the filter selection table FT1 (FIG. 8) or FT2 (FIG. 9) described above. Out of six types of seven candidate filters, select one use filter to be used.

図10は、第3実施例のフィルタ選択テーブルFT3の一例を示す図である。フィルタ選択テーブルFT3は、図10の第1サブテーブルPT3と、第1実施例と同一の第2サブテーブルET1(図8(B))と、を含む。第1サブテーブルPT3では、変動パラメータAPとしての変動回数VNと実現すべきエッジ強度レベルとが対応付けられている。CPU110は、第1サブテーブルPT3を参照して、S110にて算出済みの変動回数VNに対応するエッジ強度レベルを決定する。本実施例では、S15にて取得されるサイズ情報がA4を示す場合には、図10にて破線で示す対応情報C31が参照されて、変動回数VNに対応するエッジ強度レベルが取得される。S15にて取得されるサイズ情報がL判を示す場合には、図10にて実線で示す対応情報C32が参照されて、変動回数VNに対応するエッジ強度レベルが取得される。CPU110は、第2サブテーブルET1を参照して、決定済みのエッジ強度レベルに対応するフィルタを、使用フィルタとして選択する。   FIG. 10 is a diagram showing an example of the filter selection table FT3 of the third embodiment. The filter selection table FT3 includes the first sub-table PT3 of FIG. 10 and the second sub-table ET1 (FIG. 8 (B)) identical to the first embodiment. In the first sub-table PT3, the number of times of fluctuation VN as the fluctuation parameter AP is associated with the edge strength level to be realized. The CPU 110 refers to the first sub-table PT3 to determine an edge strength level corresponding to the variation number VN calculated in S110. In the present embodiment, when the size information acquired in S15 indicates A4, the correspondence information C31 indicated by the broken line in FIG. 10 is referred to, and the edge strength level corresponding to the number of times of fluctuation VN is acquired. When the size information acquired in S15 indicates L size, the correspondence information C32 indicated by the solid line in FIG. 10 is referred to, and the edge strength level corresponding to the number of times of fluctuation VN is acquired. The CPU 110 refers to the second sub-table ET1 and selects a filter corresponding to the determined edge strength level as a use filter.

ここで、注目画素CPの変動回数VNが大きいほど、該注目画素CPは、画像内の網点を構成する画素である可能性が高くなり、文字TXのエッジを構成する画素もしくは文字TXのエッジの近傍に位置する画素である可能性が低くなる。注目画素CPの変動回数VNが小さいほど、該注目画素CPは、文字TXのエッジを構成する画素もしくは文字TXのエッジの近傍に位置する画素である可能性が高くなり、網点を構成する画素である可能性が高くなる。上述したように、文字のエッジに基づく画素の値の変動は、網点ほど細かな変動ではないので、文字TXのエッジによる画素の値の変動回数VNは、網点による画素の値の変動回数よりも少ない傾向にあるからである。   Here, as the number of times of fluctuation VN of the pixel of interest CP is larger, the pixel of interest CP is more likely to be a pixel constituting a halftone dot in the image, and the pixel of the edge of the character TX or the edge of the character TX Is less likely to be a pixel located in the vicinity of As the number of times of fluctuation VN of the pixel of interest CP is smaller, the pixel of interest CP is more likely to be a pixel forming the edge of the character TX or a pixel located near the edge of the character TX. It is likely to be. As described above, since the variation of the pixel value based on the edge of the character is not as fine as the halftone dot, the number of times of variation of the pixel value due to the edge of the character TX is the number of variations of the pixel value due to the halftone dot It tends to be less than that.

そして、第1実施例にて説明したように文字TXのエッジを構成する画素には、エッジ強度を高める補正処理が適用されることが好ましい。一方で、網点を構成する画素には、網点を消去して、モアレを抑制するためにエッジの強度を低くする補正処理が適用されることが好ましい。   Then, as described in the first embodiment, it is preferable that correction processing for increasing the edge strength be applied to the pixels forming the edge of the character TX. On the other hand, it is preferable that correction processing for reducing the intensity of the edge is applied to the pixels constituting the halftone dot in order to eliminate the halftone dot and to suppress the moiré.

以上のことから、A4用の対応情報C31とL判用の対応情報C32は、いずれも、変動回数VNが増加するに連れて、段階的に、エッジ強度レベルが低くなるように、設定されている。これによって、注目画素が、文字TXを構成する可能性が高いか、網点を構成する可能性が高いかに応じて、画像内のエッジの強度を適切に補正する補正処理が実行されるように、適切な使用フィルタが選択できる。   From the above, both the correspondence information C31 for A4 and the correspondence information C32 for L format are set so that the edge strength level gradually decreases as the number of times of fluctuation VN increases. There is. As a result, a correction process is appropriately performed to appropriately correct the edge intensity in the image, depending on whether the pixel of interest is likely to form the character TX or halftone dot. , You can choose the appropriate use filter.

さらに、図10に示すように、サイズ情報がA4を示し、かつ、変動回数VNが特定の回数VNaである場合には、小エッジ強調フィルタFEsが使用フィルタとして選択される。そして、サイズ情報がA4よりも小さなL判を示し、かつ、変動回数VNが特定の回数VNaである場合には、大平滑化フィルタFSlよりもエッジの強度が高くなる大エッジ強調フィルタFElが選択される。この結果、印刷モードに応じた適切なエッジの強度を有するように、対象画像OIを補正できる。   Furthermore, as shown in FIG. 10, when the size information indicates A4, and the number of times of fluctuation VN is a specific number of times VNa, the small edge emphasis filter FEs is selected as a used filter. Then, when the size information indicates an L size smaller than A4, and the number of times of fluctuation VN is a specific number of times VNa, the large edge emphasis filter FEl having an edge strength higher than that of the large smoothing filter FSl is selected. Be done. As a result, it is possible to correct the target image OI so as to have an edge strength appropriate for the print mode.

具体的には、用紙のサイズによって、印刷画像の通常の観察距離は異なる。一般的には、用紙のサイズが大きいほど、該用紙に印刷される印刷画像の観察距離は、長くなる。例えば、用紙のサイズが名刺サイズやL判サイズである場合には、印刷画像の観察距離は、10cm〜15cm程度である。それに対して、用紙のサイズが名刺サイズやL判サイズよりも大きなA4サイズである場合には、印刷画像の観察距離は、30cm程度である。一方で、比較的短い観察距離で特定の印刷画像を観察した場合の見栄え(例えば、粒状性や鮮鋭さ)は、比較的長い観察距離で該特定の印刷画像を観察した場合の見栄えとは、異なり得る。これは、例えば、観察者の所定の視野範囲に入る画像のサイズが、観察距離が短いほど小さくなり、観察距離が短いほど大きくなることに起因する。例えば、比較的長い観察距離では、自然な見栄えに見える画像であっても、比較的短い観察距離では、より細かい部分を視認しやすいので、ぼけた画像に見える場合がある。具体的には、観察距離が比較的短い名刺サイズやL判サイズでは、文字TXなどのオブジェクトのエッジのぼけが目立ちやすいので、文字TXなどのオブジェクトのエッジを構成する画素には、エッジの強度を高くする必要性が高い。これに対して、観察距離が比較的長いA4サイズやA3サイズでは、文字TXなどのオブジェクトのエッジのぼけは目立ち難いので、エッジの強度を高くする必要性が低いので、網点の消去を優先して、エッジの強度を低くしても良い。   Specifically, the normal observation distance of the print image differs depending on the size of the sheet. Generally, the larger the size of the sheet, the longer the viewing distance of the printed image printed on the sheet. For example, when the size of the sheet is a business card size or an L-size, the observation distance of the print image is about 10 cm to 15 cm. On the other hand, in the case where the size of the sheet is an A4 size larger than the business card size and the L size, the observation distance of the print image is about 30 cm. On the other hand, the appearance (for example, graininess and sharpness) when a specific print image is observed at a relatively short observation distance is the appearance when the particular print image is observed at a relatively long observation distance. It can be different. This is because, for example, the size of the image falling within a predetermined visual field range of the observer decreases as the observation distance decreases, and increases as the observation distance decreases. For example, at relatively long viewing distances, even an image that looks natural may appear as a blurred image because it is easier to view finer portions at relatively short viewing distances. Specifically, at the business card size or L size size where the observation distance is relatively short, the edge of the object such as the character TX is easily blurred. Therefore, the edge intensity is applied to the pixels forming the edge of the object such as the character TX. There is a high need to On the other hand, in the case of A4 size and A3 size with relatively long viewing distance, blurring of the edge of the object such as the character TX is less noticeable, so it is less necessary to increase the edge strength. To reduce the edge strength.

本実施例によれば、サイズ情報がA4よりも小さなL判を示す場合には、サイズ情報がA4を示す場合と比較して、エッジの強度を高くなるので、用紙のサイズが比較的小さく、想定される観察距離が比較的短いにも拘わらず、文字TXなどのオブジェクトのエッジがぼける不都合を抑制できる。また、サイズ情報がA4を示す場合には、サイズ情報がL判を示す場合と比較して、エッジの強度が低くなるので、網点が残る可能性を低減できる。   According to this embodiment, when the size information indicates an L size smaller than A4, the edge strength is increased compared to the case where the size information indicates A4, so the size of the sheet is relatively small, Although the assumed viewing distance is relatively short, it is possible to suppress the problem that the edge of the object such as the character TX is blurred. Also, when the size information indicates A4, the edge strength is lower than when the size information indicates L size, so the possibility of halftone dots remaining can be reduced.

さらに、図10に示すように、特定範囲SR3内の任意の変動回数VNについて、サイズ情報がL判を示す場合に選択されるフィルタは、サイズ情報がA4を示す場合に選択されるフィルタよりもエッジの強度が高くなるフィルタである。この結果、特定範囲SR3内の任意の変動回数VNについて、用紙のサイズに応じた適切な補正処理を実行できる。   Furthermore, as shown in FIG. 10, the filter selected when the size information indicates L for any number of times of fluctuation VN in the specific range SR3 is more than the filter selected when the size information indicates A4. This is a filter that increases the edge strength. As a result, it is possible to execute an appropriate correction process according to the size of the sheet for the arbitrary number of times of fluctuation VN within the specific range SR3.

以上説明した第3実施例によれば、上述したように、特徴量として、周辺領域AA(図5(A))内において、画素の位置の変動に対して変動回数VNが変動する程度である変動加速度VAが用いられる(図4、図5(C))。この結果、変動回数VNと、印刷条件と、に応じて、印刷画像内のエッジの強度を調節することで、印刷画像の見栄えを向上できる。   According to the third embodiment described above, as described above, the number of times of fluctuation VN fluctuates with respect to the fluctuation of the position of the pixel in the peripheral area AA (FIG. 5A) as the feature value. The fluctuation acceleration VA is used (FIG. 4, FIG. 5 (C)). As a result, the appearance of the print image can be improved by adjusting the intensity of the edge in the print image according to the number of times of fluctuation VN and the printing conditions.

より具体的には、印刷条件情報は、印刷画像を印刷するための用紙のサイズを示すサイズ情報を含む。CPU110は、変動回数VNが同じ場合であっても、サイズ情報がL判を示す場合と、サイズ情報がA4を示す場合と、では、それぞれ、異なるフィルタを使用フィルタとして選択する(図10)。この結果、用紙のサイズに応じた適切なエッジの強度を有するように、対象画像を補正できる。   More specifically, the printing condition information includes size information indicating the size of a sheet for printing a print image. Even when the number of times of fluctuation VN is the same, the CPU 110 selects different filters as the used filters in the case where the size information indicates L size and the case where the size information indicates A4 (FIG. 10). As a result, it is possible to correct the target image so as to have an edge strength appropriate for the size of the sheet.

以上の説明から解るように、第3実施例において、A4は、第1のサイズの例であり、L判は、第2のサイズの例である。そして、変動回数VNが特定の回数VNaである場合に選択され得る小エッジ強調フィルタFEsを用いた補正処理は、第1の補正処理の例であり、変動回数VNが特定の回数VNaである場合に選択され得る大エッジ強調フィルタFElを用いた補正処理は、第2の補正処理の例である。   As understood from the above description, in the third embodiment, A4 is an example of the first size, and L size is an example of the second size. The correction process using the small edge emphasis filter FEs that can be selected when the variation count VN is a specific count VNa is an example of a first correction process, and the variation count VN is a specific count VNa. The correction process using the large edge emphasis filter FEl that can be selected is an example of the second correction process.

D.変形例:
(1)上記第1実施例では、用紙の材質を示す材質情報のみに基づいて、2個の対応情報C11、C12のいずれを参照して、使用フィルタを選択するかが切り替えられ、第2実施例では、印刷モードを示すモード情報のみに基づいて、2個の対応情報C21、C22のいずれを参照して、使用フィルタを選択するかが切り替えられる。これに代えて、複数の印刷条件情報に基づいて、3個以上の対応情報を参照して、使用フィルタを選択するかが切り替えられても良い。
D. Modification:
(1) In the first embodiment, which of the two pieces of correspondence information C11 and C12 is referred to based on only the material information indicating the material of the sheet is switched to select the use filter, and the second embodiment is performed. In the example, which of the two pieces of correspondence information C21 and C22 is referred to based on only the mode information indicating the print mode is used to switch the selection of the use filter. Instead of this, whether to use the filter may be switched by referring to three or more pieces of correspondence information based on a plurality of pieces of printing condition information.

図11は、変形例のフィルタ選択テーブルFT4の一例を示す図である。このフィルタ選択テーブルFT4は、変動速度VSと実現すべきエッジ強度レベルとが対応付ける4個の対応情報C41〜C44を含んでいる。これらの4個の対応情報のいずれを参照するかは、材質情報とモード情報とに基づいて切り替えられる。具体的には、CPU110は、材質情報が普通紙を示し、かつ、モード情報が高速モードを示す第1の場合に、対応情報C41を用いて、変動速度VSに対応する使用フィルタを選択する。CPU110は、材質情報が普通紙を示し、かつ、モード情報が標準モードを示す第2の場合に、対応情報C42を用いて、変動速度VSに対応する使用フィルタを選択する。CPU110は、材質情報が光沢紙を示し、かつ、モード情報が高速モードを示す第3の場合に、対応情報C43を用いて、変動速度VSに対応する使用フィルタを選択する。CPU110は、材質情報が光沢紙を示し、かつ、モード情報が標準モードを示す第4の場合に、対応情報C44を用いて、変動速度VSに対応する使用フィルタを選択する。   FIG. 11 is a diagram showing an example of the filter selection table FT4 of the modification. The filter selection table FT4 includes four pieces of correspondence information C41 to C44 in which the fluctuation speed VS is associated with the edge strength level to be realized. Which one of these four pieces of correspondence information is to be referred to is switched based on the material information and the mode information. Specifically, in the first case where the material information indicates plain paper and the mode information indicates a high-speed mode, the CPU 110 uses the correspondence information C41 to select a use filter corresponding to the fluctuation speed VS. In the second case where the material information indicates plain paper and the mode information indicates standard mode, the CPU 110 uses the correspondence information C42 to select a use filter corresponding to the fluctuation speed VS. In the third case where the material information indicates glossy paper and the mode information indicates the high-speed mode, the CPU 110 uses the correspondence information C43 to select a use filter corresponding to the fluctuation speed VS. When the material information indicates glossy paper and the mode information indicates the standard mode, the CPU 110 uses the correspondence information C44 to select the use filter corresponding to the fluctuation speed VS.

対応情報C41〜C44は、いずれも、変動速度VSが増加するに連れて、段階的に、エッジ強度レベルが高くなるように、設定されている。これによって、対象画像OIのオブジェクトの種類(文字、写真、下地)に応じて、画像内のエッジの強度を適切に補正する補正処理が実行されるように、適切な使用フィルタが選択できる。   The correspondence information C41 to C44 are all set so that the edge strength level becomes higher in stages as the fluctuation rate VS increases. As a result, an appropriate use filter can be selected so that the correction processing for appropriately correcting the edge intensity in the image is executed according to the type (text, picture, background) of the object image OI.

さらに、対応情報C41〜C44は、変動速度VSが特定の値VSbである場合に、対応情報C41、C42、C43、C44の順で、エッジ強度レベルが高くなるように、設定されている。すなわち、変動速度VSが特定の値VSbである場合には、上述した第1の場合、第2の場合、第3の場合、第4の場合の順で、エッジの強度が高くなるように、注目画素CPが補正される。この結果、材質情報とモード情報との両方に応じて、画像内の強度を適切に補正できる。   Furthermore, the correspondence information C41 to C44 is set such that the edge strength level becomes higher in the order of the correspondence information C41, C42, C43, and C44 when the fluctuation speed VS is a specific value VSb. That is, when the fluctuation speed VS is a specific value VSb, the edge strength is increased in the order of the first case, the second case, the third case, and the fourth case, as described above. The pixel of interest CP is corrected. As a result, the intensity in the image can be appropriately corrected according to both the material information and the mode information.

(2)上記各実施例では、プリンタ300は、インクジェット方式のプリンタであるが、これに代えて、トナーを色材として用いて、印刷を行うレーザ方式のプリンタであっても良い。この場合には、例えば、第3実施例と同様に、変動回数VNと、用紙のサイズ情報と、に基づいて、2個の対応情報のいずれを参照して、使用フィルタを選択するかが切り替えられても良い。レーザ方式のプリンタでは、S30のハーフトーン処理において、ディザマトリクスを用いる公知のディザ法に従う処理が用いられる。 (2) In the above embodiments, the printer 300 is an inkjet printer, but may be a laser printer that performs printing using toner as a colorant instead. In this case, as in the third embodiment, for example, which of the two pieces of correspondence information is referred to based on the number of times of fluctuation VN and the size information of the sheet is used to switch the use filter. It may be done. In the laser printer, processing according to a known dither method using a dither matrix is used in the halftone processing of S30.

図12は、変形例のフィルタ選択テーブルFT5の一例を示す図である。このフィルタ選択テーブルFT5は、サイズ情報がA4を示す場合に用いられる対応情報C51と、サイズ情報がL判を示す場合に用いられる対応情報C52と、を含んでいる。   FIG. 12 is a diagram showing an example of the filter selection table FT5 of the modification. The filter selection table FT5 includes correspondence information C51 used when the size information indicates A4, and correspondence information C52 used when the size information indicates L size.

対応情報C51、52は、いずれも、変動回数VNが増加するに連れて、段階的に、エッジ強度レベルが低くなるように、設定されている。これによって、注目画素CPが文字を構成する画素であるか、網点を構成する画素であるかに応じて、画像内のエッジの強度を適切に補正する補正処理が実行されるように、適切な使用フィルタが選択できる。   The correspondence information C51 and C52 are both set so that the edge strength level gradually decreases as the number of times of fluctuation VN increases. By this, it is appropriate that the correction processing for appropriately correcting the intensity of the edge in the image is executed depending on whether the pixel of interest CP is a pixel that constitutes a character or a pixel that constitutes a halftone dot. You can select the use filter.

そして、対応情報C51、C52は、変動回数VNが特定の回数VNbである場合に、対応情報C52が、対応情報C51よりもエッジ強度レベルが高くなるように、設定されている。すなわち、変動回数VNが特定の回数VNbである場合には、上述したサイズ情報がL判を示す場合に、サイズ情報がA4を示す場合よりも、エッジの強度が高くなるように、注目画素CPが補正される。この結果、用紙のサイズに応じて、画像内の強度を適切に補正できる。   The correspondence information C51 and C52 are set such that the edge strength level of the correspondence information C52 is higher than that of the correspondence information C51 when the number of times of fluctuation VN is the specific number of times VNb. That is, when the number of times of fluctuation VN is the specific number of times VNb, the pixel of interest CP is such that the edge strength is higher when the size information indicates L size than when the size information indicates A4. Is corrected. As a result, the intensity in the image can be properly corrected according to the size of the sheet.

具体的に説明すると、第3実施例にて説明したように、上述したように、例えば、比較的長い観察距離では、自然な見栄えに見える画像であっても、比較的短い観察距離では、より細かい部分を視認しやすいので、ぼけた画像に見える場合がある。具体的には、観察距離が比較的短い名刺サイズやL判サイズでは、文字TXなどのオブジェクトのエッジのぼけが目立ちやすいので、文字TXなどのオブジェクトのエッジを構成する画素には、エッジの強度を高くする必要性が高い。これに対して、観察距離が比較的長いA4サイズやA3サイズでは、文字TXなどのオブジェクトのエッジのぼけは目立ち難いので、エッジの強度を高くする必要性が低いので、網点の消去を優先して、エッジの強度を低くしても良い。特に、ディザ法を用いるレーザプリンタでは、モアレが発生しやすい。このために、網点を構成する画素に対しては、エッジの強度を低くする平滑化処理を行う必要性が、インクジェットプリンタ以上に高い。このために、本実施例では、特に、サイズ情報がA4を示す場合には、最大でもエッジ強度レベルが「3」までとして、サイズ情報がL判を示す場合と比較して、文字と網点とのエッジ強度の差を小さくして、網点の消去を優先している。この結果、画像内に網点が残る可能性を低減できる。   Specifically, as described in the third embodiment, as described above, for example, at relatively long observation distances, even for images that look natural in appearance, at relatively short observation distances, Because it is easy to view small parts, it may appear as a blurred image. Specifically, at the business card size or L size size where the observation distance is relatively short, the edge of the object such as the character TX is easily blurred. Therefore, the edge intensity is applied to the pixels forming the edge of the object such as the character TX. There is a high need to On the other hand, in the case of A4 size and A3 size with relatively long viewing distance, blurring of the edge of the object such as the character TX is less noticeable, so it is less necessary to increase the edge strength. To reduce the edge strength. In particular, in a laser printer using a dither method, moiré tends to occur. For this reason, the need for performing a smoothing process to lower the edge strength is high for the pixels forming the halftone dots, as compared to the ink jet printer. For this reason, in the present embodiment, especially when the size information indicates A4, the character and halftone dot are compared to the case where the size information indicates L size, with the edge strength level being up to "3" at the maximum. The difference between the edge strengths of and is reduced to give priority to the elimination of halftone dots. As a result, the possibility of halftone dots remaining in the image can be reduced.

(3)上記各実施例では、端末装置100は、インクジェット方式のプリンタ300にのみ、印刷ジョブを送信するが、端末装置100は、図示しないレーザ方式のプリンタにも印刷ジョブを送信する構成であっても良い。この例では、インクジェット方式のプリンタ300に印刷ジョブを送信する場合には、S30のハーフトーン処理において、誤差拡散法に従うハーフトーン処理が実行され、レーザ方式のプリンタに印刷ジョブを送信する場合には、S30のハーフトーン処理において、ディザ法に従うハーフトーン処理が実行される。 (3) In the above embodiments, the terminal device 100 transmits the print job only to the inkjet printer 300, but the terminal device 100 transmits the print job to the laser printer (not shown). It is good. In this example, when the print job is transmitted to the inkjet printer 300, the halftone processing according to the error diffusion method is executed in the halftone processing of S30, and the print job is transmitted to the laser printer. In the halftone processing of S30, halftone processing according to the dither method is performed.

レーザ方式のプリンタでは、S30のハーフトーン処理において、ディザマトリクスを用いる公知のディザ法に従う処理が用いられる。この場合には、例えば、印刷条件情報として、用いられるハーフトーンの種類を示す処理情報が取得され、変動回数VNと、用いられるハーフトーン処理の種類を示す処理情報と、に基づいて、2個の対応情報のいずれを参照して、使用フィルタを選択するかが切り替えられても良い。あるいは、処理情報に代えて、印刷条件情報として、用いられるプリンタの種類(レーザ方式のプリンタであるかインクジェット方式のプリンタであるか)を示すプリンタ情報が取得されても良い。この場合には、変動回数VNと、プリンタ情報と、に基づいて、2個の対応情報のいずれを参照して、使用フィルタを選択するかが切り替えられる。   In the laser printer, processing according to a known dither method using a dither matrix is used in the halftone processing of S30. In this case, for example, two pieces of processing information indicating the type of halftone to be used are acquired as the printing condition information, and the number of times of fluctuation VN and the processing information indicating the type of halftone processing to be used are two. It may be switched whether to select the use filter with reference to any of the correspondence information of. Alternatively, instead of the processing information, printer information indicating the type of printer (whether the printer is a laser printer or an inkjet printer) may be acquired as the printing condition information. In this case, it is possible to switch which of the two pieces of correspondence information is referred to based on the number of times of fluctuation VN and the printer information to select the use filter.

図13は、変形例のフィルタ選択テーブルFT6の一例を示す図である。このフィルタ選択テーブルFT6は、処理情報が誤差拡散法を示す場合に用いられる対応情報C61と、処理情報がディザ法を示す場合に用いられる対応情報C62と、を含んでいる。なお、処理情報に代えてプリンタ情報が取得される場合には、プリンタ情報がインクジェット方式のプリンタを示す場合には、処理情報が誤差拡散法を示す場合と同様に、対応情報C61が用いられる。そして、プリンタ情報がレーザ方式のプリンタを示す場合には、処理情報がディザ法を示す場合と同様に、対応情報C62が用いられる。   FIG. 13 is a diagram showing an example of the filter selection table FT6 of the modification. The filter selection table FT6 includes correspondence information C61 used when the processing information indicates the error diffusion method, and correspondence information C62 used when the processing information indicates the dither method. When printer information is obtained instead of processing information, when the printer information indicates an inkjet printer, the correspondence information C61 is used as in the case where the processing information indicates an error diffusion method. When the printer information indicates a laser printer, the correspondence information C62 is used as in the case where the processing information indicates a dither method.

そして、対応情報C61、C62は、変動回数VNが特定の回数VNcである場合に、対応情報C52が、対応情報C61よりもエッジ強度レベルが高くなるように、設定されている。すなわち、変動回数VNが特定の回数VNcである場合には、上述した処理情報がディザ法を示す場合に、処理情報が誤差拡散法を示す場合よりも、エッジの強度が高くなるように、注目画素CPが補正される。この結果、ハーフトーン処理の種類に応じて、画像内の強度を適切に補正できる。   The correspondence information C61 and C62 are set so that the edge strength level of the correspondence information C52 becomes higher than that of the correspondence information C61 when the number of times of fluctuation VN is the specific number of times VNc. That is, when the number of times of fluctuation VN is a specific number of times VNc, attention is focused so that the edge strength is higher when the processing information indicates the error diffusion method than when the processing information indicates the error diffusion method. Pixel CP is corrected. As a result, the intensity in the image can be properly corrected according to the type of halftone processing.

具体的に説明すると、誤差拡散法を用いる場合には、ディザ法を用いる場合と比較して、文字TXなどのオブジェクトのエッジがぼけずに維持されやすい。このために、本実施例では、対応情報C61では、変動回数VNに拘わらずに、エッジ強度レベルは、最も低いレベルに設定される。すなわち、処理情報が誤差拡散法を示す場合には、変動回数VNに拘わらずに、すなわち、注目画素CPが文字TXを構成する画素であっても網点を構成する画素であっても、エッジの強度を低くする大平滑化フィルタFSlを用いた補正処理のみが行われる。これによって、誤差拡散法を用いる場合には、網点の消去が確実に行われる。   Specifically, in the case of using the error diffusion method, the edge of an object such as the character TX is easily maintained without blurring as compared with the case of using the dither method. For this reason, in the present embodiment, in the correspondence information C61, the edge strength level is set to the lowest level regardless of the number of times of fluctuation VN. That is, when the processing information indicates the error diffusion method, the edge is selected regardless of the number of times of variation VN, that is, whether the pixel of interest CP is a pixel constituting the character TX or a pixel constituting a halftone dot. Only the correction process using the large smoothing filter FS1 that lowers the intensity of. By this, in the case of using the error diffusion method, the elimination of halftone dots is surely performed.

これに対して、処理情報がディザ法を示す場合には、変動回数VNが増加するにつれて、エッジ強度レベルが低くなるように、設定されている。これによって、注目画素CPが文字を構成する画素である場合には、エッジの強度が高くされ、注目画素CPが網点を構成する画素である場合には、エッジの強度が低くなるように、適切な使用フィルタが選択できる。   On the other hand, when the processing information indicates the dither method, the edge strength level is set to be lower as the number of times of fluctuation VN increases. As a result, if the pixel of interest CP is a pixel forming a character, the edge strength is increased, and if the pixel of interest CP is a pixel forming a halftone dot, the edge strength is reduced. You can select the appropriate usage filter.

(4)上記各実施例では、図9〜図10に示すように、特徴量(変動速度VS、変動加速度VA、変動回数VN)が増加するにつれて、エッジ強度レベルが段階的に増加または減少するように、使用フィルタが決定される。これは、選択できる使用フィルタの個数が限られているからである。例えば、フィルタの係数を、例えば、連続的に変化させることによって、エッジ強度レベルを連続的に変化させても良い。この場合には、特徴量(変動速度VS、変動加速度VA、変動回数VN)が増加するにつれて、エッジ強度レベルが連続的に増加または減少するように、使用フィルタが決定される。 (4) In each of the above embodiments, as shown in FIG. 9 to FIG. 10, the edge strength level increases or decreases in a stepwise manner as the feature amount (fluctuating speed VS, fluctuating acceleration VA, fluctuating number VN) increases. As such, the filter used is determined. This is because the number of use filters that can be selected is limited. For example, the edge intensity level may be varied continuously, eg, by varying the filter coefficients continuously. In this case, the use filter is determined such that the edge strength level continuously increases or decreases as the feature amount (the fluctuation rate VS, the fluctuation acceleration VA, the number of fluctuations VN) increases.

(5)第1実施例の変動速度VSは、一例であり、これに限られない。変形例では、注目画素CPと周辺画素SPとを含む領域において、画素の位置の変動に対して画素の値が変動する程度を示す他の値が用いられ得る。例えば、変動速度VSは、注目画素CPを含むフィルタ範囲に対して、一次微分フィルタを適用することで算出されるエッジ量であっても良い。一次微分フィルタには、例えば、Prewittフィルタや、Sobelフィルタなどの公知のフィルタが用いられても良い。また、注目画素CPと隣接する画素との間のRGB値のユークリッド距離が用いられても良い。このように、例えば、注目画素CPと周辺画素SPとを含む領域内の画素の値もしくは該画素の値に基づく値(輝度、明度、彩度など)の差分を表現する値が用いられ得る。 (5) The fluctuation speed VS of the first embodiment is an example, and is not limited to this. In the modification, in the region including the target pixel CP and the peripheral pixel SP, another value may be used which indicates the degree to which the value of the pixel fluctuates with respect to the fluctuation of the position of the pixel. For example, the fluctuation speed VS may be an edge amount calculated by applying a first derivative filter to a filter range including the pixel of interest CP. For the first derivative filter, for example, a known filter such as a Prewitt filter or a Sobel filter may be used. Also, Euclidean distance of RGB values between the pixel of interest CP and the adjacent pixel may be used. Thus, for example, a value representing the value of a pixel in a region including the pixel of interest CP and the peripheral pixel SP or a difference representing the value based on the value of the pixel (brightness, lightness, saturation, etc.) may be used.

(6)第2実施例の変動加速度VAは、一例であり、これに限られない。変形例では、注目画素CPと周辺画素SPとを含む領域において、画素の位置の変動に対して変動速度VSが変動する程度を示す他の値が用いられ得る。例えば、変動加速度VAは、注目画素CPを含むフィルタ範囲に対して、二次微分フィルタを適用することで算出されるエッジ量であっても良い。二次微分フィルタには、例えば、Laplacianフィルタなどの公知のフィルタが用いられても良い。また、注目画素CPと一方の側に隣接する画素との間のRGB値のユークリッド距離と、注目画素CPと他方の側に隣接する画素との間のRGB値のユークリッド距離と、の差分が用いられても良い。このように、例えば、注目画素CPと周辺画素SPとを含む領域内の画素の値もしくは該画素の値に基づく値(輝度、明度、彩度など)の加速度を表現する値が用いられ得る。 (6) The fluctuation acceleration VA of the second embodiment is an example, and is not limited to this. In the modification, in the region including the target pixel CP and the peripheral pixel SP, another value may be used which indicates the degree to which the fluctuation velocity VS fluctuates with respect to the fluctuation of the position of the pixel. For example, the fluctuation acceleration VA may be an edge amount calculated by applying a second derivative filter to a filter range including the pixel of interest CP. For the second derivative filter, for example, a known filter such as a Laplacian filter may be used. The difference between the Euclidean distance of the RGB value between the pixel of interest CP and the pixel adjacent to one side and the Euclidean distance of the RGB value between the pixel of interest CP and the pixel adjacent to the other side is used It may be done. Thus, for example, the value of the pixel in the area including the target pixel CP and the peripheral pixel SP or a value representing the acceleration based on the value of the pixel (brightness, lightness, saturation, etc.) may be used.

(7)第3実施例の変動回数VNは、一例であり、これに限られない。変形例では、注目画素CPと周辺画素SPとを含む領域において、画素の位置の変動に対して画素の値が増減する回数を示す他の値が用いられ得る。例えば、変動回数VNは、例えば、周辺領域AA内の輝度、明度、彩度などの空間周波数などが用いられても良い。このように、例えば、注目画素CPと周辺画素SPとを含む領域内の画素の値もしくは該画素の値に基づく値(輝度、明度、彩度など)の変化の頻度を表現する値が用いられ得る。 (7) The number of times of fluctuation VN of the third embodiment is an example, and is not limited to this. In the modification, in the region including the target pixel CP and the peripheral pixel SP, another value may be used to indicate the number of times the value of the pixel increases or decreases with respect to the fluctuation of the position of the pixel. For example, as the number of times of fluctuation VN, for example, spatial frequency such as luminance in the peripheral area AA, lightness, saturation or the like may be used. Thus, for example, a value representing the frequency of change of the value of the pixel in the area including the target pixel CP and the peripheral pixel SP or the value based on the value of the pixel (brightness, lightness, saturation, etc.) is used. obtain.

(8)第1実施例で用いられる変動速度VSに代えて、変動加速度VAが用いられても良い。また、第2実施例で用いられる変動加速度VAに代えて、変動速度VSが用いられても良い。いずれの特徴量も、大きいほど、注目画素CPが文字を構成する可能性が高く、小さいほど注目画素CPが写真や下地を構成する可能性が高いためである。変動加速度VAは、上述したように変動速度VSが変動する程度を示すので、変動速度VSそのもの、および、変動加速度VAは、「変動速度VSに基づく値」である、と言うことができる。 (8) A variable acceleration VA may be used instead of the variable velocity VS used in the first embodiment. Also, instead of the fluctuation acceleration VA used in the second embodiment, the fluctuation speed VS may be used. This is because the larger the feature amount, the higher the possibility that the focused pixel CP constitutes a character, and the smaller the smaller the feature amount, the higher the likelihood that the focused pixel CP constitutes a photograph or a background. Since the fluctuation acceleration VA indicates the degree to which the fluctuation speed VS fluctuates as described above, it can be said that the fluctuation speed VS itself and the fluctuation acceleration VA are “values based on the fluctuation speed VS”.

(9)図2の印刷処理を実行する印刷制御装置としての端末装置100は、他の種類の装置、例えば、プリンタ300が備えるCPUとメモリであっても良い。この場合には、例えば、プリンタ300が備えるCPUは、自身が備えるメモリや端末装置100から対象画像データを取得して、印刷処理を実行して、印刷画像データを生成する。該CPUは、生成される印刷画像データに従って、自身が備える印刷機構に、印刷画像を印刷させる。この場合には、プリンタ300が備えるCPUとメモリが印刷制御装置の例であり、プリンタ300が備える印刷機構が、印刷実行部の例である。 (9) The terminal device 100 as a print control device that executes the printing process of FIG. 2 may be another type of device, for example, a CPU and a memory included in the printer 300. In this case, for example, the CPU included in the printer 300 acquires target image data from a memory included in itself and the terminal device 100, executes printing processing, and generates print image data. The CPU causes the print mechanism provided by the CPU to print the print image according to the print image data generated. In this case, the CPU and the memory included in the printer 300 are an example of a print control apparatus, and the print mechanism included in the printer 300 is an example of a print execution unit.

また、図2の印刷処理を実行する印刷制御装置は、例えば、端末装置100やプリンタ300から対象画像データを取得して画像処理を実行するサーバであっても良い。このようなサーバは、ネットワークを介して互いに通信可能な複数個の計算機であっても良い。この場合には、ネットワークを介して互いに通信可能な複数個の計算機の全体が、印刷制御装置に対応する。   Also, the print control apparatus that executes the printing process of FIG. 2 may be, for example, a server that acquires target image data from the terminal apparatus 100 or the printer 300 and executes image processing. Such a server may be a plurality of computers that can communicate with each other via a network. In this case, the plurality of computers that can communicate with each other via the network correspond to the print control device.

(10)上記各実施例において、ハードウェアによって実現されていた構成の一部をソフトウェアに置き換えるようにしてもよく、逆に、ソフトウェアによって実現されていた構成の一部あるいは全部をハードウェアに置き換えるようにしてもよい。例えば、図1の端末装置100のCPU110が実行している処理の一部は、専用のハードウェア回路によって実現されてもよい。 (10) In the above embodiments, a part of the configuration realized by hardware may be replaced by software, and conversely, a part or all of the configuration implemented by software is replaced by hardware You may do so. For example, part of the processing executed by the CPU 110 of the terminal device 100 of FIG. 1 may be realized by a dedicated hardware circuit.

以上、実施例、変形例に基づき本発明について説明してきたが、上記した発明の実施の形態は、本発明の理解を容易にするためのものであり、本発明を限定するものではない。本発明は、その趣旨並びに特許請求の範囲を逸脱することなく、変更、改良され得ると共に、本発明にはその等価物が含まれる。   Although the present invention has been described above based on the examples and modifications, the above-described embodiment of the present invention is for the purpose of facilitating the understanding of the present invention, and does not limit the present invention. The present invention can be modified and improved without departing from the spirit and the scope of the claims, and the present invention includes the equivalents thereof.

100…端末装置、110…CPU、120…揮発性記憶装置、130…不揮発性記憶装置、140…表示部、150…操作部、170…通信インタフェース、300…プリンタ、VA…変動加速度、BG…下地、PG…コンピュータプログラム、OI…対象画像、IM…写真、VN…変動回数、FP…最遠周辺画素、CP…注目画素、AP…変動パラメータ、SP…周辺画素、VS…変動速度、FT1〜FT6…フィルタ選択テーブル、TX…文字、FEl、FEs、FEm…エッジ強調フィルタ、FSl、FSm、FSs…平滑化フィルタ   DESCRIPTION OF SYMBOLS 100 ... Terminal device, 110 ... CPU, 120 ... Volatile storage device, 130 ... Nonvolatile storage device, 140 ... Display part, 150 ... Operation part, 170 ... Communication interface, 300 ... Printer, VA ... Variation acceleration, BG ... Base , PG: computer program, OI: target image, IM: photograph, VN: fluctuation number, FP: farthest peripheral pixel, CP: notable pixel, AP: fluctuation parameter, SP: peripheral pixel, VS: fluctuation speed, FT1 to FT6 ... Filter selection table, TX ... Character, FEl, FEs, FEm ... Edge emphasis filter, FSl, FSm, FSs ... Smoothing filter

Claims (11)

色材を用いて画像を印刷する印刷実行部を制御する印刷制御装置であって、
対象画像を示す対象画像データを取得する画像取得部と、
前記対象画像に基づく印刷画像を印刷するための印刷条件を示す条件情報を取得する条件取得部と、
前記対象画像内の注目画素の周辺に位置する複数個の周辺画素の値を用いて、前記複数個の周辺画素の値の変動に関する特徴量を算出する算出部と、
前記特徴量と前記条件情報とに基づいて、前記注目画素に適用すべき補正処理であって、前記注目画素を含む前記対象画像内のエッジの強度を補正する処理である前記補正処理を決定する決定部と、
前記対象画像データに対して、決定済みの前記補正処理を含む生成処理を実行して、前記印刷画像を示す印刷画像データを生成する生成部と、
前記印刷画像データに従って、前記印刷実行部に前記印刷画像を印刷させる印刷制御部と、
を備える、印刷制御装置。
A print control apparatus that controls a print execution unit that prints an image using a color material.
An image acquisition unit that acquires target image data indicating a target image;
A condition acquisition unit that acquires condition information indicating printing conditions for printing a print image based on the target image;
A calculation unit that calculates a feature amount related to variations in values of the plurality of peripheral pixels using values of a plurality of peripheral pixels positioned around a target pixel in the target image;
The correction processing to be applied to the target pixel is determined based on the feature amount and the condition information, which is processing to correct an edge intensity in the target image including the target pixel. The decision unit,
A generation unit that executes generation processing including the determined correction processing on the target image data to generate print image data indicating the print image;
A print control unit that causes the print execution unit to print the print image according to the print image data;
A print control device comprising:
請求項1に記載の印刷制御装置であって、
前記特徴量は、前記注目画素と前記複数個の周辺画素とを含む領域内において、画素の位置の変動に対して画素の値が変動する程度である変動速度を含む、印刷制御装置。
The printing control apparatus according to claim 1, wherein
The print control device, wherein the feature amount includes a variation speed which is a degree to which a value of a pixel fluctuates with respect to a fluctuation of a position of a pixel in a region including the target pixel and the plurality of peripheral pixels.
請求項1または2に記載の印刷制御装置であって、
前記特徴量は、前記注目画素と前記複数個の周辺画素とを含む領域内において、画素の位置の変動に対して画素の値が増減する回数である増減回数を含む、印刷制御装置。
The print control apparatus according to claim 1, wherein
The print control device, wherein the feature amount includes an increase / decrease number of times that the value of the pixel increases / decreases with respect to the change of the position of the pixel in the area including the target pixel and the plurality of peripheral pixels.
請求項1〜3のいずれかに記載の印刷制御装置であって、
前記特徴量は、前記注目画素と前記複数個の周辺画素とを含む領域内において、画素の位置の変動に対して画素の値が変動する程度である変動速度が変動する程度である変動加速度を含む、印刷制御装置。
The printing control apparatus according to any one of claims 1 to 3, wherein
The feature amount is a variation acceleration that is a variation speed at which the value of the pixel fluctuates with respect to the fluctuation of the position of the pixel in a region including the target pixel and the plurality of peripheral pixels. Including print control device.
請求項1に記載の印刷制御装置であって、
前記特徴量は、前記注目画素と前記複数個の周辺画素とを含む領域内において、画素の位置の変動に対して画素の値が増減する回数である増減回数を含み、
前記条件情報は、前記印刷画像を印刷するための被印刷媒体のサイズを示すサイズ情報を含み、
前記決定部は、
前記サイズ情報が第1のサイズを示し、かつ、前記増減回数が特定の回数である場合には、第1の補正処理を前記適用すべき補正処理として決定し、
前記サイズ情報が前記第1のサイズよりも小さな第2のサイズを示し、かつ、前記増減回数が前記特定の回数である場合には、前記第1の補正処理よりも前記エッジの強度が高くなる第2の補正処理を前記適用すべき補正処理として決定する、印刷制御装置。
The printing control apparatus according to claim 1, wherein
The feature amount includes an increase / decrease number which is the number of times the pixel value increases / decreases with respect to the change of the position of the pixel in the region including the target pixel and the plurality of peripheral pixels.
The condition information includes size information indicating a size of a print medium for printing the print image,
The determination unit is
If the size information indicates a first size and the number of times of increase and decrease is a specific number, a first correction process is determined as the correction process to be applied,
When the size information indicates a second size smaller than the first size, and the number of times of increase and decrease is the specific number, the strength of the edge is higher than that of the first correction process. A print control apparatus, which determines a second correction process as the correction process to be applied.
請求項5に記載の印刷制御装置であって、
前記決定部は、
前記サイズ情報が前記第1のサイズを示す場合に、前記増減回数が増加するに連れて、連続的または段階的に前記エッジの強度が低くなる前記補正処理を、前記適用すべき補正処理として決定し、
前記サイズ情報が前記第2のサイズを示す場合に、前記増減回数が増加するに連れて、連続的または段階的に前記エッジの強度が低くなる前記補正処理を、前記適用すべき補正処理として決定し、
特定範囲内の任意の前記増減回数について、前記サイズ情報が前記第2のサイズを示す場合に決定される前記補正処理は、前記サイズ情報が前記第1のサイズを示す場合に決定される前記補正処理よりも前記エッジの強度が高くなる処理である、印刷制御装置。
The printing control apparatus according to claim 5, wherein
The determination unit is
When the size information indicates the first size, the correction process in which the intensity of the edge decreases continuously or stepwise as the number of increases and decreases increases is determined as the correction process to be applied. And
When the size information indicates the second size, the correction process in which the intensity of the edge decreases continuously or stepwise as the number of increases and decreases increases is determined as the correction process to be applied. And
The correction process determined when the size information indicates the second size for any number of increases and decreases within a specific range is the correction determined when the size information indicates the first size A printing control apparatus, which is processing in which the strength of the edge is higher than processing.
請求項1に記載の印刷制御装置であって、
前記特徴量は、前記注目画素と前記複数個の周辺画素とを含む領域内において、画素の位置の変動に対して画素の値が変動する程度である変動速度に基づく値を含み、
前記条件情報は、前記印刷画像を印刷するための被印刷媒体の材質を示す材質情報を含み、
前記決定部は、
前記材質情報が第1の材質を示し、かつ、前記変動速度に基づく値が特定の値である場合には、第3の補正処理を前記適用すべき補正処理として決定し、
前記材質情報が前記第1の材質よりも前記色材が滲みやすい第2の材質を示し、かつ、前記変動速度に基づく値が前記特定の値である場合には、前記第3の補正処理よりも前記エッジの強度が高くなる第4の補正処理を前記適用すべき補正処理として決定する、印刷制御装置。
The printing control apparatus according to claim 1, wherein
The feature amount includes a value based on a fluctuation speed which is a degree to which the value of the pixel fluctuates with respect to the fluctuation of the position of the pixel in the area including the target pixel and the plurality of peripheral pixels.
The condition information includes material information indicating a material of a print medium for printing the print image,
The determination unit is
If the material information indicates the first material and the value based on the fluctuation speed is a specific value, then the third correction process is determined as the correction process to be applied,
If the material information indicates a second material in which the coloring material is more likely to blur than the first material, and the value based on the fluctuation speed is the specific value, the third correction process is performed. The print control apparatus, wherein the fourth correction process in which the edge strength is high is determined as the correction process to be applied.
請求項7に記載の印刷制御装置であって、
前記決定部は、
前記材質情報が前記第1の材質を示す場合に、前記変動速度に基づく値が増加するに連れて、連続的または段階的に前記エッジの強度が高くなる前記補正処理を、前記適用すべき補正処理として決定し、
前記材質情報が前記第2の材質を示す場合に、前記変動速度に基づく値が増加するに連れて、連続的または段階的に前記エッジの強度が高くなる前記補正処理を、前記適用すべき補正処理として決定し、
特定範囲内の任意の前記変動速度に基づく値について、前記材質情報が前記第2の材質を示す場合に決定される前記補正処理は、前記材質情報が前記第1の材質を示す場合に決定される前記補正処理よりも前記エッジの強度が高くなる処理である、印刷制御装置。
The print control apparatus according to claim 7, wherein
The determination unit is
When the material information indicates the first material, the correction process in which the strength of the edge increases continuously or stepwise as the value based on the fluctuation speed increases is the correction to be applied Determined as processing
When the material information indicates the second material, the correction process in which the strength of the edge increases continuously or in steps as the value based on the fluctuation speed increases is the correction to be applied Determined as processing
The correction process determined when the material information indicates the second material is a value determined based on an arbitrary fluctuation speed within a specific range, and the correction process is determined when the material information indicates the first material. The printing control apparatus, wherein the edge strength is higher than the correction processing.
請求項1に記載の印刷制御装置であって、
前記特徴量は、前記注目画素と前記複数個の周辺画素とを含む領域内において、画素の位置の変動に対して画素の値が変動する程度である変動速度に基づく値を含み、
前記条件情報は、印刷モードを示すモード情報を含み、
前記決定部は、
前記モード情報が第1の印刷モードを示し、かつ、前記変動速度に基づく値が特定の値である場合には、第5の補正処理を前記適用すべき補正処理として決定し、
前記モード情報が前記第1の印刷モードよりも印刷速度が速い第2の印刷モードを示し、かつ、前記変動速度に基づく値が前記特定の値である場合には、前記第5の補正処理よりも前記エッジの強度が高くなる第6の補正処理を前記適用すべき補正処理として決定する、印刷制御装置。
The printing control apparatus according to claim 1, wherein
The feature amount includes a value based on a fluctuation speed which is a degree to which the value of the pixel fluctuates with respect to the fluctuation of the position of the pixel in the area including the target pixel and the plurality of peripheral pixels.
The condition information includes mode information indicating a print mode,
The determination unit is
When the mode information indicates the first print mode and the value based on the fluctuation speed is a specific value, the fifth correction process is determined as the correction process to be applied,
If the mode information indicates a second printing mode in which the printing speed is faster than the first printing mode and the value based on the fluctuation speed is the specific value, the fifth correction process is performed. The print control apparatus, wherein a sixth correction process in which the edge strength is high is determined as the correction process to be applied.
請求項9に記載の印刷制御装置であって、
前記決定部は、
前記モード情報が前記第1の印刷モードを示す場合に、前記変動速度に基づく値が増加するに連れて、連続的または段階的に前記エッジの強度が高くなる前記補正処理を、前記適用すべき補正処理として決定し、
前記モード情報が前記第2の印刷モードを示す場合に、前記変動速度に基づく値が増加するに連れて、連続的または段階的に前記エッジの強度が高くなる前記補正処理を、前記適用すべき補正処理として決定し、
特定範囲内の任意の前記変動速度に基づく値について、前記モード情報が前記第2の印刷モードを示す場合に決定される前記補正処理は、前記モード情報が前記第1の印刷モードを示す場合に決定される前記補正処理よりも前記エッジの強度が高くなる処理である、印刷制御装置。
The print control apparatus according to claim 9, wherein
The determination unit is
In the case where the mode information indicates the first print mode, the correction process in which the intensity of the edge increases continuously or stepwise as the value based on the fluctuation speed increases should be applied. Determined as correction processing,
In the case where the mode information indicates the second print mode, the correction process in which the intensity of the edge increases continuously or stepwise as the value based on the fluctuation speed increases should be applied. Determined as correction processing,
The correction processing determined when the mode information indicates the second print mode for a value based on any of the fluctuation speeds within a specific range is the case where the mode information indicates the first print mode. A print control apparatus, which is a process in which the strength of the edge is higher than the correction process to be determined.
色材を用いて画像を印刷する印刷実行部を制御するコンピュータプログラムであって、
対象画像を示す対象画像データを取得する画像取得機能と、
前記対象画像に基づく印刷画像を印刷するための印刷条件を示す条件情報を取得する条件取得機能と、
前記対象画像内の注目画素の周辺に位置する複数個の周辺画素の値を用いて、前記複数個の周辺画素の値の変動に関する特徴量を算出する算出機能と、
前記特徴量と前記条件情報とに基づいて、前記注目画素に適用すべき補正処理であって、前記注目画素を含む前記対象画像内のエッジの強度を補正する処理である前記補正処理を決定する決定機能と、
前記対象画像データに対して、決定済みの前記補正処理を含む生成処理を実行して、前記印刷画像を示す印刷画像データを生成する生成機能と、
前記印刷画像データに従って、前記印刷実行部に前記印刷画像を印刷させる印刷制御機能と、
をコンピュータに実現させる、コンピュータプログラム。

A computer program for controlling a print execution unit that prints an image using a colorant,
An image acquisition function of acquiring target image data indicating a target image;
A condition acquisition function of acquiring condition information indicating printing conditions for printing a print image based on the target image;
A calculation function of calculating a feature amount related to variations in values of the plurality of peripheral pixels using values of a plurality of peripheral pixels positioned around a target pixel in the target image;
The correction processing to be applied to the target pixel is determined based on the feature amount and the condition information, which is processing to correct an edge intensity in the target image including the target pixel. With the decision function
A generation function of generating print image data indicating the print image by executing a generation process including the determined correction process on the target image data;
A print control function that causes the print execution unit to print the print image according to the print image data;
A computer program that makes a computer realize it.

JP2017244878A 2017-12-21 2017-12-21 Printer controller and computer program Pending JP2019114845A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017244878A JP2019114845A (en) 2017-12-21 2017-12-21 Printer controller and computer program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017244878A JP2019114845A (en) 2017-12-21 2017-12-21 Printer controller and computer program

Publications (1)

Publication Number Publication Date
JP2019114845A true JP2019114845A (en) 2019-07-11

Family

ID=67222851

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017244878A Pending JP2019114845A (en) 2017-12-21 2017-12-21 Printer controller and computer program

Country Status (1)

Country Link
JP (1) JP2019114845A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008017052A (en) * 2006-07-04 2008-01-24 Canon Inc Image processing apparatus, image processing method, and program
JP2009126058A (en) * 2007-11-22 2009-06-11 Olympus Corp Image recording device and poor recording detecting method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008017052A (en) * 2006-07-04 2008-01-24 Canon Inc Image processing apparatus, image processing method, and program
JP2009126058A (en) * 2007-11-22 2009-06-11 Olympus Corp Image recording device and poor recording detecting method

Similar Documents

Publication Publication Date Title
JP4683654B2 (en) Image processing apparatus, image processing apparatus control method, and program
JP2017092872A (en) Image processing apparatus and image processing method
JP6578805B2 (en) Image processing apparatus and computer program
JP5539208B2 (en) Method, apparatus and computer program for converting a digital color image
US20170050432A1 (en) Image Processing Apparatus that Controls Print Execution Unit Provided with Print Head
US9406004B2 (en) Image processing apparatus, image processing method, and storage medium
US20090244660A1 (en) Coloring image generating apparatus and coloring image generating method
US8848245B2 (en) Printing apparatus, method of generating color conversion table, and computer program
JP2010251848A (en) Output instruction device, image formation system, output instruction method, control program, and recording medium of the same
JP2017184040A (en) Image processing device, and computer program
US11416723B2 (en) Image processing apparatus, and non-transitory computer-readable recording medium therefor
CN110099192B (en) Image forming apparatus, control method thereof, and storage medium storing control program thereof
JP5103304B2 (en) Image processing apparatus, image processing method, and image processing program
JP2008035511A (en) Image processing device, image processing method, and image processing program
JP6781399B2 (en) Control device and computer program
JP2019114845A (en) Printer controller and computer program
JP7360094B2 (en) Image processing device
JP2006319961A (en) Image processing apparatus, recording apparatus, and image processing method
JP2007251619A (en) Apparatus, method and program for image processing
JP2006281445A (en) Printing data forming apparatus and printing data formation program
JP7183057B2 (en) Image processing device, image processing method, program
JP5870638B2 (en) Image processing apparatus, image processing method, and image processing program
US20210360125A1 (en) Image processing apparatus, control method thereof, and storage medium
JP2013046329A (en) Image processor
JP6418055B2 (en) Image processing apparatus and computer program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20201127

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20210827

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210915

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20211110

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20211201

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20220601