JPH05347708A - Image converter - Google Patents

Image converter

Info

Publication number
JPH05347708A
JPH05347708A JP15382792A JP15382792A JPH05347708A JP H05347708 A JPH05347708 A JP H05347708A JP 15382792 A JP15382792 A JP 15382792A JP 15382792 A JP15382792 A JP 15382792A JP H05347708 A JPH05347708 A JP H05347708A
Authority
JP
Japan
Prior art keywords
density
data
conversion
image
component
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
JP15382792A
Other languages
Japanese (ja)
Inventor
Shigeaki Sumiya
繁明 角谷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP15382792A priority Critical patent/JPH05347708A/en
Publication of JPH05347708A publication Critical patent/JPH05347708A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

PURPOSE:To provide an image converter which can perform a highly efficient density distribution inspection and the conversion of density with reduction of waste caused by the decoding job required especially for the density distribution inspection. CONSTITUTION:A density distribution inspecting part 102 applies an inspection to a DC component 107, i.e., the low frequency included in the frequency data. Then a density conversion value deciding part 103 decides the density conversion value based on the result 108 of the density distribution inspection. A density converting part 105 applies the conversion of density to the component 107 based on the deciding result of the part 103. A decoding part 105 outputs the decoding data 112 based on the AC data 111 and the density conversion DC component data 110.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、離散的コサイン変換
(以下DCTまたはDCT変換とする)等の手法によっ
て周波数データに変換された階調画像データを、復号化
するとともに、出力対象装置に適するように濃度分布変
換する画像変換装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention decodes gradation image data converted into frequency data by a technique such as discrete cosine transform (hereinafter referred to as DCT or DCT transform) and is suitable for an output target device. The present invention relates to an image conversion device that performs density distribution conversion.

【0002】[0002]

【従来の技術】階調画像データを出力機器に出力する際
には、画質向上のための濃度変換が広く行われている。
2. Description of the Related Art When gradation image data is output to an output device, density conversion for improving image quality is widely performed.

【0003】例えば、「画像処理ハンドブック」(株式
会社 昭晃堂 発行)の「11 画像処理の手法(1)前
処理」の章では、原画像の濃度ヒストグラムを調べ、画
像濃度データ z を
For example, in the chapter of "11 Image Processing Techniques (1) Preprocessing" of "Image Processing Handbook" (published by Shokoido Co., Ltd.), the density histogram of the original image is examined to obtain the image density data z.

【0004】[0004]

【数1】 [Equation 1]

【0005】によってz’に濃度変換する例が述べられ
ている。この変換により、例えば原画像データがaから
bの濃度範囲にあった場合、それが z1 から zk の濃
度範囲のデータになるように変換される。a、b、z
1、zk の値は、原画像の濃度ヒストグラム、出力装置
の特性等を考慮して、適当な値に決定される。また別の
例としては、図3に示すように、濃度ヒストグラムが平
坦化するような濃度変換を行い、コントラストを強調す
る例等が示されている。
An example of density conversion into z'is described by. By this conversion, for example, when the original image data is in the density range from a to b, it is converted so as to be data in the density range from z1 to zk. a, b, z
The values of 1 and zk are determined to be appropriate values in consideration of the density histogram of the original image and the characteristics of the output device. As another example, as shown in FIG. 3, there is shown an example in which the density conversion is performed so that the density histogram is flattened to enhance the contrast.

【0006】また、特開昭60−199286号の例で
は、レッド(以下R)、グリーン(以下G)、ブルー
(以下B)の3色成分からなるカラー画像データを扱う
場合に、全色、全画素のついて濃度調査するのではな
く、グリーン成分の一部の画素についてのみ濃度調査
し、それを全体の濃度分布調査の代用とする手法が用い
られている。具体的には、まず0から255の値をとる
レッド(以下R)、グリーン(以下G)、ブルー(以下
B)の入力カラー画像データのなかから、Gデータにつ
いて、全画素ではなく、10画素に1画素の割合でサン
プリング調査して求めた輝度分布を全画素の輝度分布の
代わりに用い、累積輝度分布の値が全体の1%のポイン
トをダークポイント(再現される濃度の最高値)DP、
99%のポイントをハイライトポイント(再現される濃
度の最低値)HPとし、例えばレッドデータを変換する
場合には、レッドデータをR、シアンデータをCとし
て、
Further, in the example of Japanese Patent Laid-Open No. 60-199286, when color image data consisting of three color components of red (hereinafter R), green (hereinafter G) and blue (hereinafter B) is used, all colors, A method is used in which the densities of all the pixels are not investigated, but the densities of only a part of the pixels of the green component are investigated, and this is used as a substitute for the entire concentration distribution investigation. Specifically, first, from among the input color image data of red (hereinafter R), green (hereinafter G), and blue (hereinafter B) that take values from 0 to 255, for G data, 10 pixels are used instead of all pixels. The brightness distribution obtained by sampling and surveying at a rate of 1 pixel is used instead of the brightness distribution of all pixels, and the point where the value of the cumulative brightness distribution is 1% of the whole is the dark point (the maximum value of the reproduced density) DP. ,
The 99% point is a highlight point (minimum density of reproduced) HP, and when red data is converted, for example, red data is R and cyan data is C,

