JP2006013773A - Image processor and method - Google Patents

Image processor and method Download PDF

Info

Publication number
JP2006013773A
JP2006013773A JP2004186426A JP2004186426A JP2006013773A JP 2006013773 A JP2006013773 A JP 2006013773A JP 2004186426 A JP2004186426 A JP 2004186426A JP 2004186426 A JP2004186426 A JP 2004186426A JP 2006013773 A JP2006013773 A JP 2006013773A
Authority
JP
Japan
Prior art keywords
output
matrix
gradation value
address
threshold
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
Application number
JP2004186426A
Other languages
Japanese (ja)
Inventor
Minoru Akiyama
実 秋山
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP2004186426A priority Critical patent/JP2006013773A/en
Publication of JP2006013773A publication Critical patent/JP2006013773A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Facsimile Image Signal Circuits (AREA)
  • Image Processing (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processor capable of coping with various matrix sizes without the need for increasing the capacity of a memory in use and without decreasing an output gradation value, and to provide an image processing method. <P>SOLUTION: A structure comprising a pair of a "threshold value" and an "output gradation value corresponding to the threshold value" is adopted for a correction table in a multi-value dither system, and the address of the memory for storing the correction table and data adopting the configuration are controlled by the number of threshold values per pixel or the number of threshold values in each pixel on the matrix. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、画像の色の濃淡変化を表す階調値を入力画像と出力画像との間で変更することにより画像の処理を行う画像処理装置および方法に関し、特に、補正テーブルを閾値と該閾値に対応してあらかじめ設定された出力階調値で構成することにより、メモリサイズを増加させず出力階調値をさげることなく、様々なマトリクスサイズに対応できるようにした画像処理装置および方法に関する。   The present invention relates to an image processing apparatus and method for processing an image by changing a gradation value representing a change in shade of color of an image between an input image and an output image. The present invention relates to an image processing apparatus and method that can be configured to correspond to various matrix sizes without increasing the memory size and reducing the output gradation value by configuring with output gradation values set in advance corresponding to the above.

一般に、コンピュータから送信された多値画像データを印刷装置などで画像出力する際に入力画像の階調値に対する出力画像の階調値の再現性を高める方法として多値ディザ方式があり、多値ディザ方式は入力階調値を出力階調値に補正する補正テーブルをm×nマトリクス状に配列することで階調を表現している。   In general, there is a multi-value dither method as a method for enhancing the reproducibility of the gradation value of the output image with respect to the gradation value of the input image when outputting the multi-value image data transmitted from the computer with a printing device or the like. In the dither method, gradation is expressed by arranging correction tables for correcting input gradation values to output gradation values in an m × n matrix.

多値ディザ方式による階調のマトリクス単位での表現によって、1ドット(画素)単位では再現できない階調がマトリクス単位で表現することが可能になる。つまり、3〜16階調程度の多階調とすることで、小さなマトリクスサイズで連続した階調を再現できるようにしている。   By expressing the gradation in the matrix unit by the multi-value dither method, the gradation that cannot be reproduced in the unit of one dot (pixel) can be expressed in the matrix unit. That is, continuous gradations can be reproduced with a small matrix size by using multiple gradations of about 3 to 16 gradations.

補正テーブルのマトリクスサイズは入力される画像データの種類や色などにより最適なサイズが異なるため上記多値ディザ方式の回路では複数のマトリクスサイズに対応するにあたり、大容量のメモリ素子が必要になる。   Since the optimum matrix size of the correction table differs depending on the type and color of input image data, the multi-value dither circuit requires a large-capacity memory element to support a plurality of matrix sizes.

大容量のメモリ素子は回路規模を増大させ、実装をより困難にすると共にコスト上昇の要因になり生産性に満足することができない。   A large-capacity memory device increases the circuit scale, makes mounting more difficult, increases costs, and cannot satisfy productivity.

特許文献1に開示された従来技術において、階調値変換にディザマトリクスを用いた場合、出力データの出力階調値に応じてディザマトリクステーブルとして使用するメモリ素子の制御信号、アドレスバス、データバスをコントロールする手段を設けることにより、様々な出力階調値に対応する階調変換回路が要するメモリ素子の容量を必要最低限にし、かつ低階調値でのディザマトリクスの面積を大きくできることから低階調値における出力画像の品位の向上を図ることを可能にしている。
特開2000−032264
In the prior art disclosed in Patent Document 1, when a dither matrix is used for gradation value conversion, a control signal, an address bus, and a data bus for a memory element used as a dither matrix table according to an output gradation value of output data By providing a control means, the memory element capacity required by the gradation conversion circuit corresponding to various output gradation values can be minimized, and the area of the dither matrix at low gradation values can be increased. It is possible to improve the quality of the output image in the gradation value.
JP2000-032264

しかしながら、特許文献1に示された従来技術においては、補正テーブルを画像出力装置の階調値に対応した閾値テーブルにすることでメモリ容量を削減し、マトリクスサイズを画像出力装置に応じて変更できるようにしているが、実装できる補正テーブルが限られてしまうほか、画像出力装置の階調値を小さくしなければマトリクスサイズを大きくすることができないという問題がある。   However, in the prior art disclosed in Patent Document 1, the correction table is a threshold value table corresponding to the gradation value of the image output apparatus, thereby reducing the memory capacity and changing the matrix size according to the image output apparatus. However, there are problems that the correction table that can be mounted is limited and that the matrix size cannot be increased unless the gradation value of the image output apparatus is reduced.

そこで、本発明は、閾値と閾値に対応した出力階調値により構成される補正テーブルを格納するメモリ内の格納アドレスとデータを1画素当たりの閾値数またはマトリクス上の各画素の閾値数で制御することによりメモリ容量を増加させず、出力階調値をさげることなく、さまざまなマトリクスサイズに対応できるようにした画像処理装置および方法を提供することを目的とする。   Therefore, the present invention controls the storage address and data in the memory storing the correction table composed of the threshold value and the output gradation value corresponding to the threshold value by the threshold number per pixel or the threshold number of each pixel on the matrix. Accordingly, an object of the present invention is to provide an image processing apparatus and method which can cope with various matrix sizes without increasing the memory capacity and without reducing the output gradation value.

上記目的を達成するため、請求項1の発明は、入力画像の各画素の入力階調値を所定のサイズのマトリクス単位で出力画像の各画素の出力階調値に補正する画像処理装置において、前記マトリクスのサイズに対応して前記入力画像の主走査方向および副走査方向にカウントを行い前記入力画像の画素が前記マトリクスのどの位置にあるかを示す位置情報を出力するマトリクスカウンタと、前記出力画像の1画素当たりの閾値数と前記マトリクスカウンタから出力された前記位置情報に基づき前記出力階調値を選択する選択信号およびアドレスを生成するアドレス生成手段と、各アドレスに前記出力階調値の1画素当たりの閾値数に対応する数の閾値と出力階調値との対を記憶し、前記アドレス生成手段で生成されたアドレスの指定により前記閾値および前記出力階調値を読み出す補正テーブルと、前記補正テーブルから読み出された閾値と前記入力画像の入力階調値とを比較する比較手段と、前記出力階調値の1画素当たりの閾値数および前記選択信号および前記比較手段の出力に基づき前記補正テーブルから読み出された出力階調値を選択する出力制御手段とを具備することを特徴とする。   In order to achieve the above object, an invention according to claim 1 is an image processing apparatus for correcting an input gradation value of each pixel of an input image to an output gradation value of each pixel of the output image in a matrix unit of a predetermined size. A matrix counter that counts in the main scanning direction and the sub-scanning direction of the input image corresponding to the size of the matrix and outputs position information indicating the position of the pixel of the input image in the matrix; and the output Address generating means for generating a selection signal and an address for selecting the output gradation value based on the threshold number per pixel of the image and the position information output from the matrix counter, and the output gradation value of each address A pair of threshold values and output gradation values corresponding to the number of threshold values per pixel is stored, and the address generation unit specifies the address generated by the address generation unit. A correction table for reading the value and the output gradation value, a comparison means for comparing the threshold value read from the correction table with the input gradation value of the input image, and a threshold value per pixel of the output gradation value Output control means for selecting an output gradation value read from the correction table based on the number, the selection signal, and the output of the comparison means.

また、請求項2の発明は、入力画像の各画素の入力階調値を所定のサイズのマトリクス単位で出力画像の各画素の出力階調値に補正する画像処理装置において、前記マトリクスのサイズに対応して前記入力画像の主走査方向および副走査方向にカウントを行い前記入力画像の画素が前記マトリクスのどの位置にあるかを示す位置情報を出力するマトリクスカウンタと、前記マトリクスカウンタから出力された前記位置情報に基づき予め設定された前記マトリクス上における前記出力画像の1画素当たりの閾値数を出力するとともに、基本アドレスを出力する基本アドレス生成手段と、前記基本アドレス生成手段から出力された基本アドレスに基づきアドレスを生成するアドレス生成手段と、各アドレスに前記出力階調値の閾値と出力階調値との対を記憶し、前記アドレス生成手段で生成されたアドレスの指定により前記閾値および前記出力階調値を読み出す補正テーブルと、前記補正テーブルから読み出された閾値と前記出力階調値を前記基本アドレス生成手段で生成された基本アドレスにしたがって並び替える並び替え手段と、前記並び替え手段により並び替えられた前記閾値と前記入力画像の入力階調値とを比較する比較手段と、前記基本アドレス生成手段から出力された閾値数および前記比較手段の出力に基づき前記並び替え手段により並び替えられた前記出力階調値を選択する出力制御手段とを具備することを特徴とする。   According to a second aspect of the present invention, in the image processing apparatus for correcting the input gradation value of each pixel of the input image to the output gradation value of each pixel of the output image in a matrix unit of a predetermined size, the matrix size is adjusted. Correspondingly, a matrix counter that counts in the main scanning direction and sub-scanning direction of the input image and outputs position information indicating the position of the pixel of the input image in the matrix, and output from the matrix counter A basic address generation unit that outputs a threshold number per pixel of the output image on the matrix set in advance based on the position information and outputs a basic address, and a basic address output from the basic address generation unit Address generation means for generating an address based on the output gradation value threshold value and output gradation value for each address A correction table that stores a pair and reads the threshold value and the output gradation value by designating an address generated by the address generation means; and the threshold value and the output gradation value read from the correction table are the basic address Reordering means for reordering according to the basic address generated by the generating means; comparing means for comparing the threshold value reordered by the reordering means with an input gradation value of the input image; and the basic address generating means Output control means for selecting the output gradation values rearranged by the rearrangement means based on the threshold number output from the output and the output of the comparison means.

また、請求項3の発明は、入力画像の各画素の入力階調値を所定のサイズのマトリクス単位で出力画像の各画素の出力階調値に補正する画像処理する画像処理装置において、前記マトリクスのサイズに対応して前記入力画像の主走査方向および副走査方向にカウントを行い前記入力画像の画素が前記マトリクスのどの位置にあるかを示す位置情報をマトリクスカウンタにより出力し、前記出力画像の1画素当たりの閾値数と前記マトリクスカウンタから出力された前記位置情報に基づき前記出力階調値を選択する選択信号およびアドレスをアドレス生成手段により生成し、各アドレスに前記出力階調値の1画素当たりの閾値数に対応する数の閾値と出力階調値との対を記憶し、前記アドレス生成手段で生成されたアドレスの指定により前記閾値および前記出力階調値を補正テーブルより読み出し、前記補正テーブルから読み出された閾値と前記入力画像の入力階調値とを比較手段により比較し、前記出力階調値の1画素当たりの閾値数および前記選択信号および前記比較手段の出力に基づき前記補正テーブルから読み出された出力階調値を選択することを特徴とする。   According to a third aspect of the present invention, there is provided an image processing apparatus for performing image processing for correcting an input gradation value of each pixel of an input image to an output gradation value of each pixel of the output image in a matrix unit of a predetermined size. In accordance with the size of the input image, counting is performed in the main scanning direction and the sub-scanning direction of the input image, and position information indicating the position of the pixel of the input image in the matrix is output by the matrix counter, and the output image Based on the threshold number per pixel and the position information output from the matrix counter, a selection signal and an address for selecting the output gradation value are generated by address generation means, and one pixel of the output gradation value is assigned to each address. A pair of threshold values and output gradation values corresponding to the number of threshold values per unit is stored, and the threshold value is specified by designating an address generated by the address generating unit. And the output gradation value is read from the correction table, the threshold value read from the correction table is compared with the input gradation value of the input image by the comparison means, and the number of threshold values per pixel of the output gradation value The output gradation value read from the correction table is selected based on the selection signal and the output of the comparison means.

また、請求項4の発明は、入力画像の各画素の入力階調値を所定のサイズのマトリクス単位で出力画像の各画素の出力階調値に補正する画像処理する画像処理方法において、前記マトリクスのサイズに対応して前記入力画像の主走査方向および副走査方向にカウントを行い前記入力画像の画素が前記マトリクスのどの位置にあるかを示す位置情報をマトリクスカウンタにより出力し、前記マトリクスカウンタから出力された前記位置情報に基づき予め設定された前記マトリクス上における前記出力画像の1画素当たりの閾値数を出力するとともに、基本アドレスを基本アドレス生成手段により出力し、前記基本アドレス生成手段から出力された基本アドレスに基づきアドレスをアドレス生成手段により生成し、各アドレスに前記出力階調値の閾値と出力階調値との対を記憶し、前記アドレス生成手段で生成されたアドレスの指定により前記閾値および前記出力階調値を補正テーブルにより読み出し、前記補正テーブルから読み出された閾値と前記出力階調値を前記基本アドレス生成手段で生成された基本アドレスにしたがって並び替え手段により並び替え、前記並び替え手段により並び替えられた前記閾値と前記入力画像の入力階調値とを比較手段により比較し、前記基本アドレス生成手段から出力された閾値数および前記比較手段の出力に基づき前記並び替え手段により並び替えられた前記出力階調値を選択することを特徴とする。   According to a fourth aspect of the present invention, there is provided an image processing method for performing image processing for correcting an input gradation value of each pixel of an input image to an output gradation value of each pixel of the output image in a matrix unit of a predetermined size. Corresponding to the size of the input image and counting in the main scanning direction and sub-scanning direction of the input image, the position information indicating the position of the pixel of the input image in the matrix is output by the matrix counter, from the matrix counter The threshold value per pixel of the output image on the matrix set in advance based on the output position information is output, and the basic address is output by the basic address generating means, and is output from the basic address generating means An address is generated by the address generation means based on the basic address, and the output gradation value is assigned to each address. A pair of a value and an output gradation value is stored, the threshold value and the output gradation value are read out by a correction table by designating an address generated by the address generation unit, and the threshold value read from the correction table and the threshold value The output gradation value is rearranged by the rearrangement unit according to the basic address generated by the basic address generation unit, and the threshold value rearranged by the rearrangement unit and the input gradation value of the input image are compared by the comparison unit. The comparison is performed, and the output gradation value rearranged by the rearrangement unit is selected based on the threshold number output from the basic address generation unit and the output of the comparison unit.

本発明によれば、入力画像データの入力階調値に対する出力階調値を算出して該出力階調値を用いることにより画像出力を行う多値ディザ方式におけるマトリクス状に配列された補正テーブルを閾値と閾値に対応した出力階調値とし、該補正テーブルを格納するメモリ内の格納アドレスとデータを入力画像の1画素当たりの閾値数、またはマトリクス上の各画素の閾値数で制御するように構成したので、メモリサイズを増加させず出力階調値をさげることなく、様々なマトリクスサイズに対応することが可能になるという効果を奏する。   According to the present invention, the correction table arranged in a matrix in the multi-value dither method for calculating the output gradation value for the input gradation value of the input image data and outputting the image by using the output gradation value is provided. The threshold value and the output gradation value corresponding to the threshold value are set, and the storage address and data in the memory storing the correction table are controlled by the threshold number per pixel of the input image or the threshold number of each pixel on the matrix. Since it is configured, it is possible to deal with various matrix sizes without increasing the memory size and without reducing the output gradation value.

以下、本発明に係わる画像処理装置および方法の一実施例を添付図面を参照して詳細に説明する。   Hereinafter, an embodiment of an image processing apparatus and method according to the present invention will be described in detail with reference to the accompanying drawings.

図1は、この発明に係わる画像処理装置および方法を適用して構成した装置の構成図である。   FIG. 1 is a block diagram of an apparatus configured by applying an image processing apparatus and method according to the present invention.

コンピュータ(以下、「PC」という)から送信された多値画像データを出力する場合に、入力された多値画像データにより近い階調で出力を行う多値ディザ方式があり、この多値ディザ方式における入力された多値画像データの入力階調値を出力階調値に補正する補正テーブルがある。補正テーブルはm×nマトリクス状に配列することでマトリクス単位で階調を表現できるようにしている。   When outputting multi-value image data transmitted from a computer (hereinafter referred to as “PC”), there is a multi-value dither method for outputting at a gradation closer to the input multi-value image data. This multi-value dither method There is a correction table for correcting the input gradation value of the input multi-valued image data to the output gradation value. The correction table is arranged in an m × n matrix so that gradation can be expressed in matrix units.

図1において、この画像処理装置の構成図は、マトリクスカウンタ101、アドレス生成部102、メモリ103、データ比較部104、出力制御部105を具備して構成される。   1, the configuration diagram of the image processing apparatus includes a matrix counter 101, an address generation unit 102, a memory 103, a data comparison unit 104, and an output control unit 105.

マトリクスカウンタ101は、あらかじめ設定されたm×nのマトリクスサイズ(m≠n or m=n)に従って主走査と副走査方向の両方向に順次、カウントしていくことで多値ディザ方式により処理を行う入力画像データのマトリクス上の配置場所を示しているマトリクスIDを出力するものである。   The matrix counter 101 performs processing by the multi-value dither method by sequentially counting in both the main scanning direction and the sub-scanning direction according to a preset m × n matrix size (m ≠ n or m = n). A matrix ID indicating the location of the input image data on the matrix is output.

アドレス生成部102は、マトリクスカウンタ101で出力したマトリクスIDと1画素当たりに設定された閾値の数量(以下、「閾値数」という)に基づいてアドレスとセレクト信号に変換して出力するものである。   The address generation unit 102 converts an address and a select signal based on the matrix ID output from the matrix counter 101 and the number of threshold values set per pixel (hereinafter referred to as “threshold number”), and outputs the converted address. .

メモリ103は、アドレス生成部102で出力されたアドレスに格納されている閾値と出力階調値から構成されている補正テーブルを閾値データ0〜15と出力階調値データ0〜15として出力するものである。   The memory 103 outputs a correction table composed of threshold values and output gradation values stored in the addresses output from the address generation unit 102 as threshold data 0 to 15 and output gradation value data 0 to 15 It is.

このときの閾値データ0、閾値データ1、・・・、閾値データ15それぞれは「12」「20」などの具体的な数字であり、出力階調値データ0、出力階調値データ1、・・・、出力階調値データ15それぞれも同様に具体的な数字である。   Threshold data 0, threshold data 1,..., Threshold data 15 at this time are specific numbers such as “12” and “20”, and output gradation value data 0, output gradation value data 1,. Each of the output gradation value data 15 is also a specific number similarly.

例えば、補正テーブルの一行一列目の閾値データと出力階調値データはそれぞれ「8」「16」のように格納されている。(以下、同様の記述)
データ比較部104は、上記多値ディザ処理を行う入力画像データとメモリ103から出力された閾値データを比較して比較した結果を比較対象となった閾値データ数だけ出力するものである。
For example, threshold data and output gradation value data in the first row and first column of the correction table are stored as “8” and “16”, respectively. (Hereafter, the same description)
The data comparison unit 104 compares the input image data to be subjected to the multi-value dither processing with the threshold data output from the memory 103, and outputs the comparison result for the number of threshold data to be compared.

出力制御部105は、アドレス生成部102に入力した1画素当たりの閾値数とアドレス生成部102により出力したセレクト信号とデータ比較部104の比較結果とによってメモリ103から出力した出力階調値データを選択して出力するものである。   The output control unit 105 outputs the output gradation value data output from the memory 103 based on the threshold number per pixel input to the address generation unit 102, the select signal output from the address generation unit 102, and the comparison result of the data comparison unit 104. Select and output.

次に、上記構成による処理内容を説明する。   Next, the processing content by the said structure is demonstrated.

ここで、PCにから入力される画像データの階調値を256階調(8bit)、プリンタ等の画像出力装置にから出力される画像データの階調値を16階調(4bit)、1画素あたりの閾値数が16の時の最大マトリクスサイズ64画素とし、1画素あたりの閾値数が2の場合、最大マトリクスサイズ512画素とする。   Here, the gradation value of the image data input from the PC is 256 gradations (8 bits), the gradation value of the image data output from the image output device such as a printer is 16 gradations (4 bits), one pixel. When the threshold number per pixel is 16, the maximum matrix size is 64 pixels. When the threshold number per pixel is 2, the maximum matrix size is 512 pixels.

このとき、メモリの容量は「64画素×((8bit+4bit)×16対)」で「12288bit」である。   At this time, the capacity of the memory is “64 pixels × ((8 bits + 4 bits) × 16 pairs)” and “12288 bits”.

256階調の画像データが入力されると、マトリクスカウンタ101は、マトリクスのサイズに従って主走査、副走査方向にカウントを行い、入力された画像データがマトリクス上のどの位置であるかを示すマトリクスIDを出力する。その値は、0から「マトリクスサイズ−1」となるので全部で9bit分のデータとして出力される。   When 256-gradation image data is input, the matrix counter 101 counts in the main scanning and sub-scanning directions according to the size of the matrix, and indicates a matrix ID indicating the position of the input image data on the matrix. Is output. Since the value changes from 0 to “matrix size−1”, it is output as data of 9 bits in total.

マトリクスカウンタ101により出力されたマトリクスIDをアドレス生成部102で1画素あたりの閾値数に従ってアドレスとセレクト信号に変換して出力を行う。   The matrix ID output from the matrix counter 101 is converted into an address and a select signal according to the threshold number per pixel by the address generation unit 102 and output.

例えば、上記に示す1画素あたりの閾値数が「16」の場合においては、マトリクスIDのbit8〜bit0のうちbit5〜bit0までがアドレスであり、1画素あたりの閾値数が「8」の時は、マトリクスIDのbit6〜bit1がアドレスであってbit0がセレクト信号である。1画素あたりの閾値数が「4」の時は、マトリクスIDのbit7〜bit2がアドレスであってbit1とbit0がセレクト信号であり、1画素あたりの閾値数が「2」の時は、マトリクスIDのbit8〜bit3がアドレスであってbit2〜bit0がセレクト信号である。   For example, in the case where the threshold number per pixel is “16” as described above, bits 5 to 0 of the matrix ID bits 8 to 0 are addresses, and when the threshold number per pixel is “8” , Matrix ID bits 6 to 1 are addresses and bit 0 is a select signal. When the threshold number per pixel is “4”, bits 7 to 2 of the matrix ID are addresses, and bit 1 and bit 0 are select signals. When the threshold number per pixel is “2”, the matrix ID Bits 8 to 3 are addresses, and bits 2 to 0 are select signals.

アドレス生成部102により変換されたアドレスにしたがって、メモリ103において閾値と画像を出力する際の階調値である出力階調値の対により構成される補正テーブルを閾値データ0〜15、出力階調値データ0〜15として出力する。このときの補正テーブルの構成を図6に示す。   According to the address converted by the address generation unit 102, a correction table constituted by a pair of threshold value and output tone value which is a tone value when outputting an image in the memory 103 is represented by threshold data 0 to 15, output tone Output as value data 0-15. The configuration of the correction table at this time is shown in FIG.

出力された閾値データ0〜15と入力画像データをデータ比較部104で受け取る。受け取った双方のデータ同士を比較し、その結果を比較結果0〜15として出力する。   The data comparison unit 104 receives the output threshold data 0 to 15 and the input image data. Both received data are compared, and the result is output as comparison results 0-15.

そして、出力制御部105でアドレス生成部102からのセレクト信号、メモリ103からの出力階調値データ0〜15、データ比較部104からの比較結果0〜15をそれぞれ受けて、また1画素当たりの閾値数を考慮して出力画像データとして出力を行う。   The output control unit 105 receives the select signal from the address generation unit 102, the output gradation value data 0 to 15 from the memory 103, and the comparison results 0 to 15 from the data comparison unit 104. Output as output image data in consideration of the threshold number.

上記に示す例のうち、1画素あたりの閾値数が「16」である場合には、セレクト信号は存在しない状態(無効の状態)となるため、この場合には比較結果0〜15によってメモリ103から出力される出力階調値データ0〜15に基づいて出力画像を制御する。   In the example shown above, when the number of thresholds per pixel is “16”, the select signal does not exist (invalid state). The output image is controlled based on the output gradation value data 0 to 15 output from.

図2は、この発明に係わる画像処理装置のアドレス生成部102の内部構造を示す図である。   FIG. 2 is a diagram showing the internal structure of the address generation unit 102 of the image processing apparatus according to the present invention.

図2には、マトリクスID10、1画素当たりの閾値数11、セレクト信号12、アドレス13、セレクタ(14−A〜14−F)、エンコーダ15を具備して構成されている。   FIG. 2 includes a matrix ID 10, a threshold number 11 per pixel, a select signal 12, an address 13, selectors (14 -A to 14 -F), and an encoder 15.

マトリクスID10は、図1に示すマトリクスカウンタ101で出力されたマトリクス上の配置場所を示しているIDである。   The matrix ID 10 is an ID indicating an arrangement location on the matrix output by the matrix counter 101 shown in FIG.

1画素当たりの閾値11は、あらかじめ設定された閾値が入力される。   A preset threshold value is input as the threshold value 11 per pixel.

セレクト信号12は、アドレス生成部103で加工された結果の一つとして出力される信号である。   The select signal 12 is a signal output as one of the results processed by the address generation unit 103.

アドレス13は、セレクタ(14−A〜14−F)により出力された5つの出力データをあわせたものである。   Address 13 is a combination of the five output data output by the selectors (14-A to 14-F).

セレクタ(14−A〜14−F)は、マトリクスIDとエンコーダ15からの信号を受け付けてセレクトし、アドレス信号を出力するものである。   The selectors (14-A to 14-F) receive and select the matrix ID and the signal from the encoder 15, and output an address signal.

エンコーダ15は、1画素あたりの閾値数の入力を受けてあらかじめ設定した閾値数に対するエンコード値に基づいてエンコードを行うものである。   The encoder 15 receives an input of a threshold number per pixel and performs encoding based on an encoding value for a preset threshold number.

ここで、図1に設定した値を用いた場合、入力されるマトリクスID10の値は、0から「マトリクスサイズ−1」となるので「9bit」としてマトリクスカウンタ101から出力されてくる。これを[8:0]と表す。つまり、bit8、bit7、bit6、・・・、bit1、bit0のことである。   Here, when the value set in FIG. 1 is used, the input matrix ID 10 value is changed from 0 to “matrix size−1”, so that it is output from the matrix counter 101 as “9 bits”. This is represented as [8: 0]. That is, bit 8, bit 7, bit 6,..., Bit 1, bit 0.

さらに、1画素あたりの閾値数を「2」とした場合、上記よりマトリクスIDのbit2〜bit0がセレクト信号となりbit8〜bit3がアドレスとなるので、セレクト信号12は、[2:0]と表すことができ、このときのセレクト信号12は、マトリクスIDのbit2〜bit0が出力される。   Furthermore, when the threshold number per pixel is “2”, the bit 2 to bit 0 of the matrix ID is the select signal and the bits 8 to 3 are the address from the above, so the select signal 12 is expressed as [2: 0]. As the select signal 12 at this time, bits 2 to 0 of the matrix ID are output.

これらによってアドレス生成部102では、マトリクスIDと1画素あたりの閾値数とを入力値として、セレクト信号とアドレスを生成することができるようになる。   Thus, the address generation unit 102 can generate a select signal and an address using the matrix ID and the threshold number per pixel as input values.

図3は、この発明に係わる画像処理装置の出力制御部105の内部構造を示す図である。   FIG. 3 is a diagram showing the internal structure of the output control unit 105 of the image processing apparatus according to the present invention.

図3には、1画素あたりの閾値数21、セレクト信号22が入力され、出力階調値データ23が出力されるまでの処理構造を示しており、デコーダ24、論理積回路A(25−A〜25−P)、論理積回路B(26−A〜26−O)、マスク(27−A〜27−P)、論理和回路28を具備して構成されている。   FIG. 3 shows a processing structure from when the threshold number 21 per pixel and the select signal 22 are input until the output gradation value data 23 is output. The decoder 24, the AND circuit A (25-A). 25-P), an AND circuit B (26-A to 26-O), a mask (27-A to 27-P), and an OR circuit 28.

