JP2007188284A - Image processing apparatus, image processing method, image processing program, and recording medium recording the program - Google Patents

Image processing apparatus, image processing method, image processing program, and recording medium recording the program Download PDF

Info

Publication number
JP2007188284A
JP2007188284A JP2006005769A JP2006005769A JP2007188284A JP 2007188284 A JP2007188284 A JP 2007188284A JP 2006005769 A JP2006005769 A JP 2006005769A JP 2006005769 A JP2006005769 A JP 2006005769A JP 2007188284 A JP2007188284 A JP 2007188284A
Authority
JP
Japan
Prior art keywords
pixel
pixel group
center
image
input
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.)
Granted
Application number
JP2006005769A
Other languages
Japanese (ja)
Other versions
JP4742871B2 (en
Inventor
Nobuhiro Karido
信宏 狩戸
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2006005769A priority Critical patent/JP4742871B2/en
Publication of JP2007188284A publication Critical patent/JP2007188284A/en
Application granted granted Critical
Publication of JP4742871B2 publication Critical patent/JP4742871B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processing apparatus capable of suppressing the increase of a granular feeling by executing processing so that each dot is formed on a prescribed pixel position in accordance with an AM screen to be applied, and an image processing method, an image processing program, or a recording medium in which the program is recorded. <P>SOLUTION: A pixel group division part 22a divides an input image into cells on the basis of dot positions corresponding to the AM screen to be used in an image output apparatus 30. A centroid position calculation part 22b calculates a centroid position of a cell from the input gradation value and coordinates of each pixel in the cell. A centroid position determination part 22c determines a centroid position by integer number processing by adding or subtracting a prescribed value to/from the centroid position calculated in the prescribed cell. An arrangement part 22d arranges a center of a gradation transformation matrix on the determined centroid position. A gradation transformation part 22e refers to a gradation transformation table stored in the arranged gradation transformation matrix and converts the input gradation value of each pixel in the cell into an output gradation value. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、入力画像を複数画素から構成される画素群に分割し、分割された各々の画素
群に階調変換マトリックスを適用することで、前記画素群に含まれる各画素の入力階調値
を、2種類以上の階調値を有する出力階調値に階調変換する画像処理技術に関する。
The present invention divides an input image into pixel groups each composed of a plurality of pixels, and applies a gradation conversion matrix to each of the divided pixel groups, whereby an input gradation value of each pixel included in the pixel group is obtained. The present invention relates to an image processing technique for converting a tone into an output tone value having two or more types of tone values.

従来より、プリンタなど印刷エンジンを有する画像出力装置では、入力画像データの階
調値を、画素ごとにハーフトーン処理などの階調変換処理によって2種類以上の所定の出
力階調値に変換し、変換された出力階調値に応じてドットを形成し、形成されるドットか
ら生成される網点(AMスクリーン)画像によって印刷用紙に印刷を行い、印刷物として
出力画像を得ることが行われている。
Conventionally, in an image output apparatus having a print engine such as a printer, the gradation value of input image data is converted into two or more kinds of predetermined output gradation values by gradation conversion processing such as halftone processing for each pixel, Dots are formed according to the converted output gradation values, and printing is performed on printing paper with a halftone dot (AM screen) image generated from the formed dots, and an output image is obtained as a printed matter. .

ハーフトーン処理としては、ドット集中型ディザ法(多値ディザ法)による変換処理が
知られている。多値ディザ法は、所定の大きさのマトリックス内に中央からドットが成長
する成長特性になるように閾値が配分され、各画素の入力階調値との比較により階調変換
処理を行うものである。
As halftone processing, conversion processing by a dot concentration type dither method (multi-value dither method) is known. In the multi-value dither method, threshold values are distributed so that dots grow from the center in a matrix of a predetermined size, and gradation conversion processing is performed by comparison with the input gradation value of each pixel. is there.

しかしながら、入力画像に閾値が配分されたマトリックスを適用した場合、マトリック
ス内で閾値の大きい領域では画素の入力階調値は失われ、逆に閾値の小さい領域では入力
階調値よりも大きい階調値に変換されるため、入力画像と異なる印刷物になることがある
。例えば灰色の線のように中間の大きさを有する入力階調値の場合、閾値との比較によっ
て入力階調値が失われる画素に対応するところで線が切れた印刷物になってしまう。この
ように、多値ディザ法による処理では出力画像について画質面で問題があった。
However, when a matrix in which threshold values are distributed is applied to the input image, the input gradation values of the pixels are lost in areas where the threshold values are large in the matrix, and conversely, gradations which are larger than the input gradation values in areas where the threshold values are small. Since it is converted into a value, it may be a printed matter different from the input image. For example, in the case of an input gradation value having an intermediate size, such as a gray line, a printed product with a line cut off at a position corresponding to a pixel whose input gradation value is lost by comparison with a threshold value. As described above, the processing by the multi-value dither method has a problem in the image quality of the output image.

更に、多値ディザ法による処理では、ドット位置がAMスクリーンに応じて所定間隔で
固定されているため、入力階調値の分布状態を再現するのに最適な位置にドットを形成さ
せることができず、入力画像に忠実でない印刷物になるという問題もある。
Furthermore, in the multi-value dither method, the dot positions are fixed at a predetermined interval according to the AM screen, so that the dots can be formed at the optimum positions for reproducing the distribution state of the input gradation values. In addition, there is a problem that the printed material is not faithful to the input image.

そこで、これらの問題を解決するために、本出願人は、入力画像を複数画素から構成さ
れる画素群(セルとも呼ぶ)に分割し、分割したセル内の各画素の入力階調値から重心位
置を求め、この重心位置に各画素の入力階調値の和に対応するドットを生成させるように
するという内容の先願発明を提案した(以下「AAM(Advanced AMスクリーン法)」
と呼ぶ。特願2004-137326号:本願の出願前の確認時点で未公開。)。
Therefore, in order to solve these problems, the present applicant divides the input image into pixel groups (also referred to as cells) composed of a plurality of pixels, and calculates the centroid from the input gradation value of each pixel in the divided cells. A prior invention has been proposed in which the position is obtained and a dot corresponding to the sum of the input gradation values of each pixel is generated at the position of the center of gravity (hereinafter referred to as “AAM (Advanced AM screen method)”).
Call it. Japanese Patent Application No. 2004-137326: Unpublished at the time of confirmation before filing this application ).

しかしながら、AAM法では、セルの重心位置がセル内のいずれかの画素のほぼ中央に
位置することを前提として網点(つまりドット)の形成を行っていた。従って、画素の境
界に重心が位置する場合でも、画素のほぼ中央位置にドットを形成するように処理される
However, in the AAM method, a halftone dot (that is, a dot) is formed on the assumption that the center of gravity of the cell is located approximately at the center of any pixel in the cell. Therefore, even when the center of gravity is located at the boundary of the pixel, processing is performed so as to form a dot at the approximate center position of the pixel.

ところで、画像出力装置において使用するAMスクリーンが、もともと画素の境界に網
点の中心が位置する網点配置であるものが利用されることがある。このような場合、AA
M法では、前述したようにセルの重心位置がセル内のいずれかの画素のほぼ中央に位置す
るようにドットの形成を行うため、重心位置のわずかなずれによってドットの形成中心と
なるべき画素が所定の画素にならずばらつくことになり、これに起因して粒状感が増加し
てしまうという課題がある。
By the way, the AM screen used in the image output apparatus may be one having a halftone dot arrangement in which the center of a halftone dot is originally located at a pixel boundary. In such a case, AA
In the M method, as described above, dots are formed so that the center of gravity of the cell is located at the approximate center of any pixel in the cell. However, there is a problem that the graininess is increased due to this variation.

本発明は、このような課題を解決し、利用されるAMスクリーンに応じてドットが所定
の画素位置に形成されるように処理することによって粒状感の増加を抑制する画像処理装
置、画像処理方法、画像処理プログラム、またはそのプログラムを記録した記録媒体を提
供することを目的とする。
The present invention solves such problems, and an image processing apparatus and an image processing method for suppressing an increase in graininess by processing so that dots are formed at predetermined pixel positions in accordance with an AM screen to be used. An object of the present invention is to provide an image processing program or a recording medium on which the program is recorded.

上記目的を達成する本発明の画像処理装置は、入力画像を複数画素から構成される画素
群に分割し、分割された各々の画素群に階調変換マトリックスを適用することで、前記画
素群に含まれる各画素の入力階調値を、出力画像となる網点画像を構成するドットに対応
する2種類以上の階調値を有する出力階調値に階調変換する画像処理装置であって、前記
入力画像の分割に際し、分割された前記画素群の形状が、前記網点画像の網点位置に基づ
いて、少なくとも2種類の異なる分割形状になるよう分割する画素群分割部を備えること
を特徴とする。
An image processing apparatus of the present invention that achieves the above object divides an input image into a pixel group composed of a plurality of pixels, and applies a gradation conversion matrix to each of the divided pixel groups, thereby providing the pixel group with An image processing apparatus that performs tone conversion of an input tone value of each pixel included into an output tone value having two or more types of tone values corresponding to dots constituting a halftone image that is an output image, A pixel group dividing unit that divides the input image so that the shape of the divided pixel group becomes at least two different divided shapes based on the halftone dot positions of the halftone image. And

かかる構成の画像処理装置によれば、入力画像を複数のセルに分割する際、網点位置に
基づいて少なくとも2種類以上の分割形状に分割を行う。従って、例えば網点位置に応じ
てセルを構成する画素数を増減したり、セルの形状を変更したりできるため、ドットの形
成位置が所定の画素位置に近づくように好ましいセル形状に分割できる。従って粒状感の
増加を抑制することが可能となる。
According to the image processing apparatus having such a configuration, when the input image is divided into a plurality of cells, the input image is divided into at least two types of divided shapes based on the halftone dot positions. Therefore, for example, the number of pixels constituting the cell can be increased or decreased according to the halftone dot position, or the cell shape can be changed, so that the dot formation position can be divided into a preferable cell shape so as to approach a predetermined pixel position. Therefore, an increase in graininess can be suppressed.

さらに、本発明の画像処理装置は、前記画素群に含まれる前記各画素の入力階調値を用
いて当該画素群の重心位置を算出する重心位置算出部を備え、前記画素群分割部は、前記
画素群に含まれる各画素が同じ入力階調値であったとき、算出された前記重心位置が、前
記網点位置になるように分割することを特徴とする。
Furthermore, the image processing apparatus of the present invention includes a centroid position calculation unit that calculates a centroid position of the pixel group using an input gradation value of each pixel included in the pixel group, and the pixel group division unit includes: When each pixel included in the pixel group has the same input gradation value, the calculated gravity center position is divided so as to be the halftone dot position.

このような構成によれば、セルの重心位置つまり所定の画素位置が網点位置と一致する
確率が高くなり、形成されるドット間距離が保たれた網点画像を出力することが可能とな
る。従って、ドット形成位置がずれることによって発生する粒状感の増加を抑制できる。
According to such a configuration, there is a high probability that the center of gravity position of the cell, that is, the predetermined pixel position matches the halftone dot position, and it becomes possible to output a halftone image in which the formed inter-dot distance is maintained. . Therefore, it is possible to suppress an increase in graininess that occurs when the dot formation position shifts.

ここで、前記画素群分割部は、前記画素群に含まれる各画素が同じ入力階調値であった
とき、算出された前記重心位置が画素中心になる第1の画素群と、算出された前記重心位
置が画素の境界になる第2の画素群とに前記入力画像を分割することとしてもよい。
Here, the pixel group dividing unit calculates the first pixel group in which the calculated barycentric position is the pixel center when the pixels included in the pixel group have the same input gradation value. The input image may be divided into a second pixel group in which the barycentric position is a pixel boundary.

画像出力装置が利用するAMスクリーンによっては、網点位置が画素のほぼ中心に位置
する場合だけでなく、画素と画素とのほぼ境界に位置する場合が存在する。このようなA
Mスクリーンに対して、網点位置に応じてセルの分割を行うことによって、所定の画素位
置にドットが形成される確率を高めることが可能となる。
Depending on the AM screen used by the image output apparatus, there are cases where the halftone dot position is not only located approximately at the center of the pixel but also located approximately at the boundary between the pixels. A like this
By dividing the cells according to the halftone dot positions on the M screen, it is possible to increase the probability that dots are formed at predetermined pixel positions.

さらに、前記画素群分割部は、前記第1の画素群に含まれる画素数と前記第2の画素群
に含まれる画素数とが、同じになるように前記入力画像を分割することとしてもよい。
Furthermore, the pixel group dividing unit may divide the input image so that the number of pixels included in the first pixel group and the number of pixels included in the second pixel group are the same. .

こうすれば、入力画像の入力階調値について、分割されたセル内の入力階調値の合計が
セル間で大きく異なることなく階調変換できるので、形成されるドットの大きさが均一化
され、粒状感の増加を抑制することができる。
In this way, since the input tone values of the input image can be tone-converted without the sum of the input tone values in the divided cells differing greatly from cell to cell, the size of the dots formed is made uniform. , Increase in graininess can be suppressed.

また、前記画素群分割部は、前記第1の画素群の分割形状と前記第2の画素群の分割形
状とが、少なくとも左右対称または上下対称になるように前記入力画像を分割することと
してもよい。
The pixel group dividing unit may divide the input image so that the divided shape of the first pixel group and the divided shape of the second pixel group are at least left-right symmetric or vertically symmetric. Good.

