JP2009246838A - Image processor and image processing method - Google Patents

Image processor and image processing method Download PDF

Info

Publication number
JP2009246838A
JP2009246838A JP2008093375A JP2008093375A JP2009246838A JP 2009246838 A JP2009246838 A JP 2009246838A JP 2008093375 A JP2008093375 A JP 2008093375A JP 2008093375 A JP2008093375 A JP 2008093375A JP 2009246838 A JP2009246838 A JP 2009246838A
Authority
JP
Japan
Prior art keywords
pixel
pixel block
interest
block
value
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.)
Withdrawn
Application number
JP2008093375A
Other languages
Japanese (ja)
Inventor
Hirokazu Tamura
宏和 田村
Naoki Ito
直樹 伊藤
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.)
Canon Inc
Original Assignee
Canon 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 Canon Inc filed Critical Canon Inc
Priority to JP2008093375A priority Critical patent/JP2009246838A/en
Publication of JP2009246838A publication Critical patent/JP2009246838A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a technology that accurately detects regions drawn in regular patterns and reduces the interference between the regions drawn in regular patterns and dither images, thereby offering the color images desired by a user. <P>SOLUTION: A two-color ratio calculation section 404 performs the counting-up when four pixels close to the reference pixel consist of two colors. A continuous pixel ratio calculation section 405 detects pixel streams consisting of pixels having the same pixel values to determine a total value of the lengths of each detected pixel streams. A difference calculation section 406 determines a difference value denoting a difference between a pixel block already subject to the resolution conversion processing and a pixel block of interest. A pattern detection section 407 determines whether the pixel block of interest is a pixel block including the regular patterns according to the magnitude comparison result with the total value, difference value, count value, and a preset threshold value. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、画像処理技術に関するものである。   The present invention relates to an image processing technique.

従来、パーソナルコンピュータで使用されるアプリケーションソフトにおいて、規則的なパターン画像を描画することによって擬似的な色味や透明度を実現させようとする際、ディザパターンとその規則的なパターン画像とが干渉を起こしていた。これにより、所望の色合いが出なかったり、状況によっては干渉により絵が消えてしまうという障害があった。   Conventionally, in an application software used in a personal computer, when trying to realize a pseudo color and transparency by drawing a regular pattern image, the dither pattern and the regular pattern image interfere with each other. I was waking up. As a result, there is a problem that a desired color does not appear or the picture disappears due to interference depending on the situation.

これに対し、ディザパターンと上記パターン画像の周期の位相をずらすことにより、これら障害を解決する手法が提案されている。またその他にも、半透明オブジェクトに対し前景と背景の抽出処理を行い、両画素の平均値を計算することで、これらモワレやざらつき感を発生させないようにする手法も提案されている。更には、指定された画像の規則性によって最適なディザパターンを選択することによりこれら問題を解決し、理想の色を再現しようとする技術も提案されている。
特開2002−225381号公報 特開2002−152526号公報 特開2003−281557号公報
On the other hand, there has been proposed a method for solving these obstacles by shifting the phase of the cycle between the dither pattern and the pattern image. In addition, a method has been proposed in which foreground and background extraction processing is performed on a semi-transparent object, and an average value of both pixels is calculated so as not to generate moire or roughness. Furthermore, a technique for solving these problems by selecting an optimal dither pattern according to the regularity of a specified image and reproducing an ideal color has been proposed.
Japanese Patent Laid-Open No. 2002-225381 JP 2002-152526 A JP 2003-281557 A

しかしながら、従来方式ではそれら規則的なパターンを持つ画像を抽出する際に、特別な処理系を用意する必要があり、またその処理も複雑である。また、ページ記述言語依存の場合、ラスタ画像として入力されたものに対して、その検出処理が不可能な場合が考えられる。今後、アプリケーションの多機能化に伴い想定される規則的パターンの種類は千差万別であり、これらすべてに対応することは難しい。   However, in the conventional method, it is necessary to prepare a special processing system when extracting an image having such a regular pattern, and the processing is complicated. Further, in the case of being dependent on the page description language, there may be a case where the detection process cannot be performed on an image input as a raster image. In the future, the types of regular patterns that will be expected with the multi-functionality of applications will vary widely, and it is difficult to deal with all of them.

本発明は以上の問題に鑑みて成されたものであり、規則的なパターンで描画されている領域の検出を精度良く行い、規則的なパターンで描画されている領域とディザ画像との干渉を抑え、ユーザ所望の色味の画像を提供する為の技術を提供することを目的とする。   The present invention has been made in view of the above problems, accurately detects a region drawn in a regular pattern, and prevents interference between the region drawn in a regular pattern and a dither image. It is an object to provide a technique for suppressing and providing an image having a user-desired color.

本発明の目的を達成するために、例えば、本発明の画像処理装置は以下の構成を備える。   In order to achieve the object of the present invention, for example, an image processing apparatus of the present invention comprises the following arrangement.

即ち、画像を複数の画素ブロックに分割する分割手段と、
前記分割手段が分割したそれぞれの画素ブロックについて
着目画素ブロック内の各画素を参照し、参照した画素の近傍4画素が2色で構成されている場合にはカウントアップするカウント手段と、
前記着目画素ブロック内で、同じ画素値を有する画素で構成されている画素列を検出し、検出したそれぞれの画素列の長さを求め、求めたそれぞれの画素列の長さの合計値を求める手段と、
前記着目画素ブロックに対して解像度変換処理を行うことで得られる解像度変換処理済み画素ブロックと、前記着目画素ブロックとの差分を示す差分値を求める計算手段と、
前記合計値、前記差分値、前記カウント手段によるカウント値と、予め設定された閾値との大小比較結果に基づいて、前記着目画素ブロックが規則的なパターンを含む画素ブロックであるのか否かを判定する判定手段と、
前記着目画素ブロックが規則的なパターンを含む画素ブロックである場合には、前記着目画素ブロックに対して、画質を低減させるための処理を施す処理手段と
を備えることを特徴とする。
That is, a dividing unit that divides an image into a plurality of pixel blocks;
For each pixel block divided by the dividing means, reference is made to each pixel in the pixel block of interest, and counting means for counting up when the four neighboring pixels of the referenced pixel are composed of two colors,
In the pixel block of interest, a pixel column composed of pixels having the same pixel value is detected, the length of each detected pixel column is obtained, and the total value of the obtained lengths of the respective pixel columns is obtained. Means,
Calculation means for obtaining a difference value indicating a difference between a resolution-converted pixel block obtained by performing resolution conversion processing on the pixel-of-interest block and the pixel-of-interest block;
It is determined whether or not the pixel block of interest is a pixel block including a regular pattern based on a comparison result of the total value, the difference value, the count value by the counting means, and a preset threshold value. Determination means to perform,
When the pixel block of interest is a pixel block including a regular pattern, the pixel block of interest includes processing means for performing processing for reducing image quality on the pixel block of interest.

本発明の目的を達成するために、例えば、本発明の画像処理装置は以下の構成を備える。   In order to achieve the object of the present invention, for example, an image processing apparatus of the present invention comprises the following arrangement.

即ち、画像を複数の画素ブロックに分割する分割手段と、
前記分割手段が分割したそれぞれの画素ブロックについて
着目画素ブロック内の各画素を参照し、参照した画素の近傍4画素が2色で構成されている場合にはカウントアップするカウント手段と、
前記着目画素ブロック内で、同じ画素値を有する画素で構成されている画素列を検出し、検出したそれぞれの画素列の長さを求め、求めたそれぞれの画素列の長さの合計値を求める手段と、
前記着目画素ブロックに対して解像度変換処理を行うことで得られる解像度変換処理済み画素ブロックと、前記着目画素ブロックとの差分を示す差分値を求める計算手段と、
前記着目画素ブロックの属性を判別する判別手段と、
前記合計値、前記カウント手段によるカウント値と、予め設定された閾値との大小比較結果に基づいて、前記着目画素ブロックが規則的なパターンを含む画素ブロックであるのか否かを判定する判定処理、若しくは、前記差分値と、予め設定された閾値との大小比較結果に基づいて、前記着目画素ブロックが規則的なパターンを含む画素ブロックであるのか否かを判定する判定処理、のうち、前記判別手段により判別された属性に応じて決まる一方の判定処理を実行する判定手段と、
前記着目画素ブロックが規則的なパターンを含む画素ブロックである場合には、前記着目画素ブロックに対して、画質を低減させるための処理を施す処理手段と
を備えることを特徴とする。
That is, a dividing unit that divides an image into a plurality of pixel blocks;
For each pixel block divided by the dividing means, reference is made to each pixel in the pixel block of interest, and counting means for counting up when the four neighboring pixels of the referenced pixel are composed of two colors,
In the pixel block of interest, a pixel column composed of pixels having the same pixel value is detected, the length of each detected pixel column is obtained, and the total value of the obtained lengths of the respective pixel columns is obtained. Means,
Calculation means for obtaining a difference value indicating a difference between a resolution-converted pixel block obtained by performing resolution conversion processing on the pixel-of-interest block and the pixel-of-interest block;
Determining means for determining the attribute of the pixel block of interest;
A determination process for determining whether or not the pixel block of interest is a pixel block including a regular pattern based on a comparison result between the total value, the count value by the counting unit, and a preset threshold value; Alternatively, among the determination processes for determining whether or not the pixel block of interest is a pixel block including a regular pattern based on a magnitude comparison result between the difference value and a preset threshold value. Determination means for executing one determination process determined according to the attribute determined by the means;
When the pixel block of interest is a pixel block including a regular pattern, the pixel block of interest includes processing means for performing processing for reducing image quality on the pixel block of interest.

本発明の目的を達成するために、例えば、本発明の画像処理方法は以下の構成を備える。   In order to achieve the object of the present invention, for example, an image processing method of the present invention comprises the following arrangement.

即ち、画像を複数の画素ブロックに分割する分割工程と、
前記分割工程で分割したそれぞれの画素ブロックについて
着目画素ブロック内の各画素を参照し、参照した画素の近傍4画素が2色で構成されている場合にはカウントアップするカウント工程と、
前記着目画素ブロック内で、同じ画素値を有する画素で構成されている画素列を検出し、検出したそれぞれの画素列の長さを求め、求めたそれぞれの画素列の長さの合計値を求める工程と、
前記着目画素ブロックに対して解像度変換処理を行うことで得られる解像度変換処理済み画素ブロックと、前記着目画素ブロックとの差分を示す差分値を求める計算工程と、
前記合計値、前記差分値、前記カウント工程によるカウント値と、予め設定された閾値との大小比較結果に基づいて、前記着目画素ブロックが規則的なパターンを含む画素ブロックであるのか否かを判定する判定工程と、
前記着目画素ブロックが規則的なパターンを含む画素ブロックである場合には、前記着目画素ブロックに対して、画質を低減させるための処理を施す処理工程と
を備えることを特徴とする。
That is, a dividing step of dividing an image into a plurality of pixel blocks;
With respect to each pixel block divided in the division step, each pixel block in the target pixel block is referred to, and when the four pixels in the vicinity of the referenced pixel are composed of two colors, a counting step for counting up,
In the pixel block of interest, a pixel column composed of pixels having the same pixel value is detected, the length of each detected pixel column is obtained, and the total value of the obtained lengths of the respective pixel columns is obtained. Process,
A calculation step for obtaining a difference value indicating a difference between a resolution-converted pixel block obtained by performing resolution conversion processing on the pixel-of-interest block and the pixel-of-interest block;
It is determined whether or not the pixel block of interest is a pixel block including a regular pattern based on a magnitude comparison result between the total value, the difference value, the count value obtained by the counting step, and a preset threshold value. A determination step to
When the pixel block of interest is a pixel block including a regular pattern, the pixel block includes a processing step of performing a process for reducing image quality on the pixel block of interest.

