JP2017163178A - Image processing apparatus and averaging processing method - Google Patents

Image processing apparatus and averaging processing method Download PDF

Info

Publication number
JP2017163178A
JP2017163178A JP2016043026A JP2016043026A JP2017163178A JP 2017163178 A JP2017163178 A JP 2017163178A JP 2016043026 A JP2016043026 A JP 2016043026A JP 2016043026 A JP2016043026 A JP 2016043026A JP 2017163178 A JP2017163178 A JP 2017163178A
Authority
JP
Japan
Prior art keywords
pixel
dither matrix
averaging
image data
pattern
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2016043026A
Other languages
Japanese (ja)
Inventor
鷲尾 宏司
Koji Washio
宏司 鷲尾
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.)
Konica Minolta Inc
Original Assignee
Konica Minolta Inc
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 Konica Minolta Inc filed Critical Konica Minolta Inc
Priority to JP2016043026A priority Critical patent/JP2017163178A/en
Publication of JP2017163178A publication Critical patent/JP2017163178A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Facsimile Image Signal Circuits (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an averaging processing with high versatility and expandability.SOLUTION: An image processing apparatus comprises: an averaging processing part that inputs image data at a constant region unit as a center of each pixel, and outputs an average value of a pixel value of each pixel in an averaged pattern as a pixel value of a center pixel of the constant region by verifying the constant region with the averaged pattern; and a screen processing part that periodically verifies each pixel of the averaged image data to a dither matrix, and is made into multi-value data. The averaging processing part determines a shift amount up to the center pixel of the dither matrix to which each pixel belongs from a position of each pixel in the image data by using the averaged pattern of a size and a form similar to the dither matrix, shifts the position of the averaged pattern from the position where the center pixel of the averaged pattern and the center pixel of the constant region are matched by the determined shift amount, and averages the pixel value of each pixel of the post-shift averaged pattern.SELECTED DRAWING: Figure 3

Description

本発明は、画像処理装置及び平均化処理方法に関する。   The present invention relates to an image processing apparatus and an averaging processing method.

複写機等の画像形成装置においては、中間調を再現するため、画像データにディザ法等を用いたスクリーン処理を施すことが一般的である。スクリーン処理後の画像データにより形成される画像は周期構造を有し、モアレが生じやすいため、従来は画像の周期構造を崩すことを目的として、画像データに移動平均処理を施していた。   In an image forming apparatus such as a copying machine, screen processing using a dither method or the like is generally performed on image data in order to reproduce halftones. Since an image formed from image data after screen processing has a periodic structure and moire tends to occur, conventionally, moving average processing has been applied to image data for the purpose of breaking the periodic structure of the image.

しかしながら、移動平均処理は、画像の周期構造だけでなく画像のディテールも平均化してしまうため、鮮鋭性が低下することがあった。
そこで、スクリーン処理により周期的に形成される1次元又は2次元のパターンと同じ平均化パターン内で画素値を平均化することにより、画像のディテールを維持しながら画像の周期構造を崩すことができる平均化処理が提案されている(例えば、特許文献1及び2参照。)。
However, since the moving average process averages not only the periodic structure of the image but also the detail of the image, the sharpness may deteriorate.
Therefore, by averaging the pixel values within the same average pattern as the one-dimensional or two-dimensional pattern periodically formed by the screen processing, the periodic structure of the image can be destroyed while maintaining the detail of the image. An averaging process has been proposed (see, for example, Patent Documents 1 and 2).

特開2004−364084号公報JP 2004-364084 A 特許第4189598号公報Japanese Patent No. 4189598

一般的に、移動平均処理では、注目画素とその周辺画素の画像データを入力し、それらの平均値を移動平均処理後の注目画素の画素値として出力する。このように、注目画素とその周辺画素の画像データを一度に入力する処理回路には、各ラインの画像データの入力を遅延させるFIFO(First In First Out)を用いることが一般的である。   In general, in moving average processing, image data of a pixel of interest and its surrounding pixels are input, and the average value thereof is output as the pixel value of the pixel of interest after moving average processing. As described above, it is common to use a first in first out (FIFO) that delays the input of the image data of each line in the processing circuit that inputs the image data of the target pixel and its peripheral pixels at a time.

一方、上記従来の平均化処理は、平均化パターン内の各画素の画素値をそれらの平均値に一度に置き換える。いったん平均化処理された画素については、平均化処理後の画素値に上書きするため、処理回路には、通常の移動平均処理のように元の画素値ではなく、平均化処理後の画素値を遅延させて入力するように、FIFOを使用することになる。FIFOの使い方が、元の画素値を遅延させて入力する通常の使い方と異なり、独特であるため、平均化処理用の専用回路として用意する必要があった。
通常どおり、元の画素値を遅延させて入力するようにFIFOを使用できれば、平均化処理以外の他の画像処理でもFIFOを共用でき、コストダウンが可能になる。
On the other hand, the above-described conventional averaging process replaces the pixel values of each pixel in the average pattern at once with their average values. For pixels once averaged, the pixel values after the averaging process are overwritten, so the processing circuit uses the pixel values after the averaging process instead of the original pixel values as in the normal moving average process. A FIFO is used to input data with a delay. Since the use of the FIFO is different from the normal use in which the original pixel value is input after being delayed, it is necessary to prepare a dedicated circuit for the averaging process.
If the FIFO can be used so that the original pixel value is delayed and input as usual, the FIFO can be shared in other image processing other than the averaging processing, and the cost can be reduced.

また、画像のノイズを減らすには、平均化する領域をスクリーン処理により形成される周期的なパターンよりも拡張することが有効である。拡張により平均化パターン同士の重複部分が生じるが、従来の平均化処理では、この重複部分の画素値は先の平均化パターンでの平均化によってすでに平均値に上書きされている。より正確な平均値を得るには、平均化処理後の平均値ではなく、元の画素値を入力する構成が好ましい。   In order to reduce image noise, it is effective to extend the averaged area more than the periodic pattern formed by screen processing. Although the overlapping portions of the averaging patterns are generated by the expansion, in the conventional averaging process, the pixel values of the overlapping portions are already overwritten with the average values by the averaging in the previous averaging pattern. In order to obtain a more accurate average value, it is preferable to input the original pixel value instead of the average value after the averaging process.

さらに、スクリーン処理時には、形状やサイズが異なる複数種類のディザマトリクスを組み合わせたスーパーセルが使用されることがある。従来の平均化処理のように1種類のディザマトリクスではなく、スーパーセルにも対応できる平均化処理が望まれている。   Furthermore, a supercell combining a plurality of types of dither matrices having different shapes and sizes may be used during screen processing. There is a demand for an averaging process that can also handle a supercell rather than a single type of dither matrix as in the conventional averaging process.

本発明の課題は、汎用性及び拡張性の高い平均化処理を提供することである。   An object of the present invention is to provide an averaging process with high versatility and expandability.

請求項1に記載の発明によれば、
画像データを、各画素を中心とする一定領域単位で入力し、入力した一定領域を平均化パターンと照合して前記平均化パターン内の各画素の画素値を平均し、得られた平均値を、前記一定領域の中心画素の画素値として出力する平均化処理部と、
前記平均化処理部により平均化された画像データの各画素をディザマトリクスと周期的に照合し、各画素の画素値を、ディザマトリクス中の閾値と比較することにより多値化するスクリーン処理部と、を備え、
前記平均化処理部は、
前記平均化パターンとして、前記ディザマトリクスと同じサイズ及び形状の平均化パターンを使用し、
前記画像データにおける各画素の位置から、前記ディザマトリクスと照合したときに各画素が所属するディザマトリクスの中心画素までのシフト量を決定し、
前記平均化パターンの位置を、前記平均化パターンの中心画素と前記一定領域の中心画素とが一致する位置から、前記決定したシフト量だけシフトし、シフト後の前記平均化パターン内の各画素の画素値を平均することを特徴とする画像処理装置が提供される。
According to the invention of claim 1,
Image data is input in units of a fixed area centered on each pixel, the input fixed area is compared with the average pattern, the pixel values of each pixel in the average pattern are averaged, and the average value obtained is , An averaging processing unit that outputs as a pixel value of a central pixel of the fixed region;
A screen processing unit that periodically compares each pixel of the image data averaged by the averaging processing unit with a dither matrix, and compares the pixel value of each pixel with a threshold value in the dither matrix; With
The averaging processing unit
As the average pattern, using an average pattern having the same size and shape as the dither matrix,
Determine the shift amount from the position of each pixel in the image data to the center pixel of the dither matrix to which each pixel belongs when collated with the dither matrix,
The position of the average pattern is shifted by the determined shift amount from the position where the central pixel of the average pattern coincides with the central pixel of the certain region, and each pixel in the average pattern after the shift is shifted. An image processing apparatus is provided that averages pixel values.

請求項2に記載の発明によれば、
前記画像データの各画素を前記ディザマトリクスと同じ周期の矩形のブロック単位で分割したときのブロックにおける各画素の位置と、前記各画素の位置から各画素が所属するディザマトリクスの中心画素までのシフト量と、を対応付けて記憶する記憶部を備え、
前記平均化処理部は、前記画像データの各画素を前記ブロック単位で分割したときの各画素のブロックにおける位置を決定し、決定した位置に対応する前記シフト量を前記記憶部から取得することを特徴とする請求項1に記載の画像処理装置が提供される。
According to invention of Claim 2,
The position of each pixel in the block when each pixel of the image data is divided into rectangular blocks having the same cycle as the dither matrix, and the shift from the position of each pixel to the center pixel of the dither matrix to which each pixel belongs A storage unit that stores the amount in association with each other;
The averaging processing unit determines a position in a block of each pixel when each pixel of the image data is divided in units of the block, and acquires the shift amount corresponding to the determined position from the storage unit. An image processing apparatus according to claim 1 is provided.

請求項3に記載の発明によれば、
前記スクリーン処理部は、前記画像データの各画素を複数種類のディザマトリクスの組み合わせであるスーパーセルと周期的に照合し、
前記平均化処理部は、
前記画像データにおける各画素の位置から、前記スーパーセルと照合したときに各画素が所属するディザマトリクスの中心画素までのシフト量と、当該ディザマトリクスの種類とを決定し、
前記決定した種類のディザマトリクスと同じサイズ及び形状の平均化パターンを使用し、当該平均化パターンの位置を、前記平均化パターンの中心画素と前記一定領域の中心画素が一致する位置から、前記決定したシフト量だけシフトし、シフト後の前記平均化パターン内の各画素の画素値を平均することを特徴とする請求項1又は2に記載の画像処理装置が提供される。
According to invention of Claim 3,
The screen processing unit periodically collates each pixel of the image data with a supercell that is a combination of a plurality of types of dither matrices,
The averaging processing unit
Determine the shift amount from the position of each pixel in the image data to the center pixel of the dither matrix to which each pixel belongs when collated with the supercell, and the type of the dither matrix,
The average pattern having the same size and shape as the determined type of dither matrix is used, and the position of the average pattern is determined from the position where the central pixel of the average pattern matches the central pixel of the certain region. The image processing apparatus according to claim 1, wherein the image processing apparatus shifts by the shift amount and averages the pixel values of the pixels in the averaged pattern after the shift.

請求項4に記載の発明によれば、
前記平均化処理部は、前記ディザマトリクスと同じサイズ及び形状の平均化パターンを、前記ディザマトリクスよりも大きいサイズに拡張して使用することを特徴とする請求項1〜3のいずれか一項に記載の画像処理装置が提供される。
According to invention of Claim 4,
The said averaging process part expands and uses the average pattern of the same size and shape as the said dither matrix to a size larger than the said dither matrix, It is any one of Claims 1-3 characterized by the above-mentioned. The described image processing apparatus is provided.

請求項5に記載の発明によれば、
画像データを、各画素を中心とする一定領域単位で入力するステップと、
前記入力した一定領域を平均化パターンと照合して前記平均化パターン内の各画素の画素値を平均し、得られた平均値を、前記一定領域の中心画素の画素値として出力するステップと、を含み、
前記平均化パターン内の各画素の画素値を平均するステップは、前記平均化パターンとして、画像データの各画素をディザマトリクスと周期的に照合し、各画素の画素値を、ディザマトリクス中の閾値と比較することにより多値化するスクリーン処理に使用する前記ディザマトリクスと同じサイズ及び形状の平均化パターンを使用し、
前記画像データにおける各画素の位置から、前記ディザマトリクスと照合したときに各画素が所属するディザマトリクスの中心画素までのシフト量を決定するステップと、
前記平均化パターンの位置を、前記平均化パターンの中心画素と前記一定領域の中心画素が一致する位置から、前記決定したシフト量だけシフトし、シフト後の前記平均化パターン内の各画素の画素値を平均するステップと、
を含むことを特徴とする平均化処理方法が提供される。
According to the invention of claim 5,
Inputting image data in units of a fixed area centered on each pixel;
Collating the input fixed area with an average pattern, averaging the pixel values of each pixel in the average pattern, and outputting the obtained average value as the pixel value of the central pixel of the fixed area; Including
The step of averaging the pixel values of each pixel in the average pattern is performed by periodically comparing each pixel of the image data with a dither matrix as the average pattern, and setting the pixel value of each pixel to a threshold value in the dither matrix. Using an averaged pattern of the same size and shape as the dither matrix used for multi-valued screen processing by comparison with
Determining a shift amount from the position of each pixel in the image data to the center pixel of the dither matrix to which each pixel belongs when collated with the dither matrix;
The position of the average pattern is shifted from the position where the central pixel of the average pattern matches the central pixel of the certain region by the determined shift amount, and the pixel of each pixel in the average pattern after the shift A step of averaging the values;
An averaging processing method is provided.

本発明によれば、汎用性及び拡張性の高い平均化処理を提供することができる。   According to the present invention, it is possible to provide an averaging process with high versatility and expandability.

画像形成装置の主な構成を機能ごとに表すブロック図である。FIG. 2 is a block diagram illustrating a main configuration of an image forming apparatus for each function. 本実施の形態の画像処理装置の主な構成を機能ごとに表すブロック図である。It is a block diagram showing the main structures of the image processing apparatus of this Embodiment for every function. 平均化処理部が、画像データを平均化処理するときの処理手順を示すフローチャートである。It is a flowchart which shows the process sequence when an averaging process part averages image data. 本実施の形態に係る平均化処理に使用できる回路の一例を示す図である。It is a figure which shows an example of the circuit which can be used for the averaging process which concerns on this Embodiment. 非矩形のディザマトリクスの例を示す図である。It is a figure which shows the example of a non-rectangular dither matrix. 図5に示す非矩形のディザマトリクスを変換して得られる、矩形のディザマトリクスを示す図である。FIG. 6 is a diagram showing a rectangular dither matrix obtained by converting the non-rectangular dither matrix shown in FIG. 5. 画像データの各画素に照合したときのディザマトリクスを示す図である。It is a figure which shows the dither matrix when collating with each pixel of image data. 矩形のブロックにおける各画素の位置と、各画素が所属するディザマトリクスとの関係を示す図である。It is a figure which shows the relationship between the position of each pixel in a rectangular block, and the dither matrix to which each pixel belongs. 矩形のブロックにおける各画素の位置を表す位置番号に、所属するディザマトリクスの識別番号と、当該ディザマトリクスの中心画素までのシフト量とを対応付けたテーブルの例を示す図である。It is a figure which shows the example of the table which matched the identification number of the dither matrix to which it belongs to the position number showing the position of each pixel in a rectangular block, and the shift amount to the center pixel of the said dither matrix. 平均化パターンの位置をシフトする前の一定領域を示す図である。It is a figure which shows the fixed area | region before shifting the position of an average pattern. 平均化パターンの位置をシフトした後の一定領域を示す図である。It is a figure which shows the fixed area | region after shifting the position of the average pattern. ディザマトリクスのサイズよりも大きく拡張したときの平均化パターンの例を示す図である。It is a figure which shows the example of the average pattern when it expands larger than the size of a dither matrix. 従来の平均化処理において、主走査方向へのシフトを繰り返して1ライン走査したときの平均化パターンを示す図である。In the conventional averaging process, it is a figure which shows the average pattern when 1 line scanning is repeated by shifting to the main scanning direction. 従来の平均化処理において、主走査方向へのシフトを繰り返して2ライン走査したときの平均化パターンを示す図である。In the conventional averaging process, it is a figure which shows the average pattern when shifting to the main scanning direction is repeated and 2 lines are scanned. 従来の平均化処理において、主走査方向へのシフトを繰り返して7ライン走査したときの平均化パターンを示す図である。In the conventional averaging process, it is a figure which shows the average pattern when seven lines are scanned by repeating the shift to the main scanning direction. 従来の平均化処理に使用できる回路例を示す図である。It is a figure which shows the example of a circuit which can be used for the conventional averaging process. 従来の平均化処理において拡張した平均化パターンを使用した場合に、平均値に上書きされる画素を示す図である。It is a figure which shows the pixel overwritten by an average value, when the averaged pattern extended in the conventional averaging process is used. 非矩形のスーパーセルと、当該スーパーセルを変換して得られる矩形のディザマトリクスの例を示す図である。It is a figure which shows the example of the non-rectangular supercell and the rectangular dither matrix obtained by converting the said supercell. 矩形のブロックにおける各画素の位置と、各画素が所属するディザマトリクスの識別番号と種類番号の関係を示す図である。It is a figure which shows the position of each pixel in a rectangular block, and the relationship between the identification number and kind number of the dither matrix to which each pixel belongs. 矩形のブロックにおける各画素の位置を表す位置番号に、各画素が所属するディザマトリクスの識別番号及び種類番号と、当該ディザマトリクスの中心画素までのシフト量とを対応付けたテーブルの例を示す図である。The figure which shows the example of the table which matched with the position number showing the position of each pixel in a rectangular block the identification number and kind number of the dither matrix to which each pixel belongs, and the shift amount to the center pixel of the said dither matrix. It is.

以下、本発明の画像処理装置及び平均化処理方法の実施の形態について、図面を参照して説明する。   Embodiments of an image processing apparatus and an averaging processing method of the present invention will be described below with reference to the drawings.

図1は、本発明の実施の形態の画像処理装置19を備えた画像形成装置Gの主な構成を機能ごとに表している。
図1に示すように、画像形成装置Gは、制御部11、記憶部12、操作部13、表示部14、通信部15、画像生成部16、画像読取部17、画像メモリー18、画像処理装置19及び画像形成部20を備えている。
FIG. 1 shows a main configuration of an image forming apparatus G including an image processing apparatus 19 according to an embodiment of the present invention for each function.
As shown in FIG. 1, the image forming apparatus G includes a control unit 11, a storage unit 12, an operation unit 13, a display unit 14, a communication unit 15, an image generation unit 16, an image reading unit 17, an image memory 18, and an image processing device. 19 and an image forming unit 20.

制御部11は、CPU(Central Processing Unit)、RAM(Random Access Memory)等を備えて構成され、記憶部12から各種プログラムを読み出して実行することにより、各部を制御する。
例えば、制御部11は、画像生成部16又は画像読取部17により生成され、画像メモリー18に保持された原画像データを、画像処理装置19により画像処理させて、画像処理後の原画像データに基づいて、画像形成部20により用紙上に画像を形成させる。
The control unit 11 includes a CPU (Central Processing Unit), a RAM (Random Access Memory), and the like, and controls each unit by reading and executing various programs from the storage unit 12.
For example, the control unit 11 causes the image processing device 19 to perform image processing on the original image data generated by the image generation unit 16 or the image reading unit 17 and held in the image memory 18, thereby converting the original image data into image-processed original image data. Based on this, an image is formed on the sheet by the image forming unit 20.

記憶部12は、制御部11により読み取り可能なプログラム、プログラムの実行時に用いられるファイル等を記憶している。記憶部12としては、ハードディスク等の大容量メモリーを用いることができる。   The storage unit 12 stores a program that can be read by the control unit 11, a file that is used when the program is executed, and the like. As the storage unit 12, a large-capacity memory such as a hard disk can be used.

操作部13は、ユーザーの操作に応じた操作信号を生成し、制御部11に出力する。操作部13としては、キーパッド、表示部14と一体に構成されたタッチパネル等を用いることができる。   The operation unit 13 generates an operation signal corresponding to a user operation and outputs the operation signal to the control unit 11. As the operation unit 13, a keypad, a touch panel configured integrally with the display unit 14, or the like can be used.

表示部14は、制御部11の指示にしたがって操作画面等を表示する。表示部14としては、LCD(Liquid Crystal Display)、OELD(Organic Electro Luminescence Display)等を用いることができる。   The display unit 14 displays an operation screen and the like according to instructions from the control unit 11. As the display unit 14, an LCD (Liquid Crystal Display), an OELD (Organic Electro Luminescence Display), or the like can be used.

通信部15は、ネットワーク上の外部装置、例えばユーザー端末、サーバー、他の画像形成装置等と通信する。
通信部15は、ユーザー端末からネットワークを介して、画像を形成する指示内容がページ記述言語(PDL:Page Description Language)で記述されたベクトルデータを受信する。
The communication unit 15 communicates with external devices on the network, such as a user terminal, a server, and other image forming apparatuses.
The communication unit 15 receives vector data in which an instruction content for forming an image is described in a page description language (PDL) via a network from a user terminal.

画像生成部16は、通信部15により受信したベクトルデータをラスタライズ処理し、ビットマップ形式の原画像データを生成する。原画像データは、各画素がC(シアン)、M(マジェンタ)、Y(イエロー)及びK(黒)の4色の画素値を有する。画素値は画像の濃淡を表すデータ値であり、例えば8bitのデータ値は0〜255階調の濃淡を表す。   The image generation unit 16 rasterizes the vector data received by the communication unit 15 and generates original image data in a bitmap format. In the original image data, each pixel has pixel values of four colors of C (cyan), M (magenta), Y (yellow), and K (black). The pixel value is a data value representing the density of an image. For example, an 8-bit data value represents a density of 0 to 255 gradations.

画像読取部17は、自動原稿送り装置、スキャナー等からなり、原稿台上にセットされた原稿面を読み取って、ビットマップ形式の原画像データを生成する。画像読取部17により生成された原画像データは、各画素がR(赤)、G(緑)及びB(青)の3色の画素値を有する。この原画像データは、図示しない色変換部によって、C、M、Y及びKの4色の画素値を有する原画像データに色変換される。   The image reading unit 17 includes an automatic document feeder, a scanner, and the like, reads an original surface set on an original table, and generates original image data in a bitmap format. In the original image data generated by the image reading unit 17, each pixel has pixel values of three colors of R (red), G (green), and B (blue). The original image data is color-converted into original image data having four pixel values of C, M, Y, and K by a color converter (not shown).

画像メモリー18は、画像生成部16又は画像読取部17により生成された原画像データを一時的に保持するバッファーメモリーである。画像メモリー18としては、DRAM(Dynamic RAM)等を用いることができる。   The image memory 18 is a buffer memory that temporarily holds original image data generated by the image generation unit 16 or the image reading unit 17. As the image memory 18, a DRAM (Dynamic RAM) or the like can be used.

画像処理装置19は、画像メモリー18から原画像データを読み出して、各種画像処理を施す。
図2は、画像処理装置19の主な構成を機能ごとに表している。
図2に示すように、画像処理装置19は、平均化処理部191、γ補正処理部192及びスクリーン処理部193を備えている。
The image processing device 19 reads the original image data from the image memory 18 and performs various image processing.
FIG. 2 shows the main configuration of the image processing device 19 for each function.
As shown in FIG. 2, the image processing device 19 includes an averaging processing unit 191, a γ correction processing unit 192, and a screen processing unit 193.

平均化処理部191は、画像データに平均化処理を施す。平均化処理の詳細は後述する。   The averaging processing unit 191 performs an averaging process on the image data. Details of the averaging process will be described later.

γ補正処理部192は、平均化処理後の画像データにγ補正処理を施す。γ補正処理は、画像形成部20により形成する画像の濃度特性が目標の濃度特性となるように、画像データの各画素の画素値を補正する処理である。   The γ correction processing unit 192 performs γ correction processing on the image data after the averaging processing. The γ correction process is a process of correcting the pixel value of each pixel of the image data so that the density characteristic of the image formed by the image forming unit 20 becomes the target density characteristic.

スクリーン処理部193は、γ補正処理後の画像データにスクリーン処理を施す。スクリーン処理は、ディザ法を用いて疑似的に中間調を再現する処理であり、画像データの各画素の画素値とディザマトリクスの各画素に設定された閾値を周期的に照合して比較し、比較の結果に応じて各画素の画素値を2値以上の多値に変換する。   The screen processing unit 193 performs screen processing on the image data after the γ correction processing. The screen process is a process of reproducing a halftone in a pseudo manner using the dither method, and periodically compares and compares the pixel value of each pixel of the image data with the threshold value set for each pixel of the dither matrix, In accordance with the comparison result, the pixel value of each pixel is converted into a multivalued binary value.

画像形成部20は、画像処理装置19により画像処理された原画像データの各画素の4色の画素値に応じて、C、M、Y及びKの4色からなる画像をトナー等の色材を用いて用紙上に形成する。   The image forming unit 20 converts an image having four colors of C, M, Y, and K into a color material such as toner according to the pixel values of the four colors of each pixel of the original image data processed by the image processing device 19 To form on a sheet.

図3は、平均化処理部191が、画像データに平均化処理を施すときの処理手順を示している。
図3に示すように、平均化処理部191は、画像データの各画素を注目画素として、注目画素を中心とする一定領域単位で画像データを入力する(ステップS1)。一定領域のサイズは、スクリーン処理に使用するディザマトリクスより大きいサイズである。
注目画素を中心とする一定領域の画像データは、FIFOを用いて、平均化処理の処理回路への各画素の画像データの入力を遅延させることにより、入力することができる。
FIG. 3 shows a processing procedure when the averaging processing unit 191 performs an averaging process on the image data.
As shown in FIG. 3, the averaging processing unit 191 inputs image data in units of a fixed area centered on the target pixel, with each pixel of the image data as the target pixel (step S1). The size of the fixed area is larger than the dither matrix used for screen processing.
Image data in a certain area centered on the target pixel can be input by using the FIFO to delay the input of the image data of each pixel to the averaging processing circuit.

図4は、一定領域の画像データを入力できる平均化処理部191の回路例を示している。
図4に示すように、平均化を行う処理回路32に、一定領域の副走査方向の画素数と同じ数のFIFO31を並列に接続し、前段のFIFO31から処理回路32へ入力する画像データを、後段のFIFO31へも入力することで各画素の画像データを遅延させて、処理回路32に複数ラインの画像データを一度に入力することができる。例えば、11個のFIFO31を使用すれば、注目画素と注目画素の前後5ラインの周辺画素を含む11画素の画像データを入力することができる。
FIG. 4 shows a circuit example of the averaging processing unit 191 that can input image data of a certain region.
As shown in FIG. 4, the same number of FIFOs 31 as the number of pixels in the sub-scanning direction of a certain region are connected in parallel to the processing circuit 32 that performs averaging, and image data input from the FIFO 31 in the previous stage to the processing circuit 32 is By inputting the data to the FIFO 31 in the subsequent stage, the image data of each pixel can be delayed and the image data of a plurality of lines can be input to the processing circuit 32 at a time. For example, if 11 FIFOs 31 are used, it is possible to input 11-pixel image data including the pixel of interest and peripheral pixels of 5 lines before and after the pixel of interest.

次に、平均化処理部191は、画像データの各画素を、スクリーン処理部193がスクリーン処理に使用するディザマトリクスと同じ周期の矩形のブロック単位で分割したときのブロックにおける注目画素の位置を決定する(ステップS2)。
ディザマトリクスは、その形状が非矩形であっても、Holladayの原則(T.M.Holladay,An optimum algorithm for halftone generation for displays and hard copies,Proc.SID,Vol.21,pp.185-192(1980))にしたがい、矩形に変換することができる。平均化処理部191は、この矩形に変換したディザマトリクスと同じサイズ及び形状となるように、矩形のブロックのサイズ及び形状を決定する。
Next, the averaging processing unit 191 determines the position of the pixel of interest in the block when each pixel of the image data is divided in units of rectangular blocks having the same cycle as the dither matrix used by the screen processing unit 193 for screen processing. (Step S2).
The dither matrix conforms to the Holladay principle (TMHolladay, An optimum algorithm for halftone generation for displays and hard copies, Proc. SID, Vol. 21, pp. 185-192 (1980)), even if its shape is non-rectangular. Therefore, it can be converted to a rectangle. The averaging processing unit 191 determines the size and shape of the rectangular block so as to have the same size and shape as the dither matrix converted into the rectangle.

図5は、非矩形のディザマトリクスの一例を示している。図5において、ディザマトリクスを構成する全10画素のそれぞれの位置を0〜9の位置番号eで表している。
図6は、図5に示す非矩形のディザマトリクスを、Holladayの原則にしたがって変換して得られる矩形のディザマトリクスを示している。
矩形のディザマトリクスの主走査方向の長さをM(画素)、副走査方向の長さをN(画素)と表すと、図6に示す矩形のディザマトリクスは、M=10、N=1であり、そのサイズすなわち全画素数M×Nは、非矩形のディザマトリクスと同じ10画素である。
FIG. 5 shows an example of a non-rectangular dither matrix. In FIG. 5, the positions of all 10 pixels constituting the dither matrix are represented by position numbers e of 0-9.
FIG. 6 shows a rectangular dither matrix obtained by converting the non-rectangular dither matrix shown in FIG. 5 according to the Holladay principle.
When the length of the rectangular dither matrix in the main scanning direction is represented by M (pixel) and the length in the sub-scanning direction is represented by N (pixel), the rectangular dither matrix shown in FIG. 6 has M = 10 and N = 1. The size, that is, the total number of pixels M × N is 10 pixels, which is the same as the non-rectangular dither matrix.

図7は、図5に示す非矩形のディザマトリクスを画像データの各画素と周期的に照合したときの各画素の位置を、ディザマトリクスの各画素の位置番号eで表している。
図7に示すように、スクリーン処理時には、非矩形のディザマトリクスを、画像データと照合するごとに主走査方向xにM画素単位でシフトし、主走査方向xの終端に至ると、副走査方向yへ1画素シフトするとともに主走査方向xの始端からL画素シフトして、主走査方向xでのシフトと照合を繰り返す。この走査により、画像データの各画素に非矩形のディザマトリクスを重複することなくタイル状に照合することができる。
FIG. 7 shows the position of each pixel when the non-rectangular dither matrix shown in FIG. 5 is periodically compared with each pixel of the image data by the position number e of each pixel of the dither matrix.
As shown in FIG. 7, at the time of screen processing, the non-rectangular dither matrix is shifted in units of M pixels in the main scanning direction x every time the image data is collated, and reaches the end of the main scanning direction x. 1 pixel is shifted to y and L pixels are shifted from the starting end in the main scanning direction x, and the shift and verification in the main scanning direction x are repeated. By this scanning, a non-rectangular dither matrix can be collated in a tile shape without overlapping each pixel of the image data.

同様の照合を、0〜9の位置番号eの順に並ぶM画素×N画素の矩形のディザマトリクスを用いて実現することができる。その場合、図7に示すように、矩形のディザマトリクスを主走査方向xにM画素単位でシフトする走査を副走査方向yへ1画素ずつシフトして繰り返し、副走査方向yにN画素シフトすると主走査方向xの始点からL画素シフトした位置から主走査方向xにM画素単位でのシフトを開始する。主走査方向xへのシフト量はM画素であり、副走査方向yにN画素シフト後の走査開始位置のシフト量もL画素であるため、非矩形のディザマトリクスと矩形のディザマトリクスは同じ周期になる。   Similar collation can be realized using a rectangular dither matrix of M pixels × N pixels arranged in the order of position numbers e of 0 to 9. In that case, as shown in FIG. 7, when the scanning for shifting the rectangular dither matrix in units of M pixels in the main scanning direction x is repeated by shifting one pixel at a time in the sub-scanning direction y, and N pixels are shifted in the sub-scanning direction y. The shift in units of M pixels is started in the main scanning direction x from the position shifted by L pixels from the starting point in the main scanning direction x. Since the shift amount in the main scanning direction x is M pixels and the shift amount at the scanning start position after N pixel shifts in the sub-scanning direction y is also L pixels, the non-rectangular dither matrix and the rectangular dither matrix have the same period. become.

平均化処理部191は、矩形のブロックのサイズを、この矩形のディザマトリクスと同じ、M画素×N画素のサイズに決定する。
なお、周期が変わらないため、矩形のブロックの主走査方向の長さをMの倍数にすることもできるし、副走査方向の長さをNの倍数にすることもできる。
The averaging processing unit 191 determines the size of the rectangular block as the size of M pixels × N pixels, which is the same as the rectangular dither matrix.
Since the period does not change, the length of the rectangular block in the main scanning direction can be a multiple of M, and the length of the sub-scanning direction can be a multiple of N.

画像データにおける各画素の主走査方向x及び副走査方向yの位置座標を(i,j)と表すと、矩形のブロックにおける各画素の主走査方向x及び副走査方向yの位置座標(Sx,Sy)を、下記式により求めることができる。なお、位置座標(i,j)は、画像データの始端の画素の位置座標を(0,0)とする座標系であり、位置座標(Sx,Sy)は、矩形ブロックの始端の画素の位置座標を(0,0)とする座標系である。
Sx=(i−L×j/N)%M
Sy=j%N
なお、Sx<0のとき、SxにMを加算して正の数とする。
上記式において、M及びNは矩形ブロックの主走査方向x及び副走査方向yの長さ(画素数)をそれぞれ表し、Lは矩形ブロックが副走査方向yにN画素シフトするごとに主走査方向xの始端からシフトするシフト量(画素数)を表している。%は、剰余を求める演算子を表している。
If the position coordinates of each pixel in the image data in the main scanning direction x and the sub-scanning direction y are expressed as (i, j), the position coordinates (Sx, Sy) can be obtained by the following equation. The position coordinate (i, j) is a coordinate system in which the position coordinate of the starting pixel of the image data is (0, 0), and the position coordinate (Sx, Sy) is the position of the starting pixel of the rectangular block. This is a coordinate system in which the coordinates are (0, 0).
Sx = (i−L × j / N)% M
Sy = j% N
When Sx <0, M is added to Sx to obtain a positive number.
In the above equation, M and N represent the length (number of pixels) of the main scanning direction x and the sub scanning direction y of the rectangular block, respectively, and L represents the main scanning direction every time the rectangular block is shifted N pixels in the sub scanning direction y. This represents the shift amount (number of pixels) to be shifted from the starting end of x. % Represents an operator for calculating the remainder.

矩形ブロックにおける各画素の位置を、図6に示す矩形のディザマトリクスと同様に、矩形ブロックの始端の画素の位置番号を0とする連続した位置番号e(0≦e≦M×N)で表すと、位置番号eは下記式により求めることができる。
e=Sx+Sy×M
すなわち、平均化処理部191は、画像データにおける注目画素の位置座標(i,j)から、矩形ブロックにおける注目画素の位置を表す位置番号eを決定することができる。
Similar to the rectangular dither matrix shown in FIG. 6, the position of each pixel in the rectangular block is represented by consecutive position numbers e (0 ≦ e ≦ M × N) in which the position number of the starting pixel of the rectangular block is 0. And the position number e can be calculated | required by a following formula.
e = Sx + Sy × M
That is, the averaging processing unit 191 can determine the position number e representing the position of the target pixel in the rectangular block from the position coordinates (i, j) of the target pixel in the image data.

次に、平均化処理部191は、決定した矩形ブロックにおける注目画素の位置に応じて、注目画素の位置から注目画素が所属するディザマトリクスの中心画素までのシフト量を決定する(ステップS3)。   Next, the averaging processing unit 191 determines a shift amount from the position of the target pixel to the center pixel of the dither matrix to which the target pixel belongs according to the determined position of the target pixel in the rectangular block (step S3).

各画素についてシフト量をその都度決定してもよいが、矩形ブロックの周期はディザマトリクスの周期と同じであるため、矩形ブロック内での画素の位置が同じであれば、当該画素の位置から当該画素が所属するディザマトリクスの中心画素までのシフト量も同じである。処理効率を高めるため、あらかじめ矩形ブロック内の各画素の位置と、各画素の位置から各画素が所属するディザマトリクスの中心画素までのシフト量を対応付けたテーブルを記憶部12に保存しておき、平均化処理部191が、このテーブルから矩形ブロック内の注目画素の位置に対応するシフト量を取得することが好ましい。   The shift amount for each pixel may be determined each time. However, since the period of the rectangular block is the same as the period of the dither matrix, if the position of the pixel in the rectangular block is the same, the position of the pixel The shift amount to the center pixel of the dither matrix to which the pixel belongs is also the same. In order to increase the processing efficiency, a table in which the position of each pixel in the rectangular block and the shift amount from the position of each pixel to the center pixel of the dither matrix to which each pixel belongs is stored in the storage unit 12 in advance. The averaging processing unit 191 preferably acquires the shift amount corresponding to the position of the target pixel in the rectangular block from this table.

図8は、矩形ブロックの各画素と各画素が所属するディザマトリクスの識別番号を表している。
図8に示すように、矩形ブロック内の位置番号eが0〜9の各画素は、識別番号d1〜d4の4つのディザマトリクスのいずれかに所属している。 各ディザマトリクスの中心には、いずれも位置番号0の画素が位置するので、矩形ブロック内の各位置番号0〜9の画素から、所属するディザマトリクスの位置番号0の画素までのシフト量のテーブルを作成すればよい。
FIG. 8 shows each pixel of the rectangular block and the identification number of the dither matrix to which each pixel belongs.
As shown in FIG. 8, each pixel whose position number e is 0 to 9 in the rectangular block belongs to one of four dither matrices having identification numbers d1 to d4. Since the pixel at position number 0 is located at the center of each dither matrix, a table of shift amounts from the pixels at position numbers 0 to 9 in the rectangular block to the pixel at position number 0 in the associated dither matrix Should be created.

図9は、テーブルの一例を示している。
図9に示すように、矩形ブロック内の各画素の位置番号eに、各画素が所属するディザマトリクスの識別番号と、主走査方向のシフト量Δx及び副走査方向のシフト量Δyとが対応付けられている。
例えば、位置番号0の画素は、図8に示すように、識別番号d1のディザマトリクスに所属し、その中心画素であるので、シフト量Δx及びΔyはいずれも0画素である。
また、位置番号4の画素は、図8に示すように、識別番号d2のディザマトリクスに所属し、その中心画素へのシフト量はΔx=−1画素、Δy=−1画素である。
FIG. 9 shows an example of the table.
As shown in FIG. 9, the position number e of each pixel in the rectangular block is associated with the identification number of the dither matrix to which each pixel belongs, the shift amount Δx in the main scanning direction, and the shift amount Δy in the sub scanning direction. It has been.
For example, as shown in FIG. 8, the pixel with position number 0 belongs to the dither matrix with identification number d1 and is the center pixel thereof, so that the shift amounts Δx and Δy are both 0 pixels.
Further, as shown in FIG. 8, the pixel of position number 4 belongs to the dither matrix of identification number d2, and the shift amounts to the center pixel are Δx = −1 pixel and Δy = −1 pixel.

次に、平均化処理部191は、入力した一定領域の中心に位置する画素(注目画素)と、平均化パターンの中心に位置する画素とが一致する位置から、決定したシフト量だけ平均化パターンの位置をシフトする(ステップS4)。平均化パターンは、平均化対象の画素を示すパターンである。   Next, the averaging processing unit 191 calculates the average pattern by the determined shift amount from the position at which the pixel (target pixel) positioned at the center of the input fixed area matches the pixel positioned at the center of the average pattern. Is shifted (step S4). The averaging pattern is a pattern indicating pixels to be averaged.

平均化処理部191は、平均化パターンとして、ディマトリクスと同じサイズ及び形状の平均化パターンを使用する。平均化パターンのサイズ及び形状は、例えばレジスタ等において矩形領域中の平均化対象の画素に1の値、平均化対象外の画素に0の値を設定することにより、指定することができる。平均化処理部191は、この設定を取得して平均化パターンを一定領域に照合する。なお、矩形領域は、ディザマトリクスより大きく一定領域より小さいサイズに設定され、平均化対象の画素を表す1の値は、平均化パターンの中心に位置する画素が矩形領域の中心に位置するように、設定されている。スクリーン処理において使用するディザマトリクスを変更する場合は、変更後のディザマトリクスのサイズ及び形状に応じてレジスタの設定を書き換えることにより、使用する平均化パターンをディザマトリクスに合わせて変更することができる。   The averaging processing unit 191 uses an average pattern having the same size and shape as the dematrix as the average pattern. The size and shape of the averaging pattern can be specified by setting a value of 1 for pixels to be averaged in a rectangular area and a value of 0 for pixels not to be averaged in a rectangular area, for example. The averaging processor 191 acquires this setting and collates the average pattern with a certain area. Note that the rectangular area is set to a size larger than the dither matrix and smaller than the fixed area, and a value of 1 representing the pixel to be averaged is such that the pixel located at the center of the averaging pattern is located at the center of the rectangular area. Is set. When changing the dither matrix used in the screen processing, the average pattern to be used can be changed in accordance with the dither matrix by rewriting the register settings according to the size and shape of the dither matrix after the change.

図10は、シフト前の平均化パターンを示している。
図10に示すように、13×11画素の一定領域R1の中心画素と7×6画素の矩形領域R2の中心画素を一致させると、矩形領域R2において1の値が設定された平均化パターンR3の中心画素を一定領域R1の中心画素、すなわち注目画素に一致させることができる。平均化パターンR3は、サイズ及び形状がディザマトリクスと同じである。
FIG. 10 shows an average pattern before shifting.
As shown in FIG. 10, when the central pixel of the constant region R1 of 13 × 11 pixels and the central pixel of the rectangular region R2 of 7 × 6 pixels are matched, an average pattern R3 in which a value of 1 is set in the rectangular region R2 Can be matched with the central pixel of the fixed region R1, that is, the target pixel. The average pattern R3 has the same size and shape as the dither matrix.

ここで、注目画素が矩形ブロックにおける位置番号2の画素である場合、平均化処理部191は、Δx=+1画素、Δy=−1画素のシフト量で平均化パターンR3を矩形領域R2ごとシフトする。
図11は、シフト後の平均化パターンを示している。
図11に示すように、シフト後の平均化パターンR3における注目画素の位置は、位置番号2の画素が所属するディザマトリクスにおける位置と一致している。
Here, when the target pixel is the pixel at position number 2 in the rectangular block, the averaging processing unit 191 shifts the average pattern R3 for each rectangular region R2 by a shift amount of Δx = + 1 pixel and Δy = −1 pixel. .
FIG. 11 shows the averaged pattern after the shift.
As shown in FIG. 11, the position of the pixel of interest in the averaged pattern R3 after the shift matches the position in the dither matrix to which the pixel with position number 2 belongs.

平均化処理部191は、シフト後の平均化パターンR3内の各画素の画素値を平均し、得られた平均値を注目画素の平均化処理後の画素値として出力する(ステップS5)。具体的には、平均化処理部191は、平均化パターン内の各画素の画素値を積算した後、その画素数で除算することにより、平均値を得る。
なお、平均化パターンの各画素に重み付け係数を設定し、重み付け平均した平均値を算出してもよい。これにより、ディザマトリクスにより形成される周期的なパターンの形状を整形することができ、鮮鋭性の高い画像を形成することができる。
The averaging processing unit 191 averages the pixel values of each pixel in the shifted average pattern R3, and outputs the obtained average value as the pixel value after the averaging process of the target pixel (step S5). Specifically, the averaging processing unit 191 obtains an average value by accumulating the pixel values of each pixel in the average pattern and then dividing by the number of pixels.
Note that a weighting coefficient may be set for each pixel of the average pattern, and an average value obtained by weighted averaging may be calculated. Thereby, the shape of the periodic pattern formed by the dither matrix can be shaped, and an image with high sharpness can be formed.

全画素の平均化処理を終了していない場合(ステップS6:N)、平均化処理部191は、注目画素の位置をシフトして(ステップS7)、ステップS1の処理に戻り、新たな注目画素について上述した平均化処理を繰り返す。
そして、全画素の平均化処理を終了すると(ステップS6:Y)、本処理を終了する。
If the averaging process has not been completed for all pixels (step S6: N), the averaging processing unit 191 shifts the position of the target pixel (step S7), returns to the process of step S1, and sets a new target pixel. The averaging process described above is repeated.
Then, when the averaging process for all pixels is finished (step S6: Y), this process is finished.

なお、平均化処理部191は、ディザマトリクスと同じサイズ及び形状の平均化パターンを、ディザマトリクスよりも大きいサイズに拡張して使用することができる。
図12は、ディザマトリクスと同じサイズ及び形状の平均化パターンを、ディザマトリクスよりも大きなサイズに拡張したときの平均化パターンの例を示している。
拡張した平均化パターンを使用することにより、平均化する領域を拡張して、画像のノイズを減らすことができる。平均化処理部191は、平均化処理後の画素値ではなく、各画素の元の画素値を入力するので、平均化する領域を拡張しても元の画素値を使用して平均することができ、正確な平均値を得ることができる。また、使用する平均化パターンのサイズを拡張するだけで矩形ブロックの周期は変わらないため、ディザマトリクスと同じ周期で平均化処理することができる。
Note that the averaging processing unit 191 can use an averaged pattern having the same size and shape as the dither matrix by expanding it to a size larger than the dither matrix.
FIG. 12 shows an example of an average pattern when an average pattern having the same size and shape as the dither matrix is expanded to a size larger than the dither matrix.
By using the extended averaging pattern, the area to be averaged can be extended to reduce image noise. Since the averaging processing unit 191 inputs not the pixel value after the averaging process but the original pixel value of each pixel, even if the area to be averaged is expanded, the original pixel value may be used for averaging. And an accurate average value can be obtained. Further, since the period of the rectangular block does not change just by expanding the size of the average pattern to be used, the averaging process can be performed with the same period as the dither matrix.

以上のように、本実施の形態の画像処理装置19は、画像データを、各画素を中心とする一定領域単位で入力し、入力した一定領域を平均化パターンと照合して平均化パターン内の各画素の画素値を平均し、得られた平均値を、一定領域の中心画素の画素値として出力する平均化処理部191と、平均化処理部191により平均化された画像データの各画素をディザマトリクスと周期的に照合し、各画素の画素値を、ディザマトリクス中の閾値と比較することにより多値化するスクリーン処理部193と、を備えている。
平均化処理部191は、平均化パターンとして、ディザマトリクスと同じサイズ及び形状の平均化パターンを使用し、画像データにおける各画素の位置から、ディザマトリクスと照合したときに各画素が所属するディザマトリクスの中心画素までのシフト量を決定し、平均化パターンの位置を、平均化パターンの中心画素と一定領域の中心画素とが一致する位置から、決定したシフト量だけシフトし、シフト後の平均化パターン内の各画素の画素値を平均する。
As described above, the image processing apparatus 19 according to the present embodiment inputs image data in units of a fixed area centered on each pixel, compares the input fixed area with the average pattern, and stores the average data in the average pattern. An average processing unit 191 that averages the pixel values of each pixel and outputs the obtained average value as a pixel value of a central pixel in a certain region, and each pixel of the image data averaged by the averaging processing unit 191 A screen processing unit 193 that periodically collates with the dither matrix and multi-values the pixel value of each pixel by comparing with a threshold value in the dither matrix.
The averaging processing unit 191 uses an average pattern having the same size and shape as the dither matrix as an average pattern, and the dither matrix to which each pixel belongs when compared with the dither matrix from the position of each pixel in the image data The shift amount to the center pixel is determined, and the position of the average pattern is shifted by the determined shift amount from the position where the center pixel of the average pattern matches the center pixel of the fixed area, and the average after the shift The pixel values of each pixel in the pattern are averaged.

ディザマトリクスと同じサイズ及び形状の平均化パターンを周期的に照合して、平均化パターン内の各画素の画素値をその平均値に一度に置き換える従来の平均化処理と比べて、上記実施の形態における平均化処理は、汎用性及び拡張性が高い。   Compared with the conventional averaging process in which the average pattern having the same size and shape as the dither matrix is periodically checked and the pixel value of each pixel in the average pattern is replaced with the average value at one time. The averaging process in is highly versatile and scalable.

図13A〜図13Cは、従来の平均化処理の過程を示している。
図13Aに示すように、従来の平均化処理では、ディザマトリクスと同じように平均化パターンを走査する。すなわち、図5に示すディザマトリクスと同じサイズ及び形状の平均化パターンを、M画素単位で主走査方向xに1ラインシフトし、シフトするごとに平均化パターン内の各画素の画素値をそれらの平均値に置き換える。シフトにより主走査方向xの終端に至ると、図13Bに示すように、副走査方向yに1画素シフトするとともに主走査方向xの始点からL画素シフトして、M画素単位の主走査方向xへのシフトと平均値への置き換えを繰り返す。主走査方向xに1〜7ラインの走査を繰り返すと、図13Cに示すように、画像データの各画素をディザマトリクスと同じ領域単位で平均化することができる。なお、図13A〜図13C中の数字は平均化パターンのシフトにより走査した主走査方向xのライン順を表している。
13A to 13C show a conventional averaging process.
As shown in FIG. 13A, in the conventional averaging process, the average pattern is scanned in the same manner as the dither matrix. That is, the average pattern having the same size and shape as the dither matrix shown in FIG. 5 is shifted by one line in the main scanning direction x in units of M pixels, and the pixel value of each pixel in the average pattern is changed for each shift. Replace with the average value. When the shift reaches the end of the main scanning direction x, as shown in FIG. 13B, the pixel is shifted by one pixel in the sub-scanning direction y and L pixels are shifted from the starting point in the main scanning direction x, and the main scanning direction x in M pixel units. Repeat shift to, and replacement with average value. When scanning 1 to 7 lines in the main scanning direction x is repeated, each pixel of the image data can be averaged in the same area unit as the dither matrix as shown in FIG. 13C. The numbers in FIGS. 13A to 13C represent the line order in the main scanning direction x scanned by shifting the average pattern.

このような従来の平均化処理の処理回路は、平均化パターン内の画素値をその平均値に一度に置き換えるため、図14に示すように、元の画素値ではなく、処理回路32により置き換えた後の平均値を遅延させて処理回路32に入力するように、各FIFO31を使用することになる。FIFO31の使い方が、元の画素値を遅延させるだけの通常のFIFOの使い方と異なり独特であるため、平均化処理に特化した専用回路として用意する必要がある。   In such a conventional averaging processing circuit, pixel values in the averaging pattern are replaced by the average value at a time, so that the processing circuit 32 replaces the pixel value instead of the original pixel value as shown in FIG. Each FIFO 31 is used so that the later average value is delayed and input to the processing circuit 32. Since the use of the FIFO 31 is different from the normal use of the FIFO that only delays the original pixel value, it is necessary to prepare a dedicated circuit specialized for the averaging process.

一方、上記実施の形態の平均化処理では、平均化パターン内の画素値を一度に置き換えるのではなく、平均化パターン内の画素値の平均値を画素ごとに算出して出力する。よって、平均化処理部191の処理回路は、図4に示すように、元の画素値を遅延して処理回路32に入力するように各FIFO31を使用すればよい。通常のFIFOの使い方と同じであるため、平均化処理以外の他の画像処理においても、各FIFO31を共用して一定領域を入力することができ、汎用性が高い平均化処理を実施することができる。   On the other hand, in the averaging process of the above embodiment, the pixel values in the average pattern are not replaced at once, but the average value of the pixel values in the average pattern is calculated and output for each pixel. Therefore, the processing circuit of the averaging processing unit 191 may use each FIFO 31 so that the original pixel value is delayed and input to the processing circuit 32 as shown in FIG. Since it is the same as the normal use of FIFO, even in image processing other than the averaging processing, each FIFO 31 can be shared to input a fixed area, and averaging processing with high versatility can be performed. it can.

また、画像のノイズを減らすためには、平均化する領域を拡張することが有効であるが、従来の平均化処理では、平均化パターンを重複することなく走査しているため、平均化パターンの拡張によりすでに平均化処理した画素が再度平均化の対象になる。
例えば、図12に示すように拡張した平均化パターンを用いて、図13A〜図13Cに示すように平均化処理すると、すでに平均化した画素も平均化の対象となるが、図15に示すようにすでに平均化した画素は元の画素値ではなく、平均値に上書きされている。
In order to reduce the noise of the image, it is effective to expand the area to be averaged. However, in the conventional averaging process, since the averaged pattern is scanned without overlapping, the averaged pattern Pixels that have already been subjected to averaging processing by extension are subjected to averaging again.
For example, when an averaging process is performed as shown in FIGS. 13A to 13C using an extended averaging pattern as shown in FIG. 12, pixels already averaged are also subject to averaging, as shown in FIG. The already averaged pixels are overwritten with the average values, not the original pixel values.

これに対し、上記実施の形態の平均化処理部191の処理回路は、図4に示すように、平均化した画素か否かによらず元の画素値を入力するため、平均化パターンのサイズを拡張した場合も元の画素値を用いて平均することができ、正確な平均値を得ることができる。すなわち、平均化パターンのサイズを自由に設計することができ、拡張性が高い平均化処理を実施することができる。   On the other hand, as shown in FIG. 4, the processing circuit of the averaging processing unit 191 of the above embodiment inputs the original pixel value regardless of whether or not it is an averaged pixel. Even when is expanded, the original pixel values can be used for averaging, and an accurate average value can be obtained. That is, the size of the averaging pattern can be freely designed, and an averaging process with high expandability can be performed.

〔他の実施の形態〕
スクリーン処理部193は、スクリーン処理に使用するディザマトリクスとして、複数種類のディザマトリクスの組み合わせであるスーパーセルを用いることができる(P.Fink, PostScript Screening:Adobe AccurateScreens, Adobe_Press, Mountain View,CA, 1992, Chapter4,pp.43-61)。スーパーセルによれば、限られた解像度のなかでも特定の線数及び角度を有するパターンを形成することができる。スーパーセルを用いる場合、各画素が所属するディザマトリクスの種類を識別することにより、上述と同様の処理手順により平均化処理を実施することができる。
[Other Embodiments]
The screen processing unit 193 can use a supercell that is a combination of a plurality of types of dither matrices as a dither matrix used for screen processing (P.Fink, PostScript Screening: Adobe AccurateScreens, Adobe_Press, Mountain View, CA, 1992). , Chapter4, pp.43-61). According to the supercell, it is possible to form a pattern having a specific number of lines and angle within a limited resolution. When a supercell is used, the averaging process can be performed by the same processing procedure as described above by identifying the type of dither matrix to which each pixel belongs.