デコーダ24は、1画素あたりの閾値数とセレクト信号を入力データとして図4に示す機能表に基づいてデコードを行う。例えば、1画素あたりの閾値数を「16」、セレクト信号が「XXX」である場合には、デコーダの出力データ(Y0〜Y15)として全て「1」が出力される。また、1画素あたりの閾値数を「2」、セレクト信号が「000」である場合には、デコーダの出力データY0,Y1が共に「1」であり、その他の出力データ(Y2〜Y15)が「0」が出力される。「X」は「0」または「1」のどちらの値でも無視されることを意味する。   The decoder 24 performs decoding based on the function table shown in FIG. 4 using the threshold value per pixel and the select signal as input data. For example, when the threshold number per pixel is “16” and the select signal is “XXX”, all “1” is output as the output data (Y0 to Y15) of the decoder. When the threshold number per pixel is “2” and the select signal is “000”, the decoder output data Y0 and Y1 are both “1”, and the other output data (Y2 to Y15) are “0” is output. “X” means that any value of “0” or “1” is ignored.

論理積回路A(25−A〜25−P)は、デコーダ24の出力とデータ比較部104により比較された結果を入力データとして論理積演算を行う。   The logical product circuit A (25-A to 25-P) performs a logical product operation using the result of comparison between the output of the decoder 24 and the data comparison unit 104 as input data.

