JPH1063643A - Method for transforming picture - Google Patents

Method for transforming picture

Info

Publication number
JPH1063643A
JPH1063643A JP8217336A JP21733696A JPH1063643A JP H1063643 A JPH1063643 A JP H1063643A JP 8217336 A JP8217336 A JP 8217336A JP 21733696 A JP21733696 A JP 21733696A JP H1063643 A JPH1063643 A JP H1063643A
Authority
JP
Japan
Prior art keywords
image data
pass filter
lines
data
image
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
JP8217336A
Other languages
Japanese (ja)
Inventor
Masashi Hara
昌司 原
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.)
Fujifilm Holdings Corp
Original Assignee
Fuji Photo Film 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 Fuji Photo Film Co Ltd filed Critical Fuji Photo Film Co Ltd
Priority to JP8217336A priority Critical patent/JPH1063643A/en
Publication of JPH1063643A publication Critical patent/JPH1063643A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Complex Calculations (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

PROBLEM TO BE SOLVED: To make it possible to execute wavelet transformation for picture data by using small memory capacity. SOLUTION: Original picture data 1 are stored in a memory in each several lines and filtered in a main scanning direction through a low pass filter 10 and a high pass filter 11 and these filtered results are respectively stored in respective buffer memories 4, 5. The contents of the memories 4, 5 are filtered in a sub-scanning direction, succeeding unprocessed data are stored in the memories 4, 5 instead of the processed data and the memories 4, 5 are circulatively utilized, so that the picture data in each frequency band can be successively generated in each several lines.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、画像変換方法に関
し、特に詳しくは画像データに対してウェーブレット変
換を施す際のフィルタリング処理におけるメモリの使用
方法および変換済データのファイルフォーマットに関す
る。
[0001] 1. Field of the Invention [0002] The present invention relates to an image conversion method, and more particularly to a method of using a memory in a filtering process when performing a wavelet transform on image data and a file format of the converted data.

【0002】[0002]

【従来の技術】ウェーブレット変換は、信号の周波数解
析方法の1つであるが、同じく周波数解析方法として広
く用いられているフーリエ変換に比べ、信号の局所的な
変化情報を検出しやすいという点で優れていることか
ら、近年各種の信号処理の分野で利用されるようになっ
てきている。
2. Description of the Related Art Wavelet transform is one of the frequency analysis methods for signals. However, it is easier to detect local change information of a signal than Fourier transform which is also widely used as a frequency analysis method. Because of their superiority, they have recently been used in various signal processing fields.

【0003】画像処理の分野においては、画像データに
対して各周波数帯域ごとに異なる処理を施すような場合
に、画像データを周波数帯域ごとに分類する手段として
このウェーブレット変換が用いられている。具体的に
は、例えばノイズ除去のための高周波の分離、さらには
ノイズの多い周波数帯域のデータを削減することによる
圧縮処理などが挙げられる。本出願人も、Marc Antonin
iらにより提案された方法(Marc Antonini et al.,Ima
ge Coding Using Wavelet Transform,IEEE TRANSACTIO
NS ON IMAGE PROCESSING ,VOL.1 ,NO.2,p205-220,A
PRIL 1992)を基礎とする数々の画像データ圧縮方法を
提案している(特開平6-350989号、同6-350990号、同7-
23228号、同7-23229号、同7-79350号、特願平8-14510号
など)。
In the field of image processing, when performing different processing on image data for each frequency band, the wavelet transform is used as means for classifying image data for each frequency band. Specifically, for example, high-frequency separation for removing noise, and compression processing by reducing data in a frequency band with a lot of noise may be mentioned. Applicant also has Marc Antonin
(Marc Antonini et al., Ima
ge Coding Using Wavelet Transform, IEEE TRANSACTIO
NS ON IMAGE PROCESSING, VOL.1, NO.2, p205-220, A
Various image data compression methods based on PRIL 1992 have been proposed (JP-A-6-350989, JP-A-6-350990, and JP-A-7-350990).
23228, 7-23229, 7-79350, and Japanese Patent Application No. 8-14510).

【0004】一般に、ウェーブレット変換を用いた画像
処理では、画像の階層的表現が重視されており、変換後
の画像データのフォーマットを階層的にするための方法
として、画像全体の画像データをメモリ上に取り込み、
ウェーブレット変換処理を行って、解像度の低い画像成
分から順次1つのファイルに出力することが行われてい
る。
Generally, in image processing using wavelet transform, a hierarchical expression of an image is emphasized. As a method for hierarchically converting the format of image data, image data of the entire image is stored in a memory. To
Wavelet transform processing is performed to sequentially output image components having lower resolutions into one file.

【0005】[0005]

【発明が解決しようとする課題】上記従来方法は、処理
される画像全体の画像データを格納できる程度に十分な
メモリを必要とする。しかしながら、一般にこのような
画像処理を行う画像処理装置では使用できるメモリ資源
は限られており、したがって、できる限り少ないメモリ
を使用して処理を実現できることが望ましい。
The above conventional method requires a sufficient memory to store image data of the entire image to be processed. However, an image processing apparatus that performs such image processing generally has limited memory resources that can be used. Therefore, it is desirable that the processing can be realized using as little memory as possible.

【0006】本発明は、上記課題に鑑みて、少ないメモ
リでウェーブレット変換を逐次的に行う方法を提供する
ことを目的とするものである。
SUMMARY OF THE INVENTION In view of the above problems, an object of the present invention is to provide a method for sequentially performing wavelet transform with a small memory.

【0007】[0007]

【課題を解決するための手段】本発明の画像変換方法
は、画像を表す画像データに対し、該画像の縦方向およ
び横方向にそれぞれフィルタリング処理を施して前記画
像データのウェーブレット変換を行う画像変換方法にお
いて、前記画像データに対し、該画像データの所定のラ
イン数分の部分画像データごとに、ローパスフィルタに
より前記ラインの方向にフィルタリング処理を施して該
部分画像データの低周波成分を表す低周波成分画像デー
タを得て所定のライン数を有する第1のバッファメモリ
に格納するとともに、ハイパスフィルタにより前記ライ
ンの方向にフィルタリング処理を施して該部分画像デー
タの高周波成分を表す高周波成分画像データを所定のラ
イン数を有する第2のバッファメモリに格納し、前記第
1のバッファメモリに格納された画像データに対し、該
バッファメモリのライン数以下のフィルタサイズを有す
るローパスフィルタおよびハイパスフィルタにより、そ
れぞれ該バッファメモリのラインと垂直な方向にフィル
タリング処理を施すとともに、前記第2のバッファメモ
リに格納された画像データに対し、該バッファメモリの
ライン数以下のフィルタサイズを有するローパスフィル
タおよびハイパスフィルタにより、それぞれ該バッファ
メモリのラインと垂直な方向にフィルタリング処理を施
してウェーブレット変換を行うことを特徴とするもので
ある。
According to an image conversion method of the present invention, image data representing an image is subjected to a filtering process in a vertical direction and a horizontal direction of the image to perform a wavelet transform of the image data. In the method, the image data is subjected to a filtering process in the direction of the line by a low-pass filter for each of a predetermined number of partial image data of the image data, and a low-frequency component representing a low-frequency component of the partial image data is obtained. The component image data is obtained and stored in a first buffer memory having a predetermined number of lines, and high-frequency component image data representing a high-frequency component of the partial image data is subjected to a filtering process in the direction of the line by a high-pass filter. Stored in a second buffer memory having the number of lines of The stored image data is filtered by a low-pass filter and a high-pass filter having a filter size equal to or less than the number of lines of the buffer memory in a direction perpendicular to the lines of the buffer memory, respectively. Performing a wavelet transform by applying a filtering process to image data stored in the buffer memory in a direction perpendicular to the line of the buffer memory by a low-pass filter and a high-pass filter having a filter size equal to or less than the number of lines of the buffer memory. It is a feature.

【0008】この際、前記ウェーブレット変換により得
られる変換済データは、1つのファイルに順次出力して
もよいし、周波数帯域ごとに異なるファイルに分類して
出力してもよい。
At this time, the converted data obtained by the wavelet transform may be sequentially output to one file, or may be output after being classified into different files for each frequency band.

【0009】ここで、画像データの1ラインとは、例え
ば画像が1024×1024の画素からなるとすれば、1列に並
ぶ1024個の画素に対応するデータの集合を意味するもの
とする。前記部分画像データはこのデータの集合が所定
のライン数分集まったものであるが、この所定のライン
数とは、具体的には例えば2ライン、4ラインといった
偶数のライン数であることが望ましい。但しこれは、必
ずしも偶数に限定するということではなく、部分画像デ
ータがフィルタリング処理によって1/2に縮小される
ことから、ライン数を偶数とするとライン数の整数倍の
データが得られ、処理上都合がよいためである。またバ
ッファメモリについても、上記画像データの1ラインに
対応する容量を1ラインということにする。
Here, one line of image data means a set of data corresponding to 1024 pixels arranged in one line, for example, when an image is composed of 1024 × 1024 pixels. The partial image data is obtained by gathering a set of this data for a predetermined number of lines. Specifically, the predetermined number of lines is desirably an even number of lines, for example, two lines or four lines. . However, this is not necessarily limited to an even number. Since the partial image data is reduced to に よ っ て by the filtering process, if the number of lines is set to an even number, data of an integral multiple of the number of lines is obtained. This is because it is convenient. Regarding the buffer memory, the capacity corresponding to one line of the image data is referred to as one line.

【0010】ローパスフィルタ、ハイパスフィルタは1
次元フィルタであることが望ましいが、特に限定はしな
い。これらのフィルタが1次元フィルタである場合、前
記フィルタサイズは具体的にはフィルタ長であり、バッ
ファメモリの「所定のライン数」は、前記画像データ全
体を格納できるライン数よりも少なく、また、バッファ
メモリのラインと垂直な方向に施すフィルタリング処理
に用いられる1次元フィルタのフィルタ長より多いか、
または同じライン数とする。ここでフィルタ長がnであ
るとは、そのフィルタがn個の画素を処理するようなフ
ィルタであることを意味し、したがってフィルタ長より
多いか、または同じライン数であるとは、フィルタがn
画素を処理するようなフィルタである場合にライン数が
nライン以上であるということである。
The low-pass filter and the high-pass filter are 1
Although a dimensional filter is desirable, there is no particular limitation. When these filters are one-dimensional filters, the filter size is specifically the filter length, the “predetermined number of lines” in the buffer memory is smaller than the number of lines that can store the entire image data, and Is greater than the filter length of the one-dimensional filter used in the filtering process performed in the direction perpendicular to the line of the buffer memory,
Alternatively, the number of lines is the same. Here, a filter length of n means that the filter is a filter that processes n pixels, and thus, if the filter is longer than the filter length or has the same number of lines, the filter is n
In the case of a filter that processes pixels, the number of lines is equal to or more than n lines.

【0011】また、ウェーブレット変換処理では、上記
のようにして得られた変換済データに対してさらに上記
処理を繰り返し施して、何段階ものウェーブレット変換
を行う場合があるが、本発明はそのような段階の数に拘
わらず適用できるものである。
In the wavelet transform process, the above-described process is repeatedly performed on the converted data obtained as described above, and a wavelet transform may be performed in several stages. It is applicable regardless of the number of steps.

【0012】なお、ウェーブレット変換の理論、ウェー
ブレット関数に基づくフィルタの設計方法、およびそれ
らのフィルタによるフィルタリング処理については、上
記数々の引用例に詳細に記載されているため、本明細書
では説明を省略する。
The theory of the wavelet transform, the design method of the filter based on the wavelet function, and the filtering process by those filters are described in detail in the above cited examples, and therefore, the description is omitted in this specification. I do.

【0013】[0013]

【発明の効果】本発明によれば、画像データに対しフィ
ルタリング処理を施してウェーブレット変換を行う際
に、その画像データを、フィルタリング処理の対象とす
ることができる程度の大きさの断片に分割して逐次処理
するため、処理途中のデータを格納するメモリは、必要
最小限のメモリを循環的に使用すればよく、これにより
少ないメモリでウェーブレット変換を行うことができ
る。
According to the present invention, when performing a filtering process on image data and performing a wavelet transform, the image data is divided into fragments large enough to be subjected to the filtering process. In order to perform the sequential processing, the memory for storing the data in the middle of the processing may use a minimum necessary memory cyclically, and the wavelet transform can be performed with a small memory.

【0014】また、上記方法では各周波数帯域の変換済
データが交互に出力されることになるが、これはこのま
ま1つのファイルに順次格納してもよいし、また、周波
数帯域ごとに異なるファイルに分類して格納すれば、デ
ータの階層表現が可能となり、従来方法と同様に、周波
数帯域ごとにそのデータを利用することができる。
In the above method, the converted data of each frequency band is output alternately. The converted data may be sequentially stored in one file as it is, or may be stored in a different file for each frequency band. If the data is classified and stored, a hierarchical expression of the data becomes possible, and the data can be used for each frequency band as in the conventional method.

【0015】[0015]

【発明の実施の形態】以下、本発明の画像変換方法につ
いて、図面を参照して詳細に説明する。以下に示す実施
の形態は、本出願人が例えば上記特開昭55-12492号など
において提案している放射線画像記録再生システムに適
用されている方法である。このシステムは、蓄積性蛍光
体シートに記録された人体の放射線画像をレーザビーム
走査によりデジタル画像データとして読み取り、その画
像を記録再生あるいは保管管理するために、種々の画像
処理を行うものであり、そのような画像処理の1つとし
て、上記特開平6-350989号などの引用例に示されるよう
な、ウェーブレット変換を利用した画像データの圧縮処
理を行っている。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, an image conversion method according to the present invention will be described in detail with reference to the drawings. The embodiment described below is a method applied to a radiation image recording / reproducing system proposed by the present applicant in, for example, the above-mentioned Japanese Patent Application Laid-Open No. 55-12492. This system reads a radiation image of a human body recorded on a stimulable phosphor sheet as digital image data by laser beam scanning, and performs various image processing in order to record and reproduce or store and manage the image. As one of such image processing, image data compression processing using wavelet transform is performed as shown in the cited example of the above-mentioned Japanese Patent Application Laid-Open No. 6-350989.

【0016】はじめに、ウェーブレット変換処理の概要
と、従来方法の問題点について、図1を参照して説明す
る。図1に示されるように、一般にウェーブレット変換
は、原画像データに対し、その原画像データの読取時に
おける主走査の方向(以下、単に主走査方向という)、
および読取時における副走査の方向(以下、単に副走査
方向という)の2方向に対して、それぞれ1画素おきに
フィルタリング処理を施すことによって行われる。この
際、このフィルタとして、基本ウェーブレット関数に基
づいて設計されたものを使用し、ウェーブレット変換の
理論に基づいて複数のフィルタにより段階的にフィルタ
リング処理を施す。(ウェーブレット変換の理論および
適切なフィルタの設計方法については、上記引用例を参
照。)図1に示されるように、原画像データ2はまず、
ローパスフィルタ10およびハイパスフィルタ11により、
それぞれ、主走査方向に1画素おきに処理される。この
結果、各フィルタにより処理された後の原画像データ
は、主走査方向に1/2に縮小されたものとなる。
First, an outline of the wavelet transform processing and problems of the conventional method will be described with reference to FIG. As shown in FIG. 1, generally, the wavelet transform is performed on the original image data in a main scanning direction (hereinafter simply referred to as a main scanning direction) when the original image data is read.
In addition, in the two directions of the sub-scanning direction during reading (hereinafter, simply referred to as the sub-scanning direction), the filtering process is performed for every other pixel. At this time, a filter designed based on the basic wavelet function is used as the filter, and a filtering process is performed stepwise by a plurality of filters based on the theory of the wavelet transform. (For the theory of the wavelet transform and the design method of an appropriate filter, see the above cited example.) As shown in FIG.
By the low-pass filter 10 and the high-pass filter 11,
Each is processed every other pixel in the main scanning direction. As a result, the original image data processed by each filter is reduced to half in the main scanning direction.

【0017】さらにローパスフィルタ10により処理され
た後の画像データは、ローパスフィルタ12とハイパスフ
ィルタ13により、それぞれ、副走査方向に1画素おきに
処理される。この結果、主走査方向、副走査方向それぞ
れが1/2に縮小された、すなわち、もとの画像の1/
4の大きさのLL画像データ16およびLH画像データ17が得
られる。なお、ここでLはローパスフィルタのL、Hは
ハイパスフィルタのHを意味し、主走査方向、副走査方
向ともにローパスフィルタで処理された結果をLL、主走
査方向はローパスフィルタ、副走査方向はハイパスフィ
ルタで処理された結果をLHのように表現するものとす
る。
Further, the image data processed by the low-pass filter 10 is processed by the low-pass filter 12 and the high-pass filter 13 every other pixel in the sub-scanning direction. As a result, each of the main scanning direction and the sub-scanning direction is reduced to half, that is, 1 /
LL image data 16 and LH image data 17 having a size of 4 are obtained. Here, L means L of the low-pass filter, H means H of the high-pass filter, and LL indicates the result processed by the low-pass filter in both the main scanning direction and the sub-scanning direction. The result processed by the high-pass filter is represented as LH.

【0018】同様に、ハイパスフィルタ11により処理さ
れた後の画像データはローパスフィルタ14と、ハイパス
フィルタ15により、それぞれ、副走査方向に1画素おき
に処理され、HL画像データ18およびHH画像データ19が得
られる。なお、本実施の形態においては、ローパスフィ
ルタ10、12、14は同じフィルタであり、ハイパスフィル
タ11、13、15は同じフィルタであるが、これらのフィル
タはそれぞれ異なるものであってもよい。
Similarly, the image data processed by the high-pass filter 11 is processed every other pixel in the sub-scanning direction by the low-pass filter 14 and the high-pass filter 15, respectively, and the HL image data 18 and the HH image data 19 Is obtained. In the present embodiment, the low-pass filters 10, 12, and 14 are the same filters, and the high-pass filters 11, 13, and 15 are the same filters, but these filters may be different.

【0019】なお、このようにして得られたウェーブレ
ット変換像2のうち、主走査方向、副走査方向ともにロ
ーパスフィルタによるフィルタリング処理を施して得ら
れたLL画像は、原画像1の縮小画像となることが知ら
れている。
The LL image obtained by performing a filtering process using a low-pass filter in both the main scanning direction and the sub-scanning direction of the wavelet transform image 2 thus obtained is a reduced image of the original image 1. It is known.

【0020】以上説明したような方法で変換を行うため
には、処理対象となる原画像の一面分のデータを格納で
きるバッファメモリが必要となる。しかしながら、一般
に画像処理装置のメモリ資源は限られており、またその
全てを上記変換処理のためだけに使用できるわけではな
いため、変換方法としては、使用するメモリは少なけれ
ば少ないほど望ましい。そこで、本発明の画像変換方法
では、画像データを分割して逐次的に処理することによ
り、少量のメモリを有効活用している。
In order to perform conversion by the method described above, a buffer memory capable of storing data of one surface of an original image to be processed is required. However, in general, the memory resources of an image processing apparatus are limited, and not all of them can be used only for the above-described conversion processing. Therefore, as a conversion method, the smaller the memory used, the better. Therefore, in the image conversion method of the present invention, a small amount of memory is effectively used by dividing the image data and sequentially processing the image data.

【0021】図2は、本発明の変換方法の一実施の形態
を示す図である。本実施の形態では、原画像データ1の
2ライン分のデータをメモリ上に読み込んで処理し、そ
の2ライン分のデータに対する処理が終わったら次の2
ライン分を読み込むというようにして、順次処理を行
う。図2では、この2ラインを薄い太枠によって表して
いる。なお、本実施の形態において使用されるローパス
フィルタおよびハイパスフィルタは全て1次元フィルタ
である。
FIG. 2 is a diagram showing one embodiment of the conversion method of the present invention. In this embodiment, two lines of data of the original image data 1 are read into the memory and processed, and when the processing for the two lines of data is completed, the next 2 lines are processed.
The processing is sequentially performed by reading the lines. In FIG. 2, these two lines are represented by thin thick frames. Note that the low-pass filter and the high-pass filter used in the present embodiment are all one-dimensional filters.

【0022】メモリ上に読み込まれた2ライン分のデー
タ3(以下、部分画像データ3という)に対しては、ま
ず、フィルタ6として図示されているような主走査方向
のフィルタリング処理を施すが、これはローパスフィル
タ10およびハイパスフィルタ11によりそれぞれ行うフィ
ルタリング処理を示している。上述のように、このフィ
ルタリング処理は部分画像データ3に対して1画素おき
に施すものであるため、2ライン分のデータに、このよ
うなフィルタリング処理を施した結果得られるデータは
1ライン分のデータとなる。そこで、ローパスフィルタ
10により得られた1ライン分のデータはバッファメモリ
4に、また、ハイパスフィルタ11により得られた1ライ
ン分のデータはバッファメモリ5にそれぞれ格納するも
のとする(薄い太枠によって示されている)。
First, a filtering process in the main scanning direction as shown in the figure as a filter 6 is performed on two lines of data 3 (hereinafter referred to as partial image data 3) read into the memory. This shows a filtering process performed by the low-pass filter 10 and the high-pass filter 11, respectively. As described above, since this filtering process is performed on the partial image data 3 every other pixel, the data obtained as a result of performing such a filtering process on the data of two lines is one line worth of data. Data. Therefore, a low-pass filter
The data for one line obtained by 10 is stored in the buffer memory 4 and the data for one line obtained by the high-pass filter 11 is stored in the buffer memory 5 (shown by a thin bold frame). ).