本発明の目的を達成するために、例えば、本発明の画像処理方法は以下の構成を備える。   In order to achieve the object of the present invention, for example, an image processing method of the present invention comprises the following arrangement.

即ち、画像を複数の画素ブロックに分割する分割工程と、
前記分割工程で分割したそれぞれの画素ブロックについて
着目画素ブロック内の各画素を参照し、参照した画素の近傍4画素が2色で構成されている場合にはカウントアップするカウント工程と、
前記着目画素ブロック内で、同じ画素値を有する画素で構成されている画素列を検出し、検出したそれぞれの画素列の長さを求め、求めたそれぞれの画素列の長さの合計値を求める工程と、
前記着目画素ブロックに対して解像度変換処理を行うことで得られる解像度変換処理済み画素ブロックと、前記着目画素ブロックとの差分を示す差分値を求める計算工程と、
前記着目画素ブロックの属性を判別する判別工程と、
前記合計値、前記カウント工程によるカウント値と、予め設定された閾値との大小比較結果に基づいて、前記着目画素ブロックが規則的なパターンを含む画素ブロックであるのか否かを判定する判定処理、若しくは、前記差分値と、予め設定された閾値との大小比較結果に基づいて、前記着目画素ブロックが規則的なパターンを含む画素ブロックであるのか否かを判定する判定処理、のうち、前記判別工程で判別された属性に応じて決まる一方の判定処理を実行する判定工程と、
前記着目画素ブロックが規則的なパターンを含む画素ブロックである場合には、前記着目画素ブロックに対して、画質を低減させるための処理を施す処理工程と
を備えることを特徴とする。
That is, a dividing step of dividing an image into a plurality of pixel blocks;
With respect to each pixel block divided in the division step, each pixel block in the target pixel block is referred to, and when the four pixels in the vicinity of the referenced pixel are composed of two colors, a counting step for counting up,
In the pixel block of interest, a pixel column composed of pixels having the same pixel value is detected, the length of each detected pixel column is obtained, and the total value of the obtained lengths of the respective pixel columns is obtained. Process,
A calculation step for obtaining a difference value indicating a difference between a resolution-converted pixel block obtained by performing resolution conversion processing on the pixel-of-interest block and the pixel-of-interest block;
A determination step of determining an attribute of the pixel block of interest;
A determination process for determining whether or not the pixel block of interest is a pixel block including a regular pattern based on a comparison result between the total value, the count value obtained by the counting step, and a preset threshold value; Alternatively, among the determination processes for determining whether or not the pixel block of interest is a pixel block including a regular pattern based on a magnitude comparison result between the difference value and a preset threshold value. A determination process for executing one determination process determined according to the attribute determined in the process;
When the pixel block of interest is a pixel block including a regular pattern, the pixel block includes a processing step of performing a process for reducing image quality on the pixel block of interest.

本発明の構成によれば、規則的なパターンで描画されている領域の検出を精度良く行い、規則的なパターンで描画されている領域とディザ画像との干渉を抑え、ユーザ所望の色味の画像を提供することができる。   According to the configuration of the present invention, the region drawn with the regular pattern is accurately detected, the interference between the region drawn with the regular pattern and the dither image is suppressed, and the user-desired color tone is obtained. Images can be provided.

以下、添付図面を参照し、本発明の好適な実施形態について説明する。なお、以下説明する実施形態は、本発明を具体的に実施した場合の一例を示すもので、特許請求の範囲に記載の構成の具体的な実施例の1つである。   Preferred embodiments of the present invention will be described below with reference to the accompanying drawings. The embodiment described below shows an example when the present invention is specifically implemented, and is one of the specific examples of the configurations described in the claims.

[第1の実施形態]
図1は、本実施形態に係る画像処理装置を適用するシステムの構成例を示すブロック図である。図1に示す如く、システムは、本実施形態に係る画像処理装置として機能するプリンタ装置10と、ホストコンピュータ50と、で構成されている。
[First Embodiment]
FIG. 1 is a block diagram illustrating a configuration example of a system to which the image processing apparatus according to the present embodiment is applied. As shown in FIG. 1, the system includes a printer device 10 that functions as an image processing device according to the present embodiment, and a host computer 50.

先ず、プリンタ装置10について説明する。プリンタ装置10は、ホストコンピュータ50から送信された印刷ジョブを受信し、受信した印刷ジョブに基づいて記録紙等の記録媒体上に可視画像を形成する装置である。プリンタ装置10は、制御部11、プリンタエンジン14、HDD(ハードディスクドライブ)105、を有している。   First, the printer apparatus 10 will be described. The printer device 10 is a device that receives a print job transmitted from the host computer 50 and forms a visible image on a recording medium such as recording paper based on the received print job. The printer apparatus 10 includes a control unit 11, a printer engine 14, and an HDD (Hard Disk Drive) 105.

制御部11は、プリンタ装置10全体の制御を行うと共に、プリンタ装置10が行うものとして後述する各処理を実行する。制御部11は、ホストコンピュータ50から送信された印刷ジョブを解析し、プリンタエンジン14に提供可能な形態の画像データを生成する。係る処理は、実際には、制御部11が有するCPU12が行う。CPU12は、係る処理を、メモリ13に格納されているプログラムを実行することで行う。もちろん、メモリ13には、その他の処理をCPU12に実行させるためのプログラムやデータが格納されている。   The control unit 11 controls the entire printer device 10 and executes processes described later as what the printer device 10 performs. The control unit 11 analyzes the print job transmitted from the host computer 50 and generates image data in a form that can be provided to the printer engine 14. Such processing is actually performed by the CPU 12 of the control unit 11. The CPU 12 performs such processing by executing a program stored in the memory 13. Of course, the memory 13 stores programs and data for causing the CPU 12 to execute other processes.

プリンタエンジン14は、制御部11による制御に従って動作するものであり、制御部11から送出された画像データに従って記録紙上に可視像を形成する。なお、プリンタエンジン14には、電子写真方式、インクジェット方式、感熱方式等、各種のプリンタエンジンを適用することができる。   The printer engine 14 operates according to control by the control unit 11 and forms a visible image on a recording sheet according to image data sent from the control unit 11. Note that various printer engines such as an electrophotographic system, an inkjet system, and a thermal system can be applied to the printer engine 14.

HDD105には、ホストコンピュータ50から送出された印刷ジョブなどを格納する。   The HDD 105 stores a print job sent from the host computer 50.

次に、ホストコンピュータ50について説明する。   Next, the host computer 50 will be described.

プリンタ装置10に印刷動作を行わせたり、プリンタ装置10に係る情報をプリンタ装置10から取得するために、ホストコンピュータ50には、プリンタ装置10のドライバソフトウェア(所謂プリンタドライバ)が予めインストールされている。例えば、ホストコンピュータ50上で動作しているアプリケーションを用いてある文書の印刷指示を発行したとする。この場合、このインストールされているプリンタドライバにより、この文書の「プリンタ装置10が解析可能なページ記述言語(PDL)で構成されている印刷ジョブ」が生成され、ホストコンピュータ50は、この印刷ジョブをプリンタ装置10に送信する。   In order to cause the printer apparatus 10 to perform a printing operation and to acquire information related to the printer apparatus 10 from the printer apparatus 10, driver software (so-called printer driver) of the printer apparatus 10 is preinstalled in the host computer 50. . For example, it is assumed that an instruction for printing a document is issued using an application running on the host computer 50. In this case, the installed printer driver generates a “print job configured in a page description language (PDL) that can be analyzed by the printer device 10” of the document, and the host computer 50 executes this print job. Transmit to the printer device 10.

プリンタ装置10に送信された印刷ジョブのデータは、プリンタ装置10が有するHDD105に一旦格納される。次にCPU12は、係る印刷ジョブに対してPDL解析を行うと共に、PDLに基づいてビットマップイメージをメモリ13上にレンダリングする。そして更に制御部11は、PDL解析時に画素毎の属性情報を得て属性フラグデータを生成する。即ち、PDLコマンドにおけるコマンドの種別を示す情報を参照して、黒文字画素を構成する画素を識別するための属性情報を画素単位で生成し、属性データとする。なお、属性データとしては黒文字を示すものに限定されるわけではなく、例えば色文字領域、網点領域、ベクターグラフィックス領域、などの各種属性を示す多ビットの情報を属性フラグデータとして用いることができる。   The print job data transmitted to the printer apparatus 10 is temporarily stored in the HDD 105 of the printer apparatus 10. Next, the CPU 12 performs PDL analysis on the print job and renders a bitmap image on the memory 13 based on the PDL. Further, the control unit 11 obtains attribute information for each pixel during PDL analysis and generates attribute flag data. That is, by referring to the information indicating the command type in the PDL command, attribute information for identifying the pixels constituting the black character pixel is generated for each pixel and used as attribute data. Note that the attribute data is not limited to those indicating black characters. For example, multi-bit information indicating various attributes such as a color character region, a halftone dot region, and a vector graphics region is used as the attribute flag data. it can.

そして、制御部11は、これにより得られたビットマップイメージをプリンタエンジン14に出力する。   Then, the control unit 11 outputs the bitmap image obtained thereby to the printer engine 14.

ここで、本実施形態では、CPU12は、レンダリングしたビットマップイメージを複数の画素ブロックに分割し、画素ブロック単位で、規則的なパターンを含む画像領域を検出する。そして、規則的なパターンを含む画像領域を検出した画素ブロックについては、平滑化フィルタリング処理など、画質を低減させるための処理を行う。そして、各画素ブロックのデータは順次、プリンタエンジン14に送出される。   Here, in the present embodiment, the CPU 12 divides the rendered bitmap image into a plurality of pixel blocks, and detects an image area including a regular pattern for each pixel block. And about the pixel block which detected the image area containing a regular pattern, the process for reducing an image quality, such as a smoothing filtering process, is performed. The data of each pixel block is sequentially sent to the printer engine 14.