論理積回路B(26−A〜26−O)は、論理積回路Aの出力データのうち隣接する2つのデータを入力データとして否定演算と論理積演算を行うものである。   The logical product circuit B (26-A to 26-O) performs a negative operation and a logical product operation using two adjacent data among the output data of the logical product circuit A as input data.

例えば、論理積回路B(26−A)は、デコーダ24の出力データY0と比較結果のbit0のデータとを入力として論理積演算した論理積回路A(25−A)の出力データと、デコーダ24の出力データY1と比較結果のbit1のデータとを入力として論理積演算した論理積回路A(25−B)の出力結果を否定演算したものとを論理積演算したデータを出力する。   For example, the AND circuit B (26-A) receives the output data Y0 of the decoder 24 and the bit 0 data of the comparison result as inputs, and outputs the output data of the AND circuit A (25-A) and the decoder 24. Output data Y1 and bit 1 data of the comparison result are input, and data obtained by performing a logical AND operation on the output result of the logical product circuit A (25-B) obtained by performing a logical AND operation is output.

マスク(27−A〜27−P)は、メモリ103からの出力階調値データと論理積回路Bの出力データとを入力データとして図5に示す機能表に基づく演算を行う。   The masks (27-A to 27-P) perform an operation based on the function table shown in FIG. 5 using the output gradation value data from the memory 103 and the output data of the AND circuit B as input data.

例えば、出力階調値データが「D」であり、論理積回路Bの出力データが「1」である場合には、マスクの出力データとして「D」が出力される。つまり入力されてきた出力階調値データそのままをマスクの出力データにする。   For example, when the output gradation value data is “D” and the output data of the AND circuit B is “1”, “D” is output as the mask output data. That is, the input output gradation value data as it is is used as mask output data.

論理和回路28は、マスク(27−A〜27−P)から出力されたデータを入力データとし、論理和演算を行う。   The OR circuit 28 performs an OR operation using the data output from the masks (27-A to 27-P) as input data.

これにより、出力階調値データつまり、16階調に変換された出力画像データを出力することができるようになる。   Thus, output gradation value data, that is, output image data converted into 16 gradations can be output.

図4は、出力制御部105におけるデコーダ304の機能表である。   FIG. 4 is a function table of the decoder 304 in the output control unit 105.

図4において、図3に示した出力制御部105の内部構造におけるデコーダ24の機能表であり、1画素当たりの閾値を「A」とし、図3のセレクト信号23を「B[2:0]」とし、デコーダ24から出力されるデータ(Y0〜Y15)を一覧に示している。   4 is a functional table of the decoder 24 in the internal structure of the output control unit 105 shown in FIG. 3. The threshold value per pixel is “A”, and the select signal 23 in FIG. 3 is “B [2: 0]”. The data (Y0 to Y15) output from the decoder 24 is shown in the list.

例えば、機能表の最上段に示すレコードとして「A」が「16」であり、「B[2:0]」が「XXX」である場合にデコーダ24から出力されるデータ(Y0〜Y15)全てが「1」であることを示している。   For example, all the data (Y0 to Y15) output from the decoder 24 when “A” is “16” and “B [2: 0]” is “XXX” as the record shown at the top of the function table. Is “1”.