【0023】バッファメモリ4は、ローパスフィルタ12
およびハイパスフィルタ13のフィルタのうち、長い方の
フィルタの長さよりも多いライン数を有するものとす
る。例えば、ローパスフィルタ12のフィルタ長が7であ
り、ハイパスフィルタ13のフィルタ長が5である場合に
は、バッファメモリ4のライン数は7ライン以上でなけ
ればならない。同様にバッファメモリ5もまた、ローパ
スフィルタ14およびハイパスフィルタ15のフィルタのう
ち、長い方のフィルタの長さよりも多いライン数を有す
るものとする。
The buffer memory 4 includes a low-pass filter 12
And the number of lines of the high-pass filter 13 is larger than the length of the longer filter. For example, when the filter length of the low-pass filter 12 is 7 and the filter length of the high-pass filter 13 is 5, the number of lines in the buffer memory 4 must be 7 or more. Similarly, it is assumed that the buffer memory 5 also has a larger number of lines than the length of the longer one of the low-pass filter 14 and the high-pass filter 15.

【0024】部分画像データ3のメモリ上への読み込
み、および部分画像データ3に対するローパスフィルタ
10を用いたフィルタリング処理を、バッファメモリ4に
所定量のデータが蓄積されるまで繰り返した後、次にフ
ィルタ7として図示されているような副走査方向のフィ
ルタリング処理を施す。これは、ローパスフィルタ12と
ハイパスフィルタ13によりそれぞれ行うフィルタリング
処理を示している。
Reading of the partial image data 3 into the memory, and a low-pass filter for the partial image data 3
After the filtering process using 10 is repeated until a predetermined amount of data is accumulated in the buffer memory 4, a filtering process in the sub-scanning direction as shown in the drawing as the filter 7 is performed. This indicates a filtering process performed by the low-pass filter 12 and the high-pass filter 13, respectively.

【0025】副走査方向のフィルタリング処理を行う場
合、従来方法では、副走査方向に縦一列分フィルタリン
グ処理を施した後に、次の縦一列を処理するが、本実施
の形態では、縦の各列を並列に処理する。すなわち、フ
ィルタ7として図示されるローパスフィルタ17あるいは
ハイパスフィルタ13を主走査方向に移動し、順次データ
をファイルに出力していく。主走査方向に一巡すること
によりバッファメモリ4の1ライン分のデータは全て処
理済みとなるため、このデータを捨てて新しいデータを
格納することができ、したがって限られた容量のバッフ
ァメモリ4を循環的に使用することができる。
In the case of performing the filtering process in the sub-scanning direction, in the conventional method, the filtering process is performed for one vertical column in the sub-scanning direction, and then the next vertical column is processed. In this embodiment, each vertical column is processed. Are processed in parallel. That is, the low-pass filter 17 or the high-pass filter 13 shown as the filter 7 is moved in the main scanning direction, and data is sequentially output to a file. By making a round in the main scanning direction, all data for one line in the buffer memory 4 has been processed, so that this data can be discarded and new data can be stored, and therefore, the buffer memory 4 having a limited capacity is circulated. Can be used

【0026】なお、メモリを循環的に使用するとは、1
ライン分の処理が終わる度にデータを1ライン分繰り上
げてバッファメモリ4の最後部に新しいデータを追加す
る方法や、不要になった1ラインが格納されている領域
に新しい1ラインを上書きする方法を意味するものであ
る。上書きする場合にはラインの順番に沿うようにフィ
ルタを変更しなければならないが、これについては当業
者には明らかであるため、その詳細は省略する。
It is to be noted that the cyclic use of the memory means 1
Each time the processing for a line is completed, the data is moved up by one line to add new data to the last part of the buffer memory 4, or a method of overwriting a new line in an area where an unnecessary line is stored. Is meant. In the case of overwriting, it is necessary to change the filter so as to follow the order of the lines, but since this is apparent to those skilled in the art, the details are omitted.

