JP2000083214A - Image processor and image processing method - Google Patents

Image processor and image processing method

Info

Publication number
JP2000083214A
JP2000083214A JP24988798A JP24988798A JP2000083214A JP 2000083214 A JP2000083214 A JP 2000083214A JP 24988798 A JP24988798 A JP 24988798A JP 24988798 A JP24988798 A JP 24988798A JP 2000083214 A JP2000083214 A JP 2000083214A
Authority
JP
Japan
Prior art keywords
data
image
circuit
encoded
inversely
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.)
Withdrawn
Application number
JP24988798A
Other languages
Japanese (ja)
Inventor
Takao Ito
隆夫 伊藤
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.)
Olympus Corp
Original Assignee
Olympus Optical 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 Olympus Optical Co Ltd filed Critical Olympus Optical Co Ltd
Priority to JP24988798A priority Critical patent/JP2000083214A/en
Publication of JP2000083214A publication Critical patent/JP2000083214A/en
Withdrawn legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To attain re-recording by inserting a restart marker into compressed image data into which any restart marker is not inserted without deteriorating the picture quality by reading recorded image coded data, inserting and adding a synchronizing signal to inversely coded data, reversibly encoding the data again, and recording the data as image coded data. SOLUTION: A control circuit 38 instructs the writing and reading of a memory 13, and also transmits the instruction of an operational timing to a restart marker inserting circuit 39. The circuit 39 outputs a restart marker as a synchronizing signal to a Huffman encode circuit 26 based on the instruction. At the time of setting the insertion of the restart marker, the circuit 26 operates Huffman encoding by properly inserting the restart marker transmitted from the circuit 39 into the data of conversion factors for each frequency component from the memory 33, and transmits the obtained compressed coded data to a recording circuit 27. The data are recorded and set through an interface 28 in a recording medium 29.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、デジタル値の画素
データをデータ圧縮して記録し、再生する画像処理装置
及び方法に関する。
[0001] 1. Field of the Invention [0002] The present invention relates to an image processing apparatus and method for compressing, recording, and reproducing digital pixel data.

【0002】[0002]

【従来の技術】一般に静止画像の圧縮方式の規格となっ
ているJPEG(Joint Photographi
c coding Experts Group)で
は、元の画像データを所定サイズのブロックに分割し、
この各ブロック分けされた画像データに対して直交変換
(DCT(Discrete Cosine Tran
sform:離散コサイン変換))を行ない、周波数成
分別の変換係数を量子化し、量子化されたデータを可逆
符号化(ハフマンデコード)した画像符号化データを圧
縮データとして規定しており、データ伸長時には上記と
逆の動作処理を行なうことで、静止画像を再生可能とし
ている。
2. Description of the Related Art JPEG (Joint Photographi), which is a standard for a compression method of a still image, is generally used.
In c coding Experts Group), the original image data is divided into blocks of a predetermined size,
An orthogonal transform (DCT (Discrete Cosine Tran) is performed on the image data divided into each block.
sform: discrete cosine transform), quantizes transform coefficients for each frequency component, and specifies image-encoded data obtained by losslessly encoding (Huffman decoding) the quantized data as compressed data. By performing the reverse operation processing, a still image can be reproduced.

【0003】上記JPEGでは、圧縮データの同期をと
るための同期信号としてリスタートマーカをオプション
機能として規定しており、データ圧縮時に符号として圧
縮データ中へ挿入可能としている。このリスタートマー
カを圧縮データに挿入することで、エラーの伝搬を停止
させ、圧縮データ内の各領域へのランダムアクセスを可
能とする、等の効果を奏することができるものである。
In JPEG, a restart marker is defined as an optional function as a synchronization signal for synchronizing compressed data, and can be inserted into compressed data as a code at the time of data compression. By inserting the restart marker into the compressed data, it is possible to achieve effects such as stopping the propagation of an error and enabling random access to each area in the compressed data.

【0004】しかしながら、上記リスタートマーカは上
述した如くオプション機能であるため、必ずしも圧縮デ
ータには付加されていない。図3は、リスタートマーカ
の付加されていない圧縮データにあらためてリスタート
マーカを挿入するための処理回路を示すものである。同
図に示すように、記録媒体等に記録されていた圧縮され
た符号化データCDは、読出された後にハフマンデコー
ダ11で元の符号化データに戻され、次いで逆量子化回
路12で逆量子化される。この逆量子化したデータに対
して逆DCT回路13で直交変換を解除することで、元
の画素配列の再生画像Pを得ることができる。
However, since the restart marker is an optional function as described above, it is not always added to the compressed data. FIG. 3 shows a processing circuit for inserting a restart marker again into compressed data to which no restart marker has been added. As shown in the figure, the compressed coded data CD recorded on a recording medium or the like is returned to the original coded data by the Huffman decoder 11 after being read, and then dequantized by the dequantization circuit 12. Be transformed into By canceling the orthogonal transform of the inversely quantized data by the inverse DCT circuit 13, a reproduced image P of the original pixel array can be obtained.