図16は、サイズ及び形状が異なる2種類のディザマトリクスを組み合わせたスーパーセルの例を示している。各ディザマトリクスには、その種類を表す種類番号a1及びa2が付与されている。
スーパーセルについても、Holladayの原則により、M×N画素の矩形のディザマトリクスに変換することができる。図16に示すように、スーパーセルを変換して得られる矩形のディザマトリクスは、主走査方向の長さMがM=7であり、副走査方向の長さNがN=7であり、副走査方向にN画素シフトしたときの主走査方向xのシフト量LがL=0である。
FIG. 16 shows an example of a supercell in which two types of dither matrices having different sizes and shapes are combined. Each dither matrix is assigned type numbers a1 and a2 indicating the type.
The supercell can also be converted into a rectangular dither matrix of M × N pixels according to the Holladay principle. As shown in FIG. 16, the rectangular dither matrix obtained by converting the supercell has a length M in the main scanning direction of M = 7, a length N in the sub scanning direction of N = 7, The shift amount L in the main scanning direction x when N pixels are shifted in the scanning direction is L = 0.

平均化処理部191は、画像データの各画素を注目画素として、この7×7画素の矩形のディザマトリクスと同じサイズ及び形状の矩形のブロック単位で分割したときに、各ブロックにおける注目画素の位置を決定する。
平均化処理部191は、決定した位置に応じて、注目画素が所属するディザマトリクスの識別番号と種類番号を決定し、注目画素の位置から、決定した識別番号及び種類番号のディザマトリクスの中心画素までのシフト量Δx及びΔyを決定する。
The averaging processing unit 191 uses each pixel of the image data as a pixel of interest and divides the pixel data in units of rectangular blocks having the same size and shape as the 7 × 7 pixel rectangular dither matrix. To decide.
The averaging processing unit 191 determines the identification number and type number of the dither matrix to which the target pixel belongs according to the determined position, and the center pixel of the dither matrix having the determined identification number and type number from the position of the target pixel Shift amounts Δx and Δy are determined.