次に、プリンタ装置10がビットマップイメージに対して行う処理についてより詳細に説明する。   Next, a process performed by the printer device 10 on a bitmap image will be described in detail.

ここで、ビットマップイメージ(画像)は、モノクロ多値の画像でも良いが、本実施形態では、各画素がRGBで表現されるカラー画像であるとする。また、R、G、Bのそれぞれは8ビットで表現されるものとするので、R、G、Bのそれぞれの輝度値は、0〜255の値を取りうる。また、画像のサイズは、水平方向にW画素、垂直方向にH画素であるとする。また、R、G、Bのそれぞれに対して成分番号0、1、2を割り当て、ビットマップイメージの左上隅を座標(0、0)とし、水平方向画素位置x、垂直方向画素位置yにある成分番号Cの画素の画素値をP(x、y、C)と表す。例えば、位置(x、y)=(3、4)である画素が(R、G、B)=(255、128、0)という画素値を持つ場合、P(3、4、0)=255、P(3、4、1)=128、P(3、4、2)=0と表現する。   Here, the bitmap image (image) may be a monochrome multi-valued image, but in the present embodiment, it is assumed that each pixel is a color image expressed in RGB. Since each of R, G, and B is expressed by 8 bits, each luminance value of R, G, and B can take a value of 0-255. The image size is assumed to be W pixels in the horizontal direction and H pixels in the vertical direction. Also, component numbers 0, 1, and 2 are assigned to R, G, and B, respectively, and the upper left corner of the bitmap image is set to the coordinates (0, 0), and is at the horizontal pixel position x and the vertical pixel position y. The pixel value of the pixel with component number C is represented as P (x, y, C). For example, if the pixel at position (x, y) = (3, 4) has a pixel value of (R, G, B) = (255, 128, 0), P (3, 4, 0) = 255 , P (3, 4, 1) = 128 and P (3, 4, 2) = 0.

図4は、制御部11の機能構成例を示すブロック図である。以下、図4を用いて、制御部11が画像に対して行う処理について説明する。   FIG. 4 is a block diagram illustrating a functional configuration example of the control unit 11. Hereinafter, a process performed on the image by the control unit 11 will be described with reference to FIG.

CPU12は、ホストコンピュータ50から送信された印刷ジョブに基づいて、画像をバッファ401上にレンダリングする。バッファ401は、メモリ13内の部分領域である。   The CPU 12 renders an image on the buffer 401 based on the print job transmitted from the host computer 50. The buffer 401 is a partial area in the memory 13.

CPU12の一機能としてのブロック分割部402は、バッファ401に1ストライプ分の画像(Thライン分の画像)が格納されると、この1ストライプ分の画像を複数の画素ブロックに分割する。ここで、係る画素ブロックのサイズは、水平方向Tw画素、垂直方向Th画素であるとする。説明の便宜上、画像の水平方向の画素数WはTwの整数倍であるとする。以下の説明では、この水平方向Tw画素、垂直方向Th画素で構成される画素ブロックをタイルと呼称する場合もある。   The block dividing unit 402 as one function of the CPU 12 divides the image for one stripe into a plurality of pixel blocks when the image for one stripe (image for Th line) is stored in the buffer 401. Here, the size of the pixel block is assumed to be a horizontal direction Tw pixel and a vertical direction Th pixel. For convenience of explanation, it is assumed that the number of pixels W in the horizontal direction of the image is an integral multiple of Tw. In the following description, the pixel block composed of the horizontal direction Tw pixels and the vertical direction Th pixels may be referred to as a tile.

バッファ403は、1タイル分の画素ブロックのデータを格納する為の領域を有しており、ブロック分割部402から出力される画素ブロックのデータを順次格納する。従って、バッファ403に必要とされる最低容量は、Tw×Th×3(RGB)バイトである。バッファ403に格納される1タイル分の画素ブロックにおいて、水平方向画素位置x、垂直方向画素位置yにある画素のコンポーネントcの輝度値をP(x、y、c)と定義する。なお、x=0〜(Tw−1)、y=0〜(Th−1)であり、cは、0〜2の何れか1つ(即ちR、G、Bの何れかに対応する成分番号)である。   The buffer 403 has an area for storing pixel block data for one tile, and sequentially stores the pixel block data output from the block dividing unit 402. Accordingly, the minimum capacity required for the buffer 403 is Tw × Th × 3 (RGB) bytes. In the pixel block for one tile stored in the buffer 403, the luminance value of the component c of the pixel at the horizontal pixel position x and the vertical pixel position y is defined as P (x, y, c). X = 0 to (Tw-1), y = 0 to (Th-1), and c is any one of 0 to 2 (that is, the component number corresponding to any of R, G, and B). ).

次に、CPU12の一機能としての2色率算出部404は、バッファ403から1つの画素ブロック(着目画素ブロック)のデータを読み出すと、係る着目画素ブロックを構成する各画素をラスタスキャン順に参照する。そして、現在参照している画素の近傍4画素が2色で構成されているか否かをチェックする。図6は、現在参照している画素と、その近傍4画素を示す図である。図6において、xは、現在参照している画素である。a,b,c,dは、画素xの近傍4画素である。従って、図6の場合、a,b,c,dのそれぞれの画素の画素値を参照し、画素値の関係がa=b及びc=d、若しくはa=c及びb=d、若しくはa=d及びb=cの何れかであれば、「近傍4画素は2色で構成されている」と判断することができる。そして、「近傍4画素は2色で構成されている」と判断した場合には、カウント値を1つカウントアップする。もちろん、係るカウント値は、画素ブロック毎に初期化される。即ち、2色率算出部404が着目画素ブロックに対して処理を開始する前には既に0に初期化されている。   Next, when the two-color rate calculation unit 404 as one function of the CPU 12 reads data of one pixel block (target pixel block) from the buffer 403, the two color rate calculation unit 404 refers to each pixel constituting the target pixel block in raster scan order. . Then, it is checked whether or not the four pixels in the vicinity of the currently referred pixel are composed of two colors. FIG. 6 is a diagram illustrating a pixel that is currently referred to and four neighboring pixels. In FIG. 6, x is a pixel currently referred to. a, b, c, and d are four pixels in the vicinity of the pixel x. Therefore, in the case of FIG. 6, the pixel values of the respective pixels a, b, c, and d are referred to, and the relationship between the pixel values is a = b and c = d, or a = c and b = d, or a = If either d or b = c, it can be determined that “the four neighboring pixels are composed of two colors”. When it is determined that “the four neighboring pixels are composed of two colors”, the count value is incremented by one. Of course, the count value is initialized for each pixel block. That is, it is already initialized to 0 before the two-color rate calculation unit 404 starts processing for the pixel block of interest.

このような処理を、着目画素ブロックを構成する各画素について行う。これにより、着目画素ブロックにおいて、「近傍4画素a〜dが2色で構成されている」ような画素xの数をカウントすることができる。   Such processing is performed for each pixel constituting the target pixel block. Thereby, in the pixel block of interest, the number of pixels x such that “the four neighboring pixels a to d are composed of two colors” can be counted.

ここで、着目画素ブロックを構成する画素の数はThxTwであるので、着目画素ブロックについてカウントした結果をTとすると、周囲4画素a〜dが2色で構成されているような画素xの着目画素ブロック内の出現確率はT/(ThxTw)であらわされる。係る出現確率は、着目画素ブロックについてカウントしたカウント値を、着目画素ブロックを構成する画素の数で割った結果である。この出現確率を以下の説明では「2色率」と呼称し、2色率算出部404は、この出現確率を「2色率」として出力する。即ち、2色率算出部404は、2色率を、画素ブロック毎に出力することになる。   Here, since the number of pixels constituting the pixel block of interest is ThxTw, if the result of counting the pixel block of interest is T, the pixel x in which the surrounding four pixels a to d are composed of two colors is focused. The appearance probability in the pixel block is represented by T / (ThxTw). The appearance probability is a result of dividing the count value counted for the target pixel block by the number of pixels constituting the target pixel block. This appearance probability is referred to as “two-color ratio” in the following description, and the two-color ratio calculation unit 404 outputs this appearance probability as “two-color ratio”. That is, the two color rate calculation unit 404 outputs the two color rate for each pixel block.

次に、CPU12の一機能としての連続画素率算出部405は、バッファ403から1つの画素ブロック(着目画素ブロック)のデータを読み出すと、係る着目画素ブロックを構成する各画素をラスタスキャン順に参照する。そして、着目画素ブロック内で、同じ画素値を有する画素で構成されている画素列を検出する。そして、検出したそれぞれの画素列の長さを求め、求めたそれぞれの画素列の長さの合計値を求める。着目画素ブロックを構成する画素の数は上述の通りTh×Twであるので、係る合計値をRとすると、画素列の着目画素ブロック内の出現確率はR/(ThxTw)で表される。係る出現確率は、着目画素ブロックについて求めた上記合計値を、着目画素ブロックを構成する画素の数で割った結果である。この出現確率を以下の説明では「ラン率」と呼称し、連続画素率算出部405は、この出現確率を「ラン率」として出力する。即ち、連続画素率算出部405は、ラン率を、画素ブロック毎に出力することになる。   Next, when the data of one pixel block (target pixel block) is read from the buffer 403, the continuous pixel rate calculation unit 405 as one function of the CPU 12 refers to each pixel constituting the target pixel block in the raster scan order. . Then, a pixel column composed of pixels having the same pixel value is detected in the target pixel block. Then, the length of each detected pixel column is obtained, and the total value of the obtained lengths of each pixel row is obtained. Since the number of pixels constituting the target pixel block is Th × Tw as described above, when the total value is R, the appearance probability of the pixel column in the target pixel block is represented by R / (ThxTw). The appearance probability is a result of dividing the total value obtained for the target pixel block by the number of pixels constituting the target pixel block. This appearance probability is referred to as “run rate” in the following description, and the continuous pixel rate calculation unit 405 outputs this appearance probability as “run rate”. That is, the continuous pixel rate calculation unit 405 outputs the run rate for each pixel block.

次に、CPU12の一機能としての差分算出部406は、バッファ403から1つの画素ブロック(着目画素ブロック)のデータを読み出す。そして読み出した着目画素ブロックに対して解像度変換処理を行うことで得られる解像度変換処理済み画素ブロックと、読み出した着目画素ブロックとの差分を示す差分値を求める。   Next, the difference calculation unit 406 as one function of the CPU 12 reads data of one pixel block (target pixel block) from the buffer 403. Then, a difference value indicating a difference between the resolution-converted pixel block obtained by performing the resolution conversion process on the read target pixel block and the read target pixel block is obtained.

