JP2006093750A - Image processing apparatus and image processing method - Google Patents
Image processing apparatus and image processing method Download PDFInfo
- Publication number
- JP2006093750A JP2006093750A JP2004272670A JP2004272670A JP2006093750A JP 2006093750 A JP2006093750 A JP 2006093750A JP 2004272670 A JP2004272670 A JP 2004272670A JP 2004272670 A JP2004272670 A JP 2004272670A JP 2006093750 A JP2006093750 A JP 2006093750A
- Authority
- JP
- Japan
- Prior art keywords
- threshold
- threshold value
- image
- data
- pixel
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Facsimile Image Signal Circuits (AREA)
- Image Processing (AREA)
- Editing Of Facsimile Originals (AREA)
Abstract
Description
本発明は、閾値マトリクスを用いてディザ処理を行なう画像処理装置及び画像処理方法に関する。 The present invention relates to an image processing apparatus and an image processing method for performing dither processing using a threshold matrix.
画像処理装置で行われる画像処理の一つの形態として、原画像の階調値を画像出力装置で出力(表現)可能な階調値に変換して擬似的に再現するディザ法が知られている。ディザ法では、原画像を構成する各画素の階調値を、閾値マトリクスに配列された閾値データと比較することにより、出力画像の階調値を決定する。出力画像の階調値が2値となるものは2値ディザ法、多値となるものは多値ディザ法と呼ばれる。 As one form of image processing performed in an image processing apparatus, a dither method is known in which a gradation value of an original image is converted into a gradation value that can be output (expressed) by an image output apparatus and reproduced in a pseudo manner. . In the dither method, the gradation value of the output image is determined by comparing the gradation value of each pixel constituting the original image with threshold data arranged in a threshold matrix. An output image whose tone value is binary is called a binary dither method, and a multi-value tone is called a multi-value dither method.
図8は従来の画像処理装置の構成例を示す概略図である。図において、アドレス制御部101は、閾値格納メモリ102に対して閾値読み出しのための閾値格納メモリアドレス(以下、単に「アドレス」とも記す)を指定する。閾値格納メモリ102は、ディザ処理に用いられる閾値マトリクスの各位置(マトリクス要素)に対応する閾値データを記憶する。比較部103は、これに入力される入力画像データの各画素の階調値と、これに対応して閾値格納メモリ102から読み出された閾値データとを比較するとともに、この比較結果に基づいて階調変換された出力画像の画素データを生成する。
FIG. 8 is a schematic diagram showing a configuration example of a conventional image processing apparatus. In the figure, an address control unit 101 designates a threshold value storage memory address (hereinafter also simply referred to as “address”) for threshold value reading to the threshold
まず、上記ディザ法に基づく処理(ディザ処理)で使用される閾値マトリクス内に配列される閾値データが閾値格納メモリ102に格納される。この場合、閾値格納メモリ102において、1つのアドレスに1つの閾値データを格納することが公知となっている(例えば、特許文献1参照)。
First, threshold value data arranged in a threshold value matrix used in the process based on the dither method (dither process) is stored in the threshold
そして、実際にディザ処理を行う場合は、所定の周波数のクロックに同期してアドレス制御部101がアドレスを順に指定して閾値格納メモリ102から閾値データを順次読み出すとともに、この読み出した閾値データと入力画像の階調値とを比較部103で比較し、この比較結果に基づいて出力画像の階調値を生成する。これにより、代表的な2値ディザ法である組織的ディザ法では、例えば、原画像を4×4画素や8×8画素のブロックに分割し、各々のブロックごとに、入力画素の階調値がこれに対応するマトリクス位置の閾値データよりも大きい場合は白(1)、小さい場合は黒(0)とすることによって入力画像を2値化する。
When the dither processing is actually performed, the address control unit 101 sequentially designates addresses in order in synchronization with a clock having a predetermined frequency and sequentially reads the threshold data from the
ところで、入力画像の解像度(以下、「入力解像度」とも記す)と出力画像の解像度(以下、「出力解像度」とも記す)が同じ場合は、入力画素の数と出力画素の数が1:1の関係となる。そのため、ディザ処理を行う場合は、1つの入力画素を1つの閾値データと比較することになる。したがって、上記クロックに同期してリアルタイムにディザ処理を行うことができる。 By the way, when the resolution of the input image (hereinafter also referred to as “input resolution”) and the resolution of the output image (hereinafter also referred to as “output resolution”) are the same, the number of input pixels and the number of output pixels are 1: 1. It becomes a relationship. Therefore, when performing dither processing, one input pixel is compared with one threshold value data. Therefore, dithering can be performed in real time in synchronization with the clock.
しかしながら、入力解像度よりも出力解像度が高い場合や、入力画像を複数の画素からなるブロック単位でディザ処理する場合などでは、比較部103で入力画素の階調値と比較される閾値データが複数必要になる。そうした場合、上記従来技術のように1つのアドレス(1ワード分の閾値格納メモリ領域)に1つの閾値データを格納する方式では、閾値格納メモリ102からの閾値の読み出し動作に合わせてリアルタイムにディザ処理を行うことができなくなる。
However, when the output resolution is higher than the input resolution, or when the input image is dithered in units of blocks composed of a plurality of pixels, a plurality of threshold data to be compared with the gradation value of the input pixels by the
また、入力画像の解像度を変換して出力する場合に、2400×600dpi、1200×1200dpiなど複数の出力解像度に対応しなければならない場合がある。この場合、出力解像度に応じて使用する閾値データ数が異なるため、出力解像度が低い時には、使用しない閾値格納メモリ102が出来てしまうという問題がある。
Further, when the resolution of an input image is converted and output, it may be necessary to support a plurality of output resolutions such as 2400 × 600 dpi and 1200 × 1200 dpi. In this case, since the number of threshold data to be used differs depending on the output resolution, there is a problem that when the output resolution is low, a
本発明は上記事情に鑑みてなされたものであり、リアルタイムにディザ処理を行なうと共に、閾値データを格納する格納部の有効活用を図った画像処理装置及び画像処理方法を提供することを目的とする。 The present invention has been made in view of the above circumstances, and an object thereof is to provide an image processing apparatus and an image processing method that perform dither processing in real time and effectively use a storage unit that stores threshold data. .
かかる目的を達成するために本発明の画像処理装置は、入力画像の各画素の階調値を閾値マトリクスを用いたディザ処理により変換すると共に、前記入力画像の解像度を変換して出力する画像処理装置であって、複数の閾値マトリクスの閾値データを格納する閾値メモリと、出力する画像の解像度に応じて、前記複数の閾値マトリクスの閾値データを複数画素分読み出す読み出し手段と、前記複数画素分の前記複数の閾値マトリクスの閾値データを一時的に格納する第1の一時格納手段と、前記第1の一時格納手段から読み出された前記複数の閾値マトリクスの閾値データを、1画素ごとに格納する第2の一時格納手段と、使用する前記閾値マトリクスの閾値データを前記第2の一時格納手段から選択出力させる選択手段とを有する構成としている。 In order to achieve this object, the image processing apparatus of the present invention converts the gradation value of each pixel of the input image by dither processing using a threshold matrix, and converts the resolution of the input image and outputs the converted image. A threshold memory that stores threshold data of a plurality of threshold matrices, a reading unit that reads out the threshold data of the plurality of threshold matrices for a plurality of pixels according to the resolution of an image to be output; First temporary storage means for temporarily storing threshold data of the plurality of threshold matrixes, and threshold data of the plurality of threshold matrixes read from the first temporary storage means are stored for each pixel. A second temporary storage means; and a selection means for selectively outputting threshold data of the threshold matrix to be used from the second temporary storage means. There.
このように本発明は、出力する画像の解像度に応じて、複数の閾値マトリクスの閾値データを複数画素分読み出し、第1の一次格納手段と第2の一次格納手段とに順次格納することで、複数の閾値マトリクスの閾値データを、1画素ごとに格納した状態とする。これにより、入力画像に応じて使用する閾値マトリクスの閾値データを選択することができ、使用するスクリーンの枚数をメモリや一次格納手段を増やすことなく増やすことができる。 Thus, according to the present invention, the threshold data of a plurality of threshold matrixes are read for a plurality of pixels in accordance with the resolution of the output image, and sequentially stored in the first primary storage unit and the second primary storage unit, It is assumed that threshold data of a plurality of threshold matrixes are stored for each pixel. Thereby, threshold data of a threshold matrix to be used can be selected according to the input image, and the number of screens to be used can be increased without increasing the memory and the primary storage means.
上記の画像処理装置において、前記選択手段によって選択された前記閾値データと、前記入力画素の各画素の階調値と比較し、比較結果を出力する比較手段を有するとよい。 The image processing apparatus may include a comparison unit that compares the threshold data selected by the selection unit with a gradation value of each pixel of the input pixel and outputs a comparison result.
選択された閾値データと、入力画素の各画素の階調値と比較して出力することで、閾値マトリクスを用いたディザ処理により入力画像の各画素の階調値を変換することができる。 By comparing the selected threshold value data with the gradation value of each pixel of the input pixel and outputting the result, the gradation value of each pixel of the input image can be converted by dither processing using the threshold value matrix.
本発明の画像処理方法は、入力画像の各画素の階調値を閾値マトリクスを用いたディザ処理により変換すると共に、前記入力画像の解像度を変換して出力する画像処理方法であって、出力する画像の解像度に応じて、複数の閾値マトリクスの閾値データを複数画素分選択するステップと、前記複数の閾値マトリクスの閾値データを、1画素ごとに格納手段に格納するステップと、使用する前記閾値マトリクスの閾値データを前記格納手段から選択出力するステップと、を有している。 The image processing method of the present invention is an image processing method for converting a gradation value of each pixel of an input image by dither processing using a threshold matrix and converting the resolution of the input image and outputting the converted image. Selecting threshold data of a plurality of threshold matrices for a plurality of pixels in accordance with the resolution of the image; storing threshold data of the plurality of threshold matrices in a storage unit for each pixel; and the threshold matrix to be used Selecting and outputting the threshold value data from the storage means.
このように本発明は、出力する画像の解像度に応じて、複数の閾値マトリクスの閾値データを複数画素分読み出し、複数の閾値マトリクスの閾値データを、1画素ごとに格納した状態とする。これにより、入力画像に応じて使用する閾値マトリクスの閾値データを選択することができ、使用するスクリーンの枚数をメモリや一次格納手段を増やすことなく増やすことができる。 As described above, according to the present invention, the threshold data of a plurality of threshold matrices are read for a plurality of pixels in accordance with the resolution of the output image, and the threshold data of the plurality of threshold matrices are stored for each pixel. Thereby, threshold data of a threshold matrix to be used can be selected according to the input image, and the number of screens to be used can be increased without increasing the memory and the primary storage means.
本発明は、リアルタイムにディザ処理を行なうことができると共に、メモリの有効活用を図ることができる。 The present invention can perform dither processing in real time and can effectively use the memory.
添付図面を参照しながら本発明の好適な実施例を詳細に説明する。 Preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.
まず、図1を参照しながら本実施例の構成を説明する。図1において、原稿台1上に載置された原稿2は、光源及び走査ミラー等からなる走査光学系を介して、カラーCCDセンサ3を備えたイメージスキャナによりR(レッド),G(グリーン),B(ブルー)のアナログ画像信号として読み取られる。そして、上記カラーCCDセンサ3によって読み取られたR,G,Bのアナログ画像信号は、画像処理部4によってY(イエロ),M(マゼンタ),C(シアン),K(ブラック)の各色の画像形成ユニット5C,5M,5Y,5KのROS(Raster Output Scanner)7C,7M,7Y,7Kに各色の画像データが順次出力され、これらのROS7C,7M,7Y,7Kから画像データに応じて出射されるレーザビームが、それぞれの感光体ドラム6C,6M,6Y,6Kの表面に走査露光されて静電潜像が形成される。各感光体ドラム6C,6M,6Y,6K上に形成された静電潜像は、現像器8C,8M,8Y,8KによってそれぞれY,M,C,Kの各色のトナー像として現像される。
First, the configuration of the present embodiment will be described with reference to FIG. In FIG. 1, a
図2を参照しながら画像処理部4の構成について説明する。図2に示す画像処理部4は、入力画像データに対してディザ処理を施す処理部であり、入力画像データの解像度を変換して出力することができる。例えば、図2に示す画像処理部4は、解像度600dpi×600dpiの入力画像を、解像度1200dpi×2400dpi、又は1200dpi×1200dpiの出力画像に変換する。
The configuration of the
画像処理部4は、図2に示すようにアドレス制御部11と、閾値メモリ12と、バッファ0〜3と、バッファ4〜7と、第1セレクタ13と、第2セレクタ14と、比較器15とを備えている。
As shown in FIG. 2, the
図3に示すタイミングチャートを参照しながら画像処理部4の動作を説明する。図3に示すタイミングチャートにおいて、基準クロックCLKに同期してページシンクPS−i及びラインシンクLS−iが順に立ち上がると、ラインシンクLS−iの立ち上がりタイミングをトリガとして、入力画像の各画素の階調値データDATA−In[7:0]が1クロックCLKごとにバッファ0〜3に順次書き込まれる。アドレス制御部11が閾値メモリ12のアドレスを指定することで、閾値メモリ12の指定されたアドレスの閾値データがバッファ0〜3にそれぞれ記録される。本実施例では、1クロックで8ピクセル分の閾値データが読み出され、バッファ0〜3のいずれかに書き込まれる。すなわち、4クロック(図3に示すバッファ0〜3の書き込み信号)かけてバッファ0〜3に8ピクセル分の閾値データがそれぞれ書き込まれる。
The operation of the
バッファ0〜3に書き込まれた閾値データは、1クロックでバッファ4〜7に出力される(図3に示すバッファ4、5、6、7書き込み信号)。この時、バッファ0に書き込まれている閾値データは、バッファ4〜7の第1行目に書き込まれ、バッファ1に書き込まれている閾値データは、バッファ4〜7の第2行目に書き込まれ、バッファ2に書き込まれている閾値データは、バッファ4〜7の第3行目に書き込まれ、バッファ3に書き込まれている閾値データは、バッファ4〜7の第4行目に書き込まれる。
The threshold data written to the
第1セレクタ13は、バッファ4〜7を順次選択して、選択したバッファ4〜7に書き込まれた閾値データを読み出す(図3に示すバッファ4、5、6、7読み出し信号)。ある入力画像の1ピクセルをバッファ4に記録した閾値データと比較した場合、次の1ピクセルはバッファ5に記録した閾値データと、その次の1ピクセルはバッファ6に記録した閾値データと順次比較していく。
The
第2セレクタ14は、第1セレクタ13によって選択されたバッファ4〜7の閾値データのうち、比較部15で比較に使用する閾値データだけを選択して比較器14に出力する。例えば、入力画像の解像度が600dpi×600dpiで、解像度を1200dpi×2400dpiに変換する場合、図4(A)に示すように1ピクセルを2×4の閾値データと比較することになるので、バッファ4に書き込まれた閾値データがすべて必要となる。これに対し、入力画像の解像度を1200dpi×1200dpiに変換する場合、図4(B)に示すように1ピクセルを2×2の閾値と比較する。このためバッファ0〜3では、バッファ(0,1)、又は、バッファ(2,3)のいずれか一方を使用すればよいし、バッファ4〜7では、上半分又は下半分を使用すればよい。図5に入力画像の解像度を1200dpi×1200dpiに変換する場合に使用するバッファを示す。
The
比較器15は、入力した画像データと閾値データを比較することでディザ処理を行い、比較結果を出力データとして出力する。
The
従来の画像処理装置では、出力画像の解像度に合わせて、バッファの使用方法を変更することを行っていなかった。このため例えば、文字、線画用と、イメージ用の2つのスクリーンを用意するためには、入力画像の解像度を1200dpi×1200dpiに変換する場合でも、図6に示すように閾値メモリ12と、バッファ0〜3と、バッファ4〜7とをスクリーンの数に合わせてそれぞれ用意しなければなかった。また、閾値メモリ12に一つずつスクリーンを記録しているので、スクリーンの枚数を増やそうとすると、各スクリーンの設定サイズは閾値メモリ12の大きさによって決定されてしまう。
In the conventional image processing apparatus, the buffer usage method has not been changed in accordance with the resolution of the output image. Therefore, for example, in order to prepare two screens for characters, line drawings, and images, even when the resolution of the input image is converted to 1200 dpi × 1200 dpi, the
これに対し本実施例では、入力画像の解像度を1200dpi×1200dpiに変換する場合は図7に示すように複数のスクリーンを閾値メモリ12に格納しておく。本実施例ではスクリーン1とスクリーン2の2種類のスクリーンを閾値メモリ12に記録しておく。アドレス制御部1の制御により、スクリーン1の閾値データをバッファ0とバッファ1に、またスクリーン2の閾値データをバッファ2とバッファ3とに4クロックかけて順に書き込む。そして、4クロックに1回のタイミングでバッファ0〜3の値をすべてバッファ4〜7に書き込み、第2セレクタによってスクリーン1とスクリーン2の使用する方の閾値データを選択する。これにより、入力画像の解像度を1200dpi×1200dpiに変換する場合では、図6に示す構成よりも閾値メモリ12やバッファの数を低減させることができ、閾値メモリ12の構成を変更せずにスクリーンの枚数を増やすことができる。また、閾値メモリ12の大きさを複数のスクリーンを格納可能な大きさにしているので、スクリーンのサイズ設定を自由に設定することができる。
On the other hand, in this embodiment, when the resolution of the input image is converted to 1200 dpi × 1200 dpi, a plurality of screens are stored in the
上述した実施例は本発明の好適な実施の例である。但し、これに限定されるものではなく、本発明の要旨を逸脱しない範囲内において種々変形実施可能である。 The embodiment described above is a preferred embodiment of the present invention. However, the present invention is not limited to this, and various modifications can be made without departing from the scope of the present invention.
1 原稿台 2 原稿
3 カラーCCDセンサ 4 画像処理部
5C,5M,5Y,5K 画像形成ユニット
6C,6M,6Y,6K 感光体ドラム
7C,7M,7Y,7K ROS
8C,8M,8Y,8K 現像器 11 アドレス制御部
12、16 閾値メモリ 13 第1セレクタ
14 第2セレクタ 15 比較器
DESCRIPTION OF
8C, 8M, 8Y,
Claims (3)
複数の閾値マトリクスの閾値データを格納する閾値メモリと、
出力する画像の解像度に応じて、前記複数の閾値マトリクスの閾値データを複数画素分読み出す読み出し手段と、
前記複数画素分の前記複数の閾値マトリクスの閾値データを一時的に格納する第1の一時格納手段と、
前記第1の一時格納手段から読み出された前記複数の閾値マトリクスの閾値データを、1画素ごとに格納する第2の一時格納手段と、
使用する前記閾値マトリクスの閾値データを前記第2の一時格納手段から選択出力させる選択手段と、
を有することを特徴とする画像処理装置。 An image processing device that converts a gradation value of each pixel of an input image by dither processing using a threshold matrix, and converts and outputs the resolution of the input image,
A threshold memory for storing threshold data of a plurality of threshold matrices;
Reading means for reading out the threshold data of the plurality of threshold matrixes for a plurality of pixels according to the resolution of the image to be output;
First temporary storage means for temporarily storing threshold data of the plurality of threshold matrixes for the plurality of pixels;
Second temporary storage means for storing threshold data of the plurality of threshold matrixes read from the first temporary storage means for each pixel;
Selection means for selectively outputting threshold data of the threshold matrix to be used from the second temporary storage means;
An image processing apparatus comprising:
出力する画像の解像度に応じて、複数の閾値マトリクスの閾値データを複数画素分選択するステップと、
前記複数の閾値マトリクスの閾値データを、1画素ごとに格納手段に格納するステップと、
使用する前記閾値マトリクスの閾値データを前記格納手段から選択出力するステップと、
を有することを特徴とする画像処理方法。
An image processing method for converting a gradation value of each pixel of an input image by dither processing using a threshold matrix, and converting and outputting the resolution of the input image,
Selecting a plurality of pixels of threshold data of a plurality of threshold matrices according to the resolution of the image to be output;
Storing threshold data of the plurality of threshold matrices in a storage unit for each pixel;
Selecting and outputting threshold data of the threshold matrix to be used from the storage means;
An image processing method comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004272670A JP2006093750A (en) | 2004-09-21 | 2004-09-21 | Image processing apparatus and image processing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004272670A JP2006093750A (en) | 2004-09-21 | 2004-09-21 | Image processing apparatus and image processing method |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2006093750A true JP2006093750A (en) | 2006-04-06 |
Family
ID=36234354
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2004272670A Pending JP2006093750A (en) | 2004-09-21 | 2004-09-21 | Image processing apparatus and image processing method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2006093750A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007281870A (en) * | 2006-04-06 | 2007-10-25 | Konica Minolta Holdings Inc | Image forming apparatus, image formation method, and image forming program |
-
2004
- 2004-09-21 JP JP2004272670A patent/JP2006093750A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007281870A (en) * | 2006-04-06 | 2007-10-25 | Konica Minolta Holdings Inc | Image forming apparatus, image formation method, and image forming program |
JP4552882B2 (en) * | 2006-04-06 | 2010-09-29 | コニカミノルタホールディングス株式会社 | Image forming apparatus, image forming method, and image forming program |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5369982B2 (en) | Image processing apparatus and image processing method | |
JP2012231401A (en) | Image processing apparatus, image processing method, and computer program | |
JPH11187264A (en) | Method and device for processing image | |
JP2011139164A (en) | Image processing apparatus and processing method thereof | |
JP4096967B2 (en) | Image processing apparatus and image processing method | |
JP4395743B2 (en) | Image forming apparatus and positional deviation correction method | |
JP2006093750A (en) | Image processing apparatus and image processing method | |
JP2010118760A (en) | Image processing apparatus | |
JPH04335770A (en) | Delay device for picture data | |
JP2007072468A (en) | Color image forming apparatus and image forming method | |
KR100943257B1 (en) | Digital method of image display and digital display device | |
JP3353078B2 (en) | Image processing apparatus and method | |
JPH08223423A (en) | Image data processing method and image processor | |
JP3434355B2 (en) | Image forming device | |
JPH03297669A (en) | Image recorder | |
JP2006050415A (en) | Image processing apparatus and threshold data storage method | |
JP3943184B2 (en) | Image forming apparatus | |
JPS59170865A (en) | Color reproducing device | |
JP2005094403A (en) | Image processor | |
JPS58154966A (en) | Binary display device of video picture | |
JP3684061B2 (en) | Image processing method and apparatus | |
JPH04343572A (en) | Image processor | |
JP2006231854A (en) | Image formation device and its controlling method | |
JP2008035035A (en) | Image processing apparatus | |
JP2005094404A (en) | Image processor |