図17は、7×7画素の矩形のブロックにおける各画素の0〜48の位置番号eと、各位置番号eの画素が所属するディザマトリクスの識別番号及び種類番号を示している。
例えば、e=30の画素は、識別番号d1及び種類番号a1のディザマトリクスに所属し、この画素の位置から所属するディザマトリクスの中心画素までのシフト量は、Δx=+1画素、Δy=−1画素である。
FIG. 17 shows the 0 to 48 position number e of each pixel in the 7 × 7 pixel rectangular block, and the identification number and type number of the dither matrix to which the pixel of each position number e belongs.
For example, the pixel with e = 30 belongs to the dither matrix with the identification number d1 and the type number a1, and the shift amount from the position of this pixel to the central pixel of the belonging dither matrix is Δx = + 1 pixel, Δy = −1. Pixel.

通常のディザマトリクスと同様に、平均化処理部191は、矩形ブロック内の各画素の位置番号eに、所属するディザマトリクスの識別番号及び種類番号とシフト量Δx及びΔyとを対応付けたテーブルを記憶部12に保存し、平均化処理部191はこのテーブルから注目画素が所属するディザマトリクスの識別番号及び種類番号とシフト量Δx及びΔyを取得することができる。   Similar to the normal dither matrix, the averaging processing unit 191 creates a table in which the position number e of each pixel in the rectangular block is associated with the identification number and type number of the belonging dither matrix and the shift amounts Δx and Δy. The data is stored in the storage unit 12, and the averaging processing unit 191 can acquire the identification number and type number of the dither matrix to which the target pixel belongs and the shift amounts Δx and Δy from this table.