ここで、差分算出部406が行う処理についてより詳細に説明する。図5(a)は、バッファ403から読み出した着目画素ブロックを構成する各画素を示す図である。図5(b)は、バッファ403から読み出した着目画素ブロックに対して解像度変換処理を行うことで得られる解像度変換処理済み画素ブロックを構成する各画素を示す図である。   Here, the process performed by the difference calculation unit 406 will be described in more detail. FIG. 5A is a diagram showing each pixel constituting the target pixel block read from the buffer 403. FIG. 5B is a diagram showing each pixel constituting a resolution-converted pixel block obtained by performing resolution conversion processing on the pixel block of interest read from the buffer 403.

着目画素ブロックの左上端を(0、0)とし、水平方向x座標、垂直方向y座標を定義する。この場合、着目画素ブロックにおいて座標位置(p、q)にある画素の画素値をV’(p、q)と表す。同様に、解像度変換処理済み画素ブロックの左上端を(0、0)とし、水平方向x座標、垂直方向y座標を定義する。この場合、解像度変換処理済み画素ブロックにおいて座標位置(p、q)にある画素の画素値をV(p、q)と表す。 The upper left corner of the pixel block of interest is (0, 0), and the horizontal x coordinate and the vertical y coordinate are defined. In this case, the pixel value of the pixel at the coordinate position (p, q) in the pixel block of interest is represented as V ′ (p, q) . Similarly, the upper left corner of the pixel block having undergone resolution conversion is (0, 0), and the horizontal direction x coordinate and the vertical direction y coordinate are defined. In this case, the pixel value of the pixel at the coordinate position (p, q) in the resolution-converted pixel block is represented as V (p, q) .

差分算出部406は先ず、着目画素ブロックに対して解像度変換を施し、水平方向、垂直方向、共に1/2のサイズに縮小した縮小タイル画素ブロック(解像度変換処理済み画素ブロック)を生成する。具体的には、着目画素ブロック内で(x、y)に位置する画素の画素値をV’(x、y)、解像度変換処理済み画素ブロックで(x、y)に位置する画素の画素値をV(x、y)とすると、以下の式を全てのx、yについて計算する。ここで、全てのx、yについて計算するとは、x=0〜(Tw−2)/2、y=0〜(Th−2)/2のそれぞれについて計算することを意味する。これにより、解像度変換処理済み画素ブロックを生成することができる。 First, the difference calculation unit 406 performs resolution conversion on the pixel block of interest, and generates a reduced tile pixel block (resolution conversion-processed pixel block) that has been reduced to 1/2 the size in both the horizontal and vertical directions. Specifically, the pixel value of the pixel located at (x, y) in the pixel block of interest is V ′ (x, y) , and the pixel value of the pixel located at (x, y) in the resolution-converted pixel block Is V (x, y) , the following equation is calculated for all x and y. Here, calculating for all x and y means calculating for each of x = 0 to (Tw−2) / 2 and y = 0 to (Th−2) / 2. Thereby, a pixel block having undergone resolution conversion processing can be generated.

(x、y)=(V’(2x、2y)+V’(2x+1、y)+V’(2x、2y+1)+V’(2x+1、2y+1))/4
なお、係る処理は、R、G、Bのそれぞれの色成分(component)について行う。図5では、V’(0、0)、V’(1、0)、V’(0、1)、V’(1、1)の平均値が、V(0、0)となる。
V (x, y) = (V ' (2x, 2y) + V' (2x + 1, y) + V ' (2x, 2y + 1) + V' (2x + 1,2y + 1) ) / 4
This process is performed for each of R, G, and B color components. In FIG. 5, the average value of V ′ (0 , 0) , V ′ (1 , 0) , V ′ (0 , 1) , V ′ (1, 1) is V (0, 0) .

これにより、(Tw/2)画素×(Th/2)画素のサイズの解像度変換処理済み画素ブロックを生成することができる。   Thereby, a resolution-converted pixel block having a size of (Tw / 2) pixels × (Th / 2) pixels can be generated.

次に、差分算出部406は、以下の式に基づいて、着目画素ブロックと解像度変換処理済み画素ブロックとの差分値を計算する。   Next, the difference calculation unit 406 calculates a difference value between the pixel block of interest and the resolution-converted pixel block based on the following formula.

Figure 2009246838
Figure 2009246838

これにより、差分値Dを求めることができる。   Thereby, the difference value D can be obtained.

次に、CPU12の一機能としてのパターン検出部407は、2色率算出部404、連続画素率算出部405、差分算出部406のそれぞれから出力された3つの情報を取得する。そしてパターン検出部407は、この3つの情報を用いて、着目画素ブロックが、解像度変換などによる画質の変化の大きい領域であるパターン(規則的なパターン)を含む画素ブロックであるのか否かを判定する。規則的なパターンを含む画素ブロックの一例としては、図7に示すような1ドット1スペースで形成される画像がある。以下ではパターン検出部407の動作を、図7に例示する画素ブロックを用いて説明する。もちろん、以下の説明は、係る画素ブロックに限定するものではない。   Next, the pattern detection unit 407 as one function of the CPU 12 acquires three pieces of information output from each of the two-color rate calculation unit 404, the continuous pixel rate calculation unit 405, and the difference calculation unit 406. Then, the pattern detection unit 407 uses these three pieces of information to determine whether or not the pixel block of interest is a pixel block including a pattern (regular pattern) that is a region having a large change in image quality due to resolution conversion or the like. To do. As an example of a pixel block including a regular pattern, there is an image formed by one dot and one space as shown in FIG. Hereinafter, the operation of the pattern detection unit 407 will be described using the pixel block illustrated in FIG. Of course, the following description is not limited to the pixel block.

図7に例示する画素ブロックの場合、2色率Trは100%に近く、ラン率Rrは0%に近く、また差分値Dは大きいという特性がある。一方、自然画では2色率Trや差分値Dは小さく、ラン率Rrは少し高い。従って、予め設定された2色率用の閾値Stを20、ラン率用の閾値Srを30、差分値用の閾値Sdを100に設定し、着目画素ブロックがTr>StかつRr<SrかつD>Sdを満たす場合、係る着目画素ブロックは規則的なパターンを含む、と判定される。   In the case of the pixel block illustrated in FIG. 7, the two-color rate Tr is close to 100%, the run rate Rr is close to 0%, and the difference value D is large. On the other hand, in the natural image, the two-color rate Tr and the difference value D are small, and the run rate Rr is slightly high. Therefore, the preset threshold value St for the two color ratios is set to 20, the threshold value Sr for the run ratio is set to 30, and the threshold value Sd for the difference value is set to 100, so that the pixel block of interest is Tr> St and Rr <Sr and D When> Sd is satisfied, it is determined that the pixel block of interest includes a regular pattern.

このように、2色率、ラン率、差分値のそれぞれに対する閾値を設定し、2色率、ラン率、差分値のそれぞれについて閾値との大小比較を行うだけで(大小比較結果だけで)、規則的なパターンを含む画素ブロックを検出することができる。   In this way, by setting a threshold for each of the two color ratios, the run ratio, and the difference value, and simply performing a magnitude comparison with the threshold for each of the two color ratios, the run ratio, and the difference value (only the magnitude comparison result) Pixel blocks containing a regular pattern can be detected.

その後、パターン検出部407は、規則的なパターンを含まない画素ブロックとして判定したものについてはそのままPDLの作成処理対象とする。一方、パターン検出部407は、規則的なパターンを含む画素ブロックについては、PDLの作成処理対象とする前に、平滑化フィルタを用いたフィルタリング処理など、画質を低減させるための処理を行う。これにより、その周期的なパターンがなまり、それら画像がぼやけたイメージとなる。そして、この平滑化処理により、その後の処理であるディザとの干渉を低減することが可能になり、ユーザがディスプレイ等他の画像表示装置にて見ていたものに近い色味が実現できる。   Thereafter, the pattern detection unit 407 directly determines a pixel block that does not include a regular pattern as a PDL creation processing target. On the other hand, for the pixel block including a regular pattern, the pattern detection unit 407 performs processing for reducing image quality, such as filtering processing using a smoothing filter, before making it a PDL creation processing target. As a result, the periodic pattern is smoothed and the images become blurred. Then, this smoothing process can reduce interference with dither, which is a subsequent process, and can realize a color close to what the user has seen on other image display devices such as a display.

なお、画質を低減させる為の処理には、平滑化フィルタを用いた処理以外にも、様々なものを適用することができる。例えば、規則的なパターンを含む画素ブロックの代わりに、この画素ブロックについて前述の処理で求めた解像度変換処理済み画素ブロックの縦横を2倍にしたものを、出力しても良い。   Note that various processes other than the process using the smoothing filter can be applied to the process for reducing the image quality. For example, instead of a pixel block including a regular pattern, the pixel block obtained by doubling the vertical and horizontal resolution-converted pixel blocks obtained by the above-described processing may be output.

次に、プリンタ装置10がビットマップイメージに対して行う処理について、同処理のフローチャートを示す図2を用いて以下説明する。なお、各ステップにおける各処理については上述の通りであるので、ここでは簡単に説明する。   Next, processing that the printer apparatus 10 performs on the bitmap image will be described below with reference to FIG. 2 showing a flowchart of the processing. Since each process in each step is as described above, it will be briefly described here.

先ず、ステップS201では、CPU12の一機能としてのブロック分割部402は、バッファ401に1ストライプ分の画像(Thライン分の画像)が格納されると、この1ストライプ分の画像を複数の画素ブロックに分割する。   First, in step S201, when an image for one stripe (an image for Th line) is stored in the buffer 401, the block dividing unit 402 as a function of the CPU 12 converts the image for one stripe into a plurality of pixel blocks. Divide into

次に、ステップS202では、CPU12の一機能としての2色率算出部404は、バッファ403から1つの画素ブロック(着目画素ブロック)のデータを読み出すと、係る着目画素ブロックを構成する各画素をラスタスキャン順に参照する。そして、現在参照している画素の近傍4画素が2色で構成されているか否かをチェックする。そして、「近傍4画素は2色で構成されている」と判断した場合には、カウント値を1つカウントアップする。そして、周囲4画素が2色で構成されているような画素の着目画素ブロック内の出現確率を2色率Trとして求める。   Next, in step S <b> 202, when the two-color rate calculation unit 404 as a function of the CPU 12 reads data of one pixel block (target pixel block) from the buffer 403, each pixel constituting the target pixel block is rasterized. Browse in scan order. Then, it is checked whether or not the four pixels in the vicinity of the currently referred pixel are composed of two colors. When it is determined that “the four neighboring pixels are composed of two colors”, the count value is incremented by one. Then, the appearance probability of the pixel in which the surrounding four pixels are composed of two colors in the target pixel block is obtained as the two-color rate Tr.

