JP2000020710A - Image format converter - Google Patents

Image format converter

Info

Publication number
JP2000020710A
JP2000020710A JP10190374A JP19037498A JP2000020710A JP 2000020710 A JP2000020710 A JP 2000020710A JP 10190374 A JP10190374 A JP 10190374A JP 19037498 A JP19037498 A JP 19037498A JP 2000020710 A JP2000020710 A JP 2000020710A
Authority
JP
Japan
Prior art keywords
pixel
pixel block
data
image
block
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
JP10190374A
Other languages
Japanese (ja)
Inventor
Misako Matsumoto
美佐子 松本
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 JP10190374A priority Critical patent/JP2000020710A/en
Publication of JP2000020710A publication Critical patent/JP2000020710A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • G06T3/4007Scaling of whole images or parts thereof, e.g. expanding or contracting based on interpolation, e.g. bilinear interpolation

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

PROBLEM TO BE SOLVED: To improve efficiency of image format conversion processing and to obtain an image with reduced quality deterioration. SOLUTION: The converter divides the picture data of one picture in a pixel block 13 to be interpolated into prescribed pixel blocks and obtains a pixel block 14 obtained by shifting one pixel in the Y direction to execute linear interpolation by adjacent pixel data. Namely a pixel block 15 is obtained by executing interpolation processing between both pixel blocks 13, 14. Then pixel data arrayed on the lowermost stage of the pixel block 15 are copied.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は画像フォーマット変
換処理の効率化を図り、画質劣化の少ない画像を得るこ
とのできる画像フォーマット変換装置に関するものであ
る。
[0001] 1. Field of the Invention [0002] The present invention relates to an image format conversion apparatus capable of improving the efficiency of image format conversion processing and obtaining an image with little deterioration in image quality.

【0002】[0002]

【従来の技術】近年、画像処理方式として1画面の画像
データを所定の画素ブロックに分割して画素ブロック毎
に画像処理する方式が用いられている。特に、画像通信
等に使用される場合は、画像データ量を削減し、効率的
に、短時間でより多くのデータを処理することが求めら
れている。そのため、縦横の画素数を1/Nにした画像
に対して画像処理を施した後、画像を主走査X方向と副
走査Y方向にコピーしてN倍に拡大し、元の画像サイズ
に復元する方式が提案されている。
2. Description of the Related Art In recent years, a method of dividing image data of one screen into predetermined pixel blocks and performing image processing for each pixel block has been used as an image processing method. In particular, when used for image communication and the like, there is a demand for reducing the amount of image data and efficiently processing more data in a short time. Therefore, after performing image processing on an image in which the number of pixels in the vertical and horizontal directions is 1 / N, the image is copied in the main scanning X direction and the sub-scanning Y direction, enlarged to N times, and restored to the original image size. Have been proposed.

【0003】図11は従来の方式1による4倍拡大処理
の概略図を示し、これは画像フォーマット変換処理によ
って、画像サイズを4倍にフォーマット変換する際、8
×8画素ブロック1を16×16画素ブロック2に拡大
するものである。主走査X方向と副走査Y方向にそれぞ
れ1画素ずつコピーすることにより4倍に拡大する。そ
の拡大処理の詳細について説明すると、8×8画素ブロ
ック1の画素1(x1,y1)は16×16画素ブロッ
ク2の(x1,y1),(x1,y2),(x2,y
1),(x2,y2)の位置にコピーする。同様に他の
画素も下,右,右下の位置にコピーすることにより4倍
にフォーマット変換するものであった。
FIG. 11 is a schematic diagram of a four-fold enlargement process according to the conventional method 1, which is performed when the image size is quadrupled by the image format conversion process.
This enlarges the × 8 pixel block 1 to the 16 × 16 pixel block 2. By copying one pixel each in the main scanning X direction and the sub scanning Y direction, the image is enlarged four times. Explaining the details of the enlargement processing, the pixel 1 (x1, y1) of the 8 × 8 pixel block 1 is (x1, y1), (x1, y2), (x2, y) of the 16 × 16 pixel block 2.
1) Copy to the positions of (x2, y2). Similarly, the format of the other pixels is quadrupled by copying them to the lower, right, and lower right positions.

【0004】また、他の従来の方式2として1画面の画
像データを所定の画素ブロックに分割して画像処理する
場合、前記画素ブロック毎の画像処理と前記画素ブロッ
ク毎の出力処理がすべて終了した後、1画面の画像デー
タに対して画像フォーマット変換処理とノイズを除去す
るための1画面フィルタ処理を行う方式があった。
In another conventional method 2, when image data of one screen is divided into predetermined pixel blocks and image processing is performed, all of the image processing for each pixel block and the output processing for each pixel block have been completed. Later, there was a method of performing image format conversion processing and one-screen filter processing for removing noise on image data of one screen.

【0005】図12は、従来の方式2による画像フォー
マット変換処理のフローチャートである。画素ブロック
毎に画素ブロック入力部3に入力された画素ブロック
は、画素ブロック処理部4で処理され、画素ブロック出
力部5に出力される。前記画素ブロック出力処理が1画
面分すべて終了したか画素ブロック終了判定部6で判定
すると1画面の画像データに対してフォーマット変換部
7で画像フォーマット変換処理を行った後、1画面フィ
ルタ処理部8でフィルタ処理を行うものである。
FIG. 12 is a flowchart of an image format conversion process according to the conventional method 2. The pixel block input to the pixel block input unit 3 for each pixel block is processed by the pixel block processing unit 4 and output to the pixel block output unit 5. When the pixel block end determination unit 6 determines whether the pixel block output processing has been completed for one screen, the image format conversion processing is performed on the image data of one screen by the format conversion unit 7, and then the one screen filter processing unit 8 Performs the filtering process.

【0006】[0006]