図18は、スーパーセルの場合に使用できるテーブルの例を示している。
図18に示すように、矩形ブロックにおける各画素の位置を示す位置番号eに、矩形ブロック内の各画素が所属するディザマトリクスの識別番号及び種類番号、当該ディザマトリクスの中心画素までのシフト量Δx及びΔyが対応付けられている。
FIG. 18 shows an example of a table that can be used in the case of a supercell.
As shown in FIG. 18, the position number e indicating the position of each pixel in the rectangular block, the identification number and type number of the dither matrix to which each pixel in the rectangular block belongs, and the shift amount Δx to the center pixel of the dither matrix And Δy are associated with each other.

平均化処理部191は、注目画素の平均化処理に、決定した種類番号のディザマトリクスと同じサイズ及び形状の平均化パターンを使用する。平均化処理部191は、入力した一定領域の中心画素(注目画素)と、平均化パターンの中心画素とが一致する位置から、決定したシフト量だけ平均化パターンの位置をシフトする。平均化処理部191は、シフト後の平均化パターン内の各画素の画素値を平均し、得られた平均値を、平均化処理後の注目画素の画素値として出力する。   The averaging processing unit 191 uses an averaging pattern having the same size and shape as the dither matrix of the determined type number in the averaging process of the target pixel. The averaging processing unit 191 shifts the position of the average pattern by the determined shift amount from the position where the input center pixel (target pixel) of the certain area matches the center pixel of the average pattern. The averaging processing unit 191 averages the pixel values of each pixel in the averaged pattern after the shift, and outputs the obtained average value as the pixel value of the target pixel after the averaging process.