こうすれば、階調変換に際して適用する階調変換マトリックスについて、一つの階調変
換マトリックスを用意し、この一つの階調変換マトリックスを裏返すことで、第1のセル
と第2のセルに対して共通に適用することが可能となる。従って、記憶容量を軽くするこ
とができる。
In this way, one gradation conversion matrix is prepared for the gradation conversion matrix to be applied at the time of gradation conversion, and this one gradation conversion matrix is turned over so that the first cell and the second cell are reversed. It becomes possible to apply in common. Accordingly, the storage capacity can be reduced.

さらに、前記重心位置算出部は、前記各画素の入力階調値から算出した前記画素群の重
心位置が画素の中心と一致しない場合、当該算出した重心位置を所定の整数化処理方法を
用いて整数化した位置を前記画素群の重心位置と決定する重心位置決定部を更に備えるこ
ととしてもよい。
Further, when the barycentric position of the pixel group calculated from the input gradation value of each pixel does not coincide with the center of the pixel, the barycentric position calculating unit uses the predetermined integer processing method to calculate the barycentric position. A center-of-gravity position determining unit that determines an integerized position as the center-of-gravity position of the pixel group may be further provided.

こうすれば、重心位置を所定の画素の中心位置に一致させることができるため、所定の
画素を中心としてドットを形成することが可能となる。その結果、ドットの形成位置のず
れが少ない網点画像が形成されることから、ドットの位置ずれに起因した粒状感の増加を
抑制できる。
In this way, the center of gravity position can be made to coincide with the center position of the predetermined pixel, so that dots can be formed around the predetermined pixel. As a result, since a halftone dot image with little shift in the dot formation position is formed, an increase in graininess due to the dot position shift can be suppressed.

さらに、前記重心位置決定部は、用いられる前記所定の整数化処理方法に応じ、前記第
1の画素群又は前記第2の画素群のいずれか一方の画素群について、一画素幅の半分の長
さに相当する値を前記算出された画素群の重心位置に加算または減算することとしてもよ
い。
Furthermore, the center-of-gravity position determination unit has a half length of one pixel width for either one of the first pixel group or the second pixel group according to the predetermined integerization processing method used. A value corresponding to this may be added to or subtracted from the calculated barycentric position of the pixel group.

こうすれば、算出された重心位置を画素の中心に一致させるための整数化処理の際、第
1の画素群および第2の画素群の両方の画素群について、ドットの形成位置の中心を所定
の画素の中心位置とすることができる。
In this way, in the integerization process for matching the calculated barycentric position with the center of the pixel, the center of the dot formation position is predetermined for both the first pixel group and the second pixel group. It can be set as the center position of the pixel.

さらに、本発明の画像処理装置は、前記画素群の重心位置に前記階調変換マトリックス
の中心を配置する配置部と、前記配置された前記階調変換マトリックスに格納された所定
の階調変換テーブルを参照して、前記画素群の各画素の入力階調値を出力階調値に階調変
換する階調変換部と、をさらに備えることとしてもよい。
Furthermore, the image processing apparatus of the present invention includes an arrangement unit that arranges the center of the gradation conversion matrix at the center of gravity of the pixel group, and a predetermined gradation conversion table stored in the arranged gradation conversion matrix. Referring to FIG. 5, a gradation conversion unit that performs gradation conversion of an input gradation value of each pixel of the pixel group into an output gradation value may be further provided.

こうすれば、セルの重心位置に対応する所定の画素位置へ、階調変換マトリックスの中
心を移動配置し、セル内の各画素について所定の階調変換テーブルを参照して階調変換す
るので、所定の画素を中心にしてドットを形成することが可能となり、ドットの位置ずれ
による粒状感の増加を抑制しつつ、入力画像に忠実な出力画像を得ることができる。
By doing this, the center of the gradation conversion matrix is moved to a predetermined pixel position corresponding to the center of gravity position of the cell, and gradation conversion is performed with reference to a predetermined gradation conversion table for each pixel in the cell. Dots can be formed centering on a predetermined pixel, and an output image faithful to the input image can be obtained while suppressing an increase in graininess due to the positional deviation of the dots.

また、上記目的を達成する本発明の画像処理方法は、入力画像を複数画素から構成され
る画素群に分割し、分割された各々の画素群に階調変換マトリックスを適用することで、
前記画素群に含まれる各画素の入力階調値を、出力画像となる網点画像を構成するドット
に対応する2種類以上の階調値を有する出力階調値に階調変換する画像処理方法であって
、前記画素群に含まれる前記各画素の入力階調値を用いて当該画素群の重心位置を算出す
る重心位置算出工程と、前記画素群に含まれる各画素が同じ入力階調値であったとき、算
出された前記重心位置が画素中心になる第1の画素群と、算出された前記重心位置が画素
の境界になる第2の画素群とに分割する画素群分割工程と、前記各画素の入力階調値から
算出した前記画素群の重心位置が画素の中心と一致しない場合、当該算出した重心位置を
所定の整数化処理方法を用いて整数値化した位置を前記画素群の重心位置と決定する重心
位置決定工程とを備え、前記重心位置決定工程は、用いられる前記所定の整数化処理方法
に応じ、前記第1の画素群又は前記第2の画素群のいずれか一方の画素群について、一画
素幅の半分の長さに相当する値を前記算出された画素群の重心位置に加算または減算する
ことを特徴とする。
In addition, the image processing method of the present invention that achieves the above object divides an input image into pixel groups composed of a plurality of pixels, and applies a gradation conversion matrix to each of the divided pixel groups.
An image processing method for gradation-converting an input gradation value of each pixel included in the pixel group into an output gradation value having two or more kinds of gradation values corresponding to dots constituting a halftone image serving as an output image The center-of-gravity position calculating step of calculating the center-of-gravity position of the pixel group using the input gradation value of each pixel included in the pixel group, and the same input gradation value for each pixel included in the pixel group A pixel group dividing step of dividing into a first pixel group in which the calculated centroid position is a pixel center and a second pixel group in which the calculated centroid position is a pixel boundary; When the barycentric position of the pixel group calculated from the input gradation value of each pixel does not coincide with the center of the pixel, a position obtained by converting the calculated barycentric position into an integer value using a predetermined integer processing method is used as the pixel group. A center of gravity position and a center of gravity position determining step for determining, The center position determining step corresponds to half the length of one pixel width for either one of the first pixel group or the second pixel group, depending on the predetermined integer processing method used. A value to be added is added to or subtracted from the calculated barycentric position of the pixel group.

また、本発明はコンピュータプログラムまたはこのプログラムを記録した記録媒体とし
てもよい。すなわち、入力画像を複数画素から構成される画素群に分割し、分割された各
々の画素群に階調変換マトリックスを適用することで、前記画素群に含まれる各画素の入
力階調値を、出力画像となる網点画像を構成するドットに対応する2種類以上の階調値を
有する出力階調値に階調変換する画像処理プログラムであって、前記画素群に含まれる前
記各画素の入力階調値を用いて当該画素群の重心位置を算出する重心位置算出機能と、前
記画素群に含まれる各画素が同じ入力階調値であったとき、算出された前記重心位置が画
素中心になる第1の画素群と、算出された前記重心位置が画素の境界になる第2の画素群
とに分割する画素群分割機能と、前記各画素の入力階調値から算出した前記画素群の重心
位置が画素の中心と一致しない場合、当該算出した重心位置を所定の整数化処理方法を用
いて整数値化した位置を前記画素群の重心位置と決定する重心位置決定機能とをコンピュ
ータに実現させ、前記重心位置決定機能は、用いられる前記所定の整数化処理方法に応じ
、前記第1の画素群又は前記第2の画素群のいずれか一方の画素群について、一画素幅の
半分の長さに相当する値を前記算出された画素群の重心位置に加算または減算することを
特徴とする。
Further, the present invention may be a computer program or a recording medium on which this program is recorded. That is, by dividing the input image into pixel groups composed of a plurality of pixels and applying a gradation conversion matrix to each of the divided pixel groups, the input gradation value of each pixel included in the pixel group is An image processing program for performing gradation conversion into an output gradation value having two or more kinds of gradation values corresponding to dots constituting a halftone dot image serving as an output image, the input of each pixel included in the pixel group The center-of-gravity position calculation function for calculating the center-of-gravity position of the pixel group using the gradation value and the calculated center-of-gravity position at the pixel center when each pixel included in the pixel group has the same input gradation value A pixel group dividing function for dividing the first pixel group into a second pixel group in which the calculated barycentric position is a pixel boundary, and the pixel group calculated from the input gradation value of each pixel If the center of gravity does not coincide with the center of the pixel, The computer realizes a centroid position determination function for determining the position obtained by converting the calculated centroid position into an integer value using a predetermined integer processing method and the centroid position of the pixel group, and the centroid position determination function is used In accordance with a predetermined integerization processing method, for the pixel group of either the first pixel group or the second pixel group, the calculated pixel group has a value corresponding to half the length of one pixel width. It is characterized by being added to or subtracted from the barycentric position.

また、このプログラムを記録した記録媒体としては、フレキシブルディスクやDVD−
ROM、CD−ROM、ICカード、パンチカードなど、コンピュータが読み取り可能な
種々の媒体を利用することができる。
As a recording medium on which this program is recorded, a flexible disk or a DVD-
Various media that can be read by a computer, such as a ROM, a CD-ROM, an IC card, and a punch card, can be used.

次に、本発明を実施するための実施形態を説明する。図1は、本発明が適用される画像
処理装置を含むシステム全体の一例を示す構成図である。全体として画像入力装置10と
、画像処理装置20と、画像出力装置30とから構成される。これらの装置は基本的にコ
ンピュータまたはコンピュータによって制御される装置であり、所定のオペレーティング
システムのもとで所定のプログラムが実行されることによって動作する。
Next, an embodiment for carrying out the present invention will be described. FIG. 1 is a configuration diagram showing an example of an entire system including an image processing apparatus to which the present invention is applied. The image input device 10, the image processing device 20, and the image output device 30 are configured as a whole. These devices are basically computers or devices controlled by a computer, and operate by executing a predetermined program under a predetermined operating system.

画像入力装置10は、アプリケーション部11とラスタライズ部12とから構成される
。アプリケーション部11は、文字データ、図形データ、ビットマップデータ等の印刷対
象となるデータを生成する。例えば、画像入力装置10でワードプロセッサや図形ツール
などのアプリケーションプログラムを使用して、図示しないキーボード等の操作により文
字データや図形データなどを生成する。そして生成したこれらのデータを、ラスタライズ
部12へ出力する。もとより、画像入力装置10は、図示しないスキャナやデジタルスチ
ルカメラなどの画像データを取得する機器から出力されるデータを受け付け、このデータ
をアプリケーション部11が生成するデータとしてラスタライズ部12へ出力するものと
しても差し支えない。
The image input device 10 includes an application unit 11 and a rasterizing unit 12. The application unit 11 generates data to be printed such as character data, graphic data, and bitmap data. For example, the image input device 10 uses an application program such as a word processor or a graphic tool to generate character data, graphic data, and the like by operating a keyboard (not shown). The generated data is output to the rasterizing unit 12. Of course, the image input apparatus 10 receives data output from a device that acquires image data such as a scanner or a digital still camera (not shown), and outputs this data to the rasterization unit 12 as data generated by the application unit 11. There is no problem.