【発明が解決しようとする課題】上記従来の方式1で
は、単純にN倍拡大する場合、特に斜め方向の画像や線
が階段状になって見えるという画質の劣化がみられた。
また、単純に線形補間だけを行う場合、画素ブロックの
最下段の画素データを補間するには1走査分の画素デー
タを保管しておく必要があった。
In the above-mentioned conventional system 1, when the image is simply enlarged by N times, the image quality is deteriorated, in particular, images and lines in oblique directions appear to be stepped.
In addition, when only linear interpolation is simply performed, it is necessary to store pixel data for one scan in order to interpolate pixel data at the lowest stage of a pixel block.

【0007】また、従来の方式2では、1画面全体の画
像データに対して画像フォーマット変換処理や1画面フ
ィルタ処理を行うため使用メモリ領域が増加し、1度外
部に出力したデータを再び内部に取り込んでフィルタ処
理をするため、処理時間がかかるという問題点があっ
た。
Further, in the conventional method 2, since the image format conversion processing and the one-screen filter processing are performed on the image data of the entire one screen, the memory area to be used increases, and the data once output to the outside is again stored inside. There is a problem that processing time is required because the filter processing is performed by taking in the data.

【0008】本発明は、上記課題を解決するもので、画
像フォーマット変換処理の効率化を図り、画質劣化の少
ない画像を得ることのできる画像フォーマット変換装置
を提供することを目的とする。
An object of the present invention is to solve the above-mentioned problems, and to provide an image format conversion apparatus capable of improving the efficiency of image format conversion processing and obtaining an image with little deterioration in image quality.

【0009】[0009]

【課題を解決するための手段】本発明は上記目的を達成
するため請求項1記載の発明の画像フォーマット変換装
置は、1画面の画像データを所定の画素ブロックに分割
し、隣り合う画素データで線形補間し、かつ前記画素ブ
ロックの最下段にある画素データをコピーすることによ
り、画素ブロック補間処理を行うものである。本発明に
よれば画質劣化の少ない画像を得ることができるという
作用を有する。
According to an aspect of the present invention, there is provided an image format conversion apparatus which divides image data of one screen into predetermined pixel blocks, and converts the image data into a predetermined pixel block. The pixel block interpolation processing is performed by linearly interpolating and copying the pixel data at the bottom of the pixel block. According to the present invention, it is possible to obtain an image with little deterioration in image quality.

【0010】本発明の請求項2記載の発明の画像フォー
マット変換装置は、1画面の画像データを所定の画素ブ
ロックに分割し、前記画素ブロック毎に画像を処理する
画素ブロック処理部の後段にあって、画素ブロック補間
処理と画像フォーマット変換と画素ブロックデータ出力
とを前記画素ブロック毎に行うものである。本発明によ
れば、使用メモリ領域の増加を抑えながら画像フォーマ
ット変換処理を効率的に行い画像劣化の少ない画像を得
ることができるという作用を有する。
An image format conversion apparatus according to a second aspect of the present invention divides image data of one screen into predetermined pixel blocks, and is provided at a subsequent stage of a pixel block processing unit for processing an image for each pixel block. Thus, pixel block interpolation processing, image format conversion, and pixel block data output are performed for each pixel block. According to the present invention, there is an effect that an image format conversion process can be efficiently performed while suppressing an increase in a used memory area, and an image with less image degradation can be obtained.

【0011】[0011]

【発明の実施の形態】以下、本発明の各実施の形態に図
面を参照して説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0012】(実施の形態1)図1は本発明の実施の形
態1における画像フォーマット変換装置の画像フォーマ
ット変換処理図である。図1において、9は1画面の画
像データを8×8画素ブロックに分割したときの1画素
ブロック、10はそれを4倍に拡大した場合の16×1
6画素ブロックである。本実施の形態1における画像フ
ォーマット変換処理装置を用いると、拡大後の16×1
6画素ブロックにおいて、画素1(x1,y1)から画
素64x(x16,y15)までの画素データは元の画
素データと線形補間を施した結果の画素データから成
り、画素ブロックの最下段にある画素データ(画素57
(x1,y16)から画素64x(x16,y16)ま
で)は上段の画素データ(画素57(x1,y15)か
ら画素64x(x16,y15)まで)をコピーして構
成されている。
(Embodiment 1) FIG. 1 is a diagram showing an image format conversion process of an image format conversion apparatus according to Embodiment 1 of the present invention. In FIG. 1, reference numeral 9 denotes one pixel block when image data of one screen is divided into 8 × 8 pixel blocks, and 10 denotes 16 × 1 when the image data is quadrupled.
It is a 6 pixel block. When the image format conversion processing device according to the first embodiment is used, the 16 × 1
In the 6-pixel block, pixel data from pixel 1 (x1, y1) to pixel 64x (x16, y15) is composed of original pixel data and pixel data obtained by performing linear interpolation, and the pixel at the bottom of the pixel block Data (pixel 57
(X1, y16) to pixel 64x (x16, y16)) are configured by copying the upper pixel data (from pixel 57 (x1, y15) to pixel 64x (x16, y15)).

【0013】次に、QCIF画像1フレームを8×8画
素ブロックに分割して画像処理し、本発明の画像フォー
マット変換処理装置を用いてCIF画像に拡大する場合
の詳細を、図2〜図8を参照しながら説明する。
Next, details of a case in which one frame of a QCIF image is divided into 8 × 8 pixel blocks, image-processed, and enlarged to a CIF image using the image format conversion processing apparatus of the present invention will be described with reference to FIGS. This will be described with reference to FIG.

【0014】図2は元の画素ブロックデータの出力図で
ある。まず、8×8画素ブロック11の画素データを1
6×16画素ブロック12へ、主走査X方向,副走査Y
方向にそれぞれ1画素ずつ間隔を空けて配置する。
FIG. 2 is an output diagram of the original pixel block data. First, the pixel data of the 8 × 8 pixel block 11 is 1
Main scan X direction, sub scan Y to 6 × 16 pixel block 12
The pixels are arranged at intervals of one pixel in each direction.