以上のように、他の実施の形態の画像処理装置19において、スクリーン処理部193は、画像データの各画素を複数種類のディザマトリクスの組み合わせであるスーパーセルと周期的に照合し、平均化処理部191は、画像データにおける各画素の位置から、スーパーセルと照合したときに各画素が所属するディザマトリクスの中心画素までのシフト量と、当該ディザマトリクスの種類とを決定し、決定した種類のディザマトリクスと同じサイズ及び形状の平均化パターンを使用し、当該平均化パターンの位置を、前記平均化パターンの中心画素と一定領域の中心画素が一致する位置から、決定したシフト量だけシフトし、シフト後の平均化パターン内の各画素の画素値を平均する。   As described above, in the image processing device 19 according to another embodiment, the screen processing unit 193 periodically collates each pixel of image data with a supercell that is a combination of a plurality of types of dither matrices, and performs an averaging process. The unit 191 determines the shift amount from the position of each pixel in the image data to the center pixel of the dither matrix to which each pixel belongs when collated with the supercell, and the type of the dither matrix. Using an averaged pattern of the same size and shape as the dither matrix, shifting the position of the averaged pattern from the position where the central pixel of the averaged pattern and the central pixel of the fixed region coincide with each other by the determined shift amount, The pixel values of each pixel in the averaged pattern after shifting are averaged.