【0007】[0007]

【数2】 [Equation 2]

【0008】によって、RからCへの変換、ガンマ補
正、正規化を同時に行う例が述べられている。
Describes an example in which R to C conversion, gamma correction, and normalization are performed simultaneously.

【0009】以上にのべた例ではいずれも、適切な濃度
変換を行うためには、事前の濃度分布調査が必要であ
る。
In any of the above examples, in order to carry out an appropriate density conversion, it is necessary to carry out a prior density distribution investigation.

【0010】一方、階調画像データは膨大なデータ容量
となるため、圧縮手段により、データ容量を低減した圧
縮画像データを扱う機会が増えている。特に最近、DC
Tなどを用いて空間データを周波数データに変換したの
ちに、データ圧縮する技術が、高画質と高圧縮率を両立
する技術として注目されている。例えば、JPEG(J
oint Photographic Expert
Group)規格の例では、8×8画素を1ブロックと
し、 1) 2次元DCT 2) DCT係数の適当な精度への量子化 3) 量子化されたDCT係数のハフマン符号化 以上のような手順により、画質劣化が少なく高効率な圧
縮を行っている。
On the other hand, since the gradation image data has an enormous data capacity, the opportunity for handling the compressed image data having a reduced data capacity by the compression means is increasing. Especially recently, DC
A technique of converting spatial data into frequency data by using T or the like and then compressing the data has attracted attention as a technique that achieves both high image quality and high compression rate. For example, JPEG (J
oint Photographic Expert
In the example of the Group standard, 8 × 8 pixels are set as one block, and 1) two-dimensional DCT 2) quantization of DCT coefficient to appropriate precision 3) Huffman coding of quantized DCT coefficient This enables highly efficient compression with little deterioration in image quality.

【0011】[0011]

【発明が解決しようとする課題】先に示した従来技術で
は、適切な濃度変換を行うためには、濃度変換を行う前
に、画像全体または、画像データの一部について、濃度
または輝度等の分布の事前調査を行う必要があった。特
開昭60−199286号の例では、調査結果をヒスト
グラムや累積度数分布の形にせずとも、ハイライトポイ
ントやダークポイントを直接調べるための方法が述べら
れているが、これらの工程も本発明でいうところの「濃
度分布の事前調査」の一種である。
In the prior art shown above, in order to perform the appropriate density conversion, before performing the density conversion, the entire image or a part of the image data, such as the density or the brightness, is changed. It was necessary to conduct a preliminary survey of the distribution. The example of Japanese Patent Laid-Open No. 60-199286 describes a method for directly investigating highlight points and dark points without making the survey results in the form of a histogram or cumulative frequency distribution. It is a kind of "preliminary survey of concentration distribution".

【0012】しかしながら、JPEG等の複雑な手法で
画像圧縮されたデータを入力データとする場合、以上の
ような濃度分布の事前調査をおこなうためには、事前調
査のためにも圧縮画像の復号化作業をおこなわなければ
ならない、という問題点が生じる。復号化された画像デ
ータは何十倍もの容量となるのが普通で、事前調査時に
復号化した画像データをすべて記憶しておいて、濃度変
換時に再度それを用いるということは、多くの場合、メ
モリ容量の点で困難である。このため、濃度分布調査時
に一度復号化作業を行っているにもかかわらず、濃度変
換時にも、複雑で時間がかかる復号化作業を再度繰り返
さざるおえず、作業時間、工数が増大するという問題点
があった。
However, when the image data compressed by a complicated method such as JPEG is used as the input data, in order to perform the above-mentioned preliminary investigation of the density distribution, the compressed image is also decoded for the preliminary investigation. The problem arises that work must be done. Decoded image data usually has a capacity of tens of times, and it is often the case that all the decoded image data is stored at the time of the preliminary survey and used again at the time of density conversion. It is difficult in terms of memory capacity. For this reason, even though the decoding work is performed once at the time of the density distribution investigation, the complicated and time-consuming decoding work has to be repeated again even at the time of converting the density, and the work time and the man-hour increase. was there.