【0015】次に、副走査方向の補間処理について図3
の副走査Y方向の画素ブロック補間処理図を参照しなが
ら説明する。始めに図3の補間処理対象の画素ブロック
13の2行目から8行目(y2からy8)の画素データ
(画素9(x1,y2)から画素64(x8,y8)ま
で)の下側に、同じ画素ブロック13の最下段である8
行目(y8)の画素データ(画素57(x1,y8)か
ら画素64(x8,y8)まで)を合わせて8×8画素
の画素ブロック14を作成する。そして、元の画素ブロ
ック13と新たに作成した画素ブロック14のそれぞれ
同じ位置にある画素データで線形補間を施し、副走査Y
方向に補間処理した画素ブロック15を作成する。これ
により、元の画素データと副走査Y方向に1画素分ずら
したデータとで線形補間を施したことになる。
Next, the interpolation processing in the sub-scanning direction will be described with reference to FIG.
A description will be given with reference to FIG. First, the pixel data (from pixel 9 (x1, y2) to pixel 64 (x8, y8)) of the second to eighth rows (y2 to y8) of the pixel block 13 to be interpolated in FIG. , Which is the bottom row of the same pixel block 13
The pixel block 14 of 8 × 8 pixels is created by combining the pixel data of the row (y8) (from the pixel 57 (x1, y8) to the pixel 64 (x8, y8)). Then, linear interpolation is performed on the pixel data at the same position in the original pixel block 13 and the newly created pixel block 14, and the sub-scan Y
A pixel block 15 interpolated in the direction is created. This means that linear interpolation has been performed on the original pixel data and the data shifted by one pixel in the sub-scanning Y direction.

【0016】ただし、この場合は、人間の目が主走査方
向に比べて副走査方向の画像に鈍感であることを利用し
て、1走査分の画素データを保管することなく各画素ブ
ロックの最下段(y8)の画素データをコピーして配置
することとする。
However, in this case, taking advantage of the fact that the human eye is less sensitive to the image in the sub-scanning direction than in the main scanning direction, the maximum of each pixel block can be saved without storing the pixel data for one scan. The pixel data in the lower part (y8) is copied and arranged.

【0017】図4は副走査方向に補間後の画素ブロック
データの出力図を示し、補間後の8×8画素ブロック1
5を16×16画素ブロック16に配置する。このとき
の配置は、図2の16×16画素ブロック12に配置し
た位置から副走査Y方向に1画素ずつずらした位置に配
置する。これにより、副走査Y方向に隣り合った画素同
士で補間処理した画素データを元の2つの画素データの
間に埋め込むことになる。
FIG. 4 shows an output diagram of pixel block data after interpolation in the sub-scanning direction.
5 is arranged in a 16 × 16 pixel block 16. The arrangement at this time is arranged at a position shifted by one pixel in the sub-scanning Y direction from the position arranged in the 16 × 16 pixel block 12 of FIG. As a result, the pixel data interpolated between the pixels adjacent in the sub-scanning Y direction is embedded between the two original pixel data.

【0018】ここで、処理する画素ブロックが画面の1
番左端の画素ブロックでない場合は、主走査X方向の補
間処理を行う。図5は主走査X方向の画素ブロック補間
処理図を示す。図5の17は1画面のQCIF画像、1
8は主走査X方向に隣り合った2つの画素ブロックを示
し、画素ブロック18の左側の8×8画素ブロックを取
り出したものが補間処理対象画素ブロック19、左側の
画素ブロックと右側の画素ブロックとを利用して、前記
補間処理対象画素ブロック19から主走査X方向に1画
素分ずらして8×8画素ブロックを取り出したものが画
素ブロック20である。そして、元の画素ブロック19
と新たに作成した画素ブロック20のそれぞれ同じ位置
にある画素データで線形補間を施し、主走査X方向に補
間処理した画素ブロック21を作成する。これにより、
元の画素データと主走査X方向に1画素分ずらした画素
データとで線形補間を施したことになる。
Here, the pixel block to be processed is one of the screens.
If the pixel block is not the leftmost pixel block, an interpolation process in the main scanning X direction is performed. FIG. 5 shows a pixel block interpolation processing diagram in the main scanning X direction. 5 is a QCIF image of one screen, 1 in FIG.
Numeral 8 denotes two pixel blocks adjacent to each other in the main scanning X direction. An extracted 8 × 8 pixel block on the left side of the pixel block 18 is an interpolation target pixel block 19, a left pixel block and a right pixel block. A pixel block 20 is obtained by extracting an 8 × 8 pixel block from the interpolation target pixel block 19 by shifting one pixel in the main scanning X direction using the above. Then, the original pixel block 19
Then, linear interpolation is performed using the pixel data at the same positions of the newly created pixel block 20 and the pixel block 21 that has been subjected to the interpolation processing in the main scanning X direction. This allows
This means that linear interpolation has been performed on the original pixel data and the pixel data shifted by one pixel in the main scanning X direction.

【0019】図6は主走査X方向に補間後の画素ブロッ
クデータの出力図を示し、補間後の8×8画素ブロック
21を16×16画素ブロック22に配置する。このと
きの配置は、図2の16×16画素ブロック12に配置
した位置から主走査X方向に1画素ずつずらした位置に
配置する。これにより、主走査X方向に隣り合った画素
同士で補間処理した画素データを元の2つの画素データ
の間に埋め込むことになる。
FIG. 6 shows an output diagram of pixel block data after interpolation in the main scanning X direction. The 8 × 8 pixel block 21 after interpolation is arranged in the 16 × 16 pixel block 22. The arrangement at this time is arranged at a position shifted by one pixel in the main scanning X direction from the position arranged in the 16 × 16 pixel block 12 in FIG. As a result, the pixel data interpolated between pixels adjacent in the main scanning X direction is embedded between the two original pixel data.

【0020】その後、主走査方向に補間して得た画素ブ
ロック21(図5,図6参照)について、副走査Y方向
に補間処理を行う(図3参照)。これにより、元の画素
データを主走査X方向に補間処理した画素データと、前
記主走査X方向補間後の画素データを更に副走査Y方向
に1画素ずらしたデータとで線形補間を施したことにな
る。
Thereafter, the pixel block 21 (see FIGS. 5 and 6) obtained by interpolation in the main scanning direction is subjected to interpolation processing in the sub-scanning Y direction (see FIG. 3). Thus, linear interpolation is performed between pixel data obtained by interpolating original pixel data in the main scanning X direction and data obtained by further shifting the pixel data after the main scanning X direction by one pixel in the sub scanning Y direction. become.

