JP2019097141A - Printing control device, and, computer program - Google Patents

Printing control device, and, computer program Download PDF

Info

Publication number
JP2019097141A
JP2019097141A JP2017253032A JP2017253032A JP2019097141A JP 2019097141 A JP2019097141 A JP 2019097141A JP 2017253032 A JP2017253032 A JP 2017253032A JP 2017253032 A JP2017253032 A JP 2017253032A JP 2019097141 A JP2019097141 A JP 2019097141A
Authority
JP
Japan
Prior art keywords
pixel
correction
filter
print
medium
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
JP2017253032A
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
Publication of JP2019097141A publication Critical patent/JP2019097141A/en
Pending legal-status Critical Current

Links

Images

Abstract

To improve a look of a printed image by selecting appropriate correction processing.SOLUTION: A printing control device configured to control a printing execution part acquires object image data, acquires medium information indicating the type of a printed medium to print an object image, and uses the medium information to select correction processing to be executed from among multiple pieces of correction processing. The correction processing is processing for correcting a value of a pixel of interest to be corrected in the object image by using one or more correction values corresponding to each of multiple peripheral pixels which are positioned around the pixel of interest. The printing control device generates print image data by executing generation processing including the selected correction processing onto the object image data and, in accordance with the print image data, causes the print execution part to print a print image on the printed medium. In a case where the medium information indicates a medium of a first type, first correction processing is selected and in a case where the medium information indicates a medium of a second type, second correction processing is selected.SELECTED DRAWING: Figure 4

Description

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

特許文献1に開示されたカラー原稿複写装置は、注目画素の属性が、下地、文字、網点のいずれであるかを判断し、注目画素に対して、属性に応じて異なるフィルタを用いた処理を実行する。例えば、文字の画素には、エッジ強調用のフィルタが用いられ、網点の画素には、スムージング用のフィルタが用いられ、下地の画素には、網点の画素に用いられるフィルタよりもフィルタサイズが小さなスムージング用のフィルタが用いられる。   The color document copying apparatus disclosed in Patent Document 1 determines whether the attribute of the pixel of interest is background, characters, or halftone dots, and performs processing using different filters for the pixel of interest depending on the attribute. Run. For example, a filter for edge enhancement is used for character pixels, a filter for smoothing is used for halftone pixels, and a filter size for the base pixels is larger than the filter used for halftone pixels. A small smoothing filter is used.

特開2008−35499号公報JP 2008-35499 A 特開2008−9649号公報JP, 2008-9649, A 特開2001−144965号公報JP 2001-144965 A 特開平11−331606号公報JP-A-11-331606 特開平3−88478号公報Japanese Patent Laid-Open No. 3-88478

しかしながら、適用すべきフィルタを適切に選択することができれば、印刷画像の見栄えをさらに向上し得ることから、フィルタを選択する手法には、改善の余地があった。このように、適用すべき補正処理(例えば、適用すべきフィルタ)を適切に選択する技術が求められていた。   However, there is room for improvement in the method of selecting a filter because the appearance of the printed image can be further improved if the filter to be applied can be appropriately selected. Thus, there has been a demand for a technique for appropriately selecting a correction process (for example, a filter to be applied) to be applied.

本明細書は、適切な補正処理を選択することで、印刷画像の見栄えを向上できる技術を開示する。   The present specification discloses a technique that can improve the appearance of a print image by selecting an appropriate correction process.

本明細書に開示された技術は、上述の課題の少なくとも一部を解決するためになされたものであり、以下の適用例として実現することが可能である。   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]色材を用いて被印刷媒体に画像を印刷する印刷実行部を制御する印刷制御装置であって、対象画像を示す対象画像データを取得する画像取得部と、前記対象画像を印刷すべき前記被印刷媒体の種類を示す媒体情報を取得する媒体情報取得部と、前記媒体情報を用いて、複数個の補正処理の中から実行すべき補正処理を選択する選択部であって、前記複数個の補正処理は、第1の補正処理と第2の補正処理とを含み、前記第1の補正処理は、前記対象画像内の補正すべき注目画素の周辺に位置する複数個の第1の周辺画素のそれぞれに対応付けられる1つ以上の第1の補正値を用いて前記注目画素の値を補正する処理であり、前記第2の補正処理は、前記注目画素の周辺に位置する複数個の第2の周辺画素のそれぞれに対応付けられる1つ以上の第2の補正値を用いて前記注目画素の値を補正する処理である、前記選択部と、前記対象画像データに対して選択済みの前記補正処理を含む生成処理を実行して、印刷画像を示す印刷画像データを生成する生成部と、前記印刷画像データに従って、印刷実行部に前記印刷画像を被印刷媒体に印刷させる印刷制御部と、を備え、前記選択部は、前記媒体情報が第1種の媒体を示す場合に、前記第1の補正処理を選択し、前記媒体情報が第2種の媒体を示す場合に、前記第2の補正処理を選択する、印刷制御装置。 Application Example 1 A print control apparatus that controls a print execution unit that prints an image on a medium to be printed using a color material, the image acquisition unit acquiring target image data indicating a target image, and the target image A medium information acquisition unit that acquires medium information indicating the type of the print target medium to be printed; and a selection unit that selects a correction process to be performed from among a plurality of correction processes using the medium information. The plurality of correction processes include a first correction process and a second correction process, and the first correction process is performed on a plurality of pixels located around a pixel of interest to be corrected in the target image. The processing of correcting the value of the pixel of interest using one or more first correction values associated with each of the first peripheral pixels, wherein the second correction process is performed at positions around the pixel of interest Are associated with each of a plurality of second peripheral Performing the generation processing including the selection processing and the correction processing already selected on the target image data, which is processing of correcting the value of the pixel of interest using one or more second correction values; And a print control unit that causes the print execution unit to print the print image on a print medium according to the print image data, and the selection unit is configured to: A print control apparatus, which selects the first correction process when medium information indicates a first type of medium, and selects the second correction process when the medium information indicates a second type of medium. .

上記構成によれば、被印刷媒体の種類に応じた適切な補正処理を選択することができる。このために、被印刷媒体に適した見栄えの印刷画像を被印刷媒体に印刷できる。この結果、適切な補正処理を選択することで、印刷画像の見栄えを向上できる。   According to the above configuration, it is possible to select an appropriate correction process according to the type of print medium. For this reason, it is possible to print a print image having a good appearance suitable for the print medium on the print medium. As a result, the appearance of the print image can be improved by selecting an appropriate correction process.

なお、本明細書に開示される技術は、種々の形態で実現することが可能であり、例えば、複合機、スキャナ、プリンタ、画像処理方法、これら装置の機能または上記方法を実現するためのコンピュータプログラム、そのコンピュータプログラムを記録した記録媒体、等の形態で実現することができる。   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の構成を示すブロック図である。It is a block diagram showing composition of terminal unit 100 as an image processing device of the present invention. 印刷処理のフローチャートである。5 is a flowchart of print processing. 本実施例で用いられる対象画像の一例を示す図である。It is a figure which shows an example of the target image used by a present Example. フィルタ選択テーブルの一例を示す図である。It is a figure which shows an example of a filter selection table. エッジ強調フィルタの一例を示す図である。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. 第2実施例のフィルタ選択テーブルFTbの一例を示す図である。It is a figure which shows an example of filter selection table FTb of 2nd Example. 第2実施例で用紙のサイズがA4サイズまたはA3サイズである場合に実行される補正処理のフローチャートである。9 is a flowchart of a correction process that is executed when the sheet size is A4 size or A3 size in the second embodiment. 第2実施例における下地領域の補正の説明図である。It is explanatory drawing of correction | amendment of the base area in 2nd Example. 変形例のエッジ強調フィルタの一例を示す図である。It is a figure which shows an example of the edge emphasis filter of a modification.

A.第1実施例
A−1.端末装置100の構成
次に、本発明の実施の形態を実施例に基づき説明する。図1は、本発明の画像処理装置としての端末装置100の構成を示すブロック図である。端末装置100は、例えば、パーソナルコンピュータやスマートフォンなどの計算機であり、プロセッサとしてのCPU110と、DRAM(Dynamic Random Access Memoryの略)などの揮発性記憶装置120と、フラッシュメモリやハードディスクドライブなどの不揮発性記憶装置130と、液晶ディスプレイなどの表示部140と、マウスやキーボードなど操作部150と、外部装置と通信を行うためのインタフェースである通信インタフェース(IF)170と、を備えている。
A. First Embodiment A-1. Configuration of Terminal Device 100 Next, an embodiment of the present invention will be described based on an example. FIG. 1 is a block diagram showing the configuration of a terminal apparatus 100 as an image processing apparatus of the present invention. The terminal device 100 is, for example, a computer such as a personal computer or a smartphone, and includes a CPU 110 as a processor, a volatile storage device 120 such as a DRAM (abbreviation of Dynamic Random Access Memory), and non-volatiles such as a flash memory or a hard disk drive. A storage unit 130, a display unit 140 such as a liquid crystal display, an operation unit 150 such as a mouse or a keyboard, and a communication interface (IF) 170 which is an interface for communicating with an external device.

通信IF170は、例えば、イーサネット(登録商標)規格に準拠したネットワークインタフェースを含み、該ネットワークインタフェースを介して、ローカルエリアネットワークLNに接続されている。これによって、端末装置100は、ローカルエリアネットワークLNを介して、印刷実行部としてのプリンタ300などの外部装置と通信可能に接続される。   The communication IF 170 includes, for example, a network interface conforming to the Ethernet (registered trademark) standard, and is connected to the local area network LN via the network interface. Thus, the terminal device 100 is communicably connected to an external device such as the printer 300 as a print execution unit via the local area network LN.

揮発性記憶装置120は、CPU110が処理を行う際に生成される種々の中間データを一時的に格納するバッファ領域を提供する。不揮発性記憶装置130には、コンピュータプログラムPG1が格納されている。コンピュータプログラムPG1は、例えば、プリンタ300を制御するためのドライバプログラムである。コンピュータプログラムPG1は、例えば、プリンタ300の製造者が運用するサーバからダウンロードされる形態で提供されても良い。これに代えて、コンピュータプログラムPG1は、DVD−ROMなどに格納される形態で提供されてもよく、端末装置100の製造時に不揮発性記憶装置130に格納(インストール)される形態で提供されても良い。   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 PG1. The computer program PG1 is, for example, a driver program for controlling the printer 300. The computer program PG1 may be provided, for example, in the form of being downloaded from a server operated by the manufacturer of the printer 300. Alternatively, the computer program PG1 may be provided in the form of being stored in a DVD-ROM or the like, or may be provided in the form of being stored (installed) in the non-volatile storage device 130 at the time of manufacturing the terminal device 100. good.

CPU110は、コンピュータプログラムPG1を実行することにより、プリンタ300を制御して、プリンタ300に画像を印刷させるためのプリンタドライバとして機能する。具体的には、CPU110は、コンピュータプログラムPG1を実行することにより、後述する印刷処理を実行することができる。   The CPU 110 controls the printer 300 by executing the computer program PG1 and functions as a printer driver for causing the printer 300 to print an image. Specifically, the CPU 110 can execute print processing described later by executing the computer program PG1.

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

A−2.印刷処理
図2は、印刷処理のフローチャートである。この画像処理は、端末装置100においてプリンタドライバが起動されて、該プリンタドライバに対して、ユーザから印刷指示が入力されたときに実行される。印刷指示は、該プリンタドライバによって表示部140に表示されるユーザインタフェース画面(UI画面)を介して、入力される。印刷指示は、各種の印刷に関連する条件を示す印刷条件情報、例えば、印刷の対象となる対象画像を示す対象画像データを指定する情報を含む。
A-2. Printing Process FIG. 2 is a flowchart of the printing process. The image processing is executed when the printer driver is activated in the terminal device 100 and a print instruction is input from the user to the printer driver. The print instruction is input via the user interface screen (UI screen) displayed on the display unit 140 by the printer driver. The print instruction includes print condition information indicating conditions related to various types of printing, for example, information specifying target image data indicating a target image to be printed.

S10では、CPU110は、CPU110は、印刷指示に含まれる情報によって指定される対象画像を示す対象画像データを取得する。本実施例の対象画像データは、文書作成ソフトや描画ソフトなどによって作成された画像データである。CPU110は、端末装置100の不揮発性記憶装置130に保存された対象画像データを、不揮発性記憶装置130から取得する。   In S10, the CPU 110 acquires target image data indicating a target image specified by the information included in the print instruction. The target image data in this embodiment is image data created by document creation software, drawing software, or the like. The CPU 110 acquires, from the non-volatile storage device 130, target image data stored in the non-volatile storage device 130 of the terminal device 100.