【0005】こうして得た再生画像Pを、再度DCT回
路14でブロック毎に直交変換して高周波の周波数成分
を除去し、次いで量子化回路15で量子化した後にハフ
マンエンコーダ16で符号化する。このハフマンエンコ
ーダ16での符号化の際にリスタートマーカを挿入する
ことで、あらためてリスタートマーカを付加した符号化
データCD′を得ることができ、これを再度記録媒体等
に記録させる。
[0005] The reproduced image P thus obtained is again orthogonally transformed for each block by the DCT circuit 14 to remove high frequency components, quantized by the quantization circuit 15 and then coded by the Huffman encoder 16. By inserting a restart marker at the time of encoding by the Huffman encoder 16, encoded data CD 'with a restart marker added can be obtained again, and this is recorded on a recording medium or the like again.

【0006】[0006]

【発明が解決しようとする課題】上記図3に示したよう
に、リスタートマーカの挿入されていない圧縮データに
対する挿入設定処理を行なう際には、圧縮データをいっ
たん伸長して再生画像Pを得、この再生画像Pを再度圧
縮する過程でリスタートマーカを挿入するようになる。
As shown in FIG. 3, when performing an insertion setting process on compressed data in which a restart marker has not been inserted, the compressed data is temporarily expanded to obtain a reproduced image P. In the process of compressing the reproduced image P again, a restart marker is inserted.

【0007】しかしながら、伸長時の逆DCT回路13
と再圧縮時のDCT回路14及び量子化回路15での処
理はそれぞれ非可逆処理であって、いずれも演算誤差が
発生する。そのため、これらの処理過程で順次画質が劣
化してしまうという不具合を生じていた。
However, the inverse DCT circuit 13 at the time of expansion is
The processing in the DCT circuit 14 and the quantization circuit 15 at the time of recompression is an irreversible processing, and both of them cause an operation error. Therefore, there has been a problem that the image quality is sequentially deteriorated in these processing steps.

【0008】本発明は上記のような実情に鑑みてなされ
たもので、その目的とするところは、同期信号としての
リスタートマーカが挿入されていない圧縮画像データに
対してその画質を劣化させることなく該リスタートマー
カを挿入して再記録させることが可能な画像処理装置及
び方法を提供することにある。
SUMMARY OF THE INVENTION The present invention has been made in view of the above circumstances, and has as its object to degrade the image quality of compressed image data in which a restart marker as a synchronization signal is not inserted. It is an object of the present invention to provide an image processing apparatus and method capable of inserting the restart marker and causing re-recording.

【0009】[0009]

【課題を解決するための手段】請求項1記載の発明は、
記録時に、画像データを所定サイズのブロックに分割
し、この各ブロック分けされた画像データに対して直交
変換を行ない、周波数成分別の変換係数を量子化し、量
子化したデータを可逆符号化した画像符号化データとし
て記録し、再生時に、記録された画像符号化データを読
出して逆符号化し、周波数成分に対して逆量子化を行な
い、逆量子化されたデータに対して逆直交変換を行な
い、ブロック毎の画像データを再生する画像処理方法に
おいて、記録された画像符号化データを読出して逆符号
化し、この逆符号化したデータに同期信号を挿入付加
し、再度可逆符号化して画像符号化データとして記録さ
せる同期信号付加工程を有することを特徴とする。
According to the first aspect of the present invention,
At the time of recording, the image data is divided into blocks of a predetermined size, orthogonal transformation is performed on the image data divided into each block, transform coefficients for each frequency component are quantized, and the quantized data is reversibly encoded. Recorded as coded data, at the time of reproduction, read the recorded image coded data and perform reverse coding, perform inverse quantization on frequency components, perform inverse orthogonal transform on the inversely quantized data, In an image processing method for reproducing image data for each block, recorded image encoded data is read out and inversely encoded, a synchronization signal is inserted and added to the inversely encoded data, and lossless encoding is performed again to encode the image encoded data. And a synchronizing signal adding step of recording as

【0010】このような方法とすれば、同期信号として
のリスタートマーカが挿入されていない圧縮画像データ
に対して非可逆のデータ処理を行なうことなしに該リス
タートマーカを挿入して再記録させるため、画像データ
としての画質が劣化することがない。
According to this method, the restart marker is inserted and re-recorded without performing irreversible data processing on the compressed image data in which the restart marker as the synchronization signal is not inserted. Therefore, the image quality of the image data does not deteriorate.

【0011】請求項2記載の発明は、上記請求項1記載
の発明において、上記同期信号付加工程は、データに対
して一定単位毎に同期信号を挿入付加することを特徴と
する。
According to a second aspect of the present invention, in the first aspect of the present invention, the synchronizing signal adding step inserts and adds a synchronizing signal to the data at every fixed unit.

【0012】このような方法とすれば、上記請求項1記
載の発明の作用に加えて、一定単位のデータ毎に同期信
号としてのリスタートマーカを挿入付加するようにした
ので、再生時にエラーの伝搬により画像データの同期が
乱れてしまうのを最小限の範囲で確実に抑えることがで
きる。
According to this method, in addition to the operation of the first aspect of the present invention, a restart marker as a synchronization signal is inserted and added for each fixed unit of data. Disturbance in synchronization of image data due to propagation can be reliably suppressed in a minimum range.

