Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP6500638B2 - Image processing apparatus and computer program - Google Patents
[go: Go Back, main page]

JP6500638B2 - Image processing apparatus and computer program - Google Patents

Image processing apparatus and computer program Download PDF

Info

Publication number
JP6500638B2
JP6500638B2 JP2015128740A JP2015128740A JP6500638B2 JP 6500638 B2 JP6500638 B2 JP 6500638B2 JP 2015128740 A JP2015128740 A JP 2015128740A JP 2015128740 A JP2015128740 A JP 2015128740A JP 6500638 B2 JP6500638 B2 JP 6500638B2
Authority
JP
Japan
Prior art keywords
value
pixel
range
pixels
values
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.)
Active
Application number
JP2015128740A
Other languages
Japanese (ja)
Other versions
JP2017017374A (en
Inventor
竜司 山田
竜司 山田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2015128740A priority Critical patent/JP6500638B2/en
Publication of JP2017017374A publication Critical patent/JP2017017374A/en
Application granted granted Critical
Publication of JP6500638B2 publication Critical patent/JP6500638B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)

Description

本明細書は、画像データに対して、アンシャープマスク処理を実行する画像処理に関する。   The present specification relates to image processing for performing unsharp mask processing on image data.

従来から、印刷される画像の画質を向上するための画像処理として、画像を鮮鋭化するアンシャープマスク処理が行われている。アンシャープマスク処理は、画像の鮮鋭度を高めることで、例えば、写真などを含む画像の画質を向上することができる。例えば、特許文献1では、写真などの自然画であると判断される画像に対するエッジ強調処理として、アンシャープマスク処理を用いることが開示されている。   2. Description of the Related Art Conventionally, unsharp mask processing for sharpening an image has been performed as image processing for improving the quality of an image to be printed. The unsharp mask processing can improve the image quality of an image including, for example, a photograph and the like by enhancing the sharpness of the image. For example, Patent Document 1 discloses that unsharp mask processing is used as edge enhancement processing on an image determined to be a natural image such as a photograph.

特開平10−200778号公報Japanese Patent Application Laid-Open No. 10-200778

しかしながら、アンシャープマスク処理では、注目画素の周辺領域内の画素の値を用いてマスクデータを生成する必要があるために、処理時間が長くなりがちである。上記技術では、処理時間の低減について十分な工夫がされていないので、アンシャープマスク処理のマスクデータを生成する処理時間が過度に長くなる可能性があった。   However, in the unsharp mask processing, processing time tends to be long because it is necessary to generate mask data using the values of pixels in the peripheral region of the target pixel. In the above-mentioned technology, since the device for reducing the processing time is not sufficiently devised, the processing time for generating mask data of the unsharp mask processing may be excessively long.

本明細書は、アンシャープマスク処理のマスクデータを生成する処理時間を低減できる新たな技術を開示する。   The present specification discloses a new technique that can reduce processing time for generating mask data of unsharp mask processing.

本明細書に開示された技術は、以下の適用例として実現することが可能である。   The technology disclosed in the present specification can be implemented as the following application example.

[適用例1]元画像を表す元画像データを取得する取得部と、前記元画像に含まれる複数個の画素のそれぞれについて、その画素を含む周辺範囲内の(M×N)個(M、Nは、2以上の整数)の画素の値の平均値を、その画素に対応するマスクデータとして算出するマスク生成部であって、前記周辺範囲は、第1方向の画素数がM個であり、前記第1方向と交差する第2方向の画素数がN個である矩形の範囲である、前記マスク生成部と、前記元画像に含まれる複数個の画素のそれぞれに対して、対応する前記マスクデータを用いてアンシャープマスク処理を実行することによって、処理済画像データを生成するアンシャープマスク処理部と、を備え、前記マスク生成部は、第1画素の前記周辺範囲である第1範囲内の(M×N)個の画素の値の合計である第1値を用いて、前記第1画素に対応する第1のマスクデータを算出し、前記第1範囲内の(M×N)個の画素のうち、前記第1方向の反対方向の端に位置し、前記第2方向に沿って並ぶN個の画素の値の合計である第2値を算出し、前記第1範囲に対して前記第1方向に隣接し、前記第2方向に沿って並ぶN個の画素の値の合計である第3値を算出し、前記第1値に対して、前記第2値を減算し、前記第3値を加算することによって、前記第1画素の前記第1方向に隣接する第2画素の前記周辺範囲である第2範囲内の(M×N)個の画素の値の合計である第4値を算出し、前記第4値を用いて、前記第2画素に対応する第2のマスクデータを算出する、画像処理装置。 [Example 1 of application] (M × N) (M, N) in the peripheral range including the pixel for each of a plurality of pixels included in the acquisition unit for acquiring the original image data representing the original image and the plurality of pixels included in the original image N is a mask generation unit that calculates an average value of pixel values of 2 or more) as mask data corresponding to the pixel, and the peripheral range has M pixels in the first direction The mask generation unit and the plurality of pixels included in the original image, each of which is a rectangular range in which the number of pixels in the second direction intersecting the first direction is N. And an unsharp mask processing unit configured to generate processed image data by executing unsharp mask processing using mask data, wherein the mask generation unit is configured to generate a first range which is the peripheral range of the first pixel. Values of (M × N) pixels in First mask data corresponding to the first pixel is calculated using a first value which is the sum of the first and second values, and the (M.times.N) pixels in the first range are opposite to the first direction. A second value, which is located at the end of the direction and is the sum of the values of N pixels aligned along the second direction, and is adjacent to the first range in the first direction; The third value is calculated as a sum of the values of N pixels lined up in a direction, the second value is subtracted from the first value, and the third value is added to the third value. A fourth value which is a sum of values of (M × N) pixels in a second range which is the peripheral range of the second pixel adjacent to the first direction of one pixel is calculated, and the fourth value is calculated. An image processing apparatus that calculates second mask data corresponding to the second pixel using the second image data.

上記構成によれば、第1値に対して、第2値を減算し、第3値を加算することによって、第4値が算出される。この結果、第2範囲内の(M×N)個の画素の値を1個ずつ加算することによって第4値を算出するよりも算出時間を低減できる。したがって、アンシャープマスク処理のマスクデータを生成する処理時間を低減することができる。
[適用例2]
適用例1に記載の画像処理装置であって、
前記マスク生成部は、
前記第1範囲内の(M×N)個の画素のうち、前記第2方向の反対方向の端に位置し、前記第1方向に沿って並ぶM個の画素の値の合計である第5値を算出し、
前記第1範囲に対して前記第2方向に隣接し、前記第1方向に沿って並ぶM個の画素の値の合計である第6値を算出し、
前記第1値に対して、前記第5値を減算し、前記第6値を加算することによって、前記第1画素の前記第2方向に隣接する第3画素の前記周辺範囲である第3範囲内の(M×N)個の画素の値の合計である第7値を算出し、
前記第7値を用いて、前記第3画素に対応する第3のマスクデータを算出する、画像処理装置。
[適用例3]
適用例1または適用例2に記載の画像処理装置であって、
Mは、3以上の整数であり、Nは、3以上の整数である、画像処理装置。
[適用例4]
適用例1から適用例3のいずれかに記載の画像処理装置であって、
前記マスク生成部は、
前記第1画素と前記第2画素とを含む前記第1方向に沿って並ぶL個(Lは、M以上の整数)の画素を1個ずつ含むL個の画素群であって、L個の画素の前記周辺範囲のいずれかに含まれる前記第2方向に沿って並ぶN個の画素をそれぞれ含む、前記L個の画素群のそれぞれについて、各画素群に含まれるN個の画素の合計値を算出し、
前記L個の画素群のL個の合計値を用いた加算処理と減算処理とによって、前記L個の画素に対応するL個のマスクデータを算出する、画像処理装置。
[適用例5]
適用例1から適用例3のいずれかに記載の画像処理装置であって、
前記マスク生成部は、
前記第1値を用いて、前記第1のマスクデータを算出した後に、前記第1値をメモリから消去し、
前記第1値を消去した後に、前記第4値を算出する際に、前記第1のマスクデータを(M×N)倍することによって、前記第1値を算出する、画像処理装置。
[適用例6]
適用例1から適用例5のいずれかに記載の画像処理装置であって、
前記アンシャープマスク処理部は、前記元画像内の複数個の画素のうち、前記周辺範囲内の複数個の画素の最大輝度値と最小輝度値との差分が特定範囲内である画素について、画素の値を変更しない、画像処理装置。
[適用例7]
適用例6に記載の画像処理装置であって、
前記マスク生成部は、
前記元画像に含まれる複数個の画素のそれぞれについて、前記マスクデータを算出する際に、前記マスクデータに対応する画素について、前記差分が前記特定範囲内であるか否かを判断し、
前記差分が前記特定範囲内でない画素に対応する前記マスクデータを、その画素の前記周辺範囲内の画素の値の平均値に決定し、
前記差分が前記特定範囲内である画素に対応する前記マスクデータを、その画素の値に決定する、画像処理装置。
[適用例8]
適用例6または適用例7に記載の画像処理装置であって、
前記マスク生成部は、
前記第1範囲内のM個の画素群であって、前記第2方向に沿って並ぶN個の画素をそれぞれ含む前記M個の画素群のそれぞれについて特定済のM個の最大輝度値とM個の最小輝度値とを用いて、前記第1範囲内の最大輝度値および最小輝度値とを特定し、
特定される前記第1範囲内の最大輝度値および最小輝度値を用いて、前記第1画素について、前記差分が前記特定範囲内であるか否かを判断し、
前記第1範囲に対して前記第1方向に隣接し、前記第2方向に沿って並ぶN個の画素を含む一の画素群の最大輝度値と最小輝度値とを特定し、
前記特定済のM個の最大輝度値とM個の最小輝度値のうち、前記第1範囲内の前記第1方向の反対方向の端に位置する1個の画素群の値を除く(M−1)個の最大輝度値と(M−1)個の最小輝度値と、前記第1範囲に対して前記第1方向に隣接する前記一の画素群について特定された最大輝度値と最小輝度値と、を用いて、前記第2範囲内の最大輝度値および最小輝度値とを特定し、
特定される前記第2範囲内の最大輝度値および最小輝度値を用いて、前記第2画素について、前記差分が前記特定範囲内であるか否かを判断する、画像処理装置。
[適用例9]
適用例8に記載の画像処理装置であって、
前記差分の前記特定範囲は、前記差分が第1の基準より小さい範囲と、前記差分が第2の基準より大きい範囲と、の少なくとも一方の範囲である、画像処理装置。


According to the above configuration, the fourth value is calculated by subtracting the second value from the first value and adding the third value. As a result, by adding the values of (M × N) pixels in the second range one by one, it is possible to reduce the calculation time compared to calculating the fourth value. Therefore, processing time for generating mask data of unsharp mask processing can be reduced.
Application Example 2
The image processing apparatus according to Application Example 1 is,
The mask generation unit
A fifth one of the (M × N) pixels in the first range is a sum of values of M pixels located at an end in the opposite direction of the second direction and aligned along the first direction. Calculate the value,
A sixth value is calculated, which is a sum of values of M pixels adjacent to the first range in the second direction and aligned along the first direction,
A third range which is the peripheral range of the third pixel adjacent to the second direction of the first pixel by subtracting the fifth value from the first value and adding the sixth value. Calculate a seventh value which is the sum of the values of (M × N) pixels within
The image processing device which calculates the 3rd mask data corresponding to the 3rd pixel using the 7th value.
Application Example 3
The image processing apparatus according to Application Example 1 or Application Example 2, wherein
An image processing apparatus, wherein M is an integer of 3 or more and N is an integer of 3 or more.
Application Example 4
The image processing apparatus according to any one of application examples 1 to 3;
The mask generation unit
L pixel groups each including L (where L is an integer of M or more) pixels aligned in the first direction including the first pixel and the second pixel, wherein L pixels are included; A total value of N pixels included in each pixel group for each of the L pixel groups including N pixels aligned in the second direction included in any of the peripheral range of pixels Calculate
The image processing apparatus calculates L mask data corresponding to the L pixels by addition processing and subtraction processing using L total values of the L pixel groups.
Application Example 5
The image processing apparatus according to any one of application examples 1 to 3;
The mask generation unit
After calculating the first mask data using the first value, the first value is erased from the memory,
The image processing apparatus, wherein the first value is calculated by multiplying the first mask data by (M × N) when calculating the fourth value after erasing the first value.
Application Example 6
The image processing apparatus according to any one of application examples 1 to 5, wherein
The unsharp mask processing unit is configured to determine whether the difference between the maximum luminance value and the minimum luminance value of the plurality of pixels in the peripheral range is within a specific range among the plurality of pixels in the original image. Image processing device that does not change the value of.
Application Example 7
The image processing apparatus according to Application Example 6, which is
The mask generation unit
When calculating the mask data for each of a plurality of pixels included in the original image, it is determined whether the difference is within the specific range for the pixel corresponding to the mask data,
The mask data corresponding to a pixel whose difference is not within the specific range is determined as an average value of pixel values within the peripheral range of the pixel,
The image processing apparatus, wherein the mask data corresponding to a pixel whose difference is within the specific range is determined as a value of the pixel.
Application Example 8
The image processing apparatus according to Application Example 6 or Application Example 7;
The mask generation unit
M maximum luminance values and M specified for each of the M pixel groups including the N pixels aligned in the second direction, which are M pixel groups in the first range Identifying the maximum brightness value and the minimum brightness value within the first range using the minimum brightness values
Using the maximum luminance value and the minimum luminance value within the specified first range, it is determined whether or not the difference is within the specific range for the first pixel,
Identifying a maximum luminance value and a minimum luminance value of one pixel group including N pixels adjacent to the first range in the first direction and arranged along the second direction;
Of the M maximum luminance values and the M minimum luminance values that have been identified, the value of one pixel group located at the opposite end of the first direction within the first range is excluded (M− 1) Maximum luminance values and minimum luminance values specified for one pixel group adjacent to the first range in the first direction with respect to the maximum luminance values and the (M-1) minimum luminance values And identifying the maximum luminance value and the minimum luminance value within the second range,
An image processing apparatus that determines whether the difference is within the specific range for the second pixel, using a maximum luminance value and a minimum luminance value within the specified second range.
Application Example 9
The image processing apparatus according to Application Example 8 is,
The image processing apparatus, wherein the specified range of the difference is at least one of a range in which the difference is smaller than a first reference and a range in which the difference is larger than a second reference.


なお、本明細書に開示された技術は、種々の形態で実現可能であり、例えば、印刷装置、印刷装置の制御装置、画像処理方法、これらの装置および方法の機能を実現するためのコンピュータプログラム、そのコンピュータプログラムを記録した記録媒体、等の形態で実現することができる。   The technology disclosed in the present specification can be realized in various forms, for example, a printing apparatus, a control apparatus for the printing apparatus, an image processing method, and a computer program for realizing functions of these apparatuses and methods. The present invention can be realized in the form of a recording medium recording the computer program, and the like.