本実施例で取得される対象画像データは、複数個の画素の値を含み、複数個の画素の値のそれぞれは、画素の色をRGB値で表す。すなわち、対象画像データは、RGB画像データである。1個の画素のRGB値は、例えば、赤(R)と緑(G)と青(B)との3個の成分値(以下、R値、G値、B値とも呼ぶ)を含んでいる。本実施例では、各成分値の階調数は、256階調である。なお、取得される対象画像データが、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) . In the present embodiment, the number of gradations of each component value is 256. If the target image data to be acquired is not RGB image data, rasterization processing or conversion processing is performed on the target image data, for example, to convert it into RGB image data.

図3は、本実施例で用いられる対象画像の一例を示す図である。図3(A)には、名刺サイズの用紙に印刷されるべき対象画像OI1の一例が示されている。対象画像OI1内のオブジェクトの大部分は、名前、会社名、連絡先などを示す文字TXである可能性が高い。図3(B)には、L判サイズの用紙に印刷されるべき対象画像OI2の一例が示されている。L判サイズは、写真用の用紙に採用されるサイズであるので、対象画像OI2内のオブジェクトは、写真IMである可能性が高い。図3(C)には、A3またはA4サイズの用紙に印刷されるべき対象画像OI3の一例が示されている。これらのサイズは、ビジネス文書、広告、その他の一般的な書類に、広く用いられるので、対象画像OI2内のオブジェクトは、文字、描画、写真などの様々な種類のオブジェクトを含み得る。例えば、図3(C)の対象画像OI3は、下地BGと、文字TXと、写真IMと、を含んでいる。   FIG. 3 is a view showing an example of a target image used in the present embodiment. FIG. 3A shows an example of a target image OI1 to be printed on a sheet of business card size. Most of the objects in the target image OI1 are likely to be the letters TX indicating name, company name, contacts etc. FIG. 3B shows an example of the target image OI2 to be printed on L-size paper. Since the L-size is the size adopted for the photo paper, the object in the target image OI2 is likely to be the photo IM. FIG. 3C shows an example of a target image OI3 to be printed on A3 or A4 size paper. Because these sizes are widely used in business documents, advertisements, and other common documents, objects in the target image OI2 may include various types of objects such as text, drawings, and pictures. For example, the target image OI3 of FIG. 3C includes a background BG, characters TX, and a picture IM.

S15では、CPU110は、用紙情報を取得する。印刷条件情報は、例えば、上記UI画面を介して、印刷指示とともに入力される。本実施例では、用紙情報は、対象画像を印刷すべき用紙の種類を示す情報であり、用紙のサイズを示す情報と、用紙の材質を示す情報を含む。本実施例にて想定される用紙のサイズは、名刺サイズと、L判サイズと、A4サイズと、A3サイズと、の4種類である。本実施例にて想定される用紙の材質は、普通紙と、光沢紙と、の2種類である。光沢紙は、普通紙と比較して、インクの滲みが発生し難い特徴を有する。   In S15, the CPU 110 acquires sheet information. The print condition information is input together with a print instruction via the UI screen, for example. In the present embodiment, the sheet information is information indicating the type of sheet on which the target image is to be printed, and includes information indicating the size of the sheet and information indicating the material of the sheet. The sheet sizes assumed in this embodiment are four types: business card size, L size, A4 size, and A3 size. 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では、CPU110は、フィルタ選択テーブルFTを用いて、使用すべきフィルタ(使用フィルタとも呼ぶ)を決定する。図4は、フィルタ選択テーブルの一例を示す図である。フィルタ選択テーブルFTには、用紙の種類(サイズおよび/または材質)ごとに、後述する補正処理にて使用すべきフィルタが記録されている。   In S20, the CPU 110 uses the filter selection table FT to determine a filter to be used (also referred to as a used filter). FIG. 4 is a diagram showing an example of the filter selection table. In the filter selection table FT, filters to be used in the correction processing described later are recorded for each type of paper (size and / or material).

本実施例では、2種類のタイプと、3種類のサイズと、を組み合わせた計6種類のフィルタが用いられる。2種類のタイプは、「エッジ強調」と「平滑化」である。3種類のサイズは、「小」と「中」と「大」である。エッジ強調フィルタは、画像内のエッジを強調、鮮鋭化するエッジ強調処理のためのフィルタである。   In the present embodiment, a total of six types of filters are used in which two types and three types of sizes are combined. The two types are "edge enhancement" and "smoothing". The three sizes are "small", "medium" and "large". The edge emphasizing filter is a filter for edge emphasizing processing that emphasizes and sharpens an edge in an image.