【0013】また、特開昭60−199286号の例の
ように、全画像データについて濃度分布調査をおこなう
のではなく、何%かのデータをサンプリングして調査す
る手法を、JPEG等の圧縮画像データに対して適応す
るケースでは、別の問題点も生じる。例えば、8×8画
素を1ブロックとしてデータ圧縮されている中から1画
素分だけサンプリングしたい場合、サンプリングの際に
も復号化作業が必要となるが、その1画素だけを復号化
する場合でも、8×8=64個のDCTデータすべてを
参照して復号化演算処理をしなければならないため、サ
ンプル数を減らした割りには効率が上がらない。
Further, as in the example of Japanese Patent Laid-Open No. 60-199286, a method of sampling and examining some percentage of data instead of performing density distribution survey on all image data is a compressed image such as JPEG. In the case of adapting to data, another problem arises. For example, if it is desired to sample only one pixel from the data compressed with 8 × 8 pixels as one block, a decoding operation is required at the time of sampling, but even if only one pixel is decoded, Since the decoding operation processing must be performed with reference to all 8 × 8 = 64 pieces of DCT data, the efficiency cannot be improved even if the number of samples is reduced.

【0014】また、従来の手法では、濃度変換処理は各
画素毎に行うため、画素数の多い画像データを扱う場合
には、処理量が非常に多くなるという問題点もあった。
Further, in the conventional method, since the density conversion processing is performed for each pixel, there is a problem that the processing amount becomes extremely large when handling image data having a large number of pixels.

【0015】そこで本発明の目的は、以上のような問題
点を解決するもので、画像データを周波数データの形で
受け取る場合に、2度も復号化作業を行う無駄を減らし
つつ、高効率で適切な濃度分布調査をおこない、的確な
濃度変換が実現でき、しかも濃度変換処理量を大幅に低
減する、画像変換装置を提供することにある。
Therefore, an object of the present invention is to solve the above-mentioned problems, and when receiving image data in the form of frequency data, it is possible to reduce the waste of performing the decoding work twice and to achieve high efficiency. An object of the present invention is to provide an image conversion apparatus which can perform an accurate density conversion by performing an appropriate density distribution investigation and can significantly reduce the density conversion processing amount.

【0016】[0016]

【課題を解決するための手段】本発明の画像変換装置
は、階調画像データを空間周波数成分に変換した周波数
データを入力画像データとする装置であって、前記周波
数データ中の低周波数成分を対象として濃度分布を調査
する濃度分布調査部と、前記濃度分布調査部の調査結果
をもとに濃度変換量を決定する濃度変換量決定部と、前
記低周波成分を前記濃度変換量決定部の決定結果に従っ
て濃度変換し濃度変換低周波成分を得る濃度変換部と、
前記周波数データにおける前記低周波成分を前記濃度変
換低周波成分に置き換えた濃度変換周波数データをもと
に復号化して濃度補正画像データを得る復号化部からな
ることを特徴とする。
An image conversion apparatus of the present invention is an apparatus which uses, as input image data, frequency data obtained by converting grayscale image data into spatial frequency components, wherein low frequency components in the frequency data are A density distribution investigation unit that investigates the density distribution as a target, a density conversion amount determination unit that determines the density conversion amount based on the investigation result of the density distribution investigation unit, and a low frequency component of the density conversion amount determination unit. A density conversion unit for converting density according to the determination result to obtain a density converted low frequency component;
It is characterized by comprising a decoding unit for decoding the low-frequency component in the frequency data by the density-converted low-frequency component to obtain the density-corrected image data.

【0017】[0017]

【実施例】まず、直交変換による画像データ符号化の原
理について簡単に説明しておく。直交変換による変換符
号化は、標本値を相互に直交する座標系に変換すること
によって、標本値間の相関を除去し、効率的な符号化を
実現するものである。また、周波数成分への変換を行
い、パワーが集中し、かつ視覚特性的にも影響力の大き
い低周波成分に多くのビット数を割り当てて、高周波成
分は少ないビット数で量子化することにより、データ圧
縮性を高める。画像を周波数成分に変換する直交変換に
はアダマール変換や、DCT等がある。
First, the principle of image data encoding by orthogonal transformation will be briefly described. The transform coding by orthogonal transform is to realize efficient coding by removing the correlation between sample values by converting sample values into mutually orthogonal coordinate systems. Also, by converting to frequency components, allocating a large number of bits to low-frequency components where power is concentrated and also has a great influence on visual characteristics, high-frequency components are quantized with a small number of bits, Increase data compression. The orthogonal transform for transforming an image into frequency components includes Hadamard transform, DCT, and the like.