計算機200と複合機100の構成を示すブロック図である。FIG. 2 is a block diagram showing the configuration of a computer 200 and a multifunction peripheral 100. 印刷処理のフローチャートである。5 is a flowchart of print processing. 元画像データによって表される元画像OIの一例を示す図である。It is a figure which shows an example of the original image OI represented by original image data. 第1実施例のマスクデータ生成処理のフローチャートである。It is a flow chart of mask data generation processing of the 1st example. 元画像OIの左上の頂点近傍の拡大図である。It is an enlarged view of the upper left vertex vicinity of the original image OI. 画素P(0、b)の近傍の拡大図である。It is an enlarged view of the vicinity of pixel P (0, b). 鮮鋭化処理のフローチャートである。It is a flowchart of sharpening processing. 第2実施例のマスクデータ生成処理のフローチャートである。It is a flow chart of mask data generation processing of the 2nd example. 元画像OI内の文字TXを含むオブジェクトOb2の一部分を示す図である。It is a figure showing a part of object Ob2 containing character TX in original picture OI.

A.第1実施例:
A−1:画像処理装置の構成
次に、実施の形態を実施例に基づき説明する。図1は、実施例における画像処理装置としての計算機200と、複合機100の構成を示すブロック図である。
A. First embodiment:
A-1: Configuration of Image Processing Apparatus Next, an embodiment will be described based on an example. FIG. 1 is a block diagram showing the configuration of a computer 200 as an image processing apparatus and a multifunction peripheral 100 in the embodiment.

計算機200は、例えば、パーソナルコンピュータであり、計算機200のコントローラとしてのプロセッサであるCPU210と、ハードディスクドライブなどの不揮発性記憶装置220と、RAMなどの揮発性記憶装置230と、マウスやキーボードなどの操作部260と、液晶ディスプレイなどの表示部270と、通信部280と、を備えている。計算機200は、通信部280を介して、複合機100などの外部装置と通信可能に接続される。   The computer 200 is, for example, a personal computer and is a processor as a controller of the computer 200, a non-volatile storage device 220 such as a hard disk drive, a volatile storage device 230 such as a RAM, and operations such as a mouse and a keyboard. And a display unit 270 such as a liquid crystal display, and a communication unit 280. The computer 200 is communicably connected to an external device such as the MFP 100 via the communication unit 280.

揮発性記憶装置230は、CPU210が処理を行う際に生成される種々の中間データを一時的に格納するバッファ領域231を提供する。不揮発性記憶装置220には、コンピュータプログラムCPが格納されている。コンピュータプログラムCPは、本実施例では、複合機100の後述するプリンタ部130を制御するためのプリンタドライバプログラムであり、サーバからダウンロードされる形態で提供される。これに代えて、コンピュータプログラムCPは、DVD−ROMなどに格納される形態で提供されてもよい。CPU210は、コンピュータプログラムCPを実行することにより、後述する印刷処理を実行する。   The volatile storage device 230 provides a buffer area 231 for temporarily storing various intermediate data generated when the CPU 210 performs processing. The non-volatile storage device 220 stores a computer program CP. In the present embodiment, the computer program CP is a printer driver program for controlling a printer unit 130, which will be described later, of the MFP 100, and is provided in the form of being downloaded from a server. Alternatively, the computer program CP may be provided in the form of being stored on a DVD-ROM or the like. The CPU 210 executes a printing process described later by executing the computer program CP.

複合機100は、イメージセンサを用いて原稿を光学的に読み取ることによってスキャンデータを生成するスキャナ部120と、所定の方式(例えば、インクジェット、レーザー)によって用紙などの印刷媒体に画像を印刷するプリンタ部130と、スキャナ部120やプリンタ部130を制御するCPUとメモリとを含む制御部110と、を備えている。   The multifunction peripheral 100 generates a scan data by optically reading a document using an image sensor, and a printer that prints an image on a printing medium such as paper by a predetermined method (for example, ink jet, laser). The control unit 110 includes a unit 130, a CPU that controls the scanner unit 120 and the printer unit 130, and a memory.

A−2:印刷処理
図2は、印刷処理のフローチャートである。この印刷処理は、例えば、計算機200において、コンピュータプログラムCPが実行されて、プリンタドライバが起動されているときに、ユーザの開始指示に基づいて開始される。
A-2: Printing Process FIG. 2 is a flowchart of the printing process. The printing process is started based on the user's start instruction when, for example, the computer program CP is executed in the computer 200 and the printer driver is activated.

S10、S20では、CPU210は、元画像データを取得する。先ず、S10では、印刷すべき画像を表す画像データを取得する。この画像データは、例えば、不揮発性記憶装置220に格納された複数個の画像データの中から、ユーザの指定に基づいて選択された1個の画像データである。S20では、CPU210は、取得された画像データに対してラスタライズ処理を実行して、元画像データを生成する。元画像データは、複数個の画素を含むビットマップデータであり、具体的には、RGB値によって画素ごとの色を表すRGB画像データである。RGB値は、3個の色成分の階調値(以下、成分値とも呼ぶ)、すなわち、R値、G値、B値を含むRGB表色系の色値である。R値、G値、B値は、例えば、256階調の階調値である。   In S10 and S20, the CPU 210 acquires original image data. First, in S10, image data representing an image to be printed is acquired. The image data is, for example, one piece of image data selected from among a plurality of image data stored in the non-volatile storage device 220 based on user's designation. In S20, the CPU 210 executes rasterization processing on the acquired image data to generate original image data. The original image data is bitmap data including a plurality of pixels, and more specifically, is RGB image data representing a color for each pixel by RGB values. The RGB values are tone values of three color components (hereinafter also referred to as component values), that is, color values of an RGB color system including R value, G value, and B value. The R value, the G value, and the B value are, for example, gradation values of 256 gradations.

図3は、元画像データによって表される元画像OIの一例を示す図である。図3の元画像OIは、3個のオブジェクトOb1〜Ob3と、背景BGと、を含んでいる。オブジェクトOb1は、人物HNを含む写真を表している。オブジェクトOb2は、文字TXを含む表を表している。オブジェクトOb3は、描画、具体的には、円グラフを表している。   FIG. 3 is a diagram showing an example of the original image OI represented by the original image data. The original image OI in FIG. 3 includes three objects Ob1 to Ob3 and a background BG. An object Ob1 represents a picture including a person HN. The object Ob2 represents a table including the character TX. The object Ob3 represents a drawing, specifically, a pie chart.

S30では、CPU210は、S40のアンシャープマスク処理で用いるマスクデータを生成するマスクデータ生成処理を実行する。マスクデータ生成処理では、元画像OIに含まれる複数個の画素のそれぞれについて、対応するマスクデータが生成される。マスクデータは、元画像OI内の対応する画素の後述する周辺範囲CA内の(M×N)個(M、Nは、2以上の整数)の画素の値の平均値である。マスクデータ生成処理の詳細は、後述する。   In S30, the CPU 210 executes mask data generation processing for generating mask data used in the unsharp mask processing in S40. In the mask data generation process, corresponding mask data is generated for each of the plurality of pixels included in the original image OI. The mask data is an average value of values of (M × N) (M and N are integers of 2 or more) pixels in a peripheral range CA described later of the corresponding pixel in the original image OI. Details of the mask data generation process will be described later.

S40では、CPU210は、鮮鋭化処理を実行する。鮮鋭化処理は、元画像OIに含まれる複数個の画素のそれぞれに対して、対応するマスクデータを用いてアンシャープマスク処理を実行することによって、処理済画像データを生成する処理である。処理済画像データによって表される処理済画像は、元画像OIと比較して鮮鋭度が高くなり、特に元画像OI内の写真を示すオブジェクトOb1の画質が向上する。処理済画像データは、元画像データと同様にRGB画像データである。鮮鋭化処理の詳細は、後述する。   At S40, the CPU 210 executes a sharpening process. The sharpening process is a process of generating processed image data by performing an unsharp mask process on each of a plurality of pixels included in the original image OI using corresponding mask data. The processed image represented by the processed image data has high sharpness compared to the original image OI, and in particular, the image quality of the object Ob1 indicating a picture in the original image OI is improved. The processed image data is RGB image data in the same manner as the original image data. Details of the sharpening process will be described later.

S50では、CPU210は、処理済画像データに対して色変換処理を実行する。これによって、処理済画像データの各画素のRGB値は、印刷用の複数個の色材に対応する複数個の成分値を含む色値に変換される。本実施例では、RGB値は、C(シアン)、M(マゼンタ)、Y(イエロ)、K(ブラック)の4個の成分値を含むCMYK値に変換される。色変換処理は、不揮発性記憶装置220に予め格納された色変換プロファイル(図示省略)を参照して実行される。色変換プロファイルは、RGB値とCMYK値との対応関係を規定する情報であり、具体的には、ルックアップテーブルである。   At S50, the CPU 210 executes color conversion processing on the processed image data. Thus, the RGB values of each pixel of the processed image data are converted into color values including a plurality of component values corresponding to a plurality of printing 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 220. The color conversion profile is information defining the correspondence between RGB values and CMYK values, and more specifically, is a look-up table.

S60では、CPU210は、色変換処理後の処理済画像データに対してハーフトーン処理を実行して、ドットの形成状態を画素ごと、かつ、色材ごとに表すドットデータを生成する。ドットデータに含まれる各画素の値は、例えば、「大ドット」、「中ドット」、「小ドット」、「ドット無し」の4つのドットの形成状態のいずれかを示す。これに代えて、ドットデータに含まれる各画素の値は、「ドット有り」、「ドット無し」の2つのドットの形成状態のいずれかを示しても良い。   In S60, the CPU 210 executes halftone processing on the processed image data after the color conversion processing, and generates dot data representing the dot formation state for each pixel and for each color material. The value of each pixel included in the dot data indicates, for example, any of the formation states of four dots of “large dot”, “medium dot”, “small dot”, and “no dot”. Instead of this, the value of each pixel included in the dot data may indicate either of the formation state of two dots of “dot present” and “dot absent”.

S70では、CPU210は、ドットデータを用いて印刷ジョブを生成する。例えば、CPU210は、ドットデータを、プリンタ部130を用いて印刷を行う際に用いられる順番に並べ替える処理と、ドットデータにプリンタ制御コードやデータ識別コードを付加する処理と、を実行する。この結果、複合機100によって解釈可能な印刷ジョブが生成される。S80では、CPU210は、生成された印刷ジョブを、複合機100に出力する。複合機100のプリンタ部130は、計算機200から出力された印刷ジョブに基づいて画像を印刷する。   In S70, the CPU 210 generates a print job using dot data. For example, the CPU 210 executes a process of rearranging dot data in the order used when printing is performed using the printer unit 130, 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 multifunction peripheral 100 is generated. In S80, the CPU 210 outputs the generated print job to the multifunction peripheral 100. The printer unit 130 of the multifunction machine 100 prints an image based on the print job output from the computer 200.

A−3:マスクデータ生成処理
図2のS30のマスクデータ生成処理について説明する。マスクデータ生成処理は、上述したように、元画像OI内の複数個の画素のそれぞれについて、その画素の周辺範囲CA内の複数個の画素の値を用いてマスクデータを生成する処理である。
A-3: Mask Data Generation Process The mask data generation process of S30 of FIG. 2 will be described. As described above, the mask data generation process is a process of generating mask data for each of the plurality of pixels in the original image OI using the values of the plurality of pixels in the peripheral range CA of the pixel.

図5は、元画像OIの左上の頂点近傍の拡大図である。図5の格子状に並ぶ複数個の矩形のそれぞれは、元画像OI内の画素を示す。図5に示すように、元画像OIの左側から右に向かう方向を+X方向と呼び、+X方向の反対方向を−X方向と呼ぶ。また、元画像OIの上側から下に向かう方向を+Y方向と呼び、+Y方向の反対方向を−Y方向と呼ぶ。元画像OIの−X方向の端(図5の左端)から+X方向に向かって、各画素にX座標を付す。また、−Y方向の端(図5の上端)から+Y方向に向かって、各画素にY座標を付す。X座標が「a」であり、Y座標が「b」である画素を、P(a、b)と表す(a、bは、0以上の整数)。例えば、元画像OIの左上の頂点の画素は、P(0、0)と表される。同様に、元画像OIの複数個の画素から設定される1個の画素である注目画素を、該注目画素の座標(a、b)を用いて、注目画素TP(a、b)と表す。   FIG. 5 is an enlarged view of the vicinity of the top left corner of the original image OI. Each of the plurality of rectangles arranged in a grid in FIG. 5 indicates a pixel in the original image OI. As shown in FIG. 5, the direction from the left to the right of the original image OI is called the + X direction, and the opposite direction to the + X direction is called the −X direction. Further, the direction from the upper side to the lower side of the original image OI is referred to as the + Y direction, and the opposite direction to the + Y direction is referred to as the −Y direction. From the end of the original image OI in the −X direction (left end in FIG. 5) to the + X direction, an X coordinate is attached to each pixel. In addition, a Y coordinate is added to each pixel in the + Y direction from the end in the −Y direction (upper end in FIG. 5). A pixel whose X coordinate is “a” and whose Y coordinate is “b” is represented as P (a, b) (a and b are integers of 0 or more). For example, the pixel at the top left vertex of the original image OI is represented as P (0, 0). Similarly, a target pixel which is one pixel set from a plurality of pixels of the original image OI is represented as a target pixel TP (a, b) using the coordinates (a, b) of the target pixel.

ここで、画素P(a、b)の周辺範囲CA(a、b)について説明する。図5に示すように、1個の画素P(a、b)の周辺範囲CA(a、b)は、画素P(a、b)を含む予め定められたサイズの範囲である。具体的には、画素P(a、b)の周辺範囲CA(a、b)は、画素P(a、b)を中心とする(11×11)個、すなわち、121個の画素を含む矩形の範囲である。本実施例の周辺範囲CAの+X方向の画素数は、11個であり、周辺範囲CAのY方向の画素数は、11個である。画素P(a、b)の周辺範囲CA(a、b)内の121個の画素の値の合計値を、画素P(a、b)の周辺合計値TM(a、b)と呼ぶ。   Here, the peripheral range CA (a, b) of the pixel P (a, b) will be described. As shown in FIG. 5, the peripheral range CA (a, b) of one pixel P (a, b) is a range of a predetermined size including the pixel P (a, b). Specifically, the peripheral range CA (a, b) of the pixel P (a, b) is a rectangle including (11 × 11), ie, 121 pixels centered on the pixel P (a, b) Range. The number of pixels in the + X direction of the peripheral range CA in the present embodiment is 11, and the number of pixels in the Y direction of the peripheral range CA is 11. The total value of the values of 121 pixels in the peripheral range CA (a, b) of the pixel P (a, b) is referred to as the peripheral total value TM (a, b) of the pixel P (a, b).

図5に示すように、周辺範囲CA(a、b)は、X座標が(a−5)〜(a+5)である11個の列C(a−5)〜C(a+5)を含んでいる。11個の列C(a−5)〜C(a+5)のそれぞれは、+Y方向に沿って並ぶ11個の画素を含んでいる。11個の列C(a−5)〜C(a+5)のそれぞれに含まれる11個の画素の値の合計値をTV(a−5)〜TV(a+5)とする。   As shown in FIG. 5, the peripheral range CA (a, b) includes 11 columns C (a-5) to C (a + 5) whose X coordinates are (a-5) to (a + 5). . Each of the eleven columns C (a-5) to C (a + 5) includes eleven pixels arranged along the + Y direction. The total value of the values of the eleven pixels included in each of the eleven columns C (a-5) to C (a + 5) is TV (a-5) to TV (a + 5).