図5は、エッジ強調フィルタの一例を示す図である。図5(A)、(B)、(C)には、サイズが「小」、「中」、「大」のエッジ強調フィルタが示されている。図5(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. 5 is a diagram showing an example of the edge emphasis filter. In FIGS. 5A, 5B, and 5C, edge emphasis filters having the sizes "small", "medium", and "large" are shown. The small edge emphasis filter FEs shown in FIG. 5A defines correction coefficients (also referred to as correction values) corresponding to each of 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.

図5(B)の中エッジ強調フィルタFEmは、縦3個×横3個の画素のそれぞれに対応する補正係数を規定している。すなわち、中エッジ強調フィルタFEmは、注目画素CPと、注目画素CPの周辺に位置する8個の周辺画素SPと、のそれぞれについて、対応する補正係数を規定している。例えば、中エッジ強調フィルタFEmでは、注目画素CPに対応する補正係数は、(16/4)であり、注目画素CPの上下左右に隣接する4個の周辺画素SPに対応する4個の補正係数は、(−2/4)であり、注目画素CPの左上、右上、左下、左上に位置する4個の周辺画素SPに対応する4個の補正係数は、(−1/4)である。中エッジ強調フィルタFEmでは、対応する補正係数が0である周辺画素SPは、存在しない。このために、中エッジ強調フィルタFEmでは、補正に用いられる周辺画素SPの個数は、8個である。   The middle edge emphasizing filter FEm in FIG. 5B 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 target pixel CP is (16/4), and the four correction coefficients corresponding to the four peripheral pixels SP adjacent to the top, bottom, left and right of the target pixel CP. Is (−2/4), and the four correction coefficients corresponding to the four peripheral pixels SP located on the upper left, upper right, lower left and upper left of the pixel of interest CP are (−1⁄4). In the middle edge emphasizing filter FEm, there is no surrounding pixel SP whose corresponding correction coefficient is zero. For this reason, in the middle edge emphasizing filter FEm, the number of peripheral pixels SP used for correction is eight.

中エッジ強調フィルタFEmの複数個の補正係数(16/4)、(−2/4)、(−1/4)は、共通の分母である「4」を分母とする分数で表した場合に、その分子の絶対値16、2、1は、2の累乗数を含み、0と2の累乗数のいずれとも異なる値を含まない。換言すれば、中エッジ強調フィルタFEmの複数個の補正係数は、共通の分母である「4」を分母とする分数で表した場合に、その分子の絶対値は、少なくとも1つの2の累乗数を含み、0または2の累乗数で構成されている。2の累乗数は、2(kは、0以上の整数)で表される数であり、1、2、4、8、16、32、64、128などである。この結果、中エッジ強調フィルタFEmを用いる補正処理の演算において、係数の分子と、対応する画素の値と、を乗ずる演算を、シフト演算によって実行できる。シフト演算は、例えば、コンピュータによる2進数の演算では、他の演算と比較して、演算速度が速いため、補正処理に必要な演算を高速化できる。さらに、中エッジ強調フィルタFEmでは、共通の分母である「4」も2の累乗数である。このために、さらに、補正処理に必要な演算を高速化できる。 When a plurality of correction coefficients (16/4), (-2/4), (-1/4) of the middle edge emphasis filter FEm are represented by a fraction with the common denominator "4" as the denominator , The absolute value of the numerator 16, 2, 1 includes a power of 2 and does not include a value different from any of the 0 and 2 powers. In other words, when the correction coefficients of the medium edge emphasis filter FEm are represented by a fraction with the common denominator "4" as a denominator, the absolute value of the numerator is at least one power of 2 And is composed of 0 or 2 powers. The power of 2 is a number represented by 2 k (k is an integer of 0 or more), such as 1, 2, 4, 8, 16, 32, 64, 128, and so on. As a result, in the calculation of the correction processing using the middle edge emphasizing filter FEm, the calculation of multiplying the numerator of the coefficient by the value of the corresponding pixel can be executed by the shift calculation. In the shift operation, for example, in the operation of binary numbers by a computer, the operation speed is faster than other operations, so that the operation necessary for the correction process can be accelerated. Furthermore, in the middle edge emphasis filter FEm, the common denominator “4” is also a power of two. For this reason, it is possible to further speed up the calculation necessary for the correction process.

図5(C)の大エッジ強調フィルタFElは、縦5個×横5個の画素のそれぞれに対応する補正係数を規定している。すなわち、大エッジ強調フィルタFElは、注目画素CPと、注目画素CPの周辺に位置する24個の周辺画素SPと、のそれぞれについて、対応する補正係数を規定している。例えば、大エッジ強調フィルタFElでは、注目画素CPに対応する補正係数は、(64/32)であり、24個の周辺画素SPに対応する24個の補正係数は、(8/32)、(−8/32)、(−4/32)、(−2/32)、(0/32)のいずれかである。大エッジ強調フィルタFElでは、対応する補正係数が0である周辺画素SPは、4隅の4個である。このために、大エッジ強調フィルタFElでは、補正に用いられる周辺画素SPの個数は、20個である。   The large edge emphasis filter FEl shown in FIG. 5C 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 emphasis filter FEl, the correction coefficient corresponding to the pixel of interest CP is (64/32), and the 24 correction coefficients corresponding to the 24 peripheral pixels SP are (8/32), ( -8/32), (-4/32), (-2/32), or (0/32). In the large edge emphasis filter FEl, there are four peripheral pixels SP whose corresponding correction coefficient is 0 at four corners. For this reason, in the large edge emphasis filter FEl, the number of peripheral pixels SP used for correction is twenty.

大エッジ強調フィルタFElの複数個の補正係数(64/32)、(8/32)、(−8/32)、(−4/32)、(−2/32)は、共通の分母である「32」を分母とする分数で表した場合に、その分子の絶対値64、8、4、2は、2の累乗数を含み、0と2の累乗数のいずれとも異なる値を含まない。換言すれば、大エッジ強調フィルタFElの複数個の補正係数は、共通の分母である「32」を分母とする分数で表した場合に、その分子の絶対値は、少なくとも1つの2の累乗数を含み、0または2の累乗数で構成されている。この結果、中エッジ強調フィルタFEmと同様に、大エッジ強調フィルタFElを用いる補正処理の演算において、補正処理に必要な演算を高速化できる。さらに、中エッジ強調フィルタFEmと同様に、大エッジ強調フィルタFElでは、共通の分母である「32」も2の累乗数である。このために、さらに、補正処理に必要な演算を高速化できる。   A plurality of correction coefficients (64/32), (8/32), (-8/32), (-4/32) and (-2/32) of the large edge emphasis filter FEl are common denominators When expressed as a fraction with "32" as the denominator, the absolute values 64, 8, 4, 2 of the numerator include the power of 2 and do not include a value different from any of the 0 and 2 powers. In other words, when the correction coefficients of the large edge emphasis filter FE1 are represented by a fraction with the common denominator “32” as the denominator, the absolute value of the numerator is at least one power of 2 And is composed of 0 or 2 powers. As a result, as in the middle edge emphasis filter FEm, in the calculation of the correction process using the large edge emphasis filter FEl, it is possible to speed up the calculation necessary for the correction process. Furthermore, similarly to the middle edge emphasis filter FEm, in the large edge emphasis filter FEl, the common denominator “32” is also a power of two. For this reason, it is possible to further speed up the calculation necessary for the correction process.

ここで、フィルタのサイズは、補正に用いられる複数個の周辺画素SPのうちの注目画素CPから最も離れた最遠周辺画素FPと、注目画素CPと、の間の距離Dによって示すことができる。すなわち、最遠周辺画素FPと注目画素CPとの間の距離Dが大きいほど、フィルタのサイズが大きいと言うことができる。換言すれば、最遠周辺画素FPが注目画素CPから離れているほどフィルタのサイズが大きい。ここで、小エッジ強調フィルタFEsの距離Desは、1であり、中エッジ強調フィルタFEmの距離Demは、SQRT(2)であり、大エッジ強調フィルタFElの距離Delは、SQRT(5)である。ここで、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. In other words, as the farthest peripheral pixels FP are farther from the target pixel CP, the size of the filter 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 SQRT (5). . Here, SQRT (a) means the square root of a.

なお、エッジ強調フィルタのサイズが大きいほど(すなわち、最遠周辺画素FPが注目画素CPから離れているほど)、補正のレベルが高くなり、エッジが強調される程度が大きくなる。   As the size of the edge emphasizing filter is larger (that is, as the farthest peripheral pixels FP are farther from the target pixel CP), the level of correction becomes higher, and the degree of emphasizing the edge becomes larger.

図6は、平滑化フィルタの一例を示す図である。平滑化フィルタは、画像を平滑化する平滑化処理のためのフィルタである。図6(A)、(B)、(C)には、サイズが「小」、「中」、「大」の平滑化フィルタが示されている。図6(A)の小平滑化フィルタFSsは、縦3個×横3個の画素のそれぞれに対応する補正係数を規定している。すなわち、小平滑化フィルタFSsは、注目画素CPと、注目画素CPの周辺に位置する8個の周辺画素SPとのそれぞれについて、対応する補正係数を規定している。例えば、小平滑化フィルタFSsでは、注目画素CPに対応する補正係数と、注目画素CPを囲む8個の周辺画素SPに対応する8個の補正係数は、いずれも(1/9)である。小平滑化フィルタFSsでは、対応する補正係数が0である周辺画素SPは、存在しない。   FIG. 6 is a diagram showing an example of the smoothing filter. The smoothing filter is a filter for smoothing processing that smoothes an image. In FIGS. 6A, 6B, and 6C, the smoothing filters having the sizes of "small", "medium", and "large" are shown. The small smoothing filter FSs of FIG. 6A 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.

図6(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. 6B 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.

図6(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. 6C 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(B)の中平滑化フィルタFSmは、最遠周辺画素FPよりも注目画素CPに近い20個の周辺画素SPに、係数が「0」である16個の周辺画素SPを含む。同様に、図6(C)の大平滑化フィルタFSlは、最遠周辺画素FPよりも注目画素CPに近い44個の周辺画素SPに、係数が「0」である40個の周辺画素SPを含む。すなわち、最遠周辺画素FPよりも注目画素CPに近い一部の画素は、中平滑化フィルタFSmまたは大平滑化フィルタFSlを用いる補正処理に用いられない。この結果、補正処理の演算速度を高速化できる。   Furthermore, the middle smoothing filter FSm in FIG. 6B includes 16 peripheral pixels SP whose coefficient is “0” in 20 peripheral pixels SP closer to the target pixel CP than the farthest peripheral pixels FP. . Similarly, the large smoothing filter FS1 shown in FIG. 6C generates 40 peripheral pixels SP whose coefficient is “0” to 44 peripheral pixels SP closer to the target pixel CP than the farthest peripheral pixels FP. Including. That is, some pixels closer to the target pixel CP than the farthest peripheral pixels FP are not used for correction processing using the middle smoothing filter FSm or the large smoothing filter FS1. As a result, the calculation speed of the correction process can be increased.

以上の説明から解るように、図5、図6に示す複数個のフィルタは、互いに異なるフィルタであるので、複数個の周辺画素SPと複数個の補正係数との組み合わせが、互いに異なる。例えば、注目画素CPに対する相対的な位置が特定の位置である周辺画素SPに対応する補正係数が、互いに異なる。具体的には、図5(A)の小エッジ強調フィルタFEsでは、注目画素CPに対する相対的な位置が右側に隣接する位置である周辺画素SPに対応する補正係数は、「−1」であり、図5(B)の中エッジ強調フィルタFEmでは、注目画素CPに対する相対的な位置が右側に隣接する位置である周辺画素SPに対応する補正係数は、「−2」であり、互いに異なっていることが解る。   As understood from the above description, since the plurality of filters shown in FIGS. 5 and 6 are different from each other, combinations of the plurality of peripheral pixels SP and the plurality of correction coefficients are different from each other. For example, correction coefficients corresponding to peripheral pixels SP whose position relative to the target pixel CP is a specific position are different from one another. Specifically, in the small edge emphasis filter FEs of FIG. 5A, the correction coefficient corresponding to the peripheral pixel SP at which the position relative to the pixel of interest CP is adjacent on the right side is “−1”. In the middle edge emphasizing filter FEm in FIG. 5B, the correction coefficients corresponding to the peripheral pixel SP, which is a position adjacent to the target pixel CP on the right side, are “−2” and are different from each other. I understand that

以上の説明から解るように、小平滑化フィルタFSs、中平滑化フィルタFSm、大平滑化フィルタFSlは、いずれも補正に用いられる周辺画素SPの個数は9個であるが、最遠周辺画素FPと注目画素CPとの間の距離Dが異なるので、フィルタのサイズは互いに異なる(FSs<FSm<FSl)。   As can be understood from the above description, although the number of peripheral pixels SP used for correction is nine for each of the small smoothing filter FSs, the middle smoothing filter FSm, and the large smoothing filter FSl, the farthest peripheral pixels FP Because the distance D between the pixel of interest and the pixel of interest CP is different, the filter sizes are different from each other (FSs <FSm <FSl).

なお、平滑化フィルタのサイズが大きいほど(すなわち、最遠周辺画素FPが注目画素CPから離れているほど)、補正のレベルが高くなり、画像が平滑化される程度が大きくなる。   The larger the size of the smoothing filter (that is, the farther the farthest peripheral pixels FP are from the target pixel CP), the higher the correction level, and the larger the degree to which the image is smoothed.

図4に示すように、用紙のサイズが名刺サイズである場合には、用紙の材質に拘わらずに、対象画像内の全ての領域について大エッジ強調フィルタFElが、使用フィルタとして決定される。用紙のサイズがL判サイズである場合には、用紙の材質に拘わらずに、対象画像内の全ての領域について小平滑化フィルタFSsが、使用フィルタとして決定される。   As shown in FIG. 4, when the size of the sheet is a business card size, the large edge emphasis filter FEl is determined as the used filter for all areas in the target image regardless of the sheet material. When the size of the sheet is L size, the small smoothing filter FSs is determined as the use filter for all areas in the target image regardless of the material of the sheet.

用紙のサイズがA4サイズである場合には、対象画像内の文字領域と写真領域とで、決定される使用フィルタが異なる。用紙のサイズがA4サイズである場合には、用紙の材質に拘わらずに、対象画像内の文字領域について中エッジ強調フィルタFEmが、使用フィルタとして決定され、対象画像内の写真領域について中平滑化フィルタFSmが、使用フィルタとして決定される。   When the size of the paper is A4 size, the use filter determined differs between the text area and the photo area in the target image. When the size of the sheet is A4 size, the middle edge emphasizing filter FEm is determined as the use filter for the character area in the target image regardless of the material of the sheet, and the middle smoothing is performed on the photographic area in the target image. The filter FSm is determined as the used filter.

用紙のサイズがA3サイズである場合には、対象画像内の文字領域と写真領域とで、決定される使用フィルタが異なり、さらに、用紙の材質によって、決定される使用フィルタが異なる。用紙のサイズがA3サイズである場合で、かつ、用紙が光沢紙である場合には、対象画像内の文字領域について小エッジ強調フィルタFEsが、使用フィルタとして決定され、対象画像内の写真領域について大平滑化フィルタFSlが、使用フィルタとして決定される。用紙のサイズがA3サイズである場合で、かつ、用紙が普通紙である場合には、対象画像内の文字領域について中エッジ強調フィルタFEmが、使用フィルタとして決定され、対象画像内の写真領域について中平滑化フィルタFSmが、使用フィルタとして決定される。   When the size of the sheet is A3 size, the use filter to be determined differs between the text area and the photo area in the target image, and the use filter determined differs depending on the material of the sheet. When the size of the sheet is A3 and the sheet is glossy, the small edge emphasis filter FEs is determined as the used filter for the character area in the target image, and the photo area in the target image The large smoothing filter FS1 is determined as the used filter. When the size of the sheet is A3 size and the sheet is plain paper, the middle edge emphasis filter FEm is determined as the use filter for the character area in the target image, and the photo area in the target image The medium smoothing filter FSm is determined as the used filter.

S25では、CPU110は、領域特定処理が必要か否かを判断する。領域特定処理は、対象画像データを解析することによって、対象画像内の各オブジェクトを示す領域を、オブジェクトの種類(例えば、文字と写真)ごとに特定する処理である。例えば、本実施例では、対象画像において、文字を示す文字領域と、写真を示す写真領域と、文字と写真を除いた下地を含む領域(下地領域と呼ぶ)と、が特定される。本実施例では、用紙のサイズが、名刺サイズまたはL判サイズである場合には、上述したように全領域に対して、同一のフィルタが用いられるので、領域特定処理を行う必要はない。用紙のサイズが、A4サイズまたはA3サイズである場合には、文字領域と写真領域とで異なるフィルタが用いられるので、領域特定処理を行う必要がある。このために、本実施例では、CPU110は、用紙のサイズが、名刺サイズまたはL判サイズである場合には、領域特定処理が必要でないと判断し、用紙のサイズが、A3サイズまたはA4サイズである場合には、領域特定処理が必要であると判断する。   In S25, the CPU 110 determines whether the area specifying process is necessary. The area specifying process is a process of specifying an area indicating each object in the target image for each type of object (for example, a character and a photo) by analyzing the target image data. For example, in the present embodiment, in the target image, a character area indicating a character, a photograph area indicating a photograph, and an area including a ground excluding a character and a photograph (referred to as a ground area) are identified. In the present embodiment, when the size of the sheet is a business card size or an L-size, as described above, the same filter is used for the entire area, so it is not necessary to perform the area specifying process. If the size of the sheet is A4 size or A3 size, different filters are used for the text area and the photo area, so area specification processing needs to be performed. For this reason, in the present embodiment, when the sheet size is the business card size or the L size, the CPU 110 determines that the area specifying process is not necessary, and the sheet size is A3 size or A4 size. In some cases, it is determined that area identification processing is necessary.

領域特定処理が必要である場合には(S25:YES)、S30にて、CPU110は、領域特定処理を実行する。領域特定処理では、例えば、CPU110は、公知のエッジ検出フィルタを対象画像データに適用して、対象画像内のエッジを抽出して、エッジ量が基準より多い領域をオブジェクト領域として特定する。CPU110は、特定された1以上のオブジェクト領域のうち、文字としての特徴を有する領域を文字領域として特定し、写真としての特徴を有する領域を写真領域として特定する。CPU110は、1以上のオブジェクト領域のうち、テキストとしての特徴と写真としての特徴とのいずれも有しない領域を、下地領域として特定する。テキストとしての特徴は、例えば、色数が閾値TH1より少なく、かつ、下地色とは異なる色を有するオブジェクト画素の割合が閾値TH2より小さいことである。写真としての特徴は、例えば、色数が閾値TH2より多く、かつ、下地色とは異なる色を有するオブジェクト画素の割合が閾値TH2より大きいことである。なお、領域特定処理は、例えば、様々な公知の手法を採用することができ、公知の手法は、例えば、特開2013−030090号公報、特開平5−225378号公報、特開2002−288589号公報に開示されている。   If the area specifying process is required (S25: YES), the CPU 110 executes the area specifying process in S30. In the area specifying process, for example, the CPU 110 applies a known edge detection filter to target image data, extracts an edge in the target image, and specifies an area having an edge amount larger than a reference as an object area. The CPU 110 specifies, as a character area, an area having a feature as a character among the specified one or more object areas, and specifies an area having a feature as a photograph as a photo area. The CPU 110 specifies an area having neither text features nor photo features among the one or more object areas as a base area. The characteristic as text is, for example, that the ratio of object pixels having a color number smaller than the threshold TH1 and a color different from the background color is smaller than the threshold TH2. The characteristic as a photograph is that, for example, the number of colors is greater than the threshold TH2, and the proportion of object pixels having a color different from the background color is greater than the threshold TH2. Note that, for example, various known methods can be adopted for the area specifying process, and the known methods include, for example, Japanese Patent Application Laid-Open Nos. 2013-030090, 5-225378, and 2002-288589. It is disclosed in the official gazette.

S40では、CPU110は、対象画像データに対して補正処理を実行して補正済みの対象画像データ(本実施例ではRGB画像データ)を生成する。具体的には、CPU110は、用紙のサイズが名刺サイズまたはL判サイズである場合には、対象画像内の全ての画素を注目画素として、S20にて決定される1種類のフィルタを注目画素に適用して、注目画素の値を補正済みの値に変更する。   In S40, the CPU 110 executes correction processing on the target image data to generate corrected target image data (RGB image data in the present embodiment). Specifically, when the size of the sheet is a business card size or an L-size, the CPU 110 sets all pixels in the target image as the target pixel, and sets one type of filter determined in S20 as the target pixel. Apply to change the value of the pixel of interest to the corrected value.

また、CPU110は、用紙のサイズがA4サイズまたはA4である場合には、2種類のフィルタを用いて補正処理を実行する。具体的には、CPU110は、対象画像内の複数個の画素のうち、文字領域内の画素が注目画素である場合には、S20にて文字領域について決定されるフィルタを注目画素に適用して、注目画素の値を補正済みの値に変更する。そして、CPU110は、対象画像内の複数個の画素のうち、写真領域内の画素が注目画素である場合には、S20にて写真領域について決定されるフィルタを注目画素に適用して、注目画素の値を補正済みの値に変更する。CPU110は、対象画像内の複数個の画素のうち、下地領域内の画素が注目画素である場合には、注目画素の値を変更しない。   Further, when the sheet size is A4 size or A4, the CPU 110 executes the correction process using two types of filters. Specifically, when the pixel in the text area is the target pixel among the plurality of pixels in the target image, the CPU 110 applies the filter determined for the text area in S20 to the target pixel. , Change the value of the pixel of interest to a corrected value. Then, when the pixel in the photo area is the target pixel among the plurality of pixels in the target image, the CPU 110 applies the filter determined for the photo area in S20 to the target pixel and Change the value of to the corrected value. CPU110 does not change the value of an attention pixel, when the pixel in a ground area is an attention pixel among a plurality of pixels in an object picture.

なお、注目画素へのフィルタの適用は、以下のように行われる。CPU110は、注目画素CPと周辺画素SPとを含むフィルタ範囲内の(M+1)個の画素の値に、それぞれ、使用するフィルタに規定される対応する補正係数を乗じて、(M+1)個の修正値を算出する。そして、CPU110は、該(M+1)個の修正値の和を、補正済みの注目画素CPの値として算出する。このように、本実施例の補正処理では、注目画素CPの値と、周辺画素SPに対応付けられる複数個の補正係数を用いて注目画素CPの値が補正される。   The application of the filter to the pixel of interest is performed as follows. The CPU 110 multiplies the values of (M + 1) pixels in the filter range including the pixel of interest CP and the peripheral pixels SP by the corresponding correction coefficients defined in the filter to be used, respectively, and performs (M + 1) corrections. Calculate the value. Then, the CPU 110 calculates the sum of the (M + 1) correction values as the value of the corrected target pixel CP. As described above, in the correction process of the present embodiment, the value of the pixel of interest CP is corrected using the value of the pixel of interest CP and a plurality of correction coefficients associated with the peripheral pixels SP.

S45では、CPU110は、補正済みの対象画像データに対して色変換処理を実行する。これによって、補正済の対象画像データの各画素のRGB値は、印刷用の複数個の色材に対応する複数個の成分値を含む色値に変換される。本実施例では、RGB値は、C(シアン)、M(マゼンタ)、Y(イエロ)、K(ブラック)の4個の成分値を含むCMYK値に変換される。色変換処理は、不揮発性記憶装置130に予め格納された色変換プロファイル(図示省略)を参照して実行される。色変換プロファイルは、RGB値とCMYK値との対応関係を規定する情報であり、具体的には、ルックアップテーブルである。   At S45, the CPU 110 executes color conversion processing on the corrected target image data. As a result, the RGB values of each pixel of the corrected target image data are converted into color values including a plurality of component values corresponding to a plurality of printing color materials. In this embodiment, RGB values are converted to CMYK values including four component values of C (cyan), M (magenta), Y (yellow), and K (black). The color conversion process is performed with reference to a color conversion profile (not shown) stored in advance in the non-volatile storage device 130. The color conversion profile is information defining the correspondence between RGB values and CMYK values, and more specifically, is a look-up table.

S50では、CPU110は、色変換処理後の対象画像データに対してハーフトーン処理を実行して、印刷画像データとしてのドットデータを生成する。ドットの形成状態を画素ごと、かつ、色材ごとに表すドットデータを生成する。ドットデータに含まれる各画素の値は、例えば、「大ドット」、「中ドット」、「小ドット」、「ドット無し」の4つのドットの形成状態のいずれかを示す。これに代えて、ドットデータに含まれる各画素の値は、「ドット有り」、「ドット無し」の2つのドットの形成状態のいずれかを示しても良い。   In S50, the CPU 110 executes halftone processing on the target image data after the color conversion processing to generate dot data as print image data. Dot data representing dot formation states for each pixel and for each color material is generated. 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”.

S55では、CPU110は、ドットデータを用いて印刷ジョブを生成する。例えば、CPU110は、ドットデータを、プリンタ300を用いて印刷を行う際に用いられる順番に並べ替える処理と、ドットデータにプリンタ制御コードやデータ識別コードを付加する処理と、を実行する。この結果、プリンタ300によって解釈可能な印刷ジョブが生成される。S60では、CPU110は、生成された印刷ジョブを、プリンタ300に送信する。プリンタ300は、端末装置100から送信された印刷ジョブに従って、印刷画像データ(ドットデータ)によって示される印刷画像を印刷する。   In S55, 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 S60, 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.

以上説明した本実施例によれば、用紙情報を用いて、複数個の補正処理(本実施例では使用するフィルタが互いに異なる)の中から実行すべき補正処理が選択される(S15、S25)。そして、用紙情報が第1種の用紙(例えば、名刺サイズの用紙)を示す場合に、第1の補正処理(例えば、大エッジ強調フィルタFElを用いる補正処理)が選択される。用紙情報が第2種の用紙(例えば、L判サイズの用紙)を示す場合に、第2の補正処理(例えば、小平滑化フィルタFSsを用いる補正処理)が選択される。そして、第1の補正処理は、複数個の第1の周辺画素(例えば、大エッジ強調フィルタFEl内に位置する周辺画素SP(図5(C)))に対応付けられる複数個の第1の補正係数(例えば、図5(C)の補正係数「−4/32」)を用いて注目画素CPの値を補正する処理である。第2の補正処理は、複数個の第2の周辺画素(例えば、小平滑化フィルタFSs内に位置する周辺画素SP(図6(A)))に対応付けられる複数個の第2の補正係数(例えば、図6(A)の補正係数「1」)を用いて注目画素CPの値を補正する処理である。そして、対象画像データに対して選択済みの補正処理を含む生成処理(S40〜S50)が実行されて、印刷画像を示す印刷画像データが生成される。CPU110は、該印刷画像データに従って、プリンタ300に印刷画像を用紙に印刷させる(S55、S60)。この結果、用紙の種類に応じた適切な補正処理を選択することができる。このために、用紙に適した見栄えの印刷画像を用紙に印刷できる。この結果、適切な補正処理を選択することで、印刷画像の見栄えを向上できる。   According to the present embodiment described above, the correction processing to be executed is selected from the plurality of correction processing (the filters used in the present embodiment are different from each other) using the sheet information (S15, S25) . Then, when the sheet information indicates the first type of sheet (for example, a sheet of business card size), the first correction processing (for example, the correction processing using the large edge emphasis filter FEl) is selected. When the sheet information indicates the second type of sheet (for example, an L-size sheet), the second correction process (for example, the correction process using the small smoothing filter FSs) is selected. Then, in the first correction processing, the plurality of first peripheral pixels (for example, the plurality of first peripheral pixels associated with the peripheral pixel SP (FIG. 5C) positioned in the large edge emphasis filter FEl) This is processing for correcting the value of the pixel of interest CP using a correction coefficient (for example, the correction coefficient “−4/32” in FIG. 5C). In the second correction process, a plurality of second correction coefficients corresponding to a plurality of second peripheral pixels (for example, peripheral pixels SP (FIG. 6A) located in the small smoothing filter FSs) This is processing for correcting the value of the pixel of interest CP using (for example, the correction coefficient “1” in FIG. 6A). Then, generation processing (S40 to S50) including the selected correction processing is executed on the target image data to generate print image data indicating a print image. The CPU 110 causes the printer 300 to print the print image on a sheet according to the print image data (S55, S60). As a result, it is possible to select an appropriate correction process according to the type of paper. Because of this, it is possible to print on the paper a printed image that looks good for the paper. As a result, the appearance of the print image can be improved by selecting an appropriate correction process.

例えば、用紙のサイズによって、印刷画像の通常の観察距離は異なる。一般的には、用紙のサイズが大きいほど、該用紙に印刷される印刷画像の観察距離は、長くなる。例えば、用紙のサイズが名刺サイズやL判サイズである場合には、印刷画像の観察距離は、10cm〜15cm程度である。それに対して、用紙のサイズが名刺サイズやL判サイズよりも大きなA4サイズである場合には、印刷画像の観察距離は、30cm程度である。一方で、比較的短い観察距離で特定の印刷画像を観察した場合の見栄え(例えば、粒状性や鮮鋭さ)は、比較的長い観察距離で該特定の印刷画像を観察した場合の見栄えとは、異なり得る。これは、例えば、観察者の所定の視野範囲に入る画像のサイズが、観察距離が短いほど小さくなり、観察距離が短いほど大きくなることに起因する。   For example, depending on the size of the paper, the normal viewing distance of the printed image is different. 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 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.

例えば、比較的長い観察距離では、自然な見栄えに見える画像であっても、比較的短い観察距離では、より細かい部分を視認しやすいので、ぼけた画像に見える場合がある。具体的には、観察距離が比較的短い名刺サイズやL判サイズでは、オブジェクトのエッジのぼけが目立ちやすいので、観察距離が比較的長いA4サイズやA3サイズと比較して、エッジの強度を高くすることが好ましい。このために、本実施例では、観察距離が比較的短い名刺サイズやL判サイズが用いられる場合で平滑化フィルタを用いる補正処理については、エッジの強度が高くなるようにするため、使用する平滑化フィルタサイズを、観察距離が比較的長いA4サイズやA3サイズが用いられる場合よりも小さくしている。また、エッジ強調フィルタを用いる補正処理では、観察距離が比較的長いA4サイズやA3サイズが用いられる場合よりもエッジの強度が高くなるように、使用するフィルタサイズをA4サイズやA3サイズが用いられる場合よりも大きくしている。これによって、通常の観察距離で観察した場合の見栄えを、用紙のサイズに応じて適正化することができる。一般的に言えば、平滑化フィルタを用いる補正処理については、用紙情報が、第1のサイズの用紙を示す場合には、第1のフィルタサイズのフィルタを用いて補正が行われ、用紙情報が、第1のサイズよりも大きな第2のサイズの用紙を示す場合には、第2のフィルタサイズよりも大きな第2のフィルタサイズのフィルタを用いて補正が行われることが好ましい。エッジ強調フィルタを用いる補正処理については、用紙情報が、第1のサイズの用紙を示す場合には、第1のフィルタサイズのフィルタを用いて補正が行われ、用紙情報が、第1のサイズよりも大きな第2のサイズの用紙を示す場合には、第2のフィルタサイズよりも小さな第2のフィルタサイズのフィルタを用いて補正が行われることが好ましい。これによって、用紙のサイズに応じて適切な補正処理が実行される。この結果、本実施例では、用紙のサイズによって異なり得る通常の観察距離で観察した場合の印刷画像の見栄えを向上し得る。   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 is easily blurred, so the edge strength is high compared to the A4 size or A3 size where the observation distance is relatively long. It is preferable to do. For this reason, in the present embodiment, in the case where a business card size or an L-size size with a relatively short viewing distance is used, the correction process using the smoothing filter is performed in order to increase the edge strength. The filter size is made smaller than in the case where the A4 size and the A3 size having a relatively long observation distance are used. In addition, in the correction processing using the edge emphasis filter, the filter size to be used is A4 size or A3 size so that the edge strength is higher than when A4 size or A3 size having a relatively long observation distance is used. The case is bigger than you. This makes it possible to optimize the appearance when observed at a normal observation distance in accordance with the size of the sheet. Generally speaking, for correction processing using a smoothing filter, if the sheet information indicates a sheet of a first size, correction is performed using a filter of the first filter size, and the sheet information is When a sheet of a second size larger than the first size is shown, it is preferable that the correction be performed using a filter of a second filter size larger than the second filter size. For correction processing using an edge enhancement filter, when the sheet information indicates a sheet of a first size, the correction is performed using a filter of the first filter size, and the sheet information has a size larger than that of the first size. In the case of showing a sheet of a large second size, it is preferable that the correction be performed using a filter of a second filter size smaller than the second filter size. By this, appropriate correction processing is performed according to the size of the sheet. As a result, in the present embodiment, it is possible to improve the appearance of the printed image when observed at a normal observation distance which may vary depending on the size of the sheet.

また、用紙のサイズによって、主要なオブジェクトが推定でき、該オブジェクトによって適切な補正処理が異なる場合がある。例えば、名刺サイズの用紙に印刷される画像は、文字が主要なオブジェクトであり、名刺サイズの用紙に印刷される画像は、写真が主要なオブジェクトである可能性が高い。文字が主要なオブジェクトである場合には、文字のエッジを強調して文字の見栄えを向上することが好ましいので、エッジ強調フィルタを用いた補正処理を行うことが好ましい。また、写真が主要なオブジェクトである場合には、写真の粒状性が目立つことを抑制し、かつ、モアレの発生を抑制するために、平滑化フィルタを用いた補正処理を行うことが好ましい。本実施例によれば、用紙のサイズが、名刺サイズである場合には、大エッジ強調フィルタFElが選択され、用紙のサイズが、L判サイズである場合には、小平滑化フィルタFSsが選択される。この結果、用紙のサイズに応じて異なる補正処理を行うことで、主要オブジェクトに適した補正処理が行われる可能性が高くなり、印刷画像の見栄えを向上し得る。   Also, depending on the size of the sheet, the main object can be estimated, and the appropriate correction process may differ depending on the object. For example, an image printed on a card of business card size has a character as a main object, and an image printed on a card of business card size has a high probability that a photo is a main object. When the character is the main object, it is preferable to emphasize the edge of the character to improve the appearance of the character, so it is preferable to perform correction processing using an edge emphasis filter. In the case where a photograph is a main object, it is preferable to perform a correction process using a smoothing filter in order to suppress the graininess of the photograph from being noticeable and to suppress the occurrence of moiré. According to this embodiment, the large edge enhancement filter FEl is selected when the sheet size is a business card size, and the small smoothing filter FSs is selected when the sheet size is an L size. Be done. As a result, by performing different correction processing in accordance with the size of the sheet, the possibility that the correction processing suitable for the main object is performed is increased, and the appearance of the print image can be improved.

また、用紙の材質によって、インクの滲み方が異なる場合がある。例えば、用紙が普通紙である場合には、用紙が光沢紙である場合と比較して、インクの滲みの程度が大きくなる。この結果、用紙が普通紙である場合には、用紙が光沢紙である場合と比較して、インクの滲みによってエッジの強度が低下しやすい。このために、A3サイズの用紙が普通紙である場合には、A3サイズ用紙が光沢紙である場合と比較して、一段階、エッジの強度を高くするように、フィルタが決定される。具体的には、A3サイズの用紙が普通紙である場合には、A3サイズの用紙が光沢紙である場合と比較して、写真領域に対して適用される平滑化フィルタについては、フィルタのサイズが一段階小さくされる。また、A3サイズの用紙が普通紙である場合には、A3サイズの用紙が光沢紙である場合と比較して、文字領域に対して適用されるエッジ強調フィルタについては、フィルタのサイズが一段階大きくされる。また、写真領域については、過剰に平滑化処理を行うことで、画像処理の処理時間が増大することを抑制できる。本実施例では、A3サイズの用紙についてのみ、光沢紙と普通紙とで用いるフィルタを変えることで、平滑化処理の処理時間の低減が図られている。これは、A3サイズは、他の用紙のサイズと比較して大きいために、比較的大きなサイズのフィルタが用いられ、かつ、画素数が多いために処理時間が過大になりやすく、処理時間の増大を抑制する効果が大きいためである。   In addition, depending on the material of the sheet, the spreading of the ink may be different. 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 sheet is plain paper, the edge strength is likely to be reduced due to ink bleeding as compared to when the sheet is glossy. For this reason, when the A3 size paper is plain paper, the filter is determined so as to increase the edge strength in one step as compared to the case where the A3 size paper is glossy paper. Specifically, when the A3 size paper is plain paper, the size of the filter for the smoothing filter applied to the photo area is compared with the case where the A3 size paper is glossy paper. Is one step smaller. When the A3 size paper is plain paper, the size of the edge emphasis filter applied to the character area is one step compared to when the A3 size paper is glossy paper. Be enlarged. In addition, by performing excessive smoothing processing on a photographic area, it is possible to suppress an increase in processing time of image processing. In this embodiment, the processing time of the smoothing process is reduced by changing the filters used for glossy paper and plain paper only for A3 size paper. This is because the A3 size is larger than other paper sizes, so a relatively large filter is used, and the processing time tends to be excessive because the number of pixels is large. This is because the effect of suppressing

さらに、本実施例では、上述したように、各補正処理は、複数個の周辺画素SPの値と、対応する補正係数と、を用いて注目画素CPの値を変更する処理であるので、周辺画素SPの値と、複数個の補正係数と、を用いて、適切な補正処理を実行することができる。より具体的には、各補正処理は、図5、図6に示すいずれかのフィルタを用いて注目画素を変更する処理であり、異なる補正処理では、用いるフィルタが異なる。すなわち、第1の補正処理(例えば、用紙のサイズが名刺サイズである場合の補正処理)では、第1のフィルタ(例えば、図5(C)の大エッジ強調フィルタFEl)が用いられ、第2の補正処理(例えば、用紙のサイズがL判サイズである場合の補正処理)では、第2のフィルタ(例えば、図6(A)の小平滑化フィルタFSs)が用いられる。この結果、第1のフィルタと第2のフィルタとを用いて、第1の補正処理と第2の補正処理とを適切に実行できる。   Furthermore, in the present embodiment, as described above, each correction process is a process of changing the value of the target pixel CP using the values of the plurality of peripheral pixels SP and the corresponding correction coefficients. Appropriate correction processing can be performed using the value of the pixel SP and a plurality of correction coefficients. More specifically, each correction process is a process of changing the pixel of interest using one of the filters shown in FIGS. 5 and 6, and different filters use different filters. That is, in the first correction process (for example, the correction process when the size of the sheet is a business card size), the first filter (for example, the large edge emphasis filter FEl of FIG. 5C) is used. In the correction process of (for example, the correction process when the size of the sheet is L size), the second filter (for example, the small smoothing filter FSs of FIG. 6A) is used. As a result, the first correction process and the second correction process can be appropriately performed using the first filter and the second filter.

さらに、本実施例の補正処理は、図6から解るように、画像を平滑化する平滑化処理を含む。したがって、用紙の種類に応じた適切な平滑化処理を実行することができる。また、本実施例の補正処理は、図6から解るように、画像のエッジを強調するエッジ強調処理を含む。したがって、用紙の種類に応じた適切なエッジ強調処理を実行することができる。   Furthermore, the correction process of the present embodiment includes a smoothing process for smoothing an image as understood from FIG. Therefore, appropriate smoothing processing can be performed according to the type of paper. Further, as understood from FIG. 6, the correction processing of the present embodiment includes edge emphasis processing for emphasizing the edge of the image. Therefore, appropriate edge enhancement processing can be performed according to the type of paper.

B.第2実施例
第2実施例では、フィルタ選択テーブルFTbが、第1実施例の図4のフィルタ選択テーブルFTと異なる。すなわち、図2のS20にて決定される使用フィルタが、第1実施例とは異なる部分がある。
B. Second Embodiment In the second embodiment, the filter selection table FTb is different from the filter selection table FT of FIG. 4 of the first embodiment. That is, there is a portion where the used filter determined in S20 of FIG. 2 is different from the first embodiment.

図7は、第2実施例のフィルタ選択テーブルFTbの一例を示す図である。フィルタ選択テーブルFTbに示すように、第2実施例では、用紙のサイズが名刺サイズまたはL判サイズである場合に決定される使用フィルタは、第1実施例と同一である。   FIG. 7 is a diagram showing an example of the filter selection table FTb of the second embodiment. As shown in the filter selection table FTb, in the second embodiment, the used filter determined when the sheet size is the business card size or the L size is the same as that of the first embodiment.

フィルタ選択テーブルFTbに示すように、第2実施例では、用紙のサイズがA3サイズまたはA4サイズである場合に決定される使用フィルタが、第1実施例と異なる。   As shown in the filter selection table FTb, in the second embodiment, the use filter determined when the size of the sheet is A3 size or A4 size is different from that of the first embodiment.

用紙のサイズがA4サイズである場合には、対象画像内の文字領域と写真領域については、第1実施例と同一の使用フィルタに決定される。用紙のサイズがA4サイズである場合には、下地領域について、2種類の使用フィルタが決定される。具体的には、下地領域のうち、文字の近傍の領域を除いた領域については、中平滑化フィルタFSmが使用フィルタとして決定される。下地領域のうち、文字の近傍の領域については、中平滑化フィルタFSmよりもサイズが一段階だけ小さな小平滑化フィルタFSsが使用フィルタとして決定される。   When the size of the sheet is A4 size, the character area and the photo area in the target image are determined to be the same use filter as in the first embodiment. When the size of the sheet is A4 size, two types of use filters are determined for the background area. Specifically, the medium smoothing filter FSm is determined as the use filter for the area excluding the area near the characters in the base area. Of the base area, for the area near the characters, a small smoothing filter FSs whose size is smaller by one step than the medium smoothing filter FSm is determined as the use filter.

用紙のサイズがA3サイズである場合で、かつ、用紙が光沢紙である場合には、対象画像内の文字領域と写真領域については、第1実施例と同一の使用フィルタに決定される。用紙のサイズがA3サイズである場合で、かつ、用紙が光沢紙である場合には、下地領域について、2種類の使用フィルタが決定される。具体的には、下地領域のうち、文字の近傍を除いた領域については、大平滑化フィルタFSlが使用フィルタとして決定される。下地領域のうち、文字の近傍の領域については、大平滑化フィルタFSlよりもサイズが一段階だけ小さな中平滑化フィルタFSmが使用フィルタとして決定される。   When the size of the sheet is A3 and the sheet is glossy, the character area and the photo area in the target image are determined to be the same use filter as in the first embodiment. If the size of the sheet is A3 and the sheet is glossy, two types of use filters are determined for the base area. Specifically, the large smoothing filter FS1 is determined as the used filter for the area of the base area excluding the vicinity of the characters. Among the base regions, for the region near the character, a medium smoothing filter FSm, which is smaller in size by one step than the large smoothing filter FS1, is determined as the use filter.

用紙のサイズがA3サイズである場合で、かつ、用紙が普通紙である場合には、対象画像内の文字領域と写真領域については、第1実施例と同一の使用フィルタに決定される。用紙のサイズがA3サイズである場合で、かつ、用紙が普通紙である場合には、下地領域について、2種類の使用フィルタが決定される。具体的には、下地領域のうち、文字の近傍の領域を除いた領域については、中平滑化フィルタFSmが使用フィルタとして決定される。下地領域のうち、文字の近傍の領域については、中平滑化フィルタFSmよりもサイズが一段階だけ小さな小平滑化フィルタFSsが使用フィルタとして決定される。   When the size of the sheet is A3 and the sheet is plain paper, the character area and the photo area in the target image are determined to be the same use filter as in the first embodiment. When the size of the sheet is A3 and the sheet is plain paper, two types of use filters are determined for the base area. Specifically, the medium smoothing filter FSm is determined as the use filter for the area excluding the area near the characters in the base area. Of the base area, for the area near the characters, a small smoothing filter FSs whose size is smaller by one step than the medium smoothing filter FSm is determined as the use filter.

フィルタ選択テーブルFTbを用いて決定される使用フィルタを用いた補正処理を実現すべく、第2実施例では、用紙のサイズがA4サイズまたはA3サイズである場合に実行される図2のS40の補正処理が、第1実施例と異なる。用紙のサイズが名刺サイズまたはL判サイズである場合に実行される図2のS40の補正処理は、第1実施例と同じである。   In the second embodiment, the correction in S40 of FIG. 2 performed when the size of the sheet is A4 size or A3 size in order to realize the correction process using the used filter determined using the filter selection table FTb The processing is different from that of the first embodiment. The correction process of S40 of FIG. 2 executed when the sheet size is the business card size or the L size is the same as that of the first embodiment.

図8は、第2実施例で、用紙のサイズがA4サイズまたはA3サイズである場合に実行される補正処理のフローチャートである。S100では、1個の注目画素CPが選択される。S105では、領域に応じたフィルタが選択される。すなわち、注目画素CPが属する領域が、文字領域、写真領域、下地領域のいずれであるかに応じて、S20にて決定されたフィルタが選択される。ここでは、用紙のサイズが、A3サイズで、かつ、光沢紙である場合を例にして説明する。この場合には、注目画素CPが文字領域内である場合には小エッジ強調フィルタFEsが選択され、注目画素CPが写真領域内である場合には大平滑化フィルタFSlが選択される。そして、注目画素CPが下地領域内である場合には、大平滑化フィルタFSlが選択される。下地領域については、このように、文字の近傍を除いた領域について決定された使用フィルタが選択される。   FIG. 8 is a flowchart of the correction process executed when the size of the sheet is A4 size or A3 size in the second embodiment. In S100, one target pixel CP is selected. In S105, a filter corresponding to the region is selected. That is, the filter determined in S20 is selected depending on whether the region to which the pixel of interest CP belongs is the character region, the photograph region, or the base region. Here, the case where the sheet size is A3 size and glossy paper will be described as an example. In this case, the small edge enhancement filter FEs is selected when the pixel of interest CP is in the character area, and the large smoothing filter FS1 is selected when the pixel of interest CP is in the picture area. Then, if the pixel of interest CP is in the background area, the large smoothing filter FS1 is selected. For the background area, the use filter determined for the area excluding the vicinity of the character is selected in this way.

S110では、注目画素CPが下地領域内の画素であるか否かが判断される。注目画素CPが下地領域内の画素でない場合には(S110:NO)、S125に処理を進める。注目画素CPが下地領域内の画素である場合には(S110:YES)、S115にて、CPU110は、注目画素CPを中心としたフィルタ範囲内に、文字領域内に位置する文字画素があるか否かを判断する。   In S110, it is determined whether the pixel of interest CP is a pixel in the background area. If the pixel of interest CP is not a pixel in the background area (S110: NO), the process proceeds to S125. If the focused pixel CP is a pixel in the background area (S110: YES), the CPU 110 determines in S115 whether there is a text pixel located in the text area within the filter range centered on the focused pixel CP Decide whether or not.

注目画素CPを中心としたフィルタ範囲内に文字画素がある場合には(S115:YES)、S120にて、CPU110は、文字の近傍の領域のためのフィルタ、すなわち、現在選択されているフィルタよりもサイズが一段階小さなフィルタを使用フィルタとして、新たに選択する。注目画素CPを中心としたフィルタ範囲内に文字画素がない場合には(S115:NO)、CPU110は、S120をスキップして、S125に処理を進める。   If there is a character pixel within the filter range centered on the pixel of interest CP (S115: YES), the CPU 110 determines in S120 from the filter for the region near the character, that is, from the currently selected filter. Also use a filter smaller in size by one step as a new filter. If there is no character pixel within the filter range centered on the pixel of interest CP (S115: NO), the CPU 110 skips S120 and advances the process to S125.

図9は、第2実施例における下地領域の補正の説明図である。図9には、対象画像の一部である部分対象画像POIの一例が図示されている。この部分対象画像POIは、文字TXの一部(下地領域の一部)と、下地BGの一部(下地領域)と、を含んでいる。注目画素CPが、図9の画素CP1である場合には、画素CP1を中心とする大平滑化フィルタFSlの範囲内に、文字TX(文字領域)を構成する文字画素はないので(S115:NO)、使用フィルタの再選択は行われない。注目画素CPが、図9の画素CP2である場合には、画素CP2を中心とする大平滑化フィルタFSlの範囲内に、文字TX(文字領域)を構成する文字画素はあるので(S115:YES)、使用フィルタは、大平滑化フィルタFSlから、中平滑化フィルタFSmに変更される。   FIG. 9 is an explanatory view of the correction of the background area in the second embodiment. FIG. 9 shows an example of a partial target image POI which is a part of the target image. The partial target image POI includes a part of the character TX (a part of the background area) and a part of the background BG (the background area). When the pixel of interest CP is the pixel CP1 of FIG. 9, there is no character pixel that constitutes the character TX (character region) within the range of the large smoothing filter FS1 centered on the pixel CP1 (S115: NO ), There is no reselection of the filter used. If the pixel of interest CP is the pixel CP2 of FIG. 9, there is a character pixel that constitutes the character TX (character region) within the range of the large smoothing filter FS1 centered on the pixel CP2 (S115: YES ), The use filter is changed from the large smoothing filter FS1 to the medium smoothing filter FSm.

S125では、CPU110は、フィルタ処理を実行する。すなわち、CPU110は、選択済みの使用フィルタを注目画素CPに適用して、注目画素CPの値を補正する。S130では、CPU110は、全ての画素を注目画素として処理したか否かを判断する。未処理の画素がある場合には(S130:NO)、CPU110は、S100に戻る。全ての画素が処理された場合には(S130:YES)、CPU110は、補正処理を終了する。   At S125, the CPU 110 executes the filtering process. That is, the CPU 110 applies the selected used filter to the target pixel CP to correct the value of the target pixel CP. In S130, the CPU 110 determines whether all pixels have been processed as the target pixel. If there is an unprocessed pixel (S130: NO), the CPU 110 returns to S100. If all the pixels have been processed (S130: YES), the CPU 110 ends the correction processing.

以上説明した第2実施例によれば、第1実施例と同様に、用紙の種類に応じた適切な補正処理を選択することができるので、用紙に適した見栄えの印刷画像を用紙に印刷できる。   According to the second embodiment described above, as in the first embodiment, since it is possible to select an appropriate correction process according to the type of paper, it is possible to print a print image having a good appearance suitable for the paper. .

第2実施例によれば、さらに、下地領域に対しても用紙のサイズに応じたフィルタを適用した補正処理が実行されるので、さらに、用紙に適した見栄えの印刷画像を用紙に印刷できる。   According to the second embodiment, since the correction processing is performed by applying the filter corresponding to the size of the sheet also to the base area, it is possible to print the print image having the appearance suitable for the sheet on the sheet.

さらに、第2実施例によれば、下地領域内の複数個の画素のうちの文字TXの近傍の領域を除いた領域内の画素の値は、特定のフィルタ(例えば、大平滑化フィルタFSl)を用いて補正される(図8のS115にてNO、S125)。そして、下地領域内の複数個の画素のうちの文字TXの近傍の領域内の画素の値は、特定のフィルタよりも小さなサイズのフィルタ(例えば、中平滑化フィルタFSm)を用いて補正される。この結果、印刷画像において、下地BGと文字TXとの境界部分の見栄えが低下することを抑制できる。   Furthermore, according to the second embodiment, among the plurality of pixels in the base area, the value of the pixel in the area excluding the area near the character TX is a specific filter (for example, the large smoothing filter FS1). The correction is made using (step S125 in FIG. 8: NO). Then, the value of the pixel in the region near the character TX among the plurality of pixels in the base region is corrected using a filter (for example, the middle smoothing filter FSm) smaller than the specific filter . As a result, it is possible to suppress deterioration in the appearance of the boundary portion between the background BG and the character TX in the printed image.

仮に、下地領域のうちの文字の近傍の領域の画素に、過度に大きな大平滑化フィルタFSlが適用されると、フィルタ範囲内に、文字画素が含まれやすい。この場合には、補正処理によって、例えば、文字TXに沿った領域に、文字TXの色と下地の色との中間の色を持った画素が現れてしまう。さらに、このような状態で、文字TXにエッジ強調処理が施されると、鮮鋭化された文字のエッジの周囲に、このような中間の色を持った縁取りが現れ得る。この結果、文字TXの見栄えが低下する可能性がある。本実施例によれば、このような不都合を抑制することができる。   If an excessively large large smoothing filter FS1 is applied to pixels in an area near a character in the base area, character pixels are likely to be included in the filter range. In this case, as a result of the correction process, for example, a pixel having an intermediate color between the color of the character TX and the color of the background appears in an area along the character TX. Furthermore, in such a state, when the character TX is subjected to edge enhancement processing, a border having such an intermediate color may appear around the edge of the sharpened character. As a result, the appearance of the characters TX may be degraded. According to the present embodiment, such inconvenience can be suppressed.

C.変形例
(1)上記第1実施例では、エッジ強調フィルタと平滑化フィルタとの両方について、複数個のサイズを準備して、用紙のサイズに応じて使用するフィルタのサイズを変えている(図4)。これに代えて、例えば、エッジ強調フィルタと平滑化フィルタとのうちの一方は、固定のサイズとして、他方についてのみ、用紙のサイズに応じて使用するフィルタのサイズを変えても良い。
C. Modification (1) In the first embodiment, a plurality of sizes are prepared for both the edge emphasizing filter and the smoothing filter, and the size of the filter to be used is changed according to the size of the sheet (see FIG. 4). Instead of this, for example, one of the edge emphasizing filter and the smoothing filter may change the size of the filter to be used according to the size of the paper only for the other as the fixed size.

上記第1実施例では、用紙のサイズに応じて使用するフィルタのサイズを変えているが、使用するフィルタのサイズを変えずに、使用するフィルタの種類だけを変えても良い。例えば、想定される用紙のサイズを、名刺サイズとL判サイズだけとし、用紙のサイズが名刺サイズである場合には、エッジ強調フィルタが選択され、用紙のサイズがL判サイズである場合には、平滑化フィルタが選択されても良い。この場合には、エッジ強調フィルタと平滑化フィルタとは、互いにサイズが等しく(例えば、縦3画素×横3画素)、補正係数だけが異なるフィルタであっても良い。   In the first embodiment, the size of the filter to be used is changed according to the size of the sheet, but the type of filter to be used may be changed without changing the size of the filter to be used. For example, assuming that the paper size assumed is only the business card size and the L size, and the paper size is the business card size, the edge emphasis filter is selected, and the paper size is the L size. , And a smoothing filter may be selected. In this case, the edge emphasizing filter and the smoothing filter may be filters having the same size (for example, 3 vertical pixels × 3 horizontal pixels) and only different correction coefficients.

このように、一般的に言えば、媒体情報(例えば、用紙情報)が第1種の媒体(例えば、特定のサイズや材質の用紙)を示す場合に、第1の補正処理が選択され、媒体情報が第2種の媒体を示す場合に、第2の補正処理が選択されることが好ましい。   Thus, generally speaking, when the medium information (for example, the sheet information) indicates the first type of medium (for example, a sheet of a specific size or material), the first correction process is selected, and the medium is selected. Preferably, the second correction process is selected when the information indicates a second type of medium.

(3)上記実施例の平滑化フィルタ(図6)は、一例であり、これに限られない。例えば、図6の中平滑化フィルタFSmや大平滑化フィルタFSlは、フィルタ内に補正係数が0である周辺画素を規定している。これに代えて、中平滑化フィルタFSmは、例えば、縦5画素×横5画素の25個の画素に対応する全ての補正係数が(1/25)であるフィルタであっても良い。また、大平滑化フィルタFSlは、例えば、縦7画素×横7画素の49個の画素に対応する全ての補正係数が(1/49)であるフィルタであっても良い。また、小平滑化フィルタFSs、中平滑化フィルタFSm、大平滑化フィルタFSlは、サイズが異なる3種類のガウスフィルタであっても良い。 (3) The smoothing filter (FIG. 6) of the above embodiment is an example, and is not limited to this. For example, the middle smoothing filter FSm and the large smoothing filter FS1 in FIG. 6 define peripheral pixels having a correction coefficient of 0 in the filter. Instead of this, for example, the middle smoothing filter FSm may be a filter in which all the correction coefficients corresponding to 25 pixels of 5 vertical pixels × 5 horizontal pixels are (1/25). Further, the large smoothing filter FS1 may be, for example, a filter in which all correction coefficients corresponding to 49 pixels of 7 vertical pixels × 7 horizontal pixels are (1/49). The small smoothing filter FSs, the middle smoothing filter FSm, and the large smoothing filter FS1 may be three types of Gaussian filters having different sizes.

(4)上記実施例のエッジ強調フィルタ(図5)は、一例であり、これに限られない。図10は、変形例のエッジ強調フィルタの一例を示す図である。変形例では、図10(A)〜(C)の3種類のサイズのエッジ強調フィルタが採用される。図10(A)の小エッジ強調フィルタFEsは、図6(A)の実施例の小エッジ強調フィルタFEsと同一である。 (4) The edge emphasizing filter (FIG. 5) of the above embodiment is an example, and the invention is not limited to this. FIG. 10 is a view showing an example of the edge emphasis filter of the modification. In the modification, edge emphasis filters of three sizes shown in FIGS. 10A to 10C are employed. The small edge emphasis filter FEs of FIG. 10 (A) is the same as the small edge emphasis filter FEs of the embodiment of FIG. 6 (A).

図10(B)の中エッジ強調フィルタFEmbは、縦3個×横3個の画素のそれぞれに対応する補正係数を規定している。すなわち、中エッジ強調フィルタFEmbは、注目画素CPと、注目画素CPの周辺に位置する8個の周辺画素SPと、のそれぞれについて、対応する補正係数を規定している。例えば、中エッジ強調フィルタFEmbでは、注目画素CPに対応する補正係数は、5であり、注目画素CPの上下左右に隣接する4個の周辺画素SPに対応する4個の補正係数は、0であり、注目画素CPの左上、右上、左下、左上に位置する4個の周辺画素SPに対応する4個の補正係数は、−1である。中エッジ強調フィルタFEmbでは、対応する補正係数が0とは異なる周辺画素SPの個数は、4個である。このために、中エッジ強調フィルタFEmbでは、補正に用いられる周辺画素SPの個数は、4個である。   The middle edge emphasizing filter FEmb in FIG. 10B defines a correction coefficient corresponding to each of 3 vertical pixels × 3 horizontal pixels. That is, the middle edge emphasizing filter FEmb 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 middle edge emphasizing filter FEmb, the correction coefficient corresponding to the target pixel CP is 5, and the four correction coefficients corresponding to the four neighboring pixels SP adjacent to the top, bottom, left, and right of the target pixel CP 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 FEmb, 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 FEmb, the number of peripheral pixels SP used for correction is four.

図10(C)の大エッジ強調フィルタFElbは、縦5個×横5個の画素のそれぞれに対応する補正係数を規定している。すなわち、大エッジ強調フィルタFElbは、注目画素CPと、注目画素CPの周辺に位置する24個の周辺画素SPと、のそれぞれについて、対応する補正係数を規定している。例えば、大エッジ強調フィルタFElbでは、注目画素CPに対応する補正係数は、5であり、24個の周辺画素SPのうち、上下左右の辺の中央に位置する4個の周辺画素SPに対応する4個の補正係数は、−1であり、残りの20個の周辺画素SPに対応する20個の補正係数は、0である。大エッジ強調フィルタFElbでは、対応する補正係数が0とは異なる周辺画素SPの個数は、4個である。このために、大エッジ強調フィルタFElbでは、補正に用いられる周辺画素SPの個数は、4個である。   The large edge emphasis filter FElb shown in FIG. 10C defines a correction coefficient corresponding to each of 5 vertical pixels × 5 horizontal pixels. That is, the large edge emphasis filter FElb 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 FElb, 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 FElb, 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 FElb, the number of peripheral pixels SP used for correction is four.

フィルタのサイズは、実施例と同様に、補正に用いられる複数個の周辺画素SPのうちの注目画素CPから最も離れた最遠周辺画素FPと、注目画素CPと、の間の距離Dによって示すことができる。すなわち、最遠周辺画素FPと注目画素CPとの間の距離Dが大きいほど、換言すれば、注目画素CPが最遠周辺画素FPから離れているほど、フィルタのサイズが大きいと言うことができる。ここで、小エッジ強調フィルタFEsの距離Desは、1であり、中エッジ強調フィルタFEmbの距離Dembは、SQRT(2)であり、大エッジ強調フィルタFElbの距離Delbは、2である。   The size of the filter is 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, as in the embodiment. be able to. 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, in other words, as the target pixel CP is farther from the farthest peripheral pixel FP. . Here, the distance Des of the small edge emphasis filter FEs is 1, the distance Demb of the middle edge emphasis filter FEmb is SQRT (2), and the distance Delb of the large edge emphasis filter FElb is 2.

なお、変形例においても、エッジ強調フィルタのサイズが大きいほど(すなわち、最遠周辺画素FPが注目画素CPから離れているほど)、補正のレベルが高くなり、エッジが強調される程度が大きくなる。   Also in the modification, as the size of the edge emphasizing filter is larger (that is, as the farthest peripheral pixels FP are further from the target pixel CP), the correction level becomes higher and the degree of emphasizing the edge becomes larger. .

(5)上記各実施例にて、想定される用紙のサイズや材質は一例であり、これに限られない。用紙のサイズは、他のサイズ、例えば、B5サイズ、B4サイズ、A2サイズを含んでも良い。用紙の材質は、さらに、厚紙、ラベルシートなどを含んでも良い。さらに、用紙情報は、用紙とは異なる材質の被印刷媒体、例えば、OHPシート、CD−ROMやDVD−ROMを含んでも良い。 (5) The size and the material of the sheet assumed in each of the above-described embodiments are merely examples, and the present invention is not limited to this. The paper size may include other sizes, for example, B5 size, B4 size, and A2 size. The material of the paper may further include thick paper, a label sheet, and the like. Furthermore, the sheet information may include a print medium of a material different from that of the sheet, such as an OHP sheet, a CD-ROM, or a DVD-ROM.

(6)上記実施例では、用紙のサイズや材質を示す用紙情報は、UI画面を介してユーザによって入力される。これに代えて、プリンタ300は、例えば、用紙トレイに、用紙のサイズや材質を検出する用紙センサを備え、CPU110は、該用紙センサを用いて生成される用紙情報をプリンタ300から取得しても良い。用紙センサ310は、例えば、トレイ内における所定の位置に用紙が有るか否かを判定することで、用紙のサイズを検出するセンサであっても良い。また、用紙センサは、用紙の表面からの反射光の反射率や波長を測定することによって、光沢紙と普通紙とを含む複数種の用紙のうちのいずれであるかを検出するセンサであっても良い。 (6) In the above embodiment, the sheet information indicating the sheet size and material is input by the user via the UI screen. Instead of this, for example, the printer 300 is provided with a sheet sensor for detecting the size and the material of the sheet in the sheet tray, and the CPU 110 may acquire sheet information generated using the sheet sensor from the printer 300. good. The sheet sensor 310 may be, for example, a sensor that detects the size of a sheet by determining whether a sheet is present at a predetermined position in the tray. In addition, the paper sensor is a sensor that detects which of a plurality of types of paper including glossy paper and plain paper by measuring the reflectance and wavelength of light reflected from the surface of the paper. Also good.

(7)上記実施例では、対象画像データは、文書作成ソフトや描画ソフトなどによって作成された画像データである。これに代えて、対象画像データは、スキャナやデジタルカメラなどにおいてイメージセンサを用いて原稿などの対象物を読み取ることによって生成される読取画像データであっても良い。 (7) In the above embodiment, the target image data is image data created by document creation software or drawing software. Instead of this, the target image data may be read image data generated by reading an object such as a document using an image sensor in a scanner, a digital camera or the like.

(8)図2の印刷処理を実現する印刷制御装置は、端末装置100に限らず、例えば、プリンタ300や複合機などに搭載された制御装置(CPUとメモリ)であっても良い。この場合には、例えば、プリンタ300の制御装置は、端末装置100から対象画像データを取得し、図2の印刷処理を実行し、プリンタ300にて印刷画像の印刷を行っても良い。 (8) The print control device for realizing the printing process of FIG. 2 is not limited to the terminal device 100, and may be, for example, a control device (CPU and memory) installed in the printer 300 or a multifunction machine. In this case, for example, the control device of the printer 300 may obtain the target image data from the terminal device 100, execute the printing process of FIG. 2, and print the print image by the printer 300.

また、端末装置100やプリンタ300とネットワークを介して接続されたサーバが、図2の印刷制御処理を実行しても良い。この場合には、例えば、サーバは、端末装置100から対象画像データを取得して、図2の印刷制御処理を実行し、生成された印刷ジョブをプリンタ300に送信しても良い。サーバは、単体の計算機であっても良い。また、サーバは、ネットワークを介して互いに通信可能な複数個のコンピュータ(例えば、クラウドサーバ)であっても良い。この場合には、複数個のコンピュータは、印刷制御処理に要する機能を一部ずつ分担して、全体として、印刷制御処理を実行してもよい。この場合、複数個のコンピュータの全体が、印刷制御装置の例である。   Further, a server connected to the terminal device 100 or the printer 300 via the network may execute the print control process of FIG. In this case, for example, the server may acquire the target image data from the terminal device 100, execute the print control process of FIG. 2, and transmit the generated print job to the printer 300. The server may be a single computer. Also, the server may be a plurality of computers (for example, cloud servers) that can communicate with each other via a network. In this case, the plurality of computers may share the function required for the print control process and execute the print control process as a whole. In this case, the whole of the plurality of computers is an example of the printing control apparatus.

(9)上記各実施例において、ハードウェアによって実現されていた構成の一部をソフトウェアに置き換えるようにしてもよく、逆に、ソフトウェアによって実現されていた構成の一部あるいは全部をハードウェアに置き換えるようにしてもよい。 (9) In each of the above embodiments, part of the configuration realized by hardware may be replaced by software, and conversely, part or all of the configuration implemented by software is replaced by hardware You may do so.

以上、実施例、変形例に基づき本発明について説明してきたが、上記した発明の実施の形態は、本発明の理解を容易にするためのものであり、本発明を限定するものではない。本発明は、その趣旨並びに特許請求の範囲を逸脱することなく、変更、改良され得ると共に、本発明にはその等価物が含まれる。   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…操作部、300…プリンタ、170…通信IF、IM…写真、LN…ローカルエリアネットワーク、CP…注目画素、SP…周辺画素、FP…最遠周辺画素、FT、FTb…フィルタ選択テーブル、TX…文字、PG1…コンピュータプログラム、OI1〜OI3…対象画像、POI…部分対象画像、FEl、FElb…大エッジ強調フィルタ、FEm、FEmb…中エッジ強調フィルタ、FEs…小エッジ強調フィルタ、FSl…大平滑化フィルタ、FSm…中平滑化フィルタ、FSs…小平滑化フィルタ、Del…距離   DESCRIPTION OF SYMBOLS 100 ... Terminal device, 110 ... CPU, 120 ... Volatile storage device, 130 ... Nonvolatile storage device, 140 ... Display part, 150 ... Operation part, 300 ... Printer, 170 ... Communication IF, IM ... Photo, LN ... Local area Network, CP: attention pixel, SP: peripheral pixel, FP: farthest peripheral pixel, FT, FTb: filter selection table, TX: character, PG1: computer program, OI1 to OI3: target image, POI: partial target image, FEl , FElb ... large edge emphasis filter, FEm, FEmb ... middle edge emphasis filter, FEs ... small edge emphasis filter, FSl ... large smoothing filter, FSm ... middle smoothing filter, FSs ... small smoothing filter, Del ... distance

Claims (13)

色材を用いて被印刷媒体に画像を印刷する印刷実行部を制御する印刷制御装置であって、
対象画像を示す対象画像データを取得する画像取得部と、
前記対象画像を印刷すべき前記被印刷媒体の種類を示す媒体情報を取得する媒体情報取得部と、
前記媒体情報を用いて、複数個の補正処理の中から実行すべき補正処理を選択する選択部であって、
前記複数個の補正処理は、第1の補正処理と第2の補正処理とを含み、
前記第1の補正処理は、前記対象画像内の補正すべき注目画素の周辺に位置する複数個の第1の周辺画素のそれぞれに対応付けられる1つ以上の第1の補正値を用いて前記注目画素の値を補正する処理であり、
前記第2の補正処理は、前記注目画素の周辺に位置する複数個の第2の周辺画素のそれぞれに対応付けられる1つ以上の第2の補正値を用いて前記注目画素の値を補正する処理である、前記選択部と、
前記対象画像データに対して選択済みの前記補正処理を含む生成処理を実行して、印刷画像を示す印刷画像データを生成する生成部と、
前記印刷画像データに従って、印刷実行部に前記印刷画像を被印刷媒体に印刷させる印刷制御部と、
を備え、
前記選択部は、前記媒体情報が第1種の媒体を示す場合に、前記第1の補正処理を選択し、前記媒体情報が第2種の媒体を示す場合に、前記第2の補正処理を選択する、印刷制御装置。
A printing control apparatus that controls a printing execution unit that prints an image on a printing medium using a color material,
An image acquisition unit that acquires target image data indicating a target image;
A medium information acquisition unit that acquires medium information indicating a type of the print target medium on which the target image is to be printed;
A selection unit that selects a correction process to be performed from among a plurality of correction processes using the medium information;
The plurality of correction processes include a first correction process and a second correction process.
The first correction process is performed using the one or more first correction values associated with each of a plurality of first peripheral pixels positioned around a pixel of interest to be corrected in the target image. It is a process to correct the value of the pixel of interest,
The second correction process corrects the value of the pixel of interest using one or more second correction values associated with each of a plurality of second peripheral pixels located around the pixel of interest. The selection unit being a process;
A generation unit that executes generation processing including the selected correction processing on the target image data to generate print image data indicating a print image;
A print control unit that causes the print execution unit to print the print image on a print medium according to the print image data;
Equipped with
The selection unit selects the first correction process when the medium information indicates a first type of medium, and the second correction process when the medium information indicates a second type of medium. Print control device to select.
請求項1に記載の印刷制御装置であって、
前記第1の補正処理は、前記複数個の第1の周辺画素の値と、前記1つ以上の第1の補正値と、を用いて前記注目画素の値を変更する処理であり、
前記第2の補正処理は、前記複数個の第2の周辺画素の値と、前記1つ以上の第2の補正値と、を用いて前記注目画素の値を変更する処理である、印刷制御装置。
The printing control apparatus according to claim 1, wherein
The first correction process is a process of changing the value of the target pixel using values of the plurality of first peripheral pixels and the one or more first correction values.
The second correction process is a process of changing the value of the target pixel using the values of the plurality of second peripheral pixels and the one or more second correction values. apparatus.
請求項2に記載の印刷制御装置であって、
前記第1の補正処理は、第1のフィルタを用いて前記注目画素の値を変更し、
前記第2の補正処理は、前記第2のフィルタとは異なる第2のフィルタを用いて前記注目画素の値を変更し、
前記第1のフィルタは、前記複数個の第1の周辺画素のそれぞれについて、前記注目画素に対する相対的な位置と、対応する前記第1の補正値と、を規定したフィルタであり、
前記第2のフィルタは、前記複数個の第2の周辺画素のそれぞれについて、前記注目画素に対する相対的な位置と、対応する前記第2の補正値と、を規定したフィルタである、印刷制御装置。
The printing control apparatus according to claim 2,
The first correction process changes the value of the pixel of interest using a first filter,
The second correction process changes the value of the pixel of interest using a second filter different from the second filter,
The first filter is a filter that defines, for each of the plurality of first peripheral pixels, a relative position with respect to the target pixel and the corresponding first correction value.
The print control device according to claim 1, wherein the second filter is a filter that defines, for each of the plurality of second peripheral pixels, a relative position with respect to the pixel of interest and the corresponding second correction value. .
請求項1に記載の印刷制御装置であって、
前記注目画素に対する相対的な位置が特定の位置である前記第1の周辺画素に対応する前記第1の補正値と、前記注目画素に対する相対的な位置が前記特定の位置である前記第2の周辺画素と対応する前記第2の補正値と、は、互いに異なる、印刷制御装置。
The printing control apparatus according to claim 1, wherein
The first correction value corresponding to the first peripheral pixel whose position relative to the pixel of interest is a specific position, and the second position where the position relative to the pixel of interest is the specific position A print control device, wherein peripheral pixels and the corresponding second correction values are different from each other.
請求項1〜4のいずれかに記載の印刷制御装置であって、
前記1つ以上の第1の補正値を共通の分母を持つ分数で表した場合に、前記1つ以上の第1の補正値の分子の絶対値は、2の累乗数を含み、0または2の累乗数で構成される、印刷制御装置。
The printing control apparatus according to any one of claims 1 to 4, wherein
When representing the one or more first correction values as a fraction having a common denominator, the absolute value of the numerator of the one or more first correction values includes a power of 2, 0 or 2, A printing control device, composed of the powers of
請求項1〜5のいずれかに記載の印刷制御装置であって、
前記第1の補正処理および前記第2の補正処理は、画像を平滑化する平滑化処理である、印刷制御装置。
The printing control apparatus according to any one of claims 1 to 5, wherein
The print control apparatus, wherein the first correction process and the second correction process are smoothing processes for smoothing an image.
請求項6に記載の印刷制御装置であって、
前記第1の補正処理に用いられる前記複数個の第1の周辺画素のうちの前記注目画素から最も離れた前記第1の周辺画素は、前記第2の補正処理に用いられる前記複数個の第2の周辺画素のうちの前記注目画素から最も離れた前記第2の周辺画素よりも前記注目画素から離れている、印刷制御装置。
The print control apparatus according to claim 6, wherein
The first peripheral pixels farthest from the target pixel among the plurality of first peripheral pixels used in the first correction process are the plurality of first peripheral pixels used in the second correction process. The print control apparatus according to claim 1, wherein the second peripheral pixel farthest from the target pixel among the 2 peripheral pixels is farther from the target pixel than the second peripheral pixel.
適用例1〜5のいずれかに記載の印刷制御装置であって、
前記第1の補正処理および前記第2の補正処理は、画像のエッジを強調するエッジ強調処理である、印刷制御装置。
The printing control apparatus according to any one of the application examples 1 to 5, wherein
The print control apparatus, wherein the first correction process and the second correction process are edge enhancement processes for enhancing an edge of an image.
請求項8に記載の印刷制御装置であって、
前記第2の補正処理に用いられる前記複数個の第2の周辺画素のうちの前記注目画素から最も離れた前記第2の周辺画素は、前記第1の補正処理に用いられる前記複数個の第1の周辺画素のうちの前記注目画素から最も離れた前記第1の周辺画素よりも前記注目画素から離れている、印刷制御装置。
The printing control apparatus according to claim 8, wherein
The second peripheral pixels farthest from the target pixel among the plurality of second peripheral pixels used in the second correction process are the plurality of second peripheral pixels used in the first correction process. A print control apparatus, which is farther from the target pixel than the first peripheral pixel farthest from the target pixel among the 1 peripheral pixels.
請求項1〜9のいずれかに記載の印刷制御装置であって、
前記第2種の媒体は、普通紙であり、
前記第1種の媒体は、前記普通紙よりも色材の滲みが発生し難い特徴を有する用紙である、印刷制御装置。
The print control apparatus according to any one of claims 1 to 9, wherein
The second type of medium is plain paper,
The print control apparatus according to claim 1, wherein the first type of medium is a sheet having a feature in which bleeding of a color material is less likely to occur than the plain paper.
請求項1〜9のいずれかに記載の印刷制御装置であって、
前記第2種の媒体は、第1のサイズを有し、
前記第1種の媒体は、前記第1のサイズよりも大きなサイズを有する、印刷制御装置。
The print control apparatus according to any one of claims 1 to 9, wherein
The second type of medium has a first size,
The print control device, wherein the first type of medium has a size larger than the first size.
請求項1〜11のいずれかに記載の印刷制御装置であって、
前記第1の補正処理に用いられる前記複数個の第1の周辺画素のうちの前記注目画素から最も離れた前記第1の周辺画素よりも前記注目画素に近い少なくとも一個の前記第1の周辺画素は、前記第1の補正処理に用いられない、印刷制御装置。
The print control apparatus according to any one of claims 1 to 11, wherein
At least one first peripheral pixel closer to the target pixel than the first peripheral pixel farthest from the target pixel among the plurality of first peripheral pixels used for the first correction processing Is a printing control apparatus not used for the first correction process.
色材を用いて被印刷媒体に画像を印刷する印刷実行部を制御するコンピュータプログラムであって、
対象画像を示す対象画像データを取得する画像取得機能と、
前記対象画像を印刷すべき前記被印刷媒体の種類を示す媒体情報を取得する媒体情報取得機能と、
前記媒体情報を用いて、複数個の補正処理の中から実行すべき補正処理を選択する選択機能であって、
前記複数個の補正処理は、第1の補正処理と第2の補正処理とを含み、
前記第1の補正処理は、前記対象画像内の補正すべき注目画素の周辺に位置する複数個の第1の周辺画素のそれぞれに対応付けられる1つ以上の第1の補正値を用いて前記注目画素の値を補正する処理であり、
前記第2の補正処理は、前記注目画素の周辺に位置する複数個の第2の周辺画素のそれぞれに対応付けられる1つ以上の第2の補正値を用いて前記注目画素の値を補正する処理である、前記選択機能と、
前記対象画像データに対して選択済みの前記補正処理を含む生成処理を実行して、印刷画像を示す印刷画像データを生成する生成機能と、
前記印刷画像データに従って、印刷実行部に前記印刷画像を被印刷媒体に印刷させる印刷制御機能と、
をコンピュータに実現させ、
前記選択機能は、前記媒体情報が第1種の媒体を示す場合に、前記第1の補正処理を選択し、前記媒体情報が第2種の媒体を示す場合に、前記第2の補正処理を選択する、コンピュータプログラム。
A computer program for controlling a print execution unit that prints an image on a printing medium using a color material,
An image acquisition function of acquiring target image data indicating a target image;
A medium information acquisition function of acquiring medium information indicating a type of the printing medium on which the target image is to be printed;
It is a selection function for selecting a correction process to be executed from among a plurality of correction processes using the medium information,
The plurality of correction processes include a first correction process and a second correction process.
The first correction process is performed using the one or more first correction values associated with each of a plurality of first peripheral pixels positioned around a pixel of interest to be corrected in the target image. It is a process to correct the value of the pixel of interest,
The second correction process corrects the value of the pixel of interest using one or more second correction values associated with each of a plurality of second peripheral pixels located around the pixel of interest. The selection function being processing;
A generation function of generating print image data indicating a print image by executing a generation process including the selected correction process on the target image data;
A print control function that causes the print execution unit to print the print image on a print medium according to the print image data;
On a computer,
The selection function selects the first correction process when the medium information indicates a first type of medium, and the second correction process when the medium information indicates a second type of medium. The computer program to choose.
JP2017253032A 2017-11-22 2017-12-28 Printing control device, and, computer program Pending JP2019097141A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2017225038 2017-11-22
JP2017225038 2017-11-22

Publications (1)

Publication Number Publication Date
JP2019097141A true JP2019097141A (en) 2019-06-20

Family

ID=66973235

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017253032A Pending JP2019097141A (en) 2017-11-22 2017-12-28 Printing control device, and, computer program

Country Status (1)

Country Link
JP (1) JP2019097141A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0537776A (en) * 1990-12-13 1993-02-12 Ricoh Co Ltd Picture processing unit
JP2006140818A (en) * 2004-11-12 2006-06-01 Noritsu Koki Co Ltd Method of eliminating image noise
JP2009126058A (en) * 2007-11-22 2009-06-11 Olympus Corp Image recording device and poor recording detecting method
JP2010245594A (en) * 2009-04-01 2010-10-28 Seiko Epson Corp Image processing apparatus, image processing method and image processing program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0537776A (en) * 1990-12-13 1993-02-12 Ricoh Co Ltd Picture processing unit
JP2006140818A (en) * 2004-11-12 2006-06-01 Noritsu Koki Co Ltd Method of eliminating image noise
JP2009126058A (en) * 2007-11-22 2009-06-11 Olympus Corp Image recording device and poor recording detecting method
JP2010245594A (en) * 2009-04-01 2010-10-28 Seiko Epson Corp Image processing apparatus, image processing method and image processing program

Similar Documents

Publication Publication Date Title
JP4878572B2 (en) Image processing apparatus and image processing method
JP6031286B2 (en) Image processing apparatus and image processing method
JP2008011267A (en) Image processor, image processing method, image processing program, and memory medium
JP4498233B2 (en) Image processing apparatus and image processing method
US11233921B2 (en) Image processing apparatus that specifies edge pixel in target image using single-component image data
KR102072887B1 (en) Image processing apparatus, image processing method, and storage medium
JP4402090B2 (en) Image forming apparatus, image forming method, program, and recording medium
JP7447193B2 (en) Image processing device and image processing method
US10529058B2 (en) Image processing apparatus that smooths image using classification result of pixels included therein
US9147140B2 (en) Image processing apparatus, method, and product for converting image data into fewer gradations based on total value of pixels in a group except for a detected pixel having a specific value
CN110099192B (en) Image forming apparatus, control method thereof, and storage medium storing control program thereof
US9989875B2 (en) Image processing apparatus, image processing method, and storage medium
US10339636B2 (en) Image processing apparatus that specifies edge pixel in target image by calculating edge strength
JP6806574B2 (en) Image processing device and image processing method
US9077914B2 (en) Image processing apparatus and control method thereof printing image data having M tones under infrared light
JP2019097141A (en) Printing control device, and, computer program
JP6171727B2 (en) Image processing device, sheet, computer program
US10389909B2 (en) Image processing apparatus that specifies edge pixel in target image using minimum and maximum component values of pixel value in target image data
JP6724683B2 (en) Image processing device and computer program
JP6772717B2 (en) Image processing equipment and computer programs
US20210360125A1 (en) Image processing apparatus, control method thereof, and storage medium
US10375275B2 (en) Image processing apparatus specifying first and second pixels, and generating processed image data in which the first and second pixels have first and second colors respectively
JP6418055B2 (en) Image processing apparatus and computer program
JP2017209961A (en) Image processing device, and computer program
JP2019114845A (en) Printer controller and computer program

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20171228

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

A601 Written request for extension of time

Free format text: JAPANESE INTERMEDIATE CODE: A601

Effective date: 20211105

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20220316