【0021】図7は主走査X方向と副走査Y方向に補間
後の画素ブロックデータの出力図を示し、補間後の8×
8画素ブロック23を16×16画素ブロック24に配
置する。この時の配置は、図6の16×16画素ブロッ
ク22に配置した位置から副走査Y方向に1画素ずつず
らした位置に配置する。これにより、主走査X方向に補
間した画素データを更に副走査Y方向に補間して2つの
画素データの間に埋め込むことになり、画素ブロックの
CIFサイズへの画像フォーマット変換が終了する。
FIG. 7 shows an output diagram of pixel block data after interpolation in the main scanning X direction and sub scanning Y direction.
The eight pixel block 23 is arranged in the 16 × 16 pixel block 24. The arrangement at this time is arranged at a position shifted by one pixel in the sub-scanning Y direction from the position arranged in the 16 × 16 pixel block 22 in FIG. As a result, the pixel data interpolated in the main scanning X direction is further interpolated in the sub-scanning Y direction and embedded between the two pixel data, and the image format conversion to the CIF size of the pixel block is completed.

【0022】次に図8は右端ブロックの主走査X方向の
画素ブロック補間処理図を示し、処理する画素ブロック
が画面の1番右端の画素ブロックの場合は、副走査Y方
向の補間処理と同様に、前記右端の補間処理対象画素ブ
ロック25の2列目から8列目(x2からx8)の画素
データ(画素2(x2,y1)から画素64(x8から
y8)まで)の右側に、同じ画素ブロック25の最右列
である8列目(x8)の画素データ(画素8(x8,y
1)から画素64(x8,y8)まで)を合わせて8×
8画素の画素ブロック26を作成する。そして、元の画
素ブロック25と新たに作成した画素ブロック26のそ
れぞれ同じ位置にある画素データで線形補間を施し、主
走査X方向に補間処理した画素ブロック27を作成す
る。これにより、元の画素データと主走査X方向に1画
素分ずらした画素データとで線形補間を施したことにな
る。ただし、この場合は、1画面の1番右端の画素ブロ
ックなので、主走査X方向に隣り合う画素ブロックがな
いため、画素ブロックの最右列(x8)の画素データは
そのままコピーして配置することとする。その後、補間
後の8×8画素ブロック21(図6参照)を16×16
画素ブロック22(図6参照)に配置する。
Next, FIG. 8 shows a pixel block interpolation process in the main scanning X direction of the right end block. When the pixel block to be processed is the rightmost pixel block on the screen, the same as the sub scanning Y direction interpolation process is performed. The right side of the pixel data (from pixel 2 (x2, y1) to pixel 64 (x8 to y8)) of the second to eighth columns (x2 to x8) of the rightmost interpolation target pixel block 25 is the same as The pixel data (pixel 8 (x8, y) of the eighth column (x8) which is the rightmost column of the pixel block 25
1) to 64 × (x8, y8)
A pixel block 26 of eight pixels is created. Then, linear interpolation is performed on the pixel data at the same position of the original pixel block 25 and the newly created pixel block 26 to create a pixel block 27 that has been interpolated in the main scanning X direction. This means that linear interpolation has been performed between the original pixel data and the pixel data shifted by one pixel in the main scanning X direction. However, in this case, since the pixel block is the rightmost pixel block on one screen, there is no pixel block adjacent in the main scanning X direction. Therefore, the pixel data in the rightmost column (x8) of the pixel block is copied and arranged as it is. And Thereafter, the interpolated 8 × 8 pixel block 21 (see FIG. 6) is converted into a 16 × 16 pixel block.
It is arranged in the pixel block 22 (see FIG. 6).

【0023】続けて副走査Y方向について、画面の右端
でない画素ブロックと同様にして補間処理を行い(図3
参照)、図7の16×16画素ブロック24で示す位置
に配置する。
Subsequently, in the sub-scanning Y direction, an interpolation process is performed in the same manner as in the pixel block other than the right end of the screen (FIG. 3).
7), and arranged at the position indicated by the 16 × 16 pixel block 24 in FIG.

【0024】この処理を繰り返し行い、1画面すべての
画素ブロックについて補間処理が終了すると、QCIF
画像からCIF画像への画像フォーマット変換が終了す
る。
When this processing is repeated and the interpolation processing is completed for all the pixel blocks on one screen, the QCIF
The image format conversion from the image to the CIF image ends.

【0025】(実施の形態2)図9は本発明の実施の形
態2における画像フォーマット変換処理装置の概略図で
ある。図9において、28は画素ブロック入力部、29
は画素ブロック処理部、30a,30b,30c,30
dは画素ブロック出力部、31a,31bは副走査Y方
向補間処理部、32は主走査X方向補間処理部、33は
画素ブロック終了判定部である。
(Embodiment 2) FIG. 9 is a schematic diagram of an image format conversion processing apparatus according to Embodiment 2 of the present invention. In FIG. 9, reference numeral 28 denotes a pixel block input unit;
Denotes a pixel block processing unit, 30a, 30b, 30c, 30
d is a pixel block output unit, 31a and 31b are sub-scanning Y-direction interpolation processing units, 32 is a main scanning X-direction interpolation processing unit, and 33 is a pixel block end determination unit.

【0026】次に動作を説明すると、画素ブロック入力
部28および画素ブロック処理部29は、従来通り画素
ブロック毎に処理を行った後、画素ブロック出力部30
aの画素ブロック出力および副走査Y方向補間処理部3
1aの補間処理を行う。以降、画素ブロック出力部30
bの画素ブロック出力および主走査X方向補間処理部3
2の補間処理、画素ブロック出力部30cの画素ブロッ
ク出力および副走査Y方向補間処理部31bの補間処
理,画素ブロック出力部30dの画素ブロック出力を画
素ブロック単位で順次に処理することにより画像フォー
マット変換を行う。つまり、画素ブロック終了判定部3
3によってすべての画素ブロックが終了したと判定され
るときには、1画面分の画像出力と補間処理付き画像フ
ォーマット変換が終了していることになる。
Next, the operation will be described. The pixel block input section 28 and the pixel block processing section 29 perform the processing for each pixel block as in the prior art, and then perform the processing for the pixel block output section 30.
a pixel block output and sub-scanning Y-direction interpolation processing unit 3
The interpolation processing of 1a is performed. Hereinafter, the pixel block output unit 30
b pixel block output and main scanning X direction interpolation processing unit 3
(2) Image format conversion by sequentially processing the pixel block output of the pixel block output unit 30c, the pixel block output of the sub-scan Y-direction interpolation processing unit 31b, and the pixel block output of the pixel block output unit 30d in pixel block units. I do. That is, the pixel block end determination unit 3
When it is determined that all the pixel blocks have been completed according to 3, it means that image output for one screen and image format conversion with interpolation processing have been completed.

【0027】次に、QCIF画像1フレームを8×8画
素ブロックに分割して画像処理し、本実施の形態2の画
像フォーマット変換処理装置を用いてCIF画像に拡大
する場合の詳細を、図2〜図10を参照しながら説明す
る。ここで、ブロック補間処理の方式は、本発明の実施
の形態1の方式を用いるものとして説明する。
Next, details of a case in which one frame of a QCIF image is divided into 8 × 8 pixel blocks, image-processed, and enlarged to a CIF image using the image format conversion processing apparatus of the second embodiment are shown in FIG. This will be described with reference to FIGS. Here, description will be made assuming that the method of the block interpolation processing uses the method of the first embodiment of the present invention.

【0028】図10は本実施の形態2における画像フォ
ーマット変換処理のフローチャートを示す。図10にお
いて、34は画素ブロック入力部、35は画素ブロック
処理部、36a,36bは画素ブロック出力部であり、
36c,36dは前画素ブロック出力部、36e,36
fは現画素ブロック出力部、37は副走査Y方向補間処
理部、38は画素ブロック位置判定部、39は主走査X
方向補間処理部、40は画素ブロック終了判定部、41
は画素ブロックデータ保管部である。
FIG. 10 shows a flowchart of the image format conversion processing according to the second embodiment. In FIG. 10, 34 is a pixel block input unit, 35 is a pixel block processing unit, 36a and 36b are pixel block output units,
36c and 36d are previous pixel block output units, and 36e and 36
f is a current pixel block output unit, 37 is a sub-scan Y direction interpolation processing unit, 38 is a pixel block position determination unit, and 39 is a main scan X
A direction interpolation processing unit, 40 is a pixel block end determination unit, 41
Denotes a pixel block data storage unit.

【0029】まず、外部からのQCIF映像を8×8画
素ブロックだけ画素ブロック入力部34に取り込み、画
素ブロック処理部35で画素ブロック処理を行う。そし
て、8×8画素ブロック11(図2参照)の画素データ
を16×16画素ブロック12(図2参照)へ、主走査
X方向,副走査Y方向にそれぞれ1画素ずつ間隔を空け
て画素ブロック出力部36aに出力する。
First, an external QCIF image is fetched into the pixel block input unit 34 by 8 × 8 pixel blocks, and the pixel block processing unit 35 performs pixel block processing. Then, the pixel data of the 8 × 8 pixel block 11 (see FIG. 2) is converted into a 16 × 16 pixel block 12 (see FIG. 2) by one pixel each in the main scanning X direction and the sub-scanning Y direction. Output to the output unit 36a.

【0030】次に、副走査Y方向の補間処理部37aの
動作については図3を参照しながら説明する。始めに補
間処理対象の画素ブロック13の2行目から8行目(y
2からy8)の画素データ(画素9(x1,y2)から
画素64(x8,y8)まで)の下側に、同じ画素ブロ
ック13の最下段である8行目(y8)の画素データ
(画素57(x1,y8)から画素64(x8,y8)
まで)を合わせて8×8画素の画素ブロック14を作成
する。そして、元の画素ブロック13と新たに作成した
画素ブロック14のそれぞれ同じ位置にある画素データ
で線形補間を施し、副走査Y方向に補間処理した画素ブ
ロック15を作成する。これにより、元の画素データと
副走査Y方向に1画素分ずらしたデータとで線形補間を
施したことになり、画素ブロック出力部36bへ出力さ
れる。
Next, the operation of the interpolation unit 37a in the sub-scanning Y direction will be described with reference to FIG. First, the second to eighth rows (y
Below the pixel data (pixels 9 (x1, y2) to pixel 64 (x8, y8)) of the second row (y8), the pixel data of the eighth row (y8) which is the lowermost row of the same pixel block 13 57 (x1, y8) to pixel 64 (x8, y8)
To create a pixel block 14 of 8 × 8 pixels. Then, linear interpolation is performed on the pixel data at the same position of the original pixel block 13 and the newly created pixel block 14 to create a pixel block 15 that has been subjected to interpolation processing in the sub-scanning Y direction. As a result, the original pixel data and the data shifted by one pixel in the sub-scanning Y direction are subjected to linear interpolation, and are output to the pixel block output unit 36b.

【0031】ただし、この場合は、人間の目が主走査方
向に比べて副走査方向の画像に鈍感であることを利用し
て、1走査分の画素データを保管することなく、各画素
ブロックの最下段(y8)の画素データをコピーして配
置することとする。
However, in this case, utilizing the fact that the human eye is less sensitive to the image in the sub-scanning direction than in the main scanning direction, the pixel data of each pixel block can be stored without storing the pixel data for one scan. The pixel data at the bottom (y8) is copied and arranged.

【0032】その後、図4に示す補間後の8×8画素ブ
ロック15を16×16画素ブロック16に配置する。
このときの出力は、図2の16×16画素ブロック12
に配置した位置から副走査Y方向に1画素ずつずらした
位置に出力する。これにより、副走査Y方向に隣り合っ
た画素同士で補間処理した画素データを元の2つの画素
データの間に埋め込むことになる。
Thereafter, the interpolated 8 × 8 pixel block 15 shown in FIG. 4 is arranged in a 16 × 16 pixel block 16.
The output at this time is the 16 × 16 pixel block 12 shown in FIG.
Is output at a position shifted by one pixel in the sub-scanning Y direction from the position arranged at. As a result, the pixel data interpolated between the pixels adjacent in the sub-scanning Y direction is embedded between the two original pixel data.

【0033】ここで、現在処理している画素ブロックが
画面の1番左端の画素ブロックかどうかを画素ブロック
位置判定部38aで判定し、左端の画素ブロックの場合
は画素ブロックデータを画素ブロックデータ保管部41
に保管して、次の画素ブロックデータの入力と画素ブロ
ックの処理を画素ブロック入力部34および画素ブロッ
ク処理部35で行う。
Here, the pixel block position determination unit 38a determines whether the pixel block currently being processed is the leftmost pixel block on the screen. If the pixel block is the leftmost pixel block, the pixel block data is stored in the pixel block data storage. Part 41
The input of the next pixel block data and the processing of the pixel block are performed by the pixel block input unit 34 and the pixel block processing unit 35.

【0034】左端の画素ブロックでない場合は、主走査
X方向の補間処理部39aで補間処理を行う。主走査X
方向の補間処理の詳細は、図5を参照しながら説明す
る。図5の17は1画面のQCIF画像、18は主走査
X方向に隣り合った2つの画素ブロックを示す。画素ブ
ロック18の左側の8×8画素ブロックを取り出したも
のが画素ブロック19、左側の画素ブロックと右側の画
素ブロックとを利用して、主走査X方向に1画素分ずら
して8×8画素ブロックを取り出したものが画素ブロッ
ク20である。そして、元の画素ブロック19と新たに
作成した画素ブロック20のそれぞれ同じ位置にある画
素データで線形補間を施し、主走査X方向に補間処理し
た画素ブロック21を作成する。これにより、元の画素
データと主走査X方向に1画素分ずらした画素データと
で線形補間を施したことになる。その後、補間後の8×
8画素ブロック21(図6参照)を16×16画素ブロ
ック22(図6参照)に出力する。このときの前画素ブ
ロック出力部36cの出力は、図2の16×16画素ブ
ロック12に出力した位置から主走査X方向に1画素ず
つずらした位置に出力する。これにより、主走査X方向
に隣り合った画素同士で補間処理した画素データを元の
2つの画素データの間に埋め込むことになる。
If the pixel block is not the leftmost pixel block, the interpolation processing section 39a in the main scanning X direction performs an interpolation process. Main scan X
Details of the direction interpolation processing will be described with reference to FIG. In FIG. 5, reference numeral 17 denotes a QCIF image of one screen, and reference numeral 18 denotes two pixel blocks adjacent in the main scanning X direction. An 8 × 8 pixel block extracted from the left 8 × 8 pixel block of the pixel block 18 is shifted by one pixel in the main scanning X direction using the pixel block 19 and the left and right pixel blocks. Is a pixel block 20. Then, linear interpolation is performed using pixel data at the same position in the original pixel block 19 and the newly created pixel block 20, respectively, to create a pixel block 21 that has been subjected to interpolation processing in the main scanning X direction. This means that linear interpolation has been performed between the original pixel data and the pixel data shifted by one pixel in the main scanning X direction. After that, 8 ×
The 8-pixel block 21 (see FIG. 6) is output to the 16 × 16 pixel block 22 (see FIG. 6). The output of the previous pixel block output unit 36c at this time is output to a position shifted by one pixel in the main scanning X direction from the position output to the 16 × 16 pixel block 12 in FIG. As a result, the pixel data interpolated between pixels adjacent in the main scanning X direction is embedded between the two original pixel data.

【0035】その後、主走査X方向に補間して得た画素
ブロック21(図5参照)について、副走査Y方向に副
走査Y方向補間処理部37bにて補間処理を行う(図3
参照)。これにより、元の画素データを主走査X方向に
補間処理した画素データと、前記主走査X方向補間後の
画素データを更に副走査Y方向に1画素ずらしたデータ
とで線形補間を施したことになる。その後、補間後の8
×8画素ブロック23(図7参照)を16×16画素ブ
ロック24(図7参照)に前画素ブロック出力部36d
へ出力する。この時の出力は、図6の16×16画素ブ
ロック22に配置した位置から副走査Y方向に1画素ず
つずらした位置に出力する。これにより、主走査X方向
に補間したデ画素データを更に副走査Y方向に補間して
2つの画素データの間に埋め込むことになり、前の画素
ブロックのCIFサイズへの画像フォーマット変換が終
了する。
Thereafter, the sub-scanning Y-direction interpolation processing section 37b performs an interpolating process on the pixel block 21 (see FIG. 5) obtained by interpolating in the main scanning X-direction (FIG. 3).
reference). Thus, linear interpolation is performed between pixel data obtained by interpolating original pixel data in the main scanning X direction and data obtained by further shifting the pixel data after the main scanning X direction by one pixel in the sub scanning Y direction. become. After that, 8
The previous pixel block output unit 36d converts the × 8 pixel block 23 (see FIG. 7) into the 16 × 16 pixel block 24 (see FIG. 7).
Output to The output at this time is output to a position shifted by one pixel in the sub-scanning Y direction from the position arranged in the 16 × 16 pixel block 22 in FIG. As a result, the de-pixel data interpolated in the main scanning X direction is further interpolated in the sub-scanning Y direction and embedded between the two pixel data, and the image format conversion of the previous pixel block to the CIF size is completed. .