【0018】次に、DCTとその逆変換について、8×
8画素を1ブロックとして符号化する場合の例を、図4
に基づいて説明しておく。原画像データを8×8画素ず
つのブロックに分け、ブロック単位で変換する。各画素
を1ブロック内での相対位置によって、左上の画素を原
点のゼロ番目のデータとして、右方向にi番目、下方向
にj番目の画素のデータを、 f(i,j) (0≦i<8,0≦j<8, i,j は整数) のように表わすとする。左上角の原点データはf(0、
0)、右下角のデータはf(7、7)となる。この時DC
T変換されたデータ F(u,v) (0≦u<8,0≦v<8, u,v は整数) は、
Next, regarding DCT and its inverse transformation, 8 ×
An example of encoding 8 pixels as one block is shown in FIG.
It will be explained based on. The original image data is divided into blocks of 8 × 8 pixels and converted in block units. According to the relative position of each pixel in one block, the upper left pixel is the zeroth data of the origin, and the data of the i-th pixel in the right direction and the j-th pixel in the downward direction is f (i, j) (0 ≦ i <8, 0 ≦ j <8, i and j are integers). The origin data in the upper left corner is f (0,
0) and the data in the lower right corner is f (7,7). DC at this time
The T-transformed data F (u, v) (0 ≦ u <8, 0 ≦ v <8, u, v are integers) is

【0019】[0019]

【数3】 [Equation 3]

【0020】の様になる。It becomes like.

【0021】F(0、0)は、画像ブロックの平均データ
に対応する値を表わし、直流成分の意味でDC係数と呼
ばれる。式3の場合は、実際にはブロック内データの平
均値の8倍となる。他の63要素は、交流成分を表わ
し、AC係数とも呼ばれる。式3のu,vの値が大きい
ほど、高周波の成分となる。データ圧縮を行う場合に
は、自然画においては高周波成分ほど値が小さく、かつ
人間の目にも認識されにくくなることを利用し、高周波
成分の下位ビットを切り捨てて少ないビット数で量子化
する。
F (0,0) represents a value corresponding to the average data of the image block, and is called a DC coefficient in the sense of a DC component. In the case of the formula 3, it is actually eight times the average value of the data in the block. The other 63 elements represent AC components and are also called AC coefficients. The larger the values of u and v in Expression 3, the higher the frequency component. In the case of performing data compression, the fact that the higher the frequency component in a natural image is, the smaller the value is and the more difficult it is to be recognized by human eyes, the lower bits of the high frequency component are discarded and quantization is performed with a small number of bits.

【0022】また、Fからfを求める逆離散コサイン変
換(IDCT)は、
The inverse discrete cosine transform (IDCT) for obtaining f from F is

【0023】[0023]

【数4】 [Equation 4]

【0024】となる。ただし、式4中のc(u),c(v)
の定義は、式3の場合と同様である。では、以下に、本
発明の画像変換装置の実施例を図に基づいて説明する。
図1は、直交変換としてDCTを用いて、8×8画素を
1ブロックとして符号化された画像データを扱う場合の
本発明の1実施例を示す図である。
It becomes However, c (u), c (v) in Expression 4
The definition of is the same as the case of Expression 3. Now, an embodiment of the image conversion apparatus of the present invention will be described below with reference to the drawings.
FIG. 1 is a diagram showing an embodiment of the present invention in the case of using DCT as an orthogonal transform and handling image data encoded with 8 × 8 pixels as one block.

【0025】データ入力部101には、直交変換として
DCTを用いて周波数データに変換された、DCT画像
データ106が入力される。DCT画像データ106は
磁気ディスク記憶装置内のファイルや通信回線から直接
得られる場合もあるし、JPEG規格等によって圧縮さ
れたデータの復号化過程で得られる場合もある。データ
入力部101は、最初の濃度分布調査工程では、DCT
画像データ106から、低周波成分として、DC成分デ
ータ107のみを選択し、濃度分布調査部102に出力
する。式3では、DC成分F(0、0)はブロック内デー
タの平均値の8倍の値になるが、本実施例では、DC成
分は、原画像データと同じ8ビット、256階調に量子
化して出力されるものとする。
To the data input unit 101, DCT image data 106 converted into frequency data using DCT as orthogonal transformation is input. The DCT image data 106 may be obtained directly from a file in the magnetic disk storage device or a communication line, or may be obtained in the decoding process of data compressed according to the JPEG standard or the like. The data input unit 101 uses the DCT in the first concentration distribution investigation process.
From the image data 106, only the DC component data 107 is selected as the low frequency component and output to the density distribution investigation unit 102. In Equation 3, the DC component F (0,0) has a value that is eight times the average value of the data in the block, but in this embodiment, the DC component has the same 8-bit and 256-gradation as the original image data. Shall be output after being converted.