【0013】請求項3記載の発明は、記録時に、画像デ
ータを所定サイズのブロックに分割し、この各ブロック
分けされた画像データに対して直交変換を行ない、周波
数成分別の変換係数を量子化し、量子化したデータを可
逆符号化した画像符号化データとして記録し、再生時
に、記録された画像符号化データを読出して逆符号化
し、周波数成分に対して逆量子化を行ない、逆量子化さ
れたデータに対して逆直交変換を行ない、ブロック毎の
画像データを再生する画像処理装置において、記録され
た画像符号化データを読出して逆符号化し、この逆符号
化したデータに同期信号を挿入付加し、再度可逆符号化
して画像符号化データとして記録する同期信号付加手段
を有することを特徴とする。
According to a third aspect of the present invention, at the time of recording, image data is divided into blocks of a predetermined size, orthogonal transformation is performed on each of the divided image data, and transform coefficients for each frequency component are quantized. The quantized data is recorded as losslessly encoded image encoded data, and at the time of reproduction, the recorded image encoded data is read out and inversely encoded, and the frequency component is inversely quantized. Image processing device that performs inverse orthogonal transformation on the decoded data and reproduces the image data for each block, reads out the encoded image encoded data, inversely encodes the data, and inserts and adds a synchronization signal to the inversely encoded data. And a synchronizing signal adding means for performing reversible encoding and recording as image encoded data again.

【0014】このような構成とすれば、同期信号として
のリスタートマーカが挿入されていない圧縮画像データ
に対して非可逆のデータ処理を行なうことなしに該リス
タートマーカを挿入して再記録するため、画像データと
しての画質が劣化することがない。
With such a configuration, the restart marker is inserted and re-recorded without performing irreversible data processing on the compressed image data in which the restart marker as the synchronization signal is not inserted. Therefore, the image quality of the image data does not deteriorate.

【0015】[0015]

【発明の実施の形態】以下本発明をJPEGに基づいた
静止画像データの記録再生を行なう画像処理装置に適用
した場合の実施の一形態について図面を参照して説明す
る。 「構成」図1はその回路構成を示すブロック図である。
同図で、21はアナログ画像入力端子、22はデジタル
画像入力端子であり、記録時にアナログ画像入力端子2
1から入力されるアナログ値の静止画の画像データはA
/D変換器23にて所定のサンプリング周波数、量子化
ビット数をもってデジタル化された後にDCT回路24
へ送出される一方、デジタル画像入力端子22から入力
されたデジタル値の静止画の画像データは直接DCT回
路24へ送出される。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment in which the present invention is applied to an image processing apparatus for recording and reproducing still image data based on JPEG will be described below with reference to the drawings. "Configuration" FIG. 1 is a block diagram showing the circuit configuration.
In the figure, reference numeral 21 denotes an analog image input terminal, 22 denotes a digital image input terminal, and the analog image input terminal 2 during recording.
The image data of the analog value still image input from 1 is A
After being digitized by the / D converter 23 with a predetermined sampling frequency and a predetermined number of quantization bits, the DCT circuit 24
On the other hand, the still image data of the digital value input from the digital image input terminal 22 is directly sent to the DCT circuit 24.

【0016】DCT回路24は、送られてきた画像デー
タを所定サイズ、具体的には縦8画素×横8画素のブロ
ックに分割し、この各ブロック分けされた画像データに
対して直交変換である2次元DCT(離散コサイン変
換)を行ない、空間周波数の成分別に変換した8×8の
マトリクスによる係数(以下「変換係数」と略称する)
を得る。
The DCT circuit 24 divides the received image data into blocks each having a predetermined size, specifically, a vertical 8 pixels × horizontal 8 pixels block, and performs an orthogonal transformation on each block of the divided image data. Coefficients based on an 8 × 8 matrix converted into spatial frequency components by performing two-dimensional DCT (Discrete Cosine Transform) (hereinafter abbreviated as “transform coefficients”)
Get.

【0017】この変換係数は、マトリクスの1端部の交
流成分から離れて順次対角の他の一端部に至るまで順次
低周波成分から高周波成分までが配列されるもので、こ
れら各変換係数はそれぞれ量子化回路25により量子化
された後に、エントロピー符号化回路としてのハフマン
エンコード回路26へ送られる。
This conversion coefficient is one in which low-frequency components to high-frequency components are sequentially arranged from the AC component at one end of the matrix to the other end of the diagonal, and each of these conversion coefficients is After being quantized by the quantization circuit 25, they are sent to a Huffman encoding circuit 26 as an entropy encoding circuit.