ラスタライズ部12は、アプリケーション部11から出力された印刷対象のデータを画
素ごとに複数色の画像データに変換して出力する。本実施形態では、R(レッド)、G(
グリーン)、B(ブルー)の色毎で、画素ごとに8ビット(計24ビット)の多階調値で
表された画像データを出力する。したがって、出力される画像データは、画素ごとに0か
ら255までの256種類の階調値を有することになる。ラスタライズ部12における画
像データの生成処理は、実際には画像入力装置10に実装された図示しないドライバによ
って行われる。こうしてラスタライズ部12から出力される画像データは、画像処理装置
20に出力される。
The rasterizing unit 12 converts the print target data output from the application unit 11 into image data of a plurality of colors for each pixel and outputs the image data. In this embodiment, R (red), G (
Image data represented by a multi-gradation value of 8 bits (24 bits in total) for each pixel is output for each color of green and blue (blue). Therefore, the output image data has 256 kinds of gradation values from 0 to 255 for each pixel. The image data generation processing in the rasterizing unit 12 is actually performed by a driver (not shown) installed in the image input device 10. Thus, the image data output from the rasterizing unit 12 is output to the image processing apparatus 20.

画像処理装置20は、基本的にコンピュータであり、色変換部21とハーフトーン処理
部22とから構成される。画像処理装置20では、画像入力装置10から出力された画像
データに対して、色変換処理とハーフトーン処理を行い、所定の階調データDRを画像出
力装置30へ出力する処理が行われる。
The image processing apparatus 20 is basically a computer and includes a color conversion unit 21 and a halftone processing unit 22. In the image processing device 20, color conversion processing and halftone processing are performed on the image data output from the image input device 10, and processing for outputting predetermined gradation data DR to the image output device 30 is performed.

色変換部21は、画像入力装置10から出力される256種類の階調値を有するRGB
各8ビット(計24ビット)の画像データを受け取り、画像出力装置30が出力する色成
分に合わせて色変換処理を行う。本実施形態では、RGBからCMYKの画像データDT
に色変換処理を行うものとする。ここで、Cはシアン、Mはマゼンダ、Yはイエロー、K
はブラックを示す。もとよりモノクロ画像データの場合は、このような色変換処理は行わ
なくてもよい。
The color conversion unit 21 includes RGB having 256 types of gradation values output from the image input device 10.
Each 8-bit (24 bits in total) image data is received and color conversion processing is performed in accordance with the color components output by the image output device 30. In the present embodiment, RGB to CMYK image data DT
It is assumed that the color conversion process is performed. Here, C is cyan, M is magenta, Y is yellow, K
Indicates black. Of course, in the case of monochrome image data, such color conversion processing need not be performed.

ハーフトーン処理部22は、色変換部21から出力されるCMYKの画像データDTを
入力画像として、画素ごとにこの入力画像を量子化データ(2値や128値など、2種類
以上の多値の階調値)に変換し、変換された量子化データである所定の階調データDRを
、画素ごとの出力階調値として画像出力装置30に出力する。ハーフトーン処理部22が
、本発明の目的を達成するための種々の画像処理を行うことになる。具体的な画像処理内
容は後述する。
The halftone processing unit 22 uses the CMYK image data DT output from the color conversion unit 21 as an input image, and converts this input image into quantized data (two or more kinds of multi-values such as binary and 128 values) for each pixel. The predetermined gradation data DR, which is the converted quantized data, is output to the image output device 30 as an output gradation value for each pixel. The halftone processing unit 22 performs various image processing for achieving the object of the present invention. Specific image processing contents will be described later.

画像出力装置30は、パルス幅変調部31と印刷エンジン35とから構成され、印刷エ
ンジン35は、レーザドライバ36とレーザダイオード(LD)37とから構成される。
画像出力装置30では、画像処理装置20から出力された各画素の出力階調値に従って印
刷エンジン35が駆動され、この印刷エンジン35によって印刷用紙等の記録媒体に各色
成分のドットが、使用するAMスクリーンに応じた所定の網点位置に基づいて形成され、
さらに形成されたドットによって網点画像が生成されることによって、印刷物として画像
が出力されるのである。
The image output apparatus 30 includes a pulse width modulation unit 31 and a print engine 35. The print engine 35 includes a laser driver 36 and a laser diode (LD) 37.
In the image output device 30, the print engine 35 is driven in accordance with the output gradation value of each pixel output from the image processing device 20, and the dot used for each color component dot is used on a recording medium such as print paper by the print engine 35. It is formed based on a predetermined halftone dot position according to the screen,
Further, a halftone image is generated by the formed dots, and the image is output as a printed matter.

パルス幅変調部31は、ハーフトーン処理部22から出力された出力階調値を入力し、
この出力階調値から所定のパルス数とパルス幅をもったレーザ駆動パルスを駆動データと
して生成する。そして、この駆動データをレーザドライバ36に出力する。
The pulse width modulation unit 31 inputs the output gradation value output from the halftone processing unit 22,
From this output gradation value, a laser driving pulse having a predetermined number of pulses and a pulse width is generated as driving data. Then, this drive data is output to the laser driver 36.

レーザドライバ36は、入力された駆動データから、レーザダイオード37を駆動する
制御データを生成し、レーザダイオード37に出力する。レーザダイオード37は、レー
ザドライバ36から出力された制御データに基づいて駆動され、さらに図示しない感光ド
ラムや転写ベルトが駆動されて、最終的に印刷用紙等の記録媒体に、パルス幅とパルス数
に応じて所定の色成分のドットが所定の位置に所定数出力される。こうして、記録媒体に
各色のドットが形成され画像入力装置10にて生成された印刷対象となるデータが印刷さ
れることになる。
The laser driver 36 generates control data for driving the laser diode 37 from the input drive data, and outputs the control data to the laser diode 37. The laser diode 37 is driven based on the control data output from the laser driver 36, and further, a photosensitive drum and a transfer belt (not shown) are driven, and finally a recording medium such as a printing paper has a pulse width and a pulse number. In response, a predetermined number of dots of a predetermined color component are output at a predetermined position. In this way, dots of each color are formed on the recording medium, and the data to be printed generated by the image input apparatus 10 is printed.

次に、図2を参照して、本発明が適用される画像処理を行うハーフトーン処理部22を
含む画像処理装置20の具体的なハード構成について説明する。ここで、図1の画像処理
装置20を構成する色変換部21、ハーフトーン処理部22は、図2におけるCPU26
、RAM27およびROM28に対応する。
Next, a specific hardware configuration of the image processing apparatus 20 including the halftone processing unit 22 that performs image processing to which the present invention is applied will be described with reference to FIG. Here, the color conversion unit 21 and the halftone processing unit 22 constituting the image processing apparatus 20 of FIG.
, Corresponding to RAM 27 and ROM 28.

画像処理装置20は、入出力インターフェイス(I/F)25、CPU26、RAM2
7、ROM28、ハードディスク29などから構成され、それらはバスを介して互いに接
続されている。入出力I/F25は、画像入力装置10と画像処理装置20とのインター
フェイス、及び画像処理装置20と画像出力装置30のインターフェイスの役割を果たす
。入出力I/F25には、所定の伝送方式により伝送された画像入力装置10からのRG
Bの画像データが入力され、画像処理装置20で処理できるデータに変換される。RGB
の画像データは、一旦RAM27に格納される。そして、入出力I/F25から、画素ご
との出力階調値を画像出力装置30に所定の伝送方式を用いて送出する。
The image processing apparatus 20 includes an input / output interface (I / F) 25, a CPU 26, and a RAM 2.
7, ROM 28, hard disk 29, etc., which are connected to each other via a bus. The input / output I / F 25 serves as an interface between the image input apparatus 10 and the image processing apparatus 20 and an interface between the image processing apparatus 20 and the image output apparatus 30. The input / output I / F 25 has an RG from the image input device 10 transmitted by a predetermined transmission method.
B image data is input and converted into data that can be processed by the image processing apparatus 20. RGB
Is temporarily stored in the RAM 27. Then, the output gradation value for each pixel is sent from the input / output I / F 25 to the image output device 30 using a predetermined transmission method.

CPU26は、バスを介してハードディスク29またはROM28に格納されたプログ
ラムを読み出し、この読み出したプログラムを所定のオペレーティングシステムのもとで
実行することによって、画像処理装置20として機能し、所定の処理を実行する。特に、
請求項に記載した画素群分割部22a、重心位置算出部22b、重心位置決定部22c、
配置部22d、階調変換部22eとして機能する。
The CPU 26 reads out a program stored in the hard disk 29 or the ROM 28 via the bus and executes the read program under a predetermined operating system, thereby functioning as the image processing device 20 and executing a predetermined process. To do. In particular,
A pixel group dividing unit 22a, a centroid position calculating unit 22b, a centroid position determining unit 22c,
It functions as an arrangement unit 22d and a gradation conversion unit 22e.

画素群分割部22aは、画像出力装置30において利用するAMスクリーンに応じた網
点位置に基づいて、入力画像をセルに分割する。重心位置算出部22bは、セル内の各画
素の入力階調値と座標からセルの重心位置を算出する。重心位置決定部22cは、所定の
セルに対して算出された重心位置に所定値を加算若しくは減算した後、整数化処理を行っ
て重心位置を決定する。配置部22dは、決定された重心位置に階調変換マトリックスの
中心を配置する。階調変換部22eは、配置された階調変換マトリックスに格納された階
調変換テーブルを参照してセルの各画素について入力階調値を出力階調値に階調変換する
。このように、各部は上述したハーフトーン処理部22が行う処理を司り、具体的には後
述する図6および図7のフローチャートに示した処理を実行する。
The pixel group dividing unit 22a divides the input image into cells based on the halftone dot position corresponding to the AM screen used in the image output device 30. The center-of-gravity position calculation unit 22b calculates the center-of-gravity position of the cell from the input gradation value and coordinates of each pixel in the cell. The center-of-gravity position determination unit 22c adds or subtracts a predetermined value to the center-of-gravity position calculated for a predetermined cell, and then performs integer processing to determine the center-of-gravity position. The placement unit 22d places the center of the gradation conversion matrix at the determined barycentric position. The gradation converting unit 22e refers to the gradation conversion table stored in the arranged gradation conversion matrix and converts the input gradation value to the output gradation value for each pixel of the cell. In this way, each unit manages the processing performed by the above-described halftone processing unit 22, and specifically executes the processing shown in the flowcharts of FIGS. 6 and 7 described later.

これらの処理を記録したプログラムは、予めハードディスク29やROM28に格納さ
れていることとしてもよいし、例えばDVD−ROMやCD−ROMなどのコンピュータ
が読み取り可能な記録媒体によって外部から供給され、図示しないプログラム読み取り手
段を介してハードディスク29に記憶することによって格納されるものとしてもよい。も
とより、インターネットなどのネットワーク手段を介して、プログラムを供給するサーバ
ー等にアクセスし、データをダウンロードすることによってハードディスク29やRAM
27に格納されるものとしてもよい。
The program in which these processes are recorded may be stored in advance in the hard disk 29 or the ROM 28. For example, the program is supplied from the outside by a computer-readable recording medium such as a DVD-ROM or a CD-ROM, and is not illustrated. The program may be stored by being stored in the hard disk 29 via the program reading unit. Of course, the hard disk 29 or RAM is accessed by accessing a server or the like that supplies a program via a network means such as the Internet and downloading data.
27 may be stored.

以上説明したように、本実施形態では、色変換部21が出力するCMYKの画像データ
DTで構成される入力画像は、各色8ビットずつの多階調値で表されたデータとなってお
り、各色「0」から「255」まで256種類の階調値を有するものとする。また、ハー
フトーン処理部22にて、各色成分について出力するドットの大きさを制御する量子化処
理を行うものとして説明する。画像出力装置30は、前述したように、階調変換された所
定の階調データ、つまり画素ごとの出力階調値に対応してパルス幅とパルス数を生成し、
各色成分のドットの出力を制御して印刷を行うのである。
As described above, in this embodiment, the input image composed of the CMYK image data DT output from the color conversion unit 21 is data represented by multi-gradation values of 8 bits for each color, Assume that each color has “0” to “255” and 256 types of gradation values. In the following description, it is assumed that the halftone processing unit 22 performs a quantization process for controlling the size of a dot to be output for each color component. As described above, the image output device 30 generates the pulse width and the number of pulses corresponding to the gradation-converted predetermined gradation data, that is, the output gradation value for each pixel,
Printing is performed by controlling the output of dots of each color component.

次に、ハーフトーン処理部22が行う階調変換処理について、その概要を前もって図3
から図5を用いて説明する。本発明の画像処理について、後述する図6および図7に示し
た処理フローチャートの説明に対する理解を容易にするために行うものである。
Next, the outline of the tone conversion processing performed by the halftone processing unit 22 is shown in FIG.
Will be described with reference to FIG. The image processing of the present invention is performed in order to facilitate understanding of the processing flowcharts shown in FIGS. 6 and 7 to be described later.

図3は、入力画像が、正方形画素がマトリックス状に配列され、横(X)方向9画素、
縦(Y)方向8画素からなり、各画素はその中心位置がX,Y座標で表される画像である
としたとき、この入力画像100の各画素をセルに分割する様子を示す説明図である。図
3に示したように、入力画像100に対して、利用するAMスクリーンに対応する網点位
置AMT(図中、黒丸)が規則的に設定され、X,Y座標が(1,1)や(5,3)など
に位置する点など合計12点の網点位置AMTが、画素の中心と一致するように設定され
た状態を示している。そしてこの網点位置AMTを中心に入力画像100をセルに分割(
図中、太線)する。
FIG. 3 shows an input image in which square pixels are arranged in a matrix and 9 pixels in the horizontal (X) direction,
It is an explanatory diagram showing a state in which each pixel of the input image 100 is divided into cells, assuming that each pixel is an image whose center position is represented by X and Y coordinates. is there. As shown in FIG. 3, halftone dot positions AMT (black circles in the figure) corresponding to the AM screen to be used are regularly set for the input image 100, and the X, Y coordinates are (1, 1) or A total of 12 halftone dot positions AMT, such as points located at (5, 3), etc., are set to coincide with the center of the pixel. The input image 100 is divided into cells around this halftone dot position AMT (
In the figure).

ここでは、網点位置を中心に点対称になるセル形状で、全て同じ形のセル形状になるよ
うに分割するものとする。本発明の目的となるセルの分割形状が異なる場合の処理につい
て、後述する処理内容の理解を容易にするためである。
Here, it is assumed that the cell shape is symmetrical with respect to the halftone dot position, and the cell shape is divided so as to be all the same shape. This is for facilitating understanding of processing contents to be described later with respect to the processing when the divided shapes of the cells, which are the object of the present invention, are different.

セルの分割はラスタ順に行われ、図3に示したように、順番にセルC(1)からセルC
(12)までの12個のセルC(N)(N=1〜12)に分割される。ちなみに、セルC
(12)に含まれる画素は、X,Y座標(7,6)、(8,6)、(6,7)、(7,7
)、(8,7)、(6,8)、(7,8)の合計7画素となる。
Cell division is performed in raster order, and as shown in FIG. 3, cells C (1) to C
It is divided into 12 cells C (N) (N = 1 to 12) up to (12). By the way, cell C
The pixels included in (12) are the X and Y coordinates (7, 6), (8, 6), (6, 7), (7, 7
), (8, 7), (6, 8), (7, 8).

次に、分割された各セルC(N)に含まれる画素の入力階調値を階調変換する際に適用
する階調変換マトリックス200の例を図4(a)に示す。また、適用する図4(a)の
階調変換マトリックス200には、セル内の各画素に対応する位置に、階調変換に際して
参照する階調変換テーブルのテーブル番号が格納され、それぞれのテーブル番号から各画
素の入力階調値に対応する出力階調値を得る。その階調変換マトリックス200内に格納
された階調変換テーブルKHTの例を図4(b)に示す。各画素の入力階調値は、対応す
る階調変換テーブルのテーブル番号を参照して、それぞれの出力階調値に階調変換される
のである。
Next, FIG. 4A shows an example of a gradation conversion matrix 200 applied when gradation conversion is performed on the input gradation values of the pixels included in each divided cell C (N). In addition, in the applied gradation conversion matrix 200 of FIG. 4A, the table number of the gradation conversion table to be referred to at the time of gradation conversion is stored at the position corresponding to each pixel in the cell. To obtain an output gradation value corresponding to the input gradation value of each pixel. An example of the gradation conversion table KHT stored in the gradation conversion matrix 200 is shown in FIG. The input tone value of each pixel is tone-converted to each output tone value with reference to the table number of the corresponding tone conversion table.

階調変換マトリックス200が適用されて階調変換の対象となる変換対象画素は、図3
において網掛けで示した画素になる。従って、入力画像100のうち網掛けした画素以外
の画素は、本実施形態では階調変換処理を行わない非変換対象画素として扱うものとする
。この場合、非変換対象画素の入力階調値を、階調変換に先んじて隣接する画素に分散す
るようにしておいてもよい。
The conversion target pixels to which the gradation conversion matrix 200 is applied and are subjected to gradation conversion are shown in FIG.
The pixels indicated by shading in FIG. Accordingly, pixels other than the shaded pixels in the input image 100 are treated as non-conversion target pixels that are not subjected to gradation conversion processing in the present embodiment. In this case, the input gradation value of the non-conversion target pixel may be distributed to adjacent pixels prior to gradation conversion.

格納された階調変換テーブルKHTは、網点位置AMTを階調変換マトリックス200
の中心位置とし、この階調変換マトリックス中心位置HMCにドットを形成しやすいよう
にテーブル番号が設定されている。つまり、網点位置AMTにドットが形成されやすくし
ているのである。
The stored gradation conversion table KHT converts the halftone dot position AMT into the gradation conversion matrix 200.
The table number is set so that dots can be easily formed at the tone conversion matrix center position HMC. That is, dots are easily formed at the halftone dot position AMT.

ここで、テーブル番号「3」が格納された位置に対応する画素は、図4(a)中破線で
示したようにその半分がセルに含まれる状態で分割されている。従って、本実施形態では
、このような画素に階調変換マトリックス200を適用する場合、画素の入力階調値を対
象として階調変換を行い、それにより得られた値の半分の階調値を階調変換対象画素の出
力階調値とし、階調変換が行われるごとに加算するものとする。また、入力階調値の半分
の階調値分を対象にして階調変換処理を行うものとしてもよい。もとより、半分とせず、
分割位置に応じて所定の割合に設定するものとしてもよい。
Here, the pixel corresponding to the position where the table number “3” is stored is divided such that half of the pixel is included in the cell, as indicated by the broken line in FIG. Therefore, in this embodiment, when the gradation conversion matrix 200 is applied to such a pixel, gradation conversion is performed on the input gradation value of the pixel, and a gradation value that is half of the obtained value is obtained. It is assumed that the output gradation value of the gradation conversion target pixel is added every time gradation conversion is performed. Further, the gradation conversion process may be performed for the gradation value half of the input gradation value. Of course, not half,
A predetermined ratio may be set according to the division position.

次に、セルの各画素について行われる階調変換処理の様子を図5を用いて説明する。図
5(a)は、算出されたセルC(1)の重心位置GC(図中黒丸)が座標(2,1)であ
り、セルC(1)の網点位置AMT1に階調変換マトリックス200の中心位置HMCを
配置した状態を示している。なお階調変換マトリックス200内の数字は、格納された階
調変換テーブルKHTのテーブル番号を示す。次に、図5(b)に示したように、重心に
位置する画素に階調変換マトリックス200の中心位置HMCをシフトする。この場合、
右に1画素分階調変換マトリックス200をシフトすることになる。
Next, the state of gradation conversion processing performed for each pixel of the cell will be described with reference to FIG. In FIG. 5A, the calculated gravity center GC (black circle in the figure) of the cell C (1) is the coordinates (2, 1), and the gradation conversion matrix 200 is displayed at the halftone dot position AMT1 of the cell C (1). The center position HMC of FIG. The numbers in the gradation conversion matrix 200 indicate the table numbers of the stored gradation conversion table KHT. Next, as shown in FIG. 5B, the center position HMC of the gradation conversion matrix 200 is shifted to the pixel located at the center of gravity. in this case,
The gradation conversion matrix 200 for one pixel is shifted to the right.

シフトされた階調変換マトリックス200の周囲には、図5(b)で2点鎖線にてその
一つを例示したように、同形状の階調変換マトリックスが隣接状態で取り囲むように連続
して存在しているものとして扱う。そして、セル内の各画素の階調変換に際して、各画素
がこの階調変換マトリックスまたは連続して存在する階調変換マトリックスと重なるマト
リックス位置において、この位置に格納された階調変換テーブルKHTのテーブル番号に
基づいて、各画素の入力階調値を出力階調値に階調変換するのである。
Around the shifted gradation conversion matrix 200, as shown in FIG. 5B with one of the two-dot chain lines, the gradation conversion matrix having the same shape is continuously surrounded so as to be adjacent to each other. Treat as existing. In the gradation conversion of each pixel in the cell, the gradation conversion table KHT stored in this position at a matrix position where each pixel overlaps this gradation conversion matrix or the continuously existing gradation conversion matrix. Based on the number, the input gradation value of each pixel is converted into an output gradation value.

ちなみに、重心が位置する画素(2,1)が参照するテーブル番号は、シフト前は「1
」であったが、シフト後は「0」になることを示している。このように階調変換マトリッ
クスをシフトすることによって、重心位置にドットが形成されやすくなり、入力画像にで
きるだけ忠実な出力画像を得ることが可能となる。また、前述したように、網点位置がセ
ルの中心になるようにセル形状を分割しているので、重心位置が網点位置になる確率が高
い。
Incidentally, the table number referred to by the pixel (2, 1) where the center of gravity is located is “1” before the shift.
”, But“ 0 ”after the shift. By shifting the gradation conversion matrix in this way, it becomes easier to form dots at the center of gravity, and an output image that is as faithful as possible to the input image can be obtained. Further, as described above, since the cell shape is divided so that the halftone dot position becomes the center of the cell, the probability that the center of gravity position becomes the halftone dot position is high.

以上で、処理の概要説明を終わり、ハーフトーン処理部22が行う階調変換処理につい
て、図6および図7のフローチャートを用いて順次説明する。なおこれらのフローチャー
トに示した各処理は、CPU26(図2)が、本処理を実行するためのプログラムや演算
式を例えばROM28から適宜読み出したり、必要な処理データを例えばRAM27に適
宜格納したり読み出したりして行うものである。
Now, the outline of the processing is finished, and the gradation conversion processing performed by the halftone processing unit 22 will be sequentially described with reference to the flowcharts of FIGS. 6 and 7. In each process shown in these flowcharts, the CPU 26 (FIG. 2) appropriately reads a program and an arithmetic expression for executing this process from, for example, the ROM 28, or stores and reads necessary process data in, for example, the RAM 27 as appropriate. It is what you do.

図6に示した処理が実施されると、まずステップS201にて、ハーフトーン処理つま
り階調変換処理の対象となる入力画像を読み込む処理を行う。前述したように、入力画像
は正方形のドットマトリックス状の画素で構成されているものとし、ここでは一例として
色成分シアンの画像データを入力画像として読み込むものとする。もとより階調変換処理
は、入力画像について色成分シアンだけでなく全ての色成分の画像データに対して行なわ
れる。なお、モノクロ画像の場合は色成分ごとの階調変換処理は行わなくてよい。
When the processing shown in FIG. 6 is performed, first, in step S201, processing for reading an input image to be subjected to halftone processing, that is, gradation conversion processing is performed. As described above, the input image is assumed to be composed of square dot matrix pixels, and here, as an example, image data of the color component cyan is read as the input image. Naturally, the gradation conversion process is performed on the image data of all color components in addition to the color component cyan for the input image. In the case of a monochrome image, it is not necessary to perform gradation conversion processing for each color component.

次にステップS202にて、読み込んだ入力画像を画素群(セル)に分割する処理を行
う。セルの分割は、所定の間隔で配置された網点位置を中心にして行われる。図3に示し
た例では、網点位置が画素の中心とほぼ一致する位置になるAMスクリーンが用いられる
場合であったが、画像出力装置によっては、利用するAMスクリーンが画素の中心に位置
せず、画素の境界に位置する場合がある。また、前述したようにCMYKなどの多くの色
成分データを処理する場合は、各色成分の相互干渉によるモアレの発生を防止する目的な
どのため、各色成分について使用するAMスクリーンを相対的に相互に回転したり又はず
らしたり、あるいは異なるAMスクリーンを使用したりすることがある。この場合も同様
に、網点位置が画素の境界に位置する場合がしばしば発生する。
In step S202, the read input image is divided into pixel groups (cells). The division of the cells is performed around the halftone dot positions arranged at predetermined intervals. In the example shown in FIG. 3, an AM screen whose halftone dot position substantially coincides with the center of the pixel is used. However, depending on the image output device, the AM screen to be used may be positioned at the center of the pixel. Instead, it may be located at the boundary of the pixel. Further, as described above, when processing a lot of color component data such as CMYK, for the purpose of preventing the occurrence of moire due to the mutual interference of each color component, the AM screens used for each color component are relatively relative to each other. It may rotate or shift, or use a different AM screen. In this case as well, the halftone dot position often occurs at the pixel boundary.

従って、本実施形態では図8(a)に示したように、網点位置が画素の中心に位置する
網点と、画素の境界に位置する網点が規則的に配列されたAMスクリーンを使用して出力
画像を得るものとして扱う。また、説明を簡略化するため、図3での説明と同様に、入力
画像100が横(X)9画素×縦(Y)8画素であったとする。そして、入力画像が均一
な入力階調値であったとき、セルの重心位置が網点位置と一致するように、網点位置がセ
ルの点対称位置になるように分割する。
Therefore, in this embodiment, as shown in FIG. 8A, an AM screen is used in which a halftone dot is located at the center of the pixel and a halftone dot located at the pixel boundary is regularly arranged. And handle it as an output image. In addition, in order to simplify the description, it is assumed that the input image 100 is horizontal (X) 9 pixels × vertical (Y) 8 pixels, similarly to the description in FIG. 3. Then, when the input image has a uniform input gradation value, the halftone dot position is divided so as to be the point symmetry position of the cell so that the center of gravity of the cell coincides with the halftone dot position.

ステップS202で行う分割の一例を、図8(b)に示す。本実施形態では、網点位置
(すなわち入力画像が均一な入力階調値であったときセルの重心となる重心位置)が画素
の中心となる第1のセル形状CK1と、網点位置が画素の境界となる第2のセル形状CK
2に分割されるものとする。もとより、網点位置がセルの点対称位置になるように網点位
置に応じてセルを構成する画素数を増減して分割を行い、ドットが所定の画素位置を中心
にその近辺に形成されやすいセル形状になるように分割するため、図8(b)では、分割
後の第1のセル形状CK1内の画素数と、第2のセル形状CK2内の画素数とは、異なっ
たものになっている。
An example of the division performed in step S202 is shown in FIG. In the present embodiment, the first cell shape CK1 in which the halftone dot position (that is, the centroid position that becomes the centroid of the cell when the input image has a uniform input gradation value) is the center of the pixel, and the halftone dot position is the pixel. Second cell shape CK that becomes the boundary of
It shall be divided into two. Of course, the number of pixels constituting the cell is increased / decreased according to the halftone dot position so that the halftone dot position becomes the point symmetry position of the cell, and the dots are easily formed around the predetermined pixel position. In FIG. 8B, the number of pixels in the first cell shape CK1 after division is different from the number of pixels in the second cell shape CK2 in order to divide the cell shape. ing.

このような分割の結果、入力画像100は、異なる2つのセル形状を有したセルC(1
)からセルC(12)の12個のセルに分割処理される。従って、セル番号Nの最大値N
maxは「12」となる。また、前述したように図中網点で示した画像が階調変換対象の
画素となる。
As a result of such division, the input image 100 has a cell C (1) having two different cell shapes.
) To 12 cells of cell C (12). Therefore, the maximum value N of the cell number N
The max is “12”. Further, as described above, an image indicated by a halftone dot in the figure is a pixel for gradation conversion.

