JPH05284485A - Picture correction device - Google Patents

Picture correction device

Info

Publication number
JPH05284485A
JPH05284485A JP8061992A JP8061992A JPH05284485A JP H05284485 A JPH05284485 A JP H05284485A JP 8061992 A JP8061992 A JP 8061992A JP 8061992 A JP8061992 A JP 8061992A JP H05284485 A JPH05284485 A JP H05284485A
Authority
JP
Japan
Prior art keywords
picture
image
error
flag
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP8061992A
Other languages
Japanese (ja)
Inventor
Takashi Eguchi
隆 江口
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP8061992A priority Critical patent/JPH05284485A/en
Publication of JPH05284485A publication Critical patent/JPH05284485A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Transmission Systems Not Characterized By The Medium Used For Transmission (AREA)

Abstract

PURPOSE:To improve the picture quality by means of line interpolation by reading picture data compressed for each optional block and an error flag attended with the picture data and using an arithmetic mean value of picture elements around a picture element having an error so as to correct the erroneous picture element when any error is caused at the demodulation of the picture. CONSTITUTION:The device is provided with a data/flag read circuit 1, a compressed picture demodulation circuit 2, a flag use memory 3, a picture memory 4, a video output circuit 5, a computing element 6 and a correction arithmetic operation program 7. An erroneous picture element corresponding to an error flag is corrected by replacing the picture element with the arithmetic mean value of picture elements of front/back/left/right/oblique corner positions around the erroneous picture element as the arithmetic operation method. That is, the correction arithmetic operation program 7 retrieves the error flag memory 3 and obtains the correction value of a part P11 if the P11 is in error. This utilizes it that surrounding picture elements of a picture element have a large correlation and it is remarkable when the picture is closer to a natural picture.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、圧縮された画像に誤り
があった場合に、誤りがない画像データから演算補正し
て出力する画像補正装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image correction device which, when a compressed image has an error, corrects and outputs the image data having no error.

【0002】[0002]

【従来の技術】近年、CD(コンパクトディスク)等の
媒体に、画像を記録するようになってきた。また、媒体
の容量にも限界があることから画像データも圧縮して記
録されるようになってきている。圧縮手法も、自然画、
動画、アニメーション画、グラフィック画等の画像の種
類によっていろんな圧縮手法が考案されている。
2. Description of the Related Art In recent years, images have come to be recorded on a medium such as a CD (compact disc). Further, since the capacity of the medium is also limited, image data has been compressed and recorded. The compression method is also a natural image,
Various compression methods have been devised depending on the type of image such as a moving image, an animation image, and a graphic image.

【0003】媒体からの再生においては、ゴミ等の付着
などにより読みとり誤りが発生する。誤りが発生した場
合には、テレビジョンの走査線でいう1ライン前のデー
タで該当ラインを置換する方法が、よく取られていた。
When reproducing from a medium, a reading error occurs due to adhesion of dust or the like. When an error occurs, a method of replacing the corresponding line with the data of one line before the scanning line of the television is often used.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、上記の
ライン単位で補正する手法では、画像の品位が悪くなっ
てしまうという問題点を有していた。
However, the above-described method of correcting on a line-by-line basis has a problem that the quality of the image is deteriorated.

【0005】本発明は上記問題点を解決するもので、誤
りを発生した画素の周囲の画素の演算平均値で誤り画素
を補正する画像補正装置を提供することを目的とする。
The present invention solves the above-mentioned problems, and an object of the present invention is to provide an image correction apparatus which corrects an erroneous pixel with an arithmetic mean value of pixels around an erroneous pixel.

【0006】[0006]

【課題を解決するための手段】この目的を達成するため
に本発明は、任意のブロック毎に圧縮された画像データ
と圧縮画像データに付随した誤りフラグを読みとる手段
と、圧縮された画像データを元に復元する手段と、復元
された画像データを格納するメモリ手段と、誤りフラグ
を格納するメモリ手段と、メモリからの復元された画像
データを映像として出力する手段と、メモリからのデー
タを読みとり演算しメモリにデータを書き込む演算手段
と、演算手法を格納したメモリ手段と、演算手法は、誤
りフラグに対応する誤った画素を、該画素周囲の前後左
右、及び斜め隅の値で演算平均を行って置換し補正する
ことを有している。
In order to achieve this object, the present invention provides a means for reading image data compressed for each arbitrary block and an error flag attached to the compressed image data, and compressed image data. Means for restoring the original, memory means for storing the restored image data, memory means for storing an error flag, means for outputting the restored image data from the memory as a video, and reading the data from the memory An arithmetic means for performing arithmetic operation and writing data in a memory, a memory means for storing an arithmetic method, and an arithmetic method calculates an erroneous pixel corresponding to an error flag by calculating an arithmetic average with values of front, rear, left and right around the pixel, and diagonal corners. It has to go and replace and correct.

【0007】[0007]

【作用】本発明は、任意のブロック毎に圧縮された画像
データと画像データに付随した誤りフラグを読みとり、
画像の復調時に、誤りが発生した場合は、ライン単位で
はなく1つの画素単位で補正して、画像の品位の悪化を
最小にして出力する。
The present invention reads the image data compressed for each arbitrary block and the error flag attached to the image data,
When an error occurs at the time of demodulating an image, correction is performed not for each line but for each pixel, and the deterioration of the quality of the image is minimized and output.

【0008】[0008]

【実施例】以下、本発明の一実施例について、図面を参
照しながら説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings.

【0009】図2は圧縮された画像列を示す。図3は画
像列に付随した誤りフラグ列を示す。1つの画像は、水
平方向にn画素、垂直方向にm画素で構成される。すな
わち、n列×m行の画素の集合である。圧縮された画像
列は、行単位のブロック毎に圧縮されており、1つのブ
ロックには、n列分の画素が含まれている。各ブロック
の先頭には、初期値が入り、その後には、各画素との差
分値が入る。例として、30,35,40,60,2
0,...が元の画素であったとすると、初期値0=2
0と決めると、差分00=30−20=10となる。次
は、差分01=35−30=5、差分02=40−35=
5、差分03=60−40=20、差分04=20−60=
−40となる。これらの値が、n列×m行にわたって行
われる。それらの画像列に付随して、記憶媒体から読み
とられたときに、各データに誤りが発生した場合には、
誤りフラグがつけられる。
FIG. 2 shows a compressed image sequence. FIG. 3 shows an error flag string attached to the image string. One image is composed of n pixels in the horizontal direction and m pixels in the vertical direction. That is, it is a set of pixels of n columns × m rows. The compressed image sequence is compressed row by block, and one block includes pixels for n columns. An initial value is entered at the beginning of each block, and a difference value with each pixel is entered after that. As an example, 30, 35, 40, 60, 2
0 ,. . . Is the original pixel, the initial value is 0 = 2
If 0 is determined, the difference is 00 = 30−20 = 10. Next, difference 01 = 35-30 = 5, difference 02 = 40-35 =
5, difference 03 = 60-40 = 20, difference 04 = 20-60 =
It becomes -40. These values are performed over n columns × m rows. When an error occurs in each data when read from the storage medium in association with those image strings,
The error flag is set.

【0010】図1は本発明における画像補正装置の1実
施例の構成を示す。1はデータ/フラグ読みとり回路、
2は圧縮画像復調回路、3はフラグ用メモリ、4は画像
用メモリ、5は映像出力回路、6は演算器、7は補正演
算プログラムである。図2の画像列データと図3のフラ
グ列がデータ/フラグ読みとり回路1に入ると、画像列
データは、圧縮画像復調回路2へ送られる。図4は圧縮
画像復調回路2の構成を示す。10は差分回路、11は
初期値回路、12は加算回路である。ブロックの先頭の
初期値は、初期値回路11へ入り格納される。それ以降
の差分値は差分回路10へ順次入っていく。まず、初期
値0が初期値回路11へ格納される。次の差分00が差分
回路10へ入ると、加算回路12からは、P00=初期値
0+差分00の加算値が出力される。次の差分01が入力さ
れると、初期値回路11の出力は、前値のP00となり、
加算回路12からは、P01=P00+差分01となる。これ
が、差分0nまで繰り返される。これらの復調画像データ
は、図5のイメージで1つの画像を構成するように、画
像メモリ4へ順次格納される。一方、フラグ列データ
は、フラグ用メモリ3へ図6の構成で、順次格納され
る。画像メモリ4のデータは、読み出された画像データ
に誤りがなければ、映像出力回路5より画像として出力
される。
FIG. 1 shows the configuration of an embodiment of the image correction apparatus according to the present invention. 1 is a data / flag reading circuit,
Reference numeral 2 is a compressed image demodulation circuit, 3 is a flag memory, 4 is an image memory, 5 is a video output circuit, 6 is a calculator, and 7 is a correction calculation program. When the image string data of FIG. 2 and the flag string of FIG. 3 enter the data / flag reading circuit 1, the image string data is sent to the compressed image demodulating circuit 2. FIG. 4 shows the configuration of the compressed image demodulation circuit 2. Reference numeral 10 is a difference circuit, 11 is an initial value circuit, and 12 is an addition circuit. The initial value at the beginning of the block is entered and stored in the initial value circuit 11. Subsequent difference values sequentially enter the difference circuit 10. First, the initial value 0 is stored in the initial value circuit 11. When the next difference 00 enters the difference circuit 10, the addition circuit 12 outputs the addition value of P00 = initial value 0 + difference 00. When the next difference 01 is input, the output of the initial value circuit 11 becomes the previous value P00,
From the adder circuit 12, P01 = P00 + difference 01. This is repeated until the difference is 0n. These demodulated image data are sequentially stored in the image memory 4 so that the image of FIG. 5 constitutes one image. On the other hand, the flag string data is sequentially stored in the flag memory 3 with the configuration of FIG. The data in the image memory 4 is output as an image from the video output circuit 5 if the read image data has no error.