【0027】以上、バッファメモリ4に格納されるデー
タに対する処理について説明したが、バッファメモリ5
に格納されるデータに対する処理も、これと同様であ
り、上記説明におけるローパスフィルタ12がローパスフ
ィルタ14に、ハイパスフィルタ13がハイパスフィルタ15
にそれぞれ対応する。
The processing for the data stored in the buffer memory 4 has been described above.
The same applies to the processing for the data stored in the low pass filter 12 and the high pass filter 13 in the above description.
Respectively.

【0028】上記のような逐次処理では、バッファメモ
リのデータが入れ替わる度に、LL画像データ、LH画
像データ、HL画像データ、HH画像データがそれぞれ
1ライン分生成される。したがって、逐次処理されたデ
ータを順次ファイルに出力すれば、そのファイルフォー
マットは、図3に示されるようなものとなる。このファ
イルフォーマットは、各周波数帯域ごとの画像データと
してはまとまりのないものであるが、例えば伝送あるい
は圧縮のために符号化し、後に逆ウェーブレット変換を
施して元の画像を得るような処理であれば特に不都合は
なく、処理に必要なメモリを節約できる分、従来方法よ
り優れているということができる。
In the above sequential processing, LL image data, LH image data, HL image data, and HH image data are generated for one line each time the data in the buffer memory is replaced. Therefore, if the sequentially processed data is sequentially output to a file, the file format is as shown in FIG. This file format is disjointed as image data for each frequency band, but for example, if it is a process that encodes for transmission or compression and then performs inverse wavelet transform to obtain the original image There is no particular inconvenience, and it can be said that it is superior to the conventional method because the memory required for processing can be saved.