次に、ステップS203にて、階調変換マトリックス200を入力画像100の左上の
セルに適用する処理を行う。図8(b)に示したように、セル番号N=1のセルC(1)
に階調変換マトリックス200が適用されるので、階調変換対象となるセル番号を示す「
N」に「1」を格納する。
Next, in step S203, a process of applying the gradation conversion matrix 200 to the upper left cell of the input image 100 is performed. As shown in FIG. 8B, cell C (1) with cell number N = 1.
Since the tone conversion matrix 200 is applied to the cell number “
“1” is stored in “N”.

次にステップS204で、セル内画素の入力階調値合計を算出する処理を行い、その合
計が「0」より大きいか否かを次のステップS205で判定する。
Next, in step S204, a process of calculating the total input gradation value of the pixels in the cell is performed, and it is determined in the next step S205 whether or not the total is larger than “0”.

合計が「0」より大きくない場合(S205:NO)は、セル内の全ての画素の入力階
調値が「0」である場合であるので、ドット形成のための階調変換処理を行うことなく、
ステップS250に進む。この場合は入力階調値がそのまま出力階調値となる。こうする
ことで、階調変換処理に関する負荷が軽減できる。
When the sum is not greater than “0” (S205: NO), the input tone value of all the pixels in the cell is “0”, and therefore tone conversion processing for dot formation is performed. Not
Proceed to step S250. In this case, the input gradation value becomes the output gradation value as it is. By doing so, the load related to the gradation conversion process can be reduced.