図4は、第1実施例のマスクデータ生成処理のフローチャートである。このフローチャートは、RGB値の1個の成分値についてのマスクデータ生成処理を示している。実際には、マスクデータ生成処理が、RBG値の各成分について実行されることで、RGBの各成分のマスクデータMDr、MDg、MDbが、画素ごとに生成される。以下では、画素のRGB値のうち、処理対象の成分値を、単に、画素の値とも呼ぶ。また、処理対象の成分のマスクデータを、単に、マスクデータMDとも呼ぶ。   FIG. 4 is a flowchart of mask data generation processing according to the first embodiment. This flowchart shows mask data generation processing for one component value of RGB values. In practice, mask data generation processing is executed for each component of the RBG value to generate mask data MDr, MDg, and MDb of each component of RGB for each pixel. Hereinafter, among the RGB values of the pixel, the component value to be processed is also simply referred to as the pixel value. The mask data of the component to be processed is also simply referred to as mask data MD.

S105では、CPU210は、注目画素TP(a、b)を、元画像OIの左上の画素P(0、0)に設定する。   In S105, the CPU 210 sets the pixel of interest TP (a, b) to the pixel P (0, 0) at the upper left of the original image OI.

S110では、CPU210は、注目画素TP(0、0)の周辺範囲CA(0、0)内の11個の列C(−5)〜C(+5)について、各列の合計値TV(−5)〜TV(+5)を算出する。ここで、注目画素TP(0、0)は、元画像OIの左上の画素であるので、周辺範囲CA(0、0)のうち、注目画素TP(0、0)より−X方向(図5の左側)、および、注目画素TP(0、0)より−Y方向(図5の上側)には、画素が存在しない。このように、周辺範囲CA内に、画素が存在しない領域が含まれる場合には、当該領域内には、特定値を有する画素が存在すると仮定して、処理が進められる。本ステップの各列の合計値TV(−5)〜TV(+5)の算出も、この仮定の元で実行される。本実施例では、特定値として、「255」が、用いられる。すなわち、元画像OIの周囲には、白色の画素があると仮定して、マスクデータ生成処理が行われている。これに代えて、特定値には、元画像OIの背景を示す値、例えば、元画像OIの外縁に沿う複数個の画素の平均値が用いられても良い。   In S110, the CPU 210 adds the total value TV (-5) of each column for the eleven columns C (-5) to C (+5) in the peripheral range CA (0, 0) of the pixel of interest TP (0, 0). ) To calculate TV (+5). Here, since the pixel of interest TP (0, 0) is the upper left pixel of the original image OI, in the peripheral range CA (0, 0), the pixel of interest TP (0, 0) is in the −X direction from FIG. There is no pixel in the -Y direction (upper side in FIG. 5) of the pixel on the left side of FIG. As described above, when an area where no pixel is present is included in the peripheral range CA, the process proceeds on the assumption that there is a pixel having a specific value in the area. The calculation of the sum values TV (-5) to TV (+5) of each column of this step is also performed under this assumption. In the present embodiment, "255" is used as the specific value. That is, assuming that there is a white pixel around the original image OI, mask data generation processing is performed. Alternatively, a value indicating the background of the original image OI, for example, an average value of a plurality of pixels along the outer edge of the original image OI may be used as the specific value.

S115では、CPU210は、各列の合計値TV(−5)〜TV(+5)を加算することによって、注目画素TP(0、0)の周辺合計値TM(0、0)を算出する。各列の合計値TV(−5)〜TV(+5)は、周辺合計値TM(0、0)が算出された後も、バッファ領域231から消去されることなく、保持される。これらの10個の値は、後述するS135でバッファ領域231から取得されて、後述するS145での2個目以降の注目画素TP(a、b)の周辺合計値TM(a、b)の算出に用いられるからである。   In S115, the CPU 210 calculates the peripheral total value TM (0, 0) of the pixel of interest TP (0, 0) by adding the total values TV (-5) to TV (+5) of each column. The total values TV (-5) to TV (+5) of the respective columns are held without being erased from the buffer area 231 even after the peripheral total value TM (0, 0) is calculated. These ten values are acquired from the buffer area 231 in S135 described later, and calculation of the peripheral total value TM (a, b) of the second and subsequent target pixels TP (a, b) in S145 described later Because it is used for

以下のS120〜S145の処理は、注目画素TPを変更しながら、繰り返し実行されるので、注目画素TP(a、b)についての処理として、一般的に説明する。初回のS120〜S145の処理では、注目画素TP(a、b)は、画素P(0、0)である。   The processes of S120 to S145 described below are repeatedly executed while changing the pixel of interest TP, and therefore, the process for the pixel of interest TP (a, b) will be generally described. In the initial processing of S120 to S145, the target pixel TP (a, b) is the pixel P (0, 0).

S120では、周辺合計値TM(a、b)を用いて、注目画素TP(a、b)のマスクデータMD(a、b)を算出する。具体的には、CPU210は、周辺合計値TM(a、b)を、周辺範囲内(a、b)に含まれる画素の個数PN(本実施例では、121)で除することによって、マスクデータMD(a、b)を算出する(MD(a、b)=TM(a、b)/PN)。初回のS120で用いられる周辺合計値TM(a、b)、すなわち、周辺合計値TM(0、0)は、S115で算出される値である。2回目以降のS120で用いられる周辺合計値TM(a、b)は、後述するS145、あるいは、S175にて算出される値である。なお、マスクデータMD(a、b)の算出に用いられた周辺合計値TM(a、b)は、後述のS145にて、次の注目画素TP(a+1、b)の周辺合計値TM(a+1、b)の算出に用いられるので、バッファ領域231に保持される。   In S120, the mask data MD (a, b) of the pixel of interest TP (a, b) is calculated using the peripheral total value TM (a, b). Specifically, the CPU 210 divides the peripheral sum value TM (a, b) by the number PN of pixels included in the peripheral range (a, b) (121 in the present embodiment) to obtain mask data. Calculate MD (a, b) (MD (a, b) = TM (a, b) / PN). The surrounding total value TM (a, b) used in the initial S120, that is, the surrounding total value TM (0, 0) is a value calculated in S115. The peripheral total value TM (a, b) used in the second and subsequent S120 is a value calculated in S145 or S175 described later. Note that the peripheral sum value TM (a, b) used for calculating the mask data MD (a, b) is the peripheral sum value TM (a + 1) of the next target pixel TP (a + 1, b) in S145 described later. And b) are stored in the buffer area 231.

S125では、CPU210は、注目画素TP(a、b)は、+X方向の最終画素、すなわち、処理中の+X方向に沿うライン(以下、単に、ラインとも呼ぶ)の+X方向の端に位置する画素であるか否かを判断する。注目画素TP(a、b)が、+X方向の最終画素でない場合には(S125:NO)、S130に処理が進められ、注目画素TP(a、b)が、+X方向の最終画素である場合には(S125:YES)、S150に処理が進められる。   In S125, the CPU 210 determines that the pixel of interest TP (a, b) is the final pixel in the + X direction, that is, a pixel located at the end of the line along the + X direction (hereinafter also simply referred to as line) in the process It is determined whether or not If the pixel of interest TP (a, b) is not the final pixel in the + X direction (S125: NO), the process proceeds to S130, and the pixel of interest TP (a, b) is the final pixel in the + X direction If not (S125: YES), the process proceeds to S150.

S130では、CPU210は、注目画素TP(a、b)を+X方向に1個分移動する。すなわち、注目画素TP(a、b)の+X方向に隣接する画素P(a+1、b)が新たな注目画素TP(a、b)に設定される(a=a+1)。   In S130, the CPU 210 moves the pixel of interest TP (a, b) by one in the + X direction. That is, the pixel P (a + 1, b) adjacent to the target pixel TP (a, b) in the + X direction is set as a new target pixel TP (a, b) (a = a + 1).

S135では、CPU210は、前回の注目画素TP(a−1、b)の周辺範囲CA(a−1、b)の−X方向の端に位置する列C(a−6)に含まれる11個の画素の値の合計値TV(a−6)を、取得する。以下では、周辺範囲CA内の1個の列に含まれる11個の画素の値の合計値を単に、「当該列の合計値」と表現する。列C(a−6)は、図5にてシングルハッチングされた部分である。この合計値TV(a−6)は、この時点までに処理済の注目画素TPの周辺合計値TMを算出するために算出されている。具体的には、この時点までに実行済のS140(後述)、または、上述のS115で算出されて、バッファ領域231に保持されている。例えば、現在の注目画素TP(a、b)が画素P(1、0)である場合には、取得される合計値TV(a−6)は、S115にて算出され合計値TV(−5)である。また、現在の注目画素TP(a、b)が画素P(30、0)である場合には、取得される合計値TV(a−6)は、注目画素(a、b)が画素P(19、0)であるときに、S140にて算出される合計値TV(24)である。   In S135, the CPU 210 selects 11 pieces from the column C (a-6) located at the end of the −X direction of the peripheral range CA (a−1, b) of the previous target pixel TP (a−1, b) The total value TV (a-6) of the values of the pixels of is acquired. Hereinafter, the total value of the values of the eleven pixels included in one column in the peripheral range CA will be simply expressed as “the total value of the corresponding column”. Column C (a-6) is a portion hatched in FIG. 5 by single hatching. The total value TV (a-6) is calculated to calculate the peripheral total value TM of the target pixel TP that has been processed up to this point. Specifically, it is calculated in S140 (described later) which has been executed up to this point or S115 described above, and is stored in the buffer area 231. For example, when the current target pixel TP (a, b) is the pixel P (1, 0), the obtained total value TV (a-6) is calculated in S115 and the total value TV (-5) ). When the current target pixel TP (a, b) is the pixel P (30, 0), the obtained total value TV (a-6) is the target pixel (a, b) being the pixel P (a, b). When it is 19, 0), it is the total value TV (24) calculated in S140.