図5は、出力制御部105におけるマスク(307−A〜307−P)の機能表である。   FIG. 5 is a function table of the masks (307-A to 307-P) in the output control unit 105.

図5には、図3に示したマスク(27−A〜27−P)の機能表を示している。   FIG. 5 shows a function table of the masks (27-A to 27-P) shown in FIG.

例えば、マスク(27−A〜27−P)に入力される出力階調値データを「D」とし、論理積回路Bからの出力されるデータを「EN」とし、演算結果を「Y」とした場合に「EN」の値が「0(ゼロ)」のとき演算結果「Y」も「0(ゼロ)」であり、「EN」の値が「1」のとき演算結果「Y」は出力階調値「D」であることを示している。   For example, the output gradation value data input to the masks (27-A to 27-P) is “D”, the data output from the AND circuit B is “EN”, and the operation result is “Y”. When the “EN” value is “0 (zero)”, the calculation result “Y” is also “0 (zero)”, and when the “EN” value is “1”, the calculation result “Y” is output. It indicates that the gradation value is “D”.

すなわち、論理積回路Bから出力されるデータ「EN」が「1」である場合には、出力階調値データをそのままマスク(27−A〜27−P)の出力データとすることを示している。   That is, when the data “EN” output from the AND circuit B is “1”, the output gradation value data is used as output data of the mask (27-A to 27-P) as it is. Yes.

図6は、この発明に係わるメモリ103の内容を示す図である。   FIG. 6 shows the contents of the memory 103 according to the present invention.

図6には、メモリの格納データとして閾値と閾値に対する出力階調値を対に持っている場合を示している。   FIG. 6 shows a case where the threshold value and the output gradation value with respect to the threshold value are paired as stored data in the memory.

例えば、1画素あたりの閾値数が「16」のとき、マトリクスIDがn(n:0〜63)である場合に補正テーブルは、「閾値:16n〜16n+15」「出力階調値:16n〜16n+15」となり、閾値数が「8」のとき、マトリクスIDがn(n:0〜127)である場合に補正テーブルは、「閾値:8n〜8n+7」「出力階調値:8n〜8n+7」となり、閾値数が「4」のとき、マトリクスIDがn(n:0〜255)である場合に補正テーブルは、「閾値:4n〜4n+3」「出力階調値:4n〜4n+3」となり、マトリクスIDがn(n:0〜511)である場合に補正テーブルは、「閾値:2n〜2n+1」「出力階調値:2n〜2n+1」となる。   For example, when the threshold number per pixel is “16” and the matrix ID is n (n: 0 to 63), the correction table is “threshold value: 16n to 16n + 15” and “output gradation value: 16n to 16n + 15”. When the threshold number is “8” and the matrix ID is n (n: 0 to 127), the correction table is “threshold value: 8n to 8n + 7” and “output gradation value: 8n to 8n + 7”. When the threshold number is “4” and the matrix ID is n (n: 0 to 255), the correction table is “threshold: 4n to 4n + 3” and “output gradation value: 4n to 4n + 3”, and the matrix ID is When n (n: 0 to 511), the correction table is “threshold value: 2n to 2n + 1” and “output gradation value: 2n to 2n + 1”.

つまり、閾値と閾値に対する出力階調値を対に持つことで連続しない入力階調値に対しても同じ出力階調値を必要とする補正テーブルを設定することが可能となる。   In other words, it is possible to set a correction table that requires the same output tone value even for non-continuous input tone values by having a pair of threshold values and output tone values for the threshold values.

図7は、入力階調値が連続しない場合の例をグラフィカルに示している図である。   FIG. 7 is a diagram graphically showing an example when the input gradation values are not continuous.

図7におけるような入力階調値が連続しない場合に、補正テーブルを閾値のみで構成すると、1つの出力階調値に対して特定の1つの閾値しか設定することができない。   When the input tone values as shown in FIG. 7 are not continuous, if the correction table is configured with only threshold values, only one specific threshold value can be set for one output tone value.

このような連続しない入力階調値においては、入力階調値において同じ出力階調値を必要とする場合の補正テーブルを設定することはできない。   With such non-continuous input tone values, it is not possible to set a correction table when the same output tone value is required for the input tone value.

図8は、入力階調値が連続しない場合の例を定量表現した図である。   FIG. 8 is a diagram that quantitatively represents an example when the input tone values are not continuous.

図8には、図7で示した連続しない入力階調値のデータが入力された場合の閾値に対する出力階調値を定量的に表現している。   FIG. 8 quantitatively represents the output tone value with respect to the threshold when the data of the non-continuous input tone value shown in FIG. 7 is input.

例えば、閾値が「80」である場合では出力階調値が「6」であることを示しており、また閾値が「112」である場合においても出力階調値が「6」であることを示している。これにより閾値に対して出力階調値が連続していないことを示しており、本発明ではこの場合においても補正テーブルを閾値と閾値に対する出力階調値で構成しているので入力階調値に対して同じ出力階調値を必要とする補正テーブルを設定することができるようになる。   For example, when the threshold value is “80”, the output gradation value is “6”. When the threshold value is “112”, the output gradation value is “6”. Show. This indicates that the output gradation values are not continuous with respect to the threshold value. In this case, the correction table is composed of the threshold value and the output gradation value with respect to the threshold value in this case as well. On the other hand, a correction table that requires the same output gradation value can be set.

図9と図10は、一般的な多値ディザ方式における出力画像の閾値の偏りを示す図である。   FIG. 9 and FIG. 10 are diagrams showing the bias of the output image threshold in a general multi-value dither method.

図9において、入力階調値の低濃度領域に多くの閾値を必要としており、それに対して中高濃度領域ではほとんど閾値を必要としない場合のグラフを示している。   FIG. 9 shows a graph in the case where many threshold values are required in the low density region of the input gradation value, whereas almost no threshold value is required in the medium and high density regions.

図10において、入力階調値の高濃度領域に多くの閾値を必要としており、それに対して低中濃度領域ではほとんど閾値を必要としない場合のグラフを示している。   FIG. 10 shows a graph in the case where many threshold values are required in the high density region of the input gradation value, whereas in contrast, in the low and medium density regions, almost no threshold value is required.

以上の実施例1の構成と処理によって、本発明の画像処理装置では、図7に示すような入力画像データの入力階調値が連続しない場合であっても、連続しない入力階調値に対して同じ出力階調値を必要とする補正テーブルを設定することが可能になる。   With the configuration and processing of the first embodiment described above, in the image processing apparatus of the present invention, even when the input tone values of the input image data as shown in FIG. Therefore, it is possible to set a correction table that requires the same output gradation value.

さらに、1画素あたりの閾値数でディザマトリクスのサイズを決定し、1画素あたりの閾値数を「(2のn乗)の逆数」とするような構成にしているため、出力階調値を小さくすることなく、ディザマトリクスサイズを(2のn乗)倍にすることが可能となる。   Furthermore, since the dither matrix size is determined by the number of thresholds per pixel and the number of thresholds per pixel is set to “reciprocal of (2 to the power of n)”, the output gradation value is reduced. Without this, the dither matrix size can be increased to (2 to the power of n).

図11は、この発明に係わる実施例2における画像処理装置および方法を適用して構成した装置の構成図である。   FIG. 11 is a block diagram of an apparatus configured by applying the image processing apparatus and method according to the second embodiment of the present invention.

図11において、マトリクスカウンタ201、基本アドレス生成部202、アドレス生成部203、メモリ204、データ並び替え部205、データ比較部206、出力制御部207を具備して構成される。   11 includes a matrix counter 201, a basic address generation unit 202, an address generation unit 203, a memory 204, a data rearrangement unit 205, a data comparison unit 206, and an output control unit 207.

マトリクスカウンタ201は、あらかじめ設定されたマトリクスサイズに従って主走査と副走査の両方向に順次、カウントしていくことで多値ディザ方式により処理を行う入力画像データのマトリクス上の配置場所を示しているマトリクスIDを出力するものである。   The matrix counter 201 is a matrix indicating an arrangement location on the matrix of input image data to be processed by the multi-value dither method by sequentially counting in both the main scanning direction and the sub-scanning direction according to a preset matrix size. ID is output.

基本アドレス生成部202は、あらかじめマトリクス上の各画素における閾値数を保持しておき、マトリクスカウンタ201により出力されたマトリクスIDに従って閾値数データと基本アドレスを出力する。   The basic address generation unit 202 holds the threshold number in each pixel on the matrix in advance, and outputs threshold number data and a basic address according to the matrix ID output by the matrix counter 201.

アドレス生成部203は、基本アドレス生成部202により生成されたアドレスを上位ビットと下位ビットに分けて、上位ビットを下位ビットに従ってアドレスを出力する。   The address generation unit 203 divides the address generated by the basic address generation unit 202 into upper bits and lower bits, and outputs the addresses according to the lower bits.

メモリ204は、アドレス生成部203により出力されたアドレスそれぞれにあらかじめ格納されている閾値と出力階調値をそれぞれ出力する。   The memory 204 outputs a threshold value and an output gradation value stored in advance at each address output by the address generation unit 203.

データ並び替え部205は、メモリ204により出力されたアドレスそれぞれに対する閾値と出力階調値を基本アドレス生成部で生成した基本アドレスに従って並び替えを行い、並び替え後の閾値データと出力階調値データをそれぞれ出力する。   The data rearrangement unit 205 rearranges the threshold value and the output gradation value for each address output from the memory 204 according to the basic address generated by the basic address generation unit, and the rearranged threshold value data and output gradation value data. Are output respectively.

データ比較部206は、入力された画像データとデータ並び替え部205によって並び替えが行われた閾値データそれぞれに対して比較し、それぞれの比較結果を出力するものである。   The data comparison unit 206 compares the input image data with the threshold value data rearranged by the data rearrangement unit 205, and outputs each comparison result.

出力制御部207は、データ並び替え部205により並び替えが行われた後の出力階調値データとデータ比較部206により比較された結果を受けて、出力データの制御を行い、出力画像データを出力するものである。   The output control unit 207 receives the result of comparison by the data comparison unit 206 with the output gradation value data after the data rearrangement unit 205 performs the rearrangement, controls the output data, and outputs the output image data. Output.

次に実施例2における構成の処理内容を説明する。   Next, processing contents of the configuration in the second embodiment will be described.

ここで、実施例2において、入力画像データの階調値を256階調、出力データの階調値を16階調、ディザマトリクス上の各画素における閾値数の最大値を16とし、最小値を2とする。さらに、全ての画素の閾値数が16の場合の最大マトリクスサイズを64画素、全ての画素の閾値数が2の場合の最大マトリクスサイズを512画素とする。   In the second embodiment, the gradation value of the input image data is 256 gradations, the gradation value of the output data is 16 gradations, the maximum value of the threshold number in each pixel on the dither matrix is 16, and the minimum value is 2. Further, the maximum matrix size when the threshold number of all pixels is 16 is 64 pixels, and the maximum matrix size when the threshold number of all pixels is 2 is 512 pixels.

このとき、メモリの容量は、「64画素×((8bit+4bit)×16対)」で「12288bit」となる。   At this time, the memory capacity is “64 pixels × ((8 bits + 4 bits) × 16 pairs)” and “12288 bits”.