【0018】このハフマンエンコード回路26は、直流
成分の変換係数に関しては近傍ブロックの直流成分との
差分値をハフマン符号化し、また交流成分の変換係数は
上記直流成分の位置からジグサグスキャンと呼ばれる低
周波成分から高周波成分へのスキャンを行ない、値が
「0」となる無効の成分の連続する個数と、それに続く
有効な成分の値とから2次元のハフマン符号を行なうこ
とで、圧縮した符号化データを得る。
The Huffman encoding circuit 26 Huffman-encodes the difference between the DC component conversion coefficient and the DC component of the neighboring block. Compressed coding by performing scanning from frequency components to high frequency components, and performing two-dimensional Huffman coding from the continuous number of invalid components having a value of “0” and the value of valid components following the invalid components Get the data.

【0019】こうしてハフマンエンコード回路26で得
られた符号化データが、記録回路27によりインタフェ
イス(I/F)28を介して記録媒体29に記録設定さ
れる。
The encoded data obtained by the Huffman encoding circuit 26 is recorded and set on a recording medium 29 via an interface (I / F) 28 by a recording circuit 27.

【0020】以上、アナログ画像入力端子21またはデ
ジタル画像入力端子22から記録媒体29に至るデータ
の流れが通常の記録時の処理の流れとなる。また、記録
媒体29に記録された符号化データは、再生時またはリ
スタートマーカの挿入設定時にインタフェイス28を介
して読出し回路30により読出され、ハフマンデコード
回路31へ送られる。
As described above, the flow of data from the analog image input terminal 21 or the digital image input terminal 22 to the recording medium 29 is the flow of processing during normal recording. The encoded data recorded on the recording medium 29 is read out by the reading circuit 30 via the interface 28 at the time of reproduction or insertion setting of the restart marker, and is sent to the Huffman decoding circuit 31.

【0021】ハフマンデコード回路31は、上記ハフマ
ンエンコード回路26での処理とは逆の処理、すなわち
ハフマン符号化された周波数成分別の変換係数を、その
直流成分は近傍ブロックの直流成分との差分値として再
生し、交流成分は上記ジグザグスキャンした変換成分を
高周波成分から低周波成分へと逆にスキャンすることで
再生して符号化データをデコードし、得たデータを逆量
子化回路32及びメモリ33へ送出する。
The Huffman decoding circuit 31 performs processing reverse to the processing performed by the Huffman encoding circuit 26, ie, transform coefficients for each Huffman-encoded frequency component, and its DC component is a difference value from the DC component of a neighboring block. The AC component is reproduced by decoding the zigzag-transformed conversion component in reverse from the high-frequency component to the low-frequency component to decode the encoded data, and the obtained data is decoded by the inverse quantization circuit 32 and the memory 33. Send to

【0022】逆量子化回路32は、ハフマンデコード回
路31でデコードした周波数成分別の変換係数のデータ
に対して逆量子化を行ない、その結果を逆DCT回路3
4へ出力する。
The inverse quantization circuit 32 performs inverse quantization on the data of the transform coefficient for each frequency component decoded by the Huffman decoding circuit 31, and outputs the result to the inverse DCT circuit 3.
Output to 4.

【0023】逆DCT回路34は、この逆量子化された
データに対して2次元IDCT(逆離散コサイン変換)
を行なってブロック毎の元の画像データを再生するもの
で、再生した画像データは直接デジタル画像出力端子3
6から出力される一方、D/A変換器35でアナログ化
されてアナログ画像出力端子37から出力される。
The inverse DCT circuit 34 applies a two-dimensional IDCT (inverse discrete cosine transform) to the inversely quantized data.
To reproduce the original image data for each block, and the reproduced image data is directly sent to the digital image output terminal 3.
6 while being converted into an analog signal by a D / A converter 35 and output from an analog image output terminal 37.

【0024】以上、記録媒体29からデジタル画像出力
端子36またはアナログ画像出力端子37に至るデータ
の流れが通常の再生時の処理の流れとなる。また、上記
メモリ33は、リスタートマーカの挿入設定時にハフマ
ンデコード回路31から送られてくる周波数成分別の変
換係数のデータを制御回路38からの指示に基づいて保
持し、上記デジタル画像出力端子36へ送出する。
As described above, the flow of data from the recording medium 29 to the digital image output terminal 36 or the analog image output terminal 37 is the flow of processing during normal reproduction. Further, the memory 33 holds the data of the conversion coefficient for each frequency component sent from the Huffman decoding circuit 31 at the time of setting the insertion of the restart marker based on an instruction from the control circuit 38, and stores the digital image output terminal 36. Send to

【0025】制御回路38は、リスタートマーカの挿入
設定時の動作制御を行なうもので、メモリ33の書込
み、読出しの指示を行なう他、リスタートマーカ挿入回
路39に対しても動作タイミングの指示を送出する。
The control circuit 38 controls the operation at the time of setting the insertion of the restart marker. The control circuit 38 instructs the writing and reading of the memory 33 and also instructs the restart marker insertion circuit 39 of the operation timing. Send out.