【0026】次に、濃度分布調査部102は、DC成分
データ107を対象に、濃度分布調査をおこなう。濃度
分布調査部102の詳細については、図2を用いて説明
する。本実施例では、濃度分布調査工程の簡略化のため
に、DC成分値の分布を、64区間に分割する。そのた
め、濃度分布調査部102は、カウンタ0からカウンタ
63までの64個のカウンタ202とカウンタ制御部2
01を持つ。カウンタ制御部201は、調査開始前に全
てのカウンタの初期値をゼロにしておく。次に、カウン
タ制御部201はDC成分データ107の値を読み込
み、その値がn×4以上、n×4+3以下(nは0以上
63以下の整数)の時は カウンタnの値を1増やす、
というカウント動作を行う。このカウント動作を全DC
成分データ107に対して行うことで、n番目のカウン
タの値が、DC成分のレベルが n×4 以上 n×4+
3 以下範囲のデータ数を示すようになる。これによ
り、カウンタ201内に、下位2ビットを無視して濃度
を64のエリアに区切った場合の、DC成分データ10
7の分布データが得られ、濃度調査結果108として、
濃度変換量決定部103に出力される。
Next, the concentration distribution investigation unit 102 conducts a concentration distribution investigation on the DC component data 107. Details of the concentration distribution investigation unit 102 will be described with reference to FIG. In the present embodiment, the distribution of the DC component value is divided into 64 sections in order to simplify the concentration distribution inspection process. Therefore, the density distribution investigation unit 102 includes 64 counters 202 from the counter 0 to the counter 63 and the counter control unit 2.
Has 01. The counter control unit 201 sets the initial values of all counters to zero before starting the investigation. Next, the counter control unit 201 reads the value of the DC component data 107, and when the value is n × 4 or more and n × 4 + 3 or less (n is an integer of 0 or more and 63 or less), increments the value of the counter n by 1,
The counting operation is performed. This count operation is all DC
By performing this on the component data 107, the value of the n-th counter is such that the DC component level is n × 4 or more n × 4 +
It shows the number of data in the range of 3 or less. As a result, in the counter 201, the DC component data 10 when the lower 2 bits are ignored and the density is divided into 64 areas
7 distribution data were obtained, and as the concentration survey result 108,
It is output to the density conversion amount determination unit 103.

【0027】濃度変換量決定部103は、濃度分布調査
部102から得られた濃度分布調査結果を基に、DC成
分の最適な濃度変換量を決定する。
The density conversion amount determination unit 103 determines the optimum density conversion amount of the DC component based on the density distribution inspection result obtained from the concentration distribution inspection unit 102.

【0028】濃度分布調査結果をもとに、適切な濃度変
換量を決めるには、多くの手法があるが、本実施例で
は、特開昭60−199286号の例のように、高濃度
側から数えた累積輝度分布の値が、全体の1%のポイン
トをダークポイント:DP、99%のポイントをハイラ
イトポイント:HPとしてその値をもとめ、それを[従
来の技術]で説明した式1に応用することとする。すな
わち、式1で b=DP、a=HP、zk=255、z1=0 のように定数を割り当て、濃度変換式 式5を決定す
る。
There are many methods for determining an appropriate density conversion amount based on the result of density distribution investigation, but in this embodiment, as in the example of Japanese Patent Laid-Open No. 60-199286, the high density side is used. The value of the cumulative luminance distribution counted from the above is obtained by defining 1% of the points as the dark point: DP and 99% of the points as the highlight point: HP. It will be applied to. That is, a constant conversion equation 5 is determined by assigning constants such as b = DP, a = HP, zk = 255, and z1 = 0 in the equation 1.

【0029】[0029]

【数5】 [Equation 5]

【0030】ただし z’<0 の場合には z’=0、z’>255
の場合には z’=255 として、変換結果が8ビットの範囲を越えないようにす
る。
However, when z '<0, z' = 0, z '> 255
In this case, z '= 255 is set so that the conversion result does not exceed the 8-bit range.

【0031】次に、復号化部105は、DCT画像デー
タのDC成分として濃度変換DCデータ110を、AC
成分としてAC成分データ111を用い、先に説明した
ようなIDCT処理によって、周波数データを、空間画
像データに変換した復号化データ112を出力する。
Next, the decoding unit 105 converts the density-converted DC data 110 as the DC component of the DCT image data into AC.
The AC component data 111 is used as a component, and the IDCT processing as described above outputs the decoded data 112 obtained by converting the frequency data into the spatial image data.

【0032】以上の実施例において、濃度変換量決定部
103や濃度変換部104等における各種の演算処理
は、コンピュータの中央処理装置がソフトウェア演算に
よって行ってもよいし、電子回路による乗算器や加算器
を組み合わせる等の手段で構成した、ハードウェアによ
る演算器を用いてもよい。
In the above embodiment, the central processing unit of the computer may perform various arithmetic processing in the density conversion amount determining unit 103, the density converting unit 104, etc. by software calculation, or by a multiplier or addition by an electronic circuit. You may use the arithmetic unit by hardware comprised by means, such as combining a device.