合計が「0」より大きい場合(S205:YES)は、セル内画素の重心位置を算出す
る処理(ステップS206)を行う。この処理は、ステップS221での階調変換マトリ
ックスの中心のシフト処理の際に必要となる処理である。
When the sum is larger than “0” (S205: YES), a process of calculating the barycentric position of the pixel in the cell (step S206) is performed. This process is necessary for the shift process of the center of the gradation conversion matrix in step S221.

セルの重心位置の座標を(XG,YG)としたとき、以下の式(1)と式(2)を用い
て各座標を算出する。
XG=〔Σ{(各画素のX座標)×(各画素の階調値)}〕/セルの階調値合計…(1)
YG=〔Σ{(各画素のY座標)×(各画素の階調値)}〕/セルの階調値合計…(2)
When the coordinates of the center of gravity of the cell are (XG, YG), each coordinate is calculated using the following formulas (1) and (2).
XG = [Σ {(X coordinate of each pixel) × (gradation value of each pixel)}] / total gradation value of cell (1)
YG = [Σ {(Y coordinate of each pixel) × (gradation value of each pixel)}] / total gradation value of the cell (2)

次に、ステップS215にて、均一な入力階調値のとき重心位置が画素境界となるセル
か否かを判定処理する。そして、画素境界となるセルであった場合は(S215:YES
)、そのまま整数化処理した位置を重心位置と決定し(ステップS216)、画素境界と
なるセルでない場合は(S215:NO)、X方向に値「0.5」を加算して整数化処理
した位置を重心位置と決定する(ステップS217)処理を行う。ステップS216およ
びステップS217にて行なわれる処理について、図9を用いて補足説明する。
Next, in step S215, it is determined whether or not the center-of-gravity position is a pixel boundary when the input gradation value is uniform. If the cell is a pixel boundary (S215: YES)
), The position subjected to the integer processing as it is is determined as the barycentric position (step S216), and if it is not a cell that becomes the pixel boundary (S215: NO), the value “0.5” is added to the X direction to perform the integer processing The position is determined as the center of gravity position (step S217). The processes performed in step S216 and step S217 will be supplementarily described with reference to FIG.

図9は、X座標についての整数化処理を説明する説明図である。ここで、網点位置が画
素の境界となる第2のセル形状を有するセルC(4)に着目する。そして、このセルC(
4)について算出された重心位置が、図中実線の丸印で示したように画素の境界位置とな
るXG=2.5であったとする。
FIG. 9 is an explanatory diagram for explaining the integer processing for the X coordinate. Here, attention is focused on the cell C (4) having the second cell shape in which the halftone dot position becomes the boundary of the pixel. And this cell C (
Assume that the center-of-gravity position calculated for 4) is XG = 2.5, which is the pixel boundary position as shown by the solid circle in the figure.

そして上述したように、以降の処理で、各画素について階調変換マトリックスを適用し
て階調変換を行うのであるが、その際、各画素位置に対応する階調変換マトリックスの各
マトリックス位置に格納された階調変換テーブルを参照することから、次に、重心位置を
画素の中心位置に一致させるために整数化処理を行うのである。
As described above, in the subsequent processing, gradation conversion is applied to each pixel and gradation conversion is performed. At this time, the data is stored in each matrix position of the gradation conversion matrix corresponding to each pixel position. Since the gradation conversion table is referred to, next, an integer process is performed in order to make the center of gravity position coincide with the center position of the pixel.

このとき、仮に整数化処理を四捨五入の処理で行うものとした場合、図9のようにXG
の値が「2.5」であれば、重心位置は図中破線の丸印で示した位置になり、X座標が「
3」の画素位置に決定される。一方、逆に値「2.5」を少しでも下回れば、重心位置は
図中黒丸で示した位置になり、X座標が「2」の画素位置に決定される。すなわち、値「
2.5」を少しでも超えるか超えないかで、1画素分重心位置が移動することになる。従
って、入力階調値がすこしだけ変化しているような入力画像であった場合、算出された重
心位置がセルによってわずかにずれることが生じ得る。その結果ドットの形成位置がセル
ごとにずれるため、出力画像にノイズが発生し粒状感が増加してしまうことになる。また
前述したように、第2のセル形状CK2を有するセルについては、もともと画素の境界付
近に重心位置が算出されやすいセル形状に分割されているので、このようなことが発生し
やすくなる。
At this time, if it is assumed that the integer processing is performed by rounding, XG as shown in FIG.
If the value of “2.5” is, the center of gravity position is the position indicated by the dotted circle in the figure, and the X coordinate is “
3 "pixel position. On the other hand, if the value is slightly below the value “2.5”, the position of the center of gravity becomes the position indicated by the black circle in the figure, and the X coordinate is determined to be the pixel position “2”. That is, the value "
The position of the center of gravity moves by one pixel depending on whether or not it exceeds 2.5 ". Therefore, in the case of an input image in which the input tone value is slightly changed, the calculated center of gravity position may slightly shift depending on the cell. As a result, the dot formation position is shifted for each cell, so that noise is generated in the output image and the graininess is increased. Further, as described above, since the cell having the second cell shape CK2 is originally divided into cell shapes in which the position of the center of gravity is easily calculated in the vicinity of the boundary of the pixel, this is likely to occur.

そこで、図9に示したように、本実施形態では、第2のセル形状CK2のセルの場合、
所定の画素位置に重心位置が決定されるように、少数点以下を切り捨てて整数化処理を行
うこととする。例えば、セルC(4)について、算出された重心位置が2以上で3より小
さい範囲であれば、X座標が「2」の画素位置に重心位置が決定されるというように、第
2のセル形状CK2を有するセルについては、重心位置が網点位置近辺の範囲にある場合
は、必ず境界位置の左側の画素位置に重心位置が決定されるようにするのである。従って
、ステップS216(図6)の処理では、算出された重心位置について、小数点以下をそ
のまま切り捨てる整数化処理が行われるのである。
Therefore, as shown in FIG. 9, in the present embodiment, in the case of a cell having the second cell shape CK2,
It is assumed that integer processing is performed by rounding off the decimal point so that the center of gravity position is determined at a predetermined pixel position. For example, for the cell C (4), if the calculated centroid position is in the range of 2 or more and less than 3, the centroid position is determined as the pixel position where the X coordinate is “2”. For cells having the shape CK2, when the centroid position is in the vicinity of the halftone dot position, the centroid position is always determined at the pixel position on the left side of the boundary position. Therefore, in the process of step S216 (FIG. 6), an integerization process is performed for the calculated barycentric position by rounding off the decimal part.

ところで、このように小数点以下を切り捨てる整数化処理方法は、処理負荷の軽減から
、分割された全てのセルについて通常同様に用いられることになる。このとき、第1のセ
ル形状CK1を有するセルについて行われる整数化処理(図6、ステップS217)につ
いて説明する。
By the way, the integer conversion processing method that rounds off the decimal places as described above is normally used for all divided cells in order to reduce the processing load. At this time, the integer processing (FIG. 6, step S217) performed for the cell having the first cell shape CK1 will be described.

図9にて示したように、第1のセル形状CK1を有するセルC(1)では、算出された
重心位置の範囲が0.5以上で1.5より小さい場合、決定される重心位置は網点位置に
最も近い画素位置(図中黒丸)になることが望ましいので、網点位置が存在する画素位置
であるX座標「1」の位置になるように整数化処理を行うことになる。しかしながら、小
数点以下を切り捨てる整数化処理をそのまま用いると、X座標が0.5以上で1より小さ
い値であった場合は、X座標「1」の画素ではなく「0」の画素になってしまう。
As shown in FIG. 9, in the cell C (1) having the first cell shape CK1, when the calculated range of the centroid position is 0.5 or more and less than 1.5, the determined centroid position is Since the pixel position closest to the halftone dot position (black circle in the figure) is desirable, the integer processing is performed so that the X coordinate “1”, which is the pixel position where the halftone dot position exists, is located. However, if the integer processing for rounding down the decimal point is used as it is, if the X coordinate is 0.5 or more and smaller than 1, the pixel becomes “0” instead of the pixel of X coordinate “1”. .

そこで、算出された重心位置に、一画素を単位長とした半分の長さつまり「0.5」を
加算した後、小数点以下を切り捨てる整数化処理を行うこととするのである。こうするこ
とによって、例えばセルC(1)では、算出された重心位置の範囲が0.5以上で1.5
より小さい場合に、X座標が1以上で2より小さい値としてセルC(4)と同様な整数化
処理を行うことができ、この整数化処理の結果、重心位置はX座標「1」の画素位置と決
定される。
Therefore, after adding a half length with one pixel as a unit length, that is, “0.5” to the calculated center of gravity position, an integerization process is performed to round off the decimal point. By doing so, for example, in the cell C (1), the calculated range of the center of gravity is 0.5 or more and 1.5.
If it is smaller, the X coordinate is 1 or more and a value smaller than 2 can be used to perform integer processing similar to that of the cell C (4). As a result of this integer processing, the barycentric position is the pixel of the X coordinate “1”. Determined as position.

このように、セルの形状に応じて、所定の画素位置に重心位置を決定処理することによ
って、セル内の所定の位置付近にドットを形成することができる。従って、例えば入力画
像がほぼ同じ入力階調値の画像であった場合は、利用するAMスクリーンに応じて設定さ
れた網点位置に基づいてドットが規則的に形成される確率が高くなり、ドット間距離のば
らつきを抑えた網点画像を出力することが可能となる。従って、重心位置のわずかなずれ
に起因してドット形成位置がずれ、その結果発生してしまう粒状感の増加について、抑制
することが可能となる。
In this way, by determining the center of gravity at a predetermined pixel position according to the shape of the cell, dots can be formed near the predetermined position in the cell. Therefore, for example, when the input image is an image having substantially the same input gradation value, the probability that dots are regularly formed based on the halftone dot position set according to the AM screen to be used increases. It is possible to output a halftone dot image in which the variation in the distance is suppressed. Therefore, it is possible to suppress the increase in graininess that occurs as a result of the dot formation position shifting due to a slight shift in the center of gravity position.

図6に戻り、次にステップS220にて、セル内画素の階調変換処理を行う。この処理
によって、セルに階調変換マトリックスを適用し、セル内の各画素に対応する階調変換テ
ーブルのテーブル番号を参照して、各画素の入力階調値をドットを形成するための出力階
調値に階調変換する。ここでの処理については、後ほど図7のフローチャートを用いて説
明する。
Returning to FIG. 6, next, in step S220, gradation conversion processing of pixels in the cell is performed. By this process, a gradation conversion matrix is applied to the cell, and the input gradation value of each pixel is output to form a dot by referring to the table number of the gradation conversion table corresponding to each pixel in the cell. Tone conversion to tone value. This process will be described later with reference to the flowchart of FIG.

次に、ステップS250にてセル番号NがNmaxであるか否かを判定する。図8の例
ではNmax=12となる。そしてセル番号NがNmaxでない場合(S250:NO)
、NをN+1にする処理(ステップS251)を行ったのち、ステップS204に戻り、
次の階調変換対象となるセルについて上述したステップS204からS250までの処理
を繰り返す。
Next, in step S250, it is determined whether or not the cell number N is Nmax. In the example of FIG. 8, Nmax = 12. If the cell number N is not Nmax (S250: NO)
After performing the process of setting N to N + 1 (step S251), the process returns to step S204,
The processing from step S204 to S250 described above is repeated for the next cell to be subjected to gradation conversion.

一方、セル番号NがNmaxであった場合(S250:YES)、階調変換の対象とな
る全ての画素について、出力階調値への階調変換が終了したことになりハーフトーン処理
部22の処理が終了する。
On the other hand, when the cell number N is Nmax (S250: YES), the gradation conversion to the output gradation value has been completed for all the pixels to be subjected to gradation conversion, and the halftone processing unit 22 The process ends.

それでは、図6のステップS220にて行うセル内画素の階調変換処理について図7の
フローチャートに従って説明する。この処理が開始されると、まず、ステップS221に
て、重心が位置する画素に階調変換マトリックス200の中心をシフトする処理を行う。
この処理は、前もって図5にて説明したように、ドットの形成位置を利用されるAMスク
リーンに基づく網点位置ではなく、セルの重心位置にすることによって入力画像に忠実な
出力画像を得るために行うものである。
Now, the gradation conversion processing of the in-cell pixel performed in step S220 of FIG. 6 will be described with reference to the flowchart of FIG. When this process is started, first, in step S221, a process of shifting the center of the gradation conversion matrix 200 to the pixel where the center of gravity is located is performed.
This processing is performed in order to obtain an output image faithful to the input image by making the dot formation position not the halftone dot position based on the AM screen to be used, but the center of gravity position of the cell, as previously described in FIG. To do.