【0026】リスタートマーカ挿入回路39は、制御回
路38からの指示に基づいて同期信号としてのリスター
トマーカを上記ハフマンエンコード回路26へ出力す
る。ハフマンエンコード回路26は、リスタートマーカ
の挿入設定時に、量子化回路25からではなく、メモリ
33から送られてくる周波数成分別の変換係数のデータ
に対してリスタートマーカ挿入回路39から送られてく
るリスタートマーカを適宜挿入した上でハフマン符号化
を行ない、圧縮した符号化データを得て記録回路27へ
送出し、インタフェイス28を介して記録媒体29に記
録設定させる。
The restart marker insertion circuit 39 outputs a restart marker as a synchronization signal to the Huffman encoding circuit 26 based on an instruction from the control circuit 38. The Huffman encoding circuit 26 transmits the data of the transform coefficient for each frequency component transmitted from the memory 33 from the restart marker insertion circuit 39, not from the quantization circuit 25, at the time of the insertion setting of the restart marker. Huffman encoding is performed after inserting a restart marker as appropriate, and compressed encoded data is obtained and sent to the recording circuit 27 to be recorded and set on the recording medium 29 via the interface 28.

【0027】「動作」次に、図2に示すフローチャート
を参照して、本実施の形態に係る画像処理装置の、JP
EGでオプション機能として規定されているリスタート
マーカの挿入設定時の動作を説明する。この処理を主と
して制御するのは制御回路38である。
[Operation] Next, referring to the flowchart shown in FIG. 2, the JP of the image processing apparatus according to the present embodiment will be described.
The operation at the time of setting the insertion of the restart marker defined as an optional function in the EG will be described. The control circuit 38 mainly controls this processing.

【0028】その処理当初には、すでに記録媒体29に
記録されている、リスタートマーカが挿入されていない
符号化データがインタフェイス28を介して読出し回路
30によりブロック単位で読出され、ハフマンデコード
回路31によりデコードされる(ステップS1)。
At the beginning of the processing, the coded data which is already recorded on the recording medium 29 and in which the restart marker is not inserted is read out by the reading circuit 30 via the interface 28 in block units, and the Huffman decoding circuit 31 is decoded (step S1).

【0029】制御回路38は、デコードされたデータを
メモリ33に書込んで保持させた上で(ステップS
2)、そのデータがハフマンデコード回路31が記録媒
体29から読出してデコードする必要のある最後のデー
タであるか否かによりデコードを終了するか否か判断し
(ステップS3)、まだデコードすべき符号化データが
あり、デコードを終了していないと判断すると、再度上
記ステップS1からの処理に戻る。
The control circuit 38 writes and holds the decoded data in the memory 33 (step S
2) It is determined whether or not the decoding is terminated based on whether or not the data is the last data that needs to be read from the recording medium 29 and decoded by the Huffman decoding circuit 31 (step S3), and the code to be decoded is determined. If it is determined that there is coded data and decoding has not been completed, the process returns to step S1 again.

【0030】こうしてステップS1〜S3の処理を繰返
し実行して、デコードすべき全ての符号化データを記録
媒体29から読出し、ハフマンデコード回路31でデコ
ードした上でメモリ33に書込み保持させた時点で、ス
テップS3でデコードを終了したものと判断する。
By repeating the processing of steps S1 to S3 in this way, all the encoded data to be decoded is read from the recording medium 29, decoded by the Huffman decoding circuit 31, and written and held in the memory 33. It is determined in step S3 that decoding has been completed.

【0031】次いで、メモリ33からブロック単位でデ
コードした周波数成分別の変換係数のデータを読出させ
(ステップS4)、ハフマンエンコード回路26にて再
度ハフマン符号化させる(ステップS5)。
Next, the data of the transform coefficient for each frequency component decoded in units of blocks is read from the memory 33 (step S4), and Huffman encoding is performed again by the Huffman encoding circuit 26 (step S5).

【0032】そして、このデータの符号化を予め指定し
たブロック数分だけ処理したか否か判断し(ステップS
6)、予め指定したブロック数に達していない際には再
度上記ステップS4からの処理に戻って次のブロックに
関してもメモリ33から読出して同様の処理を実行させ
る。
Then, it is determined whether or not this data has been encoded by the number of blocks designated in advance (step S).
6) If the number of blocks does not reach the number specified in advance, the process returns to step S4 to read the next block from the memory 33 and execute the same process.

【0033】こうしてステップS4〜S6の処理を繰返
し、指定したブロック数分だけのハフマン符号化したデ
ータを得ると、次にこれら符号化データに対して、符号
発生量の不足によるデータのアンダーフローを防ぐため
のダミーデータであるスタッフィングバイトが必要であ
るか否か判断し(ステップS7)、必要であると判断し
た場合にのみ、必要量のスタッフィングバイトを書き込
み挿入する(ステップS8)。
When the processes of steps S4 to S6 are repeated to obtain the Huffman-encoded data for the specified number of blocks, the underflow of the data due to the lack of the code generation amount is next detected for these encoded data. It is determined whether or not stuffing bytes, which are dummy data for prevention, are necessary (step S7). Only when it is determined that stuffing bytes are necessary, a necessary amount of stuffing bytes is written and inserted (step S8).