一方、ステップS203では、CPU12の一機能としての連続画素率算出部405は、バッファ403から1つの画素ブロック(着目画素ブロック)のデータを読み出すと、係る着目画素ブロックを構成する各画素をラスタスキャン順に参照する。そして、着目画素ブロック内で、同じ画素値を有する画素で構成されている画素列を検出する。そして、検出したそれぞれの画素列の長さを求め、求めたそれぞれの画素列の長さの合計値を求める。着目画素ブロックを構成する画素の数は上述の通りTh×Twであるので、係る合計値をRとすると、画素列の着目画素ブロック内の出現確率はR/(ThxTw)で表され、連続画素率算出部405は、この出現確率をラン率Rrとして出力する。   On the other hand, in step S203, when the continuous pixel rate calculation unit 405 as a function of the CPU 12 reads data of one pixel block (target pixel block) from the buffer 403, each pixel constituting the target pixel block is raster-scanned. Refer to them in order. Then, a pixel column composed of pixels having the same pixel value is detected in the target pixel block. Then, the length of each detected pixel column is obtained, and the total value of the obtained lengths of each pixel row is obtained. Since the number of pixels constituting the pixel block of interest is Th × Tw as described above, when the total value is R, the appearance probability of the pixel column in the pixel block of interest is represented by R / (ThxTw). The rate calculation unit 405 outputs this appearance probability as a run rate Rr.

一方、ステップS204では、CPU12の一機能としての差分算出部406は、バッファ403から1つの画素ブロック(着目画素ブロック)のデータを読み出す。そして読み出した着目画素ブロックに対して解像度変換処理を行うことで得られる解像度変換処理済み画素ブロックと、読み出した着目画素ブロックとの差分を示す差分値Dを求める。   On the other hand, in step S <b> 204, the difference calculation unit 406 as a function of the CPU 12 reads data of one pixel block (target pixel block) from the buffer 403. Then, a difference value D indicating the difference between the resolution-converted pixel block obtained by performing the resolution conversion process on the read target pixel block and the read target pixel block is obtained.

次に、ステップS205では、CPU12の一機能としてのパターン検出部407は、着目画素ブロックがTr>StかつRr<SrかつD>Sdを満たすか否かを判断する。そして、係る判断の結果、着目画素ブロックがTr>StかつRr<SrかつD>Sdを満たす場合には処理をステップS206に進め、満たさない場合には、処理をステップS207に進める。   Next, in step S205, the pattern detection unit 407 as a function of the CPU 12 determines whether or not the target pixel block satisfies Tr> St and Rr <Sr and D> Sd. If the pixel block of interest satisfies Tr> St and Rr <Sr and D> Sd as a result of the determination, the process proceeds to step S206. If not, the process proceeds to step S207.

ステップS206では、パターン検出部407は、着目画素ブロックに対して、平滑化フィルタを用いたフィルタ処理など、画質を低減させるための処理を行う。   In step S206, the pattern detection unit 407 performs processing for reducing the image quality, such as filter processing using a smoothing filter, on the pixel block of interest.

そしてステップS207では、着目画素ブロックをPDLの作成処理対象とすべく、係る着目画素ブロックのデータをPDL作成処理へと出力する。   In step S207, in order to make the pixel block of interest a PDL creation process target, the data of the pixel block of interest is output to the PDL creation process.

次に、ステップS208では、CPU12は、ステップS201で分割した全ての画素ブロックについてステップS202〜S207の処理を行ったか否かを判断し、行った場合には本処理を終了させる。一方、まだステップS202〜S207の処理を行って以内画素ブロックが残っている場合には、処理をステップS201の直後に戻し、この残っている画素ブロックについてステップS202以降の処理を行う。   Next, in step S208, the CPU 12 determines whether or not the processing in steps S202 to S207 has been performed for all the pixel blocks divided in step S201, and if so, ends the present processing. On the other hand, if the processes of steps S202 to S207 are still performed and the inner pixel block remains, the process is returned to immediately after step S201, and the process after step S202 is performed on the remaining pixel block.

[第2の実施形態]
第1の実施形態では、図7に示すように、パターンが1ドット1スペースであるような画像を例にとって説明を行ったが、パターンには様々な種類があり、種類に応じて2色率やラン率、差分値の傾向が変わってくる可能性がある。従って、パターンの種類に応じて、パターン検出の条件を変えてもよい。
[Second Embodiment]
In the first embodiment, as shown in FIG. 7, an example of an image having a pattern of one dot and one space has been described. However, there are various types of patterns, and two color ratios according to the types. There is a possibility that the trend of run rate and difference value will change. Therefore, the pattern detection conditions may be changed according to the pattern type.

例えば、半透明処理において網掛けの透過率を選択できる機能があり、パターン画像は透過率によっては1ドット1スペースの画像とはまったく異なったパラメータ分布になる。例えば、透過率が20%未満の網掛け部分では2色率は低くラン率が高くなり、差分値も低くなる。そのため、2色率用の閾値Stは10%、ラン率用の閾値Srは50%、差分値用の閾値Sdは60、というようにパターン検出条件の閾値を緩和し、あらゆる網掛けのパターンに対応できるよう閾値を設定する。しかし、パラメータの閾値を緩和するだけではパターン検出の精度は上がるが、パターン領域以外を誤判定することが多くなり、問題である。従って、誤判定を抑制するために、パターン検出の条件にパラメータを追加してもよい。   For example, there is a function capable of selecting a shaded transmittance in a semi-transparent process, and the pattern image has a completely different parameter distribution from an image of one dot and one space depending on the transmittance. For example, in the shaded portion where the transmittance is less than 20%, the two-color rate is low and the run rate is high, and the difference value is also low. Therefore, the threshold of the pattern detection condition is relaxed such that the threshold St for the two color ratios is 10%, the threshold Sr for the run ratio is 50%, and the threshold Sd for the difference value is 60. A threshold is set so that it can respond. However, although the accuracy of pattern detection increases only by relaxing the parameter threshold value, it is problematic because misjudgments other than the pattern region are frequently made. Therefore, a parameter may be added to the pattern detection condition in order to suppress erroneous determination.

図8は、制御部11の機能構成例を示すブロック図である。以下、図8を用いて、制御部11が画像に対して行う処理について説明する。なお、図8において、図1と同じ部分については同じ参照番号を付けており、その説明は省略する。   FIG. 8 is a block diagram illustrating a functional configuration example of the control unit 11. Hereinafter, processing performed by the control unit 11 on an image will be described with reference to FIG. In FIG. 8, the same parts as those in FIG. 1 are denoted by the same reference numerals, and the description thereof is omitted.

CPU12の一機能としての近傍一致画素算出部501は、バッファ403から1つの画素ブロック(着目画素ブロック)のデータを読み出すと、係る着目画素ブロックを構成する各画素をラスタスキャン順に参照する。そして、現在参照している画素xの近傍4画素のうち、現在参照している画素xと同じ画素値を有する画素があれば、係る画素xを近傍一致画素と見なし、カウント値Kを1つカウントアップする。係るカウント値Kは、画素ブロック毎に初期化される。即ち、近傍一致画素算出部501が着目画素ブロックに対して処理を開始する前には既に0に初期化されている。更に、近傍一致画素算出部501は、近傍一致画素と見なされた画素の近傍4画素が2色で構成されている場合には、カウント値K’を1つカウントアップする。係るカウント値K’は、画素ブロック毎に初期化される。即ち、近傍一致画素算出部501が着目画素ブロックに対して処理を開始する前には既に0に初期化されている。   When the neighborhood matching pixel calculation unit 501 as one function of the CPU 12 reads data of one pixel block (target pixel block) from the buffer 403, the neighboring pixel calculation unit 501 refers to each pixel constituting the target pixel block in the raster scan order. If there is a pixel having the same pixel value as that of the currently referenced pixel x among the four neighboring pixels of the currently referenced pixel x, the pixel x is regarded as a neighborhood matching pixel, and one count value K is set. Count up. The count value K is initialized for each pixel block. That is, the neighborhood matching pixel calculation unit 501 has already been initialized to 0 before starting the process for the pixel block of interest. Further, the neighborhood matching pixel calculation unit 501 increments the count value K ′ by one when the four neighboring pixels of the pixel regarded as the neighborhood matching pixel are configured in two colors. The count value K ′ is initialized for each pixel block. That is, the neighborhood matching pixel calculation unit 501 has already been initialized to 0 before starting the process for the pixel block of interest.

このような処理を、着目画素ブロックを構成する各画素について行う。これにより、着目画素ブロックにおいて、近傍一致画素と見なされた画素xの数K、近傍一致画素と見なされた画素であって近傍4画素が2色で構成されている画素の数K’をカウントすることができる。そして近傍一致画素算出部501は、このようにして求めたカウント値K、K’を用いてK’/Kを求め、求めたK’/Kをパターン検出部502に対して送出する。ここで、K’/Kは、近傍一致画素のうち近傍4画素が2色で構成されている画素の比率を表すことになる。即ち、近傍一致画素算出部501は、画素ブロック毎に、「近傍一致画素のうち近傍4画素が2色で構成されている画素の比率」を出力することになる。なお、画素xと近傍4画素との関係は、例えば、図6に示したように、画素xと、近傍4画素a〜dとの関係である。   Such processing is performed for each pixel constituting the target pixel block. Accordingly, in the pixel block of interest, the number K of pixels x regarded as neighboring matching pixels and the number K ′ of pixels regarded as neighboring matching pixels and having four neighboring pixels composed of two colors are counted. can do. Then, the neighborhood matching pixel calculation unit 501 calculates K ′ / K using the count values K and K ′ thus determined, and sends the calculated K ′ / K to the pattern detection unit 502. Here, K ′ / K represents the ratio of pixels in which the four neighboring pixels among the neighboring matching pixels are configured in two colors. That is, the neighborhood matching pixel calculation unit 501 outputs, for each pixel block, “a ratio of pixels in which the neighborhood 4 pixels are configured by two colors among the neighborhood matching pixels”. The relationship between the pixel x and the four neighboring pixels is, for example, the relationship between the pixel x and the four neighboring pixels a to d as shown in FIG.

パターン検出部502は、2色率算出部404、連続画素率算出部405、差分算出部406のそれぞれからの情報に加え、近傍一致画素算出部501からの情報をも取得する。そして、着目画素ブロックが、解像度変換などによる画質の変化の大きい領域であるパターン(規則的なパターン)を含む画素ブロックであるのか否かを判定する。   The pattern detection unit 502 also acquires information from the neighborhood matching pixel calculation unit 501 in addition to information from each of the two-color rate calculation unit 404, the continuous pixel rate calculation unit 405, and the difference calculation unit 406. Then, it is determined whether or not the pixel block of interest is a pixel block including a pattern (regular pattern) that is a region having a large image quality change due to resolution conversion or the like.