本実施形態では入力画像を2種類のセル形状に分割することから、2種類の階調変換マ
トリックスが適用される。第1のセル形状CK1に適用する階調変換マトリックス200
aをセルC(1)に適用した様子を、また第2のセル形状CK2に適用する階調変換マト
リックス200bをセルC(4)に適用した様子を図10に示した。
In this embodiment, since the input image is divided into two types of cell shapes, two types of gradation conversion matrices are applied. The gradation conversion matrix 200 applied to the first cell shape CK1
FIG. 10 shows a state where a is applied to the cell C (1), and a state where the gradation conversion matrix 200b applied to the second cell shape CK2 is applied to the cell C (4).

図10は、決定された重心位置が、セルC(1)については座標(1,1)の画素位置
であり、セルC(4)については座標(2,3)の画素位置であるものとしている。もと
より、決定された重心位置に階調変換マトリックスをシフトする場合は、前述したように
同形状の階調変換マトリックスが周辺に存在するものとして扱い、図10のように形状の
異なる2種類の階調変換マトリックスの場合でも、階調変換マトリックス200aと階調
変換マトリックス200bが周辺に連続して繰り返された階調変換マトリックスが存在す
るものとし、これらの繰り返された階調変換マトリックスが一体となってシフトするもの
として扱えばよい。
FIG. 10 shows that the determined barycentric position is the pixel position at coordinates (1, 1) for cell C (1) and the pixel position at coordinates (2, 3) for cell C (4). Yes. Of course, when shifting the gradation conversion matrix to the determined center of gravity position, the gradation conversion matrix having the same shape is present in the periphery as described above, and two types of floors having different shapes as shown in FIG. Even in the case of the tone conversion matrix, it is assumed that there is a tone conversion matrix in which the tone conversion matrix 200a and the tone conversion matrix 200b are continuously repeated in the periphery, and these repeated tone conversion matrices are integrated. Can be handled as a shift.

次にステップS222にて、階調変換マトリックス200aまたは階調変換マトリック
ス200bを適用した状態で、重心位置に最も近い階調変換未処理画素の探索処理を行い
、さらにステップS223にて、探索した階調変換未処理画素について階調変換テーブル
を参照して階調変換処理を行う。前述したように、各階調変換マトリックスには、階調変
換テーブルのテーブル番号が格納されている。そして、階調変換マトリックスの中心には
、ドットが形成されやすいようにテーブル番号「0」が格納され、これを中心にしてドッ
トが形成されるように、それぞれのマトリックス位置には階調変換に際して参照するテー
ブル番号が格納されている。
Next, in step S222, in the state where the gradation conversion matrix 200a or the gradation conversion matrix 200b is applied, the gradation conversion unprocessed pixel closest to the centroid position is searched, and in step S223, the searched floor is searched. A tone conversion process is performed on the tone conversion unprocessed pixels with reference to the tone conversion table. As described above, each gradation conversion matrix stores the table number of the gradation conversion table. Then, a table number “0” is stored at the center of the gradation conversion matrix so that dots are easily formed, and each matrix position is subjected to gradation conversion so that dots are formed around this. Stores the table number to be referenced.

例えば図10において、セルC(1)では、まず座標(1,1)の画素が階調変換対象
の未処理画素として探索され、座標(1,1)の画素に対応する位置にある階調変換マト
リックスに格納された階調変換テーブルのテーブル番号「0」に基づいて、探索された画
素の入力階調値に対応する出力階調値を得ることで階調変換が行われる。
For example, in FIG. 10, in the cell C (1), the pixel at the coordinate (1, 1) is first searched as an unprocessed pixel to be subjected to gradation conversion, and the gradation at the position corresponding to the pixel at the coordinate (1, 1). Gradation conversion is performed by obtaining an output gradation value corresponding to the input gradation value of the searched pixel based on the table number “0” of the gradation conversion table stored in the conversion matrix.

そして、ステップS224にて、探索した画素について、階調変換後の階調値を出力階
調値とする処理を行う。この処理によって、セル内の画素について、その画素の位置に形
成されるドットに対応する出力階調値が得られることになる。
In step S224, the searched pixel is subjected to a process of setting the gradation value after gradation conversion as an output gradation value. By this processing, an output gradation value corresponding to a dot formed at the pixel position is obtained for the pixel in the cell.

次に、ステップS230にて、セル内画素全て処理したか否かを更に判定し、処理して
いない場合(S230:NO)は、ステップS222に戻り、上述したステップS222
からS225までの処理を行う。
Next, in step S230, it is further determined whether or not all the pixels in the cell have been processed. If not (S230: NO), the process returns to step S222, and the above-described step S222 is performed.
To S225.

そして、ステップS230にてセル内画素を全て処理したと判定した場合(S230:
YES)、ステップS220(図6)が行うセル内画素の階調変換処理を終了する。
And when it determines with having processed all the pixels in a cell in step S230 (S230:
YES), the gradation conversion process of the pixel in the cell performed in step S220 (FIG. 6) is terminated.

以上、本実施形態によれば、入力画像を複数のセルに分割する際、網点が画素の境界に
位置する場合など、画素の中心に位置しない網点位置を含む場合は、網点位置に応じて少
なくとも2種類以上の分割形状に分割を行う。そして、網点が画素の境界に位置するセル
では、重心位置が所定の画素位置に決定されるようにすることができる。従ってドット形
成位置のばらつきが少なくなることによって形成されるドット間距離のばらつきが抑えら
れ、粒状感の増加を抑制することが可能となる。
As described above, according to the present embodiment, when the input image is divided into a plurality of cells, when a halftone dot is not located at the center of the pixel, such as when the halftone dot is located at the pixel boundary, Accordingly, division is performed into at least two types of divided shapes. Then, in the cell in which the halftone dot is located at the pixel boundary, the barycentric position can be determined as a predetermined pixel position. Therefore, the variation in the distance between dots formed by reducing the variation in the dot formation position can be suppressed, and the increase in graininess can be suppressed.

以上、本発明について一実施形態を用いて説明したが、本発明はこうした実施形態に何
ら限定されるものではなく、本発明の趣旨を逸脱しない範囲内において様々な形態で実施
し得ることは勿論である。以下、変形例を挙げて説明する。
As mentioned above, although this invention was demonstrated using one Embodiment, this invention is not limited to such embodiment at all, Of course, it can implement with various forms within the range which does not deviate from the meaning of this invention. It is. Hereinafter, a modification will be described.

(第1変形例)
前記実施形態では、入力画像を複数のセルに分割する際、網点が画素の中心に位置する
第1のセル形状と、網点が画素の境界に位置する第2のセル形状とで、互いにセル内の画
素数が異なる2種類の分割形状に分割を行った。このようにセルを構成する画素数が異な
る場合、例えば入力画像が均一な入力階調値のとき、階調変換後の出力階調値がセルごと
に異なることになる。従って、本来均一な大きさのドットが形成されるべきであるところ
、大きさのことなる2種類のドットが形成されてしまう。そこで、第1変形例として、2
種類の分割形状を有するそれぞれのセル内に含まれる画素数が、同じになるように前記入
力画像を分割することとしてもよい。
(First modification)
In the embodiment, when the input image is divided into a plurality of cells, the first cell shape in which the halftone dot is located at the center of the pixel and the second cell shape in which the halftone dot is located at the boundary of the pixel are mutually connected. Division into two types of division shapes with different numbers of pixels in the cell was performed. Thus, when the number of pixels constituting the cell is different, for example, when the input image has a uniform input gradation value, the output gradation value after gradation conversion differs for each cell. Accordingly, where dots of uniform size should be formed, two types of dots having different sizes are formed. Therefore, as a first modification, 2
The input image may be divided so that the number of pixels included in each cell having different types of division shapes is the same.

第1変形例によるセルの分割の一例を図11に示した。図に示したように、第1のセル
形状CK1aについて、セルの上下端の画素については、前述したように入力階調値の半
分を階調変換の対象とすることから、それぞれ半画素分がセル内の画素となる。この結果
、第1のセル形状CK1aについては、セルを構成する画素数は6画素となり、第2のセ
ル形状CK2aについてのセル内の画素数である6画素と同数となる。この結果、不均一
な大きさのドット形成を抑制することができる。
An example of cell division according to the first modification is shown in FIG. As shown in the figure, with respect to the first cell shape CK1a, for the pixels at the upper and lower ends of the cell, half of the input gradation values are to be subjected to gradation conversion as described above. It becomes a pixel in the cell. As a result, for the first cell shape CK1a, the number of pixels constituting the cell is six, which is the same as the six pixels that are the number of pixels in the cell for the second cell shape CK2a. As a result, it is possible to suppress the formation of non-uniformly sized dots.

(第2変形例)
また前記実施形態では、セルの分割に際して、網点位置がセルの点対称位置となるよう
に分割した結果、それぞれセルの画素数および形状が異なる2種類のセルに分割するとし
て説明した。この場合、前述したように2種類の階調変換マトリックスを必要とし、分割
形状の異なるセルごとに階調変換マトリックスを切り替えて適用する処理を行うことにな
り、処理負荷が重くなる。そこで第2変形例として、第1のセル形状と第2のセル形状と
が線対称になるよう分割することとしてもよい。
(Second modification)
Further, in the above-described embodiment, it has been described that the cell is divided so that the halftone dot position is the point symmetry position of the cell, and as a result, the cell is divided into two types of cells having different pixel numbers and shapes. In this case, as described above, two kinds of gradation conversion matrices are required, and the process of switching and applying the gradation conversion matrix for each cell having a different division shape is performed, resulting in a heavy processing load. Therefore, as a second modification, the first cell shape and the second cell shape may be divided so as to be line symmetric.

本変形例によるセルの分割の一例を図12に示した。図に示したように、網点位置AM
Tが画素の中心となる第1のセル形状CK1bと、網点位置AMTが画素の境界となる第
2のセル形状CK2bとが、左右対称になるように分割されている。なお、図12の分割
例では、図8と同様、網点位置が点対称の位置としてセルを分割しているので、左右と同
時に上下も対称関係となる。従って、分割に際しては、すくなくとも左右若しくは上下ど
ちらか一方が対称になるように分割処理を行えばよい。もとより、例えば1セルあたりの
画素数が多い場合は、左右のみ若しくは上下のみ対称に分割することも考えられる。
An example of cell division according to this modification is shown in FIG. As shown in the figure, the dot position AM
The first cell shape CK1b in which T is the center of the pixel and the second cell shape CK2b in which the dot position AMT is the pixel boundary are divided so as to be symmetrical. In the example of division in FIG. 12, as in FIG. 8, since the cells are divided with the halftone dot positions being point-symmetrical positions, the vertical and horizontal directions are also symmetrical. Therefore, at the time of division, the division processing may be performed so that at least one of left and right or upper and lower sides is symmetrical. Of course, for example, when the number of pixels per cell is large, it is conceivable to divide symmetrically only in the left-right direction or in the vertical direction.

次に、このように分割された2つのセル形状に対して、どのような階調変換マトリック
スを適用するのか、図13を用いて説明する。図13(a)左側に、第1のセル形状CK
1bについて階調変換処理の対象画素(網掛け)を示し、同じく図13(b)左側に、こ
の第1のセル形状CK1bに適用する階調変換マトリックス201を示した。階調変換マ
トリックスの各マトリックス位置には、その位置に対応する階調変換処理の対象画素が参
照する階調変換テーブルのテーブル番号が図のように格納されている。
Next, what kind of gradation conversion matrix is applied to the two cell shapes thus divided will be described with reference to FIG. On the left side of FIG. 13 (a), the first cell shape CK
The target pixel (shaded) of gradation conversion processing is shown for 1b, and the gradation conversion matrix 201 applied to the first cell shape CK1b is also shown on the left side of FIG. 13 (b). At each matrix position of the gradation conversion matrix, the table number of the gradation conversion table referred to by the target pixel of the gradation conversion process corresponding to that position is stored as shown in the figure.

一方、図13(a)右側に、第2のセル形状CK2bについて階調変換処理の対象画素
(網掛け)を示し、同じく図13(b)右側に、この第2のセル形状CK2bに適用する
階調変換マトリックス202を示した。階調変換マトリックスの各マトリックス位置には
、その位置に対応する階調変換処理の対象画素が参照する階調変換テーブルのテーブル番
号が図のように格納されている。
On the other hand, on the right side of FIG. 13A, the target pixel (shaded) of the gradation conversion processing is shown for the second cell shape CK2b, and the same applies to the second cell shape CK2b on the right side of FIG. 13B. A gradation conversion matrix 202 is shown. At each matrix position of the gradation conversion matrix, the table number of the gradation conversion table referred to by the target pixel of the gradation conversion process corresponding to that position is stored as shown in the figure.

図から明らかなように、第1のセル形状に適用する階調変換マトリックス201と第2
のセル形状に適用する階調変換マトリックス202とは形状が異なっているが、第1のセ
ル形状CK1bと第2のセル形状CK2bとが左右対称つまり裏返しであることから、こ
れら2つの階調変換マトリックスについても裏返して共通化できるようにすることできる
As is apparent from the figure, the gradation conversion matrix 201 and the second applied to the first cell shape.
However, since the first cell shape CK1b and the second cell shape CK2b are bilaterally symmetrical, that is, reverse, the two tone conversions are different. The matrix can also be reversed so that it can be shared.

図13(c)に、これら2つの異なるセル形状に共通して適用可能な階調変換マトリッ
クス203の一例を示す。図に示したように、第2のセル形状CK2bに適用する階調変
換マトリックス202に対して、破線で示したように図中右下にテーブル番号が「3」格
納された1個のマトリックスを追加したものである。
FIG. 13C shows an example of the gradation conversion matrix 203 that can be commonly applied to these two different cell shapes. As shown in the figure, with respect to the gradation conversion matrix 202 applied to the second cell shape CK2b, one matrix having the table number “3” stored in the lower right in the figure as shown by the broken line. It is added.