なお、変形例としては、本ステップにて、CPU210は、列C(a−6)内の11個の画素の値を用いて合計値TV(a−6)を算出することによって、合計値TV(a−6)を取得しても良い。この場合には、計算量は、本実施例より増加するが、S115やS140で算出される合計値TVを、本ステップで取得されるまで保持しておく必要がないので、必要なメモリ量(例えば、バッファ領域231の容量)を低減することができる。   Note that as a modification, in this step, the CPU 210 calculates the total value TV (a-6) using the values of the eleven pixels in the column C (a-6) to obtain the total value TV. (A-6) may be acquired. In this case, although the amount of calculation increases more than in the present embodiment, it is not necessary to hold the total value TV calculated in S115 and S140 until it is acquired in this step, so the necessary memory amount ( For example, the capacity of the buffer area 231 can be reduced.

S140では、CPU210は、現在の注目画素TP(a、b)の周辺範囲CA(a、b)の+X方向の端の列C(a+5)の合計値TV(a+5)を算出する。この列C(a+5)は、図5にてダブルハッチングされた部分である。列C(a+5)は、前回の注目画素TP(a−1、b)の周辺範囲CA(a−1、b)の+X方向の端に隣接する列、とも言うことができる。   In S140, the CPU 210 calculates the total value TV (a + 5) of the column C (a + 5) of the end in the + X direction of the peripheral range CA (a, b) of the current pixel of interest TP (a, b). This column C (a + 5) is a portion that is double hatched in FIG. The column C (a + 5) can also be referred to as a column adjacent to the end of the peripheral range CA (a-1, b) of the previous target pixel TP (a-1, b) in the + X direction.

S145では、CPU210は、現在の注目画素TP(a、b)の周辺合計値TM(a、b)を算出する。具体的には、前回の注目画素TP(a−1、b)の周辺合計値TM(a−1、b)に対して、S135で取得された合計値TV(a−6)が減算され、S140で算出された合計値TV(a+5)が加算されることによって、周辺合計値TM(a、b)が算出される。すなわち、周辺合計値TM(a、b)の算出式は、以下の式(1)で示される。
TM(a、b)=TM(a−1、b)−TV(a−6)+TV(a+5)...(1)
In S145, the CPU 210 calculates the peripheral total value TM (a, b) of the current target pixel TP (a, b). Specifically, the total value TV (a-6) acquired in S135 is subtracted from the peripheral total value TM (a-1, b) of the previous target pixel TP (a-1, b), By adding the total value TV (a + 5) calculated in S140, the peripheral total value TM (a, b) is calculated. That is, the calculation formula of the marginal sum value TM (a, b) is represented by the following formula (1).
TM (a, b) = TM (a-1, b) -TV (a-6) + TV (a + 5) (1)

なお、周辺合計値TM(a、b)の算出後には、前回の注目画素TP(a−1、b)の周辺合計値TM(a−1、b)と、S135で取得された合計値TV(a−6)は、不要となるので、バッファ領域231から消去される。   In addition, after the calculation of the peripheral total value TM (a, b), the peripheral total value TM (a-1, b) of the previous target pixel TP (a-1, b) and the total value TV acquired in S135 Since (a-6) becomes unnecessary, it is erased from the buffer area 231.

S145にて、周辺合計値TM(a、b)が算出されると、CPU210は、S120に処理を戻す。   When the peripheral total value TM (a, b) is calculated in S145, the CPU 210 returns the process to S120.

注目画素TP(a、b)が、+X方向の最終画素である場合には(S125:YES)、S150にて、CPU210は、現在の注目画素TP(a、b)は、+Y方向の最終画素、すなわち、処理すべき最後の画素であるか否かを判断する。現在の注目画素TP(a、b)が+Y方向の最終画素である場合には(S150:YES)、CPU210は、マスクデータ生成処理を終了する。   If the pixel of interest TP (a, b) is the final pixel in the + X direction (S125: YES), the CPU 210 proceeds to S150 to select the current pixel of interest TP (a, b) as the final pixel in the + Y direction. That is, it is determined whether it is the last pixel to be processed. If the current target pixel TP (a, b) is the final pixel in the + Y direction (S150: YES), the CPU 210 ends the mask data generation process.

注目画素TP(a、b)が+Y方向の最終画素でない場合には(S150:NO)、S155にて、CPU210は、注目画素TP(a、b)を+Y方向に1個分移動した画素であって、かつ、X方向の先頭(−X方向の端)の画素に移動する(a=0、b=b+1)。すなわち、注目画素TP(a、b)が位置するラインの+Y方向に隣接するラインの−X方向の端の画素Pを新たな注目画素TPに設定する。ラインの先頭に位置する(すなわち、a=0である)新たに設定された注目画素TPを、注目画素TP(0、b)と表現する。   If the pixel of interest TP (a, b) is not the final pixel in the + Y direction (S150: NO), the CPU 210 shifts the pixel of interest TP (a, b) by one in the + Y direction in S155. And move to the first pixel in the X direction (the end in the −X direction) (a = 0, b = b + 1). That is, the pixel P at the end of the −X direction of the line adjacent to the + Y direction of the line in which the target pixel TP (a, b) is located is set as a new target pixel TP. The newly set target pixel TP located at the beginning of the line (that is, a = 0) is expressed as a target pixel TP (0, b).

図6は、注目画素TP(0、b)、すなわち、画素P(0、b)の近傍の拡大図である。S160では、CPU210は、画素P(0、b−1)の周辺範囲CA(0、b−1)の−Y方向の端に位置する行R(b−6)に含まれる11個の画素の値の合計値TH(b−6)を算出する。周辺範囲CA内の1個の行に含まれる11個の画素の値の合計値を単に、「当該行の合計値」と表現する。   FIG. 6 is an enlarged view of the vicinity of the pixel of interest TP (0, b), that is, the pixel P (0, b). In S160, the CPU 210 sets the eleven pixels included in the row R (b-6) positioned at the end of the -Y direction of the peripheral range CA (0, b-1) of the pixel P (0, b-1). The total value TH (b-6) of the values is calculated. The total value of the values of 11 pixels included in one row in the peripheral range CA is simply expressed as “the total value of the corresponding row”.

画素P(0、b−1)は、図6に示すように、注目画素TP(0、b)(すなわち、図6の画素P(0、b))の−Y方向に隣接する画素である。画素P(0、b−1)は、注目画素TPとして既に処理済の画素の1つである。行R(b−6)は、図6にてシングルハッチングされた部分である。   The pixel P (0, b-1) is a pixel adjacent to the target pixel TP (0, b) (that is, the pixel P (0, b) in FIG. 6) in the -Y direction, as shown in FIG. . The pixel P (0, b-1) is one of the pixels already processed as the target pixel TP. Row R (b-6) is a portion hatched in FIG.

S165では、S140では、CPU210は、現在の注目画素TP(0、b)の周辺範囲CA(0、b)の+Y方向の端の行R(a+5)の合計値TH(b+5)を算出する。この行R(b+5)は、図6にてダブルハッチングされた部分である。行R(b+5)は、画素P(0、b−1)の周辺範囲CA(0、b−1)の+Y方向の端に隣接する行とも言うことができる。   In S165, in S140, the CPU 210 calculates a total value TH (b + 5) of the row R (a + 5) of the end in the + Y direction of the peripheral range CA (0, b) of the current pixel of interest TP (0, b). This row R (b + 5) is a portion that is double hatched in FIG. The row R (b + 5) can also be referred to as a row adjacent to the end of the peripheral range CA (0, b-1) of the pixel P (0, b-1) in the + Y direction.

S170では、CPU210は、注目画素TP(0、b)の−Y方向に隣接する画素P(0、b−1)について算出済のマスクデータMD(0、b−1)を用いて、画素P(0、b−1)の周辺合計値TM(0、b−1)を、再度、算出する。この周辺合計値TM(0、b−1)は、注目画素TPが、画素P(0、b−1)であるときのS175にて、既に算出済であるが、直後のS120にて、当該周辺合計値TM(0、b−1)を用いて、マスクデータMD(0、b−1)が算出された後に、バッファ領域231から消去されているからである。具体的には、マスクデータMD(0、b−1)に対して、周辺範囲内(0、b−1)に含まれる画素の個数PN(本実施例では、121)を乗ずることによって、マスクデータMD(0、b−1)が算出される。   In S170, the CPU 210 uses the calculated mask data MD (0, b-1) for the pixel P (0, b-1) adjacent to the pixel of interest TP (0, b) in the -Y direction to The peripheral sum value TM (0, b-1) of (0, b-1) is calculated again. The peripheral total value TM (0, b-1) has already been calculated in S175 when the pixel of interest TP is the pixel P (0, b-1), but in S120 immediately after that This is because the mask data MD (0, b-1) is calculated using the peripheral total value TM (0, b-1) and then erased from the buffer area 231. Specifically, the mask data MD (0, b-1) is multiplied by the number PN (121 in this embodiment) of pixels included in the peripheral range (0, b-1) to obtain a mask. Data MD (0, b-1) is calculated.

なお、変形例としては、ラインの先頭の画素(a=0である画素)の周辺合計値TMは、+Y方向に隣接する画素Pについて、マスクデータMDが算出されるまで、バッファ領域231に、保持されても良い。この場合には、S170にて、周辺合計値TM(0、b−1)を、再度、算出する処理を省略することができる。   As a modification, the peripheral total value TM of the pixel at the head of the line (the pixel where a = 0) is stored in the buffer area 231 until the mask data MD is calculated for the pixel P adjacent to the + Y direction. It may be held. In this case, the process of calculating the surrounding total value TM (0, b-1) again in S170 can be omitted.

S175では、CPU210は、現在の注目画素TP(0、b)の周辺合計値TM(0、b)を算出する。具体的には、S170にて算出された周辺合計値TM(0、b−1)に対して、S160で算出された合計値TH(b−6)が減算され、S165で算出された合計値TH(b+5)が加算されることによって、周辺合計値TM(0、b)が算出される。すなわち、周辺合計値TM(0、b)の算出式は、以下の式(2)で示される。
TM(0、b)=TM(0、b−1)−TH(b−6)+TH(b+5)...(2)
In S175, the CPU 210 calculates the peripheral total value TM (0, b) of the current target pixel TP (0, b). Specifically, the sum TH (b-6) calculated in S160 is subtracted from the peripheral sum TM (0, b-1) calculated in S170, and the sum calculated in S165 By adding TH (b + 5), the peripheral sum value TM (0, b) is calculated. That is, a calculation formula of the marginal sum value TM (0, b) is represented by the following formula (2).
TM (0, b) = TM (0, b-1)-TH (b-6) + TH (b + 5) (2)

S175にて、現在の注目画素TP(0、b)の周辺合計値TM(0、b)が算出されると、CPU210は、S120に処理を戻す。   When the peripheral total value TM (0, b) of the current pixel of interest TP (0, b) is calculated at S175, the CPU 210 returns the process to S120.

以上説明したマスクデータ生成処理が、RGBの3個の成分についてそれぞれ実行されると、RGBの3個の成分に対応する3個のマスクデータMDr、MDg、MDbが、元画像OIに含まれる複数個の画素のそれぞれについて生成される。   When the mask data generation process described above is executed for each of the three components of RGB, a plurality of mask data MDr, MDg, and MDb corresponding to the three components of RGB are included in the original image OI. It is generated for each of the number of pixels.

A−4:鮮鋭化処理
図2のS40の鮮鋭化処理について説明する。鮮鋭化処理は、上述したように、元画像OIに含まれる複数個の画素のそれぞれに対して、対応するマスクデータを用いてアンシャープマスク処理を実行することによって、処理済画像データを生成する処理である。
A-4: Sharpening Process The sharpening process of S40 of FIG. 2 will be described. In the sharpening process, as described above, the processed image data is generated by performing the unsharp mask process on each of the plurality of pixels included in the original image OI using the corresponding mask data. It is a process.

図7は、鮮鋭化処理のフローチャートである。S180では、CPU210は、元画像OIに含まれる複数個の画素から1個の注目画素を選択する。   FIG. 7 is a flowchart of the sharpening process. In S180, the CPU 210 selects one target pixel from the plurality of pixels included in the original image OI.

S185では、CPU210は、図4のマスクデータ生成処理にて生成された複数個のマスクデータのうち、注目画素に対応するマスクデータを用いて、注目画素に対するアンシャープマスク処理を実行する。   In S185, the CPU 210 executes unsharp mask processing on the pixel of interest using mask data corresponding to the pixel of interest among the plurality of mask data generated in the mask data generation process of FIG.

具体的には、注目画素の処理前のRGB値を(Rin、Gin、Bin)とし、注目画素に対応するマスクデータを(MDr、MDg、MDb)とすると、処理後のRGB値(Rout、Gout、Bout)は、以下の式(3)〜(5)で表される。
Rout=Rin+(Rin−MDr)×K ...(3)
Gout=Gin+(Gin−MDg)×K ...(4)
Bout=Bin+(Bin−MDb)×K ...(5)
ここで、Kはシャープネスを強調するレベルを示す所定の係数であり、本実施例では、K=1である。
Specifically, assuming that the RGB value before processing the pixel of interest is (Rin, Gin, Bin) and the mask data corresponding to the pixel of interest is (MDr, MDg, MDb), the RGB values after processing (Rout, Gout) , Bout) are represented by the following formulas (3) to (5).
Rout = Rin + (Rin−MDr) × K (3)
Gout = Gin + (Gin-MDg) x K (4)
Bout = Bin + (Bin−MDb) × K (5)
Here, K is a predetermined coefficient indicating a level for emphasizing sharpness, and in the present embodiment, K = 1.

S190では、CPU210は、元画像OI内の全ての画素を注目画素として処理したか否かを判断する。未処理の画素がある場合には(S190:NO)、CPU210は、S180に戻って、未処理の画素を注目画素として選択する。全ての画素が処理された場合には(S190:YES)、CPU210は、鮮鋭化処理を終了する。この時点で処理済画像を表す処理済画像データが生成されている。   In S190, the CPU 210 determines whether all the pixels in the original image OI have been processed as the pixel of interest. If there is an unprocessed pixel (S190: NO), the CPU 210 returns to S180 to select an unprocessed pixel as a target pixel. If all the pixels have been processed (S190: YES), the CPU 210 ends the sharpening process. At this point, processed image data representing the processed image is generated.

以上説明した第1実施例によれば、図5の画素P(a−1、b)の周辺範囲(a−1、b)内の(11×11)個の画素の値の合計である周辺合計値TM(a−1、b)を用いて、画素P(a−1、b)に対応するマスクデータMD(a−1、b)が算出される(図4のS120)。この時点で、周辺範囲(a−1、b)内の(11×11)個の画素のうち、−X方向の端に位置し、+Y方向に沿って並ぶ11個の画素(すなわち、図5の列C(a−6)内の11個の画素)の値の合計値TV(a−6)が算出されて、バッファ領域231に保持されている。そして、周辺範囲CA(a−1、b)に対して+X方向に隣接し、Y方向に沿って並ぶ11個の画素(すなわち、図5の列C(a+5)内の11個の画素)の値の合計値TV(a+5)が算出される(S140)。そして、算出済の周辺合計値TM(a−1、b)に対して、合計値TV(a−6)が減算され、合計値TV(a+5)が加算されることによって、図5の画素P(a−1、b)の+X方向に隣接する画素P(a、b)の周辺範囲CA(a、b)内の(11×11)個の画素の値の合計である周辺合計値TM(a、b)が算出される(S145)。そして、周辺合計値TM(a、b)を用いて、画素P(a、b)に対応するマスクデータMD(a、b)が算出される(S120)。この結果、周辺範囲CA(a、b)内の(11×11)個の画素の値を1個ずつ加算することによって周辺合計値TM(a、b)を算出するよりも算出時間を低減できる。したがって、マスクデータを生成するための処理時間を低減することができる。   According to the first embodiment described above, the periphery which is the sum of the values of (11 × 11) pixels in the peripheral range (a−1, b) of the pixel P (a−1, b) in FIG. 5 The mask data MD (a-1, b) corresponding to the pixel P (a-1, b) is calculated using the total value TM (a-1, b) (S120 in FIG. 4). At this point, among the (11 × 11) pixels in the peripheral range (a−1, b), 11 pixels located at the end in the −X direction and aligned along the + Y direction (ie, FIG. The total value TV (a-6) of the values of 11 pixels in the column C (a-6) of the image data is calculated and held in the buffer area 231. Then, 11 pixels adjacent to the peripheral range CA (a-1, b) in the + X direction and aligned along the Y direction (that is, 11 pixels in the column C (a + 5) in FIG. 5) A total value TV (a + 5) of values is calculated (S140). Then, the total value TV (a-6) is subtracted from the calculated peripheral total value TM (a-1, b), and the total value TV (a + 5) is added to the pixel P in FIG. Peripheral total value TM (sum of values of (11 × 11) pixels in peripheral range CA (a, b) of pixel P (a, b) adjacent to + a direction of (a−1, b) a, b) are calculated (S 145). Then, mask data MD (a, b) corresponding to the pixel P (a, b) is calculated using the peripheral total value TM (a, b) (S 120). As a result, the calculation time can be reduced compared to calculating the peripheral sum value TM (a, b) by adding the values of (11 × 11) pixels in the peripheral range CA (a, b) one by one. . Therefore, the processing time for generating mask data can be reduced.

さらに、図6の画素P(0、b−1)の周辺範囲CA(0、b−1)内の(11×11)個の画素のうち、−Y方向の端に位置し、+X方向に沿って並ぶ11個の画素(すなわち、図6の行R(b−6))の値の合計値TH(b−6)が算出される(S160)。そして、周辺範囲CA(0、b−1)に対して+Y方向に隣接し、+X方向に沿って並ぶ11個の画素(すなわち、図6の行R(b+5))内の11個の画素)の値の合計値TH(b+5)が算出される(S165)。そして、S170にて算出済の画素P(0、b−1)の周辺合計値TM(0、b−1)に対して、合計値TH(b−6)を減算し、合計値TH(b+5)を加算することによって、画素P(0、b−1)の+Y方向に隣接する画素P(0、b)の周辺範囲CA(0、b)内の(11×11)個の画素の値の合計である周辺合計値TM(0、b)が算出される(S175)。そして、周辺合計値TM(0、b)を用いて、画素P(0、b)に対応するマスクデータMD(0、b)が算出される(S120)。この結果、周辺範囲CA(0、b)内の(11×11)個の画素の値を1個ずつ加算することによって周辺合計値TM(0、b)を算出するよりも算出時間を低減できる。したがって、したがって、マスクデータを生成するための処理時間をさらに低減することができる。   Furthermore, among the (11 × 11) pixels in the peripheral range CA (0, b−1) of the pixel P (0, b−1) in FIG. A total value TH (b-6) of the values of the 11 pixels (that is, the row R (b-6) in FIG. 6) aligned along the line is calculated (S160). Then, 11 pixels adjacent to the peripheral range CA (0, b-1) in the + Y direction and arranged along the + X direction (that is, 11 pixels in the row R (b + 5) in FIG. 6) The total value TH (b + 5) of the values of is calculated (S165). Then, the total value TH (b-6) is subtracted from the peripheral total value TM (0, b-1) of the pixel P (0, b-1) calculated in S170, and the total value TH (b + 5) is calculated. Value of (11 × 11) pixels in the peripheral range CA (0, b) of the pixel P (0, b) adjacent to the pixel P (0, b−1) in the + Y direction. The peripheral total value TM (0, b) which is the sum of the above is calculated (S175). Then, mask data MD (0, b) corresponding to the pixel P (0, b) is calculated using the peripheral sum value TM (0, b) (S 120). As a result, the calculation time can be reduced compared to calculating the peripheral total value TM (0, b) by adding the values of (11 × 11) pixels in the peripheral range CA (0, b) one by one. . Therefore, therefore, the processing time for generating mask data can be further reduced.

より具体的には、本実施例によるマスクデータを生成するための処理時間は、各画素について周辺範囲CA内の全ての画素の値を1個ずつ加算することによって周辺合計値TMを算出する場合の処理時間と比較して、約1/9.3となる。   More specifically, the processing time for generating mask data according to the present embodiment is the case where peripheral total value TM is calculated by adding the values of all pixels in peripheral range CA one by one for each pixel. This is approximately 1 / 9.3 as compared with the processing time of