【0029】また、符号化の方法によっては、図3のよ
うな1ラインずつのファイルフォーマットでは不都合な
ことがある。このような場合には、例えば、部分画像デ
ータを8ライン分のデータとすることにより、図4のよ
うに各周波数帯域について4ラインごとにデータを出力
することが可能となり、これによりブロック符号化を行
うことも可能となる。すなわち、必要に応じて部分画像
データのライン数を変更すれば、ある程度まとまった単
位で各周波数帯域の画像データを出力することができ
る。
Also, depending on the encoding method, the file format for each line as shown in FIG. 3 may be inconvenient. In such a case, for example, by making the partial image data data for 8 lines, it becomes possible to output data every 4 lines for each frequency band as shown in FIG. Can also be performed. That is, if the number of lines of the partial image data is changed as needed, it is possible to output image data of each frequency band in a certain unit.

【0030】さらに、ファイル出力の際に、図5に示す
ように複数のファイルに分類して出力するようにすれ
ば、従来方法と同様に、画像データの階層表現が可能と
なる。例えば周波数帯域ごとに圧縮の度合いを変えて圧
縮処理を行う場合などには、このように異なるファイル
に分類されている方が処理を施しやすい。また、例えば
LL画像データを縮小画像として利用する場合のよう
に、ある周波数帯域の画像データのみ特に区別するよう
な場合には、図6のように、その周波数帯域の画像デー
タとその他の周波数帯域の画像データを2つのファイル
に分類して出力することも考えられる。
Further, at the time of file output, if the data is classified into a plurality of files and output as shown in FIG. 5, the hierarchical representation of the image data becomes possible as in the conventional method. For example, when performing compression processing by changing the degree of compression for each frequency band, it is easier to perform processing if the files are classified into different files. In the case where only image data of a certain frequency band is particularly distinguished, for example, when LL image data is used as a reduced image, as shown in FIG. May be classified into two files and output.

【0031】また、上記変換方法は、ウェーブレット変
換を2段階以上にわたって行う場合にも適用することが
できる。すなわち、上記処理により得られたLL画像デ
ータに対して、さらに同様の逐次処理を施すことがで
き、例えば、原画像の4ライン分のデータを部分画像デ
ータとして上記処理を施し、これにより得られる2ライ
ン分のLL画像データに対して同様の処理を施せば、図
7のような出力を得ることができる。従来方法により多
段階にウェーブレット変換を施す場合には、その各段階
において処理対象となるデータ全体を格納するのに十分
なメモリ容量が必要であったが、本発明の変換方法で
は、段階が増えても必要となるメモリはそれほど多くは
ならない。
The above conversion method can also be applied to a case where the wavelet conversion is performed in two or more stages. That is, the same sequential processing can be further performed on the LL image data obtained by the above processing. For example, the above processing is performed as data of four lines of the original image as partial image data, and thus obtained. By performing the same processing on the LL image data for two lines, an output as shown in FIG. 7 can be obtained. In the case where the wavelet transform is performed in multiple stages by the conventional method, a sufficient memory capacity is required to store the entire data to be processed in each stage. However, in the transform method of the present invention, the number of stages is increased. But that doesn't require much memory.

【0032】このように、本発明の画像変換方法は、少
ないメモリを用いた逐次処理によりウェーブレット変換
を行うことができ、実用上の効果は極めて大きい。
As described above, according to the image conversion method of the present invention, the wavelet transform can be performed by the sequential processing using a small amount of memory, and the practical effect is extremely large.

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