256階調の画像データが入力されるとマトリクスカウンタ201は、マトリクスサイズに従って主走査、副走査方向にカウントを行い、入力された画像データがマトリクス上のどの位置であるかを示すマトリクスIDとマトリクス制御信号を出力する。このときのマトリクスIDは、0から「マトリクスID−1」となるので9bitのデータとして出力される。   When 256-gradation image data is input, the matrix counter 201 counts in the main scanning and sub-scanning directions according to the matrix size, and a matrix ID and matrix indicating the position of the input image data on the matrix. Output a control signal. Since the matrix ID at this time becomes “matrix ID-1” from 0, it is output as 9-bit data.

出力されたマトリクスIDを受けて基本アドレス生成部202は、あらかじめ保持しておいたマトリクス上の各画素における閾値数に従って基本アドレスを生成し、閾値数データと基本アドレスを出力する。   Upon receiving the output matrix ID, the basic address generation unit 202 generates a basic address according to the threshold number of each pixel on the matrix held in advance, and outputs threshold number data and the basic address.

出力された閾値データはマトリクスIDが示す画素の閾値数となり、基本アドレスはマトリクスIDが「0(ゼロ)」のときは「0(ゼロ)」、マトリクスIDがM(Mは1以上)のときは「0〜M−1」の各画素の閾値数の合計を出力する。このときのマトリクスIDのMは、閾値数が2の場合で最大マトリクスサイズが512画素であるから1〜511の範囲になる。   The output threshold data is the threshold number of pixels indicated by the matrix ID. The basic address is “0 (zero)” when the matrix ID is “0 (zero)”, and the matrix ID is M (M is 1 or more). Outputs the total number of threshold values of each pixel of “0 to M−1”. The matrix ID M at this time is in the range of 1 to 511 because the maximum matrix size is 512 pixels when the threshold number is 2.

これらにより閾値数の合計最大値は「閾値数16×64画素」で1024(2の10乗)となり、基本アドレスは10bitとなる。このときの補正テーブルの例を図20に示す。   As a result, the total maximum number of threshold values is “1024 (2 to the 10th power)” of “threshold number 16 × 64 pixels”, and the basic address is 10 bits. An example of the correction table at this time is shown in FIG.

図20に示した補正テーブルにおける基本アドレス生成部202のアドレスについて説明する。   The address of the basic address generation unit 202 in the correction table shown in FIG. 20 will be described.

基本アドレス生成部202は、
(1)マトリクスIDが「0」のとき基本アドレスを「0」、閾値数データを「12」
(2)マトリクスIDが「1」のとき基本アドレスを「12」、閾値数データを「9」
(3)マトリクスIDが「2」のとき基本アドレスを「21」、閾値数データを「14」
(4)マトリクスIDが「3」のとき基本アドレスを「35」、閾値数データを「16」
と出力する。すなわち、基本アドレスは基本アドレス区間における各画素の補正テーブルの先頭アドレスを示し、閾値数データは先頭アドレスからの有効範囲を示している。
The basic address generation unit 202
(1) When the matrix ID is “0”, the basic address is “0” and the threshold number data is “12”.
(2) When the matrix ID is “1”, the basic address is “12” and the threshold number data is “9”.
(3) When the matrix ID is “2”, the basic address is “21” and the threshold number data is “14”.
(4) When the matrix ID is “3”, the basic address is “35” and the threshold number data is “16”.
Is output. That is, the basic address indicates the start address of the correction table for each pixel in the basic address section, and the threshold number data indicates the effective range from the start address.

基本アドレス生成部202により出力した基本アドレスと閾値数データのうち、基本アドレスについてアドレス生成部203で処理を行う。アドレス生成部203では、基本アドレス10bitのうち64画素(2の6乗)の上位6bitを閾値数16(2の4乗)の下位4bitに基づいて処理を行い、アドレスを生成する。   Of the basic address and threshold value data output by the basic address generation unit 202, the address generation unit 203 performs processing on the basic address. The address generation unit 203 processes the upper 6 bits of 64 pixels (2 to the sixth power) of the basic address 10 bits based on the lower 4 bits of the threshold number 16 (2 to the fourth power) to generate an address.

例えば、基本アドレス下位4bitが全て0(ゼロ)の場合には、生成されるアドレスは基本アドレスの上位6bitとし、基本アドレスの下位4bitがN(N:1〜15)の場合には、生成されるアドレスN〜15に基本アドレスの上位6bitを、アドレス0〜N−1に基本アドレスの上位6bitに+1したものを出力する。   For example, when all the lower 4 bits of the basic address are 0 (zero), the generated address is the upper 6 bits of the basic address, and when the lower 4 bits of the basic address is N (N: 1 to 15), it is generated. Addresses N to 15 are output with the upper 6 bits of the basic address plus addresses 0 to N-1 plus the upper 6 bits of the basic address.

メモリ204では、アドレス生成部203で生成されたアドレス(0〜N−1、N〜15)に基づいて格納されている閾値と出力階調値により構成された補正テーブルをアドレスそれぞれに対して出力する。   In the memory 204, a correction table composed of threshold values and output gradation values stored based on the addresses (0 to N-1, N to 15) generated by the address generation unit 203 is output for each address. To do.

メモリ204により出力された閾値と出力階調値のそれぞれの数値(データ)を基本アドレス生成部202により生成された基本アドレスの下位4ビットにしたがって並び替えを行い、並び替えられた後の閾値それぞれをデータ比較部206に対して出力し、出力階調値それぞれを出力制御部207に出力する。   The threshold values output from the memory 204 and the numerical values (data) of the output gradation values are rearranged according to the lower 4 bits of the basic address generated by the basic address generation unit 202, and the threshold values after the rearrangement are performed. Are output to the data comparison unit 206, and each output gradation value is output to the output control unit 207.

例えば、基本アドレスの下位4bitが0のときは、閾値と出力階調値の並び替えをせずに出力する。それに対して基本アドレスの下位4bitがN(N:1〜15)のときは、閾値データN〜15を閾値データ0〜15−Nに並び替え、閾値データ0〜N−1を閾値データN〜15に並び替えを行い、出力階調値データN〜15を出力階調値データ0〜15−Nに並び替え、出力階調値データ0〜N−1を出力階調値データN〜15に並び替えを行う。このときの基本アドレス空間における補正テーブルをメモリのアドレス空間に変換した場合の補正テーブルの例を図21に示す。   For example, when the lower 4 bits of the basic address are 0, the threshold value and the output gradation value are output without being rearranged. On the other hand, when the lower 4 bits of the basic address are N (N: 1 to 15), the threshold data N to 15 are rearranged to the threshold data 0 to 15-N, and the threshold data 0 to N-1 are changed to the threshold data N to N. The output gradation value data N to 15 are rearranged to the output gradation value data 0 to 15-N, and the output gradation value data 0 to N-1 are changed to the output gradation value data N to 15. Sort. FIG. 21 shows an example of the correction table when the correction table in the basic address space at this time is converted into the memory address space.

データ並び替え部205から出力された閾値データ0〜15と入力画像データとを受け付けて、データ比較部206で双方を比較して結果を出力制御部207に出力する。   The threshold data 0 to 15 and the input image data output from the data rearrangement unit 205 are received, the data comparison unit 206 compares both, and outputs the result to the output control unit 207.

データ比較部206での比較結果とデータ並び替え部205からの出力階調値データと基本アドレス生成部202からの閾値数データをそれぞれ受け付けて、出力階調値データを比較結果と閾値数データにより選択し、出力画像データとして出力する。   The comparison result in the data comparison unit 206, the output gradation value data from the data rearrangement unit 205, and the threshold number data from the basic address generation unit 202 are received, and the output gradation value data is received by the comparison result and the threshold number data. Select and output as output image data.

つまり、閾値数データがL(L:2〜16)のときは、補正テーブルは並び替え後の閾値データ0〜L−1、出力階調値データ0〜L−1となるので、比較結果0〜L−1に従って並び替え後の出力階調値データ0〜L−1から出力画像データを選択する。   That is, when the threshold number data is L (L: 2 to 16), the correction table is the rearranged threshold data 0 to L-1, and the output gradation value data 0 to L-1, so that the comparison result 0 Output image data is selected from output gradation value data 0 to L-1 after rearrangement according to .about.L-1.

上記に示すようなマトリクス上の各画素の閾値数の合計でディザマトリクスサイズを決定するという構成により、出力階調値は一定のままで、画像の出力を行うプリンタなどの画像出力装置や入力されてくる画像データに応じて、様々なディザマトリクスの構築が可能となる。   With the configuration in which the dither matrix size is determined by the total number of thresholds of each pixel on the matrix as described above, the output gradation value remains constant, and an image output device such as a printer that outputs an image is input. Various dither matrices can be constructed according to the incoming image data.

図12は、この発明に係わる実施例2の基本アドレス生成部202の内部構造を示す図である。   FIG. 12 is a diagram showing the internal structure of the basic address generation unit 202 according to the second embodiment of the present invention.

図12には、閾値数設定レジスタ30、加算器31、基本アドレスセレクタ32−A、閾値数データセレクタ32−Bを有して構成されている。   12 includes a threshold number setting register 30, an adder 31, a basic address selector 32-A, and a threshold number data selector 32-B.

閾値数設定レジスタ30は、マトリクスカウンタ201により入力画像データのマトリクス上の配置場所を示すマトリクスIDに基づいてあらかじめ設定された(保持された)閾値数データを出力するものである。   The threshold number setting register 30 outputs threshold number data set (held) in advance based on the matrix ID indicating the arrangement location of the input image data on the matrix by the matrix counter 201.

加算器31は、閾値数データを順に加算するものである。   The adder 31 adds threshold number data in order.

図12に示す例では、まず閾値数データ0は閾値数データの先頭データであるので他のデータを加算することなく、基本アドレスセレクタ32−AにD1として入力する。次に、閾値数データ1に初期データである閾値数データ0を加算した値を基本アドレスセレクタ32−AにD2として入力する。以下同様に、閾値数データ510まで処理を行う。   In the example shown in FIG. 12, first, the threshold number data 0 is the leading data of the threshold number data, and is input as D1 to the basic address selector 32-A without adding other data. Next, a value obtained by adding the threshold number data 0 which is the initial data to the threshold number data 1 is input to the basic address selector 32-A as D2. Similarly, processing is performed up to the threshold number data 510.

基本アドレスセレクタ32−Aは、閾値数設定レジスタ30から出力されて加算器31により加算されたデータとマトリクスIDを入力データとし、マトリクスIDに基づいて基本アドレスをセレクトするものである。   The basic address selector 32-A selects the basic address based on the matrix ID using the data output from the threshold value setting register 30 and added by the adder 31 and the matrix ID as input data.

閾値数データセレクタ32−Bは、閾値数設定レジスタ30から出力された値とマトリクスIDを入力データとし、マトリクスIDに基づいて閾値数データをセレクトするものである。   The threshold number data selector 32-B receives the value output from the threshold number setting register 30 and the matrix ID as input data, and selects threshold number data based on the matrix ID.

これにより基本アドレス生成部では、閾値数データと基本アドレスを生成することができる。   Thus, the basic address generation unit can generate threshold number data and basic addresses.