ここで、元画像OIの+X方向の画素数L(Lは、M以上の整数)として、+X方向に沿う特定のラスタライン、すなわち、+X方向に沿って並ぶL個の画素に着目する。図4のS110、および、S140から解るように、これらのL個の画素を1個ずつ含むL個の列C(0)〜C(L)の合計値TV(0)〜TV(L)がそれぞれ算出されている。そして、そして、S115、および、S145から解るように、これらのL個の合計値TV(0)〜TV(L)を用いた加算処理と減算処理とによって、これらのL個の画素に対応するL個のマスクデータMDが算出されている。この結果、L個の合計値TV(0)〜TV(L)を用いて効率良く、マスクデータを算出することができる。なお、L個の列C(0)〜C(L)は、L個の画素のL個の周辺範囲CAのいずれかに含まれるL個の画素群であって、+Yに沿って並ぶ11個の画素をそれぞれ含むL個の画素群である、と言うことができる。   Here, as the number L of pixels in the + X direction (L is an integer greater than or equal to M) of the original image OI, attention is focused on a specific raster line along the + X direction, that is, L pixels aligned along the + X direction. As understood from S110 and S140 in FIG. 4, the total values TV (0) to TV (L) of L columns C (0) to C (L) including one each of these L pixels are obtained. Each has been calculated. And, as understood from S115 and S145, the addition processing and the subtraction processing using these L total values TV (0) to TV (L) correspond to these L pixels. L mask data MD are calculated. As a result, mask data can be efficiently calculated using L total values TV (0) to TV (L). Note that L columns C (0) to C (L) are L pixel groups included in any one of L peripheral ranges CA of L pixels, and 11 pixels are arranged along + Y. It can be said that it is L pixel groups each including the pixel of.

さらに、S145で、画素P(1、b−1)のマスクデータMD(1、b−1)が算出された後に、算出に用いられた画素P(0、b−1)の周辺合計値TM(0、b−1)は、メモリ(具体的には、揮発性記憶装置230)から消去される。そして、その後に、画素P(0、b)のマスクデータMD(0、b)を算出する際に、その算出に用いられる周辺合計値TM(0、b−1)は、マスクデータMD(0、b−1)を、(11×11)倍、すなわち、121倍することによって、算出される(S170)。この結果、マスクデータMD(0、b)が算出されるまで周辺合計値TM(0、b−1)をバッファ領域231に保持しておく必要がないので、揮発性記憶装置230の使用量を低減できる。   Furthermore, after the mask data MD (1, b-1) of the pixel P (1, b-1) is calculated in S145, the peripheral total value TM of the pixel P (0, b-1) used for the calculation is calculated. (0, b-1) are erased from the memory (specifically, the volatile storage device 230). Then, when the mask data MD (0, b) of the pixel P (0, b) is subsequently calculated, the peripheral total value TM (0, b-1) used for the calculation is the mask data MD (0). , B-1) by (11 × 11) times, ie, 121 times (S170). As a result, since it is not necessary to hold the peripheral sum value TM (0, b-1) in the buffer area 231 until the mask data MD (0, b) is calculated, the usage amount of the volatile storage device 230 It can be reduced.

以上の説明から解るように、対応関係の一例を説明する。+X方向は、第1方向の例であり、+Y方向は、第2方向の例である。   As understood from the above description, an example of the correspondence relationship will be described. The + X direction is an example of a first direction, and the + Y direction is an example of a second direction.

また、図5の例では、画素P(a−1、b)は、第1画素の例であり、画素P(a、b)は、第2画素の例であり、周辺範囲CA(a−1、b)は、第1範囲の例であり、周辺範囲CA(a、b)は、第2範囲の例である。マスクデータMD(a−1、b)は、第1のマスクデータの例であり、マスクデータMD(a、b)は、第2のマスクデータの例である。周辺合計値TM(a−1、b)は、第1値の例であり、合計値TV(a−6)は、第2値の例であり、合計値TV(a+5)は、第3値の例であり、周辺合計値TM(a、b)は、第4値の例である。   Further, in the example of FIG. 5, the pixel P (a−1, b) is an example of a first pixel, and the pixel P (a, b) is an example of a second pixel. 1 and b) are examples of the first range, and the peripheral range CA (a, b) is an example of the second range. The mask data MD (a-1, b) is an example of first mask data, and the mask data MD (a, b) is an example of second mask data. The marginal total value TM (a-1, b) is an example of a first value, the total value TV (a-6) is an example of a second value, and the total value TV (a + 5) is a third value. The peripheral sum value TM (a, b) is an example of the fourth value.

また、図6の例では、画素P(0、b−1)は、第1画素の例であり、画素P(0、b)は、第3画素の例であり、周辺範囲CA(0、b−1)は、第1範囲の例であり、周辺範囲CA(0、b)は、第3範囲の例である。マスクデータMD(0、b−1)は、第1のマスクデータの例であり、マスクデータMD(0、b)は、第3のマスクデータの例である。周辺合計値TM(0、b−1)は、第1値の例であり、合計値TH(b−6)は、第5値の例であり、合計値TH(b+5)は、第6値の例であり、周辺合計値TM(0、b)は、第7値の例である。   Further, in the example of FIG. 6, the pixel P (0, b-1) is an example of the first pixel, and the pixel P (0, b) is an example of the third pixel, and the peripheral range CA (0, b) is b-1) is an example of the first range, and the peripheral range CA (0, b) is an example of the third range. The mask data MD (0, b-1) is an example of first mask data, and the mask data MD (0, b) is an example of third mask data. The marginal sum value TM (0, b-1) is an example of a first value, the sum value TH (b-6) is an example of a fifth value, and the sum value TH (b + 5) is a sixth value The peripheral sum value TM (0, b) is an example of the seventh value.

B.第2実施例
第2実施例は、マスクデータ生成処理が、図4の第1実施例のマスクデータ生成処理と異なる。他の処理は、第1実施例と同じである。
B. Second Embodiment In the second embodiment, the mask data generation process is different from the mask data generation process of the first embodiment of FIG. The other processes are the same as in the first embodiment.

図8は、第2実施例のマスクデータ生成処理のフローチャートである。S205では、CPU210は、注目画素TP(a、b)を、元画像OIの左上の画素P(0、0)に設定する。   FIG. 8 is a flowchart of mask data generation processing according to the second embodiment. In S205, the CPU 210 sets the pixel of interest TP (a, b) to the pixel P (0, 0) at the upper left of the original image OI.

S210〜S220は、+X方向に沿う各ラスタラインの先頭(−X方向の端)の画素(a=0の画素)が、注目画素TPである場合に実行される処理であるので、注目画素TP(0、b)についての処理として、説明する。初回のS210〜S220の処理では、注目画素TP(0、b)は、画素P(0、0)である。   Since S210 to S220 are processing executed when the pixel at the head (end of the -X direction) of each raster line along the + X direction (pixel of a = 0) is the pixel of interest TP, the pixel of interest TP The process for (0, b) will be described. In the initial processing of S210 to S220, the target pixel TP (0, b) is the pixel P (0, 0).

S210では、CPU210は、注目画素TP(0、b)の周辺範囲CA(0、b)の11個の列C(−5)〜C(+5)の合計値TV(−5)〜TV(+5)を算出する。   In S210, the CPU 210 sums TV (-5) to TV (+5) of 11 columns C (-5) to C (+5) of the peripheral range CA (0, b) of the pixel of interest TP (0, b). Calculate).

S215では、CPU210は、11個の合計値TV(−5)〜TV(+5)を加算することによって、周辺範囲CA(0、b)内の周辺合計値TM(0、b)を算出する。第1実施例と同様に、各列の合計値TV(−5)〜TV(+5)は、周辺合計値TM(0、b)が算出された後も、バッファ領域231から消去されることなく、保持される。   In S215, the CPU 210 calculates the peripheral total value TM (0, b) in the peripheral range CA (0, b) by adding the 11 total values TV (-5) to TV (+5). As in the first embodiment, the total values TV (-5) to TV (+5) of each column are not erased from the buffer area 231 even after the peripheral total value TM (0, b) is calculated. , Is held.

S220では、CPU210は、11個の列C(a−5)〜C(a+5)について、各列に含まれる11個の画素のRGB値を用いて、11個の画素のそれぞれの輝度値を算出して、算出された11個の輝度値のうちの最大輝度値と最小輝度値とをバッファ領域231に特定する。特定された最大輝度値と最小輝度値は、バッファ領域231に保持される。11個の列C(−5)〜C(+5)の最大輝度値をYVmx(−5)〜YVmx(+5)とし、11個の列C(−5)〜C(+5)の最小輝度値をYVmn(−5)〜YVmn(+5)とする。   In S220, the CPU 210 calculates, for each of the eleven columns C (a-5) to C (a + 5), the luminance values of the eleven pixels using the RGB values of the eleven pixels included in each column. Then, the maximum luminance value and the minimum luminance value among the 11 luminance values calculated are specified in the buffer area 231. The specified maximum luminance value and minimum luminance value are held in the buffer area 231. The maximum luminance values of 11 columns C (-5) to C (+5) are YVmx (-5) to YVmx (+5), and the minimum luminance values of 11 columns C (-5) to C (+5) are It is set as YVmn (-5)-YVmn (+5).

S225〜S260の処理は、注目画素TPを変更しながら、繰り返し実行されるので、注目画素TP(a、b)についての処理として、一般的に説明する。   The processes of S225 to S260 are repeatedly executed while changing the pixel of interest TP, and therefore, the process for the pixel of interest TP (a, b) will be generally described.

S225では、CPU210は、注目画素TP(a、b)の周辺範囲CA(a、b)内の121個の画素の輝度値のうちの最大輝度値Ymxと、最小輝度値Ymnを特定する。この時点で、周辺範囲CA(a、b)内の11個の列C(a−5)〜C(a+5)の最大輝度値YVmx(a−5)〜YVmx(a+5)が、上述のS220または後述のS255にて特定されて、バッファ領域231に保持されている。CPU210は、11個の最大輝度値YVmx(a−5)〜YVmx(a+5)の最大値を、周辺範囲CA(a、b)の最大輝度値Ymxとして特定する。同様に、この時点で、周辺範囲CA(a、b)内の11個の列C(a−5)〜C(a+5)の最小輝度値YVmn(a−5)〜YVmn(a+5)が特定されて、バッファ領域231に保持されている。CPU210は、11個の最小輝度値YVmn(a−5)〜YVmn(a+5)の最小値を、周辺範囲CA(a、b)の最小輝度値Ymnとして特定する。   In S225, the CPU 210 specifies the maximum luminance value Ymx and the minimum luminance value Ymn among the luminance values of 121 pixels in the peripheral range CA (a, b) of the pixel of interest TP (a, b). At this point, the maximum luminance values YVmx (a-5) to YVmx (a + 5) of the eleven columns C (a-5) to C (a + 5) in the peripheral range CA (a, b) are the above-described S220 or It is specified in S255 described later and held in the buffer area 231. The CPU 210 specifies the maximum value of the eleven maximum luminance values YVmx (a-5) to YVmx (a + 5) as the maximum luminance value Ymx of the peripheral range CA (a, b). Similarly, at this time, the minimum luminance values YVmn (a-5) to YVmn (a + 5) of the eleven columns C (a-5) to C (a + 5) in the peripheral range CA (a, b) are specified. And is held in the buffer area 231. The CPU 210 specifies the minimum value of the eleven minimum luminance values YVmn (a-5) to YVmn (a + 5) as the minimum luminance value Ymn of the peripheral range CA (a, b).

S230では、CPU210は、S225にて特定された最大輝度値Ymxと最小輝度値YVmnとの差分ΔYを算出する(ΔY=Ymx−Ymn)。輝度値の差分ΔYは、周辺範囲CA内の画像のコントラストの高さを示す値であるので、コントラストΔYとも呼ぶ。   In S230, the CPU 210 calculates a difference ΔY between the maximum luminance value Ymx and the minimum luminance value YVmn specified in S225 (ΔY = Ymx−Ymn). Since the difference ΔY of the luminance values is a value indicating the height of the contrast of the image in the peripheral range CA, it is also referred to as the contrast ΔY.

S235では、CPU210は、コントラストΔYは、特定範囲SR内であるか否かを判断する。特定範囲SRは、コントラストΔYが下側閾値TH1未満であること、および、コントラストΔYが上側閾値TH2より大きいこと、のいずれかを満たす範囲である(ΔY<TH1、または、ΔY>TH2、(ただし、TH1<TH2))。例えば、下側閾値TH1は、コントラストΔYが取り得る範囲の下限から15%の値、上側閾値TH2は、ントラストΔYが取り得る範囲の下限から70%の値に設定される。例えば、画素の輝度値が、0〜255までの値で表される場合、コントラストΔYが取り得る範囲は、0〜255である。この場合には、例えば、TH1=38、TH2=192に設定される。   In S235, the CPU 210 determines whether the contrast ΔY is within the specific range SR. The specific range SR is a range that satisfies either the contrast ΔY being less than the lower threshold TH1 or the contrast ΔY being greater than the upper threshold TH2 (ΔY <TH1 or ΔY> TH2, , TH1 <TH2)). For example, the lower threshold TH1 is set to a value of 15% from the lower limit of the range that the contrast ΔY can take, and the upper threshold TH2 is set to a value from the lower limit of the range that the contrast ΔY can take to 70%. For example, when the luminance value of a pixel is represented by a value of 0 to 255, the range that the contrast ΔY can take is 0 to 255. In this case, for example, TH1 = 38 and TH2 = 192 are set.

コントラストΔYが特定範囲SR内である場合には(S235:YES)、S240にて、CPU210は、注目画素TP(a、b)の値を、そのまま、マスクデータMDとして決定する。そして、コントラストΔYが特定範囲SR内でない場合には(S235:NO)、S245にて、CPU210は、図4のS120と同様に、周辺合計値TM(a、b)を用いて、注目画素TP(a、b)のマスクデータMD(a、b)を算出する。具体的には、CPU210は、周辺合計値TM(a、b)を、周辺範囲内(a、b)に含まれる画素の個数PN(本実施例では、121)で除することによって、マスクデータMD(a、b)を算出する(MD(a、b)=TM(a、b)/PN)。   If the contrast ΔY is within the specific range SR (S235: YES), the CPU 210 determines the value of the pixel of interest TP (a, b) as the mask data MD as it is at S240. Then, if the contrast ΔY is not within the specific range SR (S235: NO), the CPU 210 uses the peripheral total value TM (a, b) at S245 in the same manner as S120 of FIG. The mask data MD (a, b) of (a, b) is calculated. Specifically, the CPU 210 divides the peripheral sum value TM (a, b) by the number PN of pixels included in the peripheral range (a, b) (121 in the present embodiment) to obtain mask data. Calculate MD (a, b) (MD (a, b) = TM (a, b) / PN).

S250では、CPU210は、注目画素TP(a、b)は、+X方向の最終画素であるか否かを判断する。注目画素TP(a、b)が、+X方向の最終画素でない場合には(S250:NO)、S255に処理が進められ、注目画素TP(a、b)が、+X方向の最終画素である場合には(S250:YES)、S270に処理が進められる。   In S250, the CPU 210 determines whether the pixel of interest TP (a, b) is the final pixel in the + X direction. If the pixel of interest TP (a, b) is not the final pixel in the + X direction (S250: NO), the process proceeds to S255, and the pixel of interest TP (a, b) is the final pixel in the + X direction If not (S250: YES), the process proceeds to S270.

S255では、CPU210は、注目画素TP(a、b)を+X方向に1個分移動する。すなわち、注目画素TP(a、b)の+X方向に隣接する画素P(a+1、b)が新たな注目画素TP(a、b)に設定する(a=a+1)。   In S255, the CPU 210 moves the pixel of interest TP (a, b) by one in the + X direction. That is, the pixel P (a + 1, b) adjacent to the target pixel TP (a, b) in the + X direction is set as a new target pixel TP (a, b) (a = a + 1).