【0036】また、前の画素ブロックを補間した画素デ
ータの出力が終了した後、現在の画素ブロックが画面の
1番右端の画素ブロックかどうかを画素ブロック位置判
定部38bにて判定し、右端の画素ブロックでない場合
は次の画素ブロック入力処理のため画素ブロック入力部
34へ進む。右端ブロックの場合は、副走査Y方向の補
間処理と同様に、右端画素ブロック25(図8参照)の
2列目から8列目(x2からx8)の画素データ(画素
2(x2,y1)から画素64(x8からy8)まで)
の右側に、同じ画素ブロック25の最右列である8列目
(x8)の画素データ(画素8(x8,y1)から画素
64(x8,y8)まで)を合わせて8×8画素の画素
ブロック26(図8参照)を作成する。そして、元の画
素ブロック25と新たに作成した画素ブロック26のそ
れぞれ同じ位置にある画素データで線形補間を施し、主
走査X方向補間処理部39bにて主走査X方向に補間処
理した画素ブロック27(図8参照)を作成する。これ
により、元の画素データと主走査X方向に1画素分ずら
した画素データとで線形補間を施したことになる。ただ
しこの場合は、1画面の1番右端の画素ブロックなの
で、主走査X方向に隣り合う画素ブロックがないため、
画素ブロックの最右列(x8)の画素データはそのまま
コピーして現画素ブロック出力部36eへ出力すること
とする。その後、補間後の8×8画素ブロック21(図
6参照)を16×16画素ブロック22(図6参照)に
出力する。
After the output of the pixel data obtained by interpolating the previous pixel block is completed, the pixel block position determining unit 38b determines whether or not the current pixel block is the rightmost pixel block on the screen. If it is not a pixel block, the process proceeds to the pixel block input unit 34 for the next pixel block input processing. In the case of the right end block, the pixel data (pixel 2 (x2, y1)) of the second to eighth columns (x2 to x8) of the right end pixel block 25 (see FIG. 8) are similar to the interpolation processing in the sub-scanning Y direction. To pixel 64 (x8 to y8)
The pixel data of the 8th column (x8), which is the rightmost column of the same pixel block 25 (from pixel 8 (x8, y1) to pixel 64 (x8, y8)), is a pixel of 8 × 8 pixels Block 26 (see FIG. 8) is created. Then, a linear interpolation is performed on the pixel data at the same position of the original pixel block 25 and the newly created pixel block 26, and the pixel block 27 which has been subjected to the interpolation processing in the main scanning X direction by the main scanning X direction interpolation processing unit 39b. (See FIG. 8). This means that linear interpolation has been performed between the original pixel data and the pixel data shifted by one pixel in the main scanning X direction. However, in this case, since it is the rightmost pixel block of one screen, there is no pixel block adjacent in the main scanning X direction.
Pixel data of the rightmost column (x8) of the pixel block is copied as it is and output to the current pixel block output unit 36e. Thereafter, the interpolated 8 × 8 pixel block 21 (see FIG. 6) is output to the 16 × 16 pixel block 22 (see FIG. 6).

【0037】続けて副走査Y方向について、画面の右端
でない画素ブロックと同様にして副走査Y方向補間処理
部37cにて補間処理を行い(図3参照)、図7の16
×16画素ブロック24で示す位置に現画素ブロック出
力部36fへ出力する。
Subsequently, in the sub-scanning Y-direction, an interpolation process is performed by the sub-scanning Y-direction interpolation processing unit 37c in the same manner as in the pixel block not at the right end of the screen (see FIG. 3).
Output to the current pixel block output unit 36f at the position indicated by the × 16 pixel block 24.

【0038】この処理を繰り返し行い、1画面すべての
画素ブロックについて補間処理が終了したか画素ブロッ
ク終了判定部40で判定すると、QCIF画像からCI
F画像への画像フォーマット変換が終了する。
This process is repeated, and if it is determined by the pixel block end determining unit 40 whether the interpolation process has been completed for all the pixel blocks on one screen, the CI from the QCIF image is determined.
The image format conversion to the F image ends.

【0039】[0039]

【発明の効果】以上説明したように本発明は、特に斜め
方向の画像や線が階段状になって見えるという画質の劣
化と使用メモリ領域の増加を防ぐとともに、画像フォー
マット変換処理の効率化を図り、処理時間を短縮するこ
とが可能となる。したがって、所定時間内に処理できる
データ量(フレーム枚数)の増加に大きな効果をもたら
す。
As described above, according to the present invention, it is possible to prevent the deterioration of the image quality, in particular, that the image or the line in the oblique direction looks like a staircase, the increase of the memory area used, and the efficiency of the image format conversion processing. As a result, the processing time can be reduced. Therefore, a great effect is brought about in increasing the amount of data (the number of frames) that can be processed within a predetermined time.

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

【図1】本発明の実施の形態1における画像フォーマッ
ト変換処理装置の画像フォーマット変換処理図
FIG. 1 is an image format conversion processing diagram of an image format conversion processing device according to a first embodiment of the present invention.

【図2】元の画素ブロックデータの出力図FIG. 2 is an output diagram of original pixel block data.

【図3】副走査Y方向の画素ブロック補間処理図FIG. 3 is a diagram showing a pixel block interpolation process in the sub-scanning Y direction.

【図4】副走査Y方向に補間後の画素ブロックデータの
出力図
FIG. 4 is an output diagram of pixel block data after interpolation in the sub-scanning Y direction;

【図5】主走査X方向の画素ブロック補間処理図FIG. 5 is a diagram showing a pixel block interpolation process in the main scanning X direction.

【図6】主走査X方向に補間後の画素ブロックデータの
出力図
FIG. 6 is an output diagram of pixel block data after interpolation in the main scanning X direction.

【図7】主走査X方向と副走査Y方向に補間後の画素ブ
ロックデータの出力図
FIG. 7 is an output diagram of pixel block data after interpolation in a main scanning X direction and a sub scanning Y direction.

【図8】右端ブロックの主走査X方向の画素ブロック補
間処理図
FIG. 8 is a diagram showing a pixel block interpolation process in the main scanning X direction of the right end block.

