JP2017163178A - Image processing apparatus and averaging processing method - Google Patents
Image processing apparatus and averaging processing method Download PDFInfo
- 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
Links
Images
Landscapes
- Facsimile Image Signal Circuits (AREA)
Abstract
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,
一般的に、移動平均処理では、注目画素とその周辺画素の画像データを入力し、それらの平均値を移動平均処理後の注目画素の画素値として出力する。このように、注目画素とその周辺画素の画像データを一度に入力する処理回路には、各ラインの画像データの入力を遅延させる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
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
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
請求項3に記載の発明によれば、
前記スクリーン処理部は、前記画像データの各画素を複数種類のディザマトリクスの組み合わせであるスーパーセルと周期的に照合し、
前記平均化処理部は、
前記画像データにおける各画素の位置から、前記スーパーセルと照合したときに各画素が所属するディザマトリクスの中心画素までのシフト量と、当該ディザマトリクスの種類とを決定し、
前記決定した種類のディザマトリクスと同じサイズ及び形状の平均化パターンを使用し、当該平均化パターンの位置を、前記平均化パターンの中心画素と前記一定領域の中心画素が一致する位置から、前記決定したシフト量だけシフトし、シフト後の前記平均化パターン内の各画素の画素値を平均することを特徴とする請求項1又は2に記載の画像処理装置が提供される。
According to invention of
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
請求項4に記載の発明によれば、
前記平均化処理部は、前記ディザマトリクスと同じサイズ及び形状の平均化パターンを、前記ディザマトリクスよりも大きいサイズに拡張して使用することを特徴とする請求項1〜3のいずれか一項に記載の画像処理装置が提供される。
According to invention of
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
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.
以下、本発明の画像処理装置及び平均化処理方法の実施の形態について、図面を参照して説明する。 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
As shown in FIG. 1, the image forming apparatus G includes a
制御部11は、CPU(Central Processing Unit)、RAM(Random Access Memory)等を備えて構成され、記憶部12から各種プログラムを読み出して実行することにより、各部を制御する。
例えば、制御部11は、画像生成部16又は画像読取部17により生成され、画像メモリー18に保持された原画像データを、画像処理装置19により画像処理させて、画像処理後の原画像データに基づいて、画像形成部20により用紙上に画像を形成させる。
The
For example, the
記憶部12は、制御部11により読み取り可能なプログラム、プログラムの実行時に用いられるファイル等を記憶している。記憶部12としては、ハードディスク等の大容量メモリーを用いることができる。
The
操作部13は、ユーザーの操作に応じた操作信号を生成し、制御部11に出力する。操作部13としては、キーパッド、表示部14と一体に構成されたタッチパネル等を用いることができる。
The
表示部14は、制御部11の指示にしたがって操作画面等を表示する。表示部14としては、LCD(Liquid Crystal Display)、OELD(Organic Electro Luminescence Display)等を用いることができる。
The
通信部15は、ネットワーク上の外部装置、例えばユーザー端末、サーバー、他の画像形成装置等と通信する。
通信部15は、ユーザー端末からネットワークを介して、画像を形成する指示内容がページ記述言語(PDL:Page Description Language)で記述されたベクトルデータを受信する。
The
The
画像生成部16は、通信部15により受信したベクトルデータをラスタライズ処理し、ビットマップ形式の原画像データを生成する。原画像データは、各画素がC(シアン)、M(マジェンタ)、Y(イエロー)及びK(黒)の4色の画素値を有する。画素値は画像の濃淡を表すデータ値であり、例えば8bitのデータ値は0〜255階調の濃淡を表す。
The
画像読取部17は、自動原稿送り装置、スキャナー等からなり、原稿台上にセットされた原稿面を読み取って、ビットマップ形式の原画像データを生成する。画像読取部17により生成された原画像データは、各画素がR(赤)、G(緑)及びB(青)の3色の画素値を有する。この原画像データは、図示しない色変換部によって、C、M、Y及びKの4色の画素値を有する原画像データに色変換される。
The
画像メモリー18は、画像生成部16又は画像読取部17により生成された原画像データを一時的に保持するバッファーメモリーである。画像メモリー18としては、DRAM(Dynamic RAM)等を用いることができる。
The
画像処理装置19は、画像メモリー18から原画像データを読み出して、各種画像処理を施す。
図2は、画像処理装置19の主な構成を機能ごとに表している。
図2に示すように、画像処理装置19は、平均化処理部191、γ補正処理部192及びスクリーン処理部193を備えている。
The
FIG. 2 shows the main configuration of the
As shown in FIG. 2, the
平均化処理部191は、画像データに平均化処理を施す。平均化処理の詳細は後述する。
The averaging
γ補正処理部192は、平均化処理後の画像データにγ補正処理を施す。γ補正処理は、画像形成部20により形成する画像の濃度特性が目標の濃度特性となるように、画像データの各画素の画素値を補正する処理である。
The γ
スクリーン処理部193は、γ補正処理後の画像データにスクリーン処理を施す。スクリーン処理は、ディザ法を用いて疑似的に中間調を再現する処理であり、画像データの各画素の画素値とディザマトリクスの各画素に設定された閾値を周期的に照合して比較し、比較の結果に応じて各画素の画素値を2値以上の多値に変換する。
The
画像形成部20は、画像処理装置19により画像処理された原画像データの各画素の4色の画素値に応じて、C、M、Y及びKの4色からなる画像をトナー等の色材を用いて用紙上に形成する。
The
図3は、平均化処理部191が、画像データに平均化処理を施すときの処理手順を示している。
図3に示すように、平均化処理部191は、画像データの各画素を注目画素として、注目画素を中心とする一定領域単位で画像データを入力する(ステップS1)。一定領域のサイズは、スクリーン処理に使用するディザマトリクスより大きいサイズである。
注目画素を中心とする一定領域の画像データは、FIFOを用いて、平均化処理の処理回路への各画素の画像データの入力を遅延させることにより、入力することができる。
FIG. 3 shows a processing procedure when the averaging
As shown in FIG. 3, the averaging
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
As shown in FIG. 4, the same number of
次に、平均化処理部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
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
図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
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
次に、平均化処理部191は、決定した矩形ブロックにおける注目画素の位置に応じて、注目画素の位置から注目画素が所属するディザマトリクスの中心画素までのシフト量を決定する(ステップS3)。
Next, the averaging
各画素についてシフト量をその都度決定してもよいが、矩形ブロックの周期はディザマトリクスの周期と同じであるため、矩形ブロック内での画素の位置が同じであれば、当該画素の位置から当該画素が所属するディザマトリクスの中心画素までのシフト量も同じである。処理効率を高めるため、あらかじめ矩形ブロック内の各画素の位置と、各画素の位置から各画素が所属するディザマトリクスの中心画素までのシフト量を対応付けたテーブルを記憶部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
図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
図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
Further, as shown in FIG. 8, the pixel of
次に、平均化処理部191は、入力した一定領域の中心に位置する画素(注目画素)と、平均化パターンの中心に位置する画素とが一致する位置から、決定したシフト量だけ平均化パターンの位置をシフトする(ステップS4)。平均化パターンは、平均化対象の画素を示すパターンである。
Next, the averaging
平均化処理部191は、平均化パターンとして、ディマトリクスと同じサイズ及び形状の平均化パターンを使用する。平均化パターンのサイズ及び形状は、例えばレジスタ等において矩形領域中の平均化対象の画素に1の値、平均化対象外の画素に0の値を設定することにより、指定することができる。平均化処理部191は、この設定を取得して平均化パターンを一定領域に照合する。なお、矩形領域は、ディザマトリクスより大きく一定領域より小さいサイズに設定され、平均化対象の画素を表す1の値は、平均化パターンの中心に位置する画素が矩形領域の中心に位置するように、設定されている。スクリーン処理において使用するディザマトリクスを変更する場合は、変更後のディザマトリクスのサイズ及び形状に応じてレジスタの設定を書き換えることにより、使用する平均化パターンをディザマトリクスに合わせて変更することができる。
The averaging
図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
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
平均化処理部191は、シフト後の平均化パターンR3内の各画素の画素値を平均し、得られた平均値を注目画素の平均化処理後の画素値として出力する(ステップS5)。具体的には、平均化処理部191は、平均化パターン内の各画素の画素値を積算した後、その画素数で除算することにより、平均値を得る。
なお、平均化パターンの各画素に重み付け係数を設定し、重み付け平均した平均値を算出してもよい。これにより、ディザマトリクスにより形成される周期的なパターンの形状を整形することができ、鮮鋭性の高い画像を形成することができる。
The averaging
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
Then, when the averaging process for all pixels is finished (step S6: Y), this process is finished.
なお、平均化処理部191は、ディザマトリクスと同じサイズ及び形状の平均化パターンを、ディザマトリクスよりも大きいサイズに拡張して使用することができる。
図12は、ディザマトリクスと同じサイズ及び形状の平均化パターンを、ディザマトリクスよりも大きなサイズに拡張したときの平均化パターンの例を示している。
拡張した平均化パターンを使用することにより、平均化する領域を拡張して、画像のノイズを減らすことができる。平均化処理部191は、平均化処理後の画素値ではなく、各画素の元の画素値を入力するので、平均化する領域を拡張しても元の画素値を使用して平均することができ、正確な平均値を得ることができる。また、使用する平均化パターンのサイズを拡張するだけで矩形ブロックの周期は変わらないため、ディザマトリクスと同じ周期で平均化処理することができる。
Note that the averaging
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
以上のように、本実施の形態の画像処理装置19は、画像データを、各画素を中心とする一定領域単位で入力し、入力した一定領域を平均化パターンと照合して平均化パターン内の各画素の画素値を平均し、得られた平均値を、一定領域の中心画素の画素値として出力する平均化処理部191と、平均化処理部191により平均化された画像データの各画素をディザマトリクスと周期的に照合し、各画素の画素値を、ディザマトリクス中の閾値と比較することにより多値化するスクリーン処理部193と、を備えている。
平均化処理部191は、平均化パターンとして、ディザマトリクスと同じサイズ及び形状の平均化パターンを使用し、画像データにおける各画素の位置から、ディザマトリクスと照合したときに各画素が所属するディザマトリクスの中心画素までのシフト量を決定し、平均化パターンの位置を、平均化パターンの中心画素と一定領域の中心画素とが一致する位置から、決定したシフト量だけシフトし、シフト後の平均化パターン内の各画素の画素値を平均する。
As described above, the
The averaging
ディザマトリクスと同じサイズ及び形状の平均化パターンを周期的に照合して、平均化パターン内の各画素の画素値をその平均値に一度に置き換える従来の平均化処理と比べて、上記実施の形態における平均化処理は、汎用性及び拡張性が高い。 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
一方、上記実施の形態の平均化処理では、平均化パターン内の画素値を一度に置き換えるのではなく、平均化パターン内の画素値の平均値を画素ごとに算出して出力する。よって、平均化処理部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
また、画像のノイズを減らすためには、平均化する領域を拡張することが有効であるが、従来の平均化処理では、平均化パターンを重複することなく走査しているため、平均化パターンの拡張によりすでに平均化処理した画素が再度平均化の対象になる。
例えば、図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
〔他の実施の形態〕
スクリーン処理部193は、スクリーン処理に使用するディザマトリクスとして、複数種類のディザマトリクスの組み合わせであるスーパーセルを用いることができる(P.Fink, PostScript Screening:Adobe AccurateScreens, Adobe_Press, Mountain View,CA, 1992, Chapter4,pp.43-61)。スーパーセルによれば、限られた解像度のなかでも特定の線数及び角度を有するパターンを形成することができる。スーパーセルを用いる場合、各画素が所属するディザマトリクスの種類を識別することにより、上述と同様の処理手順により平均化処理を実施することができる。
[Other Embodiments]
The
図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
The averaging
図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
図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
以上のように、他の実施の形態の画像処理装置19において、スクリーン処理部193は、画像データの各画素を複数種類のディザマトリクスの組み合わせであるスーパーセルと周期的に照合し、平均化処理部191は、画像データにおける各画素の位置から、スーパーセルと照合したときに各画素が所属するディザマトリクスの中心画素までのシフト量と、当該ディザマトリクスの種類とを決定し、決定した種類のディザマトリクスと同じサイズ及び形状の平均化パターンを使用し、当該平均化パターンの位置を、前記平均化パターンの中心画素と一定領域の中心画素が一致する位置から、決定したシフト量だけシフトし、シフト後の平均化パターン内の各画素の画素値を平均する。
As described above, in the
これにより、スクリーン処理にスーパーセルを使用する場合も、スーパーセル中の形状及びサイズが異なる複数種類のディザマトリクスと同じ領域単位で平均化処理することができる。スーパーセルにも対応できる、汎用性及び拡張性が高い平均化処理が可能となる。 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
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
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.
前記入力した一定領域を平均化パターンと照合して前記平均化パターン内の各画素の画素値を平均し、得られた平均値を、前記一定領域の中心画素の画素値として出力するステップと、を含み、
前記平均化パターン内の各画素の画素値を平均するステップは、前記平均化パターンとして、画像データの各画素をディザマトリクスと周期的に照合し、各画素の画素値を、ディザマトリクス中の閾値と比較することにより多値化するスクリーン処理に使用する前記ディザマトリクスと同じサイズ及び形状の平均化パターンを使用し、
前記画像データにおける各画素の位置から、前記ディザマトリクスと照合したときに各画素が所属するディザマトリクスの中心画素までのシフト量を決定するステップと、
前記平均化パターンの位置を、前記平均化パターンの中心画素と前記一定領域の中心画素が一致する位置から、前記決定したシフト量だけシフトし、シフト後の前記平均化パターン内の各画素の画素値を平均するステップと、
を含むことを特徴とする平均化処理方法。 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:
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) |
-
2016
- 2016-03-07 JP JP2016043026A patent/JP2017163178A/en active Pending
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 |