JPH06333040A - Image processor - Google Patents

Image processor

Info

Publication number
JPH06333040A
JPH06333040A JP5116078A JP11607893A JPH06333040A JP H06333040 A JPH06333040 A JP H06333040A JP 5116078 A JP5116078 A JP 5116078A JP 11607893 A JP11607893 A JP 11607893A JP H06333040 A JPH06333040 A JP H06333040A
Authority
JP
Japan
Prior art keywords
gradation
image
unit
pixel
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP5116078A
Other languages
Japanese (ja)
Other versions
JP3061230B2 (en
Inventor
Takashi Nagao
隆 長尾
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 JP5116078A priority Critical patent/JP3061230B2/en
Publication of JPH06333040A publication Critical patent/JPH06333040A/en
Application granted granted Critical
Publication of JP3061230B2 publication Critical patent/JP3061230B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

PURPOSE:To provide an image processor which can perform the conversion of gradation at a high speed and in a simple constitution. CONSTITUTION:An image processor converts the image data shown in N- gradation into the image data of M-gradation and is provided with an image input part 40 which inputs the image data shown in N-gradation in a prescribed unit, a gradation converting part 41 which collectively converts the image data supplied from the part 40 into the image data of M-gradation, and an image output part 42 which outputs the image data M-gradation in a prescribed unit.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は画像処理装置に係り、特
にN階調で表現された画像をM階調に変換する階調変換
処理が実行可能な画像処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus, and more particularly to an image processing apparatus capable of executing gradation conversion processing for converting an image expressed in N gradations into M gradations.

【0002】[0002]

【従来の技術】一般に、画像処理装置や画像を入力可能
なDTP(Desk Top Publishing)
システムなどでは、階調数の異なる画像間での合成や演
算途中の精度を上げる等の目的で、画像の階調数を変換
する処理が必要な場合がある。従来、この種の処理には
以下のような方法が用いられていた。
2. Description of the Related Art Generally, an image processing apparatus or a DTP (Desk Top Publishing) capable of inputting an image
In a system or the like, a process of converting the number of gradations of an image may be necessary for the purpose of, for example, combining images having different numbers of gradations or increasing the accuracy during calculation. Conventionally, the following method has been used for this type of processing.

【0003】図3に示されるように、2ビット/画素で
表現された4階調のデータ(図3(a)参照)を4ビッ
ト/画素で表現された16階調のデータ(同図(b)参
照)に変換する場合を例にとり、図4のような構成で処
理が行われるものとする。20はN階調(この場合は4
階調)で表現された原画像を格納するN階調画像記憶
部、21はN階調画像記憶部20から画素単位で画像デ
ータ読み出すための画素単位画像入力部、22はN階調
の画像データを画素単位でM階調(この場合は16階
調)に変換する画素単位階調変換部、23は変換された
データを後述のM階調画像記憶部へ入力可能なビット幅
に合成して出力するための画素合成画像出力部、24は
変換されたM階調の画像データを格納するM階調画像記
憶部である。画素単位階調変換部22の内部は、この例
では入力画素値を出力画素値に1対1に変換するための
画素単位階調変換テーブル221を持ち、このテーブル
を用いて実際に変換を行う画素単位階調変換処理部22
0から構成されている。画素単位階調変換テーブル22
1の内部には、図5に示すような内容が格納されてお
り、2ビット/画素で表現された画素値を4ビット/画
素に変換することができる。
As shown in FIG. 3, four gradation data represented by 2 bits / pixel (see FIG. 3A) is converted into 16 gradation data represented by 4 bits / pixel (see FIG. For example, it is assumed that the processing is performed with the configuration as shown in FIG. 20 is N gradation (4 in this case)
N gradation image storage unit for storing an original image expressed in gradation, 21 is a pixel unit image input unit for reading image data from the N gradation image storage unit 20 in pixel units, and 22 is an N gradation image A pixel-unit gradation conversion unit that converts data into M gradations (16 gradations in this case) in pixel units, and 23 combines the converted data into a bit width that can be input to an M gradation image storage unit described below. And a pixel-synthesized image output unit 24 for outputting the converted image data of M gradations. In this example, the inside of the pixel unit gradation conversion unit 22 has a pixel unit gradation conversion table 221 for converting an input pixel value into an output pixel value in a one-to-one manner, and actual conversion is performed using this table. Pixel unit gradation conversion processing unit 22
It consists of zero. Pixel unit gradation conversion table 22
The contents shown in FIG. 5 are stored inside 1 and the pixel value expressed by 2 bits / pixel can be converted into 4 bits / pixel.

【0004】N階調画像記憶部20から画像データが読
み出される場合、データは通常8ビットなどの固定のビ
ット幅で取り扱われるので、一旦画素単位画像入力部2
1にバッファされ、1画素づつ切り出されて画素単位階
調変換部22に送られる。画素単位階調変換部22で
は、画素単位階調変換処理部220が入力されたデータ
を受取り、画素単位階調変換テーブル221を参照して
変換を行う。変換されたデータは画素合成画像出力部2
3に出力され、M階調画像記憶部24に格納される。M
階調画像記憶部への入力ビット幅が8ビット単位である
場合には、階調変換されたデータを画素合成画像出力部
23で一旦バッファし、次の4ビットデータが出力され
た時点で先の4ビットデータと合成を行ってM階調画像
記憶部に格納する。
When the image data is read from the N gradation image storage unit 20, since the data is usually handled with a fixed bit width such as 8 bits, the pixel unit image input unit 2 is temporarily operated.
The image data is buffered in 1 and cut out pixel by pixel and sent to the pixel unit gradation conversion unit 22. The pixel-unit gradation conversion unit 22 receives the input data from the pixel-unit gradation conversion processing unit 220, and performs conversion by referring to the pixel-unit gradation conversion table 221. The converted data is the pixel composite image output unit 2
3 and is stored in the M gradation image storage unit 24. M
When the input bit width to the gradation image storage unit is in units of 8 bits, the gradation-converted data is temporarily buffered by the pixel composite image output unit 23, and when the next 4-bit data is output, And stores it in the M gradation image storage unit.

【0005】この例では画素単位階調変換テーブル22
1を用いて変換を行ったが、その他に図5に示した動作
を比較器等で実現したり、ソフトウエアにより条件判定
で行うなども行われている。
In this example, the pixel-unit gradation conversion table 22
Although the conversion is performed using 1, the operation shown in FIG. 5 is also realized by a comparator or the like, or the condition determination is performed by software.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、上記の
処理方式は以下のような欠点があった。通常、画像記憶
手段等の入出力可能なビット幅は固定されているため、
例えばこのビット幅が8ビットであった場合、2ビット
/画素のデータを処理するためには画素単位画像入力部
21でバッファされたデータを2ビットづつに切り出し
ながら4回読み出すことが必要となる。また、変換後の
画像データが4ビット/画素とすると、書き込み時にも
8ビット単位で書き込むために画素合成画像出力部23
にバッファを設け、2つの出力データを合成して書き出
すといった処理が必要となり、処理速度を低下させる要
因となっていた。また、3ビット/画素のように入出力
可能ビット幅の1/整数や整数倍でないような場合に
は、2つの8ビットデータの境界に位置した場合の制御
が非常に複雑になる等の欠点をもっていた。
However, the above processing method has the following drawbacks. Normally, the bit width that can be input / output in the image storage means is fixed,
For example, when the bit width is 8 bits, in order to process the data of 2 bits / pixel, it is necessary to read out the data buffered by the pixel-unit image input unit 21 four times while cutting out each two bits. . Further, if the converted image data has 4 bits / pixel, the pixel composite image output unit 23 has to write in 8-bit units even at the time of writing.
It is necessary to provide a buffer in and to perform processing such as synthesizing and writing two pieces of output data, which is a factor of reducing the processing speed. Further, in the case where the bit width is not 1 / integer or an integer multiple of the input / output bit width such as 3 bits / pixel, the control becomes very complicated when located at the boundary between two 8-bit data. I had.

【0007】本発明はこのような点に鑑みてなされたも
ので、階調変換を高速に実行でき、かつ簡易な構成を取
ることが可能な画像処理装置の提供を目的とする。
The present invention has been made in view of the above points, and an object of the present invention is to provide an image processing apparatus capable of executing gradation conversion at high speed and having a simple structure.

【0008】[0008]

【課題を解決するための手段】上記目的を達成するた
め、本発明では階調変換は周囲の画素などに無関係に画
素単位で実行できる点に着目し、入力画像データの複数
画素を一括して他の階調に変換するテーブルを設けるこ
とを特徴とする。具体的には、例えば図2に示すよう
な、2ビット/画素のデータを4ビット/画素に変換す
る際に、4画素を一括して変換する階調変換テーブルを
設け、画像入力部での画素単位の切り出しや画像出力部
での出力データの合成などの処理を行わずに、かつ複数
画素を一括に変換することにより高速に処理を行うこと
が可能なように構成する。
In order to achieve the above object, in the present invention, attention is paid to the fact that gradation conversion can be executed in pixel units irrespective of surrounding pixels, and a plurality of pixels of input image data are collectively processed. A feature is that a table for converting to another gradation is provided. Specifically, for example, as shown in FIG. 2, when converting 2-bit / pixel data into 4-bit / pixel, a gradation conversion table that collectively converts 4 pixels is provided, and a gradation conversion table in the image input unit is provided. The processing can be performed at high speed by collectively converting a plurality of pixels without performing processing such as cutting out in pixel units or combining output data in the image output unit.

【0009】[0009]

【作用】複数画素を一括に変換することにより変換処理
の回数が減少し、高速に処理することが可能となる。ま
た、画像入力部での画素単位でのデータの切り出しや読
み出しデータを格納するバッファ、画像出力部でのデー
タの合成操作や先の出力データを格納するためのバッフ
ァなどが不要となり、構成も簡素化できるなどの利点を
有する。
By converting a plurality of pixels all at once, the number of conversion processes can be reduced, and high-speed processing can be achieved. In addition, there is no need for a buffer for storing the cut-out or read-out data for each pixel in the image input unit, a buffer for storing data in the image output unit or a buffer for storing the previous output data, and the configuration is simple. It has the advantage that it can be realized.

【0010】[0010]

【実施例】以下、図面を参照して本発明の実施例を詳細
に説明する。
Embodiments of the present invention will now be described in detail with reference to the drawings.

【0011】図1は、本発明による画像処理装置の一実
施例を示すブロック図である。図において、40は原画
像である4階調の画像データを4画素まとめて8ビット
単位で読み出しを行う画像入力部、41は8ビット単位
で入力されたデータを一括して16階調のデータに変換
する階調変換部、42は階調変換部41からの16ビッ
トの出力を8ビット単位で記憶部に出力する画像出力部
である。階調変換部41の内部には、図2に示すデータ
が格納された階調変換テーブル411と、この階調変換
テーブル411を用いて各2ビットで表現された4画素
のデータを一括して各4ビットで表現された4画素のデ
ータに変換する階調変換処理部410が含まれる。
FIG. 1 is a block diagram showing an embodiment of an image processing apparatus according to the present invention. In the figure, 40 is an image input unit for reading out image data of 4 gradations, which is an original image, in units of 8 bits in a unit of 4 pixels, 41 is data of 16 gradations collectively for data inputted in 8 bit units. The gradation conversion unit 42 converts the 16-bit output from the gradation conversion unit 41 to the storage unit in 8-bit units. Inside the gradation conversion unit 41, a gradation conversion table 411 in which the data shown in FIG. 2 is stored, and data of 4 pixels represented by 2 bits using the gradation conversion table 411 are collectively displayed. A gradation conversion processing unit 410 that converts data of 4 pixels represented by 4 bits is included.

【0012】画像入力部40は、N階調(この場合は4
階調)画像記憶部20から8ビットのデータを読み出
し、階調変換部41に入力する。階調変換部41の内部
では、階調変換処理部410が入力されたデータをもと
に階調変換テーブル411をアクセスし、その出力を画
像出力部42に出力する。例えば図2のテーブルを用い
ると、入力が“10,11,10,11”の4画素のデ
ータである場合には、画像出力部42には“1010,
1111,1010,1111”なるデータが出力され
る。画像出力部42は、このデータを8ビット単位でM
階調(この場合は16階調)画像記憶部24に出力す
る。この動作を繰り返すことにより、4階調画像を4画
素単位で高速に16階調画像に変換することができる。
この例では4階調から16階調への変換を例に挙げて説
明を行ったが、変換テーブルの内容を変更する手段を付
加することで、他の階調変換にも併用可能な構成とする
ことができる。例えば2値画像を256階調のデータに
変換する場合には、8ビット入力−64ビット出力の変
換テーブルを構成することで8画素単位で処理を行うこ
とができる。同様に8階調の画像を256階調に変換す
るためには、テーブルの容量がかなり大きくなるものの
24ビット入力−64ビット出力の変換テーブルを作成
し、入力を8ビット×3単位で行い、出力を8ビット×
8単位で行うことで、バイト境界にまたがったデータの
処理を行わずに階調変換することが可能である。
The image input section 40 uses N gradations (4 in this case).
8-bit data is read from the gradation image storage unit 20 and input to the gradation conversion unit 41. Inside the gradation conversion unit 41, the gradation conversion processing unit 410 accesses the gradation conversion table 411 based on the input data, and outputs the output to the image output unit 42. For example, using the table of FIG. 2, when the input is 4-pixel data of “10, 11, 10, 11”, the image output unit 42 displays “1010,
The data of 1111, 1010, 1111 "is output. The image output unit 42 outputs this data in M units of 8 bits.
The gradation (16 gradations in this case) is output to the image storage unit 24. By repeating this operation, a 4-gradation image can be converted into a 16-gradation image at high speed in units of 4 pixels.
In this example, the conversion from 4 gradations to 16 gradations has been described as an example, but by adding a means for changing the contents of the conversion table, it is possible to use it in combination with other gradation conversions. can do. For example, when converting a binary image into data of 256 gradations, processing can be performed in units of 8 pixels by configuring a conversion table of 8-bit input-64-bit output. Similarly, in order to convert an image of 8 gradations to 256 gradations, a conversion table of 24-bit input-64-bit output is created although the capacity of the table is considerably large, and the input is performed in units of 8 bits × 3. Output 8 bits ×
By performing the conversion in 8 units, it is possible to perform gradation conversion without processing the data that straddles the byte boundary.

【0013】また画像出力部での合成処理を行う機構を
残すようにすれば、変換テーブルに必要な容量を削減で
きる場合もある。例えば256階調の画像を2値に変換
する場合、通常は出力側を8ビットの倍数にするため、
8画素単位での一括処理が必要となる。この場合、入力
は8ビット×8画素=64ビットとなり、これを一括し
て8ビットに変換するためのテーブルの容量は膨大なも
のとなってしまう。そこで8画素単位ではなく2画素単
位で処理を行い、出力が8ビットになるように合成処理
して出力すれば、変換テーブルは16ビット入力−2ビ
ット出力となり、必要な容量は16Kバイト程度とする
ことができる。
In some cases, the capacity required for the conversion table can be reduced by leaving the mechanism for performing the combining process in the image output unit. For example, when converting a 256-gradation image into a binary value, the output side is normally set to a multiple of 8 bits.
Batch processing is required in units of 8 pixels. In this case, the input becomes 8 bits × 8 pixels = 64 bits, and the capacity of the table for collectively converting this into 8 bits becomes enormous. Therefore, if processing is performed in units of 2 pixels instead of in units of 8 pixels, and the output is synthesized and output so that the output becomes 8 bits, the conversion table becomes 16 bits input-2 bits output, and the required capacity is about 16 Kbytes. can do.

【0014】[0014]

【発明の効果】以上説明したように、本発明によれば複
数画素を一括して階調変換することにより高速処理が可
能となり、また画像入力部での画素単位でのデータの切
り出しや読み出しデータを格納するバッファ、画像出力
部でのデータの合成操作や先の出力データを格納するた
めのバッファなどが不要とすることもでき、簡単な構成
で高速処理可能な画像処理装置を実現することができ
る。
As described above, according to the present invention, it is possible to perform high-speed processing by collectively converting the gradation of a plurality of pixels, and cut out or read out data in pixel units in the image input unit. It is also possible to realize an image processing apparatus capable of high-speed processing with a simple configuration, since a buffer for storing data, a data combining operation in the image output unit and a buffer for storing previous output data can be dispensed with. it can.

【図面の簡単な説明】[Brief description of drawings]

【図1】 本発明の一実施例を示す画像処理装置のブロ
ック図である。
FIG. 1 is a block diagram of an image processing apparatus showing an embodiment of the present invention.

【図2】 本発明の階調変換テーブルの内容の説明図で
ある。
FIG. 2 is an explanatory diagram of contents of a gradation conversion table of the present invention.

【図3】 画像の階調変換の説明図である。FIG. 3 is an explanatory diagram of image gradation conversion.

【図4】 従来の一例を示す画像処理装置のブロック図
である。
FIG. 4 is a block diagram of an image processing apparatus showing a conventional example.

【図5】 従来の画素単位階調変換テーブルの内容の説
明図である。
FIG. 5 is an explanatory diagram of contents of a conventional pixel-unit gradation conversion table.

【符号の説明】[Explanation of symbols]

20…N階調画像記憶部、21…画素単位画像入力部、
22…画素単位階調変換部、220…画素単位階調変換
処理部、221…画素単位階調変換テーブル、23…画
素合成画像出力部、24…M階調画像記憶部、40…画
像入力部、41…階調変換部、410…階調変換処理
部、411…階調変換テーブル、42…画像出力部
20 ... N gradation image storage unit, 21 ... Pixel unit image input unit,
22 ... Pixel unit gradation conversion unit, 220 ... Pixel unit gradation conversion processing unit, 221 ... Pixel unit gradation conversion table, 23 ... Pixel composite image output unit, 24 ... M gradation image storage unit, 40 ... Image input unit , 41 ... gradation conversion unit, 410 ... gradation conversion processing unit, 411 ... gradation conversion table, 42 ... image output unit

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 N階調で表現された画像データをM階調
に変換する画像処理装置において、 前記N階調で表現された画像データを所定の単位で入力
する入力手段と、 前記入力手段から入力された所定の単位の画像データを
一括してM階調に変換する階調変換手段と、 M階調に階調変換された画像データを前記所定の単位で
出力する出力手段とを具備することを特徴とした画像処
理装置。
1. An image processing apparatus for converting image data expressed in N gradations into M gradations, input means for inputting the image data expressed in N gradations in a predetermined unit, and the input means. Gradation conversion means for collectively converting the image data of a predetermined unit inputted from M to gradation, and output means for outputting the image data gradation-converted to M gradation in the predetermined unit. An image processing device characterized by:
【請求項2】 前記階調変換手段は、前記入力手段から
入力される所定単位の画像データを一度にM階調に変換
した結果を予めテーブル化して記憶する記憶手段を有す
ることを特徴とする請求項1に記載の画像処理装置。
2. The gradation conversion means has a storage means for preliminarily tabulating and storing a result of converting image data of a predetermined unit input from the input means into M gradations at a time. The image processing apparatus according to claim 1.
JP5116078A 1993-05-18 1993-05-18 Image processing device Expired - Fee Related JP3061230B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5116078A JP3061230B2 (en) 1993-05-18 1993-05-18 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5116078A JP3061230B2 (en) 1993-05-18 1993-05-18 Image processing device

Publications (2)

Publication Number Publication Date
JPH06333040A true JPH06333040A (en) 1994-12-02
JP3061230B2 JP3061230B2 (en) 2000-07-10

Family

ID=14678172

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5116078A Expired - Fee Related JP3061230B2 (en) 1993-05-18 1993-05-18 Image processing device

Country Status (1)

Country Link
JP (1) JP3061230B2 (en)

Also Published As

Publication number Publication date
JP3061230B2 (en) 2000-07-10

Similar Documents

Publication Publication Date Title
US7307641B2 (en) Method and apparatus for transforming display data using multiple frame buffers in a display device
US5867612A (en) Method and apparatus for the fast scaling of an image
JPH06333040A (en) Image processor
JPS61243327A (en) Recorder
JP3214389B2 (en) Data converter
JP2513636B2 (en) Image processing device
JPS61223894A (en) Contrast conversion control system
JP2623089B2 (en) Video processing system
JPH0635442A (en) Data converting device
JPH0310381A (en) Device and method of displaying picture
JPS6048577A (en) Picture processing system
JPH02153676A (en) Halftone processing circuit
JPH01316845A (en) Image processing device
JPH04182751A (en) Picture memory read-out control circuit
JPH03148779A (en) Picture processing system
JPH05290154A (en) Expanding and color reducing device for full-color compressed data
JPS5933541A (en) Communication controller
JPH0765177A (en) System and device for image processing
JPH03206578A (en) Data conversion circuit
JPH05108810A (en) Image processor
JPH08194457A (en) Image processing device
JPH0567228A (en) Data processing terminal equipment
JPH05307598A (en) Picture processor
JPS62175069A (en) Color document image processor
JPH03141473A (en) Input/output circuit for picture data rotated at optional angle

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080428

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20090428

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20100428

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20110428

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20120428

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20130428

Year of fee payment: 13

LAPS Cancellation because of no payment of annual fees