図から明らかなように、図13(c)において網掛けで示したマトリックス部分は、第
1のセル形状CK1bに適用する階調変換マトリックス201と左右対称(裏返し)とな
っていることがわかる。従って、この階調変換マトリックス203を第1のセル形状CK
1bに適用する場合は網掛けしたマトリックス部分のみを裏返して用い、第2のセル形状
CK2bに適用する場合は右下破線で示した1個のマトリックスを除いて用いれば、それ
ぞれのセル形状について共通した階調変換マトリックスを適用できることになる。従って
、メモリ容量や階調変換に関する処理負荷を軽減できる。
As is apparent from the figure, it can be seen that the matrix portion shown by shading in FIG. 13C is symmetrical (inverted) with the gradation conversion matrix 201 applied to the first cell shape CK1b. Therefore, the gradation conversion matrix 203 is converted into the first cell shape CK.
When applied to 1b, only the shaded matrix portion is turned over and used, and when applied to the second cell shape CK2b, if one matrix shown by the lower right broken line is used, it is common to each cell shape. The gradation conversion matrix thus made can be applied. Accordingly, it is possible to reduce the processing load related to memory capacity and gradation conversion.

(第3変形例)
前記実施形態および前記第1、第2変形例では、図8(b)や図11などに示したよう
に、一つの画素を分割してセルを形成した。従って、上述したように、分割された画素に
ついては、階調変換に際してその画素が含まれる全てのセルの階調変換対象画素として扱
われるセルの共有画素になる。従って、画素の分割割合に応じて分割された入力階調値を
、共有するセルの数に応じて階調変換処理が行われることになる。この結果、階調変換回
数が共有画素が多くなればなるほど多くなってしまい、階調変換処理に関する負荷が重く
なってしまう。
(Third Modification)
In the embodiment and the first and second modified examples, as shown in FIG. 8B and FIG. 11, one pixel is divided to form a cell. Therefore, as described above, the divided pixels are shared pixels of cells that are treated as gradation conversion target pixels of all the cells including the pixel at the time of gradation conversion. Therefore, the gradation conversion process is performed on the input gradation value divided according to the pixel division ratio according to the number of shared cells. As a result, the number of gradation conversions increases as the number of shared pixels increases, and the load related to gradation conversion processing increases.

そこで、第3変形例として、入力画像の分割に際して、共有画素が発生しないように2
種類以上の複数のセル形状に分割するものとしてもよい。このように分割すれば、1画素
については1回の階調変換で済むことになる。もとより、階調変換マトリックスについて
はセルの分割形状の種類に合わせて階調変換マトリックスを用意するため、階調変換マト
リックスの種類数に応じて記憶量が増えることになる。従って、階調変換処理負荷と記憶
量との兼ね合いから、共有画素の数と階調変換マトリックスの種類数とを決めるようにし
てもよい。
Therefore, as a third modified example, in order to prevent shared pixels from being generated when the input image is divided, 2
It is good also as what divides | segments into several or more cell shape. By dividing in this way, one tone conversion is sufficient for one pixel. As a matter of course, since the gradation conversion matrix is prepared in accordance with the type of cell division shape, the storage amount increases according to the number of types of gradation conversion matrix. Therefore, the number of shared pixels and the number of types of gradation conversion matrix may be determined based on the balance between the gradation conversion processing load and the storage amount.

図14に、第3変形例によるセルの分割形状の一例を示す。図8(b)に示したセルの
分割例において、第2のセル形状での共有画素を一方のセルのみに含まれるように分割し
たもので、図14のように都合3種類のセル形状に分割する。このように、網点位置に応
じてセルを構成する画素数を増減したり、セルの形状を変更したりすることによって、ド
ットの形成位置が所定の画素位置に近づくように好ましいセル形状に分割できる。
FIG. 14 shows an example of cell division shapes according to the third modification. In the cell division example shown in FIG. 8B, the shared pixels in the second cell shape are divided so as to be included in only one cell. To divide. In this way, the number of pixels constituting the cell is increased or decreased according to the halftone dot position, or the cell shape is changed to divide the dot formation position into a preferred cell shape so that it approaches the predetermined pixel position. it can.

(第4変形例)
また上記実施形態では、図9に示したように、第2の形状のセルの場合、少数点以下を
切り捨てて整数化処理を行うこととし、重心位置が網点位置近辺の範囲にある場合は、必
ず境界位置の左側の画素位置に重心位置が決定されるようにした。本変形例では、逆に必
ず境界位置の右側の画素位置に重心位置が決定されるようにしてもよい。
(Fourth modification)
In the above embodiment, as shown in FIG. 9, in the case of the second shape cell, the decimal point is rounded down to perform the integer processing, and the center of gravity position is in the range around the halftone dot position. The center of gravity position is always determined at the pixel position on the left side of the boundary position. In the present modification, conversely, the barycentric position may always be determined at the pixel position on the right side of the boundary position.

第4変形の場合、ステップS216(図6)にて行われる処理では、算出された重心位
置について、小数点以下を切り捨てではなく切り上げる整数化処理が行われることになる
。このとき、ステップS217が行う処理において切り上げによる整数化処理に対応する
ため、前記実施形態とは逆にX方向に0.5を減算して整数化処理を行えばよい。
In the case of the fourth modification, in the process performed in step S216 (FIG. 6), an integerization process is performed on the calculated barycentric position by rounding up the fractional part instead of rounding down. At this time, in order to correspond to the integer processing by rounding up in the processing performed in step S217, the integer processing may be performed by subtracting 0.5 in the X direction, contrary to the above embodiment.

もとより、整数化処理方法が四捨五入による場合では、第1のセル形状についてX方向
に0.5を加算して整数化処理(ステップS217)するのではなく、逆に第2のセル形
状についてX方向に0.5を減算して整数化処理(ステップS216)すればよい。この
ように、整数化処理方法に応じて、第1のセル形状又は第2のセル形状について、X方向
に0.5を加算又は減算すればよい。
Of course, when the rounding method is rounded off, 0.5 is not added to the first cell shape by adding 0.5 in the X direction (step S217), but conversely the second cell shape is X direction. Then, 0.5 may be subtracted and an integer processing may be performed (step S216). Thus, 0.5 may be added or subtracted in the X direction for the first cell shape or the second cell shape, depending on the integer processing method.

また、本発明が適用される画像処理装置20は、レーザプリンタにて画像を印刷用紙に
出力し再生表示するものとして前期実施形態および変形例での処理を行うようにしたが、
本発明はこれに限定されるものでなく、紙などの印刷媒体に、インクを吐出して印刷する
方式のプリンタや、インクを熱転写して印刷する方式のプリンタなどといった種々のプリ
ンタのほか、電子写真あるいはディスプレイなどにて画像を再生表示するものとして処理
を行うようにしてもよい。
Further, the image processing apparatus 20 to which the present invention is applied is configured to perform the processing in the previous embodiment and the modified example as an image output on a printing paper by a laser printer and displayed for reproduction.
The present invention is not limited to this, and various printers such as a printer that prints by ejecting ink onto a print medium such as paper, a printer that prints by thermally transferring ink, and the like Processing may be performed on the assumption that an image is reproduced and displayed on a photograph or a display.

なお、本発明が適用される画像処理装置20は画像入力装置10と画像出力装置30と
から独立した形態であるものとしたが、レーザプリンタなどの画像出力装置30に組み込
まれる形態としてもよいし、画像入力装置10に組み込まれるものとしてもよい。あるい
は、レーザプリンタなどの画像出力装置が組み込まれたコピー機やコンピュータ機器、ワ
ープロ、ファックス、携帯電話などコンピュータ機能を有する種々の電子機器に、前記実
施形態における画像処理装置が組み込まれて構成されるようにしてもよい。
Although the image processing apparatus 20 to which the present invention is applied is assumed to be independent from the image input apparatus 10 and the image output apparatus 30, it may be incorporated into the image output apparatus 30 such as a laser printer. The image input device 10 may be incorporated. Alternatively, the image processing apparatus according to the above-described embodiment is configured to be incorporated in various electronic devices having a computer function such as a copier, a computer device, a word processor, a fax machine, and a mobile phone in which an image output device such as a laser printer is incorporated. You may do it.

本発明が適用される一実施形態におけるシステム全体を示す構成図。The block diagram which shows the whole system in one Embodiment with which this invention is applied. 本実施形態での画像処理装置のハード構成を説明する模式図。1 is a schematic diagram illustrating a hardware configuration of an image processing apparatus according to an embodiment. 本実施形態で、入力画像をセルに分割する様子を説明する模式図。The schematic diagram explaining a mode that an input image is divided | segmented into a cell in this embodiment. (a)は階調変換マトリックスの様子を説明するための説明図。 (b)は階調変換テーブルについて参照するテーブル番号の説明図。(A) is explanatory drawing for demonstrating the mode of a gradation conversion matrix. FIG. 4B is an explanatory diagram of table numbers to be referred to for the gradation conversion table. (a)は階調変換マトリックスをセルに適用する様子を説明する説明図。 (b)は重心位置へシフトした階調変換マトリックスを説明する説明図。(A) is explanatory drawing explaining a mode that a gradation conversion matrix is applied to a cell. FIG. 6B is an explanatory diagram for explaining a gradation conversion matrix shifted to the position of the center of gravity. 本実施形態での階調変換処理を説明するフローチャート。6 is a flowchart for explaining gradation conversion processing in the present embodiment. セル内画素の階調変換処理ルーチンを説明するフローチャート。The flowchart explaining the gradation conversion process routine of the pixel in a cell. (a)は網点位置と入力画像の画素位置との関係を説明する説明図。 (b)は画素の中心と画素の境界とに位置する網点に基づくセル分割例。(A) is explanatory drawing explaining the relationship between a dot position and the pixel position of an input image. (B) is an example of cell division based on halftone dots located at the center of a pixel and the boundary of the pixel. 重心位置を決定する整数化処理について説明するための模式図。The schematic diagram for demonstrating the integer-izing process which determines a gravity center position. 第1のセル形状と第2のセル形状に適用する階調変換マトリックスの例。An example of a gradation conversion matrix applied to a first cell shape and a second cell shape. 第1変形例におけるセルの分割の一例を示す説明図。Explanatory drawing which shows an example of the division | segmentation of the cell in a 1st modification. 第2変形例におけるセルの分割の一例を示す説明図。Explanatory drawing which shows an example of the division | segmentation of the cell in a 2nd modification. (a)は第2変形例における分割されたセルを構成する画素の説明図。 (b)は分割されたセルに適用する階調変換マトリックスの説明図。 (c)は共通使用可能な階調変換マトリックスの説明図。(A) is explanatory drawing of the pixel which comprises the cell divided | segmented in the 2nd modification. FIG. 5B is an explanatory diagram of a gradation conversion matrix applied to divided cells. (C) is an explanatory diagram of a tone conversion matrix that can be used in common. 第3変形例におけるセルの分割の一例を示す説明図。Explanatory drawing which shows an example of the division | segmentation of the cell in a 3rd modification.

符号の説明Explanation of symbols

10…画像入力装置、11…アプリケーション部、12…ラスタライズ部、20…画像
処理装置、21…色変換部、22…ハーフトーン処理部、22a…画素群分割部、22b
…重心位置算出部、22c…重心位置決定部、22d…配置部、22e…階調変換部、2
5…入出力I/F、26…CPU、27…RAM、28…ROM、29…ハードディスク
、30…画像出力装置、31…パルス幅変調部、35…印刷エンジン、36…レーザドラ
イバ、37…レーザダイオード、100…入力画像、200〜203…階調変換マトリッ
クス、HMC…階調変換マトリックス中心、KHT…階調変換テーブル、AMT…網点位
置、GC…セルの重心位置、CK1…第1のセル形状、CK2…第2のセル形状。
DESCRIPTION OF SYMBOLS 10 ... Image input device, 11 ... Application part, 12 ... Rasterization part, 20 ... Image processing apparatus, 21 ... Color conversion part, 22 ... Halftone processing part, 22a ... Pixel group division part, 22b
... centroid position calculation unit, 22c ... centroid position determination unit, 22d ... arrangement unit, 22e ... tone conversion unit, 2
DESCRIPTION OF SYMBOLS 5 ... Input / output I / F, 26 ... CPU, 27 ... RAM, 28 ... ROM, 29 ... Hard disk, 30 ... Image output device, 31 ... Pulse width modulation part, 35 ... Print engine, 36 ... Laser driver, 37 ... Laser Diode: 100: Input image, 200 to 203: Gradation conversion matrix, HMC: Gradation conversion matrix center, KHT: Gradation conversion table, AMT: Halftone dot position, GC: Center of gravity of cell, CK1: First cell Shape, CK2 ... second cell shape.

Claims (11)