「近傍一致画素のうち近傍4画素が2色で構成されている画素の比率」(=Q)は、パターン領域ではほぼ100%付近に分布しているが、自然画領域では60%〜80%辺りに分布している。従ってパターン検出部502は、2色率、ラン率、差分値に加えてQを用い、ステップS205における判定処理に「Qが100%に限りなく近いか?」を加える。そして、ステップS205について第1の実施形態で説明した条件が満たされると共に、Qが100%に限りなく近い場合には、着目画素ブロックは規則的なパターンを含む画素ブロックであると判定する。これにより、2色率、ラン率、差分値を緩和することにより起こっていた自然画像領域の誤判定が抑制され、パターンの種類によらずに良好な検出処理を行うことが可能になる。   The “ratio of pixels in which four neighboring pixels are composed of two colors among neighboring matching pixels” (= Q) is distributed in the vicinity of approximately 100% in the pattern area, but 60% to 80% in the natural image area. It is distributed around. Therefore, the pattern detection unit 502 uses Q in addition to the two-color rate, the run rate, and the difference value, and adds “Is Q close to 100%?” In the determination processing in step S205. If the condition described in the first embodiment for step S205 is satisfied and Q is close to 100%, it is determined that the pixel block of interest is a pixel block including a regular pattern. As a result, the erroneous determination of the natural image region that has occurred by relaxing the two-color rate, the run rate, and the difference value is suppressed, and it is possible to perform a good detection process regardless of the type of pattern.

[第3の実施形態]
第2の実施形態では、網掛けの透過率の違いにより、パラメータが異なる例について説明を行ったが、パターンの種類だけなく背景画像の違いによってもパラメータの分布傾向は異なる。本実施形態では、検出するパターンの背景に応じて、パターンの検出方法を切り換える。
[Third Embodiment]
In the second embodiment, an example in which the parameter is different due to the difference in the shaded transmittance has been described. However, the distribution tendency of the parameter differs depending not only on the pattern type but also on the background image. In the present embodiment, the pattern detection method is switched according to the background of the pattern to be detected.

図3は、制御部11の機能構成例を示すブロック図である。以下、図3を用いて、制御部11が画像に対して行う処理について説明する。なお、図3において、図1と同じ部分については同じ参照番号を付けており、その説明は省略する。   FIG. 3 is a block diagram illustrating a functional configuration example of the control unit 11. Hereinafter, a process performed on the image by the control unit 11 will be described with reference to FIG. In FIG. 3, the same parts as those in FIG. 1 are denoted by the same reference numerals, and the description thereof is omitted.

図3に示す如く、本実施形態に係る制御部11の機能構成は、第1の実施形態に係る制御部11の構成(図4)に、スイッチ702、属性バッファ703、画像判別部701を加えると共に、バッファ401には、画像に加え、属性情報が入力される。   As shown in FIG. 3, the functional configuration of the control unit 11 according to the present embodiment includes a switch 702, an attribute buffer 703, and an image determination unit 701 in addition to the configuration of the control unit 11 according to the first embodiment (FIG. 4). At the same time, the attribute information is input to the buffer 401 in addition to the image.

バッファ401には上述の通り、画像に加えて属性情報が入力されるが、この属性情報とは、係る画像を構成する各画素の属性を示すフラグの集合である。例えば、着目画素が文字を構成する画素であれば、着目画素に対応するフラグの値は1、着目画素が文字以外を構成する画素であれば、着目画素に対応するフラグの値は0を有する。このように、画素毎にフラグの値が関連付けられており、画素の並びと同じ並びで対応するフラグを配列させたものが属性情報である。   As described above, attribute information is input to the buffer 401 in addition to the image. This attribute information is a set of flags indicating the attributes of each pixel constituting the image. For example, if the target pixel is a pixel constituting a character, the flag value corresponding to the target pixel has a value of 1, and if the target pixel is a pixel other than a character, the flag value corresponding to the target pixel has a value of 0. . As described above, the flag value is associated with each pixel, and attribute information is obtained by arranging corresponding flags in the same arrangement as the arrangement of pixels.

ブロック分割部402は、第1の実施形態と同様に、画像を複数の画像ブロックに分割するのであるが、本実施形態では更に、属性情報をも同様に、複数の画像ブロックに分割する。これにより、各画素ブロックに対応する属性情報(分割属性情報)を得ることができる。分割されたそれぞれの分割属性情報は、属性バッファ703に格納される。   The block dividing unit 402 divides an image into a plurality of image blocks as in the first embodiment. In the present embodiment, the attribute information is further divided into a plurality of image blocks. Thereby, attribute information (division attribute information) corresponding to each pixel block can be obtained. Each divided attribute information obtained by the division is stored in the attribute buffer 703.

画像判別部701は、各分割属性情報を参照し、対応する画素ブロックの属性を判定する。例えば、着目分割属性情報を構成する各フラグのうち値が「1」であるフラグの数が、着目分割属性情報を構成するフラグの数に対して所定の割合以上であれば、着目分割属性情報に対応する画素ブロックは、文字を含む画素ブロックであると判定する。一方、着目分割属性情報を構成する各フラグのうち値が「0」であるフラグの数が、着目分割属性情報を構成するフラグの数に対して所定の割合以上であれば、着目分割属性情報に対応する画素ブロックは、自然画像を含む画素ブロックであると判定する。   The image discriminating unit 701 refers to each piece of division attribute information and determines the attribute of the corresponding pixel block. For example, if the number of flags having the value “1” among the flags constituting the target split attribute information is equal to or greater than a predetermined ratio with respect to the number of flags constituting the target split attribute information, the target split attribute information The pixel block corresponding to is determined to be a pixel block including characters. On the other hand, if the number of flags having a value of “0” among the flags constituting the target split attribute information is equal to or greater than a predetermined ratio with respect to the number of flags constituting the target split attribute information, the target split attribute information It is determined that the pixel block corresponding to is a pixel block including a natural image.

そして画像判別部701は、着目分割属性情報に対応する画素ブロックが、文字を含む画素ブロックであると判定した場合には、判定情報「0」をスイッチ702とパターン検出部407とに対して出力する。一方、画像判別部701は、着目分割属性情報に対応する画素ブロックが、自然画像を含む画素ブロックであると判定した場合には、判定情報「1」をスイッチ702とパターン検出部407とに対して出力する。   If the image determination unit 701 determines that the pixel block corresponding to the target division attribute information is a pixel block including characters, the image determination unit 701 outputs determination information “0” to the switch 702 and the pattern detection unit 407. To do. On the other hand, when the image determination unit 701 determines that the pixel block corresponding to the target division attribute information is a pixel block including a natural image, the image determination unit 701 sends the determination information “1” to the switch 702 and the pattern detection unit 407. Output.

スイッチ702は、バッファ403から1タイル分の画素ブロックのデータを読み出すと共に、係る画素ブロックに対応する判定情報を画像判別部701から取得する。従って、スイッチ702は、バッファ401から読み出した画素ブロックが、文字を含む画素ブロックであるのか、自然画像を含む画像ブロックであるのかを判別することができる。スイッチ702は、画像判別部701から判別情報「0」を受けた場合には、端子aに接続する。これにより、文字を含む画素ブロックのデータは、バッファ403からスイッチ702を介して2色率算出部404、連続画素率算出部405に送出される。一方、スイッチ702は、画像判別部701から判別情報「1」を受けた場合には、端子bに接続する。これにより、自然画像を含む画素ブロックのデータは、バッファ403からスイッチ702を介して差分算出部406に送出される。   The switch 702 reads pixel block data for one tile from the buffer 403 and obtains determination information corresponding to the pixel block from the image determination unit 701. Therefore, the switch 702 can determine whether the pixel block read from the buffer 401 is a pixel block including characters or an image block including a natural image. The switch 702 connects to the terminal a when receiving the discrimination information “0” from the image discrimination unit 701. As a result, pixel block data including characters is sent from the buffer 403 to the two-color rate calculation unit 404 and the continuous pixel rate calculation unit 405 via the switch 702. On the other hand, the switch 702 is connected to the terminal b when receiving the discrimination information “1” from the image discrimination unit 701. Thereby, the pixel block data including the natural image is sent from the buffer 403 to the difference calculation unit 406 via the switch 702.

パターン検出部407は、画像判別部701から判別情報「0」を受けた場合には、2色率算出部404と連続画素率算出部405とから送出される情報を取得する。そして、パターン検出部407は、この取得した2つの情報を用いて、着目画素ブロックが、解像度変換等による画質の変化の大きい領域であるパターン(規則的なパターン)を含む画素ブロックであるのか否かを判定する。パターン検出部407における2つの情報の個々についての取り扱いについては、第1の実施形態と同じである。   When receiving the discrimination information “0” from the image discrimination unit 701, the pattern detection unit 407 acquires information transmitted from the two-color rate calculation unit 404 and the continuous pixel rate calculation unit 405. Then, the pattern detection unit 407 uses the acquired two pieces of information to determine whether or not the pixel block of interest is a pixel block including a pattern (regular pattern) that is a region having a large image quality change due to resolution conversion or the like. Determine whether. Handling of each of the two pieces of information in the pattern detection unit 407 is the same as in the first embodiment.

一方、パターン検出部407は、画像判別部701から判別情報「1」を受けた場合には、差分算出部406から送出される情報を取得する。そして、パターン検出部407は、この取得した情報を用いて、着目画素ブロックが、解像度変換等による画質の変化の大きい領域であるパターン(規則的なパターン)を含む画素ブロックであるのか否かを判定する。パターン検出部407における差分算出部406から送出される情報の取り扱いについては、第1の実施形態と同じである。   On the other hand, when receiving the discrimination information “1” from the image discrimination unit 701, the pattern detection unit 407 acquires information sent from the difference calculation unit 406. Then, the pattern detection unit 407 uses this acquired information to determine whether or not the pixel block of interest is a pixel block including a pattern (regular pattern) that is a region having a large change in image quality due to resolution conversion or the like. judge. Handling of information sent from the difference calculation unit 406 in the pattern detection unit 407 is the same as that in the first embodiment.

これは、パターンと文字が重なっている領域では、2色率とラン率の分布の傾向は変わらないが、差分値のパラメータ分布がばらばらでパターン検出が困難なため、2色率とラン率のみの利用でもパターンの検出を行うことが可能であることに起因する。また、網掛けの色と背景の色とが似ているパターン領域の場合には、2色率とラン率のパラメータ分布は変わらないが、差分値が小さくなるため、このような画像では2色率とラン率のみを用いてパターン検出を行う。   This is because the distribution of the two color rates and the run rate does not change in the area where the pattern and the character overlap, but the parameter distribution of the difference values is scattered and the pattern detection is difficult, so only the two color rate and the run rate are detected. This is because it is possible to detect a pattern even by using. Further, in the case of a pattern region in which the shaded color and the background color are similar, the parameter distribution of the two-color rate and the run rate does not change, but the difference value becomes small. Pattern detection is performed using only the rate and run rate.