これにより、スクリーン処理にスーパーセルを使用する場合も、スーパーセル中の形状及びサイズが異なる複数種類のディザマトリクスと同じ領域単位で平均化処理することができる。スーパーセルにも対応できる、汎用性及び拡張性が高い平均化処理が可能となる。   Thereby, even when a supercell is used for the screen processing, it is possible to perform an averaging process in the same area unit as a plurality of types of dither matrices having different shapes and sizes in the supercell. Averaging processing with high versatility and expandability that can be applied to a supercell is possible.

上記実施の形態は本発明の好適な一例であり、これに限定されない。本発明の主旨を逸脱しない範囲で適宜変更可能である。
例えば、制御部11がプログラムを読み取ることにより、上記処理手順を制御部11により実行させることもできる。また、画像形成装置Gに限らず、汎用のPC等のコンピューターにより当該プログラムを読み取らせて、上記処理手順を実行させることもできる。
また、プログラムのコンピューター読み取り可能な媒体としては、ROM、フラッシュメモリー等の不揮発性メモリー、CD-ROM等の可搬型記録媒体を適用することが可能である。また、プログラムのデータを、通信回線を介して提供する媒体として、キャリアウエーブ(搬送波)も適用される。
The above embodiment is a preferred example of the present invention, and the present invention is not limited to this. Modifications can be made as appropriate without departing from the spirit of the present invention.
For example, when the control unit 11 reads a program, the control unit 11 can execute the above processing procedure. In addition to the image forming apparatus G, the program can be read by a computer such as a general-purpose PC, and the above processing procedure can be executed.
Further, as a computer-readable medium for the program, a non-volatile memory such as a ROM and a flash memory, and a portable recording medium such as a CD-ROM can be applied. A carrier wave is also used as a medium for providing program data via a communication line.