【0034】その後、必要によりスタッフィングバイト
を適宜付加した、指定したブロック数分だけの符号化デ
ータに対し、リスタートマーカ挿入回路39によりあら
ためて同期信号としてのリスタートマーカを挿入させる
(ステップS9)。
Thereafter, a restart marker as a synchronizing signal is inserted again by the restart marker insertion circuit 39 into the coded data of the designated number of blocks to which stuffing bytes have been appropriately added as necessary (step S9).

【0035】リスタートマーカを挿入設定した指定ブロ
ック数分の符号化データは、そのまま記録回路27によ
りインタフェイス28を介して、元のリスタートマーカ
を挿入設定していない同符号化データに代えて上書き記
録される。
The encoded data for the designated number of blocks into which the restart marker is inserted is set by the recording circuit 27 via the interface 28 as it is, instead of the same encoded data without the original restart marker inserted. Overwritten and recorded.

【0036】次いでメモリ33に保持した全てのデータ
に関してリスタートマーカの挿入設定の処理を終えたか
否か判断し(ステップS10)、終えていないと判断す
ると再び上記ステップS4に戻って、次の指定ブロック
数分のデータの符号化とスタッフィングバイトを考慮し
たリスタートマーカの挿入設定とを続行する。
Next, it is determined whether or not the processing for setting the insertion of the restart marker has been completed for all the data held in the memory 33 (step S10). The coding of the data for the number of blocks and the setting of the insertion of the restart marker in consideration of the stuffing byte are continued.

【0037】こうしてステップS4〜S10の処理を繰
返し実行して、メモリ33に保持した全てのデータに関
してリスタートマーカの挿入設定の処理を終えたと判断
した時点で、以上でこの処理を完了する。
Thus, the processing of steps S4 to S10 is repeatedly executed, and when it is determined that the processing of setting the insertion of the restart marker has been completed for all the data held in the memory 33, this processing is completed.

【0038】このように、ハフマンデコード回路31で
デコードしたデータ、すなわち逆量子化回路32で逆量
子化を行なう前のデータをハフマンエンコード回路26
に送って符号化して同期信号であるリスタートマーカを
挿入設定し、記録媒体29に再記録させることで、共に
可逆処理を行なうハフマンデコード回路31とハフマン
エンコード回路26のみを使用し、非可逆処理で誤差の
発生する逆DCT回路13、DCT回路14、及び量子
化回路15を使用しないため、再記録させる画像データ
の画質に劣化を生じることがない。
As described above, the data decoded by the Huffman decoding circuit 31, that is, the data before the inverse quantization is performed by the inverse quantization circuit 32, is transmitted to the Huffman encoding circuit 26.
The Huffman decoding circuit 31 and the Huffman encoding circuit 26, which perform reversible processing together, are used by inserting and setting a restart marker, which is a synchronization signal, and re-recording on a recording medium 29. Since the inverse DCT circuit 13, the DCT circuit 14, and the quantization circuit 15, which cause errors in the above, are not used, the image quality of the image data to be re-recorded does not deteriorate.

【0039】また、上記リスタートマーカを指定したブ
ロック数分毎に自動的に挿入設定させたため、再生時に
エラーの伝搬により画像データの同期が乱れてしまうの
を最小限の範囲で確実に抑えることができる。
Also, since the restart marker is automatically inserted and set every specified number of blocks, it is possible to reliably suppress the disturbance of the synchronization of the image data due to the propagation of an error during reproduction to the minimum. Can be.

【0040】なお、上記実施の形態では、ハフマンデコ
ード回路31でデコードした、リスタートマーカを挿入
設定する必要のあるデータを全てメモリ33に保持させ
てから、指定したブロック数分ずつリスタートマーカを
挿入設定するものとして説明したが、メモリ33として
は、リスタートマーカを挿入設定する単位データ量分だ
けの記憶容量を有していれば充分機能することはいうま
でもない。
In the above-described embodiment, after all the data decoded by the Huffman decoding circuit 31 and in which the restart markers need to be inserted and set are held in the memory 33, the restart markers are designated by the specified number of blocks. Although the description has been made assuming that the insertion setting is performed, it goes without saying that the memory 33 functions sufficiently as long as it has a storage capacity corresponding to the unit data amount for inserting and setting the restart marker.