S260では、CPU210は、新たな注目画素TP(a、b)の+X方向の端に位置する列C(a+5)に含まれる11個の画素の輝度値をそれぞれ算出して、これらの11個の輝度値のうちの、最大輝度値YVmx(a+5)と最小輝度値YVmn(a+5)とを、特定する。   In S260, the CPU 210 calculates the luminance values of the eleven pixels included in the column C (a + 5) located at the end of the new target pixel TP (a, b) in the + X direction, and calculates these eleven pixels. Among the luminance values, the maximum luminance value YVmx (a + 5) and the minimum luminance value YVmn (a + 5) are specified.

S265では、CPU210は、上述した図4のS135〜S145の処理を実行する。S265の後に、CPU210は、S225に処理を戻す。   At S265, the CPU 210 executes the processing of S135 to S145 of FIG. 4 described above. After S265, the CPU 210 returns the process to S225.

注目画素TP(a、b)が、+X方向の最終画素である場合には(S250:YES)、S270にて、CPU210は、現在の注目画素TP(a、b)は、+Y方向の最終画素、すなわち、処理すべき最後の画素であるか否かを判断する。現在の注目画素TP(a、b)が+Y方向の最終画素でない場合には(S270:NO)、S275にて、CPU210は、注目画素TP(a、b)を+Y方向に1個分移動した画素であって、かつ、X方向の先頭(−X方向の端)の画素に移動する(a=0、b=b+1)。S275の後に、CPU210は、S210に処理を戻す。現在の注目画素TP(a、b)が+Y方向の最終画素である場合には(S270:YES)、CPU210は、マスクデータ生成処理を終了する。   If the pixel of interest TP (a, b) is the final pixel in the + X direction (S250: YES), the CPU 210 checks the current pixel of interest TP (a, b) as the final pixel in the + Y direction at S270. That is, it is determined whether it is the last pixel to be processed. If the current target pixel TP (a, b) is not the final pixel in the + Y direction (S270: NO), the CPU 210 moves the target pixel TP (a, b) by one in the + Y direction at S275. The pixel is moved to the top pixel in the X direction (the end in the −X direction) (a = 0, b = b + 1). After S275, the CPU 210 returns the process to S210. If the current target pixel TP (a, b) is the final pixel in the + Y direction (S270: YES), the CPU 210 ends the mask data generation process.

S245において、マスクデータMD(a、b)が、対応する画素P(a、b)の値そのものに決定された場合には、その画素P(a、b)に対するアンシャープマスク処理(図7のS185)において、画素P(a、b)の値は、変更されない。その理由を説明する。上記式(3)〜(5)に従って、図7のS185にて、処理済画像の画素の値が算出されるとする。この場合に、元の画素の値(Rin、Gin、Bin)と、マスクデータの値(MDr、MDg、MDb)とが同じになるので、上記式(3)〜(5)の右辺の第2項が0となり、元の画素の値は、同じ値に維持される。この結果、S245において、マスクデータMDが、対応する画素Pの値そのものに決定された場合には、その画素Pに対して、実質的にアンシャープマスク処理が行われないことになる。   When the mask data MD (a, b) is determined to be the value of the corresponding pixel P (a, b) in S245, the unsharp mask processing for the pixel P (a, b) (FIG. 7) In S185), the value of the pixel P (a, b) is not changed. Explain the reason. It is assumed that the value of the pixel of the processed image is calculated in S185 of FIG. 7 according to the above formulas (3) to (5). In this case, the values (Rin, Gin, Bin) of the original pixel and the values (MDr, MDg, MDb) of the mask data are the same. The term becomes 0, and the original pixel value is maintained at the same value. As a result, when the mask data MD is determined to be the value of the corresponding pixel P in S245, the unsharp mask processing is not substantially performed on the pixel P.

以上説明した第2実施例によれば、元画像OI内の複数個の画素P(a、b)のうち、周辺範囲CA(a、b)のコントラストΔYが特定範囲SR内である画素について、鮮鋭化処理にて、画素の値が変更されない。この結果、アンシャープマスク処理によって画質が低下する不都合を低減し得る。   According to the second embodiment described above, among the plurality of pixels P (a, b) in the original image OI, for pixels in which the contrast ΔY of the peripheral range CA (a, b) is within the specific range SR, In the sharpening process, the pixel value is not changed. As a result, it is possible to reduce the disadvantage that the image quality is degraded by the unsharp mask processing.

より詳しく説明する。図9は、元画像OI内の文字TXを含むオブジェクトOb2の一部分を示す図である。アンシャープマスク処理を実行すると、特に写真などの画像の鮮鋭度が高くなり、画質が向上する。一方で、仮に、全ての画素に対してアンシャープマスク処理を実行すると、処理済画像において、コントラストが比較的に高い部分、具体的には、比較的薄い地色の領域のうち、当該領域内に配置された濃い色の文字の近傍領域が過度に明るくなる不具合が発生しやすい。例えば、図9の黒色の文字TXの近傍領域SAと、近傍領域SAの外側領域OAとは、元画像OIにおいては、同じ色であるとする。仮に、全ての画素に対してアンシャープマスク処理を実行すると、処理済画像において、近傍領域SAが、過度に明るくされることで白っぽい色に変更され、外側領域OAとは異なる色になる不具合が発生する。   It will be described in more detail. FIG. 9 is a diagram showing a part of the object Ob2 including the character TX in the original image OI. When the unsharp mask processing is performed, the sharpness of an image such as a photograph is particularly enhanced, and the image quality is improved. On the other hand, if the unsharp mask processing is performed on all the pixels, in the processed image, a portion having a relatively high contrast, specifically, a region having a relatively light ground color, within the region. It is easy to generate the problem that the near area of the dark-colored character arranged in is brightened excessively. For example, it is assumed that the neighborhood area SA of the black character TX in FIG. 9 and the outside area OA of the neighborhood area SA have the same color in the original image OI. If unsharp mask processing is performed on all pixels, in the processed image, the neighborhood area SA is changed to a whitish color by being excessively brightened, and a color different from that of the outside area OA is generated. Occur.

この理由を説明する。近傍領域SA内の画素の周辺範囲CAには、文字を構成する濃い色の画素が含まれるが、外側領域OA内の画素の周辺範囲CAには、濃い色が含まれない。このために、近傍領域SA内の画素のマスクデータ(すなわち、その画素の周辺範囲CAの平均色値(MDr、MDg、MDb))の各値は、外側領域OA内の画素のマスクデータの各値より暗い色を示す値(すなわち、小さな値)となる。この結果、アンシャープマスク処理を行う際に、近傍領域SA内の画素では、上述した式(3)〜(5)の右辺の第2項の(Rin−MDr)、(Gin−MDg)、(Bin−MDb)の値が、外側領域OA内の画素よりも大きな値となる。したがって、仮に、近傍領域SA内の画素に対して、通常通りにアンシャープマスク処理が実行されると、処理後のRGB値(Rout、Gout、Bout)の各成分値が過度に大きな値に変更されて、近傍領域SA内の画素の色は、過度に明るく白っぽい色となる。   The reason is explained. The peripheral range CA of the pixels in the near area SA includes dark pixels that form characters, but the peripheral range CA of the pixels in the outer area OA does not include dark colors. For this reason, each value of mask data of pixels in the adjacent area SA (that is, average color values (MDr, MDg, MDb) of the peripheral range CA of the pixel) is each of mask data of pixels in the outer area OA. It is a value that indicates a color darker than the value (that is, a small value). As a result, when performing the unsharp mask processing, in the pixels in the near area SA, (Rin−MDr), (Gin−MDg), and (Gin−MDg) of the second term of the right side of the equations (3) The value of Bin−MDb) is larger than the pixels in the outer area OA. Therefore, if the unsharp mask processing is performed on the pixels in the vicinity area SA as usual, the component values of the processed RGB values (Rout, Gout, Bout) are changed to excessively large values. As a result, the color of the pixels in the neighboring area SA becomes excessively bright and whitish.

上記第2実施例では、画素P(a、b)の周辺範囲CA(a、b)内のコントラストΔYが過度に高い場合には(すなわち、ΔV>TH2である場合には)、コントラストΔYが特定範囲SR内であると判断されるので、当該画素P(a、b)に対してはアンシャープマスク処理が実質的に実行されない。したがって、図9の近傍領域SA内の画素に対しては、アンシャープマスク処理が実質的に実行されないので、上記の不具合の発生を抑制することができる。この結果、画像の鮮鋭度を高めつつ、アンシャープマスク処理に起因する画質の低下、具体的には、濃い色の文字の周囲が過度に明るくなる不具合を抑制できる。   In the second embodiment, when the contrast ΔY in the peripheral range CA (a, b) of the pixel P (a, b) is excessively high (that is, when ΔV> TH2), the contrast ΔY is Since it is determined that the pixel P (a, b) is within the specific range SR, the unsharp mask process is not substantially performed on the pixel P (a, b). Therefore, the unsharp mask process is not substantially executed on the pixels in the vicinity area SA of FIG. 9, so that the occurrence of the above-mentioned problems can be suppressed. As a result, it is possible to suppress the deterioration of the image quality caused by the unsharp mask processing, specifically, the problem that the periphery of the dark-colored character is excessively brightened, while enhancing the sharpness of the image.

さらに、例えば、図2の元画像OI内の人物HNの肌の部分などは、コントラストΔYが比較的低くなる。このような部分に、アンシャープマスク処理を実行すると、たとえば、肌に存在するしわが強調されるなどの不都合が発生して、元画像OIの画質が低下する場合がある。上記第2実施例では、画素P(a、b)の周辺範囲CA(a、b)内のコントラストΔYが過度に低い場合には(すなわち、ΔV<TH1である場合には)、コントラストΔYが特定範囲SR内であると判断されるので、当該画素P(a、b)に対してはアンシャープマスク処理が実質的に実行されない。したがって、人物HNの肌の部分に対しては、アンシャープマスク処理が実質的に実行されないので、上記の不具合の発生を抑制することができる。この結果、画像の鮮鋭度を高めつつ、アンシャープマスク処理に起因する画質の低下、具体的には、人物HNの肌のしわが強調される不具合を抑制できる。   Furthermore, for example, the skin portion of the person HN in the original image OI of FIG. 2 has a relatively low contrast ΔY. When the unsharp mask processing is performed on such a part, for example, a disadvantage such as an increase in wrinkles present on the skin may occur, and the image quality of the original image OI may be degraded. In the second embodiment, when the contrast ΔY in the peripheral range CA (a, b) of the pixel P (a, b) is excessively low (that is, when ΔV <TH1), the contrast ΔY is Since it is determined that the pixel P (a, b) is within the specific range SR, the unsharp mask process is not substantially performed on the pixel P (a, b). Therefore, the unsharp mask process is not substantially executed on the skin portion of the person HN, so that the occurrence of the above-mentioned problems can be suppressed. As a result, it is possible to suppress the deterioration of the image quality caused by the unsharp mask processing, specifically, the defect in which the wrinkles of the skin of the person HN are emphasized while enhancing the sharpness of the image.

さらに、上記第2実施例では、元画像OIに含まれる複数個の画素Pのそれぞれについて、マスクデータMDを算出する際に、マスクデータMDに対応する画素について、コントラストΔYが特定範囲SR内であるか否かが判断される(S235)。そして、コントラストΔYが特定範囲SR内でない画素に対応するマスクデータMDは、その画素の周辺範囲内の画素の値の平均値に決定される(S245)。そして、コントラストΔYが特定範囲SR内である画素に対応するマスクデータMDは、その画素の値に決定される(S240)。こうすれば、コントラストΔYが特定範囲SR内である画素のマスクデータMDを、当該画素の値に決定することによって、図7のS185において、当該画素に対してアンシャープマスク処理を行っても、当該画素の値が、アンシャープマスク処理によって変更されないようにすることができる。   Furthermore, in the second embodiment, when the mask data MD is calculated for each of the plurality of pixels P included in the original image OI, the contrast ΔY is within the specific range SR for the pixel corresponding to the mask data MD. It is determined whether there is any (S235). Then, the mask data MD corresponding to the pixel whose contrast ΔY is not within the specific range SR is determined to be the average value of the values of the pixels within the peripheral range of the pixel (S245). Then, the mask data MD corresponding to the pixel whose contrast ΔY is within the specific range SR is determined as the value of that pixel (S240). In this way, even if the unsharp mask processing is performed on the pixel in S185 of FIG. 7 by determining the mask data MD of the pixel whose contrast ΔY is within the specific range SR as the value of the pixel, The value of the pixel can be prevented from being changed by unsharp masking.

さらに、上記第2実施例では、図5の周辺範囲CA(a−1、b)内の11個の列C(a−6)〜列(a+4)のそれぞれについて特定済の11個の最大輝度値YVmx(a−6)〜YVmx(a+4)と、11個の最小輝度値YVmn(a−6)〜YVmn(a+4)と、を用いて、周辺範囲CA(a−1、b)内の最大輝度値Ymxおよび最小輝度値Ymnとが特定される(S225)。そして、周辺範囲CA(a−1、b)内の最大輝度値Ymxおよび最小輝度値Ymnを用いて、画素P(a−1、b)について、コントラストΔYが特定範囲SR内であるか否かが判断される(S235)。そして、図5の周辺範囲CA(a−1、b)に対して+X方向に隣接し、+Y方向に沿って並ぶ11個の画素を含む列C(a+5)の最大輝度値YVmx(a+5)と最小輝度値YVmn(a+5)とが特定される(S260)。図5の周辺範囲CA(a、b)内の11個の列C(a−5)〜列(a+5)のそれぞれについて特定済の11個の最大輝度値YVmx(a−5)〜YVmx(a+5)と、11個の最小輝度値YVmn(a−5)〜YVmn(a+5)と、を用いて、周辺範囲CA(a、b)内の最大輝度値Ymxおよび最小輝度値Ymnとが特定される(S225)。11個の最大輝度値YVmx(a−5)〜YVmx(a+5)は、前回のS225で用いられた11個の最大輝度値YVmx(a−6)〜YVmx(a+4)のうち、周辺範囲CA(a−1、b)内の−X方向の端に位置する1個の列C(a−6)の値を除く、10個の最大輝度値YVmx(a−5)〜YVmx(a+4)と、その後のS260にて特定された1個の最大輝度値YVmx(a+5)である。11個の最小輝度値YVmn(a−5)〜YVmn(a+5)は、前回のS225で用いられた11個の最小輝度値YVmn(a−6)〜YVmn(a+4)のうち、周辺範囲CA(a−1、b)内の−X方向の端に位置する1個の列C(a−6)の値を除く、10個の最小輝度値YVmn(a−5)〜YVmn(a+4)と、その後のS260にて特定された1個の最小輝度値YVmn(a+5)である。そして、これらの値YVmn(a−5)〜YVmn(a+5)、YVmn(a−5)〜YVmn(a+5)を用いて、周辺範囲CA(a、b)内の最大輝度値Ymxおよび最小輝度値Ymnが特定される(S225)。そして、特定された周辺範囲CA(a、b)内の最大輝度値Ymxおよび最小輝度値Ymnを用いて、画素P(a、b)について、コントラストΔYが特定範囲SR内であるか否かが判断される(S235)。この結果、マスクデータが生成される際に、元画像OI内の複数個の画素のそれぞれについて、コントラストΔYが特定範囲SR内であるか否かの判断の処理時間を短縮できる。   Furthermore, in the second embodiment, the eleven maximum luminances specified for each of the eleven columns C (a-6) to (a + 4) in the peripheral range CA (a-1, b) of FIG. Using the values YVmx (a-6) to YVmx (a + 4) and the 11 minimum luminance values YVmn (a-6) to YVmn (a + 4), the maximum in the peripheral range CA (a-1, b) The luminance value Ymx and the minimum luminance value Ymn are identified (S225). Then, using the maximum luminance value Ymx and the minimum luminance value Ymn in the peripheral range CA (a-1, b), whether or not the contrast ΔY is within the specific range SR for the pixel P (a-1, b) Is determined (S235). Then, the maximum luminance value YVmx (a + 5) of a column C (a + 5) including 11 pixels adjacent to the peripheral range CA (a-1, b) in FIG. 5 along the + Y direction and adjacent to the peripheral range CA (a-1, b) The minimum luminance value YVmn (a + 5) is specified (S260). Eleven maximum luminance values YVmx (a-5) to YVmx (a + 5) specified for each of the eleven columns C (a-5) to (a + 5) in the peripheral range CA (a, b) of FIG. 5 And the 11 minimum luminance values YVmn (a-5) to YVmn (a + 5), the maximum luminance value Ymx and the minimum luminance value Ymn in the peripheral range CA (a, b) are identified. (S225). The eleven maximum luminance values YVmx (a-5) to YVmx (a + 5) are the peripheral range CA (of the eleven maximum luminance values YVmx (a-6) to YVmx (a + 4) used in the previous S225). Ten maximum luminance values YVmx (a-5) to YVmx (a + 4) excluding the values of one column C (a-6) located at the end in the -X direction in a-1, b); This is one maximum luminance value YVmx (a + 5) specified in S260 thereafter. The eleven minimum luminance values YVmn (a-5) to YVmn (a + 5) are the peripheral range CA of the eleven minimum luminance values YVmn (a-6) to YVmn (a + 4) used in the previous S225. Ten minimum luminance values YVmn (a-5) to YVmn (a + 4) excluding the values of one column C (a-6) located at the end in the -X direction in a-1, b), This is one minimum luminance value YVmn (a + 5) specified in the subsequent S260. Then, using these values YVmn (a-5) to YVmn (a + 5) and YVmn (a-5) to YVmn (a + 5), the maximum luminance value Ymx and the minimum luminance value in the peripheral range CA (a, b) Ymn is identified (S225). Then, using the maximum luminance value Ymx and the minimum luminance value Ymn in the specified peripheral range CA (a, b), whether or not the contrast ΔY is within the specific range SR for the pixel P (a, b) It is determined (S235). As a result, when mask data is generated, the processing time for determining whether the contrast ΔY is within the specific range SR can be shortened for each of the plurality of pixels in the original image OI.