入力画像を複数画素から構成される画素群に分割し、分割された各々の画素群に階調変
換マトリックスを適用することで、前記画素群に含まれる各画素の入力階調値を、出力画
像となる網点画像を構成するドットに対応する2種類以上の階調値を有する出力階調値に
階調変換する画像処理装置であって、
前記入力画像の分割に際し、分割された前記画素群の形状が、前記網点画像の網点位置
に基づいて、少なくとも2種類の異なる分割形状になるよう分割する画素群分割部を備え
ることを特徴とする画像処理装置。
By dividing the input image into pixel groups composed of a plurality of pixels, and applying a tone conversion matrix to each of the divided pixel groups, the input tone value of each pixel included in the pixel group is output to the output image. An image processing apparatus that performs tone conversion into an output tone value having two or more types of tone values corresponding to dots constituting a halftone dot image,
A pixel group dividing unit that divides the input image so that the shape of the divided pixel group becomes at least two different divided shapes based on the halftone dot positions of the halftone image. An image processing apparatus.
請求項1に記載の画像処理装置であって、
前記画素群に含まれる前記各画素の入力階調値を用いて当該画素群の重心位置を算出す
る重心位置算出部を備え、
前記画素群分割部は、前記画素群に含まれる各画素が同じ入力階調値であったとき、算
出された前記重心位置が、前記網点位置になるように分割することを特徴とする画像処理
装置。
The image processing apparatus according to claim 1,
A centroid position calculation unit that calculates a centroid position of the pixel group using an input gradation value of each pixel included in the pixel group;
The pixel group dividing unit divides the calculated gravity center position so as to be the halftone dot position when each pixel included in the pixel group has the same input gradation value. Processing equipment.
請求項2に記載の画像処理装置であって、
前記画素群分割部は、前記画素群に含まれる各画素が同じ入力階調値であったとき、算
出された前記重心位置が画素中心になる第1の画素群と、算出された前記重心位置が画素
の境界になる第2の画素群とに前記入力画像を分割することを特徴とする画像処理装置。
The image processing apparatus according to claim 2,
The pixel group dividing unit includes a first pixel group in which the calculated centroid position is a pixel center when the pixels included in the pixel group have the same input gradation value, and the calculated centroid position. An image processing apparatus that divides the input image into a second pixel group that becomes a pixel boundary.
請求項3に記載の画像処理装置であって、
前記画素群分割部は、前記第1の画素群に含まれる画素数と前記第2の画素群に含まれ
る画素数とが、同じになるように前記入力画像を分割することを特徴とする画像処理装置
The image processing apparatus according to claim 3,
The pixel group dividing unit divides the input image so that the number of pixels included in the first pixel group and the number of pixels included in the second pixel group are the same. Processing equipment.
請求項3または4に記載の画像処理装置であって、
前記画素群分割部は、前記第1の画素群の分割形状と前記第2の画素群の分割形状とが
、少なくとも左右対称または上下対称になるように前記入力画像を分割することを特徴と
する画像処理装置。
The image processing apparatus according to claim 3, wherein:
The pixel group dividing unit divides the input image so that a divided shape of the first pixel group and a divided shape of the second pixel group are at least left-right symmetric or vertically symmetric. Image processing device.
請求項3ないし5のいずれか一項に記載の画像処理装置であって、
前記重心位置算出部は、前記各画素の入力階調値から算出した前記画素群の重心位置が
画素の中心と一致しない場合、当該算出した重心位置を所定の整数化処理方法を用いて整
数値化した位置を前記画素群の重心位置と決定する重心位置決定部を更に備えることを特
徴とする画像処理装置。
An image processing apparatus according to any one of claims 3 to 5,
When the barycentric position of the pixel group calculated from the input tone value of each pixel does not coincide with the center of the pixel, the barycentric position calculating unit calculates the calculated barycentric position as an integer value using a predetermined integerization processing method. An image processing apparatus, further comprising: a center-of-gravity position determination unit that determines the converted position as the center-of-gravity position of the pixel group.
請求項6に記載の画像処理装置であって、
前記重心位置決定部は、用いられる前記所定の整数化処理方法に応じ、前記第1の画素
群又は前記第2の画素群のいずれか一方の画素群について、一画素幅の半分の長さに相当
する値を前記算出された画素群の重心位置に加算または減算することを特徴とする画像処
理装置。
The image processing apparatus according to claim 6,
The center-of-gravity position determination unit sets the length of one pixel width to half the length of one of the first pixel group and the second pixel group according to the predetermined integer processing method used. An image processing apparatus, wherein a corresponding value is added to or subtracted from the calculated barycentric position of the pixel group.
請求項3ないし7のいずれか一項に記載の画像処理装置であって、
前記画素群の重心位置に前記階調変換マトリックスの中心を配置する配置部と、
前記配置された前記階調変換マトリックスに格納された所定の階調変換テーブルを参照
して、前記画素群の各画素の入力階調値を出力階調値に階調変換する階調変換部と、
をさらに備えることを特徴とする画像処理装置。
An image processing apparatus according to any one of claims 3 to 7,
An arrangement unit that arranges the center of the gradation conversion matrix at the center of gravity of the pixel group;
A gradation converter that refers to a predetermined gradation conversion table stored in the arranged gradation conversion matrix and converts the input gradation value of each pixel of the pixel group into an output gradation value; ,
An image processing apparatus further comprising:
入力画像を複数画素から構成される画素群に分割し、分割された各々の画素群に階調変
換マトリックスを適用することで、前記画素群に含まれる各画素の入力階調値を、出力画
像となる網点画像を構成するドットに対応する2種類以上の階調値を有する出力階調値に
階調変換する画像処理方法であって、
前記画素群に含まれる前記各画素の入力階調値を用いて当該画素群の重心位置を算出す
る重心位置算出工程と、
前記画素群に含まれる各画素が同じ入力階調値であったとき、算出された前記重心位置
が画素中心になる第1の画素群と、算出された前記重心位置が画素の境界になる第2の画
素群とに分割する画素群分割工程と、
前記各画素の入力階調値から算出した前記画素群の重心位置が画素の中心と一致しない
場合、当該算出した重心位置を所定の整数化処理方法を用いて整数値化した位置を前記画
素群の重心位置と決定する重心位置決定工程とを備え、
前記重心位置決定工程は、用いられる前記所定の整数化処理方法に応じ、前記第1の画
素群又は前記第2の画素群のいずれか一方の画素群について、一画素幅の半分の長さに相
当する値を前記算出された画素群の重心位置に加算または減算することを特徴とする画像
処理方法。
By dividing the input image into pixel groups composed of a plurality of pixels, and applying a tone conversion matrix to each of the divided pixel groups, the input tone value of each pixel included in the pixel group is output to the output image. An image processing method for performing gradation conversion into an output gradation value having two or more kinds of gradation values corresponding to dots constituting a halftone dot image,
A centroid position calculating step of calculating a centroid position of the pixel group using an input gradation value of each pixel included in the pixel group;
When each pixel included in the pixel group has the same input tone value, the calculated first barycentric position where the calculated barycentric position becomes the pixel center and the calculated barycentric position become a boundary between the pixels. A pixel group dividing step of dividing into two pixel groups;
When the barycentric position of the pixel group calculated from the input gradation value of each pixel does not coincide with the center of the pixel, a position obtained by converting the calculated barycentric position into an integer value using a predetermined integer processing method is used as the pixel group. A center of gravity position and a center of gravity position determination step for determining,
The center-of-gravity position determination step has a half length of one pixel width for one of the first pixel group and the second pixel group according to the predetermined integerization processing method used. An image processing method comprising adding or subtracting a corresponding value to the calculated barycentric position of the pixel group.
入力画像を複数画素から構成される画素群に分割し、分割された各々の画素群に階調変
換マトリックスを適用することで、前記画素群に含まれる各画素の入力階調値を、出力画
像となる網点画像を構成するドットに対応する2種類以上の階調値を有する出力階調値に
階調変換する画像処理プログラムであって、
前記画素群に含まれる前記各画素の入力階調値を用いて当該画素群の重心位置を算出す
る重心位置算出機能と、
前記画素群に含まれる各画素が同じ入力階調値であったとき、算出された前記重心位置
が画素中心になる第1の画素群と、算出された前記重心位置が画素の境界になる第2の画
素群とに分割する画素群分割機能と、
前記各画素の入力階調値から算出した前記画素群の重心位置が画素の中心と一致しない
場合、当該算出した重心位置を所定の整数化処理方法を用いて整数値化した位置を前記画
素群の重心位置と決定する重心位置決定機能とをコンピュータに実現させ、
前記重心位置決定機能は、用いられる前記所定の整数化処理方法に応じ、前記第1の画
素群又は前記第2の画素群のいずれか一方の画素群について、一画素幅の半分の長さに相
当する値を前記算出された画素群の重心位置に加算または減算することを特徴とする画像
処理プログラム。
By dividing the input image into pixel groups composed of a plurality of pixels, and applying a tone conversion matrix to each of the divided pixel groups, the input tone value of each pixel included in the pixel group is output to the output image. An image processing program that performs gradation conversion into an output gradation value having two or more kinds of gradation values corresponding to dots constituting a halftone dot image,
A center-of-gravity position calculation function for calculating a center-of-gravity position of the pixel group using an input gradation value of each pixel included in the pixel group;
When each pixel included in the pixel group has the same input tone value, the calculated first barycentric position where the calculated barycentric position becomes the pixel center and the calculated barycentric position become a boundary between the pixels. A pixel group dividing function for dividing into two pixel groups;
When the barycentric position of the pixel group calculated from the input gradation value of each pixel does not coincide with the center of the pixel, a position obtained by converting the calculated barycentric position into an integer value using a predetermined integer processing method is used as the pixel group. The computer realizes the center of gravity position and the center of gravity position determination function to determine
The center-of-gravity position determination function has a length of half of one pixel width for either one of the first pixel group or the second pixel group according to the predetermined integerization processing method used. An image processing program, wherein a corresponding value is added to or subtracted from the calculated barycentric position of the pixel group.
請求項10に記載の画像処理プログラムを記録したコンピュータ読み取り可能な記録媒
体。
A computer-readable recording medium on which the image processing program according to claim 10 is recorded.
JP2006005769A 2006-01-13 2006-01-13 Image processing apparatus, image processing method, image processing program, and recording medium recording the program Expired - Fee Related JP4742871B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006005769A JP4742871B2 (en) 2006-01-13 2006-01-13 Image processing apparatus, image processing method, image processing program, and recording medium recording the program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006005769A JP4742871B2 (en) 2006-01-13 2006-01-13 Image processing apparatus, image processing method, image processing program, and recording medium recording the program

Publications (2)

Publication Number Publication Date
JP2007188284A true JP2007188284A (en) 2007-07-26
JP4742871B2 JP4742871B2 (en) 2011-08-10

Family

ID=38343414

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006005769A Expired - Fee Related JP4742871B2 (en) 2006-01-13 2006-01-13 Image processing apparatus, image processing method, image processing program, and recording medium recording the program

Country Status (1)

Country Link
JP (1) JP4742871B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011253105A (en) * 2010-06-03 2011-12-15 Konica Minolta Business Technologies Inc Image forming apparatus, image forming method, and computer-readable recording medium with screen group recorded
JP2011257686A (en) * 2010-06-11 2011-12-22 Konica Minolta Business Technologies Inc Image forming apparatus, image forming method, computer-readable recording medium recording screen group and screen generating method
US8098394B2 (en) 2006-08-10 2012-01-17 Seiko Epson Corporation Image processing circuit and printing apparatus

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8098394B2 (en) 2006-08-10 2012-01-17 Seiko Epson Corporation Image processing circuit and printing apparatus
JP2011253105A (en) * 2010-06-03 2011-12-15 Konica Minolta Business Technologies Inc Image forming apparatus, image forming method, and computer-readable recording medium with screen group recorded
JP2011257686A (en) * 2010-06-11 2011-12-22 Konica Minolta Business Technologies Inc Image forming apparatus, image forming method, computer-readable recording medium recording screen group and screen generating method

Also Published As

Publication number Publication date
JP4742871B2 (en) 2011-08-10

Similar Documents

Publication Publication Date Title
JP4165570B2 (en) Image processing apparatus, image processing method, and image processing program
US8649061B2 (en) Laser print apparatus with dual halftones
US7286266B2 (en) Printer and image processing device for the same
JP4742871B2 (en) Image processing apparatus, image processing method, image processing program, and recording medium recording the program
JP2006067347A (en) Image forming apparatus, image forming method and image formation program
JP2023052886A (en) Image processing device, image processing method, and program
JP4539567B2 (en) Image processing apparatus, image processing method, image processing program, and recording medium recording the program
JP2001157056A (en) Method and device for producing halftone, and computer- readable recording medium with halftone making program thereon
US8867100B2 (en) Image quantization for digital printing
WO2005109851A1 (en) Image processing device, image processing method, and program
JP4315051B2 (en) Image processing apparatus, image processing method, and image processing program
JP2002059571A5 (en)
JPH0923335A (en) Picture processor
JP2004282344A (en) Image processing method
JP2004186910A (en) Error propagation gradation generation method, gradation image revelation method, error propagation gradation image revelation method and gradation generation encoder
JP4020115B2 (en) Electrophotographic image processing apparatus and method
JP2005341142A (en) Image processor, processing method and program, and recording medium with the program stored
JP4409883B2 (en) Image printing device
JP4492723B2 (en) Image processing apparatus, image processing method, and image processing program
JP2001069349A (en) Picture processing method, picture processor and recording medium
JP2022180776A (en) Image data processing apparatus
JP4222187B2 (en) Image processing apparatus, image processing method, and image processing program
JP3332433B2 (en) Pseudo color gradation expression method
JP2005039413A (en) Image processor, image processing method and program
JP2005269131A (en) Image processing apparatus, image processing method, and image processing program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080619

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110201

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110208

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110315

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20110412

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110425

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140520

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4742871

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees