JP2009246838A - Image processor and image processing method - Google Patents
Image processor and image processing method Download PDFInfo
- 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
Links
Images
Abstract
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.
これに対し、ディザパターンと上記パターン画像の周期の位相をずらすことにより、これら障害を解決する手法が提案されている。またその他にも、半透明オブジェクトに対し前景と背景の抽出処理を行い、両画素の平均値を計算することで、これらモワレやざらつき感を発生させないようにする手法も提案されている。更には、指定された画像の規則性によって最適なディザパターンを選択することによりこれら問題を解決し、理想の色を再現しようとする技術も提案されている。
しかしながら、従来方式ではそれら規則的なパターンを持つ画像を抽出する際に、特別な処理系を用意する必要があり、またその処理も複雑である。また、ページ記述言語依存の場合、ラスタ画像として入力されたものに対して、その検出処理が不可能な場合が考えられる。今後、アプリケーションの多機能化に伴い想定される規則的パターンの種類は千差万別であり、これらすべてに対応することは難しい。 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
先ず、プリンタ装置10について説明する。プリンタ装置10は、ホストコンピュータ50から送信された印刷ジョブを受信し、受信した印刷ジョブに基づいて記録紙等の記録媒体上に可視画像を形成する装置である。プリンタ装置10は、制御部11、プリンタエンジン14、HDD(ハードディスクドライブ)105、を有している。
First, the
制御部11は、プリンタ装置10全体の制御を行うと共に、プリンタ装置10が行うものとして後述する各処理を実行する。制御部11は、ホストコンピュータ50から送信された印刷ジョブを解析し、プリンタエンジン14に提供可能な形態の画像データを生成する。係る処理は、実際には、制御部11が有するCPU12が行う。CPU12は、係る処理を、メモリ13に格納されているプログラムを実行することで行う。もちろん、メモリ13には、その他の処理をCPU12に実行させるためのプログラムやデータが格納されている。
The
プリンタエンジン14は、制御部11による制御に従って動作するものであり、制御部11から送出された画像データに従って記録紙上に可視像を形成する。なお、プリンタエンジン14には、電子写真方式、インクジェット方式、感熱方式等、各種のプリンタエンジンを適用することができる。
The
HDD105には、ホストコンピュータ50から送出された印刷ジョブなどを格納する。
The
次に、ホストコンピュータ50について説明する。
Next, the
プリンタ装置10に印刷動作を行わせたり、プリンタ装置10に係る情報をプリンタ装置10から取得するために、ホストコンピュータ50には、プリンタ装置10のドライバソフトウェア(所謂プリンタドライバ)が予めインストールされている。例えば、ホストコンピュータ50上で動作しているアプリケーションを用いてある文書の印刷指示を発行したとする。この場合、このインストールされているプリンタドライバにより、この文書の「プリンタ装置10が解析可能なページ記述言語(PDL)で構成されている印刷ジョブ」が生成され、ホストコンピュータ50は、この印刷ジョブをプリンタ装置10に送信する。
In order to cause the
プリンタ装置10に送信された印刷ジョブのデータは、プリンタ装置10が有するHDD105に一旦格納される。次にCPU12は、係る印刷ジョブに対してPDL解析を行うと共に、PDLに基づいてビットマップイメージをメモリ13上にレンダリングする。そして更に制御部11は、PDL解析時に画素毎の属性情報を得て属性フラグデータを生成する。即ち、PDLコマンドにおけるコマンドの種別を示す情報を参照して、黒文字画素を構成する画素を識別するための属性情報を画素単位で生成し、属性データとする。なお、属性データとしては黒文字を示すものに限定されるわけではなく、例えば色文字領域、網点領域、ベクターグラフィックス領域、などの各種属性を示す多ビットの情報を属性フラグデータとして用いることができる。
The print job data transmitted to the
そして、制御部11は、これにより得られたビットマップイメージをプリンタエンジン14に出力する。
Then, the
ここで、本実施形態では、CPU12は、レンダリングしたビットマップイメージを複数の画素ブロックに分割し、画素ブロック単位で、規則的なパターンを含む画像領域を検出する。そして、規則的なパターンを含む画像領域を検出した画素ブロックについては、平滑化フィルタリング処理など、画質を低減させるための処理を行う。そして、各画素ブロックのデータは順次、プリンタエンジン14に送出される。
Here, in the present embodiment, the
次に、プリンタ装置10がビットマップイメージに対して行う処理についてより詳細に説明する。
Next, a process performed by the
ここで、ビットマップイメージ(画像)は、モノクロ多値の画像でも良いが、本実施形態では、各画素が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
CPU12は、ホストコンピュータ50から送信された印刷ジョブに基づいて、画像をバッファ401上にレンダリングする。バッファ401は、メモリ13内の部分領域である。
The
CPU12の一機能としてのブロック分割部402は、バッファ401に1ストライプ分の画像(Thライン分の画像)が格納されると、この1ストライプ分の画像を複数の画素ブロックに分割する。ここで、係る画素ブロックのサイズは、水平方向Tw画素、垂直方向Th画素であるとする。説明の便宜上、画像の水平方向の画素数WはTwの整数倍であるとする。以下の説明では、この水平方向Tw画素、垂直方向Th画素で構成される画素ブロックをタイルと呼称する場合もある。
The
バッファ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
次に、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
このような処理を、着目画素ブロックを構成する各画素について行う。これにより、着目画素ブロックにおいて、「近傍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
次に、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
次に、CPU12の一機能としての差分算出部406は、バッファ403から1つの画素ブロック(着目画素ブロック)のデータを読み出す。そして読み出した着目画素ブロックに対して解像度変換処理を行うことで得られる解像度変換処理済み画素ブロックと、読み出した着目画素ブロックとの差分を示す差分値を求める。
Next, the
ここで、差分算出部406が行う処理についてより詳細に説明する。図5(a)は、バッファ403から読み出した着目画素ブロックを構成する各画素を示す図である。図5(b)は、バッファ403から読み出した着目画素ブロックに対して解像度変換処理を行うことで得られる解像度変換処理済み画素ブロックを構成する各画素を示す図である。
Here, the process performed by the
着目画素ブロックの左上端を(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
V(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
これにより、差分値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
図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
なお、画質を低減させる為の処理には、平滑化フィルタを用いた処理以外にも、様々なものを適用することができる。例えば、規則的なパターンを含む画素ブロックの代わりに、この画素ブロックについて前述の処理で求めた解像度変換処理済み画素ブロックの縦横を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
先ず、ステップ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
次に、ステップ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
一方、ステップS203では、CPU12の一機能としての連続画素率算出部405は、バッファ403から1つの画素ブロック(着目画素ブロック)のデータを読み出すと、係る着目画素ブロックを構成する各画素をラスタスキャン順に参照する。そして、着目画素ブロック内で、同じ画素値を有する画素で構成されている画素列を検出する。そして、検出したそれぞれの画素列の長さを求め、求めたそれぞれの画素列の長さの合計値を求める。着目画素ブロックを構成する画素の数は上述の通りTh×Twであるので、係る合計値をRとすると、画素列の着目画素ブロック内の出現確率はR/(ThxTw)で表され、連続画素率算出部405は、この出現確率をラン率Rrとして出力する。
On the other hand, in step S203, when the continuous pixel
一方、ステップS204では、CPU12の一機能としての差分算出部406は、バッファ403から1つの画素ブロック(着目画素ブロック)のデータを読み出す。そして読み出した着目画素ブロックに対して解像度変換処理を行うことで得られる解像度変換処理済み画素ブロックと、読み出した着目画素ブロックとの差分を示す差分値Dを求める。
On the other hand, in step S <b> 204, the
次に、ステップS205では、CPU12の一機能としてのパターン検出部407は、着目画素ブロックがTr>StかつRr<SrかつD>Sdを満たすか否かを判断する。そして、係る判断の結果、着目画素ブロックがTr>StかつRr<SrかつD>Sdを満たす場合には処理をステップS206に進め、満たさない場合には、処理をステップS207に進める。
Next, in step S205, the
ステップS206では、パターン検出部407は、着目画素ブロックに対して、平滑化フィルタを用いたフィルタ処理など、画質を低減させるための処理を行う。
In step S206, the
そしてステップ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
[第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
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
このような処理を、着目画素ブロックを構成する各画素について行う。これにより、着目画素ブロックにおいて、近傍一致画素と見なされた画素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
パターン検出部502は、2色率算出部404、連続画素率算出部405、差分算出部406のそれぞれからの情報に加え、近傍一致画素算出部501からの情報をも取得する。そして、着目画素ブロックが、解像度変換などによる画質の変化の大きい領域であるパターン(規則的なパターン)を含む画素ブロックであるのか否かを判定する。
The
「近傍一致画素のうち近傍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
[第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
図3に示す如く、本実施形態に係る制御部11の機能構成は、第1の実施形態に係る制御部11の構成(図4)に、スイッチ702、属性バッファ703、画像判別部701を加えると共に、バッファ401には、画像に加え、属性情報が入力される。
As shown in FIG. 3, the functional configuration of the
バッファ401には上述の通り、画像に加えて属性情報が入力されるが、この属性情報とは、係る画像を構成する各画素の属性を示すフラグの集合である。例えば、着目画素が文字を構成する画素であれば、着目画素に対応するフラグの値は1、着目画素が文字以外を構成する画素であれば、着目画素に対応するフラグの値は0を有する。このように、画素毎にフラグの値が関連付けられており、画素の並びと同じ並びで対応するフラグを配列させたものが属性情報である。
As described above, attribute information is input to the
ブロック分割部402は、第1の実施形態と同様に、画像を複数の画像ブロックに分割するのであるが、本実施形態では更に、属性情報をも同様に、複数の画像ブロックに分割する。これにより、各画素ブロックに対応する属性情報(分割属性情報)を得ることができる。分割されたそれぞれの分割属性情報は、属性バッファ703に格納される。
The
画像判別部701は、各分割属性情報を参照し、対応する画素ブロックの属性を判定する。例えば、着目分割属性情報を構成する各フラグのうち値が「1」であるフラグの数が、着目分割属性情報を構成するフラグの数に対して所定の割合以上であれば、着目分割属性情報に対応する画素ブロックは、文字を含む画素ブロックであると判定する。一方、着目分割属性情報を構成する各フラグのうち値が「0」であるフラグの数が、着目分割属性情報を構成するフラグの数に対して所定の割合以上であれば、着目分割属性情報に対応する画素ブロックは、自然画像を含む画素ブロックであると判定する。
The
そして画像判別部701は、着目分割属性情報に対応する画素ブロックが、文字を含む画素ブロックであると判定した場合には、判定情報「0」をスイッチ702とパターン検出部407とに対して出力する。一方、画像判別部701は、着目分割属性情報に対応する画素ブロックが、自然画像を含む画素ブロックであると判定した場合には、判定情報「1」をスイッチ702とパターン検出部407とに対して出力する。
If the
スイッチ702は、バッファ403から1タイル分の画素ブロックのデータを読み出すと共に、係る画素ブロックに対応する判定情報を画像判別部701から取得する。従って、スイッチ702は、バッファ401から読み出した画素ブロックが、文字を含む画素ブロックであるのか、自然画像を含む画像ブロックであるのかを判別することができる。スイッチ702は、画像判別部701から判別情報「0」を受けた場合には、端子aに接続する。これにより、文字を含む画素ブロックのデータは、バッファ403からスイッチ702を介して2色率算出部404、連続画素率算出部405に送出される。一方、スイッチ702は、画像判別部701から判別情報「1」を受けた場合には、端子bに接続する。これにより、自然画像を含む画素ブロックのデータは、バッファ403からスイッチ702を介して差分算出部406に送出される。
The
パターン検出部407は、画像判別部701から判別情報「0」を受けた場合には、2色率算出部404と連続画素率算出部405とから送出される情報を取得する。そして、パターン検出部407は、この取得した2つの情報を用いて、着目画素ブロックが、解像度変換等による画質の変化の大きい領域であるパターン(規則的なパターン)を含む画素ブロックであるのか否かを判定する。パターン検出部407における2つの情報の個々についての取り扱いについては、第1の実施形態と同じである。
When receiving the discrimination information “0” from the
一方、パターン検出部407は、画像判別部701から判別情報「1」を受けた場合には、差分算出部406から送出される情報を取得する。そして、パターン検出部407は、この取得した情報を用いて、着目画素ブロックが、解像度変換等による画質の変化の大きい領域であるパターン(規則的なパターン)を含む画素ブロックであるのか否かを判定する。パターン検出部407における差分算出部406から送出される情報の取り扱いについては、第1の実施形態と同じである。
On the other hand, when receiving the discrimination information “1” from the
これは、パターンと文字が重なっている領域では、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
なお、パターン検出部407から出力される画素ブロックについて、この画素ブロックの属性に応じた処理を行うようにしても良い。例えば、着目画素ブロックに対応する着目分割属性情報を用いて、着目画素ブロックに対するフィルタリング処理に用いるフィルタ係数を切り替えるようにしても良い。また、着目分割属性情報に応じて、着目画素ブロックとディザとの干渉を和らげる処理(例えばディザの係数)等を切り替えても良い。
Note that the pixel block output from the
また、以上で述べた様々な技術事項は、適宜組み合わせて用いても良い。 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
[その他の実施形態]
また、本発明の目的は、以下のようにすることによって達成されることはいうまでもない。即ち、前述した実施形態の機能を実現するソフトウェアのプログラムコード(コンピュータプログラム)を記録した記録媒体(または記憶媒体)を、システムあるいは装置に供給する。係る記憶媒体は言うまでもなく、コンピュータ読み取り可能な記憶媒体である。そして、そのシステムあるいは装置のコンピュータ(または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.
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.
前記計算手段は、以下の式
V(x、y)=(V’(2x、2y)+V’(2x+1、y)+V’(2x、2y+1)+V’(2x+1、2y+1))/4
を全てのx、yについて計算することで、解像度変換処理済み画素ブロックを生成し、更に、前記差分値Dを、以下の式
を計算することで求めることを特徴とする請求項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:
The image processing apparatus according to claim 1, wherein the image processing apparatus calculates the value by calculating.
前記分割手段が分割したそれぞれの画素ブロックについて
着目画素ブロック内の各画素を参照し、参照した画素の近傍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.
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) |
-
2008
- 2008-03-31 JP JP2008093375A patent/JP2009246838A/en not_active Withdrawn
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 |