【0033】以上の実施例では、式5のような濃度変換
式に基づく濃度変換を行ったが、出力装置が特定の入出
力特性を持つ場合に、それを補正するような濃度変換処
理を同時に行ってもよい。例えば、特開昭60−199
286号での例を示した式2のように、式中に log を
導入して、出力装置に応じたガンマ補正を同時に行って
もよい。
In the above embodiment, the density conversion based on the density conversion equation such as the expression 5 is performed. However, when the output device has a specific input / output characteristic, the density conversion processing for correcting it is performed at the same time. You can go. For example, JP-A-60-199
Like Equation 2 in the example of No. 286, log may be introduced into the equation to perform gamma correction depending on the output device at the same time.

【0034】また、特開昭60−199286号の例の
ように、濃度分布調査部と濃度変換量決定部が一体化し
ていて、分布調査と変換量決定を同時に行うような構成
でもよい。
Further, as in the example of Japanese Patent Laid-Open No. 60-199286, the density distribution inspecting unit and the density conversion amount determining unit may be integrated so that the distribution inspection and the conversion amount determining are performed simultaneously.

【0035】また、以上の実施例では、DCデータは8
ビットの精度で扱い、濃度分布調査は6ビットの精度で
行ったが、これらは任意の精度で行ってよい。また、濃
度変換等の前後で、精度や使用ビット数変化してもよ
い。
In the above embodiment, the DC data is 8
Although it was handled with bit precision and the concentration distribution investigation was performed with 6-bit precision, these may be performed with arbitrary precision. The accuracy and the number of used bits may be changed before and after the density conversion.

【0036】また、濃度変換量は必ずしも特定の式で示
される必要はない。例えば、図3に示したような濃度分
布ヒストグラム平坦化処理を用いて、濃度分布調査部で
得られたDC成分の分布ヒストグラムを平坦化する、濃
度変換テーブルを求め、その変換テーブルを用いて、D
C成分データの濃度変換を行ってもよい。
The density conversion amount does not necessarily have to be represented by a specific formula. For example, by using the density distribution histogram flattening process as shown in FIG. 3, the density conversion table for flattening the DC component distribution histogram obtained by the density distribution research unit is obtained, and the conversion table is used to D
You may perform the density conversion of C component data.

【0037】また、濃度分布調査部は、必ずしも全DC
データを調査する必要はなく、特開昭60−19928
6号の例のように、適当な方法でサンプリングしたデー
タのみについて調査してもよい。
Further, the concentration distribution investigation unit does not necessarily have to be all DC.
It is not necessary to investigate the data, and it is possible to use the data disclosed in JP-A-60-19928
You may investigate only the data sampled by the appropriate method like the example of No. 6.

【0038】また、以上の実施例では、「濃度」という
言葉を用いたが、これは輝度や明度等、画像の明るさま
たは暗さを示す他のパラメータを対象にしてもよい。
In the above embodiments, the term "density" is used, but this may be applied to other parameters indicating brightness or darkness of an image such as brightness and brightness.

【0039】以上の実施例は、単色画像での濃度変換の
例であったが、もちろんレッド、グリーン、ブルー等の
複数の色成分データからなるカラー画像に対して本発明
を適応してもよい。その場合、各色成分ごとに、独立し
て本発明の濃度変換を実施してもよいし、特開昭60−
199286号の例のように、このうちの一色成分のみ
を対象に濃度分布調査をおこない、その結果決定した濃
度変換量を、すべての色成分に対して適応してもよい。
また、レッド、ブルー、グリーンのDC成分データを、
演算処理によってモノクロ輝度データに変換し、その輝
度データを対象に濃度分布調査を行う等してもよい。
The above embodiments are examples of density conversion in a single color image, but of course the present invention may be applied to a color image composed of a plurality of color component data such as red, green and blue. . In that case, the density conversion of the present invention may be carried out independently for each color component.
As in the example of No. 199286, the density distribution investigation may be performed on only one of the color components, and the density conversion amount determined as a result may be applied to all the color components.
In addition, the DC component data of red, blue and green,
It is also possible to convert the luminance data into monochrome luminance data by an arithmetic process and perform a density distribution investigation on the luminance data.

【0040】また、以上の実施例では、8×8画素を1
ブロックとして、直交変換された画像データの例につい
て述べたが、1ブロックの画素サイズは4×4、16×
16等、任意の数でよい。また、10×10等、2のべ
き乗以外の数でもよい。
Further, in the above embodiment, one pixel is 8 × 8 pixels.
An example of orthogonally transformed image data has been described as a block, but the pixel size of one block is 4 × 4, 16 ×
Any number such as 16 may be used. Also, a number other than a power of 2 such as 10 × 10 may be used.

