JPH04323964A - Picture processing method and device - Google Patents

Picture processing method and device

Info

Publication number
JPH04323964A
JPH04323964A JP3092293A JP9229391A JPH04323964A JP H04323964 A JPH04323964 A JP H04323964A JP 3092293 A JP3092293 A JP 3092293A JP 9229391 A JP9229391 A JP 9229391A JP H04323964 A JPH04323964 A JP H04323964A
Authority
JP
Japan
Prior art keywords
compression
image
section
component
color
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
JP3092293A
Other languages
Japanese (ja)
Inventor
Yoshinobu Mita
三田 良信
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP3092293A priority Critical patent/JPH04323964A/en
Publication of JPH04323964A publication Critical patent/JPH04323964A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Error Detection And Correction (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は多値画像を効率良く圧縮
するための画像圧縮・伸長技術に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image compression/expansion technique for efficiently compressing multivalued images.

【0002】0002

【従来の技術】多値画像の圧縮技術として、写真等の画
像を主にターゲツトとしてADCT(適応型離散コサイ
ン変換)圧縮方式が提案されている。
2. Description of the Related Art As a compression technique for multivalued images, an ADCT (adaptive discrete cosine transform) compression method has been proposed mainly targeting images such as photographs.

【0003】その圧縮方式では3原色色信号をY、Cr
、Cbの3成分に変換し、色成分であるCr、Cb成分
はサブサンプリングにより解像度を落してから画像圧縮
し、輝度(明度)成分であるY信号はそのままの解像度
で圧縮する。
In this compression method, the three primary color signals are converted into Y and Cr.
, Cb, the resolution of the color components Cr and Cb is lowered by subsampling before image compression, and the Y signal, which is the luminance (brightness) component, is compressed with the same resolution.

【0004】0004

【発明が解決しようとしている課題】しかしながら従来
では、写真画像のような連続階調画像は、効率良く、劣
化も少なく、圧縮できるものの、文字画像に対しては、
エツジ部分を忠実に圧縮できずに劣化を生じてしまうと
いう欠点があった。又、Y、Cb、Crの色成分を4:
1:1又は4:2:2の比率のデータになるようにサブ
サンプリングして圧縮すると、白黒文字よりもカラー文
字の方がより大きな劣化を生じる。又、カラー文字につ
いても、色の種類により劣化の度合が異なり、すべての
文字に対して同等の効率で、圧縮されず非常に不都合で
ある。特に全ての色の文字を判読可能にするためには、
一番劣化のはげしい色文字のエツジを保存するため、圧
縮効率が極端に下がってしまうという欠点がある。
[Problems to be Solved by the Invention] Conventionally, however, while continuous tone images such as photographic images can be compressed efficiently and with little deterioration, text images cannot be compressed.
The disadvantage was that the edge portions could not be compressed faithfully, resulting in deterioration. Also, the color components of Y, Cb, and Cr are 4:
Subsampling and compressing data to a 1:1 or 4:2:2 ratio results in greater degradation for color characters than for black and white characters. Furthermore, the degree of deterioration of color characters varies depending on the type of color, and all characters cannot be compressed with the same efficiency, which is very inconvenient. In particular, to make characters of all colors legible,
Since the edges of colored characters, which are the most degraded, are preserved, the compression efficiency is extremely reduced.

【0005】本発明はかかる従来技術の欠点に鑑みてな
されたもので、画像の劣化をおさえて圧縮できる画像処
理方法及び装置を提供することを目的とする。
The present invention has been made in view of the drawbacks of the prior art, and it is an object of the present invention to provide an image processing method and apparatus capable of compressing images while suppressing image deterioration.

【0006】[0006]

【課題を解決するための手段及び作用】上記課題を解決
するため、本発明の画像処理方法は、各色成分毎に異な
る画像圧縮を行う際に、各色成分の重要度に応じて保存
度の高い圧縮処理を行うことを特徴とする。
[Means and Effects for Solving the Problems] In order to solve the above problems, the image processing method of the present invention provides a high degree of preservation according to the importance of each color component when performing different image compression for each color component. It is characterized by performing compression processing.

【0007】また、本発明の画像処理装置は、複数の色
成分データを入力する手段と、前記色成分データの重要
度に応じて保存度の異なる圧縮処理を行う圧縮手段を有
することを特徴とする。
Furthermore, the image processing apparatus of the present invention is characterized by having means for inputting a plurality of color component data, and a compression means for performing compression processing with different degrees of preservation depending on the importance of the color component data. do.

【0008】[0008]

【実施例】本発明の実施例は、圧縮効率を下げずに、色
文字を劣化少なく圧縮するADCT圧縮を行うもので、
Y、Cr、Cb信号の内、最もエツジ成分の大きい信号
成分に対しサブサンプリングを行わず、残りに対してサ
ブサンプリングする事により、色文字画像の必要な成分
のエツジを高い解像度で圧縮し、全ての色文字の劣化を
最少限に抑えるものである。
[Embodiment] An embodiment of the present invention performs ADCT compression that compresses color characters with less deterioration without reducing compression efficiency.
By not performing subsampling on the signal component with the largest edge component among the Y, Cr, and Cb signals, and subsampling the rest, the edges of the necessary components of the color character image can be compressed with high resolution. This minimizes the deterioration of all color characters.

【0009】本発明の実施例について以下に具体的に説
明する。
Examples of the present invention will be explained in detail below.

【0010】図1は画像圧縮処理回路を示すものである
FIG. 1 shows an image compression processing circuit.

【0011】まず入力された画像データは色変換部にお
いてY、Cb、Crの画像へと変換される。変換された
Y、Cb、Crのデータは、エツジ検出部2、3、4に
入力され、Y、Cb、Crの成分の内、どの成分のが周
波数的にはげしく変化しているかを検出する。エツジ検
出部2、3、4の検出結果は比較部5に送られて比較部
で周波数的に、はげしく変化しているかを決定し、各部
分を制御すると共に、コード生成部で周波数的にはげし
く変化している画像成分名、Y又はCb又はCrをコー
ドとして生成する。本実施例では、ADCTの8x8画
素単位の各ブロツク毎にも、ページ単位でも、この判断
が行え、しかも、各ブロツク毎に判定する場合はそのデ
ータが復号の際に必要なために、圧縮部/伸長部26に
より、コード生成部を圧縮する事が可能である。
First, input image data is converted into Y, Cb, and Cr images in a color conversion section. The converted Y, Cb, and Cr data are input to edge detection units 2, 3, and 4, which detect which component among the Y, Cb, and Cr components is changing rapidly in terms of frequency. The detection results of the edge detection units 2, 3, and 4 are sent to the comparison unit 5, which determines whether the frequency is changing rapidly, controls each part, and the code generation unit determines whether the frequency is changing rapidly. Generate the changing image component name, Y, Cb, or Cr as a code. In this embodiment, this judgment can be made for each 8x8 pixel block of ADCT or for each page.Moreover, when the judgment is made for each block, the data is required for decoding, so the compression unit /The decompressor 26 can compress the code generator.

【0012】エツジ検出部、2、3、4の具体的な構成
は図2のようになっていて入力画像に対し1ラインの遅
延をラインバツフア31で行い、この出力と入力信号は
ラツチ33、32により1画素分の遅延が行われる。こ
の入力信号、ラインバツフア31の出力、ラツチ32、
33の出力は図2のa、b、c、d、に示す様に空間的
に隣接しており、差分計算部34でa−b、a−d、a
−c、b−c、b−d、c−dの6つの組み合わせの絶
対値が計算され、8x8毎に、それぞれの最大値がラツ
チされた後に出力され最大値判定部35及び選択部36
に入力される。最大値判定部35では、6つの組み合わ
せそれぞれの最大値の中の最大値を判定して選択部36
よりその値を出力させる仕組となっている。
The concrete configuration of the edge detection sections 2, 3, and 4 is as shown in FIG. Thus, a delay of one pixel is performed. This input signal, the output of the line buffer 31, the latch 32,
The outputs of 33 are spatially adjacent as shown in a, b, c, and d in FIG.
The absolute values of six combinations of -c, b-c, b-d, and c-d are calculated, and the maximum values are latched and output for each 8x8 unit to the maximum value determination section 35 and the selection section 36.
is input. The maximum value determination unit 35 determines the maximum value among the maximum values of each of the six combinations, and selects the maximum value from the selection unit 36.
The system is designed to output that value.

【0013】ところで色変換部1より出力されたY、C
b、Cr信号は、同時にサブサンプリング部6、7、8
に入力される。ここでサンプリング比4:1:1の1に
当る成分が、DCT部9、10、11に与えられ比4の
内比1を引いた残り3の部分がDCT部12、13、1
4に入力されている。
By the way, the Y and C output from the color conversion section 1
b, Cr signals are simultaneously processed by sub-sampling units 6, 7, 8.
is input. Here, the component corresponding to 1 of the sampling ratio 4:1:1 is given to the DCT sections 9, 10, and 11, and the remaining 3 parts after subtracting the internal ratio of 1 from the ratio 4 are the components corresponding to the DCT sections 12, 13, and 11.
4 is entered.

【0014】図3はサブサンプリングを行う際の2x2
画素成分を示す。従ってサブサンプルされる色成分につ
いて言えばDCT部9にはYaが入力され、DCT部1
0にはCbaが入力され、DCT部11にはCraが入
力され、順次サブサンプルされた、又はされていない8
x8画素が入力される。又、Y成分のエツジが大きい時
にはDCT部12、13、14に隣接する3つの8x8
ブロツクのY成分が入力され、Cb成分のエツジが大き
い時にはDCT部12、13、14に隣接する3つの8
x8ブロツクのCb成分が入力され、Cr成分が大きい
時には、隣接する3つの8x8ブロツクのCr成分がD
CT部12、13、14に入力されるように比較部5に
より制御される。DCT部9、10、11、12、13
、14でDCT変換されて得られた結果はそれぞれ量子
化部15、16、17、18、19、20で量子化され
る。
FIG. 3 shows 2x2 when performing subsampling.
Indicates pixel components. Therefore, regarding the color components to be subsampled, Ya is input to the DCT section 9, and the DCT section 1
Cba is input to 0, Cra is input to the DCT unit 11, and 8 is subsampled or not subsampled sequentially.
x8 pixels are input. Also, when the edge of the Y component is large, three 8x8
When the Y component of the block is input and the edge of the Cb component is large, the three 8's adjacent to the DCT sections 12, 13, and
When the Cb component of the x8 block is input and the Cr component is large, the Cr components of three adjacent 8x8 blocks are D.
It is controlled by the comparison section 5 so that it is input to the CT sections 12, 13, and 14. DCT sections 9, 10, 11, 12, 13
, 14 are quantized by quantization units 15, 16, 17, 18, 19, and 20, respectively.

【0015】量子化部15、16、17の出力はそれぞ
れハフマン符号化を行うH符号化部21、22、23に
入力される。又、Y成分のエツジが大きい時は量子化部
18、19、20の出力は、H符号化部21に入力され
Cb成分のエツジが大きい時は量子化部18、19、2
0の出力はH符号化部22に入力され、Cr成分の大き
い時は、量子化部18、19、20の出力はH符号化部
23に入力される。H符号化部21、22、23の入力
は、パラ/シリ変換部24に入力される。パラ/シリ変
換部24では符号化データを色成分毎にインターリーブ
するか否かに応じデータの並べ換えを行うものでインタ
ーリーブの場合は、ブロツク順次に並べ換える。Y:C
r:Cb=4:1:1の場合はYYYYCrCbの順の
繰返しとなり、Y:Cr:Cb=1:4:1の場合はY
CrCrCrCrCbの順となり、Y:Cr:Cb=1
:1:4の場合はYCrCbCbCbCbの順の繰返し
によりデータ構成を行う。このようにシリアルに並べ換
えられたデータは圧縮データとして送出される。
The outputs of the quantization units 15, 16, and 17 are input to H encoding units 21, 22, and 23, respectively, which perform Huffman encoding. Furthermore, when the edges of the Y component are large, the outputs of the quantizers 18, 19, and 20 are input to the H encoder 21, and when the edges of the Cb component are large, the outputs of the quantizers 18, 19, and 20 are input to the H encoder 21.
The output of 0 is input to the H encoder 22, and when the Cr component is large, the outputs of the quantizers 18, 19, and 20 are input to the H encoder 23. The inputs of the H encoders 21, 22, and 23 are input to a para/serial converter 24. The para/serial converter 24 rearranges the encoded data depending on whether or not to interleave each color component. In the case of interleaving, the data is rearranged in block order. Y:C
When r:Cb=4:1:1, the order of YYYYCrCb is repeated, and when Y:Cr:Cb=1:4:1, Y
The order is CrCrCrCrCrCb, Y:Cr:Cb=1
:1:4, data configuration is performed by repeating the order of YCrCbCbCbCb. The data rearranged serially in this way is sent out as compressed data.

【0016】ところで以上のように圧縮された画像デー
タに対し、復号を行う場合について説明する。図1にお
いて、圧縮の説明をしたが、  データの流れる方向を
全く正反対にすることにより伸長が可能である。ただし
H符号化部21、22、23は、ハフマンの復号を行い
、量子化部15〜20では逆量子化を行う。又、DCT
部9〜14では逆変換のための係数がセツトされて動作
する。又、サブサンプリング部6〜8では、単純繰返し
法による画像の拡大をサブサンプリングされている要素
成分に対してだけ行う。
By the way, the case where image data compressed as described above is decoded will be explained. Compression has been explained in Figure 1, but decompression is possible by completely reversing the direction in which data flows. However, the H encoding units 21, 22, and 23 perform Huffman decoding, and the quantization units 15 to 20 perform inverse quantization. Also, DCT
In sections 9 to 14, coefficients for inverse transformation are set and operated. Further, in the subsampling units 6 to 8, the image is enlarged by the simple iterative method only for the subsampled element components.

【0017】さらに伸長時には、エツジ検出部2、3、
4及び比較部5は動作せず、代りにコード生成部が第1
図中50、51の部分の制御及びパラ/シリ変換部24
のブロツク順序制御を行う。従って、伸長時には圧縮部
/伸長部26が制御コードの圧縮データを受け取り伸長
した後にコード生成部25に引渡す。
Furthermore, during expansion, the edge detection units 2, 3,
4 and comparison unit 5 do not operate, and instead, the code generation unit
Control of parts 50 and 51 in the figure and para/serial conversion unit 24
Block order control is performed. Therefore, during decompression, the compression section/expansion section 26 receives compressed data of the control code, decompresses it, and then delivers it to the code generation section 25.

【0018】本実施例において比較部5における制御が
画像一面全てにわたり一定であっても構わない。又、エ
ツジ検出部2、3、4により、画像の周波数成分を検出
して、エツジの大、小の判定を行っているが、これをプ
リスキヤンを行い、DCT部9、10、11及びDCT
部12、13、14等を使用して、必要とする周波数の
エツジの検出を行っても良い事は容易に推察できる。
In this embodiment, the control in the comparing section 5 may be constant over the entire image. In addition, the edge detection units 2, 3, and 4 detect the frequency components of the image and determine whether the edges are large or small.
It can be easily inferred that the sections 12, 13, 14, etc. may be used to detect edges of the required frequency.

【0019】又、圧縮する画像の色成分がY、Cr、C
bでなく、R、G、Bそのままであっても、Y、M、C
、B、KやLab、X、Y、Z等の色空間の成分であっ
ても良い事は言うまでもない。
[0019] Furthermore, the color components of the image to be compressed are Y, Cr, and C.
Even if R, G, and B are the same instead of b, Y, M, and C
, B, K, Lab, X, Y, Z, etc., of course.

【0020】又、本実施例中、サンプリング比を4:1
:1として説明したが、4:2:2でも適用できること
は言うまでもない。
[0020] Also, in this example, the sampling ratio was set to 4:1.
:1, but it goes without saying that 4:2:2 is also applicable.

【0021】以上のように本発明の上記実施例によれば
、各色成分の内、一番エツジが変化している画像成分に
対して、サブサンプリングを施さないで画像情報を保存
するために色成分により画質の劣化度合が異なったりせ
ずに、常に必要な色のみの画質保存状況が良くなる。
As described above, according to the above-described embodiment of the present invention, in order to save image information without performing subsampling on the image component whose edge changes the most among each color component, the color To improve the image quality preservation status of only necessary colors at all times without the degree of image quality deterioration varying depending on the component.

【0022】[0022]

【発明の効果】以上説明したように、本発明は、画像圧
縮の際の画像劣化を抑えることができる。
As described above, the present invention can suppress image deterioration during image compression.

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

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

【図2】エツジ検出部、[Figure 2] Edge detection section,

【図3】サブサンプリングを説明する図、[Figure 3] Diagram explaining subsampling,

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

1  色変換部 2、3、4  エツジ検出部 5  比較部 6、7、8  サブサンプリング部 9〜14  DCT部 15〜20  量子化部 21〜23  H符号化部 24  パラ/シリ変換部 25  コード生成部 26  圧縮/伸長部 31  ラインバツフア 32、33  ラツチ 34  差分計算部 35  最大値判定部 36  選択部 1 Color conversion section 2, 3, 4 Edge detection part 5 Comparison section 6, 7, 8 Subsampling section 9-14 DCT section 15-20 Quantization section 21-23 H encoding section 24 Para/Series conversion section 25 Code generation section 26 Compression/expansion section 31 Line buffer 32, 33 latch 34 Difference calculation section 35 Maximum value judgment section 36 Selection section

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】  各色成分毎に異なる画像圧縮処理を行
う画像処理方法であって、各色成分の重要度に応じて保
存度の高い圧縮処理を行う事を特徴とする画像処理方法
1. An image processing method that performs different image compression processing for each color component, the image processing method being characterized in that compression processing with a high degree of preservation is performed according to the importance of each color component.
【請求項2】  前記重要度は各画素毎に判定する事を
特徴とする請求項1記載の画像処理方法。
2. The image processing method according to claim 1, wherein the degree of importance is determined for each pixel.
【請求項3】  前記画像圧縮の方法はADCT(Ad
aptive  Discrete  Cosine 
 Transform)画像圧縮方法であって、前記保
存度の高い圧縮処理はサブサンプリングにおいて、サブ
サンプルを実施しない処理である事を特徴とする画像処
理方法。
3. The image compression method is ADCT (Ad
aptive Discrete Cosine
(Transform) An image processing method, wherein the compression processing with a high degree of preservation is processing in which subsampling is not performed in subsampling.
【請求項4】  複数の色成分データを入力する入力手
段と、前記色成分データの重要度に応じて、保存度の異
なる圧縮処理を行う圧縮手段とを有することを特徴とす
る画像処理装置。
4. An image processing apparatus comprising: input means for inputting a plurality of color component data; and compression means for performing compression processing with different degrees of preservation depending on the importance of the color component data.
【請求項5】  更に前記重要度を各画素毎に判定する
判定手段を有することを特徴とする請求項4記載の画像
処理装置。
5. The image processing apparatus according to claim 4, further comprising determining means for determining the degree of importance for each pixel.
JP3092293A 1991-04-23 1991-04-23 Picture processing method and device Pending JPH04323964A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3092293A JPH04323964A (en) 1991-04-23 1991-04-23 Picture processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3092293A JPH04323964A (en) 1991-04-23 1991-04-23 Picture processing method and device

Publications (1)

Publication Number Publication Date
JPH04323964A true JPH04323964A (en) 1992-11-13

Family

ID=14050373

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3092293A Pending JPH04323964A (en) 1991-04-23 1991-04-23 Picture processing method and device

Country Status (1)

Country Link
JP (1) JPH04323964A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6486981B1 (en) 1993-07-27 2002-11-26 Canon Kabushiki Kaisha Color image processing method and apparatus thereof
JP2007059999A (en) * 2005-08-22 2007-03-08 Fujifilm Corp Data compression apparatus and data compression program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6486981B1 (en) 1993-07-27 2002-11-26 Canon Kabushiki Kaisha Color image processing method and apparatus thereof
JP2007059999A (en) * 2005-08-22 2007-03-08 Fujifilm Corp Data compression apparatus and data compression program

Similar Documents

Publication Publication Date Title
US5422736A (en) Multi-mode image processing permitting selection of quantization process according to image characteristics
US7499592B2 (en) Image decoding apparatus and its control method
JP4808928B2 (en) Transform factor compression using multiple scans
WO2006073830A1 (en) Image rotation via jpeg decompression according to an order different from the encoding block scanning order
JP2011015347A (en) Apparatus and method for processing image, program and recording medium
JP4083934B2 (en) Image processing apparatus and image processing method
CN110708547B (en) Efficient entropy coding grouping method for transform modes
JP3469438B2 (en) Image signal processing method and apparatus, recording medium
JP4831547B2 (en) Method for image compression and decompression acceleration
JP3231800B2 (en) Image encoding apparatus and image encoding method
JPH04229382A (en) Digital image data resolution exchange device
JPH07143488A (en) Image data decoding method and apparatus
JPH0487460A (en) Picture processor
JPH04323964A (en) Picture processing method and device
JPH06500209A (en) Image data conversion method and device
JP2901656B2 (en) Image coding device
JP2791410B2 (en) Compressed image data extraction device
JP3590648B2 (en) Method of compressing original image data and method of expanding original image data
JPH04315371A (en) Image processing method and device
JP3327684B2 (en) Color image processing method and apparatus
JP2698034B2 (en) Code conversion method, code conversion system, and digital data signal processing method
JPH08180194A (en) Encoding apparatus and method
JPH1098620A (en) Picture processor
JPH0488750A (en) Picture processor
JPH1023261A (en) Image-processing unit