図13は、この発明に係わる実施例2の基本アドレス生成部における機能表である。   FIG. 13 is a function table in the basic address generator of the second embodiment according to the present invention.

図13には、マトリクスIDに基づいてセレクトを行う閾値数データまたは基本アドレスデータの表である。   FIG. 13 is a table of threshold number data or basic address data to be selected based on the matrix ID.

図14は、この発明に係わる実施例2のアドレス生成部203の内部構造を示す図である。   FIG. 14 is a diagram showing the internal structure of the address generation unit 203 according to the second embodiment of the present invention.

図14には、デコーダ40、加算器41を有して構成されている。   FIG. 14 includes a decoder 40 and an adder 41.

デコーダ40は、生成された基本アドレスのうち基本アドレス[3:0]を受け付けて、図15に示す機能表に基づいてデコードして出力するものである。   The decoder 40 receives the basic address [3: 0] among the generated basic addresses, decodes it based on the function table shown in FIG. 15, and outputs it.

加算器41は、デコーダ40によりデコードされたデータと生成された基本アドレスのうち基本アドレス[9:4]とを加算して、基本アドレス6個分のアドレス[5:0]を出力するものである。   The adder 41 adds the data decoded by the decoder 40 and the basic address [9: 4] among the generated basic addresses, and outputs an address [5: 0] for six basic addresses. is there.

これにより、アドレスが生成される。   Thereby, an address is generated.

図15は、この発明に係わる実施例2のアドレス生成部203のデコーダ40における機能表である。   FIG. 15 is a function table in the decoder 40 of the address generation unit 203 according to the second embodiment of the present invention.

図15には、基本アドレス下位4ビット(基本アドレス[3:0])に対してデコードされる値(Y0〜Y15)が示されている。例えば、基本アドレス下位4ビットが10進数において「12」である場合に、デコードされる値はY0〜Y11までが「1」、Y12〜Y15までが「0」にデコードされることを示している。   FIG. 15 shows values (Y0 to Y15) decoded for the lower 4 bits of the basic address (basic address [3: 0]). For example, when the lower 4 bits of the base address are “12” in decimal, the values to be decoded indicate that Y0 to Y11 are decoded to “1” and Y12 to Y15 are decoded to “0”. .

図16は、この発明に係わる実施例2の出力制御部207の内部構造を示す図であり、図17は、この発明に係わる実施例2の出力制御部207のデコーダ50における機能表である
図16には、デコーダ50、論理積回路C(51−A〜51−P)、論理積回路D(51−A〜51−O)、マスク53、論理和回路54を具備して構成される。
16 is a diagram showing the internal structure of the output control unit 207 according to the second embodiment of the present invention, and FIG. 17 is a function table in the decoder 50 of the output control unit 207 according to the second embodiment of the present invention. 16 includes a decoder 50, an AND circuit C (51-A to 51-P), an AND circuit D (51-A to 51-O), a mask 53, and an OR circuit 54.

デコーダ50は、1画素あたりの閾値数を入力データとして図17に示す機能表に基づいてデコードを行う。   The decoder 50 performs decoding based on the function table shown in FIG. 17 using the threshold value per pixel as input data.

例えば、1画素あたりの閾値数を「8」である場合には、デコーダの出力データ(Y0〜Y7)に「1」、出力データ(Y8〜Y15)に「0」が出力される。   For example, when the threshold number per pixel is “8”, “1” is output to the decoder output data (Y0 to Y7), and “0” is output to the output data (Y8 to Y15).

論理積回路A(51−A〜51−P)は、デコーダ50の出力とデータ比較部206により比較された結果を入力データとして論理積演算を行う。   The logical product circuit A (51-A to 51-P) performs a logical product operation using the result of comparison between the output of the decoder 50 and the data comparison unit 206 as input data.

論理積回路B(52−A〜52−O)は、論理積回路Aの出力データのうち隣接する2つのデータを入力データとして否定演算と論理積演算を行うものである。   The logical product circuit B (52-A to 52-O) performs a negative operation and a logical product operation using two adjacent data of the output data of the logical product circuit A as input data.

例えば、論理積回路B(52−A)は、デコーダ50の出力データY0と比較結果のbit0のデータとを入力として論理積演算した論理積回路A(51−A)の出力データと、デコーダ50の出力データY1と比較結果のbit1のデータとを入力として論理積演算した論理積回路A(51−B)の出力結果を否定演算しものとを論理積演算したデータを出力する。   For example, the AND circuit B (52-A) receives the output data Y0 of the decoder 50 and the bit 0 data of the comparison result as inputs and outputs the output data of the AND circuit A (51-A) and the decoder 50. Output data Y1 and the bit 1 data of the comparison result are input, and the output result of the logical product circuit A (51-B) obtained by performing a logical product operation is negated and the logical product of the output result is output.

マスク(53−A〜53−P)は、メモリ204からの並び替え後の出力階調値データと論理積回路Bの出力データとを入力データとして図5に示す機能表に基づく演算を行う。   The masks (53-A to 53-P) perform calculations based on the function table shown in FIG. 5 using the output gradation value data after the rearrangement from the memory 204 and the output data of the AND circuit B as input data.

例えば、出力階調値データが「D」であり、論理積回路Bの出力データが「1」である場合には、マスクの出力データとして「D」が出力される。   For example, when the output gradation value data is “D” and the output data of the AND circuit B is “1”, “D” is output as the mask output data.

論理和回路54は、マスク(53−A〜53−P)から出力されたデータを入力データとし、論理和演算を行う。   The OR circuit 54 performs OR operation using the data output from the masks (53-A to 53-P) as input data.

これにより、出力階調値データつまり、16階調に変換された出力画像データを出力することができるようになる。   Thus, output gradation value data, that is, output image data converted into 16 gradations can be output.

図18は、この発明に係わる実施例2のデータ並び替え部205の閾値データにおける機能表であり、図19は、この発明に係わる実施例2のデータ並び替え部205の出力階調値データにおける機能表である。   FIG. 18 is a function table of the threshold value data of the data rearrangement unit 205 according to the second embodiment of the present invention. FIG. 19 is a table of output tone value data of the data rearrangement unit 205 according to the second embodiment of the present invention. It is a function table.

基本アドレスの下位4ビット(0から15)に対して並び替え後の閾値データまたは出力階調値データが示されている。   Threshold data or output gradation value data after rearrangement is shown for the lower 4 bits (0 to 15) of the basic address.

図20と図21は、図11〜図19に示す構成において設定可能な補正テーブルの例を示す図である。   20 and 21 are diagrams showing examples of correction tables that can be set in the configurations shown in FIGS.

図20と図21には、実施例2の図11〜図19に示す構成において出力階調値を設定した場合の連続しない入力階調値における補正テーブルの例を示している。   FIGS. 20 and 21 show examples of correction tables for non-consecutive input tone values when output tone values are set in the configuration shown in FIGS. 11 to 19 of the second embodiment.

図20は、マトリクスサイズを4画素とし、マトリクス上の各画素の設定は、
(1)マトリクスID:0,閾値数:12,閾値:閾値0−1〜閾値0−12,出力階調値:出力階調値0−1〜出力階調値0−12
(2)マトリクスID:1,閾値数:9,閾値:閾値1−1〜閾値1−9,出力階調値:出力階調値1−1〜出力階調値1−9
(3)マトリクスID:2,閾値数:14,閾値:閾値2−1〜閾値2−14,出力階調値:出力階調値2−1〜出力階調値2−14
(4)マトリクスID:3,閾値数:16,閾値:閾値3−1〜閾値3−16,出力階調値:出力階調値3−1〜出力階調値3−16
とした場合の補正テーブルの構造を示している。
In FIG. 20, the matrix size is 4 pixels, and the setting of each pixel on the matrix is
(1) Matrix ID: 0, number of thresholds: 12, threshold: threshold 0-1 to threshold 0-12, output gradation value: output gradation value 0-1 to output gradation value 0-12
(2) Matrix ID: 1, threshold number: 9, threshold value: threshold value 1-1 to threshold value 1-9, output gradation value: output gradation value 1-1 to output gradation value 1-9
(3) Matrix ID: 2, Number of threshold values: 14, Threshold value: Threshold value 2-1 to Threshold value 2-14, Output gradation value: Output gradation value 2-1 to Output gradation value 2-14
(4) Matrix ID: 3, threshold number: 16, threshold value: threshold value 3-1 to threshold value 3-16, output gradation value: output gradation value 3-1 to output gradation value 3-16
The structure of the correction table is shown.

例えば、上位6ビットの0番地全てを出力する。つまり下位4ビットの0〜15番地までの値を出力し、そのうちの「マトリクスID:0」の閾値数分(=12)だけ有効として処理を行う。   For example, all the high-order 6 bits of address 0 are output. In other words, the lower 4 bits of values from 0 to 15 are output, and processing is performed with the threshold number (= 12) of “matrix ID: 0” being valid.

これによりメモリに閾値と出力階調値を詰めた状態で使用することができる。   As a result, the memory can be used in a state in which the threshold value and the output gradation value are packed.

図21は、この発明に係わる実施例2のメモリのアドレス空間における補正テーブルを示す図である。   FIG. 21 is a diagram showing a correction table in the address space of the memory according to the second embodiment of the present invention.

図21において、マトリクスIDが「0」のとき、つまり基本アドレスが「0」のとき、アドレス生成部203はアドレス0〜15全てに「0」を出力し、メモリ4〜19は閾値データ0〜15に閾値0−1〜0−12と1−1〜1−4を出力し、出力階調値データ0〜15に出力階調値0−1〜0−12と1−1〜1−4を出力する。データ並び替え部205は、閾値データ0〜15にそのまま閾値0−1〜0−12と1−1〜1−4を出力し、出力階調値データ0〜15にそのまま出力階調値0−12と1−1〜1−4を出力する。   In FIG. 21, when the matrix ID is “0”, that is, when the basic address is “0”, the address generation unit 203 outputs “0” to all the addresses 0 to 15 and the memories 4 to 19 store the threshold data 0 to Threshold values 0-1 to 0-12 and 1-1 to 1-4 are output to 15, and output gradation values 0-1 to 0-12 and 1-1 to 1-4 are output to output gradation value data 0-15. Is output. The data rearrangement unit 205 outputs the threshold values 0-1 to 0-12 and 1-1 to 1-4 as they are to the threshold data 0 to 15, and outputs the output gradation values 0 to 15 as they are to the output gradation value data 0 to 15, respectively. 12 and 1-1 to 1-4 are output.

また、マトリクスIDが「1」のとき、つまり基本アドレスが「12」のとき、アドレス生成部203はアドレス12〜15に「0」をアドレス0〜11に「1」を出力する。メモリ4〜19は閾値データ0〜15に閾値1−5〜1−9、2−1〜2−7、1−1〜1−4を順に出力し、出力階調値データ0〜15に出力階調値1−5〜1−9、2−1〜2−7、1−1〜1−4を順に出力する。データ並び替え部205は、閾値データ12〜15を閾値データ0〜3に並び替え、閾値データ0〜11を閾値データ4〜15に並び替え、出力階調値データ12〜15を出力階調値データ0〜3に並び替え、出力階調値データ0〜11を出力階調値データ4〜15に並び替える。   When the matrix ID is “1”, that is, when the basic address is “12”, the address generation unit 203 outputs “0” to the addresses 12 to 15 and “1” to the addresses 0 to 11. The memories 4 to 19 sequentially output threshold values 1-5 to 1-9, 2-1 to 2-7, 1-1 to 1-4 to the threshold data 0 to 15, and output to the output gradation value data 0 to 15 The gradation values 1-5 to 1-9, 2-1 to 2-7, and 1-1 to 1-4 are output in order. The data rearrangement unit 205 rearranges the threshold data 12 to 15 into the threshold data 0 to 3, rearranges the threshold data 0 to 11 into the threshold data 4 to 15, and converts the output gradation value data 12 to 15 to the output gradation value. The data is rearranged to data 0 to 3, and the output gradation value data 0 to 11 are rearranged to output gradation value data 4 to 15.

そして、並び替えが行われた後の閾値データ0〜15に閾値1−1〜1−9、2−1〜2−7を出力し、並び替えが行われた後の出力階調値データ0〜15に出力階調値1−1〜1−9、2−1〜2−7を出力する。   Then, the threshold values 1-1 to 1-9 and 2-1 to 2-7 are output to the threshold data 0 to 15 after the rearrangement, and the output gradation value data 0 after the rearrangement is performed. Output gradation values 1-1 to 1-9 and 2-1 to 2-7.

また、マトリクスIDが「2」のとき、つまり基本アドレスが「21」のとき、アドレス生成部203はアドレス5〜15に「1」を、アドレス0〜4に「2」を出力する。メモリ4〜19は、閾値データ0〜15に閾値2−12〜2−14、3−1〜3−2、2−1〜2−11を順に出力し、出力階調値データ0〜15に出力階調値2−12〜2−14、3−1〜3−2、2−1〜2−11を順に出力する。このときデータ並び替え部205は、閾値データ5〜15を閾値データ0〜10に並び替え、閾値データ0〜4を閾値データ11〜15に並び替え、出力階調値データ5〜15を出力階調値データ0〜10に並び替える。   When the matrix ID is “2”, that is, when the basic address is “21”, the address generation unit 203 outputs “1” to the addresses 5 to 15 and “2” to the addresses 0 to 4. The memories 4 to 19 sequentially output threshold values 2-12 to 2-14, 3-1 to 3-2, and 2-1 to 2-11 to the threshold data 0 to 15, respectively, and output gradation value data 0 to 15 are output. Output gradation values 2-12 to 2-14, 3-1 to 3-2, and 2-1 to 2-11 are output in order. At this time, the data rearrangement unit 205 rearranges the threshold data 5 to 15 into the threshold data 0 to 10, rearranges the threshold data 0 to 4 into the threshold data 11 to 15, and outputs the output gradation value data 5 to 15 as the output level. Rearranged to key value data 0-10.

そして、並び替えが行われた後の閾値データ0〜15に閾値2−1〜2−14、3−1〜3−2を出力し、並び替えが行われた後の出力階調値データ0〜15に出力階調値2−1〜2−14、3−1〜3−2を出力する。   Then, the threshold values 2-1 to 2-14 and 3-1 to 3-2 are output as the threshold data 0 to 15 after the rearrangement, and the output gradation value data 0 after the rearrangement is performed. Output gradation values 2-1 to 2-14 and 3-1 to 3-2.

また、マトリクスIDが「3」のとき、つまり基本アドレスが「35」のとき、アドレス生成部203はアドレス3〜15に「2」を、アドレス0〜2に「3」を出力する。メモリ4〜19は、閾値データ0〜15に閾値3−14〜3−16、3−1〜3−13を順に出力し、出力階調値データ0〜15に出力階調値3−14〜3−16、3−1〜3−13を順に出力する。このときデータ並び替え部205は、閾値データ3〜15を閾値データ0〜12に並び替え、閾値データ0〜2を閾値データ13〜15に並び替える。   When the matrix ID is “3”, that is, when the basic address is “35”, the address generation unit 203 outputs “2” to the addresses 3 to 15 and “3” to the addresses 0 to 2. The memories 4 to 19 sequentially output threshold values 3-14 to 3-16 and 3-1 to 3-13 to threshold data 0 to 15, and output gradation values 3-14 to output gradation value data 0 to 15, respectively. 3-16 and 3-1 to 3-13 are sequentially output. At this time, the data rearrangement unit 205 rearranges the threshold data 3 to 15 into the threshold data 0 to 12, and rearranges the threshold data 0 to 2 into the threshold data 13 to 15.

そして、並び替えが行われた後の閾値データ0〜15に閾値3−1〜3−16を出力し、並び替えが行われた後の出力階調値データ0〜15に出力階調値3−1〜3−16を出力する。   Then, the threshold values 3-1 to 3-16 are output to the threshold data 0 to 15 after the rearrangement is performed, and the output gradation value 3 is output to the output gradation value data 0 to 15 after the rearrangement is performed. -1 to 3-16 are output.

このような並び替えを行って出力を行うような構成によって、並び替えが行われた後の閾値データ0〜15と並び替えが行われた後の出力階調値データ0〜15には、マトリクス上の画素ごとに対応した補正テーブルが出力することができるようになる。   With a configuration in which output is performed by performing such rearrangement, the threshold data 0-15 after the rearrangement and the output gradation value data 0-15 after the rearrangement include a matrix. A correction table corresponding to each upper pixel can be output.

以上の実施例2の構成と処理によって、本発明の画像処理装置では、連続しない入力階調値に対して同じ値の出力階調値を必要とする補正テーブルを設定することができるようになり、さらにマトリクス上の画素ごとに閾値数を設定することができる。   With the configuration and processing of the second embodiment described above, the image processing apparatus of the present invention can set a correction table that requires the same output tone value for non-continuous input tone values. Furthermore, the threshold number can be set for each pixel on the matrix.

これによって、メモリの容量を増加させることなく、幅広い入力画像データに応じた閾値数を設定することが可能となる。   Thus, it is possible to set the threshold number corresponding to a wide range of input image data without increasing the memory capacity.

従って、本発明を適用することにより、画像出力装置の種類や入力されてくる入力画像データの種類に応じて多彩なディザマトリクスの構築が可能になるという効果を期待できる。   Therefore, by applying the present invention, it can be expected that various dither matrices can be constructed according to the type of image output device and the type of input image data input.

なお、上記フローチャートに示す処理は、コンピュータにより実行可能な画像処理プログラムによっても実現できる。   The processing shown in the flowchart can also be realized by an image processing program that can be executed by a computer.

本発明は、上記し、且つ図面に示す実施例に限定することなく、その要旨を変更しない範囲内で適宜変形して実施できるものである。   The present invention is not limited to the embodiments described above and shown in the drawings, and can be implemented with appropriate modifications within the scope not changing the gist thereof.

本発明は、コンピュータから送信された多値画像データを多値ディザ方式を用いて画像処理する画像処理装置に適用可能であり、特に、多値ディザ方式の補正テーブルに閾値とその閾値に対する出力階調値を設けたので装置に搭載するメモリの容量を増やすことなく、また出力階調値を下げることなくあらゆる多値ディザ方式におけるマトリクスサイズに対応するのに有用である。   The present invention can be applied to an image processing apparatus that performs image processing on multi-valued image data transmitted from a computer using a multi-value dither method. In particular, a threshold value and an output level corresponding to the threshold value are applied to a multi-value dither method correction table. Since the gradation value is provided, it is useful for dealing with matrix sizes in all multi-value dither methods without increasing the capacity of the memory mounted in the apparatus and without lowering the output gradation value.

この発明に係わる画像処理装置の構成を示す図。The figure which shows the structure of the image processing apparatus concerning this invention. この発明に係わる画像処理装置のアドレス生成部102の内部構造を示す図。2 is a diagram showing an internal structure of an address generation unit 102 of the image processing apparatus according to the present invention. FIG. この発明に係わる画像処理装置の出力制御部105の内部構造を示す図。The figure which shows the internal structure of the output control part 105 of the image processing apparatus concerning this invention. この発明に係わる画像処理装置の出力制御部105におけるデコーダの機能表。6 is a function table of a decoder in the output control unit 105 of the image processing apparatus according to the present invention. この発明に係わる画像処理装置の出力制御部105におけるマスクの機能表。4 is a mask function table in the output control unit 105 of the image processing apparatus according to the present invention. この発明に係わる画像処理装置のメモリ103の内容を示す図。The figure which shows the content of the memory 103 of the image processing apparatus concerning this invention. 入力階調値が連続しない場合の例をグラフィカルに示している図。The figure which shows the example in case an input gradation value is not continuous graphically. 入力階調値が連続しない場合の例を定量表現した図。The figure which expressed quantitatively the example in case an input gradation value is not continuous. 通常の多値ディザ方式における出力画像の閾値の偏りを示す図。The figure which shows the bias | deviation of the threshold value of the output image in a normal multi-value dither system. 通常の多値ディザ方式における出力画像の閾値の偏りを示す図。The figure which shows the bias | deviation of the threshold value of the output image in a normal multi-value dither system. この発明に係わる実施例2における画像処理装置を適用して構成した装置の構成図。The block diagram of the apparatus comprised by applying the image processing apparatus in Example 2 concerning this invention. この発明に係わる実施例2の基本アドレス生成部202の内部構造を示す図。The figure which shows the internal structure of the basic address generation part 202 of Example 2 concerning this invention. この発明に係わる実施例2の基本アドレス生成部202における機能表。The function table | surface in the basic address generation part 202 of Example 2 concerning this invention. この発明に係わる実施例2のアドレス生成部203の内部構造を示す図。The figure which shows the internal structure of the address generation part 203 of Example 2 concerning this invention. この発明に係わる実施例2のアドレス生成部203のデコーダにおける機能表。The function table in the decoder of the address generation part 203 of Example 2 concerning this invention. この発明に係わる実施例2の出力制御部207の内部構造を示す図。The figure which shows the internal structure of the output control part 207 of Example 2 concerning this invention. この発明に係わる実施例2の出力制御部207のデコーダにおける機能表。The function table in the decoder of the output control part 207 of Example 2 concerning this invention. この発明に係わる実施例2のデータ並び替え部205の閾値における機能表。The function table in the threshold value of the data rearrangement part 205 of Example 2 concerning this invention. この発明に係わる実施例2のデータ並び替え部205の出力階調値における機能表。The function table in the output gradation value of the data rearrangement part 205 of Example 2 concerning this invention. この発明に係わる実施例2の基本アドレス空間における補正テーブルを示す図。The figure which shows the correction table in the basic address space of Example 2 concerning this invention. この発明に係わる実施例2のメモリのアドレス空間における補正テーブルを示す図。The figure which shows the correction table in the address space of the memory of Example 2 concerning this invention.

符号の説明Explanation of symbols

101 マトリクスカウンタ
102 アドレス生成部
103 メモリ
104 データ比較部
105 出力制御部
201 マトリクスカウンタ
202 基本アドレス生成部
203 アドレス生成部
204 メモリ
205 データ並び替え部
206 データ比較部
207 出力制御部
DESCRIPTION OF SYMBOLS 101 Matrix counter 102 Address generation part 103 Memory 104 Data comparison part 105 Output control part 201 Matrix counter 202 Basic address generation part 203 Address generation part 204 Memory 205 Data rearrangement part 206 Data comparison part 207 Output control part