【0041】以上のように、本発明では、原画像の濃度
分布を直接調査する代わりに、DCT画像におけるDC
成分等の、低周波成分を対象に、濃度分布調査を行って
おり、そのために、調査対象のデータ量が大幅に少なく
なっている。図1の実施例のように、8×8画素を1ブ
ロックとした場合には、DC成分データ数は原画像デー
タ数の1/64になる。先に述べたように、DC成分は
ブロック内データの平均値に対応する値である。画像デ
ータとして自然画を扱う場合には、一般にAC成分量は
それほど多くないので、DC成分のみを対象としたこと
による問題はあまり生じない。
As described above, in the present invention, instead of directly investigating the density distribution of the original image, the DC in the DCT image is
We are conducting concentration distribution surveys for low-frequency components such as components, and as a result, the amount of data to be surveyed is significantly reduced. As in the embodiment of FIG. 1, when 8 × 8 pixels are set as one block, the number of DC component data becomes 1/64 of the number of original image data. As described above, the DC component is a value corresponding to the average value of the data in the block. When a natural image is treated as image data, the AC component amount is generally not so large, and therefore the problem caused by targeting only the DC component does not occur much.

【0042】また同様に、本発明では、濃度変換処理も
全画像データに行わず、DC成分等の低周波成分のみに
行い、処理量を大幅に減少させている。DC成分値を増
減させると、ブロック内の全データが、等量だけ変化す
る。例えば、式4を用いてDCTデータを復号化する場
合は、DC成分F(0、0)をある値X変化させるのは、
復号化後の全データを一律にX/8だけ変化させるのと
等価となる。これは、復号化後の画素データ1つ1つに
応じた濃度補正は行っていないことを示しているが、こ
れもAC成分の少ない自然画を対象とする場合には大き
な問題にならず、処理量低減のメリットの方がはるかに
大きい。
Similarly, in the present invention, the density conversion processing is not performed on all image data, but only on low frequency components such as DC components, thereby significantly reducing the processing amount. Increasing or decreasing the DC component value changes all data in the block by an equal amount. For example, when decoding the DCT data using the equation 4, changing the DC component F (0,0) by a certain value X
This is equivalent to uniformly changing all the decoded data by X / 8. This shows that the density correction according to each pixel data after decoding is not performed, but this also does not cause a big problem when a natural image with a small AC component is targeted, The benefits of reduced throughput are much greater.

【0043】[0043]

【発明の効果】そこで本発明の目的は、以上のような問
題点を解決するもので、画像データを周波数データの形
で受け取る場合に、2度も復号化作業を行う無駄を減ら
しつつ、高効率で適切な濃度分布調査をおこない、的確
な濃度変換が実現でき、しかも濃度変換処理量を大幅に
低減する、画像変換装置を提供することにある。
Therefore, an object of the present invention is to solve the above-mentioned problems, and when receiving image data in the form of frequency data, it is possible to reduce the waste of performing the decoding work twice and to improve the performance. An object of the present invention is to provide an image conversion device that can perform an appropriate density distribution investigation efficiently and can realize accurate density conversion, and can significantly reduce the amount of density conversion processing.

【0044】以上にのべたように、本発明の画像変換装
置は、濃度分布調査部が、周波数データ中の低周波成分
を対象に濃度分布調査を行うよう構成したため、濃度分
布の事前調査のために、わざわざ画像の復号化作業をお
こなう必要がない上に、調査対象データ数を大幅に減ら
すことができる。このため、JPEG等の圧縮画像に濃
度補正を施す場合に、濃度変換量を決定するための工程
を大幅に減らすことができる。
As described above, in the image conversion apparatus of the present invention, the density distribution inspecting unit is configured to perform the density distribution inspection for the low frequency components in the frequency data, and therefore, for the preliminary investigation of the density distribution. In addition, it is not necessary to bother to decode the image, and the number of survey target data can be significantly reduced. Therefore, when density correction is performed on a compressed image such as JPEG, the number of steps for determining the density conversion amount can be significantly reduced.

【0045】また濃度変換部も、同じく低周波成分のみ
を対象に濃度変換を行うよう構成したため、濃度変換処
理量も大幅に減らせる。
Further, since the density conversion section is also configured to perform density conversion only for low frequency components, the density conversion processing amount can be greatly reduced.

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

【図1】本発明の一実施例を示す図。FIG. 1 is a diagram showing an embodiment of the present invention.

【図2】本発明の濃度分布調査部の一実施例を示す図。FIG. 2 is a diagram showing an embodiment of a concentration distribution investigation unit of the present invention.

【図3】濃度変換手法の一例を示す図。FIG. 3 is a diagram showing an example of a density conversion method.

【図4】DCT変換を示す図。FIG. 4 is a diagram showing DCT conversion.

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

