JP2006217543A - Dither matrix optimizing device, image forming device and dither matrix optimizing method - Google Patents
Dither matrix optimizing device, image forming device and dither matrix optimizing method Download PDFInfo
- Publication number
- JP2006217543A JP2006217543A JP2005030997A JP2005030997A JP2006217543A JP 2006217543 A JP2006217543 A JP 2006217543A JP 2005030997 A JP2005030997 A JP 2005030997A JP 2005030997 A JP2005030997 A JP 2005030997A JP 2006217543 A JP2006217543 A JP 2006217543A
- Authority
- JP
- Japan
- Prior art keywords
- dither matrix
- dither
- image
- genetic algorithm
- output
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Image Processing (AREA)
- Facsimile Image Signal Circuits (AREA)
Abstract
Description
本発明は、階調表現に用いられるディザマトリクスの最適化処理を行うディザマトリクス最適化装置、このディザマトリクス最適化装置を備えるプリンタ、デジタル複写機等の画像形成装置およびディザマトリクス最適化方法に関する。 The present invention relates to a dither matrix optimization apparatus that performs optimization processing of a dither matrix used for gradation expression, an image forming apparatus such as a printer and a digital copying machine including the dither matrix optimization apparatus, and a dither matrix optimization method.
従来より、レーザプリンタ、デジタル複写機、カラーレーザプリンタ、デジタルカラー複写機などの画像形成装置あるいは表示装置等に応用することのできる中間調処理に関する画像形成方法が用いられている。従来の中間調処理には、ディザ法による階調再現処理が多く用いられており、2値プリンタなどでも階調や色を表現することが可能になっている。 2. Description of the Related Art Conventionally, image forming methods relating to halftone processing that can be applied to image forming apparatuses such as laser printers, digital copiers, color laser printers, digital color copiers, and display devices have been used. In conventional halftone processing, gradation reproduction processing by a dither method is often used, and gradation and colors can be expressed even with a binary printer or the like.
ところで、ディザ法による階調再現処理を行う際、高い品質の出力を得るには、出力手段の特性に合ったディザマトリクスを用いる必要がある。このためには、出力手段の特性に応じたディザマトリクスの最適化を行うことが必要になる。このディザマトリクスの最適化を行うには、ディザマトリクスに応じた画像出力を実際の出力エンジンを使って実施し、その出力画質が製品の目標とするレベルに近づくように、ディザマトリクスの修正を行う必要がある。 By the way, when performing gradation reproduction processing by the dither method, it is necessary to use a dither matrix suitable for the characteristics of the output means in order to obtain a high quality output. For this purpose, it is necessary to optimize the dither matrix according to the characteristics of the output means. In order to optimize the dither matrix, image output corresponding to the dither matrix is performed using an actual output engine, and the dither matrix is corrected so that the output image quality approaches the target level of the product. There is a need.
しかしながら、このようなディザマトリクスの最適化作業は、ディザマトリクスのサイズに応じて修正の自由度が飛躍的に高くなり、あるいは出力エンジンがカラーレーザプリンタなどの場合、例えばシアン、マゼンタ、イエロー、ブラックの各版に応じた修正や、色の重ね合わせに応じた修正が必要なため、多くの繰り返しの修正作業が必要となり効率的な修正は困難であるという問題があった。 However, such a dither matrix optimization work greatly increases the degree of freedom of correction depending on the size of the dither matrix, or when the output engine is a color laser printer or the like, for example, cyan, magenta, yellow, black Therefore, there is a problem that it is difficult to perform efficient correction because it requires many repeated correction operations.
そこで、このような問題を解決すべく、各種の技術が提案されている。例えば、特許文献1には、遺伝的アルゴリズムを利用したディザマトリクスの最適化装置が開示されている。特許文献1に開示されている遺伝的アルゴリズムを利用したディザマトリクスの最適化装置によれば、与えられた多値ディザマトリクスに応じて得られた多値ディザ出力レベルを用いて多値ディザマトリクス情報の適応度を求め、この適応度に基づく遺伝的アルゴリズムによりディザマトリクスの最適化処理を行なうようにしている。このように遺伝的アルゴリズムを利用することにより、多値ディザマトリクスサイズが大きく多値ディザマトリクスの全数チェックが行なえない場合においても、遺伝的アルゴリズムの交配、突然変異、淘汰の効果により、多値ディザマトリクスの全数の中から効率的な最適値探査が可能になる。
Therefore, various techniques have been proposed to solve such problems. For example,
ところが、特許文献1に開示されているディザマトリクスの最適化装置では、設定された多値ディザマトリックスに従って予め決められたパターンの多値ディザ出力を作成するようにしているので、ディザマトリクスの縦×横のサイズが256(もしくはその整数倍)以外の場合にディザマトリクスとして必要な階調数を作り出すためには、そのまま利用できないという問題がある。
However, the dither matrix optimization apparatus disclosed in
本発明は、上記に鑑みてなされたものであって、パターンサイズに関わらず遺伝的アルゴリズムを用いたディザマトリクスの最適化処理を行なうことができるディザマトリクス最適化装置、画像形成装置およびディザマトリクス最適化方法を提供することを目的とする。 The present invention has been made in view of the above, and a dither matrix optimization device, an image forming apparatus, and a dither matrix optimization capable of performing a dither matrix optimization process using a genetic algorithm regardless of the pattern size The purpose is to provide a conversion method.
上述した課題を解決し、目的を達成するために、請求項1に係る発明は、階調表現に用いられるディザマトリクスの最適化処理を行うディザマトリクス最適化装置において、前記ディザマトリクスに応じて生成される画像データと出力エンジンの特性データとに基づいてディザ画像出力を求めるシミュレーション手段と、前記シミュレーション手段で求められた前記ディザ画像出力に対する画質の評価を行う評価手段と、前記評価手段による評価結果に基づき前記ディザマトリクスの適応度を求め、求めた適応度に基づいて前記ディザマトリクスを記述する遺伝子情報を淘汰し、残った遺伝子情報に対して交配処理と突然変異処理とを行う遺伝的アルゴリズム処理手段と、前記遺伝的アルゴリズム処理手段により処理された前記遺伝子情報によりディザマトリクスを出力するディザデータ出力手段と、を備える。
In order to solve the above-described problems and achieve the object, the invention according to
また、請求項2に係る発明は、請求項1記載のディザマトリクス最適化装置において、前記ディザマトリクスを記述する前記遺伝子情報は、前記ディザ画像出力の各階調での1つ前の階調から変化した画素を一の遺伝子上に順次情報化したものである。
Further, the invention according to
また、請求項3に係る発明は、請求項2記載のディザマトリクス最適化装置において、遺伝子を低階調側から高階調側へと読み出していき、前記ディザマトリクスの同一画素中、初めに現れた変化した画素を有効とする。
The invention according to
また、請求項4に係る発明は、請求項1ないし3のいずれか一記載のディザマトリクス最適化装置において、前記遺伝的アルゴリズム処理手段の交配処理は、前記ディザマトリクスの階調に対応した位置を交配位置として交配を行なう。 According to a fourth aspect of the present invention, in the dither matrix optimizing device according to any one of the first to third aspects, the mating process of the genetic algorithm processing means determines a position corresponding to a gradation of the dither matrix. Mating is performed as a mating position.
また、請求項5に係る発明は、請求項1ないし3のいずれか一記載のディザマトリクス最適化装置において、前記遺伝的アルゴリズム処理手段の交配処理は、前記ディザマトリクスの画素の位置を交配位置として交配を行なう。
The invention according to
また、請求項6に係る発明は、請求項1ないし5のいずれか一記載のディザマトリクス最適化装置において、前記評価手段は、ガンマ特性に応じた階調特性に基づいて前記ディザ画像出力に対する画質の評価を行う。 According to a sixth aspect of the present invention, in the dither matrix optimizing device according to any one of the first to fifth aspects, the evaluation unit is configured to output an image quality for the dither image output based on a gradation characteristic according to a gamma characteristic. Perform an evaluation.
また、請求項7に係る発明は、請求項1ないし6のいずれか一記載のディザマトリクス最適化装置において、前記評価手段は、空間周波数特性に応じた粒状性に基づいて前記ディザ画像出力に対する画質の評価を行う。 According to a seventh aspect of the present invention, in the dither matrix optimizing device according to any one of the first to sixth aspects, the evaluation unit is configured to provide an image quality for the dither image output based on granularity according to a spatial frequency characteristic. Perform an evaluation.
また、請求項8に係る発明は、請求項1ないし7のいずれか一記載のディザマトリクス最適化装置において、前記評価手段は、前記ディザ画像出力中のドットの集合により表現された網点である網点ドットパターンの周囲長に基づいて前記ディザ画像出力に対する画質の評価を行う。
The invention according to claim 8 is the dither matrix optimization device according to any one of
また、請求項9に係る発明の画像形成装置は、ディザマトリクスに応じて生成される画像データと出力エンジンの特性データとに基づいてディザ画像出力を求めるシミュレーション手段と、前記シミュレーション手段で求められた前記ディザ画像出力に対する画質の評価を行う評価手段と、前記評価手段による評価結果に基づき前記ディザマトリクスの適応度を求め、求めた適応度に基づいて前記ディザマトリクスを記述する遺伝子情報を淘汰し、残った遺伝子情報に対して交配処理と突然変異処理とを行う遺伝的アルゴリズム処理手段と、前記遺伝的アルゴリズム処理手段により処理された前記遺伝子情報によりディザマトリクスを出力するディザデータ出力手段と、前記ディザデータ出力手段により出力された前記ディザマトリクスを用いた階調表現を行う画像処理手段と、前記画像処理手段における階調表現に応じて画像を形成する画像形成手段と、を備える。 According to another aspect of the present invention, there is provided an image forming apparatus that obtains a dither image output based on image data generated in accordance with a dither matrix and output engine characteristic data, and the simulation means. An evaluation means for evaluating the image quality with respect to the dither image output; and determining the fitness of the dither matrix based on the evaluation result by the evaluation means, and hesitating genetic information describing the dither matrix based on the obtained fitness, Genetic algorithm processing means for performing mating processing and mutation processing on the remaining gene information, dither data output means for outputting a dither matrix based on the genetic information processed by the genetic algorithm processing means, and the dither Using the dither matrix output by the data output means Comprising the image processing means for performing a gradation representation, and an image forming means for forming an image according to the gradation representation in the image processing unit.
また、請求項10に係る発明は、階調表現に用いられるディザマトリクスの最適化処理を行うディザマトリクス最適化方法において、前記ディザマトリクスに応じて生成される画像データと出力エンジンの特性データとに基づいてディザ画像出力を求めるシミュレーション工程と、前記シミュレーション工程で求められた前記ディザ画像出力に対する画質の評価を行う評価工程と、前記評価工程による評価結果に基づき前記ディザマトリクスの適応度を求め、求めた適応度に基づいて前記ディザマトリクスを記述する遺伝子情報を淘汰し、残った遺伝子情報に対して交配処理と突然変異処理とを行う遺伝的アルゴリズム処理工程と、前記遺伝的アルゴリズム処理工程により処理された前記遺伝子情報によりディザマトリクスを出力するディザデータ出力工程と、を含む。 According to a tenth aspect of the present invention, in the dither matrix optimization method for optimizing a dither matrix used for gradation expression, image data generated in accordance with the dither matrix and output engine characteristic data are used. A dither image output based on a simulation step, an evaluation step for evaluating an image quality for the dither image output obtained in the simulation step, and a fitness of the dither matrix obtained based on an evaluation result of the evaluation step. Genetic algorithm processing step for deriving the genetic information describing the dither matrix based on the fitness, and performing a mating process and a mutation process on the remaining genetic information, and the genetic algorithm processing process Dither that outputs a dither matrix based on the gene information Chromatography including a data output step.
請求項1に係る発明によれば、ディザマトリクスに応じて生成される画像データと出力エンジンの特性データとに基づいて求めたディザ画像出力に対して画質の評価を行ない、この評価結果に基づき求めたディザマトリクスの適応度に基づいて遺伝的アルゴリズム処理を実行し、処理された遺伝子情報によりディザマトリクスを出力する。これにより、パターンサイズに関わらず遺伝的アルゴリズムを用いたディザマトリクスの最適化処理を行なうことができるという効果を奏する。 According to the first aspect of the invention, the image quality is evaluated for the dither image output obtained based on the image data generated according to the dither matrix and the output engine characteristic data, and the image quality is obtained based on the evaluation result. Genetic algorithm processing is executed based on the fitness of the dither matrix, and a dither matrix is output based on the processed gene information. As a result, the dither matrix can be optimized using the genetic algorithm regardless of the pattern size.
また、請求項2に係る発明によれば、ディザマトリクスを記述する遺伝子情報は、ディザ画像出力の各階調での1つ前の階調から変化した画素を一の遺伝子上に順次情報化したものであることにより、ディザマトリクスの最適化を確実に行わせることができるという効果を奏する。 According to the second aspect of the present invention, the gene information describing the dither matrix is obtained by sequentially converting pixels that have changed from the previous gradation in each gradation of dither image output onto one gene. As a result, the dither matrix can be optimized reliably.
また、請求項3に係る発明によれば、遺伝子を低階調側から高階調側へと読み出していき、ディザマトリクスの同一画素中、初めに現れた変化した画素のみを有効とすることにより、ディザマトリクスの最適化を確実に行わせることができるという効果を奏する。
Further, according to the invention according to
また、請求項4に係る発明によれば、ディザマトリクスの階調に対応した位置を交配位置として交配を行なうことにより、遺伝的アルゴリズムによる進化を高速に進められるという効果を奏する。
Further, according to the invention of
また、請求項5に係る発明によれば、ディザマトリクスの画素の位置を交配位置として交配を行なうことにより、遺伝的アルゴリズムによる進化を高速に進められるという効果を奏する。
Further, according to the invention of
また、請求項6に係る発明によれば、ガンマ特性に応じた階調特性に基づいてディザ画像出力に対する画質の評価を行うことにより、画質を向上させることができるという効果を奏する。 According to the sixth aspect of the present invention, the image quality can be improved by evaluating the image quality for the dithered image output based on the gradation characteristics corresponding to the gamma characteristics.
また、請求項7に係る発明によれば、空間周波数特性に応じた粒状性に基づいてディザ画像出力に対する画質の評価を行うことにより、粒状性(ザラツキ感)の少ないディザを探索することができるという効果を奏する。 According to the seventh aspect of the invention, it is possible to search for a dither with less granularity (roughness) by evaluating the image quality with respect to the dithered image output based on the granularity according to the spatial frequency characteristics. There is an effect.
また、請求項8に係る発明によれば、ディザ画像出力中のドットの集合により表現された網点である網点ドットパターンの周囲長に基づいてディザ画像出力に対する画質の評価を行うことにより、ドットの集まりやすさが向上するという効果を奏する。 Further, according to the invention according to claim 8, by evaluating the image quality for the dithered image output based on the perimeter of the halftone dot pattern that is a halftone dot represented by a set of dots in the dithered image output, There is an effect that the ease of gathering of dots is improved.
また、請求項9に係る発明によれば、ディザマトリクスに応じて生成される画像データと出力エンジンの特性データとに基づいて求めたディザ画像出力に対する画質の評価を行ない、この評価結果に基づき求めたディザマトリクスの適応度に基づいて遺伝的アルゴリズム処理を実行し、処理された遺伝子情報によりディザマトリクスを出力する。これにより、パターンサイズに関わらず遺伝的アルゴリズムを用いたディザマトリクスの最適化処理を行なうことができるという効果を奏する。 According to the ninth aspect of the invention, the image quality is evaluated for the dither image output obtained based on the image data generated according to the dither matrix and the output engine characteristic data, and the image quality is obtained based on the evaluation result. Genetic algorithm processing is executed based on the fitness of the dither matrix, and a dither matrix is output based on the processed gene information. As a result, the dither matrix can be optimized using the genetic algorithm regardless of the pattern size.
また、請求項10に係る発明によれば、ディザマトリクスに応じて生成される画像データと出力エンジンの特性データとに基づいて求めたディザ画像出力に対する画質の評価を行ない、この評価結果に基づき求めたディザマトリクスの適応度に基づいて遺伝的アルゴリズム処理を実行し、処理された遺伝子情報によりディザマトリクスを出力する。これにより、パターンサイズに関わらず遺伝的アルゴリズムを用いたディザマトリクスの最適化処理を行なうことができるという効果を奏する。 According to the tenth aspect of the present invention, the image quality of the dither image output obtained based on the image data generated according to the dither matrix and the output engine characteristic data is evaluated, and the image quality is obtained based on the evaluation result. Genetic algorithm processing is executed based on the fitness of the dither matrix, and a dither matrix is output based on the processed gene information. As a result, the dither matrix can be optimized using the genetic algorithm regardless of the pattern size.
以下に添付図面を参照して、この発明に係るディザマトリクス最適化装置の実施の形態を詳細に説明する。 Embodiments of a dither matrix optimization apparatus according to the present invention will be described below in detail with reference to the accompanying drawings.
(第1の実施の形態)
本発明の第1の実施の形態を図1ないし図19に基づいて説明する。本実施の形態では、ディザマトリクス最適化装置を備える画像形成装置としてモノクロ画像を形成するレーザプリンタを用いるものとする。
(First embodiment)
A first embodiment of the present invention will be described with reference to FIGS. In this embodiment, it is assumed that a laser printer that forms a monochrome image is used as an image forming apparatus including a dither matrix optimization apparatus.
[1.レーザプリンタ100の概略構成]
図1は、本発明の第1の実施の形態に係るレーザプリンタ100の概略構成を示す断面図である。図1に示すように、レーザプリンタ100では、画像が形成されるべき用紙は、本体トレイ101あるいは手差しトレイ102にセットされ、トレイ101あるいは102から給紙ローラ103にて用紙の搬送が開始される。給紙ローラ103による用紙の搬送に先立って、感光体(感光体ドラム)104が回転し、感光体104の表面は、クリーニングブレード105によってクリーニングされ、次に、帯電ローラ106で一様に帯電される。ここに、レーザ光学系ユニット107から、画像信号に従って変調されたレーザ光が露光され、現像ローラ108で現像されてトナーが付着し、これとタイミングを取って給紙ローラ103から用紙の給紙がなされる。給紙ローラ103から給紙された用紙は、感光体104と転写ローラ109とに挟まれて搬送され、これと同時に、用紙にはトナー像が転写される。転写されずに残った感光体104上のトナーは、再び、クリーニングブレード105で掻き落とされる。クリーニングブレード105の手前には、トナー濃度センサ110が設けられており、トナー濃度センサ110によって感光体104上に形成されたトナー像の濃度を測定することができる。また、トナー像が載った用紙は搬送経路にしたがって、定着ユニット111に搬送され、定着ユニット111においてトナー像は用紙上に定着される。印刷された用紙は、最後に排紙ローラ112を通って、記録面を下にしてページ順に排出される。
[1. Schematic configuration of laser printer 100]
FIG. 1 is a cross-sectional view showing a schematic configuration of a
レーザ光学系ユニット107には、後述するディザマトリクス最適化処理を実行するディザマトリクス最適化装置を含む画像処理手段であるビデオ制御部113、LD駆動回路114が接続されており、ビデオ制御部113では、パソコンやワークステーションからの画像信号などを制御したり、あるいは、内部に保持した評価チャート(テストパターン)信号などを発生させたりするようになっている。また、現像ローラ108には、バイアス回路115によって高圧バイアスがかけられており、バイアス回路115において、このバイアスをコントロールすることにより、画像の全体的な濃度を制御したりすることが可能となっている。
The laser
このようなレーザプリンタ100では、パソコンやワークステーションからの画像信号をビデオ制御部113においてディザ法により2値化し、元の画像を2値化した信号で、LD駆動回路114を駆動し、上述した電子写真プロセスによる出力エンジンにより画像を形成することが一般的に行われている。
In such a
[2.ディザ法の基本的事項についての説明]
ここで、ディザ法の基本的事項について簡単に説明する。レーザプリンタ100の様に、ドットの有無(2値データ)で印刷を行う画像形成装置において、ディザ法は、原画像と矩形(マトリクス)領域内に配置した閾値との大小比較により2値化を行う手法であり、比較的高速に2値画像を生成することができる。ディザ法では、N×N画素を階調再現の1つの単位として考え、それに対応するN×Nの閾値マトリクス(これをディザマトリクスという)をつくり、このディザマトリクスを一種のマスクとして原画像に重ね合わせ、各画素の濃度と対応する閾値とを比較し2値化するというものである。つまり、同じディザマトリクスを、全ての画素について繰り返し用いることにより、2値化を行うものである。なお、マトリクスの閾値配列はある規則に従っており、画質は使用するディザマトリクスの形状に大きく依存する。
[2. Explanation of basic items of dither method]
Here, the basic items of the dither method will be briefly described. In an image forming apparatus that performs printing with the presence or absence of dots (binary data) like the
ところで、ディザ法の特徴として、パターンサイズが大きくなれば、表現できる階調数が増えることが一般的に知られている。例えば、ディザマトリクスパターンのパターンサイズが4×4の場合には、17階調を表現することができ、8×8の場合には、65階調を表現することができる。また、16×16の場合には、257階調まで表現することができる。 By the way, it is generally known that the number of gradations that can be expressed increases as the pattern size increases as a feature of the dither method. For example, when the pattern size of the dither matrix pattern is 4 × 4, 17 gradations can be expressed, and when it is 8 × 8, 65 gradations can be expressed. In the case of 16 × 16, up to 257 gradations can be expressed.
また、4値等の多値化を行う場合には、複数のディザ閾値と入力画素値とを2値化の場合と同様にして比較を行って多値データを出力する。つまり、一つめのディザ閾値より入力画素値が高ければ「1」、2つめのディザ閾値より入力画素値が高ければ「2」、というように各ディザマトリクスが多値化のための閾値となる。 Further, when multi-value conversion such as quaternary processing is performed, a plurality of dither threshold values and input pixel values are compared in the same manner as in the case of binarization, and multi-value data is output. In other words, each dither matrix becomes a threshold for multi-value conversion, such as “1” if the input pixel value is higher than the first dither threshold and “2” if the input pixel value is higher than the second dither threshold. .
[3.ビデオ制御部113におけるディザマトリクス最適化]
ビデオ制御部113においては、パソコンなどからの画像信号に対するディザ法による2値化が実行される。前述したように、ディザ法による階調再現処理を行う際、高い品質の出力を得るには、画像形成手段である出力エンジンの特性に合ったディザマトリクスを用いる必要がある。このためには、出力エンジンの特性に応じたディザマトリクスの最適化を行うことが必要になる。ここで、ビデオ制御部(ディザマトリクス最適化装置)113におけるディザマトリクス最適化について説明する。
[3. Dither Matrix Optimization in Video Control Unit 113]
In the
ビデオ制御部(ディザマトリクス最適化装置)113のディザマトリクス最適化に係る部分は、図2に示すように、CPU部1と、遺伝的アルゴリズム処理を実行する遺伝的アルゴリズム処理手段である遺伝的アルゴリズム処理部2と、ディザマトリクスに応じて生成される画像データと出力エンジンの特性データとに基づいてディザ画像出力を求めるシミュレーション手段であるシミュレーション処理部3と、シミュレーション処理部3で形成された出力画像の電子イメージに対して評価を行う評価手段である評価値算出部4と、遺伝子情報によりディザマトリクスを記述して出力するディザデータ出力手段であるディザデータ出力部5とから構成されており、CPU部1が各部を制御する構成となっている。
As shown in FIG. 2, the part relating to the dither matrix optimization of the video control unit (dither matrix optimization device) 113 includes a
このようなビデオ制御部(ディザマトリクス最適化装置)113の動作概略について説明する。ビデオ制御部(ディザマトリクス最適化装置)113は、概略的には、遺伝的アルゴリズムを用いてディザマトリクスを最適化する装置である。遺伝的アルゴリズムとは、淘汰、交配、突然変異という3種類の遺伝的操作を繰り返し、適応度の高い個体(遺伝子)を捜し出す手法である。このような遺伝的アルゴリズム処理は、遺伝的アルゴリズム処理部2において実行される。適応度は、各個体(遺伝子)の評価指標であり、一般に、各遺伝子の優劣をつけるための評価関数で個体ごとに求められるものである。適応度の低い個体(遺伝子)は、淘汰されることになる。
An outline of the operation of the video control unit (dither matrix optimization device) 113 will be described. The video control unit (dither matrix optimization device) 113 is generally a device that optimizes a dither matrix using a genetic algorithm. The genetic algorithm is a method of searching for individuals (genes) having high fitness by repeating three kinds of genetic operations, ie, selection, mating, and mutation. Such genetic algorithm processing is executed in the genetic
[3−1.遺伝的アルゴリズム処理部2の説明]
ここで、遺伝的アルゴリズム処理部2において実行される遺伝的アルゴリズム処理について説明する。
[3-1. Explanation of Genetic Algorithm Processing Unit 2]
Here, the genetic algorithm processing executed in the genetic
まず、遺伝子情報とディザマトリクスとの間の変換関係について説明する。例えば、網点ディザなどの場合、そのディザマスクはセルの組み合わせで構成される。図3はそのセルの一例でひし形のセルを簡単に模式的に現したものである。なお、実際には、構成する画素数は図3に示す数よりもはるかに多い。ここでは、図3に示すように、遺伝子情報とディザマトリクスとの間の変換関係について説明するにあたり、このようなひし形のセルを、マスが一列に並んでいるセルにある決まりに従って並べ替える。ある決まりは、例えば上から順番にでも良いし、中央から渦巻状にでも良い。以下、説明はこの一列に並べた情報に従って説明する。 First, the conversion relationship between gene information and a dither matrix will be described. For example, in the case of halftone dither, the dither mask is composed of a combination of cells. FIG. 3 is a schematic diagram showing a rhombus cell as an example of the cell. Actually, the number of pixels constituting the image is much larger than the number shown in FIG. Here, as shown in FIG. 3, in describing the conversion relationship between the gene information and the dither matrix, such rhombus cells are rearranged according to the rules in the cells in which the cells are arranged in a line. A certain rule may be in order from the top, for example, or may be spiral from the center. Hereinafter, the description will be made according to the information arranged in this line.
図4−1は、一列に並べたセルを例示的に示す模式図である。図4−1に示す一列に並べたセルは、#0〜#255までの256列用意されており、このセルを使って、0〜255階調までのドットの打たれる状態(実体)を示したものである。図4−1においては、黒く塗りつぶされた位置にドットが打たれる事を示している。ドットが打たれる画素は、階調の順序に応じて増えていき、最後に255階調で全て埋まる。なお、階調0については、通常ドットは打たれないが、出力エンジンによっては打った方が良い場合もある。
FIG. 4A is a schematic diagram illustrating cells arranged in a line. The cells arranged in one row shown in FIG. 4A are prepared in 256 columns from # 0 to # 255, and using this cell, the state (entity) of dots from 0 to 255 gradations is provided. It is shown. In FIG. 4A, it is shown that a dot is hit at a position painted black. The number of pixels to which dots are applied increases in accordance with the order of gradation, and is finally filled with 255 gradations. For
一方、図4−2は、図4−1の階調間の違いに着目した情報(遺伝子情報)を示すものである。図4−1における実際の階調0と1の間ではドットが1つ増えているので、それに対応した位置に図4−2の#1のように「1」を記載する。同様に、階調1と階調2の間については、図4−2の#2のように「1」がセットされる。これを順に階調254と階調255の間のところまで繰り返す。また、図4−2の#0であるが、実際の階調としては階調(−1)と階調0との間の情報をセットするわけであるが、階調(−1)として仮想的に実態としては何もドットが打たれていない状態を想定して、図4−2の#0のデータを作成する。この状態で図4−2の1、0の集まりを見ると、水平方向には#0から#255のどこかの位置でのみ1になるのは明らかである。つまり、#1の列で「1」が存在する位置に対応するセルの位置に、階調1のときにドットを打つことを表している。階調2を表すときは、#1の列で「1」が存在する位置及び#2の列で「1」が存在する位置のそれぞれに対応するセルの位置に、ドットを打つことになる。
On the other hand, FIG. 4-2 shows information (gene information) focusing on the difference between the gray levels in FIG. Since one dot is added between the
上述したように、図4−2の#0〜#255までの256列全てで、遺伝的アルゴリズムにおける一個体の遺伝子を表すことが可能である。しかし、図4−2では、各列(#0、#1…)中のほとんどの位置が「0」で埋められている。そのため、これをこのまま遺伝子とすると遺伝的アルゴリズムの操作である交配や突然変異が有効に行われず、ほとんどの交配・突然変異処理が無駄なものになってしまう。 As described above, all 256 columns from # 0 to # 255 in FIG. 4-2 can represent one individual gene in the genetic algorithm. However, in FIG. 4B, most positions in each column (# 0, # 1,...) Are filled with “0”. Therefore, if this is used as it is, the mating and mutation, which are the operations of the genetic algorithm, are not performed effectively, and most mating / mutation processes are wasted.
そこで、本実施の形態においては、上述した図4−2の1、0の集まりについて、次のように解釈の拡張をすることにする。ここで、図5は図4−1の階調間の違いに着目した情報(遺伝子情報)を解釈の拡張に対応させて示すものである。図5に示した遺伝子においては、各列(#0、#1…)の位置を左側の列(#0)から順番に右側(#255)へ読んでいき、初めに「1」が出てきた列に対応する階調において、その位置にドットが打たれることを示している。すなわち、本実施の形態においては、水平方向において複数の1が存在する時には、一番左側の「1」(ディザマトリクスの同一画素中、初めに現れた変化した画素)を有効とする。したがって、図5中の染色体K1のように途中で「1」が発生した場合であっても、本実施の形態の解釈の拡張に基づくと、図5中の染色体K1はこの遺伝子にあっては無視されることとなる。ただし、今後の世代においては交配などにより、この染色体が有効に働く効果も期待できる。そこで、本実施の形態の解釈の拡張に基づくと、#255についての全ての染色体は、必ず「1」であるとする。こうすることにより、変異や交配が起っても、必ず実体の画像の255階調目においては必ず全てのドットが埋まる状態が保証される。したがって、この図5における1、0の集まりを遺伝子として扱うことにより、ディザマトリクスの最適化を遺伝的アルゴリズムにより有効に行うことが可能となる。 Therefore, in this embodiment, the interpretation of the group of 1 and 0 in FIG. 4-2 described above is extended as follows. Here, FIG. 5 shows information (gene information) paying attention to the difference between gradations in FIG. 4A in correspondence with expansion of interpretation. In the gene shown in FIG. 5, the position of each column (# 0, # 1...) Is read sequentially from the left column (# 0) to the right side (# 255), and “1” appears first. In the gradation corresponding to each row, it is shown that a dot is hit at that position. That is, in the present embodiment, when there are a plurality of 1s in the horizontal direction, the leftmost “1” (the changed pixel that first appears in the same pixel of the dither matrix) is validated. Therefore, even if “1” occurs in the middle like chromosome K1 in FIG. 5, based on the expanded interpretation of the present embodiment, chromosome K1 in FIG. It will be ignored. However, in future generations, it can be expected that this chromosome works effectively by mating. Therefore, based on the expanded interpretation of the present embodiment, it is assumed that all chromosomes for # 255 are always “1”. By doing so, it is guaranteed that all dots are always filled in the 255th gradation of the actual image even if mutation or mating occurs. Therefore, by treating the group of 1 and 0 in FIG. 5 as a gene, the dither matrix can be optimized effectively by a genetic algorithm.
さらに、このような1,0の集まりを遺伝子として扱うことにより、階調の反転を防止することができる。すなわち、このような1,0の集まりを遺伝子として扱うことにより、階調飛びを防止することができる。より詳細には、階調0から階調255に向かって、必ずドットが(0個以上)増える構成となるので、濃度が同じか、あるいは濃度が増えるという構成にしかならない。これによって、遺伝的アルゴリズムを使って、交配・突然変異を行う際に、どのような構成をとっても必ずドットが増える構成とすることができ、階調が反転するような致死遺伝子を生成しないので効率の良い進化が可能となる。すなわち、出来上がったディザに対して階調が絶対に反転しないという利点がある。
Further, by treating such a group of 1 and 0 as a gene, gradation inversion can be prevented. That is, gradation skipping can be prevented by treating such a group of 1 and 0 as a gene. More specifically, since the number of dots always increases (0 or more) from
逆に、遺伝子を元にディザマスクを作成することも簡単にできる。ここで、図6は遺伝子を元にしたディザマスクの作成手法を示す説明図である。図6に示すように、各列(#0、#1…)の位置を左側の列(#0)から順番に右側(#255)へ読んでいき、初めに「1」が出てきた列に対応する値をその位置の閾値としてセットする。つまり、#0で「1」になっているところについては、閾値0をセットする(S0)。次に#1で「1」になっているところについては、閾値1をセットする(S1)。次に#2で「1」になっているところについては、閾値2をセットする(S2)。以下同様にして閾値を設定するが、染色体K1のように、既に対応箇所の閾値がセットされている場合には、染色体K1は無視される。最終的にはS255において、全てのディザ閾値がセットされる。なお、256階調を生成するために必要なディザの閾値としては255有れば十分であり、上での説明のように0から255までの256レベルの閾値は必要としない。実際には閾値0は特殊な状態であり、特別な扱いがなされ、通常は1〜255までの255レベルの閾値がセットされる。
Conversely, it is easy to create a dither mask based on genes. Here, FIG. 6 is an explanatory diagram showing a method of creating a dither mask based on genes. As shown in FIG. 6, the position of each column (# 0, # 1...) Is read sequentially from the left column (# 0) to the right side (# 255), and “1” appears first. A value corresponding to is set as a threshold value for the position. That is, the
次に、この遺伝子の初期化方法について説明する。遺伝子の初期化の方法は、乱数によって初期化する方法や、入力された初期値により初期化する方法がある。入力する初期値として、あらかじめ作成しておいたディザマトリクスを入力し、そこから最適化を進めることも可能である。 Next, a method for initializing this gene will be described. There are two methods for gene initialization: initialization using random numbers and initialization using input initial values. It is also possible to input a dither matrix created in advance as an initial value to be input, and to proceed with optimization from there.
続いて、遺伝的アルゴリズムにおける交配の方法について説明する。遺伝的アルゴリズムにおける交配は、個体に対する遺伝子操作の一つで、個体群の中から特定の遺伝子対を選び、その特定の部分を入れ換える操作を言う。 Subsequently, a method of mating in the genetic algorithm will be described. Crossing in the genetic algorithm is one of genetic operations on individuals, and refers to an operation of selecting a specific gene pair from an individual group and exchanging that specific portion.
図7は、遺伝的アルゴリズムにおける交配の方法の一例を示す説明図である。なお、染色体は0か1のどちらかの値が入っているが、この図7では省略する。図7に示す例では、2つの個体A0,A1が有るとする。この2つの個体A0,A1に対して交配を行わせるときには、まず交配位置を決定することになる。交配位置の決定手法は、乱数を発生させてランダムに位置を設定するものである。図7に示す例においては、交配位置(ディザマトリクスの階調に対応した位置)を1箇所決めて交配する場合を示している。交配位置が決まると、個体A0の染色体P01,P02を個体A1の染色体P11,P12に対して交配させることにより、下記に示す新しい個体A0',A1'
A0'=P01+P12
A1'=P11+P02
が生成される。もし、個体A0,A1の評価があまり良くなくても、個体A0のP01の部分の情報と、個体A1のP12の部分の情報とが共に優れているものならば、生成される個体A0'はすばらしい評価値を得られることになる。このように交配を行わせることにより、遺伝的アルゴリズムによる進化を高速に進められるという効果を生む。
FIG. 7 is an explanatory diagram showing an example of a method of mating in the genetic algorithm. The chromosome has a value of either 0 or 1, which is omitted in FIG. In the example shown in FIG. 7, it is assumed that there are two individuals A0 and A1. When mating the two individuals A0 and A1, the mating position is first determined. The method for determining the mating position is to randomly generate a random number and set the position. The example shown in FIG. 7 shows a case where the mating position (position corresponding to the gradation of the dither matrix) is determined at one place and mated. Once the mating position is determined, the individual A0's chromosomes P01 and P02 are mated to the individual A1's chromosomes P11 and P12, whereby the following new individuals A0 'and A1'
A0 '= P01 + P12
A1 ′ = P11 + P02
Is generated. Even if the evaluation of the individuals A0 and A1 is not so good, if the information of the P01 portion of the individual A0 and the information of the P12 portion of the individual A1 are both excellent, the generated individual A0 ′ is An excellent evaluation value can be obtained. By performing the mating in this way, an effect is achieved that the evolution by the genetic algorithm can be advanced at high speed.
ここで、別の交配の方法について説明する。図8は、遺伝的アルゴリズムにおける交配の方法の別の一例を示す説明図である。図8に示す例は、セル上の交配を行わせるものである。なお、染色体は0か1のどちらかの値が入っているが、この図8では省略する。図8に示す例では、2つの個体A0とA1とが有るとする。この2つの個体A0,A1に対して交配を行わせるときには、まず交配位置を決定することになる。交配位置の決定手法は、乱数を発生させてランダムに位置を設定するものである。図8に示す例においては、交配位置(ディザマトリクスの画素の位置)を2箇所決めて交配する場合を示している。交配位置が決まると、個体A0の染色体P01,P02,P03を個体A1の染色体P11,P12,P13に対して交配させることにより、下記に示す新しい個体A0',A1'
A0'=P01+P12+P03
A1'=P11+P02+P13
が生成される。もし、個体A0,A1の評価があまり良くなくても、個体A0のP01,P03の部分の情報と、個体A1のP12の部分の情報が共に優れているものならば、生成される個体A0'はすばらしい評価値を得られることになる。このように交配を行わせることにより、遺伝的アルゴリズムによる進化を高速に進められる効果を生む。
Here, another method of mating will be described. FIG. 8 is an explanatory diagram showing another example of the method of mating in the genetic algorithm. In the example shown in FIG. 8, mating on a cell is performed. The chromosome has a value of either 0 or 1, which is omitted in FIG. In the example shown in FIG. 8, it is assumed that there are two individuals A0 and A1. When mating the two individuals A0 and A1, the mating position is first determined. The method for determining the mating position is to randomly generate a random number and set the position. The example shown in FIG. 8 shows a case where two mating positions (dither matrix pixel positions) are determined and mated. When the mating position is determined, the new individuals A0 ′, A1 ′ shown below are obtained by mating the chromosomes P01, P02, P03 of the individual A0 with the chromosomes P11, P12, P13 of the individual A1.
A0 ′ = P01 + P12 + P03
A1 ′ = P11 + P02 + P13
Is generated. Even if the evaluation of the individuals A0 and A1 is not so good, if the information of the P01 and P03 portions of the individual A0 and the information of the P12 portion of the individual A1 are both excellent, the generated individual A0 ′ Will get a great rating. By performing the mating in this way, the effect of being able to advance the evolution by the genetic algorithm at high speed is produced.
次に、遺伝的アルゴリズムにおける変異の方法について説明する。遺伝的アルゴリズムにおける変異は、個体に対する遺伝子操作の一つで、遺伝子情報の一部をある確率で変化させることである。このように突然変異を起こすことによって、個体群が局所安定に陥りにくくなる。 Next, the mutation method in the genetic algorithm will be described. Mutation in the genetic algorithm is one of genetic operations on individuals, and changes a part of genetic information with a certain probability. By causing mutations in this way, the population is less likely to fall into local stability.
ここで、図9は遺伝的アルゴリズムにおける変異の方法の一例を示す説明図である。図9に示す例は、変異させる箇所を例えば乱数などを使って選び、その位置の情報を1←→0と交換してしまう方法である。このような変異により、突然変異の個体を生じさせ、遺伝的アルゴリズムによる進化を変化させる効果を生む。 Here, FIG. 9 is an explanatory diagram showing an example of a mutation method in the genetic algorithm. The example shown in FIG. 9 is a method of selecting a part to be mutated using, for example, a random number and exchanging information on the position with 1 ← → 0. Such mutations produce mutant individuals and produce the effect of changing the evolution by genetic algorithms.
ここで、別の変異の方法について説明する。図10は、遺伝的アルゴリズムにおける変異の方法の別の一例を示す説明図である。図10に示す例は、変異させる情報「1」の染色体を例えば乱数などを使って選び、その情報を水平方向に移動させてしまう方法である。このような変異により、突然変異の個体を生じさせ、遺伝的アルゴリズムによる進化を変化させる効果を生む。 Here, another method of mutation will be described. FIG. 10 is an explanatory diagram showing another example of a mutation method in the genetic algorithm. The example shown in FIG. 10 is a method of selecting the chromosome of information “1” to be mutated using, for example, a random number and moving the information in the horizontal direction. Such mutations produce mutant individuals and produce the effect of changing the evolution by genetic algorithms.
[3−2.シミュレーション処理部3の説明]
次に、シミュレーション処理部3について説明する。図11は、シミュレーション処理部3の処理概要を示す説明図である。図11に示すように、シミュレーション処理部3は、画像処理の結果としての画像データと出力エンジンの特性データをセットすると、出力画像の電子イメージ(ディザ画像出力)が作成されるようになっている。例えば、ディザマトリクスの最適化の場合、画像処理の結果としての画像データ(ディザ画像出力)としては、階調0〜階調255までの階調パッチを画像処理したときの結果のビットマップ情報となる。シミュレーション処理部3として、例えばポリゴンスキャナを用いたレーザ光学系ユニット107を備える電子写真方式のレーザプリンタ100をシミュレーションするものであれば、これにその出力エンジン特性情報を合わせて与えると、例えば感光体104上に形成される電位情報から出力画像の電子イメージ(ディザ画像出力)を形成する。また、シミュレーション処理部3としては、最終的なトナーの付着情報までシミュレーションするものであってもよい。あるいは、シミュレーション処理部3としては、楕円のドットを打ち、これをフィルタ処理することにより、出力画像の電子イメージ(ディザ画像出力)を作るものであっても良い。
[3-2. Description of Simulation Processing Unit 3]
Next, the
[3−3.評価値算出部4の説明]
次に、評価値算出部4について説明する。図12は、評価値算出部4における処理の一例を示す説明図である。図12に示すように、評価値算出部4は、階調ごとのビットマップ情報(a)に基づいてシミュレーション処理部3で形成された出力画像の電子イメージ(ディザ画像出力)(b)に対して、個別の評価や総合評価値の算出(c)を行う。より詳細には、評価値算出部4は、図13に示すように、シミュレーション処理部3で形成された出力画像の電子イメージに対して、画質の評価を行い、それを評価値として算出するものである。
[3-3. Description of Evaluation Value Calculation Unit 4]
Next, the evaluation
ここで、図14はガンマ特性を現したもので、横軸が階調レベルの0〜255であり、縦軸がシミュレーション結果の濃度情報である。たとえば、このガンマ特性が直線になるほうが良いとすると、図14には直線からのずれがあるので、このずれ量をシミュレーション処理部3で形成された出力画像の電子イメージに対する画質評価の評価値として算出することになる。
Here, FIG. 14 shows the gamma characteristic, the horizontal axis is the gradation level from 0 to 255, and the vertical axis is the density information of the simulation result. For example, if it is better that the gamma characteristic is a straight line, since there is a deviation from the straight line in FIG. 14, this deviation amount is used as an evaluation value for the image quality evaluation for the electronic image of the output image formed by the
また、図15は空間周波数特性を1次元グラフに現したもので、横軸が空間周波数、縦軸がそのパワーとなっている。なお、パワーには人間の目の特性(VTF特性)を乗じているため、高周波になるほど、パワーが減衰している。このような図15の面積の情報が目で見たときの粒状性(ザラツキ感)に相当するので、この面積情報を評価値として用いることにより、粒状性(ザラツキ感)の少ないディザを探索することができる。 FIG. 15 shows the spatial frequency characteristics in a one-dimensional graph. The horizontal axis represents the spatial frequency and the vertical axis represents the power. Since the power is multiplied by the characteristics of the human eye (VTF characteristics), the power is attenuated as the frequency becomes higher. Since the area information in FIG. 15 corresponds to the graininess (graininess) when visually observed, a dither with less graininess (graininess) is searched by using this area information as an evaluation value. be able to.
一方、図16は評価値算出部4における処理の別の一例を示す説明図である。図16に示すように、評価値算出部4は、シミュレーション前のビットマップ情報(a)に対して評価を行っても良い。より詳細には、シミュレーション前のビットマップ情報(a)に対して、デジタル的な周囲長(以下、デジタル周囲長という)計算(b)を適用する方式である。デジタル周囲長とは、図17に示すように、元画像であるビットマップ情報(図16参照)に対する周囲長を計算したものである。
On the other hand, FIG. 16 is an explanatory diagram showing another example of processing in the evaluation
このようにして算出されたデジタル周囲長を評価値に含めることにより、電子写真方式に適したディザマトリクスが生成される点について説明する。ここで、図18は2種類の3画素のドットの集合により表現された網点である網点ドットパターンを示す説明図である。各正方形の画素の1辺を長さ1とおくと、(a)は12、(b)は8となって、(b)の周囲長のほうが短い。すなわち、(b)の点線の部分のようにお互いに結合している部分がある方の周囲長が短くなる。ここで、ディザが適用される電子写真方式においては、離散的なドットよりも、結合したドットのほうが安定なドットが形成されるということが従来から知られている。すなわち、解像度600dpiや、1200dpiなどの電子写真方式の出力エンジンでは、孤立した1ドットによる露光では、トナーを安定して付着させるのに十分な電位が確保できず、そのため、トナーの付着(つまりは用紙上の反射濃度)が不安定になってしまう。これは、一般ユーザにとっては画質が劣化していると認識されるので好ましくない。そこで、周囲長が少ないことを評価に加えると、ドットを集める方が良好な評価点になるので、簡単な計算のみでドットを集めた遺伝子の評価が良い(ドットを集めない電子写真方式の出力エンジンにとっては無駄な遺伝子を次の世代に残すことが少なくなる)という結果を導くことができる。つまり、周囲長計算結果を評価値に含めると、ドットの集まりやすさが向上するという効果が発揮される。
The point that a dither matrix suitable for the electrophotographic method is generated by including the digital perimeter calculated in this way in the evaluation value will be described. Here, FIG. 18 is an explanatory diagram showing a halftone dot pattern which is a halftone dot expressed by a set of two types of three-pixel dots. If one side of each square pixel has a
[3−4.ディザマトリクス最適化処理の流れ]
次に、ビデオ制御部(ディザマトリクス最適化装置)113におけるディザマトリクス最適化に関する一連の処理動作について説明する。図19は、ディザマトリクス最適化処理の流れを概略的に示すフローチャートである。
[3-4. Flow of dither matrix optimization process]
Next, a series of processing operations related to dither matrix optimization in the video control unit (dither matrix optimization device) 113 will be described. FIG. 19 is a flowchart schematically showing the flow of dither matrix optimization processing.
図19に示すように、まず遺伝子情報を初期化し、第0世代の遺伝子を与える(ステップS1)。この遺伝子は、乱数で生成するようにしても良いし、あるいは、従来のディザマスクを元に生成させるようにしても良い。乱数で初期値を発生させると、当初の遺伝子の探索空間を広く取ることができるという効果があるし、また、従来のディザマスクを元に生成すると、探索空間は狭くなるが、特性の良いディザを高速に求めることが可能となるという効果がある。 As shown in FIG. 19, first, gene information is initialized and a 0th generation gene is given (step S1). This gene may be generated by a random number or may be generated based on a conventional dither mask. Generating initial values with random numbers has the effect of broadening the initial gene search space, and generating it based on the conventional dither mask narrows the search space, but has good characteristics. The effect is that it is possible to obtain the above at high speed.
次に、遺伝子情報をディザマスクに変換し(ステップS2)、各レベルすなわち階調0〜階調255におけるディザ出力のパッチのビットマップ画像を作成する(ステップS3)。ここで、評価値として、デジタル状態で評価できるものをまず評価する(ステップS4)。例えば、前述したデジタル周囲長などは、この段階で評価値が算出される。
Next, the genetic information is converted into a dither mask (step S2), and a bitmap image of a patch of dither output at each level, that is,
続くステップS5では、シミュレーション画像を作成する。本実施の形態では、ある電子写真方式の出力エンジンをシミュレートするため、用紙上のトナーの付着状況が電子画像として得られる。 In the subsequent step S5, a simulation image is created. In this embodiment, since an electrophotographic output engine is simulated, the toner adhesion state on the paper is obtained as an electronic image.
このようにして作成された各パッチの電子イメージ(シミュレーション画像)に対して、評価値を算出する(ステップS6)。例えば、1つのパッチの明度や、1つのパッチの粒状性(ザラツキ度)が数値で表現される。その後、各評価値をまとめて、総合評価値を算出する(ステップS7)。 An evaluation value is calculated for the electronic image (simulation image) of each patch created in this way (step S6). For example, the brightness of one patch and the granularity (roughness) of one patch are expressed by numerical values. Thereafter, the evaluation values are put together to calculate a comprehensive evaluation value (step S7).
以上のステップS2〜ステップS7は、1つの世代には複数の遺伝子があるため、全遺伝子についての処理が終了した判断されるまで(ステップS8のY)、繰り返される。 The above steps S2 to S7 are repeated until it is determined that the processing for all genes has been completed (Y in step S8) because there are a plurality of genes in one generation.
全遺伝子についての処理が終了したと判断された場合には(ステップS8のY)、ステップS9に進み、進化が終了したかどうかを判断する。これは、ステップS7で算出した総合評価値の値で判断され、当初の目標値に至った場合には進化終了となるし、あるいは、タイムオーバーや世代オーバーにより進化を打ち切ることもある。 If it is determined that the processing for all genes has been completed (Y in step S8), the process proceeds to step S9 to determine whether or not evolution has been completed. This is determined based on the value of the comprehensive evaluation value calculated in step S7. When the initial target value is reached, the evolution ends, or the evolution may be terminated due to time over or generation over.
進化が終了したと判断した場合には(ステップS9のY)、ディザテーブルを出力して(ステップS15)、処理を終了する。本実施の形態では、最良のものから3種類までのディザテーブルを出力する。実際に3種類のディザで出力して、そのなかからディザを選ぶことも可能だし、一番良いものだけをそのまま出力エンジンに適用してもよい。 If it is determined that the evolution has ended (Y in step S9), a dither table is output (step S15), and the process ends. In the present embodiment, the dither table from the best to three types is output. It is possible to actually output with three types of dither, and select a dither from among them, or just apply the best one as it is to the output engine.
一方、まだ進化が終了していないと判断した場合には(ステップS9のN)、ステップS10へ進み、淘汰遺伝子の判定をする。本実施の形態では、ステップS7で求めた総合評価値に基づいて適応度を求め、全体の遺伝子から適応度が低いほうの20%を淘汰するようにしている。 On the other hand, when it is determined that the evolution has not been completed yet (N in step S9), the process proceeds to step S10 to determine the sputum gene. In the present embodiment, the fitness is obtained based on the comprehensive evaluation value obtained in step S7, and 20% of the lower fitness is selected from the whole gene.
続くステップS11において、実際の淘汰が行われる。すなわち、複数の遺伝子のうち、全体の20%個の遺伝子をメモリ上から削除する。 In the following step S11, actual dredging is performed. That is, of the plurality of genes, 20% of all genes are deleted from the memory.
次に、削除された個体を補うため、交配処理(ステップS12)と突然変異処理(ステップS13)とが行われる。本実施の形態では、失われた20%のうち半分を交配処理で生成し、残り半分を突然変異処理によって生成している。 Next, in order to compensate for the deleted individual, a mating process (step S12) and a mutation process (step S13) are performed. In the present embodiment, half of the lost 20% is generated by the mating process, and the remaining half is generated by the mutation process.
その後、致死遺伝子が発生しているか否かのチェックを行い(ステップS14のY)、致死遺伝子が発生している場合には(ステップS14のY)、突然変異処理(ステップS13)をやり直す。 Thereafter, it is checked whether or not a lethal gene has been generated (Y in step S14). If a lethal gene has been generated (Y in step S14), the mutation process (step S13) is performed again.
このように本実施の形態によれば、ディザマトリクスに応じて生成される画像データと出力エンジンの特性データとに基づいて求めたディザ画像出力に対する画質の評価を行ない、この評価結果に基づき求めたディザマトリクスの適応度に基づいて遺伝的アルゴリズム処理を実行し、処理された遺伝子情報によりディザマトリクスを出力する。これにより、パターンサイズに関わらず遺伝的アルゴリズムを用いたディザマトリクスの最適化処理を行なうことができる。 As described above, according to the present embodiment, the image quality is evaluated with respect to the dither image output obtained based on the image data generated according to the dither matrix and the output engine characteristic data, and obtained based on the evaluation result. A genetic algorithm process is executed based on the fitness of the dither matrix, and a dither matrix is output based on the processed gene information. This makes it possible to perform dither matrix optimization processing using a genetic algorithm regardless of the pattern size.
(第2の実施の形態)
本発明の第2の実施の形態を図20ないし図23に基づいて説明する。なお、前述した第1の実施の形態と同一部分は同一符号で示し説明も省略する。第1の実施の形態では、2値用の遺伝子を元にディザマスクを作成する方法を説明した。本実施の形態は、多値用の遺伝子を元にディザマスクを作成する方法を説明するものである。
(Second Embodiment)
A second embodiment of the present invention will be described with reference to FIGS. The same parts as those in the first embodiment described above are denoted by the same reference numerals, and the description thereof is also omitted. In the first embodiment, a method of creating a dither mask based on a binary gene has been described. In the present embodiment, a method of creating a dither mask based on a multi-value gene will be described.
第1の実施の形態での説明では、遺伝子を構成する染色体が「1」か「0」だったが、本実施の形態、例えば2ビットの画像処理の場合、染色体は「3」「2」「1」「0」の4種類となる。 In the description of the first embodiment, the chromosome constituting the gene is “1” or “0”. However, in this embodiment, for example, in the case of 2-bit image processing, the chromosome is “3” or “2”. There are four types, “1” and “0”.
図20は、本実施の形態の多値用の遺伝子を元にしたディザマスクの作成手法を示す説明図である。図20に示すように、各列(#0、#1…)のそれぞれの位置を左側の列(#0)から順番に右側(#255)へ読んでいき、初めに「1」が出てきた列に対応する値を、第一のディザマトリクスのその位置の閾値としてセットする。さらに右側へと読んでいき、初めに「2」が出てきた列に対応する値を、第二のディザマトリクスのその位置の閾値としてセットする。さらに右側へと読んでいき、初めに「3」が出てきた列に対応する値を、第三のディザマトリクスのその位置の閾値としてセットする。このとき、初めに存在する「1」よりも先に存在する「2」は無視され、ディザマトリクスの作成には寄与しない。同様に、初めに存在する「1」及び「2」よりも先に存在する「3」は無視され、ディザマトリクスの作成には寄与しない。また、2値化のときと同様に、左側の列(#0)から順番に右側(#255)へと読んでいったときに、初めに存在する各「1」、「2」、「3」以外の、「1」、「2」、「3」は無視され、ディザマトリクスの作成には寄与しない。 FIG. 20 is an explanatory diagram showing a dither mask creation method based on the multi-value gene of the present embodiment. As shown in FIG. 20, the position of each column (# 0, # 1...) Is read sequentially from the left column (# 0) to the right side (# 255), and “1” appears first. The value corresponding to the selected column is set as the threshold value for that position in the first dither matrix. Further reading to the right side, the value corresponding to the column in which “2” appears first is set as the threshold value for that position in the second dither matrix. Further reading to the right side, the value corresponding to the column in which “3” appears first is set as the threshold value for that position in the third dither matrix. At this time, “2” existing before “1” present at the beginning is ignored and does not contribute to creation of the dither matrix. Similarly, “3” existing before “1” and “2” present at the beginning is ignored and does not contribute to the creation of the dither matrix. Similarly to the case of binarization, when reading from the left column (# 0) to the right side (# 255) in order, each “1”, “2”, “3” present first "1," "2," and "3" other than "" are ignored and do not contribute to the creation of the dither matrix.
このようにディザマトリクスを作成することで、第一のディザマトリクスと第二のディザマトリクスと第三のディザマトリクスとの各位置における閾値の大小関係が逆転することはない。また、このような遺伝子を用いることにより遺伝的アルゴリズムの操作である交叉や突然変異が有効に行われる。 By creating the dither matrix in this way, the magnitude relation of the threshold values at the respective positions of the first dither matrix, the second dither matrix, and the third dither matrix is not reversed. Further, by using such a gene, crossover and mutation which are operations of the genetic algorithm are effectively performed.
ここで、本実施の形態の遺伝的アルゴリズムにおける変異の方法について説明する。図21は、本実施の形態の遺伝的アルゴリズムにおける変異の方法の一例を示す説明図である。図21に示す例は、(0,1)(1,2)(2,3)(3,0)を相互に交換する方法であるが、これに限るものではなく、ランダムに変更するようにしても良い。なお、図21に示す例では、#255のところには全て「3」が入っている。 Here, a mutation method in the genetic algorithm of the present embodiment will be described. FIG. 21 is an explanatory diagram showing an example of a mutation method in the genetic algorithm of the present embodiment. The example shown in FIG. 21 is a method of exchanging (0, 1) (1, 2) (2, 3) (3, 0) with each other. May be. In the example shown in FIG. 21, all “3” are entered at # 255.
ここで、別の変異の方法について説明する。図22は、遺伝的アルゴリズムにおける変異の方法の別の一例を示す説明図である。図22に示す例は、変異させる情報「1」〜「3」の染色体を例えば乱数などを使って選び、その情報を水平方向に移動させてしまう方法である。 Here, another method of mutation will be described. FIG. 22 is an explanatory diagram showing another example of the mutation method in the genetic algorithm. The example shown in FIG. 22 is a method of selecting the chromosomes of information “1” to “3” to be mutated using, for example, random numbers and moving the information in the horizontal direction.
なお、交配処理については、第1の実施の形態の場合と同様に実施されるため、その説明は省略する。 Note that the mating process is performed in the same manner as in the first embodiment, and a description thereof will be omitted.
また、図23に示すように、生成した遺伝子が無効な遺伝子にならないように、染色体をソートし直しても良い。もちろん、致死遺伝子判断の処理で致死遺伝子として扱う方法もあるのは、明らかである。 As shown in FIG. 23, the chromosomes may be re-sorted so that the generated gene does not become an invalid gene. Of course, it is obvious that there is a method of handling a lethal gene in the lethal gene judgment process.
このようにすれば、2ビット以上の多値用のディザにも本方式は適用可能である。 In this way, this method can also be applied to multi-value dithering of 2 bits or more.
2 遺伝的アルゴリズム処理手段
3 シミュレーション手段
4 評価手段
5 ディザデータ出力手段
100 画像形成装置
113 ディザマトリクス最適化装置、画像処理手段
2 Genetic algorithm processing means 3 Simulation means 4 Evaluation means 5 Dither data output means 100
Claims (10)
前記ディザマトリクスに応じて生成される画像データと出力エンジンの特性データとに基づいてディザ画像出力を求めるシミュレーション手段と、
前記シミュレーション手段で求められた前記ディザ画像出力に対する画質の評価を行う評価手段と、
前記評価手段による評価結果に基づき前記ディザマトリクスの適応度を求め、求めた適応度に基づいて前記ディザマトリクスを記述する遺伝子情報を淘汰し、残った遺伝子情報に対して交配処理と突然変異処理とを行う遺伝的アルゴリズム処理手段と、
前記遺伝的アルゴリズム処理手段により処理された前記遺伝子情報によりディザマトリクスを出力するディザデータ出力手段と、
を備えることを特徴とするディザマトリクス最適化装置。 In a dither matrix optimization device that performs optimization processing of a dither matrix used for gradation expression,
Simulation means for obtaining dither image output based on image data generated according to the dither matrix and output engine characteristic data;
Evaluation means for evaluating image quality for the dither image output obtained by the simulation means;
The fitness of the dither matrix is obtained based on the evaluation result by the evaluation means, the genetic information describing the dither matrix is deduced based on the obtained fitness, and a mating process and a mutation process are performed on the remaining gene information. A genetic algorithm processing means for performing
Dither data output means for outputting a dither matrix according to the genetic information processed by the genetic algorithm processing means;
A dither matrix optimization apparatus comprising:
ことを特徴とする請求項1記載のディザマトリクス最適化装置。 The genetic information describing the dither matrix is information obtained by sequentially converting pixels that have changed from the previous gradation in each gradation of the dither image output onto one gene.
2. The dither matrix optimizing device according to claim 1, wherein:
ことを特徴とする請求項2記載のディザマトリクス最適化装置。 The gene is read from the low gradation side to the high gradation side, and the changed pixel appearing first in the same pixel of the dither matrix is made effective.
The dither matrix optimizing apparatus according to claim 2, wherein:
ことを特徴とする請求項1ないし3のいずれか一記載のディザマトリクス最適化装置。 The mating process of the genetic algorithm processing means performs mating with the position corresponding to the gradation of the dither matrix as the mating position.
The dither matrix optimizing device according to any one of claims 1 to 3, characterized in that:
ことを特徴とする請求項1ないし3のいずれか一記載のディザマトリクス最適化装置。 The mating process of the genetic algorithm processing means performs mating using the position of the pixel of the dither matrix as the mating position.
The dither matrix optimizing device according to any one of claims 1 to 3, characterized in that:
ことを特徴とする請求項1ないし5のいずれか一記載のディザマトリクス最適化装置。 The evaluation means evaluates the image quality for the dithered image output based on a gradation characteristic corresponding to a gamma characteristic;
The dither matrix optimizing device according to any one of claims 1 to 5, wherein
ことを特徴とする請求項1ないし6のいずれか一記載のディザマトリクス最適化装置。 The evaluation means evaluates the image quality for the dithered image output based on the granularity according to the spatial frequency characteristics.
The dither matrix optimizing device according to any one of claims 1 to 6,
ことを特徴とする請求項1ないし7のいずれか一記載のディザマトリクス最適化装置。 The evaluation means evaluates the image quality for the dithered image output based on a perimeter of a halftone dot pattern that is a halftone dot represented by a set of dots in the dithered image output.
The dither matrix optimizing device according to any one of claims 1 to 7, characterized in that:
前記シミュレーション手段で求められた前記ディザ画像出力に対する画質の評価を行う評価手段と、
前記評価手段による評価結果に基づき前記ディザマトリクスの適応度を求め、求めた適応度に基づいて前記ディザマトリクスを記述する遺伝子情報を淘汰し、残った遺伝子情報に対して交配処理と突然変異処理とを行う遺伝的アルゴリズム処理手段と、
前記遺伝的アルゴリズム処理手段により処理された前記遺伝子情報によりディザマトリクスを出力するディザデータ出力手段と、
前記ディザデータ出力手段により出力された前記ディザマトリクスを用いた階調表現を行う画像処理手段と、
前記画像処理手段における階調表現に応じて画像を形成する画像形成手段と、
を備えることを特徴とする画像形成装置。 Simulation means for obtaining dither image output based on image data generated according to the dither matrix and output engine characteristic data;
Evaluation means for evaluating image quality for the dither image output obtained by the simulation means;
The fitness of the dither matrix is obtained based on the evaluation result by the evaluation means, the genetic information describing the dither matrix is deduced based on the obtained fitness, and a mating process and a mutation process are performed on the remaining gene information. A genetic algorithm processing means for performing
Dither data output means for outputting a dither matrix according to the genetic information processed by the genetic algorithm processing means;
Image processing means for performing gradation expression using the dither matrix output by the dither data output means;
Image forming means for forming an image according to gradation expression in the image processing means;
An image forming apparatus comprising:
前記ディザマトリクスに応じて生成される画像データと出力エンジンの特性データとに基づいてディザ画像出力を求めるシミュレーション工程と、
前記シミュレーション工程で求められた前記ディザ画像出力に対する画質の評価を行う評価工程と、
前記評価工程による評価結果に基づき前記ディザマトリクスの適応度を求め、求めた適応度に基づいて前記ディザマトリクスを記述する遺伝子情報を淘汰し、残った遺伝子情報に対して交配処理と突然変異処理とを行う遺伝的アルゴリズム処理工程と、
前記遺伝的アルゴリズム処理工程により処理された前記遺伝子情報によりディザマトリクスを出力するディザデータ出力工程と、
を含むことを特徴とするディザマトリクス最適化方法。
In the dither matrix optimization method for optimizing the dither matrix used for gradation expression,
A simulation step for obtaining a dither image output based on image data generated according to the dither matrix and output engine characteristic data;
An evaluation step for evaluating an image quality for the dither image output obtained in the simulation step;
The fitness of the dither matrix is determined based on the evaluation result of the evaluation step, the genetic information describing the dither matrix is input based on the determined fitness, and the mating process and the mutation process are performed on the remaining gene information. A genetic algorithm processing step for performing
A dither data output step of outputting a dither matrix according to the genetic information processed by the genetic algorithm processing step;
A dither matrix optimization method comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005030997A JP2006217543A (en) | 2005-02-07 | 2005-02-07 | Dither matrix optimizing device, image forming device and dither matrix optimizing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005030997A JP2006217543A (en) | 2005-02-07 | 2005-02-07 | Dither matrix optimizing device, image forming device and dither matrix optimizing method |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2006217543A true JP2006217543A (en) | 2006-08-17 |
Family
ID=36980340
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2005030997A Pending JP2006217543A (en) | 2005-02-07 | 2005-02-07 | Dither matrix optimizing device, image forming device and dither matrix optimizing method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2006217543A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111141232A (en) * | 2019-12-20 | 2020-05-12 | 浙江大学 | High-quality binary stripe generation method based on multi-objective optimization dithering algorithm |
-
2005
- 2005-02-07 JP JP2005030997A patent/JP2006217543A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111141232A (en) * | 2019-12-20 | 2020-05-12 | 浙江大学 | High-quality binary stripe generation method based on multi-objective optimization dithering algorithm |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3071229B2 (en) | Graphic processing unit | |
JP2013236180A (en) | Image processing apparatus, and image processing method and program | |
JPH08130641A (en) | Image forming device | |
JP5939891B2 (en) | Image processing apparatus, image processing system, image processing method, program, and computer-readable storage medium | |
JP2009212933A (en) | Image processing apparatus and method thereof | |
JP2005131961A (en) | Image forming apparatus | |
JP4717605B2 (en) | Dither matrix optimization apparatus, image forming apparatus, and dither matrix optimization method | |
JP2008227770A (en) | Image output method, image output device, and image forming apparatus | |
JP2006217543A (en) | Dither matrix optimizing device, image forming device and dither matrix optimizing method | |
JP6729227B2 (en) | Image processing apparatus, image forming apparatus and program | |
JP4544280B2 (en) | Image processing apparatus, image forming apparatus, and image processing program | |
JP4127309B2 (en) | Image processing apparatus, multicolor image forming apparatus, and image processing program | |
JP2007208639A (en) | Image processing method, image processing device, image recording device and recording medium | |
JP6236971B2 (en) | Image processing apparatus, image forming apparatus, and image processing program | |
JP5678501B2 (en) | Image processing apparatus and image processing method | |
JP4492090B2 (en) | Image forming apparatus and image forming method | |
JP5966295B2 (en) | Image processing apparatus and image forming apparatus | |
JP4457645B2 (en) | Image processing apparatus, image processing method, and program | |
JP2008078803A (en) | Dither matrix optimizing device and image forming apparatus | |
JP2009010705A (en) | Device and method for forming image, and color chart | |
JP2014110588A (en) | Image processing apparatus, image forming apparatus and program | |
JP2014110587A (en) | Image processing apparatus, image forming apparatus and program | |
JP2020195004A (en) | Image forming apparatus and control method for the same, and program | |
JP2006025220A (en) | Image processing apparatus, image processing method, image processing program, and recording medium recorded with the program | |
JP5995555B2 (en) | Image processing apparatus and control method thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20080115 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20090626 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20090630 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20090827 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20091027 |