Claims (4)

入力画像の各画素の入力階調値を所定のサイズのマトリクス単位で出力画像の各画素の出力階調値に補正する画像処理装置において、
前記マトリクスのサイズに対応して前記入力画像の主走査方向および副走査方向にカウントを行い前記入力画像の画素が前記マトリクスのどの位置にあるかを示す位置情報を出力するマトリクスカウンタと、
前記出力画像の1画素当たりの閾値数と前記マトリクスカウンタから出力された前記位置情報に基づき前記出力階調値を選択する選択信号およびアドレスを生成するアドレス生成手段と、
各アドレスに前記出力階調値の1画素当たりの閾値数に対応する数の閾値と出力階調値との対を記憶し、前記アドレス生成手段で生成されたアドレスの指定により前記閾値および前記出力階調値を読み出す補正テーブルと、
前記補正テーブルから読み出された閾値と前記入力画像の入力階調値とを比較する比較手段と、
前記出力階調値の1画素当たりの閾値数および前記選択信号および前記比較手段の出力に基づき前記補正テーブルから読み出された出力階調値を選択する出力制御手段と
を具備することを特徴とする画像処理装置。
In an image processing apparatus for correcting an input gradation value of each pixel of an input image to an output gradation value of each pixel of the output image in a matrix unit of a predetermined size,
A matrix counter that counts in the main scanning direction and sub-scanning direction of the input image corresponding to the size of the matrix and outputs position information indicating the position of the pixel of the input image in the matrix;
Address generating means for generating a selection signal and an address for selecting the output gradation value based on the threshold number per pixel of the output image and the position information output from the matrix counter;
A pair of threshold values and output gradation values corresponding to the number of threshold values per pixel of the output gradation value is stored in each address, and the threshold value and the output are designated by designation of the address generated by the address generation means. A correction table for reading out gradation values;
Comparison means for comparing the threshold value read from the correction table with the input gradation value of the input image;
Output control means for selecting an output gradation value read from the correction table based on the threshold value per pixel of the output gradation value, the selection signal, and the output of the comparison means, An image processing apparatus.
入力画像の各画素の入力階調値を所定のサイズのマトリクス単位で出力画像の各画素の出力階調値に補正する画像処理装置において、
前記マトリクスのサイズに対応して前記入力画像の主走査方向および副走査方向にカウントを行い前記入力画像の画素が前記マトリクスのどの位置にあるかを示す位置情報を出力するマトリクスカウンタと、
前記マトリクスカウンタから出力された前記位置情報に基づき予め設定された前記マトリクス上における前記出力画像の各画素の閾値数を出力するとともに、基本アドレスを出力する基本アドレス生成手段と、
前記基本アドレス生成手段から出力された基本アドレスに基づきアドレスを生成するアドレス生成手段と、
各アドレスに前記出力階調値の閾値と出力階調値との対を記憶し、前記アドレス生成手段で生成されたアドレスの指定により前記閾値および前記出力階調値を読み出す補正テーブルと、
前記補正テーブルから読み出された閾値と前記出力階調値を前記基本アドレス生成手段で生成された基本アドレスにしたがって並び替える並び替え手段と、
前記並び替え手段により並び替えられた前記閾値と前記入力画像の入力階調値とを比較する比較手段と、
前記基本アドレス生成手段から出力された閾値数および前記比較手段の出力に基づき前記並び替え手段により並び替えられた前記出力階調値を選択する出力制御手段と
を具備することを特徴とする画像処理装置。
In an image processing apparatus for correcting an input gradation value of each pixel of an input image to an output gradation value of each pixel of the output image in a matrix unit of a predetermined size,
A matrix counter that counts in the main scanning direction and sub-scanning direction of the input image corresponding to the size of the matrix and outputs position information indicating the position of the pixel of the input image in the matrix;
Basic address generation means for outputting a basic address and outputting a threshold number of each pixel of the output image on the matrix set in advance based on the position information output from the matrix counter;
Address generating means for generating an address based on the basic address output from the basic address generating means;
A correction table that stores a pair of a threshold value of the output gradation value and an output gradation value at each address, and reads out the threshold value and the output gradation value by designation of the address generated by the address generation unit;
Reordering means for reordering the threshold value read from the correction table and the output gradation value according to the basic address generated by the basic address generating means;
A comparison means for comparing the threshold value rearranged by the rearrangement means with an input gradation value of the input image;
Output control means for selecting the output gradation values rearranged by the rearrangement means based on the threshold number output from the basic address generation means and the output of the comparison means. apparatus.
入力画像の各画素の入力階調値を所定のサイズのマトリクス単位で出力画像の各画素の出力階調値に補正する画像処理する画像処理装置において、
前記マトリクスのサイズに対応して前記入力画像の主走査方向および副走査方向にカウントを行い前記入力画像の画素が前記マトリクスのどの位置にあるかを示す位置情報をマトリクスカウンタにより出力し、
前記出力画像の1画素当たりの閾値数と前記マトリクスカウンタから出力された前記位置情報に基づき前記出力階調値を選択する選択信号およびアドレスをアドレス生成手段により生成し、
各アドレスに前記出力階調値の1画素当たりの閾値数に対応する数の閾値と出力階調値との対を記憶し、前記アドレス生成手段で生成されたアドレスの指定により前記閾値および前記出力階調値を補正テーブルより読み出し、
前記補正テーブルから読み出された閾値と前記入力画像の入力階調値とを比較手段により比較し、
前記出力階調値の1画素当たりの閾値数および前記選択信号および前記比較手段の出力に基づき前記補正テーブルから読み出された出力階調値を選択する
ことを特徴とする画像処理方法。
In an image processing apparatus that performs image processing for correcting an input gradation value of each pixel of an input image to an output gradation value of each pixel of the output image in a matrix unit of a predetermined size,
Counting in the main scanning direction and sub-scanning direction of the input image corresponding to the size of the matrix, and outputting by the matrix counter position information indicating the position of the pixel of the input image in the matrix,
The address generation means generates a selection signal and an address for selecting the output gradation value based on the threshold number per pixel of the output image and the position information output from the matrix counter,
A pair of threshold values and output gradation values corresponding to the number of threshold values per pixel of the output gradation value is stored in each address, and the threshold value and the output are designated by designation of the address generated by the address generation means. Read the gradation value from the correction table,
The threshold value read from the correction table and the input tone value of the input image are compared by a comparison unit,
An image processing method comprising: selecting an output gradation value read from the correction table based on a threshold number per pixel of the output gradation value, the selection signal, and an output of the comparison unit.
入力画像の各画素の入力階調値を所定のサイズのマトリクス単位で出力画像の各画素の出力階調値に補正する画像処理する画像処理方法において、
前記マトリクスのサイズに対応して前記入力画像の主走査方向および副走査方向にカウントを行い前記入力画像の画素が前記マトリクスのどの位置にあるかを示す位置情報をマトリクスカウンタにより出力し、
前記マトリクスカウンタから出力された前記位置情報に基づき予め設定された前記マトリクス上における前記出力画像の各画素の閾値数を出力するとともに、基本アドレスを基本アドレス生成手段により出力し、
前記基本アドレス生成手段から出力された基本アドレスに基づきアドレスをアドレス生成手段により生成し、
各アドレスに前記出力階調値の閾値と出力階調値との対を記憶し、前記アドレス生成手段で生成されたアドレスの指定により前記閾値および前記出力階調値を補正テーブルにより読み出し、
前記補正テーブルから読み出された閾値と前記出力階調値を前記基本アドレス生成手段で生成された基本アドレスにしたがって並び替え手段により並び替え、
前記並び替え手段により並び替えられた前記閾値と前記入力画像の入力階調値とを比較手段により比較し、
前記基本アドレス生成手段から出力された閾値数および前記比較手段の出力に基づき前記並び替え手段により並び替えられた前記出力階調値を選択する
ことを特徴とする画像処理方法。
In an image processing method for performing image processing for correcting an input gradation value of each pixel of an input image to an output gradation value of each pixel of an output image in a matrix unit of a predetermined size,
Counting in the main scanning direction and sub-scanning direction of the input image corresponding to the size of the matrix, and outputting by the matrix counter position information indicating the position of the pixel of the input image in the matrix,
Output a threshold number of each pixel of the output image on the matrix set in advance based on the position information output from the matrix counter, and output a basic address by basic address generation means,
Based on the basic address output from the basic address generating means, an address is generated by the address generating means,
A pair of the output gradation value threshold value and the output gradation value is stored in each address, and the threshold value and the output gradation value are read out from the correction table by designating the address generated by the address generation unit,
The threshold value read from the correction table and the output gradation value are rearranged by the rearrangement unit according to the basic address generated by the basic address generation unit,
The threshold value rearranged by the rearranging means and the input gradation value of the input image are compared by a comparing means,
An image processing method comprising: selecting the output gradation values rearranged by the rearrangement unit based on the threshold number output from the basic address generation unit and the output of the comparison unit.
JP2004186426A 2004-06-24 2004-06-24 Image processor and method Pending JP2006013773A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004186426A JP2006013773A (en) 2004-06-24 2004-06-24 Image processor and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004186426A JP2006013773A (en) 2004-06-24 2004-06-24 Image processor and method

Publications (1)

Publication Number Publication Date
JP2006013773A true JP2006013773A (en) 2006-01-12

Family

ID=35780496

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004186426A Pending JP2006013773A (en) 2004-06-24 2004-06-24 Image processor and method

Country Status (1)

Country Link
JP (1) JP2006013773A (en)

Similar Documents

Publication Publication Date Title
JP3744610B2 (en) Image coding method
JP5862267B2 (en) Image processing apparatus, image processing method, and image forming apparatus
JP2008193529A (en) Scanning converter, and scanning conversion method
JP2012070359A (en) Image processing apparatus and method therefor
JP2008067044A (en) Image processor, image reader, image processing method, and image processing program
JP4481343B2 (en) Method and apparatus for enabling generation of FM grid points at high speed
JP2006013773A (en) Image processor and method
JP2011159229A (en) Data reader, data reading method and data recorder
JP2004120133A (en) Image processing method and image processor
JP4141817B2 (en) Error diffusion with reduced buffers
EP1161082B1 (en) Halftone image reproduction
JP4622762B2 (en) Image data compression / decompression method
JP2004021645A (en) Image processing device and its control method
JP4135605B2 (en) Image processing device
JP3852104B2 (en) Image processing apparatus and image processing method
JP4254417B2 (en) Image processing device
JP2701310B2 (en) Halftone image generation method and apparatus
JPH11331621A (en) Device for processing picture and its method
JP4262148B2 (en) Image processing apparatus and image processing method
JPH07111586A (en) Image processing device
JP4496765B2 (en) Image processing apparatus, image processing method, and image processing program
JP2003060909A (en) Image processor and image processing method
JP2007194955A (en) Image processing device
JP2008205611A (en) Image processing circuit and printer controller mounting the same
JP2007281764A (en) Color conversion using color conversion table