【図1】ウェーブレット変換処理の概要を示す図FIG. 1 is a diagram showing an outline of a wavelet transform process;

【図2】本発明の変換方法の一実施の形態を示す図FIG. 2 is a diagram showing an embodiment of the conversion method of the present invention.

【図3】本発明の変換方法により得られる変換データ
を、1つのファイルに格納する際のファイルフォーマッ
トの一例を示す図
FIG. 3 is a diagram showing an example of a file format when storing conversion data obtained by the conversion method of the present invention in one file.

【図4】本発明の変換方法により得られる変換データ
を、1つのファイルに格納する際のファイルフォーマッ
トの他の例を示す図
FIG. 4 is a diagram showing another example of a file format when storing conversion data obtained by the conversion method of the present invention in one file.

【図5】本発明の変換方法により得られる変換データ
を、複数のファイルに格納する際のファイルフォーマッ
トの一例を示す図
FIG. 5 is a diagram showing an example of a file format when storing conversion data obtained by the conversion method of the present invention in a plurality of files.

【図6】本発明の変換方法により得られる変換データ
を、複数のファイルに格納する際のファイルフォーマッ
トの他の例を示す図
FIG. 6 is a diagram showing another example of a file format when storing conversion data obtained by the conversion method of the present invention in a plurality of files.

【図7】本発明の変換方法を用いた多段階のウェーブレ
ット変換の一実施の形態を示す図
FIG. 7 is a diagram showing an embodiment of a multi-stage wavelet transform using the transform method of the present invention.

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

1 原画像 2 ウェーブレット変換像 3 メモリに読み込まれた部分画像データ 4 バッファメモリ 5 バッファメモリ 6 フィルタ(主走査方向) 7 フィルタ(副走査方向) 10 主走査方向に1画素おきにフィルタリングするため
のローパスフィルタ 11 主走査方向に1画素おきにフィルタリングするため
のハイパスフィルタ 12 主走査方向にローパスフィルタによりフィルタリン
グされた画像データを副走査方向に1画素おきにフィル
タリングするためのローパスフィルタ 13 主走査方向にローパスフィルタによりフィルタリン
グされた画像データを副走査方向に1画素おきにフィル
タリングするためのローパスフィルタ 14 主走査方向にハイフィルタによりフィルタリングさ
れた画像データを副走査方向に1画素おきにフィルタリ
ングするためのローパスフィルタ 15 主走査方向にハイフィルタによりフィルタリングさ
れた画像データを副走査方向に1画素おきにフィルタリ
ングするためのローパスフィルタ 16 LL画像 17 LH画像 18 HL画像 19 HH画像
Reference Signs List 1 original image 2 wavelet transform image 3 partial image data read into memory 4 buffer memory 5 buffer memory 6 filter (main scanning direction) 7 filter (sub scanning direction) 10 low-pass for filtering every other pixel in main scanning direction Filter 11 High-pass filter for filtering every other pixel in the main scanning direction 12 Low-pass filter for filtering image data filtered by the low-pass filter in the main scanning direction every other pixel 13 Low-pass in the main scanning direction A low-pass filter 14 for filtering the image data filtered by the filter every other pixel in the sub-scanning direction 14 For filtering the image data filtered by the high filter in the main scanning direction every other pixel in the sub-scanning direction Low-pass filter 16 LL image 17 LH image 18 HL image 19 HH image for filtering every other pixel of the image data which has been filtered by-pass filter 15 main scan direction at a high filter in the sub-scanning direction

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 画像を表す画像データに対し、該画像の
縦方向および横方向にそれぞれフィルタリング処理を施
して前記画像データのウェーブレット変換を行う画像変
換方法において、 前記画像データに対し、該画像データの所定のライン数
分の部分画像データごとに、ローパスフィルタにより前
記ラインの方向にフィルタリング処理を施して該部分画
像データの低周波成分を表す低周波成分画像データを得
て所定のライン数を有する第1のバッファメモリに格納
するとともに、ハイパスフィルタにより前記ラインの方
向にフィルタリング処理を施して該部分画像データの高
周波成分を表す高周波成分画像データを所定のライン数
を有する第2のバッファメモリに格納し、 前記第1のバッファメモリに格納された画像データに対
し、該バッファメモリのライン数以下のフィルタサイズ
を有するローパスフィルタおよびハイパスフィルタによ
り、それぞれ該バッファメモリのラインと垂直な方向に
フィルタリング処理を施すとともに、前記第2のバッフ
ァメモリに格納された画像データに対し、該バッファメ
モリのライン数以下のフィルタサイズを有するローパス
フィルタおよびハイパスフィルタにより、それぞれ該バ
ッファメモリのラインと垂直な方向にフィルタリング処
理を施してウェーブレット変換を行うことを特徴とする
画像変換方法。
1. An image conversion method for performing a wavelet transform of image data by performing filtering processing on image data representing an image in a vertical direction and a horizontal direction of the image, respectively, wherein: For each of the predetermined number of lines of partial image data, a low-pass filter is applied in the direction of the line to obtain low-frequency component image data representing a low-frequency component of the partial image data, and a predetermined number of lines are obtained. The high-frequency component image data representing the high-frequency component of the partial image data is stored in a second buffer memory having a predetermined number of lines while storing the high-frequency component image data in the direction of the line by a high-pass filter while storing the high-frequency component image data in the first buffer memory. The image data stored in the first buffer memory is A low-pass filter and a high-pass filter each having a filter size equal to or less than the number of lines of the memory perform a filtering process in a direction perpendicular to the lines of the buffer memory, respectively, and apply a filtering process to the image data stored in the second buffer memory. An image conversion method, wherein a low-pass filter and a high-pass filter having a filter size equal to or less than the number of lines of a buffer memory perform a filtering process in a direction perpendicular to the lines of the buffer memory to perform a wavelet transform.
【請求項2】 前記ウェーブレット変換により得られる
変換済データを、周波数帯域ごとに異なるファイルに分
類して出力することを特徴とする請求項1記載の画像変
換方法。
2. The image conversion method according to claim 1, wherein the converted data obtained by the wavelet transform is classified into different files for each frequency band and output.
【請求項3】 前記ウェーブレット変換により得られる
変換済データを、1つのファイルに順次出力することを
特徴とする請求項1記載の画像変換方法。
3. The image conversion method according to claim 1, wherein the converted data obtained by the wavelet conversion is sequentially output to one file.
JP8217336A 1996-08-19 1996-08-19 Method for transforming picture Withdrawn JPH1063643A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8217336A JPH1063643A (en) 1996-08-19 1996-08-19 Method for transforming picture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8217336A JPH1063643A (en) 1996-08-19 1996-08-19 Method for transforming picture