【0041】また、上記実施の形態は、JPEGに基づ
いた静止画像データの記録再生を行なう画像処理装置に
適用した場合を例示したものであるが、2値静止画像を
取扱うJBIG(Joint Bi−level Im
age coding experts Grou
p)、動画像を取扱うMotion JPEGやMPE
G(Moving Picture Experts
Group)1/2/4など、画像データの種類及び標
準規格等に限らず、同期信号を挿入設定していない記録
済の画像データに対して同期信号を挿入設定して再記録
させるものであれば、いずれにも適用可能である。その
他、本発明はその要旨を逸脱しない範囲内で種々変形し
て実施することが可能であるものとする。
The above embodiment is an example in which the present invention is applied to an image processing apparatus that records and reproduces still image data based on JPEG. However, a JBIG (Joint Bi-level) that handles a binary still image is used. Im
age coding experts Grou
p), Motion JPEG and MPE that handle moving images
G (Moving Picture Experts
(Group) 1/2/4, etc., and is not limited to the type and standard of the image data, but may be a type in which a synchronization signal is inserted and set for recorded image data in which no synchronization signal is inserted and recorded again. It is applicable to any of them. In addition, the present invention can be variously modified and implemented without departing from the gist thereof.

【0042】[0042]

【発明の効果】請求項1記載の発明によれば、同期信号
としてのリスタートマーカが挿入されていない圧縮画像
データに対して非可逆のデータ処理を行なうことなしに
該リスタートマーカを挿入して再記録させるため、画像
データとしての画質が劣化することがない。
According to the first aspect of the present invention, the restart marker is inserted without performing irreversible data processing on the compressed image data in which the restart marker as the synchronization signal is not inserted. Re-recording, the image quality of the image data does not deteriorate.

【0043】請求項2記載の発明によれば、上記請求項
1記載の発明の効果に加えて、一定単位のデータ毎に同
期信号としてのリスタートマーカを挿入付加するように
したので、再生時にエラーの伝搬により画像データの同
期が乱れてしまうのを最小限の範囲で確実に抑えること
ができる。
According to the second aspect of the invention, in addition to the effect of the first aspect of the present invention, a restart marker as a synchronization signal is inserted and added for each fixed unit of data. Disturbance in synchronization of image data due to propagation of an error can be reliably suppressed in a minimum range.

【0044】請求項3記載の発明によれば、同期信号と
してのリスタートマーカが挿入されていない圧縮画像デ
ータに対して非可逆のデータ処理を行なうことなしに該
リスタートマーカを挿入して再記録するため、画像デー
タとしての画質が劣化することがない。
According to the third aspect of the present invention, the restart marker is inserted and restarted without performing irreversible data processing on the compressed image data in which the restart marker as the synchronization signal is not inserted. Since recording is performed, the image quality as image data does not deteriorate.

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

【図1】本発明の実施の一形態に係る回路構成を示すブ
ロック図。
FIG. 1 is a block diagram showing a circuit configuration according to an embodiment of the present invention.

【図2】同実施の形態に係る動作の処理内容を示すフロ
ーチャート。
FIG. 2 is a flowchart showing processing contents of the operation according to the embodiment;

【図3】記録済の画像データにリスタートマーカを挿入
するための一般的な回路構成を示すブロック図。
FIG. 3 is a block diagram showing a general circuit configuration for inserting a restart marker into recorded image data.

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

21…アナログ画像入力端子 22…デジタル画像入力端子 23…A/D変換器 24…DCT回路 25…量子化回路 26…ハフマンエンコード回路 27…記録回路 28…インタフェイス(I/F) 29…記録媒体 30…読出し回路 31…ハフマンデコード回路 32…逆量子化回路 33…メモリ 34…逆DCT回路 35…D/A変換器 36…デジタル画像出力端子 37…アナログ画像出力端子 38…制御回路 39…リスタートマーカ挿入回路 DESCRIPTION OF SYMBOLS 21 ... Analog image input terminal 22 ... Digital image input terminal 23 ... A / D converter 24 ... DCT circuit 25 ... Quantization circuit 26 ... Huffman encoding circuit 27 ... Recording circuit 28 ... Interface (I / F) 29 ... Recording medium Reference Signs List 30 readout circuit 31 Huffman decode circuit 32 inverse quantization circuit 33 memory 34 inverse DCT circuit 35 D / A converter 36 digital image output terminal 37 analog image output terminal 38 control circuit 39 restart Marker insertion circuit

フロントページの続き Fターム(参考) 5C053 FA07 GB06 GB07 GB10 GB21 GB22 GB32 GB36 GB37 GB38 GB40 JA21 JA30 KA01 KA26 5C059 KK01 KK35 LA01 MA00 MA23 MA45 MC01 MC11 MC32 MC34 ME02 PP01 RC02 RC07 RC33 RF11 RF19 SS11 UA02 UA05 UA31 5C078 AA04 BA57 CA21 DA00 DA01 DA02 DB05 Continued on the front page F-term (reference) CA21 DA00 DA01 DA02 DB05

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 記録時に、画像データを所定サイズのブ
ロックに分割し、この各ブロック分けされた画像データ
に対して直交変換を行ない、周波数成分別の変換係数を
量子化し、量子化したデータを可逆符号化した画像符号
化データとして記録し、 再生時に、記録された画像符号化データを読出して逆符
号化し、周波数成分に対して逆量子化を行ない、逆量子
化されたデータに対して逆直交変換を行ない、ブロック
毎の画像データを再生する画像処理方法において、 記録された画像符号化データを読出して逆符号化し、こ
の逆符号化したデータに同期信号を挿入付加し、再度可
逆符号化して画像符号化データとして記録させる同期信
号付加工程を有することを特徴とする画像処理方法。
At the time of recording, image data is divided into blocks of a predetermined size, orthogonal transformation is performed on each of the divided image data, transform coefficients for each frequency component are quantized, and the quantized data is It is recorded as lossless encoded image encoded data, and at the time of reproduction, the recorded image encoded data is read and inversely encoded, frequency components are inversely quantized, and inversely quantized data is inversely quantized. In an image processing method for performing orthogonal transformation and reproducing image data for each block, the recorded image encoded data is read out and inversely encoded, a synchronization signal is inserted and added to the inversely encoded data, and lossless encoding is performed again. An image processing method comprising the step of adding a synchronization signal for recording as encoded image data.
【請求項2】 上記同期信号付加工程は、データに対し
て一定単位毎に同期信号を挿入付加することを特徴とす
る請求項1記載の画像処理方法。
2. The image processing method according to claim 1, wherein in the synchronizing signal adding step, a synchronizing signal is inserted and added to the data for each predetermined unit.
【請求項3】 記録時に、画像データを所定サイズのブ
ロックに分割し、この各ブロック分けされた画像データ
に対して直交変換を行ない、周波数成分別の変換係数を
量子化し、量子化したデータを可逆符号化した画像符号
化データとして記録し、 再生時に、記録された画像符号化データを読出して逆符
号化し、周波数成分に対して逆量子化を行ない、逆量子
化されたデータに対して逆直交変換を行ない、ブロック
毎の画像データを再生する画像処理装置において、 記録された画像符号化データを読出して逆符号化し、こ
の逆符号化したデータに同期信号を挿入付加し、再度可
逆符号化して画像符号化データとして記録させる同期信
号付加手段を有することを特徴とする画像処理装置。
3. At the time of recording, the image data is divided into blocks of a predetermined size, orthogonal transformation is performed on each of the divided image data, a transform coefficient for each frequency component is quantized, and the quantized data is It is recorded as lossless encoded image encoded data, and at the time of reproduction, the recorded image encoded data is read and inversely encoded, frequency components are inversely quantized, and inversely quantized data is inversely quantized. In an image processing apparatus that performs orthogonal transformation and reproduces image data for each block, the recorded image encoded data is read out and inversely encoded, a synchronization signal is inserted and added to the inversely encoded data, and lossless encoding is performed again. An image processing apparatus, comprising: a synchronization signal adding unit for recording as a coded image data.
JP24988798A 1998-09-03 1998-09-03 Image processor and image processing method Withdrawn JP2000083214A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP24988798A JP2000083214A (en) 1998-09-03 1998-09-03 Image processor and image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP24988798A JP2000083214A (en) 1998-09-03 1998-09-03 Image processor and image processing method

Publications (1)

Publication Number Publication Date
JP2000083214A true JP2000083214A (en) 2000-03-21

Family

ID=17199695

Family Applications (1)

Application Number Title Priority Date Filing Date
JP24988798A Withdrawn JP2000083214A (en) 1998-09-03 1998-09-03 Image processor and image processing method

Country Status (1)

Country Link
JP (1) JP2000083214A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006303960A (en) * 2005-04-21 2006-11-02 Canon Inc Encoded data converting method
JP2008219878A (en) * 2007-02-09 2008-09-18 Olympus Imaging Corp Decoding method, decoding device, decoding program and electronic camera
JP2013121026A (en) * 2011-12-07 2013-06-17 Seiko Epson Corp Image processing device and image processing method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006303960A (en) * 2005-04-21 2006-11-02 Canon Inc Encoded data converting method
JP2008219878A (en) * 2007-02-09 2008-09-18 Olympus Imaging Corp Decoding method, decoding device, decoding program and electronic camera
JP2013121026A (en) * 2011-12-07 2013-06-17 Seiko Epson Corp Image processing device and image processing method

Similar Documents

Publication Publication Date Title
JP3037407B2 (en) Digital signal processing system
JP3428033B2 (en) Digital VTR
JPH06217274A (en) Image signal compressing device
JPS62295583A (en) Image reconstitution method from image data subjected to compression processing
JP2000138934A (en) Jpeg coder with limited file size, its method and recording medium
JP3147792B2 (en) Video data decoding method and apparatus for high-speed playback
JP3140487B2 (en) Image recording and playback device
CA2131980C (en) Picture compression apparatus, picture reproducing apparatus and picture drawing apparatus
JP2723867B2 (en) Image signal decoding device
JP2000083214A (en) Image processor and image processing method
JPH09506498A (en) Image data recording device and image data reproducing device
JP3134672B2 (en) Frame-by-frame playback processor for video signals
JP3136523B2 (en) Image conversion device
JP3197733B2 (en) Information recording / reproducing device
JP2769302B2 (en) High-density video data recording method for high-quality video tape recorder
JP3320125B2 (en) Image decoding device
JPS62172884A (en) Orthogonal transform coding method for picture data
JP3049372B2 (en) Digital video signal recording device and recording / reproducing device
JPH05167973A (en) Still picture file system
KR100567542B1 (en) Method For Embodying Moving Picture
JPH07146927A (en) Image file device
JPH09331528A (en) Decoder with image coding function
JP3721971B2 (en) MPEG image data recording apparatus and recording medium
JPH05130422A (en) Picture data decoder
KR100203265B1 (en) Image data decoder

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20060110