一方、パターンと自然画像とが重なっている領域では2色率が低く、ラン率が高い自然画像領域と似たパラメータ分布となっている。そのため、2色率やラン率を用いることでパターン領域の検出精度を向上させることは困難ではあるが、差分値は1ドット1スペースなどと同様に高い値であり、分布傾向は変わらないので、差分値を利用することでパターン検出は可能である。このことから、差分値のみを用いてパターン検出を行う。つまり、画像の種類によってパラメータの設定を変更するだけで、より簡易な方法でパターン検出が可能となる。   On the other hand, the area where the pattern and the natural image overlap has a parameter distribution similar to that of the natural image area where the two-color rate is low and the run rate is high. For this reason, it is difficult to improve the detection accuracy of the pattern area by using the two color rate or the run rate, but the difference value is as high as 1 dot 1 space and the distribution tendency does not change. Pattern detection is possible by using the difference value. Therefore, pattern detection is performed using only the difference value. In other words, the pattern can be detected by a simpler method simply by changing the parameter setting depending on the type of image.

なお、本実施形態では、説明を簡潔にするために、属性情報を持った画像を入力し、各画素ブロックの属性をこの属性情報を用いて判別するとしたが、これ以外の方法を用いて、各画素ブロックの属性を判別しても良い。例えば、バッファ403から出力される画素ブロックのデータを用いて、係る画素ブロック内に存在する色数を計数し、係る計数結果に基づいて、係る画素ブロックが自然画像を含むのか、文字を含むのか、を判別してもよい。   In this embodiment, in order to simplify the description, an image having attribute information is input, and the attribute of each pixel block is determined using the attribute information. However, using other methods, The attribute of each pixel block may be determined. For example, the pixel block data output from the buffer 403 is used to count the number of colors existing in the pixel block, and based on the counting result, whether the pixel block includes a natural image or a character. May be determined.

なお、パターン検出部407から出力される画素ブロックについて、この画素ブロックの属性に応じた処理を行うようにしても良い。例えば、着目画素ブロックに対応する着目分割属性情報を用いて、着目画素ブロックに対するフィルタリング処理に用いるフィルタ係数を切り替えるようにしても良い。また、着目分割属性情報に応じて、着目画素ブロックとディザとの干渉を和らげる処理(例えばディザの係数)等を切り替えても良い。   Note that the pixel block output from the pattern detection unit 407 may be processed according to the attribute of the pixel block. For example, the filter coefficient used for the filtering process for the target pixel block may be switched using the target division attribute information corresponding to the target pixel block. In addition, processing (for example, dither coefficient) or the like for reducing interference between the pixel block of interest and dither may be switched in accordance with the target division attribute information.

また、以上で述べた様々な技術事項は、適宜組み合わせて用いても良い。   The various technical matters described above may be used in appropriate combination.

また、上記実施形態で説明した各処理は、プリンタ装置10が行うものとして説明したが、一般のPC(パーソナルコンピュータ)が行うようにしても良い。即ち、PCが、処理対象画像を複数の画素ブロックに分割し、それぞれの画素ブロックのうち、規則的なパターンを含む画素ブロックについては、平滑化フィルタを用いたフィルタリング処理など、画質を低減させるための処理を行うようにしても良い。   Each process described in the above embodiment has been described as being performed by the printer apparatus 10, but may be performed by a general PC (personal computer). That is, the PC divides the processing target image into a plurality of pixel blocks, and pixel blocks including a regular pattern among the pixel blocks are used to reduce image quality such as filtering using a smoothing filter. You may make it perform the process of.

[その他の実施形態]
また、本発明の目的は、以下のようにすることによって達成されることはいうまでもない。即ち、前述した実施形態の機能を実現するソフトウェアのプログラムコード(コンピュータプログラム)を記録した記録媒体(または記憶媒体)を、システムあるいは装置に供給する。係る記憶媒体は言うまでもなく、コンピュータ読み取り可能な記憶媒体である。そして、そのシステムあるいは装置のコンピュータ(またはCPUやMPU)が記録媒体に格納されたプログラムコードを読み出し実行する。この場合、記録媒体から読み出されたプログラムコード自体が前述した実施形態の機能を実現することになり、そのプログラムコードを記録した記録媒体は本発明を構成することになる。
[Other Embodiments]
Needless to say, the object of the present invention can be achieved as follows. That is, a recording medium (or storage medium) that records a program code (computer program) of software that implements the functions of the above-described embodiments is supplied to the system or apparatus. Needless to say, such a storage medium is a computer-readable storage medium. Then, the computer (or CPU or MPU) of the system or apparatus reads and executes the program code stored in the recording medium. In this case, the program code itself read from the recording medium realizes the functions of the above-described embodiment, and the recording medium on which the program code is recorded constitutes the present invention.

また、コンピュータが読み出したプログラムコードを実行することにより、そのプログラムコードの指示に基づき、コンピュータ上で稼働しているオペレーティングシステム(OS)などが実際の処理の一部または全部を行う。その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。   Further, by executing the program code read by the computer, an operating system (OS) or the like running on the computer performs part or all of the actual processing based on the instruction of the program code. Needless to say, the process includes the case where the functions of the above-described embodiments are realized.

さらに、記録媒体から読み出されたプログラムコードが、コンピュータに挿入された機能拡張カードやコンピュータに接続された機能拡張ユニットに備わるメモリに書込まれたとする。その後、そのプログラムコードの指示に基づき、その機能拡張カードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。   Furthermore, it is assumed that the program code read from the recording medium is written in a memory provided in a function expansion card inserted into the computer or a function expansion unit connected to the computer. After that, based on the instruction of the program code, the CPU included in the function expansion card or function expansion unit performs part or all of the actual processing, and the function of the above-described embodiment is realized by the processing. Needless to say.

本発明を上記記録媒体に適用する場合、その記録媒体には、先に説明したフローチャートに対応するプログラムコードが格納されることになる。   When the present invention is applied to the recording medium, program code corresponding to the flowchart described above is stored in the recording medium.

本発明の第1の実施形態に係る画像処理装置を適用するシステムの構成例を示すブロック図である。1 is a block diagram illustrating a configuration example of a system to which an image processing apparatus according to a first embodiment of the present invention is applied. プリンタ装置10がビットマップイメージに対して行う処理のフローチャートである。4 is a flowchart of processing performed by the printer device 10 on a bitmap image. 制御部11の機能構成例を示すブロック図である。3 is a block diagram illustrating a functional configuration example of a control unit 11. FIG. 制御部11の機能構成例を示すブロック図である。3 is a block diagram illustrating a functional configuration example of a control unit 11. FIG. (a)はバッファ403から読み出した着目画素ブロックを構成する各画素を示す図、(b)はバッファ403から読み出した着目画素ブロックに対して解像度変換処理を行うことで得られる解像度変換処理済み画素ブロックを構成する各画素を示す図である。(A) is a diagram showing each pixel constituting the target pixel block read from the buffer 403, and (b) is a resolution converted pixel obtained by performing resolution conversion processing on the target pixel block read from the buffer 403. It is a figure which shows each pixel which comprises a block. 現在参照している画素と、その近傍4画素を示す図である。It is a figure which shows the pixel currently referred and its four neighboring pixels. 画素ブロックの一例を示す図である。It is a figure which shows an example of a pixel block. 制御部11の機能構成例を示すブロック図である。3 is a block diagram illustrating a functional configuration example of a control unit 11. FIG.

Claims (9)