102 濃度分布調査部 103 濃度変換量決定部 104 濃度変換部 105 復号化部 102 density distribution investigation unit 103 density conversion amount determination unit 104 density conversion unit 105 decoding unit

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 階調画像データを空間周波数成分に変換
した、周波数データを、入力画像データとする装置であ
って、 前記周波数データ中の低周波数成分を対象として、濃度
分布を調査する濃度分布調査部と、 前記濃度分布調査部の調査結果をもとに濃度変換量を決
定する濃度変換量決定部と、 前記低周波成分を前記濃度変換量決定部の決定結果に従
って濃度変換し濃度変換低周波成分を得る濃度変換部
と、 前記周波数データにおける前記低周波成分を前記濃度変
換低周波成分に置き換えた濃度変換周波数データをもと
に復号化して濃度補正画像データを得る復号化部からな
ることを特徴とする画像変換装置。
1. A device which uses, as input image data, frequency data obtained by converting grayscale image data into spatial frequency components, the density distribution for investigating the density distribution of low frequency components in the frequency data. And a density conversion amount determining unit that determines the density conversion amount based on the result of the density distribution investigating unit, and performs density conversion of the low frequency component according to the determination result of the density conversion amount determining unit. A density conversion unit for obtaining a frequency component, and a decoding unit for decoding the low frequency component in the frequency data with the density conversion low frequency component to obtain density corrected image data by decoding the density conversion frequency data. Image conversion device characterized by.
【請求項2】 請求項1記載の周波数データが階調画像
データを直交変換したデータであることを特徴とする画
像変換装置。
2. An image conversion apparatus, wherein the frequency data according to claim 1 is data obtained by orthogonally converting gradation image data.
【請求項3】 請求項1記載の周波数データが階調画像
データを離散的コサイン変換したデータであることを特
徴とする画像変換装置。
3. An image conversion apparatus, wherein the frequency data according to claim 1 is data obtained by performing discrete cosine conversion of gradation image data.
JP15382792A 1992-06-12 1992-06-12 Image converter Pending JPH05347708A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15382792A JPH05347708A (en) 1992-06-12 1992-06-12 Image converter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15382792A JPH05347708A (en) 1992-06-12 1992-06-12 Image converter

Publications (1)

Publication Number Publication Date
JPH05347708A true JPH05347708A (en) 1993-12-27

Family

ID=15570959

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15382792A Pending JPH05347708A (en) 1992-06-12 1992-06-12 Image converter

Country Status (1)

Country Link
JP (1) JPH05347708A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001189938A (en) * 1999-11-24 2001-07-10 Xerox Corp Processing method for jpeg compression picture data
JP2010206805A (en) * 2004-03-10 2010-09-16 Seiko Epson Corp Image quality display apparatus, image quality display method, and image quality display program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001189938A (en) * 1999-11-24 2001-07-10 Xerox Corp Processing method for jpeg compression picture data
JP2010206805A (en) * 2004-03-10 2010-09-16 Seiko Epson Corp Image quality display apparatus, image quality display method, and image quality display program

Similar Documents

Publication Publication Date Title
Dony Karhunen-loeve transform
US6256415B1 (en) Two row buffer image compression (TROBIC)
US5936669A (en) Method and system for three-dimensional compression of digital video signals
US6847735B2 (en) Image processing system, image processing apparatus, image input apparatus, image output apparatus and method, and storage medium
US6697529B2 (en) Data compression method and recording medium with data compression program recorded therein
Singh et al. Novel adaptive color space transform and application to image compression
JP3105335B2 (en) Compression / expansion method by orthogonal transform coding of image
US20030081848A1 (en) Image encoder, image encoding method and image-encoding program
EP0974932A2 (en) Adaptive video compression
JPH0951504A (en) Image encoding device and image decoding device
Savitri et al. Digital medical image compression algorithm using adaptive Huffman coding and graph based quantization based on IWT-SVD
JPH05347708A (en) Image converter
JP3163753B2 (en) Image processing apparatus and image processing method
JP2004135254A (en) Image processing unit
JP2001145107A (en) Signal processor using dct and image-compressing device
US20040151395A1 (en) Encoding method and arrangement for images
JPH05176179A (en) Method and device for estimating picture data subject to compression/expansion processing
CN107027027A (en) Coding, coding/decoding method and the device and the coding/decoding system of image of image
US20040105590A1 (en) Method for still image compressing using filter bank based on non-separable wavelet basis
Elmourssi et al. A Performance Study Of Two Jpeg Compression Approaches
Farvardin et al. Adaptive DCT coding of images using entropy-constrained trellis coded quantization
JPH07154605A (en) Color picture processing method
Abd-Elhafiez et al. New efficient method for coding color images
Alhadi Compression of Medical Images Based on 2D-Discrete Cosine Transform and Vector Quantization Algorithms
Dziech et al. Methods of image compression by PHL transform