さらに、上述したように、特定範囲SRは、コントラストΔYが下側閾値TH1より小さい範囲(ΔY<TH1)と、コントラストΔYが上側閾値TH2より大きい範囲(ΔY>TH2)である。この結果、上述したアンシャープマスク処理に起因する画質の低下を抑制できる。変形例としては、特定範囲SRは、ΔY<TH1の範囲のみであっても良く、ΔY>TH2の範囲のみであっても良い。換言すれば、特定範囲SRは、ΔY<TH1の範囲と、ΔY>TH2の範囲と、の少なくとも一方の範囲であることが好ましい。   Furthermore, as described above, the specific range SR is a range in which the contrast ΔY is smaller than the lower threshold TH1 (ΔY <TH1) and a range in which the contrast ΔY is larger than the upper threshold TH2 (ΔY> TH2). As a result, it is possible to suppress the deterioration of the image quality caused by the unsharp mask processing described above. As a modification, the specific range SR may be only in the range of ΔY <TH1, or may be only in the range of ΔY> TH2. In other words, the specific range SR is preferably at least one of the range of ΔY <TH1 and the range of ΔY> TH2.

C.変形例:
(1)上記各実施例では、周辺範囲CA(a、b)は、(11×11)個の画素の含む正方形の範囲であるが、これに限られない。一般的には、周辺範囲CA(a、b)は、(M×N)個(M、Nは、2以上の整数)の画素を含む矩形の範囲であって、+X方向の画素数がM個であり、+Y方向の画素数がN個である、矩形の範囲であることが好ましい。例えば、周辺範囲CAは、(9×9)個の画素を含む正方形の範囲であっても良く、(5×7)個の画素を含む長方形の範囲であっても良い。
C. Modification:
(1) In the above embodiments, the peripheral range CA (a, b) is a square range including (11 × 11) pixels, but is not limited to this. In general, the peripheral range CA (a, b) is a rectangular range including (M × N) (M and N are integers of 2 or more) pixels, and the number of pixels in the + X direction is M It is preferable that it is a rectangular range in which the number of pixels is N and the number of pixels in the + Y direction is N. For example, the peripheral range CA may be a square range including (9 × 9) pixels, or may be a rectangular range including (5 × 7) pixels.

ここで、本実施例によるマスクデータを生成するための処理時間を、各画素について周辺範囲CA内の全ての画素の値を1個ずつ加算することによって周辺合計値TMを算出する比較例と比較した結果を示す。周辺範囲CA(a、b)が、(Q×Q)個の正方形(Qは、2以上12以下の整数)である場合について、処理時間を調査した結果、比較例に対する本実施例の処理時間は、Q=2〜12である場合に、それぞれ、おおよそ1、1/1.8、1/2.7、1/3.6、1/4.5、1/5.4、1/6.4、1/7.4、1/8.3、1/9.3、1/10.3であった。この結果から、周辺範囲CA(a、b)のサイズ(M×N)について、Mは、3以上の整数であり、Nは、3以上の整数であることが好ましい。この場合に、効果的に処理時間を短縮できる。また、M、Nが大きくなるほど、処理時間を短縮できる度合いが大きくなることが解った。   Here, the processing time for generating mask data according to the present embodiment is compared with the comparative example in which the peripheral total value TM is calculated by adding the values of all the pixels within the peripheral range CA one by one for each pixel. Show the results. As a result of investigating processing time about a case where peripheral range CA (a, b) is (Q x Q) pieces of squares (Q is an integer of 2 or more and 12 or less), processing time of this example relative to the comparative example Is approximately 1, 1 / 1.8, 1 / 2.7, 1 / 3.6, 1 / 4.5, 1 / 5.4, 1/6 when Q = 2 to 12, respectively. It was .4, 1 / 7.4, 1 / 8.3, 1 / 9.3, 1 / 10.3. From this result, it is preferable that M is an integer of 3 or more and N is an integer of 3 or more for the size (M × N) of the peripheral range CA (a, b). In this case, the processing time can be effectively shortened. Also, it was found that as M and N become larger, the degree to which the processing time can be shortened becomes larger.

(2)上記各実施例のマスクデータ生成処理では、+X方向に沿う1本のラインについて、−X方向の端から+X方向に向かって、順次に注目画素TP(a、b)が選択され、当該ラスタラインの+X方向の最終画素について処理が終了した後に、当該ラインの+Y方向に隣接するライン上の画素について処理を行っている。これに代えて、+Y方向に沿う1本のラインについて、−Y方向の端から+Y方向に向かって、順次に注目画素TP(a、b)が選択され、当該ラインの+Y方向の最終画素について処理が終了した後に、当該ラインの+X方向に隣接するライン上の画素について処理を行っても良い。 (2) In the mask data generation process of each of the above embodiments, the target pixel TP (a, b) is sequentially selected from the end in the −X direction toward the + X direction for one line along the + X direction, After the processing of the final pixel in the + X direction of the raster line is completed, the processing is performed on the pixels on the line adjacent to the + Y direction of the line. Instead of this, for one line along the + Y direction, the pixel of interest TP (a, b) is sequentially selected from the end in the −Y direction toward the + Y direction, and the final pixel in the + Y direction of the line After the processing is completed, processing may be performed on pixels on the line adjacent to the + X direction of the line.

(3)上記第2実施例では、元画像OI内の各画素について、コントラストΔYが特定範囲SR内であるか否かの判断を、マスクデータ生成処理にてマスクデータを生成する際に行っている。これに代えて、図7の鮮鋭化処理において、各画素について、コントラストΔYが特定範囲SR内であるか否かの判断を実行し、コントラストΔYが特定範囲SR内であると判断された画素に対してアンシャープマスク処理を実行せず、コントラストΔYが特定範囲SR内でないと判断された画素に対してアンシャープマスク処理を実行しても良い。 (3) In the second embodiment, whether or not the contrast ΔY is within the specific range SR is determined when generating mask data in the mask data generation process for each pixel in the original image OI. There is. Instead of this, in the sharpening process of FIG. 7, for each pixel, it is determined whether or not the contrast ΔY is within the specific range SR, and the pixel determined that the contrast ΔY is within the specific range SR On the other hand, the unsharp mask processing may be performed on the pixels for which the contrast ΔY is determined not to be within the specific range SR without performing the unsharp mask processing.

(4)上記各実施例では、図2のS40にて生成された処理済画像データの出力は、該処理済画像データを用いて複合機100を制御して(すなわち、印刷ジョブを生成して該印刷ジョブを複合機100に送信して)、処理済画像を複合機100に印刷させる形態で実現される。これに代えて、S40にて生成された処理済画像データの出力は、該処理済画像データを不揮発性記憶装置220に出力して、該処理済画像データを不揮発性記憶装置220に保存することであっても良いし、該処理済画像データを他の装置、例えば、保存サーバや他の端末装置に送信することであっても良い。 (4) In the above embodiments, the output of the processed image data generated in S40 of FIG. 2 is controlled by using the processed image data to control the MFP 100 (ie, generate a print job). The print job is transmitted to the multifunction peripheral 100), and the processed image is printed on the multifunction peripheral 100. Alternatively, the processed image data generated at S40 may be output to the non-volatile storage device 220 and the processed image data may be stored in the non-volatile storage device 220. Alternatively, the processed image data may be transmitted to another device such as a storage server or another terminal device.

(5)アンシャープマスク処理で調整される色成分は、RGBの3個の色成分に代えて、他の種々の色成分を採用可能である。例えば、輝度成分を採用してもよい。CPU210は、例えば、元画像データとして、YCbCr色空間の色値を表す画像データを生成し、当該画像データの各画素のY成分の色値(すなわち、輝度値)についてマスクデータを生成しても良い。そして、CPU210は、そして、当該画像データのY成分の色値(すなわち、輝度値)をアンシャープマスク処理で調整してもよい。 (5) As the color components adjusted by the unsharp mask processing, other various color components can be adopted instead of the three color components of RGB. For example, a luminance component may be employed. The CPU 210 generates, for example, image data representing color values in the YCbCr color space as original image data, and generates mask data for the color value (that is, luminance value) of the Y component of each pixel of the image data. good. Then, the CPU 210 may adjust the color value (that is, the luminance value) of the Y component of the image data by unsharp mask processing.

(6)図2の印刷処理を実行する画像処理装置としての計算機200は、パーソナルコンピュータとは異なる種類の装置、例えば、複合機100、デジタルカメラ、スキャナ、スマートフォンであってもよい。複合機100が図2の印刷処理を実行する場合には、処理済画像データを用いる印刷は、例えば、複合機100のプリンタ部130を用いて実行される。また、図2の印刷処理を実行する画像処理装置は、例えば、ユーザの端末や複合機100から元画像データを取得して画像処理を実行するサーバであっても良い。このようなサーバは、ネットワークを介して互いに通信可能な複数個の計算機が、画像処理装置としての機能を一部ずつ分担して、全体として、一の画像処理の機能を実現してもよい。この場合には、ネットワークを介して互いに通信可能な複数個の計算機の全体が、画像処理装置に対応する。 (6) The computer 200 as an image processing apparatus that executes the printing process of FIG. 2 may be an apparatus of a type different from that of a personal computer, such as the multifunction peripheral 100, a digital camera, a scanner, or a smartphone. When the MFP 100 executes the printing process of FIG. 2, printing using processed image data is performed using, for example, the printer unit 130 of the MFP 100. Further, the image processing apparatus that executes the printing process of FIG. 2 may be, for example, a server that acquires original image data from a user terminal or the multifunction peripheral 100 and executes image processing. In such a server, a plurality of computers that can communicate with each other via a network may share the function of the image processing apparatus one by one to realize one image processing function as a whole. In this case, the plurality of computers that can communicate with each other via the network correspond to the image processing apparatus.

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

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

100...複合機、110...制御部、110...CPU、120...スキャナ部、130...プリンタ部、200...計算機、210...CPU、220...不揮発性記憶装置、230...揮発性記憶装置、231...バッファ領域、260...操作部、270...表示部、280...通信部、YVmx...最大輝度値、YVmn...最小輝度値、ΔY...コントラスト、CA...周辺範囲、MD...マスクデータ、OI...元画像、TM...周辺合計値、CP...コンピュータプログラム、SR...特定範囲、CA...周辺範囲   100: MFP, 110: control unit, 110: CPU, 120: scanner unit, 130: printer unit, 200: computer, 210: CPU, 220: Nonvolatile storage device 230 Volatile storage device 231 Buffer area 260 Operation unit 270 Display unit 280 Communication unit YVmx Maximum luminance value YVmn: minimum luminance value, ΔY: contrast, CA: peripheral range, MD: mask data, OI: original image, TM: peripheral total value, CP: computer program, SR ... specific range, CA ... peripheral range

Claims (9)