【0011】もしも、誤りが発生しておれば、その出力
値は異なる画像となる。図7の例のように画素P11に誤
りが発生したことがフラグF11にて検出されたとする。
そうすると画像列は圧縮した画像列であるために、P11
以降P1nまで画像値は、でたらめな値となる。
If an error has occurred, the output value will be a different image. Assume that the flag F11 detects that an error has occurred in the pixel P11 as in the example of FIG.
Then, since the image sequence is a compressed image sequence, P11
After that, the image values up to P1n are random values.

【0012】演算器6は、通常CPUと呼ばれ、内部に
加減算器や乗除算器やメモリ値の読み書きインターフェ
イスが装備されているものである。補正演算プログラム
7は、画素の補正演算を行うためのCPUを制御して演
算を行うプログラムが格納されている読みだし専用メモ
リである。
The arithmetic unit 6 is usually called a CPU, and is internally equipped with an adder / subtractor, a multiplier / divider, and a memory value read / write interface. The correction calculation program 7 is a read-only memory in which a program for controlling the CPU for performing the correction calculation of the pixels is stored.

【0013】補正演算プログラムは、次の処理を行う。
ここで、誤りフラグ用メモリ3から検索を行い、P11部
分に誤りが有ったとする。そこで、P11の補正値とし
て、次の演算を行って、求める。
The correction calculation program performs the following processing.
Here, it is assumed that a search is performed from the error flag memory 3 and that the P11 portion has an error. Therefore, the correction value of P11 is calculated by the following calculation.

【0014】 P11=(Ka×P00 + Kb×P01 + Kc×P02 + Kd×P10 + Ke×P20 + Kf×P21 + Kg×P22)/8 KaからKgの係数は、図8(a)の配置を示し、図8
(b)及び(c)は、係数値の例を示す。ここで、P11
の補正値が算出されると、P12からP1nまでは、自動的
に求まる。一般に、ひとつの画素の周囲は相関性が大き
いことを利用しているもので、自然画に近いほどそれは
顕著となる。
P11 = (Ka × P00 + Kb × P01 + Kc × P02 + Kd × P10 + Ke × P20 + Kf × P21 + Kg × P22) / 8 The coefficient from Ka to Kg is arranged as shown in FIG. 8 (a). Is shown in FIG.
(B) and (c) show examples of coefficient values. Where P11
When the correction value of is calculated, P12 to P1n are automatically obtained. In general, the fact that the periphery of one pixel is highly correlated is utilized, and the closer it is to a natural image, the more remarkable it is.

【0015】以上のように、この実施例によれば、誤り
を発生した画素の周囲の画素の演算平均値で誤り画素を
補正するもので、ライン補間による画像の品位をさらに
高めることができる画像補正装置である。
As described above, according to this embodiment, the error pixel is corrected by the arithmetic average value of the pixels around the error pixel, and the image quality by the line interpolation can be further improved. It is a correction device.

【0016】[0016]

【発明の効果】以上説明したように、本発明によれば、
ライン単位で補正する手法では、画像の品位が悪くなっ
てしまうので、画素単位による演算平均値で誤り画素を
補正するもので、自然画等は特に、その実用的効果は大
きい。
As described above, according to the present invention,
Since the image quality deteriorates in the method of correcting in line units, error pixels are corrected by the arithmetic mean value in pixel units, and natural images and the like have a particularly large practical effect.

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

【図1】本発明の一実施例における画像補正装置の構成
を示すブロック図
FIG. 1 is a block diagram showing the configuration of an image correction apparatus according to an embodiment of the present invention.

【図2】同実施例における圧縮された画像列を示す模式
FIG. 2 is a schematic diagram showing a compressed image sequence in the embodiment.

【図3】同実施例における画像列に付随した誤りフラグ
列を示す模式図
FIG. 3 is a schematic diagram showing an error flag string associated with an image string in the embodiment.

【図4】同実施例における圧縮画像復調回路の内部構成
を示すブロック図
FIG. 4 is a block diagram showing an internal configuration of a compressed image demodulation circuit in the embodiment.

【図5】同実施例における復調された画像のメモリ配置
とイメージを示す模式図
FIG. 5 is a schematic diagram showing a memory arrangement and an image of demodulated images in the embodiment.

【図6】同実施例における誤りフラグのメモリ配置を示
す模式図
FIG. 6 is a schematic diagram showing a memory arrangement of error flags in the embodiment.