Publications (1)

Publication Number Publication Date
JPH1063643A true JPH1063643A (en) 1998-03-06

Family

ID=16702588

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8217336A Withdrawn JPH1063643A (en) 1996-08-19 1996-08-19 Method for transforming picture

Country Status (1)

Country Link
JP (1) JPH1063643A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006295954A (en) * 2006-05-15 2006-10-26 Sony Corp Device and method for encoding image, and device and method for decoding image
JP2008288883A (en) * 2007-05-17 2008-11-27 Sony Corp Information processing device and method
US8189932B2 (en) 2006-05-16 2012-05-29 Sony Corporation Image processing apparatus and image processing method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006295954A (en) * 2006-05-15 2006-10-26 Sony Corp Device and method for encoding image, and device and method for decoding image
JP4544199B2 (en) * 2006-05-15 2010-09-15 ソニー株式会社 Image encoding apparatus and method, and image decoding apparatus and method
US8189932B2 (en) 2006-05-16 2012-05-29 Sony Corporation Image processing apparatus and image processing method
JP2008288883A (en) * 2007-05-17 2008-11-27 Sony Corp Information processing device and method

Similar Documents

Publication Publication Date Title
KR100308703B1 (en) Encoding method, encoding device, wavelet transform device and wavelet inverse transform device
JP3984886B2 (en) Data conversion apparatus, data conversion method, computer program, and storage medium
JPH11510339A (en) JPEG compression circuit with filtering
JP2000341693A (en) Method and device for converting digital signal
JPH02273875A (en) Image data compressing method
JPH1031737A (en) Image processing method
JP4245123B2 (en) Wavelet processing apparatus and wavelet processing method
JP4097108B2 (en) Wavelet transform device and encoding / decoding device
JPH1063643A (en) Method for transforming picture
JPH09139944A (en) Coding method, coder, wavelet converter and wavelet inverse converter
US6381370B1 (en) Method and apparatus for image encoding
JP2001285643A (en) Image converting apparatus and method
JP2003283839A (en) Image transforming method and apparatus
JPH09214967A (en) Image data compression processing method
JPH09307897A (en) Image data compression processing method
US7388917B2 (en) Image-processing method and image processor
JPH0779350A (en) Picture data compression processing method and picture data re-configuration method
KR102688328B1 (en) Image processing apparatus and image processing method of the same
CN100409657C (en) Image processing method and device
JP3719699B2 (en) Encoding device and decoding device
JP4444480B2 (en) Filter processing device
JPH0993134A (en) Wavelet conversion method
JPH08205157A (en) Method and device for decoding image signal
JPH0541800A (en) Picture decoding processor and decoding method
JPH0563997A (en) Image signal 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: 20031104