G 画像形成装置
11 制御部
12 記憶部
19 画像処理装置
191 平均化処理部
192 γ補正処理部
193 スクリーン処理部
G Image forming device 11 Control unit 12 Storage unit 19 Image processing device 191 Averaging processing unit 192 γ correction processing unit 193 Screen processing unit

Claims (5)

画像データを、各画素を中心とする一定領域単位で入力し、入力した一定領域を平均化パターンと照合して前記平均化パターン内の各画素の画素値を平均し、得られた平均値を、前記一定領域の中心画素の画素値として出力する平均化処理部と、
前記平均化処理部により平均化された画像データの各画素をディザマトリクスと周期的に照合し、各画素の画素値を、ディザマトリクス中の閾値と比較することにより多値化するスクリーン処理部と、を備え、
前記平均化処理部は、
前記平均化パターンとして、前記ディザマトリクスと同じサイズ及び形状の平均化パターンを使用し、
前記画像データにおける各画素の位置から、前記ディザマトリクスと照合したときに各画素が所属するディザマトリクスの中心画素までのシフト量を決定し、
前記平均化パターンの位置を、前記平均化パターンの中心画素と前記一定領域の中心画素とが一致する位置から、前記決定したシフト量だけシフトし、シフト後の前記平均化パターン内の各画素の画素値を平均することを特徴とする画像処理装置。
Image data is input in units of a fixed area centered on each pixel, the input fixed area is compared with the average pattern, the pixel values of each pixel in the average pattern are averaged, and the average value obtained is , An averaging processing unit that outputs as a pixel value of a central pixel of the fixed region;
A screen processing unit that periodically compares each pixel of the image data averaged by the averaging processing unit with a dither matrix, and compares the pixel value of each pixel with a threshold value in the dither matrix; With
The averaging processing unit
As the average pattern, using an average pattern having the same size and shape as the dither matrix,
Determine the shift amount from the position of each pixel in the image data to the center pixel of the dither matrix to which each pixel belongs when collated with the dither matrix,
The position of the average pattern is shifted by the determined shift amount from the position where the central pixel of the average pattern coincides with the central pixel of the certain region, and each pixel in the average pattern after the shift is shifted. An image processing apparatus that averages pixel values.
前記画像データの各画素を前記ディザマトリクスと同じ周期の矩形のブロック単位で分割したときのブロックにおける各画素の位置と、前記各画素の位置から各画素が所属するディザマトリクスの中心画素までのシフト量と、を対応付けて記憶する記憶部を備え、
前記平均化処理部は、前記画像データの各画素を前記ブロック単位で分割したときの各画素のブロックにおける位置を決定し、決定した位置に対応する前記シフト量を前記記憶部から取得することを特徴とする請求項1に記載の画像処理装置。
The position of each pixel in the block when each pixel of the image data is divided into rectangular blocks having the same cycle as the dither matrix, and the shift from the position of each pixel to the center pixel of the dither matrix to which each pixel belongs A storage unit that stores the amount in association with each other;
The averaging processing unit determines a position in a block of each pixel when each pixel of the image data is divided in units of the block, and acquires the shift amount corresponding to the determined position from the storage unit. The image processing apparatus according to claim 1, wherein:
前記スクリーン処理部は、前記画像データの各画素を複数種類のディザマトリクスの組み合わせであるスーパーセルと周期的に照合し、
前記平均化処理部は、
前記画像データにおける各画素の位置から、前記スーパーセルと照合したときに各画素が所属するディザマトリクスの中心画素までのシフト量と、当該ディザマトリクスの種類とを決定し、
前記決定した種類のディザマトリクスと同じサイズ及び形状の平均化パターンを使用し、当該平均化パターンの位置を、前記平均化パターンの中心画素と前記一定領域の中心画素が一致する位置から、前記決定したシフト量だけシフトし、シフト後の前記平均化パターン内の各画素の画素値を平均することを特徴とする請求項1又は2に記載の画像処理装置。
The screen processing unit periodically collates each pixel of the image data with a supercell that is a combination of a plurality of types of dither matrices,
The averaging processing unit
Determine the shift amount from the position of each pixel in the image data to the center pixel of the dither matrix to which each pixel belongs when collated with the supercell, and the type of the dither matrix,
The average pattern having the same size and shape as the determined type of dither matrix is used, and the position of the average pattern is determined from the position where the central pixel of the average pattern matches the central pixel of the certain region. The image processing apparatus according to claim 1, wherein the image processing apparatus shifts by the shift amount and averages the pixel values of the pixels in the averaged pattern after the shift.
前記平均化処理部は、前記ディザマトリクスと同じサイズ及び形状の平均化パターンを、前記ディザマトリクスよりも大きいサイズに拡張して使用することを特徴とする請求項1〜3のいずれか一項に記載の画像処理装置。   The said averaging process part expands and uses the average pattern of the same size and shape as the said dither matrix to a size larger than the said dither matrix, It is any one of Claims 1-3 characterized by the above-mentioned. The image processing apparatus described. 画像データを、各画素を中心とする一定領域単位で入力するステップと、
前記入力した一定領域を平均化パターンと照合して前記平均化パターン内の各画素の画素値を平均し、得られた平均値を、前記一定領域の中心画素の画素値として出力するステップと、を含み、
前記平均化パターン内の各画素の画素値を平均するステップは、前記平均化パターンとして、画像データの各画素をディザマトリクスと周期的に照合し、各画素の画素値を、ディザマトリクス中の閾値と比較することにより多値化するスクリーン処理に使用する前記ディザマトリクスと同じサイズ及び形状の平均化パターンを使用し、
前記画像データにおける各画素の位置から、前記ディザマトリクスと照合したときに各画素が所属するディザマトリクスの中心画素までのシフト量を決定するステップと、
前記平均化パターンの位置を、前記平均化パターンの中心画素と前記一定領域の中心画素が一致する位置から、前記決定したシフト量だけシフトし、シフト後の前記平均化パターン内の各画素の画素値を平均するステップと、
を含むことを特徴とする平均化処理方法。
Inputting image data in units of a fixed area centered on each pixel;
Collating the input fixed area with an average pattern, averaging the pixel values of each pixel in the average pattern, and outputting the obtained average value as the pixel value of the central pixel of the fixed area; Including
The step of averaging the pixel values of each pixel in the average pattern is performed by periodically comparing each pixel of the image data with a dither matrix as the average pattern, and setting the pixel value of each pixel to a threshold value in the dither matrix. Using an averaged pattern of the same size and shape as the dither matrix used for multi-valued screen processing by comparison with
Determining a shift amount from the position of each pixel in the image data to the center pixel of the dither matrix to which each pixel belongs when collated with the dither matrix;
The position of the average pattern is shifted from the position where the central pixel of the average pattern matches the central pixel of the certain region by the determined shift amount, and the pixel of each pixel in the average pattern after the shift A step of averaging the values;
An averaging processing method comprising:
JP2016043026A 2016-03-07 2016-03-07 Image processing apparatus and averaging processing method Pending JP2017163178A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016043026A JP2017163178A (en) 2016-03-07 2016-03-07 Image processing apparatus and averaging processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016043026A JP2017163178A (en) 2016-03-07 2016-03-07 Image processing apparatus and averaging processing method