元画像を表す元画像データを取得する取得部と、
前記元画像に含まれる複数個の画素のそれぞれについて、その画素を含む周辺範囲内の(M×N)個(M、Nは、2以上の整数)の画素の値の平均値を、その画素に対応するマスクデータとして算出するマスク生成部であって、前記周辺範囲は、第1方向の画素数がM個であり、前記第1方向と交差する第2方向の画素数がN個である矩形の範囲である、前記マスク生成部と、
前記元画像に含まれる複数個の画素のそれぞれに対して、対応する前記マスクデータを用いてアンシャープマスク処理を実行することによって、処理済画像データを生成するアンシャープマスク処理部と、
を備え、
前記マスク生成部は、
第1画素の前記周辺範囲である第1範囲内の(M×N)個の画素の値の合計である第1値を用いて、前記第1画素に対応する第1のマスクデータを算出し、
前記第1範囲内の(M×N)個の画素のうち、前記第1方向の反対方向の端に位置し、前記第2方向に沿って並ぶN個の画素の値の合計である第2値を算出し、
前記第1範囲に対して前記第1方向に隣接し、前記第2方向に沿って並ぶN個の画素の値の合計である第3値を算出し、
前記第1値に対して、前記第2値を減算し、前記第3値を加算することによって、前記第1画素の前記第1方向に隣接する第2画素の前記周辺範囲である第2範囲内の(M×N)個の画素の値の合計である第4値を算出し、
前記第4値を用いて、前記第2画素に対応する第2のマスクデータを算出し、
前記アンシャープマスク処理部は、前記元画像内の複数個の画素のうち、前記周辺範囲内の複数個の画素の最大輝度値と最小輝度値との差分が特定範囲内である画素について、画素の値を変更しない、画像処理装置。
An acquisition unit for acquiring original image data representing an original image;
For each of the plurality of pixels included in the original image, the average value of (M × N) (M and N are integers of 2 or more) pixels within the peripheral range including the pixel is Mask generation unit that calculates mask data corresponding to the image data, the peripheral range has M pixels in a first direction, and N pixels in a second direction that intersects the first direction. The mask generation unit being a rectangular range;
An unsharp mask processing unit that generates processed image data by performing unsharp mask processing on each of a plurality of pixels included in the original image using the corresponding mask data;
Equipped with
The mask generation unit
Calculating a first mask data corresponding to the first pixel using a first value which is a sum of values of (M × N) pixels in the first range which is the peripheral range of the first pixel; ,
A second one of (M × N) pixels in the first range, which is a sum of values of N pixels located at an end in the opposite direction of the first direction and aligned in the second direction. Calculate the value,
Calculating a third value which is a sum of values of N pixels adjacent to the first range in the first direction and arranged along the second direction;
A second range which is the peripheral range of the second pixel adjacent to the first direction of the first pixel by subtracting the second value from the first value and adding the third value. Calculate the fourth value which is the sum of the values of (M × N) pixels within
Calculating second mask data corresponding to the second pixel using the fourth value ;
The unsharp mask processing unit is configured to determine whether the difference between the maximum luminance value and the minimum luminance value of the plurality of pixels in the peripheral range is within a specific range among the plurality of pixels in the original image. Image processing device that does not change the value of .
請求項に記載の画像処理装置であって、
前記マスク生成部は、
前記元画像に含まれる複数個の画素のそれぞれについて、前記マスクデータを算出する際に、前記マスクデータに対応する画素について、前記差分が前記特定範囲内であるか否かを判断し、
前記差分が前記特定範囲内でない画素に対応する前記マスクデータを、その画素の前記周辺範囲内の画素の値の平均値に決定し、
前記差分が前記特定範囲内である画素に対応する前記マスクデータを、その画素の値に決定する、画像処理装置。
The image processing apparatus according to claim 1 , wherein
The mask generation unit
When calculating the mask data for each of a plurality of pixels included in the original image, it is determined whether the difference is within the specific range for the pixel corresponding to the mask data,
The mask data corresponding to a pixel whose difference is not within the specific range is determined as an average value of pixel values within the peripheral range of the pixel,
The image processing apparatus, wherein the mask data corresponding to a pixel whose difference is within the specific range is determined as a value of the pixel.
請求項または請求項に記載の画像処理装置であって、
前記マスク生成部は、
前記第1範囲内のM個の画素群であって、前記第2方向に沿って並ぶN個の画素をそれぞれ含む前記M個の画素群のそれぞれについて特定済のM個の最大輝度値とM個の最小輝度値とを用いて、前記第1範囲内の最大輝度値および最小輝度値とを特定し、
特定される前記第1範囲内の最大輝度値および最小輝度値を用いて、前記第1画素について、前記差分が前記特定範囲内であるか否かを判断し、
前記第1範囲に対して前記第1方向に隣接し、前記第2方向に沿って並ぶN個の画素を含む一の画素群の最大輝度値と最小輝度値とを特定し、
前記特定済のM個の最大輝度値とM個の最小輝度値のうち、前記第1範囲内の前記第1方向の反対方向の端に位置する1個の画素群の値を除く(M−1)個の最大輝度値と(M−1)個の最小輝度値と、前記第1範囲に対して前記第1方向に隣接する前記一の画素群について特定された最大輝度値と最小輝度値と、を用いて、前記第2範囲内の最大輝度値および最小輝度値とを特定し、
特定される前記第2範囲内の最大輝度値および最小輝度値を用いて、前記第2画素について、前記差分が前記特定範囲内であるか否かを判断する、画像処理装置。
An image processing apparatus according to claim 1 or 2 , wherein
The mask generation unit
A M number of pixel groups in the first range, the M of the maximum luminance value of the particular already for each of the second way the M pixel group including N pixels arranged along the direction respectively Identifying the maximum brightness value and the minimum brightness value within the first range using M minimum brightness values;
Using the maximum luminance value and minimum luminance value within the first range specified for the first stroke element, the difference is determined whether or not it is within the specified range,
Identifying a maximum luminance value and a minimum luminance value of one pixel group including N pixels adjacent to the first range in the first direction and arranged along the second direction;
Of the M maximum luminance values and the M minimum luminance values that have been identified, the value of one pixel group located at the opposite end of the first direction within the first range is excluded (M− 1) Maximum luminance values and minimum luminance values specified for one pixel group adjacent to the first range in the first direction with respect to the maximum luminance values and the (M-1) minimum luminance values And identifying the maximum luminance value and the minimum luminance value within the second range,
Using the maximum luminance value and minimum luminance value in the second range specified for the second stroke element, the difference is judged whether it is within the specified range, the image processing apparatus.
請求項に記載の画像処理装置であって、
前記差分の前記特定範囲は、前記差分が第1の基準より小さい範囲と、前記差分が第2の基準より大きい範囲と、の少なくとも一方の範囲である、画像処理装置。
The image processing apparatus according to claim 3 ,
The image processing apparatus, wherein the specified range of the difference is at least one of a range in which the difference is smaller than a first reference and a range in which the difference is larger than a second reference.
請求項1から請求項4のいずれかに記載の画像処理装置であって、
前記マスク生成部は、
前記第1範囲内の(M×N)個の画素のうち、前記第2方向の反対方向の端に位置し、前記第1方向に沿って並ぶM個の画素の値の合計である第5値を算出し、
前記第1範囲に対して前記第2方向に隣接し、前記第1方向に沿って並ぶM個の画素の値の合計である第6値を算出し、
前記第1値に対して、前記第5値を減算し、前記第6値を加算することによって、前記第1画素の前記第2方向に隣接する第3画素の前記周辺範囲である第3範囲内の(M×N)個の画素の値の合計である第7値を算出し、
前記第7値を用いて、前記第3画素に対応する第3のマスクデータを算出する、画像処理装置。
The image processing apparatus according to any one of claims 1 to 4 , wherein
The mask generation unit
A fifth one of the (M × N) pixels in the first range is a sum of values of M pixels located at an end in the opposite direction of the second direction and aligned along the first direction. Calculate the value,
A sixth value is calculated, which is a sum of values of M pixels adjacent to the first range in the second direction and aligned along the first direction,
A third range which is the peripheral range of the third pixel adjacent to the second direction of the first pixel by subtracting the fifth value from the first value and adding the sixth value. Calculate a seventh value which is the sum of the values of (M × N) pixels within
The image processing device which calculates the 3rd mask data corresponding to the 3rd pixel using the 7th value.
請求項1から請求項5のいずれかに記載の画像処理装置であって、
Mは、3以上の整数であり、Nは、3以上の整数である、画像処理装置。
The image processing apparatus according to any one of claims 1 to 5 , wherein
An image processing apparatus, wherein M is an integer of 3 or more and N is an integer of 3 or more.
請求項1から請求項のいずれかに記載の画像処理装置であって、
前記マスク生成部は、
前記第1画素と前記第2画素とを含む前記第1方向に沿って並ぶL個(Lは、M以上の整数)の画素を1個ずつ含むL個の画素群であって、L個の画素の前記周辺範囲のいずれかに含まれる前記第2方向に沿って並ぶN個の画素をそれぞれ含む、前記L個の画素群のそれぞれについて、各画素群に含まれるN個の画素の合計値を算出し、
前記L個の画素群のL個の合計値を用いた加算処理と減算処理とによって、前記L個の画素に対応するL個のマスクデータを算出する、画像処理装置。
The image processing apparatus according to any one of claims 1 to 6 , wherein
The mask generation unit
L pixel groups each including L (where L is an integer of M or more) pixels aligned in the first direction including the first pixel and the second pixel, wherein L pixels are included; A total value of N pixels included in each pixel group for each of the L pixel groups including N pixels aligned in the second direction included in any of the peripheral range of pixels Calculate
The image processing apparatus calculates L mask data corresponding to the L pixels by addition processing and subtraction processing using L total values of the L pixel groups.
請求項1から請求項のいずれかに記載の画像処理装置であって、
前記マスク生成部は、
前記第1値を用いて、前記第1のマスクデータを算出した後に、前記第1値をメモリから消去し、
前記第1値を消去した後に、前記第4値を算出する際に、前記第1のマスクデータを(M×N)倍することによって、前記第1値を算出する、画像処理装置。
The image processing apparatus according to any one of claims 1 to 6 , wherein
The mask generation unit
After calculating the first mask data using the first value, the first value is erased from the memory,
The image processing apparatus, wherein the first value is calculated by multiplying the first mask data by (M × N) when calculating the fourth value after erasing the first value.
元画像を表す元画像データを取得する取得機能と、
前記元画像に含まれる複数個の画素のそれぞれについて、その画素を含む周辺範囲内の(M×N)個(M、Nは、2以上の整数)の画素の値の平均値を、その画素に対応するマスクデータとして算出するマスク生成機能であって、前記周辺範囲は、第1方向の画素数がM個であり、前記第1方向と交差する第2方向の画素数がN個である矩形の範囲である、前記マスク生成機能と、
前記元画像に含まれる複数個の画素のそれぞれに対して、対応する前記マスクデータを用いてアンシャープマスク処理を実行することによって、処理済画像データを生成するアンシャープマスク処理機能と、
をコンピュータに実現させ、
前記マスク生成機能は、
第1画素の前記周辺範囲である第1範囲内の(M×N)個の画素の値の合計である第1値を用いて、前記第1画素に対応する第1のマスクデータを算出し、
前記第1範囲内の(M×N)個の画素のうち、前記第1方向の反対方向の端に位置し、前記第2方向に沿って並ぶN個の画素の値の合計である第2値を算出し、
前記第1範囲に対して前記第1方向に隣接し、前記第2方向に沿って並ぶN個の画素の値の合計である第3値を算出し、
前記第1値に対して、前記第2値を減算し、前記第3値を加算することによって、前記第1画素の前記第1方向に隣接する第2画素の前記周辺範囲である第2範囲内の(M×N)個の画素の値の合計である第4値を算出し、
前記第4値を用いて、前記第2画素に対応する第2のマスクデータを算出し、
前記アンシャープマスク処理機能は、前記元画像内の複数個の画素のうち、前記周辺範囲内の複数個の画素の最大輝度値と最小輝度値との差分が特定範囲内である画素について、画素の値を変更しない、コンピュータプログラム。
An acquisition function of acquiring original image data representing an original image;
For each of the plurality of pixels included in the original image, the average value of (M × N) (M and N are integers of 2 or more) pixels within the peripheral range including the pixel is A mask generation function for calculating mask data corresponding to the image data, wherein the peripheral range has M pixels in a first direction and N pixels in a second direction intersecting the first direction. Said mask generation function being a rectangular range;
An unsharp mask processing function of generating processed image data by performing unsharp mask processing on each of a plurality of pixels included in the original image using the corresponding mask data;
On a computer,
The mask generation function is
Calculating a first mask data corresponding to the first pixel using a first value which is a sum of values of (M × N) pixels in the first range which is the peripheral range of the first pixel; ,
A second one of (M × N) pixels in the first range, which is a sum of values of N pixels located at an end in the opposite direction of the first direction and aligned in the second direction. Calculate the value,
Calculating a third value which is a sum of values of N pixels adjacent to the first range in the first direction and arranged along the second direction;
A second range which is the peripheral range of the second pixel adjacent to the first direction of the first pixel by subtracting the second value from the first value and adding the third value. Calculate the fourth value which is the sum of the values of (M × N) pixels within
Calculating second mask data corresponding to the second pixel using the fourth value ;
The unsharp mask processing function is performed on pixels for which the difference between the maximum luminance value and the minimum luminance value of the plurality of pixels in the peripheral range is within the specific range among the plurality of pixels in the original image. A computer program that does not change the value of .
JP2015128740A 2015-06-26 2015-06-26 Image processing apparatus and computer program Active JP6500638B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015128740A JP6500638B2 (en) 2015-06-26 2015-06-26 Image processing apparatus and computer program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015128740A JP6500638B2 (en) 2015-06-26 2015-06-26 Image processing apparatus and computer program

Publications (2)

Publication Number Publication Date
JP2017017374A JP2017017374A (en) 2017-01-19
JP6500638B2 true JP6500638B2 (en) 2019-04-17

Family

ID=57828256

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015128740A Active JP6500638B2 (en) 2015-06-26 2015-06-26 Image processing apparatus and computer program

Country Status (1)

Country Link
JP (1) JP6500638B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11727540B2 (en) 2020-12-31 2023-08-15 Samsung Electronics Co., Ltd. Image sharpening
US12450704B2 (en) 2022-10-11 2025-10-21 Samsung Electronics Co., Ltd. Machine learning model training using synthetic data for under-display camera (UDC) image restoration
US12511867B2 (en) 2022-10-11 2025-12-30 Samsung Electronics Co., Ltd. Machine learning model training using synthetic data for under-display camera (UDC) image restoration

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3449860B2 (en) * 1996-06-28 2003-09-22 大日本スクリーン製造株式会社 Image sharpness processing device
JPH10200756A (en) * 1996-11-18 1998-07-31 Seiko Epson Corp Image processing apparatus, image processing method, and medium recording image processing program
JPH10208035A (en) * 1997-01-16 1998-08-07 Hitachi Ltd Image processor, image processing device, and image processing method
JPH1127533A (en) * 1997-07-07 1999-01-29 Dainippon Screen Mfg Co Ltd Contour emphasis method and its device
JP5779089B2 (en) * 2011-12-28 2015-09-16 株式会社ドワンゴ Edge detection apparatus, edge detection program, and edge detection method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11727540B2 (en) 2020-12-31 2023-08-15 Samsung Electronics Co., Ltd. Image sharpening
US12450704B2 (en) 2022-10-11 2025-10-21 Samsung Electronics Co., Ltd. Machine learning model training using synthetic data for under-display camera (UDC) image restoration
US12511867B2 (en) 2022-10-11 2025-12-30 Samsung Electronics Co., Ltd. Machine learning model training using synthetic data for under-display camera (UDC) image restoration

Also Published As

Publication number Publication date
JP2017017374A (en) 2017-01-19

Similar Documents

Publication Publication Date Title
KR101248858B1 (en) Image processing apparatus and image processing method
JP6781406B2 (en) Image processing equipment and computer programs
JP6127877B2 (en) Image processing apparatus and computer program
JP6417851B2 (en) Image processing apparatus and computer program
JP6248755B2 (en) Image processing apparatus and computer program
JP6747224B2 (en) Image processing device and computer program
JP6500638B2 (en) Image processing apparatus and computer program
JP6747103B2 (en) Image processing device and computer program
JP6341085B2 (en) Image processing apparatus and computer program
JP6031921B2 (en) Image processing apparatus and program
JP4189654B2 (en) Image processing device
JP6736299B2 (en) Printing device, printing method, and program
JP5990217B2 (en) Image processing apparatus, image forming apparatus, and control method thereof
JP2018147199A (en) Image processing device, and computer program
JP6418055B2 (en) Image processing apparatus and computer program
JP6834559B2 (en) Image processing program and image processing equipment
JP6781398B2 (en) Image processing equipment and computer programs
JP7031763B2 (en) Image processing program and image processing equipment
JP5949399B2 (en) Image processing apparatus and program
JP2018148378A (en) Image processing device and computer program
JP4375223B2 (en) Image processing apparatus, image processing method, and image processing program
JP6693701B2 (en) Image processing apparatus, image forming apparatus, image processing method, and computer program
JP6841254B2 (en) Image processing equipment and computer programs
JP2018174418A (en) Image processing apparatus and computer program
JP6724683B2 (en) Image processing device and computer program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180329

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20180815

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20181012

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20190219

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190304

R150 Certificate of patent or registration of utility model

Ref document number: 6500638

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150