【図7】同実施例における誤りが発生した位置の例を示
す模式図
FIG. 7 is a schematic diagram showing an example of an error occurrence position in the embodiment.

【図8】同実施例における画像補正係数の配置と例を示
す模式図
FIG. 8 is a schematic diagram showing an arrangement of image correction coefficients and an example in the same embodiment.

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

1 データ/フラグ読みとり回路 2 圧縮画像復調回路 3 フラグ用メモリ 4 画像用メモリ 5 映像出力回路 6 演算器 7 補正演算プログラム 10 差分回路 11 初期値回路 12 加算回路 1 data / flag reading circuit 2 compressed image demodulation circuit 3 flag memory 4 image memory 5 video output circuit 6 calculator 7 correction calculation program 10 difference circuit 11 initial value circuit 12 adder circuit

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 任意のブロック毎に圧縮された画像デー
タと圧縮画像データに付随した誤りフラグを読みとるデ
ータ/フラグ読みとり手段と、 前記圧縮された画像データを元に復元する圧縮画像復調
手段と、 前記復元された画像データを格納する画像用メモリ手段
と、 前記誤りフラグを格納するフラグ用メモリ手段と、 前記画像用メモリ手段からの復元された画像データを映
像として出力する映像出力手段と、 前記画像用メモリ手段からのデータを読みとり演算し、
前記画像用メモリ手段にデータを書き込む演算手段と、 前記演算手段の演算手法を格納したメモリ手段とを備
え、 前記演算手法は、誤りフラグに対応する誤った画素を、
該画素周囲の前後左右、及び斜め隅の値で演算平均を行
って置換し補正することを特徴とする画像補正装置。
1. A data / flag reading means for reading image data compressed for each arbitrary block and an error flag attached to the compressed image data, and a compressed image demodulating means for restoring the compressed image data based on the compressed image data. An image memory unit for storing the restored image data; a flag memory unit for storing the error flag; a video output unit for outputting the restored image data from the image memory unit as a video; The data from the image memory means is read and calculated,
Computation means for writing data to the image memory means and memory means for storing the computation method of the computation means are provided, wherein the computation method detects an erroneous pixel corresponding to an error flag,
An image correction device characterized by performing arithmetic averaging with values of front, rear, left and right around the pixel, and values of diagonal corners for replacement and correction.
JP8061992A 1992-04-02 1992-04-02 Picture correction device Pending JPH05284485A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8061992A JPH05284485A (en) 1992-04-02 1992-04-02 Picture correction device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8061992A JPH05284485A (en) 1992-04-02 1992-04-02 Picture correction device

Publications (1)

Publication Number Publication Date
JPH05284485A true JPH05284485A (en) 1993-10-29

Family

ID=13723366

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8061992A Pending JPH05284485A (en) 1992-04-02 1992-04-02 Picture correction device

Country Status (1)

Country Link
JP (1) JPH05284485A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108734742A (en) * 2017-04-20 2018-11-02 松下知识产权经营株式会社 Camera parameter group calculation method, program and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108734742A (en) * 2017-04-20 2018-11-02 松下知识产权经营株式会社 Camera parameter group calculation method, program and device
CN108734742B (en) * 2017-04-20 2023-07-21 松下知识产权经营株式会社 Camera parameter group calculating method, program and device

Similar Documents

Publication Publication Date Title
JP4893758B2 (en) Image processing apparatus, image processing method, and imaging apparatus
JP3137119B2 (en) Error correction device
JPS58207781A (en) Error correcting method of digital television signal
JPH0622135A (en) Picture processing method
KR20070088836A (en) Image stabilizer and system having the same and method thereof
US9269130B2 (en) Image correction method using approximately non-linear regression approach and related image correction circuit
EP0923052B1 (en) Image encoding/decoding technique
EP0631436B1 (en) Apparatus for recording and reproducing compressed or non-compressed digital video data
JPH05284485A (en) Picture correction device
JP2579153B2 (en) Digital data recorder
KR100557175B1 (en) Apparatus and method for smoothing edge of blocks in a video signal processing system
JPH0530354B2 (en)
JP3039654B2 (en) Image reduction apparatus and method
JP2983775B2 (en) Error correction and noise suppression circuit
JPH07123364A (en) Image shake correcting device
JP3036071B2 (en) Image compression device
JP3455263B2 (en) Image processing device
JP3092536B2 (en) Parallel pixel value interpolation method
JP2826897B2 (en) Motion compensation circuit
JP3889629B2 (en) Image processing apparatus, image processing method, and image processing program
JP2629402B2 (en) Motion vector detection device
JPH05284453A (en) Digital data recording and reproduction device
JP2827024B2 (en) Signal processing circuit
JP2001148859A (en) Error concealment system, error concealment method and program recording medium
JPH01222588A (en) Picture correcting device