Publications (1)

Publication Number Publication Date
JP2017163178A true JP2017163178A (en) 2017-09-14

Family

ID=59857266

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016043026A Pending JP2017163178A (en) 2016-03-07 2016-03-07 Image processing apparatus and averaging processing method

Country Status (1)

Country Link
JP (1) JP2017163178A (en)

Similar Documents

Publication Publication Date Title
JP6353271B2 (en) Image processing apparatus and method
US9247105B2 (en) Image forming apparatus and image forming method therefor
US10546220B2 (en) Image processing apparatus that generates halftone image, image processing method, and storage medium
US8570627B2 (en) Image processing apparatus for data compression, control method, and computer-readable medium
JP5854066B2 (en) Color processing apparatus, image forming apparatus, and program
JP6882043B2 (en) Image processing equipment, programs and image processing methods
JP2017163178A (en) Image processing apparatus and averaging processing method
JP2008113364A (en) Image processor, processing circuit, and processing method, and program
JP4108517B2 (en) Halftoning processing method and halftoning processing system
JP2007194904A (en) Image processor performing halftone processing by fixed cell, image processing method, and image processing program
JP2011176463A (en) Image processor and image forming apparatus
JP7077925B2 (en) Image processing equipment, image processing methods, and programs
JP6079720B2 (en) Image processing apparatus, image processing method, and program
JP6427960B2 (en) Image processing device
US10838339B2 (en) Image forming apparatus, dither matrix generation method, and dither matrix generation apparatus
JP7211209B2 (en) IMAGE PROCESSING APPARATUS, PROGRAM, IMAGE FORMING APPARATUS, AND CONTROL METHOD
JP2011199352A (en) Image processing apparatus, and image forming apparatus,
JP2008092323A (en) Image processing equipment, and image reading apparatus and image forming apparatus equipped with the same
JP6210322B2 (en) Image forming apparatus
JP6732428B2 (en) Image processing device, halftone dot determination method, and program
JP6565711B2 (en) Image processing apparatus, image forming apparatus, and threshold matrix shaping method
JP5633364B2 (en) Image processing device
JP2020102767A (en) Image processing device, image processing method, and program
JP6155646B2 (en) Image forming apparatus and image processing method
JP5777602B2 (en) Image forming apparatus