画像を複数の画素ブロックに分割する分割手段と、
前記分割手段が分割したそれぞれの画素ブロックについて
着目画素ブロック内の各画素を参照し、参照した画素の近傍4画素が2色で構成されている場合にはカウントアップするカウント手段と、
前記着目画素ブロック内で、同じ画素値を有する画素で構成されている画素列を検出し、検出したそれぞれの画素列の長さを求め、求めたそれぞれの画素列の長さの合計値を求める手段と、
前記着目画素ブロックに対して解像度変換処理を行うことで得られる解像度変換処理済み画素ブロックと、前記着目画素ブロックとの差分を示す差分値を求める計算手段と、
前記合計値、前記差分値、前記カウント手段によるカウント値と、予め設定された閾値との大小比較結果に基づいて、前記着目画素ブロックが規則的なパターンを含む画素ブロックであるのか否かを判定する判定手段と、
前記着目画素ブロックが規則的なパターンを含む画素ブロックである場合には、前記着目画素ブロックに対して、画質を低減させるための処理を施す処理手段と
を備えることを特徴とする画像処理装置。
A dividing means for dividing the image into a plurality of pixel blocks;
For each pixel block divided by the dividing means, reference is made to each pixel in the pixel block of interest, and counting means for counting up when the four neighboring pixels of the referenced pixel are composed of two colors,
In the pixel block of interest, a pixel column composed of pixels having the same pixel value is detected, the length of each detected pixel column is obtained, and the total value of the obtained lengths of the respective pixel columns is obtained. Means,
Calculation means for obtaining a difference value indicating a difference between a resolution-converted pixel block obtained by performing resolution conversion processing on the pixel-of-interest block and the pixel-of-interest block;
It is determined whether or not the pixel block of interest is a pixel block including a regular pattern based on a comparison result of the total value, the difference value, the count value by the counting means, and a preset threshold value. Determination means to perform,
When the pixel block of interest is a pixel block including a regular pattern, an image processing apparatus comprising: processing means for performing processing for reducing image quality on the pixel block of interest.
前記着目画素ブロック内で座標位置(x、y)に位置する画素の画素値をV’(x、y)、前記解像度変換処理済み画素ブロックで(x、y)に位置する画素の画素値をV(x、y)とすると、
前記計算手段は、以下の式
(x、y)=(V’(2x、2y)+V’(2x+1、y)+V’(2x、2y+1)+V’(2x+1、2y+1))/4
を全てのx、yについて計算することで、解像度変換処理済み画素ブロックを生成し、更に、前記差分値Dを、以下の式
Figure 2009246838
を計算することで求めることを特徴とする請求項1に記載の画像処理装置。
V ′ (x, y) is the pixel value of the pixel located at the coordinate position (x, y) in the pixel block of interest, and the pixel value of the pixel located at (x, y) in the resolution-converted pixel block. If V (x, y) ,
The calculation means uses the following formula: V (x, y) = (V ′ (2x, 2y) + V ′ (2x + 1, y) + V ′ (2x, 2y + 1) + V ′ (2x + 1, 2y + 1) ) / 4
Is calculated for all x and y to generate a resolution-converted pixel block, and the difference value D is expressed by the following equation:
Figure 2009246838
The image processing apparatus according to claim 1, wherein the image processing apparatus calculates the value by calculating.
前記判定手段は、前記カウント値を前記着目画素ブロックを構成する画素の数で割った結果が予め設定された閾値よりも大きく、前記合計値を前記着目画素ブロックを構成する画素の数で割った結果が予め設定された閾値よりも小さく、前記差分値が予め設定された閾値よりも大きい場合に、前記着目画素ブロックが規則的なパターンを含む画素ブロックであると判定することを特徴とする請求項1に記載の画像処理装置。   The determination means has a result obtained by dividing the count value by the number of pixels constituting the target pixel block larger than a preset threshold value, and the total value is divided by the number of pixels constituting the target pixel block. When the result is smaller than a preset threshold value and the difference value is larger than a preset threshold value, it is determined that the pixel block of interest is a pixel block including a regular pattern. Item 8. The image processing apparatus according to Item 1. 前記処理手段は、前記着目画素ブロックが規則的なパターンを含む画素ブロックである場合には、前記着目画素ブロックに対して平滑化フィルタを用いたフィルタ処理を行うことを特徴とする請求項1に記載の画像処理装置。   2. The processing unit according to claim 1, wherein when the pixel block of interest is a pixel block including a regular pattern, a filtering process using a smoothing filter is performed on the pixel block of interest. The image processing apparatus described. 画像を複数の画素ブロックに分割する分割手段と、
前記分割手段が分割したそれぞれの画素ブロックについて
着目画素ブロック内の各画素を参照し、参照した画素の近傍4画素が2色で構成されている場合にはカウントアップするカウント手段と、
前記着目画素ブロック内で、同じ画素値を有する画素で構成されている画素列を検出し、検出したそれぞれの画素列の長さを求め、求めたそれぞれの画素列の長さの合計値を求める手段と、
前記着目画素ブロックに対して解像度変換処理を行うことで得られる解像度変換処理済み画素ブロックと、前記着目画素ブロックとの差分を示す差分値を求める計算手段と、
前記着目画素ブロックの属性を判別する判別手段と、
前記合計値、前記カウント手段によるカウント値と、予め設定された閾値との大小比較結果に基づいて、前記着目画素ブロックが規則的なパターンを含む画素ブロックであるのか否かを判定する判定処理、若しくは、前記差分値と、予め設定された閾値との大小比較結果に基づいて、前記着目画素ブロックが規則的なパターンを含む画素ブロックであるのか否かを判定する判定処理、のうち、前記判別手段により判別された属性に応じて決まる一方の判定処理を実行する判定手段と、
前記着目画素ブロックが規則的なパターンを含む画素ブロックである場合には、前記着目画素ブロックに対して、画質を低減させるための処理を施す処理手段と
を備えることを特徴とする画像処理装置。
A dividing means for dividing the image into a plurality of pixel blocks;
For each pixel block divided by the dividing means, reference is made to each pixel in the pixel block of interest, and counting means for counting up when the four neighboring pixels of the referenced pixel are composed of two colors,
In the pixel block of interest, a pixel column composed of pixels having the same pixel value is detected, the length of each detected pixel column is obtained, and the total value of the obtained lengths of the respective pixel columns is obtained. Means,
Calculation means for obtaining a difference value indicating a difference between a resolution-converted pixel block obtained by performing resolution conversion processing on the pixel-of-interest block and the pixel-of-interest block;
Determining means for determining the attribute of the pixel block of interest;
A determination process for determining whether or not the pixel block of interest is a pixel block including a regular pattern based on a comparison result between the total value, the count value by the counting unit, and a preset threshold value; Alternatively, among the determination processes for determining whether or not the pixel block of interest is a pixel block including a regular pattern based on a magnitude comparison result between the difference value and a preset threshold value. Determination means for executing one determination process determined according to the attribute determined by the means;
When the pixel block of interest is a pixel block including a regular pattern, an image processing apparatus comprising: processing means for performing processing for reducing image quality on the pixel block of interest.
画像を複数の画素ブロックに分割する分割工程と、
前記分割工程で分割したそれぞれの画素ブロックについて
着目画素ブロック内の各画素を参照し、参照した画素の近傍4画素が2色で構成されている場合にはカウントアップするカウント工程と、
前記着目画素ブロック内で、同じ画素値を有する画素で構成されている画素列を検出し、検出したそれぞれの画素列の長さを求め、求めたそれぞれの画素列の長さの合計値を求める工程と、
前記着目画素ブロックに対して解像度変換処理を行うことで得られる解像度変換処理済み画素ブロックと、前記着目画素ブロックとの差分を示す差分値を求める計算工程と、
前記合計値、前記差分値、前記カウント工程によるカウント値と、予め設定された閾値との大小比較結果に基づいて、前記着目画素ブロックが規則的なパターンを含む画素ブロックであるのか否かを判定する判定工程と、
前記着目画素ブロックが規則的なパターンを含む画素ブロックである場合には、前記着目画素ブロックに対して、画質を低減させるための処理を施す処理工程と
を備えることを特徴とする画像処理方法。
A dividing step of dividing the image into a plurality of pixel blocks;
With respect to each pixel block divided in the division step, each pixel block in the target pixel block is referred to, and when the four pixels in the vicinity of the referenced pixel are composed of two colors, a counting step for counting up,
In the pixel block of interest, a pixel column composed of pixels having the same pixel value is detected, the length of each detected pixel column is obtained, and the total value of the obtained lengths of the respective pixel columns is obtained. Process,
A calculation step for obtaining a difference value indicating a difference between a resolution-converted pixel block obtained by performing resolution conversion processing on the pixel-of-interest block and the pixel-of-interest block;
It is determined whether or not the pixel block of interest is a pixel block including a regular pattern based on a magnitude comparison result between the total value, the difference value, the count value obtained by the counting step, and a preset threshold value. A determination step to
When the pixel block of interest is a pixel block including a regular pattern, the image processing method includes a processing step of performing a process for reducing image quality on the pixel block of interest.
画像を複数の画素ブロックに分割する分割工程と、
前記分割工程で分割したそれぞれの画素ブロックについて
着目画素ブロック内の各画素を参照し、参照した画素の近傍4画素が2色で構成されている場合にはカウントアップするカウント工程と、
前記着目画素ブロック内で、同じ画素値を有する画素で構成されている画素列を検出し、検出したそれぞれの画素列の長さを求め、求めたそれぞれの画素列の長さの合計値を求める工程と、
前記着目画素ブロックに対して解像度変換処理を行うことで得られる解像度変換処理済み画素ブロックと、前記着目画素ブロックとの差分を示す差分値を求める計算工程と、
前記着目画素ブロックの属性を判別する判別工程と、
前記合計値、前記カウント工程によるカウント値と、予め設定された閾値との大小比較結果に基づいて、前記着目画素ブロックが規則的なパターンを含む画素ブロックであるのか否かを判定する判定処理、若しくは、前記差分値と、予め設定された閾値との大小比較結果に基づいて、前記着目画素ブロックが規則的なパターンを含む画素ブロックであるのか否かを判定する判定処理、のうち、前記判別工程で判別された属性に応じて決まる一方の判定処理を実行する判定工程と、
前記着目画素ブロックが規則的なパターンを含む画素ブロックである場合には、前記着目画素ブロックに対して、画質を低減させるための処理を施す処理工程と
を備えることを特徴とする画像処理方法。
A dividing step of dividing the image into a plurality of pixel blocks;
With respect to each pixel block divided in the division step, each pixel block in the target pixel block is referred to, and when the four pixels in the vicinity of the referenced pixel are composed of two colors, a counting step for counting up,
In the pixel block of interest, a pixel column composed of pixels having the same pixel value is detected, the length of each detected pixel column is obtained, and the total value of the obtained lengths of the respective pixel columns is obtained. Process,
A calculation step for obtaining a difference value indicating a difference between a resolution-converted pixel block obtained by performing resolution conversion processing on the pixel-of-interest block and the pixel-of-interest block;
A determination step of determining an attribute of the pixel block of interest;
A determination process for determining whether or not the pixel block of interest is a pixel block including a regular pattern based on a comparison result between the total value, the count value obtained by the counting step, and a preset threshold value; Alternatively, among the determination processes for determining whether or not the pixel block of interest is a pixel block including a regular pattern based on a magnitude comparison result between the difference value and a preset threshold value. A determination process for executing one determination process determined according to the attribute determined in the process;
When the pixel block of interest is a pixel block including a regular pattern, the image processing method includes a processing step of performing a process for reducing image quality on the pixel block of interest.
コンピュータを、請求項1乃至5の何れか1項に記載の画像処理装置が有する各手段として機能させるためのコンピュータプログラム。   A computer program for causing a computer to function as each unit included in the image processing apparatus according to any one of claims 1 to 5. 請求項8に記載のコンピュータプログラムを格納した、コンピュータ読み取り可能な記憶媒体。   A computer-readable storage medium storing the computer program according to claim 8.
JP2008093375A 2008-03-31 2008-03-31 Image processor and image processing method Withdrawn JP2009246838A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008093375A JP2009246838A (en) 2008-03-31 2008-03-31 Image processor and image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008093375A JP2009246838A (en) 2008-03-31 2008-03-31 Image processor and image processing method

Publications (1)

Publication Number Publication Date
JP2009246838A true JP2009246838A (en) 2009-10-22

Family

ID=41308247

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008093375A Withdrawn JP2009246838A (en) 2008-03-31 2008-03-31 Image processor and image processing method

Country Status (1)

Country Link
JP (1) JP2009246838A (en)

Similar Documents

Publication Publication Date Title
JP5643574B2 (en) Image processing apparatus and image processing method
US9477914B2 (en) Image processing apparatus, method, and medium for converting page image data
US8855438B2 (en) Image processing apparatus, image processing method of image processing apparatus, and program
JP5700968B2 (en) Image processing apparatus, image processing method, and program
US10762401B2 (en) Image processing apparatus controlling the order of storing decompressed data, and method thereof
JP2006050551A (en) Image processing apparatus, image processing method, program and storage medium
JP5863001B2 (en) Image processing apparatus, image forming apparatus, and program
JP4386216B2 (en) Color printing system and control method thereof
US8405880B1 (en) Method and apparatus for processing image data for an irregular output scan path
JP2010074342A (en) Image processing apparatus, image forming apparatus, and program
JP2004034327A (en) Image processor and processing method
US9894244B2 (en) Image processing system and image processing method that perform correction of shifting bitmap data in a sub-scanning direction to cancel bending of and electro-photographic laser scanning line
JP2008279626A (en) Image processor and image processing program
JP2009237628A (en) Object detecting method, object detecting device, printer, object detecting program, and computer-readable media storing object detecting program
JP4164215B2 (en) Image processing method, apparatus, and recording medium
JP2009246838A (en) Image processor and image processing method
US10359974B2 (en) Printing apparatus, method for estimating a time required for a rendering process, and storage medium
JP6904717B2 (en) Image processing equipment, its control method, and programs
JP2010264705A (en) Image processor and program
JP2010012737A (en) Print control apparatus, printing system, plotting method and program
US20140368888A1 (en) Image forming apparatus, image processing method, and medium
US7675642B2 (en) Print apparatus and print method
JP5609573B2 (en) Driver program and printing system
US20120200896A1 (en) Method for Optimizing the Search for Trapping Regions
JP2017017374A (en) Image processing device and computer program

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20110607