【図9】本発明の実施の形態2における画像フォーマッ
ト変換処理装置の概略図
FIG. 9 is a schematic diagram of an image format conversion processing device according to a second embodiment of the present invention.

【図10】本発明の実施の形態2における画像フォーマ
ット変換処理のフローチャート
FIG. 10 is a flowchart of an image format conversion process according to the second embodiment of the present invention.

【図11】従来の方式1による4倍拡大処理の概略図FIG. 11 is a schematic diagram of a 4 × enlargement process according to the conventional method 1.

【図12】従来の方式2による画像フォーマット変換処
理のフローチャート
FIG. 12 is a flowchart of an image format conversion process according to the conventional method 2;

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

11,15,21,23 8×8画素ブロック 12,16,22,24 16×16画素ブロック 13 補間処理対象画素ブロック 14 13から副走査Y方向に1画素ずらした画素ブロ
ック 15 13と14とで補間処理した画素ブロック 17 1画面のQCIF画像 18 主走査X方向に隣り合う画素ブロック 19 補間処理対象画素ブロック(前画素ブロック) 20 19から主走査X方向に1画素ずらした画素ブロ
ック 21 19と20とで補間処理した画素ブロック 25 補間処理対象画素ブロック 26 25から主走査X方向に1画素ずらした画素ブロ
ック 27 25と26とで補間処理した画素ブロック 28,34 画素ブロック入力部 29,35 画素ブロック処理部 30,36 画素ブロック出力部 31,37 副走査Y方向補間処理部 32,39 主走査X方向補間処理部 33,40 画素ブロック終了判定部 38 画素ブロック位置判定部 41 画素ブロックデータ保管部
11, 15, 21, 23 8 × 8 pixel block 12, 16, 22, 24 16 × 16 pixel block 13 Pixel block for interpolation processing 14 13 Pixel block 15 13 and 14 shifted by one pixel in the sub-scanning Y direction Interpolated pixel block 17 QCIF image of one screen 18 Pixel block adjacent in main scanning X direction 19 Pixel block to be interpolated (previous pixel block) 20 Pixel block 21 19 and 20 shifted by one pixel in main scanning X direction from 19 25, a pixel block shifted by one pixel in the main scanning X direction from pixel 25 27, a pixel block interpolated by 25 and 26, 28, 34 pixel block input unit 29, 35 pixel block Processing unit 30, 36 Pixel block output unit 31, 37 Sub-scan Y-direction interpolation processing unit 32, 39 main scanning X direction interpolation processing unit 33, 40 pixel block end determination unit 38 pixel block position determination unit 41 pixel block data storage unit

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 1画面の画像データを所定の画素ブロッ
クに分割し、隣り合う画素データで線形補間し、かつ前
記画素ブロックの最下段にある画素データをコピーする
ことにより、画素ブロック補間処理を行うことを特徴と
する画像フォーマット変換装置。
1. A pixel block interpolation process is performed by dividing image data of one screen into predetermined pixel blocks, performing linear interpolation with adjacent pixel data, and copying the pixel data at the bottom of the pixel blocks. An image format conversion apparatus characterized by performing the above.
【請求項2】 1画面の画像データを所定の画素ブロッ
クに分割し、前記画素ブロック毎に画像を処理する画素
ブロック処理部の後段にあって、画素ブロック補間処理
と画像フォーマット変換と画素ブロックデータ出力とを
前記画素ブロック毎に行うことを特徴とする画像フォー
マット変換装置。
2. A pixel block interpolating process, an image format conversion, and a pixel block data are provided at a subsequent stage of a pixel block processing unit that divides image data of one screen into predetermined pixel blocks and processes an image for each of the pixel blocks. Outputting the image data for each of the pixel blocks.
JP10190374A 1998-07-06 1998-07-06 Image format converter Pending JP2000020710A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10190374A JP2000020710A (en) 1998-07-06 1998-07-06 Image format converter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10190374A JP2000020710A (en) 1998-07-06 1998-07-06 Image format converter

Publications (1)

Publication Number Publication Date
JP2000020710A true JP2000020710A (en) 2000-01-21

Family

ID=16257124

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10190374A Pending JP2000020710A (en) 1998-07-06 1998-07-06 Image format converter

Country Status (1)

Country Link
JP (1) JP2000020710A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9947075B2 (en) 2016-04-13 2018-04-17 Kyocera Document Solutions, Inc. Image processing apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9947075B2 (en) 2016-04-13 2018-04-17 Kyocera Document Solutions, Inc. Image processing apparatus

Similar Documents

Publication Publication Date Title
US10554882B2 (en) Panoramic camera and photographing method thereof
JP3233895B2 (en) Display device and driving method thereof
US6493036B1 (en) System and method for scaling real time video
KR100910860B1 (en) Transferring a video frame from memory into an on-chip buffer for video processing
EP2063646A2 (en) Method and apparatus for predictive coding
JP4255345B2 (en) Imaging device
KR100873880B1 (en) Image processing apparatus and image processing method
CN102291531A (en) Image processing apparatus, image processing method, and program
JP2007293533A (en) Processor system and data transfer method
WO2012157618A1 (en) Video-signal processing device and display device
JP2000020710A (en) Image format converter
JP5676233B2 (en) Image processing apparatus, image processing method, and imaging apparatus
JP2010161677A (en) Image processing apparatus and image processing method
JP2009268017A (en) Image signal processing device and method for image division, and program therefor
JP2000324337A (en) Image magnification and reducing device
CN109672841B (en) Low-cost de-interlace treatment method
US7787700B2 (en) Signal processing method, signal processing apparatus, computer-readable medium and a data recording medium
JP2015138417A (en) Image processing device and image processing method
JP2004312072A (en) Image processing device, camera, and image processing method
JP2005050341A (en) Image processor and its method
JP4390822B2 (en) Image processing device
JP4352660B2 (en) Image signal processing apparatus and method
US20060256121A1 (en) Method and apparatus for storing image data
KR20040065806A (en) Cubic convolution interpolation apparatus and method
JP2013187630A (en) Picture processing device and method, and imaging device