JP2001036731A - Method and device for processing digital image and recording medium - Google Patents

Method and device for processing digital image and recording medium

Info

Publication number
JP2001036731A
JP2001036731A JP11235892A JP23589299A JP2001036731A JP 2001036731 A JP2001036731 A JP 2001036731A JP 11235892 A JP11235892 A JP 11235892A JP 23589299 A JP23589299 A JP 23589299A JP 2001036731 A JP2001036731 A JP 2001036731A
Authority
JP
Japan
Prior art keywords
image
fourier transform
divided
dimensional
window function
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.)
Granted
Application number
JP11235892A
Other languages
Japanese (ja)
Other versions
JP3387857B2 (en
Inventor
Takashi Ide
隆 井手
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP23589299A priority Critical patent/JP3387857B2/en
Publication of JP2001036731A publication Critical patent/JP2001036731A/en
Application granted granted Critical
Publication of JP3387857B2 publication Critical patent/JP3387857B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To obtain a digital image processor capable of strictly and continuously connecting respective small areas obtained by dividing an original image. SOLUTION: The digital image processor has an image division part 21 for dividing an original image into plural areas having the same size and allowed to be mutually overlapped between adjacent areas, a window function multiplication part 22 for multiplying each divided area by a window function, a two-dimensional(2D) Fourier transformation part 23 for applying 2D digital Fourier transformation to each divided area multiplied by the window function, a filter processing part 24 for applying required filtering processing to each divided area processed by the Fourier transformation, an inverse Fourier transformation part 25 for applying the inverse Fourier transformation to each filtered divided area, and an image composition part 26 for mutually adding respective divided areas processed by the inverse Fourier transformation. A function controlled so as to reproduce the original image in the overlapped areas at the time of adding the inverse Fourier transformation results is used as the window function.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、デジタル画像処理
を行う方法および装置に関し、特に原画像を分割して2
次元フーリエ変換処理を行う方法および装置に関する。
さらには、そのような処理を実行するためのプログラム
を記録した媒体に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method and an apparatus for performing digital image processing, and more particularly to a method for dividing an original image into two.
The present invention relates to a method and an apparatus for performing a dimensional Fourier transform process.
Further, the present invention relates to a medium recording a program for executing such processing.

【0002】[0002]

【従来の技術】画像の鮮鋭化、平滑化などの処理を行う
ために2次元フーリエ変換を用いることが知られてい
る。このような2次元フーリエ変換を用いる処理では、
原画像の画素数が大きな場合、メモリなどのハードウェ
アの制約上から、画像全体を一度にフーリエ変換するこ
とができないため、通常は原画像を適当なサイズの小領
域に分割し、各小領域毎にフーリエ変換を行うといった
手法が用いられている。
2. Description of the Related Art It is known to use a two-dimensional Fourier transform to perform processes such as image sharpening and smoothing. In the processing using such a two-dimensional Fourier transform,
When the number of pixels in the original image is large, the entire image cannot be Fourier-transformed at once due to hardware and other hardware constraints. A technique of performing a Fourier transform every time is used.

【0003】原画像を適当なサイズの小領域に分割して
2次元フーリエ変換を行う方法の一例として、特開平4
−42376号公報には、原画像を小領域に分割する
際、隣接する小領域の一部をオーバーラツプさせて分割
するとともに、原画像の周囲に付加データエリアを設
け、そこに原画像の画像データと関連するダミーデータ
を付加することにより、小さいメモリで高速にフイルタ
リング処理を行えるようにした方法が開示されている。
この方法では、図23(a)に示すように付加データエ
リアbが原画像aの周囲に設定されている場合、図23
(b)に示すように原画像aの境界部近傍のデータと同
一のデータが付加データエリアbに付加されるか、ある
いは図23(c)に示すように境界を基準にして原画像
aの境界部近傍のデータと線対称なデータが付加データ
エリアbに付加される。
As an example of a method of dividing an original image into small areas of an appropriate size and performing two-dimensional Fourier transform, Japanese Patent Laid-Open No.
JP-A-42376 discloses that, when an original image is divided into small regions, a part of an adjacent small region is overlapped and divided, and an additional data area is provided around the original image. A method is disclosed in which by adding dummy data related to the above, filtering processing can be performed at high speed with a small memory.
According to this method, when the additional data area b is set around the original image a as shown in FIG.
23B, the same data as the data near the boundary of the original image a is added to the additional data area b, or as shown in FIG. Data symmetrical to the data near the boundary is added to the additional data area b.

【0004】上記の他、特開平5−346956号公報
には、原画像を小領域に分割して各領域ごとにフーリエ
変換を行うとともに、フーリエ振幅に対してノイズ除去
処理を行ない、その結果を逆変換する方法が開示されて
いる。この方法の場合、フーリエ変換を行う際に、各小
領域の境界での不連続性を緩和するためにガウシアン窓
が用いられる。
In addition to the above, Japanese Patent Application Laid-Open No. Hei 5-346956 discloses that an original image is divided into small regions, Fourier transform is performed for each region, and noise removal processing is performed on the Fourier amplitude. A method for inverting is disclosed. In the case of this method, a Gaussian window is used in performing the Fourier transform in order to reduce discontinuities at boundaries between small regions.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、上述し
たような原画像を小領域に分割してフーリエ変換を行う
方法には以下のような問題がある。
However, the method of performing the Fourier transform by dividing the original image into small regions as described above has the following problems.

【0006】特開平4−042376号公報に開示され
ている方法においては、原画像の周囲に付加されたダミ
ーデータによって実際とは異なる空間周波数成分が生成
される可能性がある。
[0006] In the method disclosed in Japanese Patent Laid-Open No. 4-04376, there is a possibility that a spatial frequency component different from the actual one is generated by dummy data added around the original image.

【0007】特開平5−346956号公報に開示され
ている方法においては、ガウシアン窓が窓関数として用
いられているが、このような窓関数では、分割された各
小領域を厳密に連続的に接合することは困難である。
In the method disclosed in Japanese Patent Application Laid-Open No. Hei 5-346956, a Gaussian window is used as a window function. In such a window function, each of the divided small regions is strictly and continuously. It is difficult to join.

【0008】本発明の目的は、上記問題を解決し、原画
像を分割した各小領域を厳密に連続的に接合することの
できる、デジタル画像処理方法およびデジタル画像処理
装置を提供することにある。
It is an object of the present invention to provide a digital image processing method and a digital image processing apparatus capable of solving the above-mentioned problems and strictly and continuously joining small areas obtained by dividing an original image. .

【0009】さらに、本発明の他の目的は、上記デジタ
ル画像処理方法に基づく処理を実行可能なプログラムが
記録された記録媒体を提供することにある。
Another object of the present invention is to provide a recording medium on which a program capable of executing a process based on the digital image processing method is recorded.

【0010】[0010]

【課題を解決するための手段】上記目的を達成するた
め、本発明の第1のデジタル画像処理方法は、原画像
を、隣接し合う領域が互いにオーバーラツプする、同一
サイズの正方形あるいは長方形の複数の領域に分割する
ステップと、前記分割された各領域に対して窓関数を乗
じるステップと、前記窓関数を乗じた各分割領域につい
て2次元デジタルフーリエ変換を行うステップと、前記
フーリエ変換が施された分割領域を足し合わせるステッ
プとを有し、前記窓関数として、前記フーリエ変換結果
を足し合わせる際に前記オーバーラップ領域で元の画像
が再現されるよう調節した関数を用いることを特徴とす
る。
In order to achieve the above object, a first digital image processing method according to the present invention comprises the steps of: converting an original image into a plurality of squares or rectangles of the same size where adjacent areas overlap each other; The step of dividing into divided areas, the step of multiplying each divided area by a window function, the step of performing a two-dimensional digital Fourier transform on each divided area multiplied by the window function, and the step of performing the Fourier transform Adding the divided areas, and using a function adjusted so that an original image is reproduced in the overlap area when adding the Fourier transform results.

【0011】本発明の第2のデジタル画像処理方法は、
原画像を、隣接し合う領域が互いにオーバーラツプす
る、同一サイズの正方形あるいは長方形の複数の領域に
分割するステップと、前記分割された各領域に窓関数を
乗じるステップと、前記窓関数を乗じた各分割領域につ
いて2次元デジタルフーリエ変換を行うステップと、前
記フーリエ変換が施された分割領域について所望のフィ
ルタ処理を行うステップと、前記フィルタ処理が施され
た分割領域についてデジタルフーリエ逆変換を行うステ
ップと、前記フーリエ逆変換が施された分割領域を足し
合わせるステップとを有し、前記窓関数として、前記フ
ーリエ逆変換を足し合わせる際に前記オーバーラップ領
域で元の画像が再現されるよう調節した関数を用いるこ
とを特徴とする。
[0011] The second digital image processing method of the present invention comprises:
Dividing the original image into a plurality of square or rectangular areas of the same size where adjacent areas overlap with each other; multiplying each of the divided areas by a window function; Performing a two-dimensional digital Fourier transform on the divided region, performing a desired filtering process on the divided region on which the Fourier transform has been performed, and performing an inverse digital Fourier transform on the filtered divided region; Summing the divided areas subjected to the inverse Fourier transform, wherein the window function is adjusted so that an original image is reproduced in the overlap area when the inverse Fourier transform is added. Is used.

【0012】本発明の第1のデジタル画像処理装置は、
原画像を、隣接し合う領域が互いにオーバーラツプす
る、同一サイズの正方形あるいは長方形の複数の領域に
分割する画像分割手段と、前記画像分割手段にて分割さ
れた各領域に窓関数を乗じる窓関数乗算手段と、前記窓
関数を乗じた各分割領域について2次元デジタルフーリ
エ変換を行う2次元フーリエ変換手段と、前記フーリエ
変換が施された分割領域を足し合わせる画像合成手段と
を有し、前記窓関数が、前記フーリエ逆変換を足し合わ
せる際に前記オーバーラップ領域で元の画像が再現され
るよう調節した関数であることを特徴とする。
[0012] The first digital image processing apparatus of the present invention comprises:
Image dividing means for dividing the original image into a plurality of square or rectangular areas of the same size where adjacent areas overlap each other; and window function multiplication for multiplying each area divided by the image dividing means by a window function. Means, two-dimensional Fourier transform means for performing two-dimensional digital Fourier transform on each divided area multiplied by the window function, and image synthesizing means for adding the divided areas subjected to the Fourier transform. Is a function adjusted so that an original image is reproduced in the overlap region when adding the inverse Fourier transform.

【0013】本発明の第2のデジタル画像処理装置は、
原画像を、隣接し合う領域が互いにオーバーラツプす
る、同一サイズの正方形あるいは長方形の複数の領域に
分割する画像分割手段と、前記画像分割手段にて分割さ
れた各領域に窓関数を乗じる窓関数乗算手段と、前記窓
関数を乗じた各分割領域について2次元デジタルフーリ
エ変換を行う2次元フーリエ変換手段と、前記フーリエ
変換が施された分割領域について所望のフィルタ処理を
行うフィルタ処理手段と、前記フィルタ処理が施された
分割領域についてデジタルフーリエ逆変換を行うフーリ
エ逆変換手段と、前記フーリエ逆変換が施された分割領
域を足し合わせる画像合成手段とを有し、前記窓関数
が、前記フーリエ逆変換を足し合わせる際に前記オーバ
ーラップ領域で元の画像が再現されるよう調節した関数
であることを特徴とする。
[0013] The second digital image processing apparatus of the present invention comprises:
Image dividing means for dividing the original image into a plurality of square or rectangular areas of the same size where adjacent areas overlap each other; and window function multiplication for multiplying each area divided by the image dividing means by a window function. Means, two-dimensional Fourier transform means for performing two-dimensional digital Fourier transform on each of the divided areas multiplied by the window function, filter processing means for performing desired filter processing on the divided areas subjected to the Fourier transform, and the filter An inverse Fourier transform unit for performing an inverse digital Fourier transform on the processed divided regions; and an image combining unit for adding the divided regions subjected to the inverse Fourier transform, wherein the window function performs the inverse Fourier transform. A function adjusted so that an original image is reproduced in the overlap area when adding .

【0014】本発明の第1の記録媒体は、原画像を、隣
接し合う領域が互いにオーバーラツプする、同一サイズ
の正方形あるいは長方形の複数の領域に分割する処理
と、前記分割された各領域に対して窓関数を乗じる処理
と、前記窓関数を乗じた各分割領域について2次元デジ
タルフーリエ変換を行う処理と、前記フーリエ変換が施
された分割領域を足し合わせる処理とをコンピュータに
実行させるためのプログラムを記録した記録媒体であっ
て、前記窓関数として、前記フーリエ変換結果を足し合
わせる際に前記オーバーラップ領域で元の画像が再現さ
れるよう調節した関数が用いられるように前記プログラ
ムが構成されていることを特徴とする。
A first recording medium according to the present invention is characterized in that an original image is divided into a plurality of square or rectangular areas of the same size in which adjacent areas overlap with each other; And a program for causing a computer to execute a process of multiplying the divided window region by the window function, a process of performing a two-dimensional digital Fourier transform on each of the divided regions multiplied by the window function, and a process of adding the divided regions subjected to the Fourier transform. In the recording medium on which is recorded, the program is configured such that a function adjusted so that an original image is reproduced in the overlap region when the Fourier transform results are added is used as the window function. It is characterized by being.

【0015】本発明の第2の記録媒体は、原画像を、隣
接し合う領域が互いにオーバーラツプする、同一サイズ
の正方形あるいは長方形の複数の領域に分割する処理
と、前記分割された各領域に窓関数を乗じる処理と、前
記窓関数を乗じた各分割領域について2次元デジタルフ
ーリエ変換を行う処理と、前記フーリエ変換が施された
分割領域について所望のフィルタ処理を行う処理と、前
記フィルタ処理が施された分割領域についてデジタルフ
ーリエ逆変換を行う処理と、前記フーリエ逆変換が施さ
れた分割領域を足し合わせる処理とをコンピュータに実
行させるためのプログラムを記録した記録媒体であっ
て、前記窓関数として、前記フーリエ逆変換結果を足し
合わせる際に前記オーバーラップ領域で元の画像が再現
されるよう調節した関数が用いられるように前記プログ
ラムが構成されていることを特徴とする。
According to a second recording medium of the present invention, there is provided a process for dividing an original image into a plurality of square or rectangular areas of the same size in which adjacent areas overlap with each other; A process of multiplying by a function, a process of performing a two-dimensional digital Fourier transform on each divided region multiplied by the window function, a process of performing a desired filter process on the divided region subjected to the Fourier transform, and a process of performing the filter process. A recording medium for recording a program for causing a computer to execute a process of performing a digital Fourier inverse transform on the divided region and a process of adding the divided regions subjected to the Fourier inverse transform, wherein the window function The sum of the inverse Fourier transform results adjusted to reproduce the original image in the overlap region. Characterized in that said program is configured to be used.

【0016】(作用)上記のとおりの本発明において
は、原画像は、隣接し合う領域が互いにオーバーラツプ
する複数の領域に分割される。そして、これら分割領域
に、フーリエ変換結果を足し合わせる際にオーバーラツ
プ領域で元の画像が再現されるよう調節した窓関数を乗
じた上で、各分割領域についてフーリエ変換が行われ
る。窓関数としては、具体的にはsin(ax)si
(by)型の関数が用いられる。このような窓関数
を用いたフーリエ変換では、フーリエ変換結果を足し合
わせて空間周波数分布を求める際に、原画像を均等な重
みを乗じて変換したことになる。これにより、各領域は
厳密に連続的に接合されることとなる。
(Operation) In the present invention as described above, the original image is divided into a plurality of areas where adjacent areas overlap each other. Then, when the divided areas are multiplied by a window function adjusted so that the original image is reproduced in the overlap area when the Fourier transform results are added, Fourier transform is performed on each divided area. As the window function, specifically, sin 2 (ax) si
An n 2 (by) type function is used. In the Fourier transform using such a window function, when the spatial frequency distribution is obtained by adding the results of the Fourier transform, the original image is transformed by multiplying by an equal weight. Thereby, the respective regions are strictly and continuously joined.

【0017】また、フーリエ変換が行われた後、各領域
にマスクなどのフィルタ処理、フーリエ逆変換処理を施
して、各分割領域を元の配置に足しあわせるようにした
発明においても、上記と同様に、原画像を均等な重みを
乗じて変換したことになり、各領域を厳密に連続的に接
合することが可能となる。
Also, in the invention in which after the Fourier transform is performed, each region is subjected to a filtering process such as a mask and a Fourier inverse transform process, and each divided region is added to the original arrangement. Thus, the original image is converted by multiplying it by an equal weight, and each region can be strictly and continuously joined.

【0018】[0018]

【発明の実施の形態】次に、本発明の実施形態について
図面を参照して説明する。
Next, embodiments of the present invention will be described with reference to the drawings.

【0019】図1に、本発明のデジタル画像処理方法が
適用される画像処理装置の一実施形態を示す。この画像
処理装置は、画像入力部1、画像処理部2、記憶装置
3、記録媒体4から構成される。
FIG. 1 shows an embodiment of an image processing apparatus to which the digital image processing method of the present invention is applied. This image processing apparatus includes an image input unit 1, an image processing unit 2, a storage device 3, and a recording medium 4.

【0020】画像入力部1は、スキャナ部11と画像メ
モリ部12からなり、スキャナ部11で取り込まれた画
像データが画像メモリ部12に記憶される。この画像メ
モリ部12としては光磁気ディスク媒体などを用いるこ
とができる。この画像メモリ部12に記憶された画像デ
ータは、画像処理部2に読み込まれる。
The image input section 1 comprises a scanner section 11 and an image memory section 12, and image data taken in by the scanner section 11 is stored in the image memory section 12. As the image memory unit 12, a magneto-optical disk medium or the like can be used. The image data stored in the image memory unit 12 is read into the image processing unit 2.

【0021】画像処理部2は、画像分割部21、窓関数
乗算部22、2次元フーリエ変換部23、フィルタ処理
部24、2次元フーリエ逆変換部25、画像合成部26
から構成される。
The image processing unit 2 includes an image dividing unit 21, a window function multiplying unit 22, a two-dimensional Fourier transform unit 23, a filter processing unit 24, a two-dimensional inverse Fourier transform unit 25, and an image synthesizing unit 26.
Consists of

【0022】画像分割部21は、画像メモリ部12から
読み出された画像データ(原画像)を、適当なサイズの
正方形あるいは長方形の複数の領域に分割する。各分割
領域はそれぞれ、隣接する他の分割領域と隣接し合う領
域が互いに部分的に重なり合う(オーバーラップする)
ようになっている。窓関数乗算部22は、画像分割部2
1にて分割された領域を後述する画像合成によって足し
合わせる際に、各分割領域の重なり合う領域(オーバー
ラップ領域)で元の画像が再現されるよう調節した窓関
数を各分割領域に乗じる。
The image dividing section 21 divides the image data (original image) read from the image memory section 12 into a plurality of square or rectangular areas of an appropriate size. In each of the divided regions, the adjacent region and the adjacent region partially overlap (overlap) with each other.
It has become. The window function multiplying unit 22 includes the image dividing unit 2
When the areas divided by 1 are added by image synthesis described later, each divided area is multiplied by a window function adjusted so that an original image is reproduced in an overlapping area (overlap area) of each divided area.

【0023】2次元フーリエ変換部23は、窓関数乗算
部22にて窓関数が乗じされた各分割領域について2次
元フーリエ変換処理を行う。フィルタ処理部24は、2
次元フーリエ変換部23にて2次元フーリエ変換された
結果にマスクなどのフィルタ処理を行う。2次元フーリ
エ逆変換部25は、そのフィルタ処理が施された結果に
2次元フーリエ逆変換処理を行う。画像合成部26は、
その2次元フーリエ逆変換処理が施された各分割領域
を、分割する前の元の配置に重ね合せる。
The two-dimensional Fourier transform unit 23 performs a two-dimensional Fourier transform process on each of the divided areas multiplied by the window function in the window function multiplying unit 22. The filter processing unit 24
The result of the two-dimensional Fourier transform performed by the two-dimensional Fourier transform unit 23 is subjected to a filtering process such as a mask. The two-dimensional Fourier inverse transform unit 25 performs a two-dimensional Fourier inverse transform process on the result of the filtering. The image synthesis unit 26
Each divided area subjected to the two-dimensional Fourier inverse transform processing is superimposed on the original arrangement before division.

【0024】記憶装置3は、画像処理部2における各デ
ータ処理の際に画像データを一旦記憶するためのもので
ある。記録媒体4は、画像処理部2の各構成部における
データ処理を実行するためのプログラムを記録したもの
で、画像処理部2はこの記録媒体4に記録された処理手
順に従って上述の各処理を行う。
The storage device 3 is for temporarily storing image data at the time of each data processing in the image processing section 2. The recording medium 4 records a program for executing data processing in each component of the image processing unit 2, and the image processing unit 2 performs each of the above-described processes according to the processing procedure recorded on the recording medium 4. .

【0025】上述のように構成される画像処理装置で
は、スキャナ部11で取り込まれた画像が画像メモリ部
12に一旦格納された後、画像処理部2に読み込まれ
る。画像処理部2では、読み込まれた画像(原画像)
は、まず、隣接し合う領域が互いに部分的にオーバーラ
ップする複数の分割領域に分割されて、各分割領域に窓
関数が乗じられる。そして、この窓関数が乗じられた各
分割領域に対して、それぞれ2次元フーリエ変換処理、
フィルタ処理、2次元フーリエ逆変換処理が施された
後、画像の合成が行われる。
In the image processing apparatus configured as described above, an image captured by the scanner unit 11 is temporarily stored in the image memory unit 12, and then read into the image processing unit 2. In the image processing unit 2, the read image (original image)
Is divided into a plurality of divided regions in which adjacent regions partially overlap each other, and each divided region is multiplied by a window function. Then, for each of the divided areas multiplied by the window function, two-dimensional Fourier transform processing is performed,
After the filtering process and the two-dimensional Fourier inverse transform process are performed, the images are combined.

【0026】上記のデジタル画像処理の特徴は、各分割
領域に対して、オーバーラップ領域で元の画像が再現さ
れるよう調節した窓関数を乗じることにある。これによ
り、合成画像が厳密に連続的に接合されることになる。
A feature of the above digital image processing is that each divided area is multiplied by a window function adjusted so that the original image is reproduced in the overlap area. As a result, the synthesized images are strictly and continuously joined.

【0027】窓関数は、オーバーラップ領域で元の画像
が再現されるような関数であればよく、例えばsin
(ax)sin(by)型を用いることにより、厳密
に連続的に接合できる条件を満足し、スムーズに領域を
分割することが可能である。以下に、窓関数の具体的な
例を挙げる。
The window function may be a function in which the original image is reproduced in the overlap region, for example, sin 2
By using the (ax) sin 2 (by) type, it is possible to satisfy the condition for strictly continuous joining and to divide the region smoothly. A specific example of the window function will be described below.

【0028】(1)原画像を、隣接し合う領域が互いに
半分ずつ重なり合うようにオーバーラップさせて分割し
た場合、分割領域の横座標をx、縦座標をy、横幅を
W、縦幅をHとし、定数aと定数bをそれぞれ0以上1
未満とした場合に、各分割領域の左下隅をそれぞれ原点
として、窓関数F(x,y)を以下の式で与える。
(1) When the original image is divided by overlapping so that adjacent regions overlap each other by half, the abscissa of the divided region is x, the ordinate is y, the width is W, and the height is H. And constants a and b are each 0 or more and 1
If less than, the window function F (x, y) is given by the following equation, with the lower left corner of each divided area as the origin.

【0029】[0029]

【数1】F(x,y)=sin(π(x+a)/W)
sin(π(y+a)/H) (2)原画像を、隣接し合う領域が互いに半分ずつ重な
り合うようにオーバーラップさせて分割した場合、分割
された領域の横座標をx、縦座標をy、横幅をW、縦幅
をHとし、オーバーラップ領域の横方向の幅をA、縦方
向の幅をBとした場合に、各分割領域の左下隅をそれぞ
れ原点として、窓関数F(x,y)を以下の式で与え
る。
## EQU1 ## F (x, y) = sin 2 (π (x + a) / W)
sin 2 (π (y + a) / H) (2) When the original image is divided by overlapping so that adjacent regions overlap each other by half, the abscissa of the divided region is x, and the ordinate is y. , The horizontal width is W, the vertical width is H, the horizontal width of the overlap region is A, and the vertical width is B, the window function F (x, y) is given by the following equation.

【0030】[0030]

【数2】F(x,y)=F(x)F(y) ただし、F(x)は0≦x≦2(W−A)の範囲で、 F(x)=sin(πx/(2(W−A))) であり、それ以外のxの範囲で、 F(x)=0 である。また、F(y)は0≦y≦2(H−B)の範
囲で、 F(y)=sin(πy/(2(H−B))) であり、それ以外のyの範囲で、 F(y)=0 である。
F (x, y) = F 1 (x) F 2 (y) where F 1 (x) is in the range of 0 ≦ x ≦ 2 (WA), and F 1 (x) = sin 2 (πx / (2 (W−A))), and F 1 (x) = 0 in other x ranges. F 2 (y) is in the range of 0 ≦ y ≦ 2 (H−B), and F 2 (y) = sin 2 (πy / (2 (H−B))). In the range, F 2 (y) = 0.

【0031】以下、上述の窓関数を用いたデジタル画像
処理の実施例を具体的に説明する。
Hereinafter, an embodiment of the digital image processing using the above window function will be described in detail.

【0032】(実施例1)本実施例では、図2に示すよ
うな電子顕微鏡写真(化合物半導体断面)を、イメージ
スキャナ装置を用いて200dpi(1インチあたり2
00画素)の精度でデジタル化して画像入力用コンピュ
ータに取り込んだ。そして、その取り込んだ画像を横幅
約350オングストローム、縦幅約350オングストロ
ームの観察領域をデジタル化して横幅500画素、縦幅
500画素のビットマップ形式の画像(原画像)とし、
コンピュータファイルとして画像入力用コンピュータの
2次記憶媒体である光磁気ディスク媒体(図1の画像メ
モリ部12に相当する)に記録した。
Example 1 In this example, an electron micrograph (cross section of a compound semiconductor) as shown in FIG. 2 was taken at 200 dpi (2 inches per inch) using an image scanner.
(00 pixels) and imported into an image input computer. Then, the captured image is digitized into an observation area having a width of about 350 angstroms and a height of about 350 angstroms to form a bitmap format image (original image) having a width of 500 pixels and a height of 500 pixels.
The image was recorded as a computer file on a magneto-optical disk medium (corresponding to the image memory unit 12 in FIG. 1) as a secondary storage medium of the computer for image input.

【0033】次に、上記光磁気ディスク媒体を画像入力
用コンピュータの光磁気ディスクドライブから取り出
し、画像処理用コンピュータ(図1の画像処理部2に相
当する)の光磁気ディスクドライブに入れて、上記イメ
ージスキャナ装置で取り込んだ電子顕微鏡画像のビット
マップ形式ファイルを画像処理用コンピュータに取り込
んだ。そして、このビットマップ形式ファイルの画像
(原画像)に対して以下のようなデジタル画像処理を行
った。
Next, the above-mentioned magneto-optical disk medium is taken out of the magneto-optical disk drive of the computer for image input and put into the magneto-optical disk drive of the computer for image processing (corresponding to the image processing section 2 in FIG. 1). A bitmap format file of the electron microscope image taken by the image scanner was taken into an image processing computer. Then, the following digital image processing was performed on the image (original image) of the bitmap format file.

【0034】まず、ビットマップ形式ファイルの画像
(原画像)を画像の一番左隅下の画素座標を原点とし
て、横方向右向きにX軸、縦方向上向きにY軸を設定
し、X方向Y方向共に1画素間隔を単位長さ1として、
図3に示すような領域に分割する。各分割領域はすべて
等しく、幅128画素、高さ128画素の大きさであ
る。また、隣接した領域の重なり合い(オーバーラッ
プ)はすべて等しく、縦方向横方向共に35画素分であ
る。これらの領域はすべて分割した個々の領域の左下隅
が原点になるように座標を取り直して幅128画素、高
さ128画素の画像とし、それぞれをビットマップ形式
の画像ファイルとして画像処理用コンピュータの2次記
憶媒体(図1の記憶装置3を構成する記憶媒体の1つに
相当する)に記録する。
First, an X-axis is set to the right in the horizontal direction and a Y-axis is set to the upward in the vertical direction with the pixel coordinates at the lower left corner of the image as the origin, and the Y-axis in the X-direction is set. In each case, one pixel interval is defined as unit length 1, and
It is divided into regions as shown in FIG. All the divided areas are equal and have a size of 128 pixels in width and 128 pixels in height. In addition, the overlap (overlap) of the adjacent areas is all equal, and is 35 pixels in both the vertical and horizontal directions. All of these areas are re-coordinated so that the origin is at the lower left corner of each of the divided areas, forming an image with a width of 128 pixels and a height of 128 pixels. It is recorded on the next storage medium (corresponding to one of the storage media constituting the storage device 3 in FIG. 1).

【0035】続いて、上記のようにして作成されたビッ
トマップ形式画像に対して以下のような処理を施すこと
で、前述の窓関数を乗じる処理を行う。
Subsequently, by performing the following processing on the bitmap format image created as described above, the processing of multiplying the above-described window function is performed.

【0036】まず、分割した各々のビットマップ形式画
像zu11〜zu55を次の処理により、新しいビット
マップ形式画像tzu11〜tzu55に変換する。こ
こで、新しいビットマップ形式画像tzu11〜tzu
55も変換前と同じ幅128画素、高さ128画素であ
る。各ビットマップ形式画像tzu11〜tzu55に
対する処理は同じであるため、ここではzu11の画像
に対する具体的な処理についてのみ説明することとし、
他の画像についての処理は省略する。
First, each of the divided bitmap format images zu11 to zu55 is converted into new bitmap format images tzu11 to tzu55 by the following processing. Here, the new bitmap format images tzu11-tzu
55 also has the same width of 128 pixels and height of 128 pixels as before conversion. Since the processing for each bitmap format image tzu11 to tzu55 is the same, only the specific processing for the image of zu11 will be described here.
The processing for other images is omitted.

【0037】ビットマップ形式画像zu11を画像処理
用コンピュータの2次記憶媒体から読み出し、その座標
を前述と同様、画像の一番左隅下の画素座標を原点とし
て、横方向右向きにX軸、縦方向上向きにY軸を設定
し、X方向Y方向共に1画素間隔を単位長さ1として、
座標x,yの位置の画素の明るさをF(x,y)で表
す。同様に、新しいビットマップ形式画像tzu11の
座標を画像の一番左隅下の画素座標を原点として、横方
向右向きにX軸、縦方向上向きにY軸を設定し、X方向
Y方向共に1画素間隔を単位長さ1として、座標x,y
の位置の画素の明るさをG(x,y)で表す。そして、
ビットマップ形式画像zu11に含まれる全画素を以下
の式を用いて変換して新しいビットマップ形式画像tz
u11を作成し、これを画像ファイルとして画像処理用
コンピュータの2次記憶媒体(図1の記憶装置3を構成
する記憶媒体の1つに相当する)に記憶する。
The bitmap format image zu11 is read from the secondary storage medium of the image processing computer, and its coordinates are set in the same manner as described above, with the pixel coordinates at the lower left corner of the image as the origin, the X axis to the right in the horizontal direction, and the vertical direction. The Y axis is set upward, and in the X direction and the Y direction, one pixel interval is defined as a unit length of 1.
The brightness of the pixel at the position of the coordinates x, y is represented by F (x, y). Similarly, using the coordinates of the new bitmap format image tzu11 as the origin, the pixel coordinates at the lower left corner of the image are set as the origin, the X axis is set rightward in the horizontal direction, and the Y axis is set upward in the vertical direction. Is the unit length 1, and the coordinates x, y
Is represented by G (x, y). And
All the pixels included in the bitmap format image zu11 are converted by using the following formula, and a new bitmap format image tz is converted.
u11 is created and stored as an image file in a secondary storage medium of the image processing computer (corresponding to one of the storage media constituting the storage device 3 in FIG. 1).

【0038】[0038]

【数3】 G(x,y)=H(x)H(y)F(x,y) ここで、変換関数H(x)は次式で与えられる。G (x, y) = H w (x) H h (y) F (x, y) Here, the conversion function H w (x) is given by the following equation.

【0039】[0039]

【数4】 ここで、定数wとeはそれぞれ分割した画像の幅、分
割した際に横方向に重なり合った領域(オーバーラップ
領域)の幅の画素数で、本実施例ではwは128、e
は35である。また、変換関数H(y)は次式で与え
られる。
(Equation 4) Here, the constants w and ew are the number of pixels of the width of the divided image and the width of an area (overlap area) that overlaps in the horizontal direction at the time of division. In this embodiment, w is 128 and ew.
Is 35. The conversion function H h (y) is given by the following equation.

【0040】[0040]

【数5】 ここで、定数hとeはそれぞれ分割した画像の高さ、
分割した際に縦方向に重なり合った領域の幅の画素数
で、本実施例では、hは128、eは35である。上
述の窓関数を各分割領域に乗じることにより、各分割領
域では、オーバーラップ領域の明るさは内側から外側へ
いくほど減少し、それ以外の領域の明るさはそのまま値
となるように変換される。よって、後述のフーリエ変換
後に、これら領域を足し合せた際、各分割領域のオーバ
ーラップ領域では元の画像の明るさが再現されることと
なる。
(Equation 5) Here, the constant h and e h is image divided respectively height,
In the number of pixels in the vertical direction in the overlapping region of the width when divided, in the present embodiment, h is 128, e h is 35. By multiplying each of the divided areas by the above window function, in each of the divided areas, the brightness of the overlap area decreases as going from the inside to the outside, and the brightness of the other areas is converted to the value as it is. You. Therefore, when these areas are added after the Fourier transform described later, the brightness of the original image is reproduced in the overlap area of each divided area.

【0041】上記zu11以外のビットマップ形式画像
zu12〜zu55についてもzu11の場合と同じ変
換関数を用いた処理で変換して新しいビットマップ形式
画像tzu12〜tzu55を作成し、それぞれ画像フ
ァイルとして画像処理用コンピュータの2次記憶媒体に
記録する。
The bitmap images zu12 to zu55 other than the above zu11 are converted by processing using the same conversion function as in the case of zu11 to create new bitmap format images tzu12 to tzu55, each of which is used as an image file for image processing. It is recorded on the secondary storage medium of the computer.

【0042】上述のようにして窓関数が乗じられたビッ
トマップ形式画像tzu11〜tzu55について、2
次元デジタルフーリエ変換処理を行って、新しく2次元
フーリエ変換データftzu11〜ftzu55を作成
する。ここで、tzu11〜tzu55は全て128×
128点から構成される2次元配列データであるため、
ここでは、2次元デジタルフーリエ変換処理として汎用
の高速フーリエ変換処理であるCooley−Tuke
yのアルゴリズムを用いる。以下に、その高速フーリエ
変換処理の具体的な処理について説明する。
With respect to the bitmap images tzu11 to tzu55 multiplied by the window function as described above, 2
A two-dimensional Fourier transform process is performed to newly create two-dimensional Fourier transform data ftzu11 to ftzu55. Here, tzu11 to tzu55 are all 128 ×
Since it is two-dimensional array data composed of 128 points,
Here, Cooley-Tuke, which is general-purpose fast Fourier transform processing as two-dimensional digital Fourier transform processing, is used.
The algorithm of y is used. Hereinafter, specific processing of the fast Fourier transform processing will be described.

【0043】まず、ビットマップ形式画像の各画素を要
素とした複素数2次元配列データを準備する。ここで
は、複素数2次元配列データの実数部にビットマップ形
式画像の各画素の明るさを代入し、虚数部はすべて0と
する。この128×128のサイズの複素数2次元配列
データに対して2次元FFT処理を行い、その変換結果
として128×128のサイズの複素数2次元配列デー
タを得る。
First, complex two-dimensional array data having each pixel of a bitmap format image as an element is prepared. Here, the brightness of each pixel of the bitmap format image is substituted for the real part of the complex two-dimensional array data, and all the imaginary parts are set to zero. A two-dimensional FFT process is performed on the complex number two-dimensional array data having a size of 128 × 128, and complex two-dimensional array data having a size of 128 × 128 is obtained as a conversion result.

【0044】上記の処理をtzu11からftzu11
への変換を例に説明すると、以下のような処理となる。
The above processing is performed from tzu11 to ftzu11.
The following processing will be described as an example of conversion to.

【0045】ビットマップ形式画像tzu11を画像処
理用コンピュータの2次記憶媒体から読み出し、その座
標を上記と同じく、画像の一番左隅下の画素座標を原点
として、横方向右向きにX軸、縦方向上向きにY軸を設
定し、X方向Y方向共に1画素間隔を単位長さ1とし
て、座標x,yの位置の画素の明るさをG(x,y)で
表し、ftzu11の2次元配列の各配列要素をR
(s,t)で表すと、以下の式を用いてG(x,y)か
らR(s,t)を求められる。
The bitmap format image tzu11 is read from the secondary storage medium of the image processing computer, and its coordinates are set in the same manner as described above, with the pixel coordinates at the lower left corner of the image as the origin, the X axis to the right in the horizontal direction, and the vertical direction. The Y axis is set upward, and the brightness of the pixel at the position of the coordinates x, y is represented by G (x, y), with one pixel interval being the unit length 1 in both the X and Y directions, and the two-dimensional array of ftzu11 Each array element is R
When represented by (s, t), R (s, t) can be obtained from G (x, y) using the following equation.

【0046】[0046]

【数6】 ここで、定数wとhはそれぞれ画像の幅と高さであり、
配列要素は添え字「0」〜「w−1」までと「0」〜
「h−1」の範囲である。この変換結果である128×
128のサイズの複素数2次元配列データR(s,t)
をそれぞれ2次元フーリエ変換データftzu11〜f
tzu55の画像ファイルとして画像処理用コンピュー
タの2次記憶媒体(図1の記憶装置3を構成する記憶媒
体の1つに相当する)に記録する。
(Equation 6) Where the constants w and h are the width and height of the image, respectively.
Array elements include subscripts “0” to “w−1” and “0” to
The range is "h-1". 128 ×
Complex number two-dimensional array data R (s, t) of size 128
To the two-dimensional Fourier transform data ftzu11 to ftu11, respectively.
The image file is recorded in a secondary storage medium of the image processing computer (corresponding to one of the storage media constituting the storage device 3 in FIG. 1) as an image file of tzu55.

【0047】上記処理によって得られた2次元フーリエ
変換データftzu11〜ftzu55を以下の処理に
よって足し合わせて、合計の2次元フーリエスペクトル
を計算する。
The two-dimensional Fourier transform data ftzu11 to ftzu55 obtained by the above processing are added up by the following processing to calculate a total two-dimensional Fourier spectrum.

【0048】まず、画像処理用コンピュータの2次記憶
媒体に記録された2次元フーリエ変換データftzu1
1〜ftzu55をすべて読み出し、データは複素数4
次元データ配列A(i,j,s,t)として画像処理用
コンピュータの1次記憶素子(図1の記憶装置3を構成
する記憶手段の1つに相当する)に格納する。ここで、
データ配列の添え字i,j,s,tのうち、iとjは画
像処理用コンピュータの2次記憶媒体に記録された2次
元フーリエ変換データftzu11〜ftzu55の最
初の添え字をi、2番目の添え字をjとし、sとtはそ
れら各々の2次元フーリエ変換データの配列の添え字、
つまり上述の複素数2次元配列データR(s,t)の添
え字sとtに対応する。この複素数4次元データ配列A
(i,j,s,t)から以下の式によって実数2次元デ
ータ配列B(s,t)を求める。
First, the two-dimensional Fourier transform data ftzu1 recorded on the secondary storage medium of the image processing computer
1 to ftzu55, and the data is a complex number 4
The image data is stored as a dimensional data array A (i, j, s, t) in the primary storage element of the image processing computer (corresponding to one of the storage means constituting the storage device 3 in FIG. 1). here,
Among the suffixes i, j, s and t of the data array, i and j are the first suffixes of the two-dimensional Fourier transform data ftzu11 to ftzu55 recorded on the secondary storage medium of the image processing computer, and i is the second suffix. Is the suffix of j, and s and t are the suffixes of the respective arrays of the two-dimensional Fourier transform data,
That is, they correspond to the subscripts s and t of the above-described complex two-dimensional array data R (s, t). This complex four-dimensional data array A
A real two-dimensional data array B (s, t) is obtained from (i, j, s, t) by the following equation.

【0049】[0049]

【数7】 上記処理によって求めた実数2次元データ配列B(s,
t)は、前述の図2に示した電子顕微鏡写真の全体の空
間周波数スペクトルに相当する。この実数2次元データ
配列B(s,t)の空間周波数スペクトルのsとtのス
ケールは、通常の方式で128×128画素の2次元画
像データを2次元デジタルフーリエ変換した場合と同じ
であり、B(0,0)が空間周波数0の成分に相当す
る。また、wを分割画像の幅、hを分割画像の高さとし
た時、B(w/2,0)が丁度2画素分の波長に対応し
た横方向の空間周波数成分に相当し、B(0,h/2)
が丁度2画素分の波長に対応した縦方向の空間周波数成
分に相当する。本実施例ではw、hは共に128であ
る。
(Equation 7) The real number two-dimensional data array B (s,
t) corresponds to the entire spatial frequency spectrum of the electron micrograph shown in FIG. The scale of s and t of the spatial frequency spectrum of this real number two-dimensional data array B (s, t) is the same as the case where two-dimensional image data of 128 × 128 pixels is subjected to two-dimensional digital Fourier transform by a normal method. B (0,0) corresponds to the component of spatial frequency 0. When w is the width of the divided image and h is the height of the divided image, B (w / 2,0) corresponds to the spatial frequency component in the horizontal direction corresponding to the wavelength of exactly two pixels, and B (0 , H / 2)
Corresponds to the spatial frequency component in the vertical direction corresponding to the wavelength of exactly two pixels. In this embodiment, both w and h are 128.

【0050】なお、上述の処理では、元の大きな原画像
を小さな領域に区切っているが、分割した領域の幅や高
さ以上の長い波長に相当する空間周波数成分は一切計算
されていない。
In the above-described processing, the original large original image is divided into small areas, but no spatial frequency component corresponding to a longer wavelength than the width or height of the divided areas is calculated.

【0051】上述の処理結果について、空間周波数0に
相当する成分を画像の中心になるように変換した結果
を、それぞれの空間周波数成分を画素の明るさとして空
間周波数スペクトルを表現した結果を図4に示す。この
場合の変換式を以下に示す。
FIG. 4 shows a result obtained by converting a component corresponding to a spatial frequency of 0 into the center of the image with respect to the above processing result, and expressing a spatial frequency spectrum by using each spatial frequency component as the brightness of a pixel. Shown in The conversion formula in this case is shown below.

【0052】[0052]

【数8】 ここで、wとhはB(s,t)配列のsとtの範囲であ
り、sは「0」〜「w−1」で、tは「0」〜「h−
1」である。本実施例では、w、hは共に128であ
る。
(Equation 8) Here, w and h are in the range of s and t in the B (s, t) array, s is "0" to "w-1", and t is "0" to "h-
1 ". In this embodiment, both w and h are 128.

【0053】図4に示したフーリエ変換スペクトルで
は、中心部に明るい分布があり、空間周波数が小さい成
分が大きいが、この中心部の明るい分布が若干縦と横方
向にストリークになっている。このストリークは図2の
電子顕微鏡写真の画像に含まれる真の空間周波数成分で
はなく、フーリエ変換する領域の外の境界によるもので
ある。四角い領域をフーリエ変換したため、その四角形
のフーリエ変換である縦横の十字型の分布が現れてい
る。
In the Fourier transform spectrum shown in FIG. 4, there is a bright distribution at the center and a large component having a small spatial frequency is large, but the bright distribution at the center is slightly streaked in the vertical and horizontal directions. This streak is not due to a true spatial frequency component contained in the image of the electron micrograph of FIG. 2, but due to a boundary outside the area to be Fourier-transformed. Since the square area was subjected to the Fourier transform, a vertical and horizontal cross-shaped distribution, which is a Fourier transform of the square, appears.

【0054】図2の電子顕微鏡写真の画像の広い領域を
一度にフーリエ変換する場合、コンピュータ上で実数の
一つの数値を4バイトで処理すると、フーリエ変換には
複素数2次元配列として500×500要素の記憶領域
として約2百万バイト必要となる。本発明のフーリエ変
換法によれば、上述のように128×128要素に区切
る場合、そのフーリエ変換には約13万バイトの複素数
2次元配列用記憶領域で処理が可能である。このよう
に、本発明では、フーリエ変換に使用する記憶容量の削
減により、フーリエ変換データをより高速なキャッシュ
メモリなどの記憶媒体を利用してより高速に処理するこ
とが可能となる。
In the case where a large area of the image of the electron micrograph of FIG. 2 is subjected to Fourier transform at a time, one real number is processed in 4 bytes on a computer, and the Fourier transform is performed as a complex two-dimensional array of 500 × 500 elements. Approximately 2 million bytes are required as a storage area. According to the Fourier transform method of the present invention, when divided into 128 × 128 elements as described above, the Fourier transform can be processed in a storage area for a complex two-dimensional array of about 130,000 bytes. As described above, according to the present invention, by reducing the storage capacity used for the Fourier transform, it becomes possible to process the Fourier transform data at a higher speed by using a faster storage medium such as a cache memory.

【0055】(実施例2)上述の実施例1では、画像処
理用コンピュータで元画像の分割、窓関数の掛け合わ
せ、2次元フーリエ変換処理、フーリエ変換結果の足し
合わせ処理を、コンピュータの2次記憶媒体に毎回記憶
させながら手動で行ったが、これら中間処理結果をコン
ピュータの2次記憶媒体に記録せずに、バッチ処理とし
て自動的に一連の操作を行うことが可能である。その処
理フローの1例を図5に示す。
(Embodiment 2) In Embodiment 1 described above, the image processing computer performs division of the original image, multiplication of window functions, two-dimensional Fourier transform processing, and addition processing of the Fourier transform results, by the secondary processing of the computer. Although the manual processing was performed while storing the intermediate processing results in the storage medium each time, a series of operations can be automatically performed as batch processing without recording the intermediate processing results in the secondary storage medium of the computer. FIG. 5 shows an example of the processing flow.

【0056】まず、ステップS100にて、デジタル化
されたビットマップ形式の画像ファイルを自動的に分割
する処理を行う。ただし、分割領域の大きさは最終的な
空間周波数スペクトルの粗さになるため、この大きさだ
けは本自動処理プログラムを利用する利用者が適宜判断
して入力パラメータとして入力する。このようにして入
力された分割領域の幅をw、高さをhとする。これらw
とhは、高速フーリエ変換処理を利用できるように2の
整数乗の値であることが好ましい。元のデジタル化され
たビットマップ形式の画像サイズを幅W、高さHとす
る。これらのパラメータから分割する領域数を横方向に
、縦方向にnとすると、これらは
First, in step S100, processing for automatically dividing a digitized image file in a bitmap format is performed. However, since the size of the divided area becomes the final roughness of the spatial frequency spectrum, the user using the automatic processing program appropriately determines only this size and inputs it as an input parameter. The width and height of the divided area input in this manner are defined as w and h, respectively. These w
And h are preferably integer powers of 2 so that fast Fourier transform processing can be used. The original digitized bitmap format image size is assumed to be width W and height H. Assuming that the number of regions to be divided from these parameters is n w in the horizontal direction and n h in the vertical direction,

【0057】[0057]

【数9】 で表わされる。ここで、括弧[]はガウスの記号で、
[x]は実数xを超えない最大の整数を意味する。以
下、説明で用いる括弧[]は全てこのガウスの記号とし
て扱う。また、αとα、はいずれも0以上で、それ
ぞれWとH以下程度の適当な値である。これはWが丁度
wで割り切れるか、その除算の余りがwに比べて小さい
場合、故意に分割領域の重なる部分を設けるための値で
ある。本実施例では、これらの値をα=W/2、α
=H/2としている。
(Equation 9) Is represented by Where the brackets [] are Gaussian symbols,
[X] means the largest integer not exceeding the real number x. Hereinafter, all the brackets [] used in the description are treated as Gaussian symbols. Further, α w and α h are both 0 or more, and are appropriate values of about W and H, respectively. This is a value for intentionally providing an overlapping portion of the divided areas when W is exactly divisible by w or the remainder of the division is smaller than w. In the present embodiment, these values are defined as α w = W / 2, α h
= H / 2.

【0058】上記のようにして領域数nとnが求め
られると、続いて、これら領域数に基づいて領域の範囲
を決定する。分割前の画像の一番左隅下の画素座標を原
点として、横方向右向きにX軸、縦方向上向きにY軸を
設定し、X方向Y方向共に1画素間隔を単位長さ1とし
た場合、横方向にi番目、縦方向にj番目の分割領域の
範囲は、
[0058] When the number of regions in the above n w and n h is determined, then, to determine the range of the region based on these number of areas. When the pixel coordinate at the lower left corner of the image before division is set as the origin, the X axis is set to the right in the horizontal direction and the Y axis is set to the upward in the vertical direction. The range of the i-th divided area in the horizontal direction and j-th in the vertical direction is

【0059】[0059]

【数10】 で与えられる。(Equation 10) Given by

【0060】次に、ステップS101にて、2次元フー
リエ変換結果を足し合わせて記憶するためのw×hの要
素を持つ実数配列Bの全要素をすべて0に初期化する。
ここで、本実施例のすべての配列は添え字の始まりが0
である。
Next, in step S101, all elements of the real number array B having w × h elements for adding and storing the results of the two-dimensional Fourier transform are initialized to zero.
Here, in all the arrays of the present embodiment, the start of the subscript is 0.
It is.

【0061】初期化後、上記の方法で決めた分割範囲に
したがって、まず一番左下隅の分割領域のビットマップ
形式データを取り出して2次元フーリエ変換処理し、そ
の処理結果を、2次元フーリエ変換結果を足し合わせて
記憶するための配列Bに足し合わせる。次に、その隣の
領域に対して同じ処理を行い、再び2次元フーリエ変換
結果を足し合わせて記憶するための配列Bにその処理結
果を足し合わせる。この繰り返しを全ての分割領域に対
して行って、2次元フーリエ変換結果を足し合わせて記
憶するための配列Bを計算する(ステップS102〜S
111)。このようにして得られた配列Bは、次の処理
を行うブロック(図1のフィルタ処理部24)へ出力さ
れる(ステップS112)。
After initialization, according to the division range determined by the above method, first, the bitmap format data of the division area at the lower left corner is extracted and subjected to two-dimensional Fourier transform processing, and the processing result is subjected to two-dimensional Fourier transformation. The result is added to array B for storage. Next, the same processing is performed on the adjacent area, and the processing result is added to an array B for adding and storing the two-dimensional Fourier transform result again. This repetition is performed for all the divided areas, and an array B for adding and storing the two-dimensional Fourier transform results is calculated (steps S102 to S102).
111). Array B obtained in this way is output to a block that performs the following processing (filter processing unit 24 in FIG. 1) (step S112).

【0062】以下、横方向にi番目、縦方向にj番目の
分割領域に対する変換処理手順を詳細に説明する。
Hereinafter, the conversion processing procedure for the i-th divided area in the horizontal direction and the j-th divided area in the vertical direction will be described in detail.

【0063】分割前のビットマップ形式の画像から横方
向にi番目、縦方向にj番目の分割領域の要素をすべて
取り出し、各要素をw×hの要素を持つ実数配列Zにコ
ピーする。分割前のビットマップ形式データをW×Hの
要素を持つ2次元配列Iとして表現すると、そのコピー
は、以下の式に基づく計算を、それぞれ範囲「0」〜
「w−1」、「0」〜「h−1」の範囲の整数xとyの
全ての組み合わせに対して行う。
All the elements of the i-th divided area in the horizontal direction and the j-th divided area in the vertical direction are extracted from the image in the bitmap format before division, and each element is copied to a real number array Z having w × h elements. When the bitmap format data before the division is expressed as a two-dimensional array I having W × H elements, the copy uses calculations based on the following formulas in the range “0” to “0”, respectively.
This is performed for all combinations of integers x and y in the range of “w−1”, “0” to “h−1”.

【0064】[0064]

【数11】 次に、窓関数F(x)とF(y)をそれぞれ要素数
wとhの実数1次元配列として全要素を以下のようにし
て計算する。
[Equation 11] Next, the window functions F w (x) and F h (y) are each calculated as a real one-dimensional array having the number of elements w and h as follows.

【0065】[0065]

【数12】 として窓関数配列を設定する。(Equation 12) Set the window function array as

【0066】上記のようにして求めた窓関数配列を用い
て、分割領域データ配列Zからw×hの要素数を持つ2
次元複素数配列Gを以下の式により計算して全部の要素
を求める。
Using the window function array obtained as described above, the divided area data array Z has a w × h element number 2
The dimension complex number array G is calculated by the following equation to obtain all elements.

【0067】[0067]

【数13】 G(x,y)=F(x)F(y)Z(x,y) G(x,y)=0 ここで、GとGはそれぞれ複素数配列Gの実数部と
虚数部である。ここで求めた2次元複素数配列Gを2次
元フーリエ変換処理する。この2次元フーリエ変換処理
は以下の式を用いて行い、その変換結果をw×hの要素
数を持つ2次元複素数配列Rの全要素に格納する。
Equation 13] G r (x, y) = F w (x) F h (y) Z (x, y) G i (x, y) = 0 Here, G r and G i are complex number sequence G Are the real and imaginary parts of. The two-dimensional complex array G obtained here is subjected to two-dimensional Fourier transform processing. The two-dimensional Fourier transform processing is performed using the following equation, and the result of the conversion is stored in all the elements of the two-dimensional complex number array R having the number of elements of w × h.

【0068】[0068]

【数14】 ここでRはそれぞれ複素数配列Rの実数部と虚数
部である。ただし、wとhが共に2の整数乗の場合は、
汎用のCooley−Tukeyのアルゴリズムを用い
た2次元FFT処理によって同じ計算を短時間で行うこ
とが出来る。
[Equation 14] Here, R r R i is the real part and the imaginary part of the complex number array R, respectively. However, when both w and h are integer powers of 2,
The same calculation can be performed in a short time by a two-dimensional FFT process using a general-purpose Cooley-Tukey algorithm.

【0069】この2次元フーリエ変換処理によって求め
たw×hの要素数を持つ2次元複素数配列Rを、全要素
を次の2次元フーリエ変換結果を足し合わせて記憶する
ためのw×hの要素を持つ実数配列Bに足し合わせる。
この計算は、以下の式により行う。
A two-dimensional complex array R having the number of w × h elements obtained by the two-dimensional Fourier transform processing is used as a w × h element for storing all elements by adding the following two-dimensional Fourier transform results. Is added to the real number array B having
This calculation is performed by the following equation.

【0070】[0070]

【数15】 以上の演算を行うことにより、横方向にi番目、縦方向
にj番目の分割領域に対する処理が完了する。この処理
結果を、前述の実施例1と同様、以下の変換式を用いた
演算処理で空間周波数0に相当する成分を画像の中心に
なるように変換し、それぞれの空間周波数成分を画素の
明るさとして空間周波数スペクトルを表現することが出
来る。
(Equation 15) By performing the above calculation, the processing for the i-th divided region in the horizontal direction and the j-th divided region in the vertical direction is completed. As in the first embodiment, the processing result is converted to a component corresponding to a spatial frequency of 0 so as to be at the center of the image by an arithmetic processing using the following conversion formula, and each spatial frequency component is converted to the brightness of the pixel. As a result, a spatial frequency spectrum can be expressed.

【0071】[0071]

【数16】 ここで、C(s,t)もw×hの要素数を持つ2次元実
数配列である。
(Equation 16) Here, C (s, t) is also a two-dimensional real number array having the number of elements of w × h.

【0072】(実施例3)前述の実施例1に示したフー
リエ変換処理では、図4に示したように、フーリエ変換
結果は中心部の明るい分布がフーリエ変換する領域の外
の境界の影響のため若干縦と横方向にストリークになっ
ていたが、ここでは、このストリークを発生させないよ
うに窓関数を工夫した実施例について説明する。
(Embodiment 3) In the Fourier transform processing shown in the above-mentioned first embodiment, as shown in FIG. 4, the Fourier transform result shows the effect of the influence of the boundary outside the region where the bright distribution in the center is subjected to the Fourier transform. For this reason, streaks slightly occur in the vertical and horizontal directions. Here, an embodiment in which a window function is devised so as not to generate the streaks will be described.

【0073】本実施例では、図6に示すような電子顕微
鏡写真(化合物半導体断面)をイメージスキャナ装置を
用いて200dpi(1インチあたり200画素)の精
度でデジタル化し、画像入力用コンピュータに取り込ん
だ。画像は横幅約450オングストローム、縦幅約35
0オングストロームの観察領域をデジタル化し、横幅6
40画素、縦幅512画素のビットマップ形式の画像と
してコンピュータファイルとしてコンピュータの2次記
憶媒体である光磁気ディスク媒体に記録した。
In this embodiment, an electron micrograph (cross section of a compound semiconductor) as shown in FIG. 6 was digitized with an image scanner at an accuracy of 200 dpi (200 pixels per inch), and was taken into a computer for image input. . The image is about 450 angstroms in width and about 35 in height
Digitized observation area of 0 Å, width 6
A 40-pixel, 512-pixel vertical width bitmap image was recorded as a computer file on a magneto-optical disk medium as a secondary storage medium of a computer.

【0074】次に、この光磁気ディスク媒体を画像入力
用コンピュータの光磁気ディスクドライブから取り出
し、画像処理用コンピュータの光磁気ディスクドライブ
に入れ、イメージスキャナ装置で取り込んだ電子顕微鏡
画像のビットマップ形式ファイルを画像処理用コンピュ
ータに取り込んだ。そして、このビットマップ形式ファ
イルの画像(原画像)に対して以下のような手順でデジ
タル画像処理を行った。
Next, the magneto-optical disk medium is taken out of the magneto-optical disk drive of the image input computer, put into the magneto-optical disk drive of the image processing computer, and stored in a bitmap format file of the electron microscope image fetched by the image scanner. Was taken into a computer for image processing. Then, digital image processing was performed on the image (original image) of this bitmap format file in the following procedure.

【0075】ビットマップ形式ファイルを画像の一番左
隅下の画素座標を原点として、横方向右向きにX軸、縦
方向上向きにY軸を設定し、X方向Y方向共に1画素間
隔を単位長さ1として、図7に示すような領域に分割す
る。これら分割領域はすべて等しく、幅128画素、高
さ128画素の大きさである。隣接した領域の重なり合
いもすべて等しく、縦方向横方向共に分割領域の半分の
幅である。これら分割領域はすべて、分割した個々の領
域の左下隅が原点になるように座標を取り直し、幅12
8画素、高さ128画素の画像として、それぞれをビッ
トマップ形式の画像ファイルとして画像処理用コンピュ
ータの2次記憶媒体に記録する。
An X axis is set to the right in the horizontal direction and a Y axis is set to the vertical direction with the pixel coordinates at the lower left corner of the image as the origin, and the pixel length is set to one pixel interval in both the X and Y directions. The area is divided into areas as shown in FIG. These divided areas are all equal and have a size of 128 pixels in width and 128 pixels in height. The overlapping of the adjacent areas is all the same, and is half the width of the divided area in both the vertical and horizontal directions. In all of these divided areas, the coordinates are recalculated so that the lower left corner of each divided area becomes the origin, and the width 12
As an image having 8 pixels and a height of 128 pixels, each is recorded as a bitmap image file in a secondary storage medium of an image processing computer.

【0076】分割した各々のビットマップ形式画像zu
11〜zu79を次の処理により、新しいビットマップ
形式画像tzu11〜tzu79に変換する。ここで、
新しいビットマップ形式画像tzu11〜tzu79も
変換前と同じで、横幅128画素、高さ128画素であ
る。この新しいビットマップ形式画像の具体的な作成手
順として、ここではzu11の画像を例に説明する。
Each divided bitmap format image zu
11 to zu79 are converted into new bitmap format images tzu11 to tzu79 by the following processing. here,
The new bitmap format images tzu11 to tzu79 are the same as before conversion, and have a width of 128 pixels and a height of 128 pixels. As a specific procedure for creating this new bitmap format image, an example of a zu11 image will be described here.

【0077】まず、画像処理用コンピュータの2次記憶
媒体からビットマップ形式画像zu11を読み出し、そ
の座標を前述と同様、画像の一番左隅下の画素座標を原
点として、横方向右向きにX軸、縦方向上向きにY軸を
設定し、X方向Y方向共に1画素間隔を単位長さ1とし
て、座標x,yの位置の画素の明るさをF(x,y)で
表す。新しいビットマップ形式画像tzu11の座標を
同じく、画像の一番左隅下の画素座標を原点として、横
方向右向きにX軸、縦方向上向きにY軸を設定し、X方
向Y方向共に1画素間隔を単位長さ1として、座標x,
yの位置の画素の明るさをG(x,y)で表す。ビット
マップ形式画像zu11に含まれる全画素を
First, the bitmap format image zu11 is read from the secondary storage medium of the image processing computer, and its coordinates are set to the X-axis in the horizontal direction rightward with the coordinates of the pixel at the lower left corner of the image as the origin, as described above. The Y axis is set upward in the vertical direction, and the brightness of the pixel at the coordinates x, y is represented by F (x, y), with one pixel interval as the unit length 1 in both the X and Y directions. Using the coordinates of the new bitmap format image tzu11 as the origin, the X axis is set to the right in the horizontal direction and the Y axis is set to the vertical direction with the pixel coordinates at the lower left corner of the image as the origin. The coordinates x,
The brightness of the pixel at the position y is represented by G (x, y). All pixels included in the bitmap format image zu11

【0078】[0078]

【数17】 G(x,y)=H(x)H(y)F(x,y) の演算により変換し、新しいビットマップ形式画像tz
u11を作成し、それぞれを画像ファイルとして画像処
理用コンピュータの2次記憶媒体に記録する。変換関数
(x)とH(y)は以下の式で与えられる。
G (x, y) = H w (x) H h (y) F (x, y) is converted into a new bitmap format image tz
u11 is created and recorded as an image file in the secondary storage medium of the image processing computer. The conversion functions H w (x) and H h (y) are given by the following equations.

【0079】[0079]

【数18】 ここで、定数wとhは分割した画像の幅と高さの画素数
で、本実施例では共に128である。
(Equation 18) Here, the constants w and h are the number of pixels of the width and height of the divided image, and are both 128 in this embodiment.

【0080】このzu11以外のビットマップ形式画像
zu12〜zu79についても、zu11の場合と同じ
変換関数を用いた処理で変換して新しいビットマップ形
式画像tzu12〜tzu79を作成し、それぞれ画像
ファイルとして画像処理用コンピュータの2次記憶媒体
に記録する。
The bitmap format images zu12 to zu79 other than zu11 are also converted by processing using the same conversion function as in the case of zu11 to create new bitmap format images tzu12 to tzu79, each of which is processed as an image file. On a secondary storage medium of the computer for use.

【0081】次いで、上述のようにして画像処理用コン
ピュータの2次記憶媒体に記録したビットマップ形式画
像tzu11〜tzu79について2次元デジタルフー
リエ変換処理を行い、新しく2次元フーリエ変換データ
ftzu11〜ftzu79を作成する。ここでは、t
zu11〜tzu79は全て128×128点から構成
される2次元配列データであるため、この2次元デジタ
ルフーリエ変換処理として汎用の高速フーリエ変換処理
であるCooley−Tukeyのアルゴリズムを用い
る。具体的には、ビットマップ形式画像の各画素を要素
とした複素数2次元配列データを準備し、この複素数2
次元配列データの実数部にビットマップ形式画像の各画
素の明るさを代入する。ここでは、虚数部はすべて0と
する。次に、この128×128のサイズの複素数2次
元配列データについて2次元FFT処理を行い、その変
換結果として128×128のサイズの複素数2次元配
列データを得る。以下に、この処理をtzu11からf
tzu79への変換を例に具体的に説明する。
Next, two-dimensional digital Fourier transform processing is performed on the bitmap format images tzu11 to tzu79 recorded on the secondary storage medium of the image processing computer as described above, and new two-dimensional Fourier transform data ftzu11 to ftzu79 are created. Do. Here, t
Since zu11 to tzu79 are all two-dimensional array data composed of 128 × 128 points, a Cooley-Tukey algorithm, which is a general-purpose fast Fourier transform process, is used as the two-dimensional digital Fourier transform process. Specifically, complex two-dimensional array data in which each pixel of the bitmap format image is an element is prepared, and this complex number 2
The brightness of each pixel of the bitmap image is substituted for the real part of the dimensional array data. Here, all the imaginary parts are 0. Next, two-dimensional FFT processing is performed on the complex number two-dimensional array data having a size of 128 × 128, and as a result of the conversion, complex two-dimensional array data having a size of 128 × 128 is obtained. Hereinafter, this processing is performed from tzu11 to f
The conversion to tzu79 will be specifically described as an example.

【0082】ビットマップ形式画像tzu11を画像処
理用コンピュータの2次記憶媒体から読み出し、その座
標を上記と同じく、画像の一番左隅下の画素座標を原点
として、横方向右向きにX軸、縦方向上向きにY軸を設
定し、X方向Y方向共に1画素間隔を単位長さ1とし
て、座標x,yの位置の画素の明るさをG(x,y)で
表す。ftzu11の2次元配列の各配列要素をR
(s,t)で表すと、以下の式を用いてG(x,y)か
らR(s,t)を計算することができる。
The bitmap format image tzu11 is read from the secondary storage medium of the image processing computer, and its coordinates are set in the same manner as described above, with the pixel coordinates at the lower left corner of the image as the origin, the X axis to the right in the horizontal direction, and the vertical direction. The Y axis is set upward, and the brightness of the pixel at the position of the coordinates x, y is represented by G (x, y), with one pixel interval being the unit length 1 in both the X and Y directions. Each array element of the two-dimensional array of ftzu11 is R
When represented by (s, t), R (s, t) can be calculated from G (x, y) using the following equation.

【0083】[0083]

【数19】 ここで、定数wとhは画像の幅および高さであり、配列
要素は添え字「0」〜「w−1」および「0」〜「h−
1」の範囲である。この変換結果である128×128
のサイズの複素数2次元配列データR(s,t)をそれ
ぞれ2次元フーリエ変換データftzu11〜ftzu
79とし、それぞれを画像ファイルとして画像処理用コ
ンピュータの2次記憶媒体に記録する。
[Equation 19] Here, the constants w and h are the width and height of the image, and the array elements are suffixes “0” to “w−1” and “0” to “h-
1 ". 128 × 128 which is the conversion result
Are converted to the two-dimensional Fourier transform data ftzu11 to ftzu, respectively.
79, and each is recorded as an image file in the secondary storage medium of the image processing computer.

【0084】次に、上記処理によって得られた2次元フ
ーリエ変換データftzu11〜ftzu79を以下の
処理によって足し合わせて2次元フーリエスペクトルを
計算する。
Next, a two-dimensional Fourier spectrum is calculated by adding the two-dimensional Fourier transform data ftzu11 to ftzu79 obtained by the above processing by the following processing.

【0085】まず、画像処理用コンピュータの2次記憶
媒体に記録された2次元フーリエ変換データftzu1
1〜ftzu79をすべて読み出す。読み出したデータ
は、複素数4次元データ配列A(i,j,s,t)とし
て画像処理用コンピュータの1次記憶素子に格納する。
ここで、データ配列の添え字i,j,s,tのうち、i
は画像処理用コンピュータの2次記憶媒体に記録された
2次元フーリエ変換データftzu11〜ftzu79
の最初の添え字を表わし、jはその2番目の添え字を表
わす。sとtはそれら各々の2次元フーリエ変換データ
の配列の添え字、つまり上述の複素数2次元配列データ
R(s,t)の添え字sとtに対応する。この複素数4
次元データ配列A(i,j,s,t)から、以下の式を
用いて実数2次元データ配列B(s,t)を求める。
First, the two-dimensional Fourier transform data ftzu1 recorded on the secondary storage medium of the image processing computer
1 to ftzu79 are all read. The read data is stored in a primary storage element of the image processing computer as a complex four-dimensional data array A (i, j, s, t).
Here, among the subscripts i, j, s, and t of the data array, i
Are two-dimensional Fourier transform data ftzu11 to ftzu79 recorded on a secondary storage medium of an image processing computer.
Represents the first subscript, and j represents its second subscript. s and t correspond to the subscripts of the respective arrays of the two-dimensional Fourier transform data, that is, the subscripts s and t of the above-described complex two-dimensional array data R (s, t). This complex number 4
From the dimensional data array A (i, j, s, t), a real number two-dimensional data array B (s, t) is obtained using the following equation.

【0086】[0086]

【数20】 上記処理によって求めた実数2次元データ配列B(s,
t)は、図4に示した電子顕微鏡写真全体の空間周波数
スペクトルに相当する。この実数2次元データ配列B
(s,t)の空間周波数スペクトルのsとtのスケール
は、通常の方式で128×128画素の2次元画像デー
タを2次元デジタルフーリエ変換した場合と同じであ
り、B(0,0)が空間周波数0の成分に相当し、wを
分割画像の幅、hを分割画像の高さとした時、B(w/
2,0)が丁度2画素分の波長に対応した横方向の空間
周波数成分に相当し、B(0,h/2)が丁度2画素分
の波長に対応した縦方向の空間周波数成分に相当する。
本実施例ではw、h共に128である。
(Equation 20) The real number two-dimensional data array B (s,
t) corresponds to the spatial frequency spectrum of the entire electron micrograph shown in FIG. This real two-dimensional data array B
The scale of s and t of the spatial frequency spectrum of (s, t) is the same as the case where the two-dimensional image data of 128 × 128 pixels is subjected to the two-dimensional digital Fourier transform by a normal method, and B (0, 0) is When w is the width of the divided image and h is the height of the divided image, B (w /
(2,0) corresponds to the horizontal spatial frequency component corresponding to the wavelength of exactly two pixels, and B (0, h / 2) corresponds to the vertical spatial frequency component corresponding to the wavelength of exactly two pixels. I do.
In this embodiment, both w and h are 128.

【0087】上述のデータ処理では、元の大きな画像を
小さな領域に区切っているため、分割した領域の幅や高
さ以上の長い波長に相当する空間周波数成分は一切計算
してされていない。
In the above-described data processing, since the original large image is divided into small regions, no spatial frequency component corresponding to a longer wavelength than the width or height of the divided region is calculated at all.

【0088】上述の処理結果を以下の変換式を用いた演
算処理で空間周波数0に相当する成分を画像の中心にな
るように変換し、それぞれの空間周波数成分を画素の明
るさとして空間周波数スペクトルを表現することが出来
る。
The above processing result is converted by an arithmetic processing using the following conversion equation so that a component corresponding to a spatial frequency of 0 becomes the center of the image, and each spatial frequency component is set as the brightness of a pixel, and the spatial frequency spectrum Can be expressed.

【0089】[0089]

【数21】 ここで、wとhはB(s,t)配列のsとtの範囲であ
り、sは「0」〜「w−1」、tは「0」〜「h−1」
である。本実施例ではw、h共に128である。
(Equation 21) Here, w and h are in the range of s and t in the B (s, t) array, where s is "0" to "w-1" and t is "0" to "h-1".
It is. In this embodiment, both w and h are 128.

【0090】上記の演算結果を図8に示す。この図8に
示すフーリエ変換スペクトルでは、中心部に明るい分布
があり空間周波数が小さい成分が大きいが、前述の実施
例1の結果(図4)とは異なり、中心部の明るい分布に
はストリークは見られない。これは、フーリエ変換する
領域の外の境界を徐々に0にするような滑らかな窓関数
を用いたことによる。
FIG. 8 shows the result of the above operation. In the Fourier transform spectrum shown in FIG. 8, although there is a bright distribution at the center and a component having a small spatial frequency is large, unlike the result of the first embodiment (FIG. 4), there is no streak in the bright distribution at the center. can not see. This is due to the use of a smooth window function that gradually sets the boundary outside the area to be Fourier-transformed to zero.

【0091】(実施例4)上述の実施例3では、画像処
理用コンピュータで元画像の分割、窓関数の掛け合わ
せ、2次元フーリエ変換処理、フーリエ変換結果の足し
合わせ処理を、コンピュータの2次記憶媒体に毎回記憶
させながら手動で行っているが、これら中間処理結果を
コンピュータの2次記憶媒体に記録せずに、バッチ処理
として自動的に一連の処理を行うことが可能である。図
9に、その処理フローの1例を示す。
(Embodiment 4) In Embodiment 3 described above, the image processing computer performs the division of the original image, the multiplication of window functions, the two-dimensional Fourier transform processing, and the addition processing of the Fourier transform results. Although the manual processing is performed while storing the intermediate processing results in the storage medium every time, a series of processing can be automatically performed as a batch processing without recording the intermediate processing results in the secondary storage medium of the computer. FIG. 9 shows an example of the processing flow.

【0092】まず、ステップS200にて、デジタル化
されたビットマップ形式の画像ファイルを自動的に分割
する処理を行う。ただし、分割領域の大きさは最終的な
空間周波数スペクトルの粗さになるため、この大きさだ
けは本自動処理プログラムを利用する利用者が適宜判断
して入力パラメータとして入力する。このようにして入
力された分割領域の幅をw、高さをhとする。これらw
とhは、高速フーリエ変換処理を利用できるように2の
整数乗の値であることが好ましい。元のデジタル化され
たビットマップ形式の画像サイズを幅W、高さHとす
る。これらのパラメータから分割する領域数を横方向に
、縦方向にnとすると、これらは
First, in step S200, processing for automatically dividing a digitized image file in a bitmap format is performed. However, since the size of the divided area becomes the final roughness of the spatial frequency spectrum, the user using the automatic processing program appropriately determines only this size and inputs it as an input parameter. The width and height of the divided area input in this manner are defined as w and h, respectively. These w
And h are preferably integer powers of 2 so that fast Fourier transform processing can be used. The original digitized bitmap format image size is assumed to be width W and height H. Assuming that the number of regions to be divided from these parameters is n w in the horizontal direction and n h in the vertical direction,

【0093】[0093]

【数22】 で表わされる。ここで、括弧[]はガウスの記号で、
[x]は実数xを超えない最大の整数を意味する。
(Equation 22) Is represented by Where the brackets [] are Gaussian symbols,
[X] means the largest integer not exceeding the real number x.

【0094】上記の演算式によれば、(n+1)w/
2がWと等しくない場合や(n+1)h/2がHと等
しくない場合は,分割領域に完全に含まれない領域が出
来てしまう。この点が本実施例の分割処理法の制限とな
る。
According to the above equation, (n w +1) w /
If 2 is not equal to W, or if (n h +1) h / 2 is not equal to H, a region that is not completely included in the divided region will be created. This is a limitation of the division processing method of this embodiment.

【0095】次に分割領域の範囲を決定する。分割前の
画像の一番左隅下の画素座標を原点として、横方向右向
きにX軸、縦方向上向きにY軸を設定し、X方向Y方向
共に1画素間隔を単位長さ1として、横方向にi番目、
縦方向にj番目の分割領域の範囲は、
Next, the range of the divided area is determined. With the pixel coordinates at the lower left corner of the image before division as the origin, the X axis is set to the right in the horizontal direction, and the Y axis is set to the upward in the vertical direction. I-th,
The range of the j-th divided area in the vertical direction is

【0096】[0096]

【数23】 で与えられる。ここで、βとβは分割領域に完全に
含まれない領域を元画像の両端のどちらの部分にどの程
度にするかを決定するためのパラメータである。ここで
は、
(Equation 23) Given by Here, β w and β h are parameters for determining which part of both ends of the original image and how much an area that is not completely included in the divided area. here,

【0097】[0097]

【数24】 とすることで、その分割領域は元画像の両端とほぼ同程
度になるように設定される。
(Equation 24) Thus, the divided area is set to be substantially the same as both ends of the original image.

【0098】次に、ステップS201にて、2次元フー
リエ変換結果を足し合わせて記憶するためのw×hの要
素を持つ実数配列Bの全要素をすべて0に初期化する。
ここで、すべての配列は添え字の始まりが0である。
Next, in step S201, all elements of the real number array B having w × h elements for adding and storing the results of the two-dimensional Fourier transform are initialized to zero.
Here, the start of the subscript is 0 for all the arrays.

【0099】初期化後、上記の方法で決めた分割範囲に
したがって、まず一番左下隅の分割領域のビットマップ
形式データを取り出して2次元フーリエ変換処理し、そ
の結果を2次元フーリエ変換結果を足し合わせて記憶す
るための配列Bに足し合わせる。続いて、その隣の領域
に対して同じ処理を行い再び2次元フーリエ変換結果を
足し合わせて記憶するための配列Bにその処理結果を足
し合わせる。この繰り返しを全ての分割領域に対して行
い、2次元フーリエ変換結果を足し合わせて記憶するた
めの配列Bを計算する(ステップS102〜S11
1)。このようにして得られた配列Bは、次の処理を行
うブロック(図1のフィルタ処理部24)へ出力される
(ステップS112)。
After the initialization, according to the division range determined by the above method, first, the bitmap format data of the division area at the lower left corner is extracted and subjected to two-dimensional Fourier transform processing, and the result is converted to the two-dimensional Fourier transform result. The sum is added to an array B for adding and storing. Subsequently, the same processing is performed on the adjacent area, and the processing result is added to an array B for adding and storing the two-dimensional Fourier transform result again. This repetition is performed for all the divided regions, and an array B for adding and storing the two-dimensional Fourier transform results is calculated (steps S102 to S11).
1). Array B obtained in this way is output to a block that performs the following processing (filter processing unit 24 in FIG. 1) (step S112).

【0100】以下に、横方向にi番目、縦方向にj番目
の分割領域に対する変換処理手順を詳細に説明する。
Hereinafter, the conversion processing procedure for the i-th divided area in the horizontal direction and the j-th divided area in the vertical direction will be described in detail.

【0101】分割前のビットマップ形式の画像から横方
向にi番目、縦方向にj番目の分割領域の要素をすべて
取り出し、各要素をw×hの要素を持つ実数配列Zにコ
ピーする。分割前のビットマップ形式データをW×Hの
要素を持つ2次元配列Iとして表現すると、そのコピー
All the elements of the i-th divided area in the horizontal direction and the j-th divided area in the vertical direction are extracted from the bitmap format image before division, and each element is copied to a real number array Z having w × h elements. If the bitmap format data before division is expressed as a two-dimensional array I having W × H elements, the copy is

【0102】[0102]

【数25】 の演算を、それぞれ「0」〜「w−1」、「0」〜「h
−1」の範囲の整数xとyの全ての組み合わせに対して
行う。
(Equation 25) Are calculated as “0” to “w−1” and “0” to “h”, respectively.
This is performed for all combinations of integers x and y in the range of "-1".

【0103】次に、窓関数F(x)とF(y)をそ
れぞれ要素数wとhの実数1次元配列として全要素を以
下のように計算する。
Next, assuming the window functions F w (x) and F h (y) as real one-dimensional arrays of the numbers of elements w and h, all elements are calculated as follows.

【0104】[0104]

【数26】 この窓関数配列を用いて、分割領域データ配列Zからw
×hの要素数を持つ2次元複素数配列Gを以下の計算
で、全部の要素について求める。
(Equation 26) Using this window function array, the divided area data array Z to w
A two-dimensional complex array G having the number of elements of × h is obtained for all elements by the following calculation.

【0105】[0105]

【数27】 G(x,y)=F(x)F(y)Z(x,y) G(x,y)=0 ここで、GとGはそれぞれ複素数配列Gの実数部と
虚数部である。このようにして求めた2次元複素数配列
Gを2次元フーリエ変換処理する。ここで、2次元フー
リエ変換処理は次の計算で行い、その変換結果をw×h
の要素数を持つ2次元複素数配列Rの全要素に格納す
る。
Equation 27] G r (x, y) = F w (x) F h (y) Z (x, y) G i (x, y) = 0 Here, G r and G i are complex number sequence G Are the real and imaginary parts of. The two-dimensional complex array G thus obtained is subjected to two-dimensional Fourier transform processing. Here, the two-dimensional Fourier transform processing is performed by the following calculation, and the result of the conversion is expressed as w × h
Is stored in all the elements of the two-dimensional complex number array R having the number of elements.

【0106】[0106]

【数28】 ここで、RとRはそれぞれ複素数配列Rの実数部と
虚数部である。ただし、wとhが共に2の整数乗の場合
は、汎用のCooley−Tukeyのアルゴリズムを
用いた2次元FFT処理によって同じ計算を短時間で行
うことが出来る。
[Equation 28] Here, R r and R i are the real part and the imaginary part of the complex number array R, respectively. However, when both w and h are integer powers of 2, the same calculation can be performed in a short time by two-dimensional FFT processing using a general-purpose Cooley-Tukey algorithm.

【0107】上記2次元フーリエ変換処理によって求め
られたw×hの要素数を持つ2次元複素数配列Rについ
て、全要素を次の2次元フーリエ変換結果を足し合わせ
て記憶するためのw×hの要素を持つ実数配列Bに足し
合わせる。この計算は、以下の式により行う。
For a two-dimensional complex array R having the number of w × h elements obtained by the two-dimensional Fourier transform processing, all the elements are w × h for storing the following two-dimensional Fourier transform results. Add to real array B with elements. This calculation is performed by the following equation.

【0108】[0108]

【数29】 以上の演算を行うことにより、横方向にi番目、縦方向
にj番目の分割領域に対する処理が完了する。この処理
結果を実施例1と同様、以下の処理で空間周波数0に相
当する成分を画像の中心になるように変換し、それぞれ
の空間周波数成分を画素の明るさとして空間周波数スペ
クトルを表現することが出来る。この場合の変換式は、
(Equation 29) By performing the above calculation, the processing for the i-th divided region in the horizontal direction and the j-th divided region in the vertical direction is completed. This processing result is converted into a component corresponding to a spatial frequency of 0 so as to be at the center of the image by the following processing as in the first embodiment, and a spatial frequency spectrum is expressed using each spatial frequency component as the brightness of a pixel. Can be done. The conversion formula in this case is

【0109】[0109]

【数30】 で与えられる。ここで、C(s,t)もw×hの要素数
を持つ2次元実数配列である。
[Equation 30] Given by Here, C (s, t) is also a two-dimensional real number array having the number of elements of w × h.

【0110】(実施例5)前述の実施例3に示したフー
リエ変換処理では、元画像の大きさによっては両端部に
完全にフーリエ変換処理されない領域が生じてしまう制
約があった。ここでは、その完全にフーリエ変換処理さ
れない領域が生じないように領域分割法と窓関数を工夫
した例を説明する。
(Fifth Embodiment) In the Fourier transform processing shown in the above-described third embodiment, there is a restriction that an area that is not completely subjected to Fourier transform processing occurs at both ends depending on the size of the original image. Here, an example will be described in which the region dividing method and the window function are devised so that a region that is not completely subjected to Fourier transform processing does not occur.

【0111】本実施例では、図10に示すような電子顕
微鏡写真(シリコン半導体表面層断面)をイメージスキ
ャナ装置を用いて300dpi(1インチあたり300
画素)の精度でデジタル化し画像入力用コンピュータに
取り込んだ。画像は横幅約400オングストローム、縦
幅約250オングストロームの観察領域をデジタル化し
横幅600画素、縦幅400画素のビットマップ形式の
画像としてコンピュータファイルとしてコンピュータの
2次記憶媒体である光磁気ディスク媒体に記録した。
In this embodiment, an electron microscope photograph (cross section of a silicon semiconductor surface) as shown in FIG. 10 was obtained at 300 dpi (300 per inch) using an image scanner.
(Pixels) and digitized into a computer for image input. The image is digitized from an observation area of about 400 angstroms in width and about 250 angstroms and recorded as a bitmap format image of 600 pixels in width and 400 pixels in height on a magneto-optical disk medium which is a secondary storage medium of a computer as a computer file. did.

【0112】次に、この光磁気ディスク媒体を画像入力
用コンピュータの光磁気ディスクドライブから取り出
し、画像処理用コンピュータの光磁気ディスクドライブ
に入れ、イメージスキャナ装置で取り込んだ電子顕微鏡
画像のビットマップ形式ファイルを画像処理用コンピュ
ータに取り込んだ。そして、このビットマップ形式ファ
イルの画像(原画像)に対して以下のような手順でデジ
タル画像処理を行った。
Next, the magneto-optical disk medium is removed from the magneto-optical disk drive of the image input computer, inserted into the magneto-optical disk drive of the image processing computer, and stored in a bitmap format file of the electron microscope image captured by the image scanner. Was taken into a computer for image processing. Then, digital image processing was performed on the image (original image) of this bitmap format file in the following procedure.

【0113】ビットマップ形式ファイルを画像の一番左
隅下の画素座標を原点として、横方向右向きにX軸、縦
方向上向きにY軸を設定し、X方向Y方向共に1画素間
隔を単位長さ1として、図11に示すような領域に分割
する。本実施例では、元の画像範囲外の部分は任意の値
を入れることとする。これらの分割した領域は、すべて
等しく幅128画素、高さ128画素の大きさである。
また、これらの領域はすべて分割した個々の領域の左下
隅が原点になるように座標を取り直し、幅128画素、
高さ128画素の画像として、それぞれをビットマップ
形式の画像ファイルとして画像処理用コンピュータの2
次記憶媒体に記録する。
An X axis is set to the right in the horizontal direction and a Y axis is set to the vertical direction with the pixel coordinates at the lower left corner of the image as the origin. The area is divided into areas as shown in FIG. In the present embodiment, an arbitrary value is set for a portion outside the original image range. All of these divided areas are equally 128 pixels wide and 128 pixels high.
In addition, these regions are all re-coordinated so that the origin is at the lower left corner of each divided region, and a width of 128 pixels,
Each of the image processing computers 2 is an image file having a height of 128 pixels, and each is an image file in a bitmap format.
Record in the next storage medium.

【0114】分割した各々のビットマップ形式画像zu
11〜zu69を新しいビットマップ形式画像tzu1
1〜tzu69に変換する。ここで、新しいビットマッ
プ形式画像tzu11〜tzu69も変換前と同じ幅1
28画素、高さ128画素である。この新しいビットマ
ップ形式画像への変換処理について、zu11の画像を
例に以下に説明する。
Each divided bitmap format image zu
11 to zu69 are converted to new bitmap format images tzu1.
1 to tzu69. Here, the new bitmap format images tzu11 to tzu69 also have the same width 1 as before conversion.
There are 28 pixels and 128 pixels in height. The conversion process to the new bitmap format image will be described below using an example of zu11 image.

【0115】まず、ビットマップ形式画像zu11を画
像処理用コンピュータの2次記憶媒体から読み出し、そ
の座標を前述と同様、画像の一番左隅下の画素座標を原
点として、横方向右向きにX軸、縦方向上向きにY軸を
設定し、X方向Y方向共に1画素間隔を単位長さ1とし
て、座標x,yの位置の画素の明るさをF(x,y)で
表す。新しいビットマップ形式画像tzu11の座標に
ついても、同様に、画像の一番左隅下の画素座標を原点
として、横方向右向きにX軸、縦方向上向きにY軸を設
定し、X方向Y方向共に1画素間隔を単位長さ1とし
て、座標x,yの位置の画素の明るさをG(x,y)で
表す。ビットマップ形式画像zu11に含まれる全画素
First, the bitmap format image zu11 is read from the secondary storage medium of the image processing computer, and its coordinates are set to the X-axis to the right in the horizontal direction, using the pixel coordinates at the lower left corner of the image as the origin, as described above. The Y axis is set upward in the vertical direction, and the brightness of the pixel at the coordinates x, y is represented by F (x, y), with one pixel interval as the unit length 1 in both the X and Y directions. Similarly, for the coordinates of the new bitmap format image tzu11, the X axis is set to the right in the horizontal direction and the Y axis is set to the upward in the vertical direction, with the pixel coordinates at the lower left corner of the image as the origin. Assuming that the pixel interval is a unit length 1, the brightness of the pixel at the position of the coordinates x, y is represented by G (x, y). All pixels included in the bitmap format image zu11

【0116】[0116]

【数31】 G(x,y)=H(x)H(y)F(x,y) の演算により変換して新しいビットマップ形式画像tz
u11を作成し、それぞれを画像ファイルとして画像処
理用コンピュータの2次記憶媒体に記録する。変換関数
(x)とH(y)は、次式で与えられる。
G (x, y) = H w (x) H h (y) F (x, y)
u11 is created and recorded as an image file in the secondary storage medium of the image processing computer. The conversion functions H w (x) and H h (y) are given by the following equations.

【0117】[0117]

【数32】 ここで、定数wとhは分割した画像の幅と高さの画素数
を表わし、本実施例では共に128である。
(Equation 32) Here, the constants w and h represent the number of pixels of the width and height of the divided image, and are both 128 in this embodiment.

【0118】このzu11以外のビットマップ形式画像
zu12〜zu79についても、zu11の場合と同様
な変換関数を用いた処理で変換して新しいビットマップ
形式画像tzu12〜tzu79を作成し、それぞれを
画像ファイルとして画像処理用コンピュータの2次記憶
媒体に記録する。ただし、H(y)はzu11〜zu
69で若干異なり、以下のように与えられるものとす
る。
The bitmap format images zu12 to zu79 other than zu11 are also converted by processing using the same conversion function as in the case of zu11 to create new bitmap format images tzu12 to tzu79, each of which is used as an image file. The image is recorded on the secondary storage medium of the image processing computer. Here, H h (y) is zu11 to zu.
At 69 it is slightly different and is given as follows.

【0119】[0119]

【数33】 で与えられる。[Equation 33] Given by

【0120】[0120]

【数34】114≦yの範囲では、zu11〜zu69
共通で H(y)=0 で与えられる。
In the range of 114 ≦ y, zu11 to zu69
Commonly given by H h (y) = 0.

【0121】上記の演算により得られたビットマップ形
式画像tzu11〜tzu69は、画像ファイルとして
画像処理用コンピュータの2次記憶媒体に一旦記録され
る。
The bitmap format images tzu11 to tzu69 obtained by the above calculation are temporarily recorded as image files in the secondary storage medium of the image processing computer.

【0122】続いて、この2次記憶媒体からビットマッ
プ形式画像tzu11〜tzu69を読み出して2次元
デジタルフーリエ変換処理を行い、新しく2次元フーリ
エ変換データftzu11〜ftzu69を作成する。
ここでtzu11〜tzu69は全て128×128点
から構成される2次元配列データであるため、この2次
元デジタルフーリエ変換処理として汎用の高速フーリエ
変換処理であるCooley−Tukeyのアルゴリズ
ムを用いることができる。具体的には、以下のような変
換処理を行う。
Subsequently, the bitmap format images tzu11 to tzu69 are read from the secondary storage medium and subjected to a two-dimensional digital Fourier transform process to create new two-dimensional Fourier transform data ftzu11 to ftzu69.
Here, since all of tzu11 to tzu69 are two-dimensional array data composed of 128 × 128 points, a Cooley-Tukey algorithm which is a general-purpose high-speed Fourier transform can be used as the two-dimensional digital Fourier transform. Specifically, the following conversion processing is performed.

【0123】まず、ビットマップ形式画像の各画素を要
素とした複素数2次元配列データを準備する。ここで
は、複素数2次元配列データの実数部にビットマップ形
式画像の各画素の明るさを代入し、虚数部はすべて0と
する。この128×128のサイズの複素数2次元配列
データについて2次元FFT処理を行い、その変換結果
として128×128のサイズの複素数2次元配列デー
タを得る。
First, complex two-dimensional array data in which each pixel of the bitmap format image is an element is prepared. Here, the brightness of each pixel of the bitmap format image is substituted for the real part of the complex two-dimensional array data, and all the imaginary parts are set to zero. Two-dimensional FFT processing is performed on the complex number two-dimensional array data having a size of 128 × 128, and as a result of the conversion, complex two-dimensional array data having a size of 128 × 128 is obtained.

【0124】上記の処理をtzu11からftzu69
への変換を例に説明すると、以下のようなこととなる。
The above processing is performed from tzu11 to ftzu69.
The following is an example of the conversion to.

【0125】ビットマップ形式画像tzu11を画像処
理用コンピュータの2次記憶媒体から読み出し、その座
標を上記と同じく、画像の一番左隅下の画素座標を原点
として、横方向右向きにX軸、縦方向上向きにY軸を設
定し、X方向Y方向共に1画素間隔を単位長さ1とし
て、座標x,yの位置の画素の明るさをG(x,y)で
表す。ftzu11の2次元配列の各配列要素をR
(s,t)で表すと、以下の式を用いてG(x,y)か
らR(s,t)を計算することができる。
The bitmap format image tzu11 is read from the secondary storage medium of the image processing computer, and its coordinates are set in the same manner as described above, with the pixel coordinates at the lower left corner of the image as the origin, the X-axis to the right in the horizontal direction, and the vertical direction. The Y axis is set upward, and the brightness of the pixel at the position of the coordinates x, y is represented by G (x, y), with one pixel interval being the unit length 1 in both the X and Y directions. Each array element of the two-dimensional array of ftzu11 is R
When represented by (s, t), R (s, t) can be calculated from G (x, y) using the following equation.

【0126】[0126]

【数35】 ここで、定数wとhは画像の幅および高さであり、配列
要素は添え字「0」〜「w−1」および「0」〜「h−
1」の範囲である。この変換結果である128×128
のサイズの複素数2次元配列データR(s,t)をそれ
ぞれ2次元フーリエ変換データftzu11〜ftzu
69とし、それぞれを画像ファイルとして画像処理用コ
ンピュータの2次記憶媒体に記録する。この処理によっ
て得られた2次元フーリエ変換データftzu11〜f
tzu69を以下の処理によって足し合わせて、合計の
2次元フーリエスペクトルを計算する。
(Equation 35) Here, the constants w and h are the width and height of the image, and the array elements are suffixes “0” to “w−1” and “0” to “h-
1 ". 128 × 128 which is the conversion result
Are converted to the two-dimensional Fourier transform data ftzu11 to ftzu, respectively.
69, and each is recorded as an image file in the secondary storage medium of the image processing computer. Two-dimensional Fourier transform data ftzu11-f obtained by this processing
tzu69 is added by the following processing to calculate a total two-dimensional Fourier spectrum.

【0127】まず、画像処理用コンピュータの2次記憶
媒体に記録された2次元フーリエ変換データftzu1
1〜ftzu69をすべて読み出し、読み出したデータ
を複素数4次元データ配列A(i,j,s,t)として
画像処理用コンピュータの1次記憶素子に格納する。デ
ータ配列の添え字i,j,s,tのうち、iは画像処理
用コンピュータの2次記憶媒体に記録された2次元フー
リエ変換データftzu11〜ftzu55の最初の添
え字で、jはその2番目の添え字を表わす。sとtはそ
れら各々の2次元フーリエ変換データの配列の添え字、
つまり上述の複素数2次元配列データR(s,t)の添
え字sとtに対応する。この複素数4次元データ配列A
(i,j,s,t)から以下の式によって実数2次元デ
ータ配列B(s,t)を求める。
First, the two-dimensional Fourier transform data ftzu1 recorded on the secondary storage medium of the image processing computer
1 to ftzu 69 are read, and the read data is stored in the primary storage element of the image processing computer as a complex four-dimensional data array A (i, j, s, t). Among the subscripts i, j, s, and t of the data array, i is the first subscript of the two-dimensional Fourier transform data ftzu11 to ftzu55 recorded on the secondary storage medium of the image processing computer, and j is the second subscript. Represents the subscript of. s and t are the subscripts of the array of the respective two-dimensional Fourier transform data,
That is, they correspond to the subscripts s and t of the above-described complex two-dimensional array data R (s, t). This complex four-dimensional data array A
A real two-dimensional data array B (s, t) is obtained from (i, j, s, t) by the following equation.

【0128】[0128]

【数36】 上記処理によって求めた実数2次元データ配列B(s,
t)は、図10に示した電子顕微鏡写真画像の全体の空
間周波数スペクトルに相当する。この実数2次元データ
配列B(s,t)の空間周波数スペクトルのsとtのス
ケールは、通常の方式で128×128画素の2次元画
像データを2次元デジタルフーリエ変換した場合と同じ
であり、B(0,0)が空間周波数0の成分に相当す
る。また、wを分割画像の幅、hを分割画像の高さとし
た時、B(w/2,0)が丁度2画素分の波長に対応し
た横方向の空間周波数成分に相当し、B(0,h/2)
が丁度2画素分の波長に対応した縦方向の空間周波数成
分に相当する。本実施例ではw、hは共に128であ
る。
[Equation 36] The real number two-dimensional data array B (s,
t) corresponds to the entire spatial frequency spectrum of the electron micrograph image shown in FIG. The scale of s and t of the spatial frequency spectrum of this real number two-dimensional data array B (s, t) is the same as the case where two-dimensional image data of 128 × 128 pixels is subjected to two-dimensional digital Fourier transform by a normal method. B (0,0) corresponds to the component of spatial frequency 0. When w is the width of the divided image and h is the height of the divided image, B (w / 2,0) corresponds to the spatial frequency component in the horizontal direction corresponding to the wavelength of exactly two pixels, and B (0 , H / 2)
Corresponds to the spatial frequency component in the vertical direction corresponding to the wavelength of exactly two pixels. In this embodiment, both w and h are 128.

【0129】なお、上述の処理では、元の大きな原画像
を小さな領域に区切っているが、分割した領域の幅や高
さ以上の長い波長に相当する空間周波数成分は一切計算
されていない。
In the above-described processing, the original large original image is divided into small areas, but no spatial frequency components corresponding to long wavelengths greater than the width and height of the divided areas are calculated.

【0130】上述の処理結果について、空間周波数0に
相当する成分を画像の中心になるように変換した結果
を、それぞれの空間周波数成分を画素の明るさとして空
間周波数スペクトルを表現した結果を図12に示す。こ
の場合の変換式を以下に示す。
FIG. 12 shows a result obtained by converting a component corresponding to a spatial frequency of 0 into the center of an image with respect to the above processing result, and expressing a spatial frequency spectrum by using each spatial frequency component as the brightness of a pixel. Shown in The conversion formula in this case is shown below.

【0131】[0131]

【数37】 ここで、wとhはB(s,t)配列のsとtの範囲であ
り、sは「0」〜「w−1」、tはは「0」〜「h−
1」である。本実施例ではw,h共に128である。
(37) Here, w and h are the range of s and t in the B (s, t) array, s is “0” to “w−1”, and t is “0” to “h−
1 ". In this embodiment, both w and h are 128.

【0132】(実施例6)上述の実施例5では、画像処
理用コンピュータで元画像の分割、窓関数の掛け合わ
せ、2次元フーリエ変換処理、フーリエ変換結果の足し
合わせ処理を、コンピュータの2次記憶媒体に毎回記憶
させながら手動で行ったが、これら中間処理結果をコン
ピュータの2次記憶媒体に記録せずに、バッチ処理とし
て自動的に一連の操作を行うことが可能である。図13
に、その処理フローの一例を示す。
(Embodiment 6) In Embodiment 5 described above, the image processing computer performs division of the original image, multiplication of window functions, two-dimensional Fourier transform processing, and addition processing of the Fourier transform results by the secondary processing of the computer. Although the manual processing was performed while storing the intermediate processing results in the storage medium each time, a series of operations can be automatically performed as batch processing without recording the intermediate processing results in the secondary storage medium of the computer. FIG.
Shows an example of the processing flow.

【0133】まず、ステップS300にて、デジタル化
されたビットマップ形式の画像ファイルを自動的に分割
する処理を行う。ただし、分割領域の大きさは最終的な
空間周波数スペクトルの粗さになるため、この大きさだ
けは本自動処理プログラムを利用する利用者が適宜判断
して入力パラメータとして入力する。このようにして入
力された分割領域の幅をw、高さをhとする。これらw
とhは、高速フーリエ変換処理を利用できるように2の
整数乗の値であることが好ましい。元のデジタル化され
たビットマップ形式の画像サイズを幅W、高さHとす
る。これらのパラメータから分割する領域数を横方向に
、縦方向にnとすると、これらは
First, in step S300, a process for automatically dividing a digitized bitmap format image file is performed. However, since the size of the divided area becomes the final roughness of the spatial frequency spectrum, the user using the automatic processing program appropriately determines only this size and inputs it as an input parameter. The width and height of the divided area input in this manner are defined as w and h, respectively. These w
And h are preferably integer powers of 2 so that fast Fourier transform processing can be used. The original digitized bitmap format image size is assumed to be width W and height H. Assuming that the number of regions to be divided from these parameters is n w in the horizontal direction and n h in the vertical direction,

【0134】[0134]

【数38】 で表わされる。ここで、括弧[]はガウスの記号で、
[x]は実数xを超えない最大の整数を意味する。以
下、説明で用いる括弧[]は全てこのガウスの記号とし
て扱う。
(38) Is represented by Where the brackets [] are Gaussian symbols,
[X] means the largest integer not exceeding the real number x. Hereinafter, all the brackets [] used in the description are treated as Gaussian symbols.

【0135】次に分割領域の範囲を決定する。分割前の
画像の一番左隅下の画素座標を原点として、横方向右向
きにX軸、縦方向上向きにY軸を設定し、X方向Y方向
共に1画素間隔を単位長さ1として、横方向にi番目、
縦方向にj番目の分割領域の範囲は、
Next, the range of the divided area is determined. With the pixel coordinates at the lower left corner of the image before division as the origin, the X axis is set to the right in the horizontal direction, and the Y axis is set to the upward in the vertical direction. I-th,
The range of the j-th divided area in the vertical direction is

【0136】[0136]

【数39】 で与えられる。[Equation 39] Given by

【0137】次に、ステップS301にて、2次元フー
リエ変換結果を足し合わせて記憶するためのw×hの要
素を持つ実数配列Bの全要素をすべて0に初期化する。
ここでは、すべての配列は添え字の始まりが0であると
する。
Next, in step S301, all elements of the real number array B having w × h elements for adding and storing the results of the two-dimensional Fourier transform are initialized to zero.
Here, it is assumed that the start of the subscript is 0 for all arrays.

【0138】初期化後、上記の方法で決めた分割範囲に
したがって、まず一番左下隅の分割領域のビットマップ
形式データを取り出して2次元フーリエ変換処理し、そ
の結果を2次元フーリエ変換結果を足し合わせて記憶す
るための配列に足し合わせる。次に、その隣の領域に対
して同じ処理を行い再び2次元フーリエ変換結果を足し
合わせて記憶するための配列Bにその処理結果を足し合
わせる。この処理を全ての分割領域に対して行い、2次
元フーリエ変換結果を足し合わせて記憶するための配列
Bを計算する(ステップS302〜S311)。このよ
うにして得られた配列Bは、次の処理を行うブロック
(図1のフィルタ処理部24)へ出力される(ステップ
S312)。
After the initialization, according to the division range determined by the above method, first, the bitmap format data of the division area at the lower left corner is extracted and subjected to two-dimensional Fourier transform processing, and the result is converted to the two-dimensional Fourier transform result. Add to an array to add and remember. Next, the same processing is performed on the adjacent area, and the processing result is added to an array B for adding and storing the two-dimensional Fourier transform result again. This process is performed on all the divided areas, and an array B for storing the two-dimensional Fourier transform results is calculated (steps S302 to S311). The array B thus obtained is output to the block that performs the following processing (the filter processing unit 24 in FIG. 1) (step S312).

【0139】以下に、横方向にi番目、縦方向にj番目
の分割領域に対する変換処理手順を詳細に説明する。
Hereinafter, the conversion processing procedure for the i-th divided area in the horizontal direction and the j-th divided area in the vertical direction will be described in detail.

【0140】分割前のビットマップ形式の画像から横方
向にi番目、縦方向にj番目の分割領域の要素をすべて
取り出し、各要素をw×hの要素を持つ実数配列Zにコ
ピーする。分割前のビットマップ形式データをW×Hの
要素を持つ2次元配列Iとして表現すると、そのコピー
All the elements of the i-th divided area in the horizontal direction and the j-th divided area in the vertical direction are extracted from the image in the bitmap format before division, and each element is copied to a real number array Z having w × h elements. If the bitmap format data before division is expressed as a two-dimensional array I having W × H elements, the copy is

【0141】[0141]

【数40】 の演算を、それぞれ「0」〜「w−1」、「0」〜「h
−1」の範囲の整数xとyの全ての組み合わせに対して
行う。ただし、上の式で配列I(x,y)のx≧Wある
いはy≧Hの要素に関しては任意の値とする。
(Equation 40) Are calculated as “0” to “w−1” and “0” to “h”, respectively.
This is performed for all combinations of integers x and y in the range of "-1". However, in the above equation, the elements of the array I (x, y) where x ≧ W or y ≧ H have an arbitrary value.

【0142】次に、窓関数F(x)とF(y)をそ
れぞれ要素数wとhの実数1次元配列として全要素を以
下のように計算する。
Next, the window functions F w (x) and F h (y) are set as real one-dimensional arrays of the numbers of elements w and h, respectively, and all elements are calculated as follows.

【0143】[0143]

【数41】 この窓関数配列を用いて、分割領域データ配列Zからw
×hの要素数を持つ2次元複素数配列Gを以下の計算
で、全部の要素について求める。
[Equation 41] Using this window function array, the divided area data array Z to w
A two-dimensional complex array G having the number of elements of × h is obtained for all elements by the following calculation.

【0144】[0144]

【数42】 G(x,y)=F(x)F(y)Z(x,y) G(x,y)=0 ここで、GとGはそれぞれ複素数配列Gの実数部と
虚数部である。ここで求めた2次元複素数配列Gを2次
元フーリエ変換処理する。2次元フーリエ変換処理は次
式の計算で行い、その変換結果をw×hの要素数を持つ
2次元複素数配列Rの全要素に格納する。
Equation 42] G r (x, y) = F w (x) F h (y) Z (x, y) G i (x, y) = 0 Here, G r and G i are complex number sequence G Are the real and imaginary parts of. The two-dimensional complex array G obtained here is subjected to two-dimensional Fourier transform processing. The two-dimensional Fourier transform process is performed by the following equation, and the result of the transform is stored in all the elements of the two-dimensional complex number array R having the number of elements of w × h.

【0145】[0145]

【数43】 ここで、RとRはそれぞれ複素数配列Rの実数部と
虚数部である。ただし、wとhが共に2の整数乗の場合
は、汎用のCooley−Tukeyのアルゴリズムを
用いた2次元FFT処理によって同じ計算を短時間で行
うことが出来る。
[Equation 43] Here, R r and R i are the real part and the imaginary part of the complex number array R, respectively. However, when both w and h are integer powers of 2, the same calculation can be performed in a short time by two-dimensional FFT processing using a general-purpose Cooley-Tukey algorithm.

【0146】この2次元フーリエ変換処理によって求め
たw×hの要素数を持つ2次元複素数配列Rを全要素
を、次のようにして2次元フーリエ変換結果を足し合わ
せて記憶するためのw×hの要素を持つ実数配列Bに足
し合わせる。
The two-dimensional complex array R having the number of elements of w × h obtained by the two-dimensional Fourier transform processing is represented by w × for storing all the elements by adding the two-dimensional Fourier transform results as follows. Add to the real number array B having h elements.

【0147】[0147]

【数44】 以上の演算を行うことにより、横方向にi番目、縦方向
にj番目の分割領域に対する処理が完了する。この処理
結果を実施例1と同様、以下の処理で空間周波数0に相
当する成分を画像の中心になるように変換し、それぞれ
の空間周波数成分を画素の明るさとして空間周波数スペ
クトルを表現することが出来る。この場合の変換式は、
[Equation 44] By performing the above calculation, the processing for the i-th divided region in the horizontal direction and the j-th divided region in the vertical direction is completed. This processing result is converted into a component corresponding to a spatial frequency of 0 so as to be at the center of the image by the following processing as in the first embodiment, and a spatial frequency spectrum is expressed using each spatial frequency component as the brightness of a pixel. Can be done. The conversion formula in this case is

【0148】[0148]

【数45】 で与えられる。ここで、C(s,t)もw×hの要素数
を持つ2次元実数配列である。
[Equation 45] Given by Here, C (s, t) is also a two-dimensional real number array having the number of elements of w × h.

【0149】この処理法によって任意の長方形領域の画
像を、完全に処理されない部分を設けずに、フーリエ変
換し空間周波数スペクトルを求めることが可能である。
By this processing method, it is possible to obtain a spatial frequency spectrum by Fourier transforming an image of an arbitrary rectangular area without providing a part that is not completely processed.

【0150】(実施例7)前述の実施例1のデジタル画
像処理の変形例として、複素数2次元配列データR
(s,t)として画像処理用コンピュータの2次記憶媒
体に記録した2次元フーリエ変換データftzu11〜
ftzu55について、特定の空間周波数の成分だけを
取り出して処理するようにすることもできる。ここで
は、その処理について説明する。なお、以下の説明にお
いて、複素数2次元配列データR(s,t)を求めるま
での処理は前述の実施例1の手順と同じため、ここでは
その処理について説明は省略する。
(Seventh Embodiment) As a modification of the digital image processing of the first embodiment, the complex two-dimensional array data R
Two-dimensional Fourier transform data ftzu11 to ftzu11 recorded in the secondary storage medium of the image processing computer as (s, t)
With regard to ftzu 55, it is also possible to take out and process only a component of a specific spatial frequency. Here, the processing will be described. In the following description, the process up to obtaining the complex two-dimensional array data R (s, t) is the same as the procedure of the first embodiment, and the description thereof is omitted here.

【0151】本実施例では、特定の空間周波数の成分だ
けを取り出すために、画像処理用コンピュータの2次記
憶媒体に記録した2次元フーリエ変換データftzu1
1〜ftzu55を読み出しその各々に対して後述する
処理を行い、新しいデータとしてdftzu11〜df
tzu55を画像処理用コンピュータの2次記憶媒体に
記録する。以下、定数wとhをそれぞれ分割画像の幅と
高さとして、ftzu11の処理手順を説明する。
In this embodiment, in order to extract only a component having a specific spatial frequency, the two-dimensional Fourier transform data ftzu1 recorded on the secondary storage medium of the image processing computer is used.
1 to ftzu55, and performs the processing described later on each of them to obtain new data dftzu11 to dfzu11.
The tzu55 is recorded on the secondary storage medium of the image processing computer. Hereinafter, the processing procedure of ftzu11 will be described with the constants w and h as the width and height of the divided image, respectively.

【0152】まず、画像処理用コンピュータの2次記憶
媒体からftzu11をw×hの要素を持つ2次元複素
数配列R(s,t)として格納する。ここで、配列要素
は添え字「0」〜「w−1」と「0」〜「h−1」の範
囲である。この配列R(s,t)から以下の演算を全配
列要素に対して行うことによって、w×hの要素を持つ
新しい2次元複素数配列D(s,t)を求める。
First, ftzu11 is stored as a two-dimensional complex array R (s, t) having w × h elements from the secondary storage medium of the image processing computer. Here, the array elements are in the range of subscripts “0” to “w−1” and “0” to “h−1”. A new two-dimensional complex array D (s, t) having w × h elements is obtained by performing the following operation on all array elements from the array R (s, t).

【0153】[0153]

【数46】D(s,t)=M(s,t)R(s,t) ここで、w×hの要素を持つ2次元複素数配列M(s,
t)は以下のように与えられるものとする。
D (s, t) = M (s, t) R (s, t) Here, a two-dimensional complex array M (s, t) having w × h elements
t) shall be given as follows.

【0154】[0154]

【数47】 を満足するs,tの場合 M(s,t)=0 で与えられる。本実施例では、定数rの値として32を
用いる。この処理によって4画素分の幅より短い波長に
相当する空間周波数をもつ成分を削除し、それより長い
波長に相当する空間周波数成分だけを残す。2次元フー
リエ変換データftzu11〜ftzu55の各々に対
してこの処理を行い、求まったw×hの要素を持つ新し
い2次元複素数配列D(s,t)を画像処理用コンピュ
ータの2次記憶媒体にそれぞれdftzu11〜dft
zu55として記録する。
[Equation 47] In the case of s, t that satisfies: M (s, t) = 0. In this embodiment, 32 is used as the value of the constant r. By this processing, a component having a spatial frequency corresponding to a wavelength shorter than the width of four pixels is deleted, and only a spatial frequency component corresponding to a longer wavelength is left. This process is performed on each of the two-dimensional Fourier transform data ftzu11 to ftzu55, and a new two-dimensional complex array D (s, t) having the obtained w × h elements is stored in the secondary storage medium of the image processing computer. dftzu11-dft
Record as zu55.

【0155】上記処理で画像処理用コンピュータの2次
記憶媒体に記録した2次元複素数配列dftzu11〜
dftzu55に対して2次元デジタルフーリエ逆変換
処理を行い、新しく2次元複素数配列データiftzu
11〜iftzu55を作成する。ここでdftzu1
1〜dftzu55は全て128×128点から構成さ
れる2次元配列データであるため、この2次元デジタル
フーリエ変換処理として汎用の高速フーリエ変換処理で
あるCooley−Tukeyのアルゴリズムを用いる
ことができる。具体的には、128×128のサイズの
複素数2次元配列データを2次元FFT処理による逆変
換を行い、その変換結果として128×128のサイズ
の複素数2次元配列データを得る。この処理をdftz
u11からitzu11への変換を例に以下に説明す
る。
The two-dimensional complex arrays dftzu11 to dftzu11 recorded in the secondary storage medium of the image processing computer in the above processing
dftzu55 is subjected to two-dimensional digital Fourier inverse transform processing, and new two-dimensional complex array data iftsu
11 to iftsu 55 are created. Where dftzu1
Since 1 to dftzu 55 are two-dimensional array data composed of 128 × 128 points, a Cooley-Tukey algorithm, which is a general-purpose fast Fourier transform, can be used as the two-dimensional digital Fourier transform. More specifically, complex two-dimensional array data of 128 × 128 size is inversely transformed by two-dimensional FFT processing, and as a result of the conversion, complex two-dimensional array data of 128 × 128 size is obtained. This process is called dftz
The conversion from u11 to itzu11 will be described below as an example.

【0156】ビットマップ形式画像dftzu11を画
像処理用コンピュータの2次記憶媒体から読み出し、そ
の座標を画像の一番左隅下の画素座標を原点として、横
方向右向きにX軸、縦方向上向きにY軸を設定し、X方
向Y方向共に1画素間隔を単位長さ1として、座標x,
yの位置の画素の明るさをD(s,t)で表し、itz
u11の2次元配列の各配列要素をE(x,y)で表
す。そして、以下の式を用いてD(s,t)からE
(x,y)を計算する。
The bitmap format image dftzu11 is read from the secondary storage medium of the image processing computer, and its coordinates are set with the pixel coordinates at the lower left corner of the image as the origin, and the X axis is oriented rightward in the horizontal direction and the Y axis is oriented upward in the vertical direction. Is set, and a coordinate x,
The brightness of the pixel at the position y is represented by D (s, t), and itz
Each array element of the two-dimensional array of u11 is represented by E (x, y). Then, from D (s, t) to E using the following equation:
Calculate (x, y).

【0157】[0157]

【数48】 ここで、定数wとhはそれぞれ画像の幅と高さであり、
配列要素は添え字「0」〜「w−1」および「0」〜
「h−1」の範囲である。
[Equation 48] Where the constants w and h are the width and height of the image, respectively.
Array elements have subscripts "0" to "w-1" and "0" to
The range is "h-1".

【0158】上記の変換結果である128×128のサ
イズの2次元複素数配列データE(x,y)の各要素
は、一般的に虚数部が0ではない複素数であるが、本実
施例では関数M(s,t)として対称性の高い配列を用
いているため、虚数部は全要素で0である。2次元複素
数配列データE(x,y)の各要素は、それぞれ2次元
フーリエ変換データitzu11〜itzu55として
画像処理用コンピュータの2次記憶媒体に記録する。
Each element of the two-dimensional complex number array data E (x, y) having a size of 128 × 128, which is a result of the above conversion, is generally a complex number whose imaginary part is not 0. Since an array with high symmetry is used as M (s, t), the imaginary part is 0 in all elements. Each element of the two-dimensional complex array data E (x, y) is recorded on the secondary storage medium of the image processing computer as two-dimensional Fourier transform data itzu11 to itzu55.

【0159】上記処理で画像処理用コンピュータの2次
記憶媒体に記録した2次元複素数データitzu11〜
itzu55から、分割する前のビットマップ形式画像
をフーリエフィルタリングした画像データを作成する。
その処理を以下に説明する。
In the above processing, the two-dimensional complex number data itzu11 to itu11 recorded on the secondary storage medium of the image processing computer
From the itzu 55, image data obtained by performing Fourier filtering on the bitmap format image before division is created.
The processing will be described below.

【0160】まず、分割する前のビットマップ形式画像
の横幅の画素数をW、高さの画素数をHとして、新たに
W×Hの要素数を持つ2次元実数配列J(x,y)を作
成し、その全要素を0で初期化する。
First, assuming that the number of horizontal pixels is W and the number of high pixels is H in a bitmap format image before division, a two-dimensional real number array J (x, y) having a new W × H element number is set. And initialize all its elements with zero.

【0161】次に画像処理用コンピュータの2次記憶媒
体に記録した2次元複素数データitzu11〜itz
u55を一つずつ読み込み、その各要素の絶対値を以下
のように2次元実数配列J(x,y)に加算する。
Next, the two-dimensional complex number data itzu11 to ituz recorded on the secondary storage medium of the image processing computer
u55 is read one by one, and the absolute value of each element is added to the two-dimensional real array J (x, y) as follows.

【0162】画像処理用コンピュータの2次記憶媒体に
記録した2次元複素数データitzu11〜itzu5
5のうち一つを、2次元複素数配列E(x,y)に読み
込み、その全要素に対して
Two-dimensional complex number data itzu11 to itzu5 recorded on the secondary storage medium of the image processing computer
5 is read into a two-dimensional complex array E (x, y), and all the elements are read.

【0163】[0163]

【数49】J(x+u,y+v)+|E(x,y)| を計算し、その結果を新たにJ(x+u,y+v)とす
る。ここで、定数uとvは、分割した領域の分割前の場
所に依存した値であり、本実施例では、これらの値は図
14に示すような値で与えられる。
## EQU49 ## J (x + u, y + v) + | E (x, y) | is calculated, and the result is newly set as J (x + u, y + v). Here, the constants u and v are values depending on the location of the divided area before division, and in the present embodiment, these values are given as values shown in FIG.

【0164】画像処理用コンピュータの2次記憶媒体に
記録した2次元複素数データitzu11〜itzu5
5について上記加算処理を行い、その結果得られた2次
元実数配列J(x,y)をビットマップ形式にデータを
並び替え、元の全ビットマップ形式画像をフーリエフィ
ルタリングした画像データを作成する。その結果を図1
5に示す。
Two-dimensional complex number data itzu11 to itzu5 recorded on the secondary storage medium of the image processing computer
The above-mentioned addition processing is performed on No. 5, the data obtained by rearranging the two-dimensional real number array J (x, y) is rearranged into a bitmap format, and image data obtained by Fourier-filtering all the original bitmap format images is created. Figure 1 shows the results.
It is shown in FIG.

【0165】(実施例8)上述の実施例7では、画像処
理用コンピュータで元画像の分割、窓関数の掛け合わ
せ、2次元フーリエ変換処理、、フィルタ関数との演
算、逆フーリエ変換、逆フーリエ変換結果の足し合わせ
処理を、コンピュータの2次記憶媒体に毎回記憶させな
がら手動で行ったが、これら中間処理結果をコンピュー
タの2次記憶媒体に記録せずに、バッチ処理として自動
的に一連の操作を行うことが可能である。図16に、そ
の処理フローの1例を示す。
(Eighth Embodiment) In the above-mentioned seventh embodiment, the image processing computer divides the original image, multiplies by the window function, performs two-dimensional Fourier transform processing, operation with filter function, inverse Fourier transform, inverse Fourier transform. The process of adding the conversion results was manually performed while storing the results in the secondary storage medium of the computer each time. However, the intermediate processing results were not recorded in the secondary storage medium of the computer, but were automatically processed as a batch process. It is possible to perform operations. FIG. 16 shows an example of the processing flow.

【0166】まず、ステップS400にて、デジタル化
されたビットマップ形式の画像ファイルを自動的に分割
する処理を行う。ただし、分割領域の大きさは最終的な
空間周波数スペクトルの粗さになるため、この大きさだ
けは本自動処理プログラムを利用する利用者が適宜判断
して入力パラメータとして入力する。このようにして入
力された分割領域の幅をw、高さをhとする。これらw
とhは、高速フーリエ変換処理を利用できるように2の
整数乗の値であることが好ましい。元のデジタル化され
たビットマップ形式の画像サイズを幅W、高さHとす
る。これらのパラメータから分割する領域数を横方向に
、縦方向にnとすると、これらは
First, in step S400, a process for automatically dividing a digitized bitmap format image file is performed. However, since the size of the divided area becomes the final roughness of the spatial frequency spectrum, the user using the automatic processing program appropriately determines only this size and inputs it as an input parameter. The width and height of the divided area input in this manner are defined as w and h, respectively. These w
And h are preferably integer powers of 2 so that fast Fourier transform processing can be used. The original digitized bitmap format image size is assumed to be width W and height H. Assuming that the number of regions to be divided from these parameters is n w in the horizontal direction and n h in the vertical direction,

【0167】[0167]

【数50】 で表わされる。ここで、括弧[]はガウスの記号で、
[x]は実数xを超えない最大の整数を意味する。以
下、説明で用いる括弧[]は全てこのガウスの記号とし
て扱う。また、αとαはいずれも0以上で、それぞ
れWとH以下程度の適当な値である。これはWが丁度w
で割り切れるか、その除算の余りがwに比べて小さい場
合、故意に分割領域の重なる部分を設けるための値であ
る。本実施例では、これらの値をα=W/2、α
H/2としている。
[Equation 50] Is represented by Where the brackets [] are Gaussian symbols,
[X] means the largest integer not exceeding the real number x. Hereinafter, all the brackets [] used in the description are treated as Gaussian symbols. Further, α w and α h are both 0 or more, and are appropriate values of about W and H, respectively. This is just w
If it is divisible by or the remainder of the division is smaller than w, this is a value for intentionally providing an overlapping portion of the divided areas. In this embodiment, these values are defined as α w = W / 2 and α h =
H / 2.

【0168】上記のようにして領域数nとnが求め
られると、続いて、これら領域数に基づいて領域の範囲
を決定する。分割前の画像の一番左隅下の画素座標を原
点として、横方向右向きにX軸、縦方向上向きにY軸を
設定し、X方向Y方向共に1画素間隔を単位長さ1とし
た場合、横方向にi番目、縦方向にj番目の分割領域の
範囲は、
[0168] When the number of regions in the above n w and n h is determined, then, to determine the range of the region based on these number of areas. When the pixel coordinate at the lower left corner of the image before division is set as the origin, the X axis is set to the right in the horizontal direction and the Y axis is set to the upward in the vertical direction. The range of the i-th divided area in the horizontal direction and j-th in the vertical direction is

【0169】[0169]

【数51】 で与えられる。(Equation 51) Given by

【0170】次に、ステップS401にて、分割演算処
理結果を足し合わせて記憶するためのW×Hの要素を持
つ実数配列Jの全要素をすべて0に初期化する。ここ
で、本実施例のすべての配列は添え字の始まりが0であ
る。
Next, in step S401, all elements of the real array J having W × H elements for adding and storing the results of the division operation processing are initialized to zero. Here, in all the arrays in the present embodiment, the start of the subscript is 0.

【0171】初期化後、ステップS402〜S413の
一連の処理を行う。まず、上記の方法で決めた分割範囲
にしたがって、一番左下隅の分割領域のビットマップ形
式データを取り出して2次元フーリエ変換処理し、その
処理結果を、2次元フーリエ変換結果を足し合わせて記
憶するための配列に足し合わせる。次に、その隣の領域
に対して同じ処理を行い、再び2次元フーリエ変換結果
を足し合わせて記憶するための配列にその処理結果を足
し合わせる。この繰り返しを全ての分割領域に対して行
い、2次元フーリエ変換結果を足し合わせて記憶するた
めの配列を計算する(ステップS404〜S406)。
After the initialization, a series of processing of steps S402 to S413 is performed. First, according to the division range determined by the above method, the bitmap format data of the division area at the lower left corner is extracted and subjected to two-dimensional Fourier transform processing, and the processing result is stored by adding the two-dimensional Fourier transformation result. To the array for Next, the same processing is performed on the adjacent area, and the processing result is added to an array for adding and storing the two-dimensional Fourier transform result again. This repetition is performed for all the divided areas, and an array for adding and storing the two-dimensional Fourier transform results is calculated (steps S404 to S406).

【0172】以下、横方向にi番目、縦方向にj番目の
分割領域に対する変換処理手順を詳細に説明する。
Hereinafter, the conversion processing procedure for the i-th divided area in the horizontal direction and the j-th divided area in the vertical direction will be described in detail.

【0173】分割前のビットマップ形式の画像から横方
向にi番目、縦方向にj番目の分割領域の要素をすべて
取り出し、各要素をw×hの要素を持つ実数配列Zにコ
ピーする。分割前のビットマップ形式データをW×Hの
要素を持つ2次元配列Iとして表現すると、そのコピー
は、以下の式に基づく計算を、それぞれ範囲「0」〜
「w−1」、「0」〜「h−1」の範囲の整数xとyの
全ての組み合わせに対して行う。
All the elements of the i-th divided area in the horizontal direction and the j-th divided area in the vertical direction are extracted from the image in the bit map format before division, and each element is copied to a real number array Z having w × h elements. When the bitmap format data before the division is expressed as a two-dimensional array I having W × H elements, the copy uses calculations based on the following formulas in the range “0” to “0”, respectively.
This is performed for all combinations of integers x and y in the range of “w−1”, “0” to “h−1”.

【0174】[0174]

【数52】 次に、窓関数F(x)とF(y)をそれぞれ要素数
wとhの実数1次元配列として全要素を以下のようにし
て計算する。
(Equation 52) Next, the window functions F w (x) and F h (y) are each calculated as a real one-dimensional array having the number of elements w and h as follows.

【0175】[0175]

【数53】 として窓関数配列を求める。(Equation 53) To obtain a window function array.

【0176】上記のようにして求めた窓関数配列を用い
て、分割領域データ配列Zからw×hの要素数を持つ2
次元複素数配列Gを以下の式により計算して全部の要素
を求める。
By using the window function array obtained as described above, the divided area data array Z has a w × h element number 2
The dimension complex number array G is calculated by the following equation to obtain all elements.

【0177】[0177]

【数54】 G(x,y)=F(x)F(y)Z(x,y) G(x,y)=0 ここで、GとGはそれぞれ複素数配列Gの実数部と
虚数部である。ここで求めた2次元複素数配列Gを2次
元フーリエ変換処理する。この2次元フーリエ変換処理
を以下の式を用いて行い、その変換結果をw×hの要素
数を持つ2次元複素数配列Rの全要素に格納する。
Equation 54] G r (x, y) = F w (x) F h (y) Z (x, y) G i (x, y) = 0 Here, G r and G i are complex number sequence G Are the real and imaginary parts of. The two-dimensional complex array G obtained here is subjected to two-dimensional Fourier transform processing. The two-dimensional Fourier transform process is performed using the following equation, and the result of the conversion is stored in all the elements of the two-dimensional complex array R having the number of elements of w × h.

【0178】[0178]

【数55】 ここでRとRはそれぞれ複素数配列Rの実数部と虚
数部である。ただし、wとhが共に2の整数乗の場合
は、汎用のCooley−Tukeyのアルゴリズムを
用いた2次元FFT処理によって同じ計算を短時間で行
うことが出来る。
[Equation 55] Here, R r and R i are the real part and the imaginary part of the complex number array R, respectively. However, when both w and h are integer powers of 2, the same calculation can be performed in a short time by two-dimensional FFT processing using a general-purpose Cooley-Tukey algorithm.

【0179】次に、特定の空間周波数の成分だけを取り
出すために、この2次元複素数配列R(s,t)に対
し、次の演算を行ってw×hの要素を持つ新しい2次元
複素数配列D(s,t)を求める(ステップS40
7)。
Next, in order to extract only a component of a specific spatial frequency, the following operation is performed on the two-dimensional complex number array R (s, t) to obtain a new two-dimensional complex number array having w × h elements. D (s, t) is obtained (Step S40)
7).

【0180】[0180]

【数56】D(s,t)=M(s,t)R(s,t) ここで、ある空間周波数r以上の成分を取り除くため、
w×hの要素を持つ2次元複素数配列M(s,t)は以
下のように与えられるものとする。
D (s, t) = M (s, t) R (s, t) Here, in order to remove a component above a certain spatial frequency r,
It is assumed that a two-dimensional complex array M (s, t) having w × h elements is given as follows.

【0181】[0181]

【数57】 を満足するs,tの場合 M(s,t)=0 で与えられる。[Equation 57] In the case of s, t that satisfies: M (s, t) = 0.

【0182】これは、単純に空間周波数の完全なローパ
スフィルタであるが、このフィルタ用配列としてはw×
hの要素を持つ任意の配列を用いることができる。ただ
し、この2次元複素数配列M(s,t)は全ての分割領
域に対して同じ配列を用いる。
This is simply a complete low-pass filter of the spatial frequency.
Any array with h elements can be used. However, this two-dimensional complex number array M (s, t) uses the same array for all divided regions.

【0183】次に、上記のようにして求めたD(s,
t)から以下の式を用いて2次元デジタルフーリエ逆変
換処理を行い、新しく2次元複素数配列E(x,y)を
求める(ステップS408)。
Next, D (s,
From t), two-dimensional digital Fourier inverse transform processing is performed using the following equation to newly obtain a two-dimensional complex array E (x, y) (step S408).

【0184】[0184]

【数58】 ここでwとhが共に2の整数乗の値である場合、この2
次元デジタルフーリエ変換処理として汎用の高速フーリ
エ変換処理であるCooley−Tukeyのアルゴリ
ズムを利用し同じ計算を短時間で行うことが出来る。
[Equation 58] Here, if both w and h are integer powers of 2, this 2
The same calculation can be performed in a short time by using a Cooley-Tukey algorithm that is a general-purpose fast Fourier transform process as the dimensional digital Fourier transform process.

【0185】最後に、この2次元複素数配列E(x,
y)を2次元実数配列J(x,y)に足しあわせる(ス
テップS409)。この処理は、E(x,y)の全要素
に対して以下の式を用いて行う。
Finally, this two-dimensional complex number array E (x,
y) is added to the two-dimensional real number array J (x, y) (step S409). This processing is performed on all elements of E (x, y) using the following equation.

【0186】[0186]

【数59】 を満足しない2次元実数配列J(x,y)の要素に関し
ては、前の値をそのまま用いる。
[Equation 59] For the elements of the two-dimensional real number array J (x, y) that do not satisfy the above, the previous value is used as it is.

【0187】以上の演算を行うことにより、横方向にi
番目、縦方向にj番目の分割領域に対する処理が完了す
る。
By performing the above operation, i
The processing for the j-th divided area in the vertical and vertical directions is completed.

【0188】以上の処理を横方向に1からn、縦方向
に1からnまで分割領域全部に対して行い、分割演算
処理結果を足しあわせる2次元実数配列J(x,y)を
求め、その求めた2次元実数配列J(x,y)をビット
マップ形式にデータを並び替えて、元の全ビットマップ
形式画像をフーリエフィルタリングした画像データを作
成する。上述のようにして得られた配列Jは、次の処理
を行うブロック(図1のフィルタ処理部24)へ出力さ
れる(ステップS414)。
The above processing is performed on all the divided areas from 1 to n w in the horizontal direction and from 1 to n h in the vertical direction, and a two-dimensional real number array J (x, y) for adding the results of the division operation processing is obtained. Then, the obtained two-dimensional real number array J (x, y) is rearranged into a bitmap format to create image data obtained by Fourier-filtering all the original bitmap format images. The array J obtained as described above is output to the block that performs the following processing (the filter processing unit 24 in FIG. 1) (step S414).

【0189】(実施例9)前述の実施例7で説明したフ
ーリエフィルタ処理では、前述の実施例1の図4で示し
たような、空間周波数0付近にフーリエ変換する領域の
外の境界の影響が生じる。その影響がフーリエフィルタ
で用いる関数形(実施例7のM(s,t)配列)によっ
ては、問題を発生させる可能性がある。ここでは、その
影響を抑えるために窓関数を工夫した実施例について説
明する。なお、以下の説明において、複素数2次元配列
データR(s,t)を2次元フーリエ変換データftz
u11〜ftzu79として、それぞれ画像ファイルと
して画像処理用コンピュータの2次記憶媒体に記録する
までの処理は前述の実施例3の手順と同じため、ここで
はその処理についての説明は省略する。
(Embodiment 9) In the Fourier filter processing described in the above-described embodiment 7, the influence of the boundary outside the area where the Fourier transform is performed near the spatial frequency 0 as shown in FIG. Occurs. Depending on the function form used in the Fourier filter (M (s, t) array in the seventh embodiment), the influence may cause a problem. Here, an embodiment in which a window function is devised to suppress the influence will be described. In the following description, the complex two-dimensional array data R (s, t) is converted into two-dimensional Fourier transform data ftz.
The processes up to recording as u11 to ftzu79 as image files on the secondary storage medium of the image processing computer are the same as the procedure of the above-described third embodiment, and the description of the processes is omitted here.

【0190】本実施例では、特定の空間周波数の成分だ
けを取り出すために、画像処理用コンピュータの2次記
憶媒体に記録した2次元フーリエ変換データftzu1
1〜ftzu79を読み出し、その各々に対して後述す
る処理を行い、新しいデータとしてdftzu11〜d
ftzu79を画像処理用コンピュータの2次記憶媒体
に記録する。この処理は、ftzu11〜ftzu79
全てに対して同じ処理を行う。ここでは、定数wとhを
それぞれ分割画像の幅と高さとして、ftzu11を例
に説明する。
In this embodiment, in order to extract only a component having a specific spatial frequency, the two-dimensional Fourier transform data ftzu1 recorded on the secondary storage medium of the image processing computer is used.
1 to ftzu79, perform the processing described later on each of them, and obtain dftzu11 to dftzu11 as new data.
ftzu79 is recorded in the secondary storage medium of the image processing computer. This processing is performed on ftzu11 to ftzu79.
The same processing is performed for all. Here, ftzu11 will be described as an example, with constants w and h as the width and height of the divided image, respectively.

【0191】まず、画像処理用コンピュータの2次記憶
媒体からftzu11をw×hの要素を持つ2次元複素
数配列R(s,t)として格納する。ここで、配列要素
は添え字「0」〜「w−1」と「0」〜「h−1」の範
囲である。この配列R(s,t)から以下の演算を全配
列要素に対して行うことによって、w×hの要素を持つ
新しい2次元複素数配列D(s,t)を求める。
First, ftzu11 is stored as a two-dimensional complex array R (s, t) having w × h elements from the secondary storage medium of the image processing computer. Here, the array elements are in the range of subscripts “0” to “w−1” and “0” to “h−1”. A new two-dimensional complex array D (s, t) having w × h elements is obtained by performing the following operation on all array elements from the array R (s, t).

【0192】[0192]

【数60】D(s,t)=M(s,t)R(s,t) ここで、w×hの要素を持つ2次元複素数配列M(s,
t)は以下のように与えられるものとする。
D (s, t) = M (s, t) R (s, t) where, a two-dimensional complex array M (s, t) having w × h elements
t) shall be given as follows.

【0193】[0193]

【数61】 を満足するs,tの場合 M(s,t)=0 で与えられる。ここで、本実施例では定数rの値として
16を用いる。この処理によって8画素分の幅より短い
波長に相当する空間周波数をもつ成分を削除し、それよ
り長い波長に相当する空間周波数成分だけを残す。2次
元フーリエ変換データftzu11〜ftzu79の各
々に対してこの処理を行い、求まったw×hの要素を持
つ新しい2次元複素数配列D(s,t)を画像処理用コ
ンピュータの2次記憶媒体にそれぞれdftzu11〜
dftzu79として記録する。
[Equation 61] In the case of s, t that satisfies: M (s, t) = 0. Here, in this embodiment, 16 is used as the value of the constant r. By this processing, a component having a spatial frequency corresponding to a wavelength shorter than the width of eight pixels is deleted, and only a spatial frequency component corresponding to a longer wavelength is left. This process is performed on each of the two-dimensional Fourier transform data ftzu11 to ftzu79, and a new two-dimensional complex array D (s, t) having the obtained w × h elements is stored in the secondary storage medium of the image processing computer. dftzu11-
Record as dftu79.

【0194】上記処理で画像処理用コンピュータの2次
記憶媒体に記録した2次元複素数配列dftzu11〜
dftzu79に対して2次元デジタルフーリエ逆変換
処理を行い、新しく2次元複素数配列データiftzu
11〜iftzu79を作成する。ここで、dftzu
11〜dftzu79は全て128×128点から構成
される2次元配列データであるため、この2次元デジタ
ルフーリエ変換処理として汎用の高速フーリエ変換処理
であるCooley−Tukeyのアルゴリズムを用い
ることができる。具体的には、128×128のサイズ
の複素数2次元配列データを2次元FFT処理による逆
変換を行い、その変換結果として128×128のサイ
ズの複素数2次元配列データを得る。この処理をdft
zu11からitzu11への変換を例に以下に説明す
る。
The two-dimensional complex number arrays dftzu11 to dftzu11 recorded in the secondary storage medium of the image processing computer in the above process
dftzu79 is subjected to two-dimensional inverse digital Fourier transform processing, and newly two-dimensional complex array data iftsu
11 to iftsu 79 are created. Where dftzu
Since 11 to dftzu 79 are two-dimensional array data composed of all 128 × 128 points, a Cooley-Tukey algorithm, which is a general-purpose high-speed Fourier transform process, can be used as the two-dimensional digital Fourier transform process. More specifically, complex two-dimensional array data of 128 × 128 size is inversely transformed by two-dimensional FFT processing, and as a result of the conversion, complex two-dimensional array data of 128 × 128 size is obtained. This process is called dft
The conversion from zu11 to itzu11 will be described below as an example.

【0195】ビットマップ形式画像dftzu11を画
像処理用コンピュータの2次記憶媒体から読み出し、そ
の座標を画像の一番左隅下の画素座標を原点として、横
方向右向きにX軸、縦方向上向きにY軸を設定し、X方
向Y方向共に1画素間隔を単位長さ1として、座標x,
yの位置の画素の明るさをD(s,t)で表し、itz
u11の2次元配列の各配列要素をE(x,y)で表
す。そして、以下の式を用いてD(s,t)からE
(x,y)を計算する。
The bitmap format image dftzu11 is read from the secondary storage medium of the image processing computer, and its coordinates are set with the pixel coordinates at the lower left corner of the image as the origin, and the X axis is directed rightward in the horizontal direction and the Y axis is directed upward in the vertical direction. Is set, and a coordinate x,
The brightness of the pixel at the position y is represented by D (s, t), and itz
Each array element of the two-dimensional array of u11 is represented by E (x, y). Then, from D (s, t) to E using the following equation:
Calculate (x, y).

【0196】[0196]

【数62】 ここで、定数wとhはそれぞれ画像の幅と高さであり、
配列要素は添え字「0」〜「w−1」および「0」〜
「h−1」の範囲である。
(Equation 62) Where the constants w and h are the width and height of the image, respectively.
Array elements have subscripts "0" to "w-1" and "0" to
The range is "h-1".

【0197】上記の変換結果である128×128のサ
イズの2次元複素数配列データE(x,y)の各要素
は、一般的に虚数部が0ではない複素数であるが、本実
施例では関数M(s,t)として対称性の高い配列を用
いているため、虚数部は全要素で0である。2次元複素
数配列データE(x,y)の各要素は、それぞれ2次元
フーリエ変換データitzu11〜itzu79として
画像処理用コンピュータの2次記憶媒体に記録する。
Each element of the two-dimensional complex number array data E (x, y) having a size of 128 × 128, which is the above conversion result, is generally a complex number whose imaginary part is not 0. Since an array with high symmetry is used as M (s, t), the imaginary part is 0 in all elements. Each element of the two-dimensional complex array data E (x, y) is recorded on the secondary storage medium of the image processing computer as two-dimensional Fourier transform data itzu11 to itzu79, respectively.

【0198】上記処理で画像処理用コンピュータの2次
記憶媒体に記録した2次元複素数データitzu11〜
itzu79から、分割する前のビットマップ形式画像
をフーリエフィルタリングした画像データを作成する。
その処理を以下に説明する。
In the above process, the two-dimensional complex number data itzu11-itu11 recorded on the secondary storage medium of the image processing computer
From the itzu 79, image data is created by performing Fourier filtering on the bitmap format image before division.
The processing will be described below.

【0199】まず、分割する前のビットマップ形式画像
の横幅の画素数をW、高さの画素数をHとして、新たに
W×Hの要素数を持つ2次元実数配列J(x,y)を作
成し、その全要素を0で初期化する。
First, assuming that the number of horizontal pixels is W and the number of height pixels is H in a bitmap format image before division, a two-dimensional real number array J (x, y) having a new W × H element number is set. And initialize all its elements with zero.

【0200】次に画像処理用コンピュータの2次記憶媒
体に記録した2次元複素数データitzu11〜itz
u79を一つずつ読み込み、その各要素の絶対値を以下
のように2次元実数配列J(x,y)に加算する。
Next, the two-dimensional complex number data itzu11 to itz recorded on the secondary storage medium of the image processing computer
u79 is read one by one, and the absolute value of each element is added to the two-dimensional real array J (x, y) as follows.

【0201】画像処理用コンピュータの2次記憶媒体に
記録した2次元複素数データitzu11〜itzu5
5のうち一つを、2次元複素数配列E(x,y)に読み
込み、その全要素に対して
The two-dimensional complex number data itzu11 to itzu5 recorded on the secondary storage medium of the image processing computer
5 is read into a two-dimensional complex array E (x, y), and all the elements are read.

【0202】[0202]

【数63】J(x+u,y+v)+|E(x,y)| を計算し、その結果を新たにJ(x+u,y+v)とす
る。ここで、定数uとvは、分割した領域の分割前の場
所に依存した値であり、本実施例では、図17に示すよ
うな値で与えられる。
[Equation 63] J (x + u, y + v) + | E (x, y) | is calculated, and the result is newly set as J (x + u, y + v). Here, the constants u and v are values depending on the location of the divided area before division, and are given as values shown in FIG. 17 in the present embodiment.

【0203】画像処理用コンピュータの2次記憶媒体に
記録した2次元複素数データitzu11〜itzu7
9について上記加算処理を行い、その結果得られた2次
元実数配列J(x,y)をビットマップ形式にデータを
並び替え、元の全ビットマップ形式画像をフーリエフィ
ルタリングした画像データを作成する。その結果を図1
8に示す。
Two-dimensional complex number data itzu11-itzu7 recorded on the secondary storage medium of the image processing computer
The above-mentioned addition processing is performed on 9 and the resulting two-dimensional real array J (x, y) is rearranged into a bitmap format, and image data obtained by Fourier-filtering all the original bitmap format images is created. Figure 1 shows the results.
FIG.

【0204】(実施例10)上述の実施例9では、画像
処理用コンピュータで元画像の分割、窓関数の掛け合わ
せ、2次元フーリエ変換処理、フィルタ関数との演算、
逆フーリエ変換、逆フーリエ変換結果の足し合わせ処理
を、コンピュータの2次記憶媒体に毎回記憶させながら
手動で行ったが、これら中間処理結果をコンピュータの
2次記憶媒体に記録せずに、バッチ処理として自動的に
一連の操作を行うことが可能である。図19に、その処
理フローの一例を示す。
(Embodiment 10) In Embodiment 9 described above, the image processing computer divides the original image, multiplies by a window function, performs two-dimensional Fourier transform processing, calculates a filter function,
The inverse Fourier transform and the process of summing the results of the inverse Fourier transform were manually performed while being stored in the secondary storage medium of the computer each time, but the intermediate processing results were not recorded in the secondary storage medium of the computer, and the batch processing was performed. It is possible to automatically perform a series of operations. FIG. 19 shows an example of the processing flow.

【0205】まず、ステップS500にて、デジタル化
されたビットマップ形式の画像ファイルを自動的に分割
する処理を行う。ただし、分割領域の大きさは最終的な
空間周波数スペクトルの粗さになるため、この大きさだ
けは本自動処理プログラムを利用する利用者が適宜判断
して入力パラメータとして入力する。このようにして入
力された分割領域の幅をw、高さをhとする。これらw
とhは、高速フーリエ変換処理を利用できるように2の
整数乗の値であることが好ましい。元のデジタル化され
たビットマップ形式の画像サイズを幅W、高さHとす
る。これらのパラメータから分割する領域数を横方向に
、縦方向にnとすると、これらは
First, in step S500, processing for automatically dividing a digitized image file in a bitmap format is performed. However, since the size of the divided area becomes the final roughness of the spatial frequency spectrum, the user using the automatic processing program appropriately determines only this size and inputs it as an input parameter. The width and height of the divided area input in this manner are defined as w and h, respectively. These w
And h are preferably integer powers of 2 so that fast Fourier transform processing can be used. The original digitized bitmap format image size is assumed to be width W and height H. Assuming that the number of regions to be divided from these parameters is n w in the horizontal direction and n h in the vertical direction,

【0206】[0206]

【数64】 で表わされる。ここで、括弧[]はガウスの記号で、
[x]は実数xを超えない最大の整数を意味する。以
下、説明で用いる括弧[]は全てこのガウスの記号とし
て扱う。
[Equation 64] Is represented by Where the brackets [] are Gaussian symbols,
[X] means the largest integer not exceeding the real number x. Hereinafter, all the brackets [] used in the description are treated as Gaussian symbols.

【0207】上記の演算式によれば、(n+1)w/
2がWと等しくない場合や(n+1)h/2がHと等
しくない場合は,分割領域に完全に含まれない領域が出
来てしまう。この点が本実施例の分割処理法の制限とな
る。
According to the above equation, (n w +1) w /
If 2 is not equal to W, or if (n h +1) h / 2 is not equal to H, a region that is not completely included in the divided region will be created. This is a limitation of the division processing method of this embodiment.

【0208】次に分割領域の範囲を決定する。分割前の
画像の一番左隅下の画素座標を原点として、横方向右向
きにX軸、縦方向上向きにY軸を設定し、X方向Y方向
共に1画素間隔を単位長さ1として、横方向にi番目、
縦方向にj番目の分割領域の範囲は、
Next, the range of the divided area is determined. With the pixel coordinates at the lower left corner of the image before division as the origin, the X axis is set to the right in the horizontal direction, and the Y axis is set to the upward in the vertical direction. I-th,
The range of the j-th divided area in the vertical direction is

【0209】[0209]

【数65】 で与えられる。ここで、βとβは分割領域に完全に
含まれない領域を元画像の両端のどちらの部分にどの程
度にするかを決定するためのパラメータである。ここで
は、
[Equation 65] Given by Here, β w and β h are parameters for determining which part of both ends of the original image and how much an area that is not completely included in the divided area. here,

【0210】[0210]

【数66】 とすることで、その分割領域は元画像の両端とほぼ同程
度になるように設定される。
[Equation 66] Thus, the divided area is set to be substantially the same as both ends of the original image.

【0211】次に、ステップS501にて、2次元フー
リエ変換結果を足し合わせて記憶するためのw×hの要
素を持つ実数配列Bの全要素をすべて0に初期化する。
ここで、すべての配列は添え字の始まりが0である。
Next, in step S501, all elements of the real number array B having w × h elements for adding and storing the results of the two-dimensional Fourier transform are initialized to zero.
Here, the start of the subscript is 0 for all the arrays.

【0212】初期化後、ステップS502〜S513の
一連の処理を行う。まず、上記の方法で決めた分割範囲
にしたがって、まず一番左下隅の分割領域のビットマッ
プ形式データを取り出して2次元フーリエ変換処理し、
その結果を2次元フーリエ変換結果を足し合わせて記憶
するための配列に足し合わせる。続いて、その隣の領域
に対して同じ処理を行い再び2次元フーリエ変換結果を
足し合わせて記憶するための配列にその処理結果を足し
合わせる。この繰り返しを全ての分割領域に対して行
い、2次元フーリエ変換結果を足し合わせて記憶するた
めの配列を計算する(ステップS504〜S506)。
After the initialization, a series of processing of steps S502 to S513 is performed. First, according to the division range determined by the above method, first, the bitmap format data of the division region at the lower left corner is extracted and subjected to a two-dimensional Fourier transform process.
The result is added to an array for adding and storing the two-dimensional Fourier transform result. Subsequently, the same processing is performed on the adjacent area, and the processing result is added to an array for adding and storing the two-dimensional Fourier transform result again. This repetition is performed for all the divided regions, and an array for adding and storing the two-dimensional Fourier transform results is calculated (steps S504 to S506).

【0213】以下に、横方向にi番目、縦方向にj番目
の分割領域に対する変換処理手順を詳細に説明する。
The following describes in detail the conversion processing procedure for the i-th divided region in the horizontal direction and the j-th divided region in the vertical direction.

【0214】分割前のビットマップ形式の画像から横方
向にi番目、縦方向にj番目の分割領域の要素をすべて
取り出し、各要素をw×hの要素を持つ実数配列Zにコ
ピーする。分割前のビットマップ形式データをW×Hの
要素を持つ2次元配列Iとして表現すると、そのコピー
All the elements of the i-th divided area in the horizontal direction and the j-th divided area in the vertical direction are extracted from the bit map format image before division, and each element is copied to a real number array Z having w × h elements. If the bitmap format data before division is expressed as a two-dimensional array I having W × H elements, the copy is

【0215】[0215]

【数67】 の演算を、それぞれ「0」〜「w−1」、「0」〜「h
−1」の範囲の整数xとyの全ての組み合わせに対して
行う。
[Equation 67] Are calculated as “0” to “w−1” and “0” to “h”, respectively.
This is performed for all combinations of integers x and y in the range of "-1".

【0216】次に、窓関数F(x)とF(y)をそ
れぞれ要素数wとhの実数1次元配列として全要素を以
下のように計算する。
Next, assuming the window functions F w (x) and F h (y) as real one-dimensional arrays of the numbers of elements w and h, all elements are calculated as follows.

【0217】[0219]

【数68】 この窓関数配列を用いて、分割領域データ配列Zからw
×hの要素数を持つ2次元複素数配列Gを以下の計算
で、全部の要素について求める。
[Equation 68] Using this window function array, the divided area data array Z to w
A two-dimensional complex array G having the number of elements of × h is obtained for all elements by the following calculation.

【0218】[0218]

【数69】 G(x,y)=F(x)F(y)Z(x,y) G(x,y)=0 ここで、GとGはそれぞれ複素数配列Gの実数部と
虚数部である。このようにして求めた2次元複素数配列
Gを2次元フーリエ変換処理する。ここで、2次元フー
リエ変換処理は次の計算で行い、その変換結果をw×h
の要素数を持つ2次元複素数配列Rの全要素に格納す
る。
Equation 69] G r (x, y) = F w (x) F h (y) Z (x, y) G i (x, y) = 0 Here, G r and G i are complex number sequence G Are the real and imaginary parts of. The two-dimensional complex array G thus obtained is subjected to two-dimensional Fourier transform processing. Here, the two-dimensional Fourier transform processing is performed by the following calculation, and the result of the conversion is expressed as w × h
Is stored in all the elements of the two-dimensional complex number array R having the number of elements.

【0219】[0219]

【数70】 ここで、RとRはそれぞれ複素数配列Rの実数部と
虚数部である。ただし、wとhが共に2の整数乗の場合
は、汎用のCooley−Tukeyのアルゴリズムを
用いた2次元FFT処理によって同じ計算を短時間で行
うことが出来る。
[Equation 70] Here, R r and R i are the real part and the imaginary part of the complex number array R, respectively. However, when both w and h are integer powers of 2, the same calculation can be performed in a short time by two-dimensional FFT processing using a general-purpose Cooley-Tukey algorithm.

【0220】次に、特定の空間周波数の成分だけを取り
出すために、この2次元複素数配列R(s,t)に対
し、次の演算を行ってw×hの要素を持つ新しい2次元
複素数配列D(s,t)を求める(ステップS50
7)。
Next, in order to extract only a component of a specific spatial frequency, a new two-dimensional complex array having w × h elements is obtained by performing the following operation on the two-dimensional complex array R (s, t). D (s, t) is obtained (Step S50)
7).

【0221】[0221]

【数71】D(s,t)=M(s,t)R(s,t) ここで、ある空間周波数r以上の成分を取り除くため、
w×hの要素を持つ2次元複素数配列M(s,t)は以
下のように与えられるものとする。
D (s, t) = M (s, t) R (s, t) Here, in order to remove a component above a certain spatial frequency r,
It is assumed that a two-dimensional complex array M (s, t) having w × h elements is given as follows.

【0222】[0222]

【数72】 を満足するs,tの場合 M(s,t)=0 で与えられる。これは、単純に空間周波数の完全なロー
パスフィルタであるが、このフィルタ用配列としてはw
×hの要素を持つ任意の配列を用いることができる。た
だし、この2次元複素数配列M(s,t)は全ての分割
領域に対して同じ配列を用いる。
[Equation 72] In the case of s, t that satisfies: M (s, t) = 0. This is simply a perfect low pass filter of spatial frequency, but the array for this filter is w
Any array with xh elements can be used. However, this two-dimensional complex number array M (s, t) uses the same array for all divided regions.

【0223】次に、上記のようにして求めたD(s,
t)から以下の式を用いて2次元デジタルフーリエ逆変
換処理を行い、新しく2次元複素数配列E(x,y)を
求める(ステップS508)。
Next, D (s,
From t), two-dimensional digital Fourier inverse transform processing is performed using the following equation to newly obtain a two-dimensional complex array E (x, y) (step S508).

【0224】[0224]

【数73】 ここでwとhが共に2の整数乗の値である場合、この2
次元デジタルフーリエ変換処理として汎用の高速フーリ
エ変換処理であるCooley−Tukeyのアルゴリ
ズムを利用し同じ計算を短時間で行うことが出来る。
[Equation 73] Here, if both w and h are integer powers of 2, this 2
The same calculation can be performed in a short time by using a Cooley-Tukey algorithm that is a general-purpose fast Fourier transform process as the dimensional digital Fourier transform process.

【0225】最後に、この2次元複素数配列E(x,
y)を2次元実数配列J(x,y)に足しあわせる(ス
テップS509)。この処理は、E(x,y)の全要素
に対して以下の式を用いて行う。
Finally, the two-dimensional complex array E (x,
y) is added to the two-dimensional real number array J (x, y) (step S509). This processing is performed on all elements of E (x, y) using the following equation.

【0226】[0226]

【数74】 を満足しない2次元実数配列J(x,y)の要素に関し
ては、前の値をそのまま用いる。
[Equation 74] For the elements of the two-dimensional real number array J (x, y) that do not satisfy the above, the previous value is used as it is.

【0227】以上の演算を行うことにより、横方向にi
番目、縦方向にj番目の分割領域に対する処理が完了す
る。
By performing the above operation, i
The processing for the j-th divided area in the vertical and vertical directions is completed.

【0228】以上の処理を横方向に1からnw、縦方向
に1からnhまで分割領域全部に対して行い、分割演算
処理結果を足しあわせる2次元実数配列J(x,y)を
求める。そして、求めた2次元実数配列J(x,y)を
ビットマップ形式にデータを並び替え、元の全ビットマ
ップ形式画像をフーリエフィルタリングした画像データ
を作成する。上述のようにして得られた配列Jは、次の
処理を行うブロック(図1のフィルタ処理部24)へ出
力される(ステップS514)。
The above processing is performed on all the divided areas from 1 to nw in the horizontal direction and from 1 to nh in the vertical direction, and a two-dimensional real number array J (x, y) for adding the results of the division calculation processing is obtained. Then, the data of the obtained two-dimensional real number array J (x, y) is rearranged into a bitmap format, and image data obtained by performing Fourier filtering on all the original bitmap format images is created. The array J obtained as described above is output to a block that performs the following processing (the filter processing unit 24 in FIG. 1) (step S514).

【0229】(実施例11)前述の実施例9に示したフ
ーリエフィルタ処理では、元画像の大きさによっては両
端部に完全にフーリエ変換処理されない領域が生じてし
まう制約があった。ここでは、そのような領域が生じな
いように、領域分割法と窓関数を工夫した実施例につい
て説明する。なお、以下の説明において、複素数2次元
配列データR(s,t)を2次元フーリエ変換データf
tzu11〜ftzu69とし、それぞれ画像ファイル
として画像処理用コンピュータの2次記憶媒体に記録す
るまでの処理は前述の実施例5の手順と同じため、ここ
ではその処理について説明は省略する。
(Embodiment 11) In the Fourier filter processing shown in the above-described ninth embodiment, there is a restriction that an area that is not completely subjected to Fourier transform processing occurs at both ends depending on the size of the original image. Here, an embodiment in which the area dividing method and the window function are devised so that such an area does not occur will be described. In the following description, the complex two-dimensional array data R (s, t) is converted into two-dimensional Fourier transform data f
Since the processing up to recording the image files on the secondary storage medium of the image processing computer is the same as the procedure of the above-described fifth embodiment, the processing is omitted here.

【0230】本実施例では、特定の空間周波数の成分だ
けを取り出すために、画像処理用コンピュータの2次記
憶媒体に記録した2次元フーリエ変換データftzu1
1〜ftzu79を読み出し、その各々に対して後述す
る処理を行い、新しいデータとしてdftzu11〜d
ftzu69を画像処理用コンピュータの2次記憶媒体
に記録する。この処理は、ftzu11〜ftzu69
全てに対して同じ処理を行う。ここでは、定数wとhを
それぞれ分割画像の幅と高さとして、ftzu11を例
に説明する。
In this embodiment, in order to extract only a component of a specific spatial frequency, the two-dimensional Fourier transform data ftzu1 recorded on the secondary storage medium of the image processing computer is used.
1 to ftzu79, perform the processing described later on each of them, and obtain dftzu11 to dftzu11 as new data.
ftzu69 is recorded on the secondary storage medium of the image processing computer. This processing is performed on ftzu11 to ftzu69.
The same processing is performed for all. Here, ftzu11 will be described as an example, with constants w and h as the width and height of the divided image, respectively.

【0231】まず、画像処理用コンピュータの2次記憶
媒体からftzu11をw×hの要素を持つ2次元複素
数配列R(s,t)として格納する。ここで、配列要素
は添え字「0」〜「w−1」と「0」〜「h−1」の範
囲である。この配列R(s,t)から以下の演算を全配
列要素に対して行うことによって、w×hの要素を持つ
新しい2次元複素数配列D(s,t)を求める。
First, ftzu11 is stored from the secondary storage medium of the image processing computer as a two-dimensional complex array R (s, t) having w × h elements. Here, the array elements are in the range of subscripts “0” to “w−1” and “0” to “h−1”. A new two-dimensional complex array D (s, t) having w × h elements is obtained by performing the following operation on all array elements from the array R (s, t).

【0232】[0232]

【数75】D(s,t)=M(s,t)R(s,t) ここで、w×hの要素を持つ2次元複素数配列M(s,
t)は以下のように与えられるものとする。
D (s, t) = M (s, t) R (s, t) Here, a two-dimensional complex array M (s, t) having w × h elements
t) shall be given as follows.

【0233】[0233]

【数76】 を満足するs,tの場合 M(s,t)=0 で与えられる。ここで、本実施例では定数rの値として
32を用いる。この処理によって4画素分の幅より短い
波長に相当する空間周波数をもつ成分を削除し、それよ
り長い波長に相当する空間周波数成分だけを残す。2次
元フーリエ変換データftzu11〜ftzu69の各
々に対してこの処理を行い、求まったw×hの要素を持
つ新しい2次元複素数配列D(s,t)を画像処理用コ
ンピュータの2次記憶媒体にそれぞれdftzu11〜
dftzu69として記録する。
[Equation 76] In the case of s, t that satisfies Here, in this embodiment, 32 is used as the value of the constant r. By this processing, a component having a spatial frequency corresponding to a wavelength shorter than the width of four pixels is deleted, and only a spatial frequency component corresponding to a longer wavelength is left. This processing is performed on each of the two-dimensional Fourier transform data ftzu11 to ftzu69, and the obtained new two-dimensional complex array D (s, t) having w × h elements is stored in the secondary storage medium of the image processing computer. dftzu11-
Record as dftu69.

【0234】上記処理で画像処理用コンピュータの2次
記憶媒体に記録した2次元複素数配列dftzu11〜
dftzu69に対して2次元デジタルフーリエ逆変換
処理を行い、新しく2次元複素数配列データiftzu
11〜iftzu69を作成する。ここで、dftzu
11〜dftzu69は全て128×128点から構成
される2次元配列データであるため、この2次元デジタ
ルフーリエ変換処理として汎用の高速フーリエ変換処理
であるCooley−Tukeyのアルゴリズムを用い
ることができる。具体的には、128×128のサイズ
の複素数2次元配列データを2次元FFT処理による逆
変換を行い、その変換結果として128×128のサイ
ズの複素数2次元配列データを得る。この処理をdft
zu11からitzu11への変換を例に以下に説明す
る。
In the above processing, the two-dimensional complex number arrays dftzu11 to dftzu11 recorded in the secondary storage medium of the image processing computer
dftzu69 is subjected to two-dimensional digital Fourier inverse transform processing, and newly two-dimensional complex array data iftsu
11 to ifzu69 are created. Where dftzu
Since 11 to dftsu69 are two-dimensional array data composed of all 128 × 128 points, a Cooley-Tukey algorithm that is a general-purpose fast Fourier transform process can be used as the two-dimensional digital Fourier transform process. More specifically, complex two-dimensional array data of 128 × 128 size is inversely transformed by two-dimensional FFT processing, and as a result of the conversion, complex two-dimensional array data of 128 × 128 size is obtained. This process is called dft
The conversion from zu11 to itzu11 will be described below as an example.

【0235】ビットマップ形式画像dftzu11を画
像処理用コンピュータの2次記憶媒体から読み出し、そ
の座標を画像の一番左隅下の画素座標を原点として、横
方向右向きにX軸、縦方向上向きにY軸を設定し、X方
向Y方向共に1画素間隔を単位長さ1として、座標x,
yの位置の画素の明るさをD(s,t)で表し、itz
u11の2次元配列の各配列要素をE(x,y)で表
す。そして、以下の式を用いてD(s,t)からE
(x,y)を計算する。
The bitmap format image dftzu11 is read from the secondary storage medium of the image processing computer, and its coordinates are defined by using the pixel coordinates at the lower left corner of the image as the origin and the X axis to the right in the horizontal direction and the Y axis to the upward in the vertical direction. Is set, and a coordinate x,
The brightness of the pixel at the position y is represented by D (s, t), and itz
Each array element of the two-dimensional array of u11 is represented by E (x, y). Then, from D (s, t) to E using the following equation:
Calculate (x, y).

【0236】[0236]

【数77】 ここで、定数wとhはそれぞれ画像の幅と高さであり、
配列要素は添え字「0」〜「w−1」および「0」〜
「h−1」の範囲である。
[Equation 77] Where the constants w and h are the width and height of the image, respectively.
Array elements have subscripts "0" to "w-1" and "0" to
The range is "h-1".

【0237】上記の変換結果である128×128のサ
イズの2次元複素数配列データE(x,y)の各要素
は、一般的に虚数部が0ではない複素数であるが、本実
施例では関数M(s,t)として対称性の高い配列を用
いているため、虚数部は全要素で0である。2次元複素
数配列データE(x,y)の各要素は、それぞれ2次元
フーリエ変換データitzu11〜itzu69として
画像処理用コンピュータの2次記憶媒体に記録する。
Each element of the two-dimensional complex array data E (x, y) having a size of 128 × 128, which is the result of the above conversion, is generally a complex number whose imaginary part is not 0. Since an array with high symmetry is used as M (s, t), the imaginary part is 0 in all elements. Each element of the two-dimensional complex array data E (x, y) is recorded on the secondary storage medium of the computer for image processing as two-dimensional Fourier transform data itzu11 to itzu69, respectively.

【0238】上記処理で画像処理用コンピュータの2次
記憶媒体に記録した2次元複素数データitzu11〜
itzu69から、分割する前のビットマップ形式画像
をフーリエフィルタリングした画像データを作成する。
その処理を以下に説明する。
In the above processing, the two-dimensional complex number data itzu11 to itzu11-recorded in the secondary storage medium of the image processing computer
From the itzu 69, image data is generated by performing Fourier filtering on the bitmap format image before division.
The processing will be described below.

【0239】まず、分割する前のビットマップ形式画像
の横幅の画素数をW、高さの画素数をHとして、新たに
W×Hの要素数を持つ2次元実数配列J(x,y)を作
成し、その全要素を0で初期化する。
First, assuming that the number of horizontal pixels is W and the number of high pixels is H in a bitmap format image before division, a two-dimensional real number array J (x, y) having a new number of W × H elements And initialize all its elements with zero.

【0240】次に画像処理用コンピュータの2次記憶媒
体に記録した2次元複素数データitzu11〜itz
u69を一つずつ読み込み、その各要素の絶対値を以下
のように2次元実数配列J(x,y)に加算する。
Next, the two-dimensional complex number data itzu11 to itz recorded on the secondary storage medium of the image processing computer
u69 is read one by one, and the absolute value of each element is added to a two-dimensional real array J (x, y) as follows.

【0241】画像処理用コンピュータの2次記憶媒体に
記録した2次元複素数データitzu11〜itzu5
5のうち一つを、2次元複素数配列E(x,y)に読み
込み、その全要素に対して
The two-dimensional complex number data itzu11 to itzu5 recorded on the secondary storage medium of the image processing computer
5 is read into a two-dimensional complex array E (x, y), and all the elements are read.

【0242】[0242]

【数78】J(x+u,y+v)+|E(x,y)| を計算し、その結果を新たにJ(x+u,y+v)とす
る。ここで、定数uとvは、分割した領域の分割前の場
所に依存した値であり、本実施例では、図20に示すよ
うな値で与えられる。
Equation (78): J (x + u, y + v) + | E (x, y) | is calculated, and the result is newly set as J (x + u, y + v). Here, the constants u and v are values depending on the location of the divided area before division, and are given as values shown in FIG. 20 in the present embodiment.

【0243】画像処理用コンピュータの2次記憶媒体に
記録した2次元複素数データitzu11〜itzu6
9について上記加算処理を行い、その結果得られた2次
元実数配列J(x,y)をビットマップ形式にデータを
並び替え、元の全ビットマップ形式画像をフーリエフィ
ルタリングした画像データを作成する。その結果を図2
1に示す。
The two-dimensional complex number data itzu11 to itzu6 recorded on the secondary storage medium of the image processing computer
The above-mentioned addition processing is performed on 9 and the resulting two-dimensional real array J (x, y) is rearranged into a bitmap format, and image data obtained by Fourier-filtering all the original bitmap format images is created. Figure 2 shows the result.
It is shown in FIG.

【0244】(実施例12)上述の実施例11では、画
像処理用コンピュータで元画像の分割、窓関数の掛け合
わせ、2次元フーリエ変換処理、フィルタ関数との演
算、逆フーリエ変換、逆フーリエ変換結果の足し合わせ
処理を、コンピュータの2次記憶媒体に毎回記憶させな
がら手動で行ったが、これら中間処理結果をコンピュー
タの2次記憶媒体に記録せずに、バッチ処理として自動
的に一連の操作を行うことが可能である。図22に、そ
の処理フローの一例を示す。
(Embodiment 12) In Embodiment 11, the image processing computer divides an original image, multiplies by a window function, performs two-dimensional Fourier transform processing, operation with a filter function, inverse Fourier transform, inverse Fourier transform. The process of summing the results was performed manually while being stored in the secondary storage medium of the computer each time. However, the intermediate processing results were not recorded in the secondary storage medium of the computer, but a series of operations were automatically performed as batch processing. It is possible to do. FIG. 22 shows an example of the processing flow.

【0245】まず、ステップS600にて、デジタル化
されたビットマップ形式の画像ファイルを自動的に分割
する処理を行う。ただし、分割領域の大きさは最終的な
空間周波数スペクトルの粗さになるため、この大きさだ
けは本自動処理プログラムを利用する利用者が適宜判断
して入力パラメータとして入力する。このようにして入
力された分割領域の幅をw、高さをhとする。これらw
とhは、高速フーリエ変換処理を利用できるように2の
整数乗の値であることが好ましい。元のデジタル化され
たビットマップ形式の画像サイズを幅W、高さHとす
る。これらのパラメータから分割する領域数を横方向に
、縦方向にnとすると、これらは
First, in step S600, a process of automatically dividing a digitized image file in a bitmap format is performed. However, since the size of the divided area becomes the final roughness of the spatial frequency spectrum, the user using the automatic processing program appropriately determines only this size and inputs it as an input parameter. The width and height of the divided area input in this manner are defined as w and h, respectively. These w
And h are preferably integer powers of 2 so that fast Fourier transform processing can be used. The original digitized bitmap format image size is assumed to be width W and height H. Assuming that the number of regions to be divided from these parameters is n w in the horizontal direction and n h in the vertical direction,

【0246】[0246]

【数79】 で表わされる。ここで、括弧[]はガウスの記号で、
[x]は実数xを超えない最大の整数を意味する。以
下、説明で用いる括弧[]は全てこのガウスの記号とし
て扱う。
[Expression 79] Is represented by Where the brackets [] are Gaussian symbols,
[X] means the largest integer not exceeding the real number x. Hereinafter, all the brackets [] used in the description are treated as Gaussian symbols.

【0247】次に分割領域の範囲を決定する。分割前の
画像の一番左隅下の画素座標を原点として、横方向右向
きにX軸、縦方向上向きにY軸を設定し、X方向Y方向
共に1画素間隔を単位長さ1として、横方向にi番目、
縦方向にj番目の分割領域の範囲は、
Next, the range of the divided area is determined. With the pixel coordinates at the lower left corner of the image before division as the origin, the X axis is set to the right in the horizontal direction, and the Y axis is set to the upward in the vertical direction. I-th,
The range of the j-th divided area in the vertical direction is

【0248】[0248]

【数80】 で与えられる。[Equation 80] Given by

【0249】次に、ステップS601にて、2次元フー
リエ変換結果を足し合わせて記憶するためのw×hの要
素を持つ実数配列Bの全要素をすべて0に初期化する。
ここで、すべての配列は添え字の始まりが0であるとす
る。
Next, in step S601, all elements of the real number array B having w × h elements for adding and storing the results of the two-dimensional Fourier transform are initialized to zero.
Here, it is assumed that the start of the subscript is 0 for all arrays.

【0250】初期化後、ステップS602〜S613の
一連の処理を行う。まず、上記の方法で決めた分割範囲
にしたがって、まず一番左下隅の分割領域のビットマッ
プ形式データを取り出して2次元フーリエ変換処理し、
その結果を2次元フーリエ変換結果を足し合わせて記憶
するための配列に足し合わせる。続いて、その隣の領域
に対して同じ処理を行い再び2次元フーリエ変換結果を
足し合わせて記憶するための配列にその処理結果を足し
合わせる。この繰り返しを全ての分割領域に対して行
い、2次元フーリエ変換結果を足し合わせて記憶するた
めの配列を計算する(ステップS604〜S606)。
After initialization, a series of processes in steps S602 to S613 are performed. First, according to the division range determined by the above method, first, the bitmap format data of the division region at the lower left corner is extracted and subjected to a two-dimensional Fourier transform process.
The result is added to an array for adding and storing the two-dimensional Fourier transform result. Subsequently, the same processing is performed on the adjacent area, and the processing result is added to an array for adding and storing the two-dimensional Fourier transform result again. This repetition is performed for all the divided areas, and an array for adding and storing the two-dimensional Fourier transform results is calculated (steps S604 to S606).

【0251】以下に、横方向にi番目、縦方向にj番目
の分割領域に対する変換処理手順を詳細に説明する。
The following is a detailed description of the conversion procedure for the i-th divided area in the horizontal direction and the j-th divided area in the vertical direction.

【0252】分割前のビットマップ形式の画像から横方
向にi番目、縦方向にj番目の分割領域の要素をすべて
取り出し、各要素をw×hの要素を持つ実数配列Zにコ
ピーする。分割前のビットマップ形式データをW×Hの
要素を持つ2次元配列Iとして表現すると、そのコピー
All the elements of the i-th divided area in the horizontal direction and the j-th divided area in the vertical direction are extracted from the bit map image before division, and each element is copied to a real number array Z having w × h elements. If the bitmap format data before division is expressed as a two-dimensional array I having W × H elements, the copy is

【0253】[0253]

【数81】 の演算を、それぞれ「0」〜「w−1」、「0」〜「h
−1」の範囲の整数xとyの全ての組み合わせに対して
行う。ただし、上記式において、配列I(x,y)のx
≧Wあるいはy≧Hの要素に関しては任意の値とする。
[Equation 81] Are calculated as “0” to “w−1” and “0” to “h”, respectively.
This is performed for all combinations of integers x and y in the range of "-1". However, in the above formula, x in the array I (x, y)
Elements having ≧ W or y ≧ H are set to arbitrary values.

【0254】次に、窓関数F(x)とF(y)をそ
れぞれ要素数wとhの実数1次元配列として全要素を以
下のように計算する。
Next, assuming the window functions F w (x) and F h (y) as real one-dimensional arrays of the numbers of elements w and h, respectively, all elements are calculated as follows.

【0255】[0255]

【数82】 この窓関数配列を用いて、分割領域データ配列Zからw
×hの要素数を持つ2次元複素数配列Gを以下の計算
で、全部の要素について求める。
(Equation 82) Using this window function array, the divided area data array Z to w
A two-dimensional complex array G having the number of elements of × h is obtained for all elements by the following calculation.

【0256】[0256]

【数83】 G(x,y)=F(x)F(y)Z(x,y) G(x,y)=0 ここで、GとGはそれぞれ複素数配列Gの実数部と
虚数部である。このようにして求めた2次元複素数配列
Gを2次元フーリエ変換処理する。ここで、2次元フー
リエ変換処理は以下の式により行い、その変換結果をw
×hの要素数を持つ2次元複素数配列Rの全要素に格納
する。
Equation 83] G r (x, y) = F w (x) F h (y) Z (x, y) G i (x, y) = 0 Here, G r and G i are complex number sequence G Are the real and imaginary parts of. The two-dimensional complex array G thus obtained is subjected to two-dimensional Fourier transform processing. Here, the two-dimensional Fourier transform processing is performed by the following equation, and the result of the conversion is expressed as w
It is stored in all elements of the two-dimensional complex array R having the number of elements of × h.

【0257】[0257]

【数84】 ここで、RとRはそれぞれ複素数配列Rの実数部と
虚数部である。ただし、wとhが共に2の整数乗の場合
は、汎用のCooley−Tukeyのアルゴリズムを
用いた2次元FFT処理によって同じ計算を短時間で行
うことが出来る。
[Equation 84] Here, R r and R i are the real part and the imaginary part of the complex number array R, respectively. However, when both w and h are integer powers of 2, the same calculation can be performed in a short time by two-dimensional FFT processing using a general-purpose Cooley-Tukey algorithm.

【0258】次に、特定の空間周波数の成分だけを取り
出すために、この2次元複素数配列R(s,t)に対
し、次の演算を行ってw×hの要素を持つ新しい2次元
複素数配列D(s,t)を求める(ステップS60
7)。
Next, in order to extract only a component of a specific spatial frequency, the following operation is performed on the two-dimensional complex number array R (s, t) to obtain a new two-dimensional complex number array having w × h elements. D (s, t) is obtained (Step S60)
7).

【0259】[0259]

【数85】D(s,t)=M(s,t)R(s,t) ここで、ある空間周波数r以上の成分を取り除くため、
w×hの要素を持つ2次元複素数配列M(s,t)は以
下のように与えられるものとする。
D (s, t) = M (s, t) R (s, t) Here, in order to remove a component above a certain spatial frequency r,
It is assumed that a two-dimensional complex array M (s, t) having w × h elements is given as follows.

【0260】[0260]

【数86】 を満足するs,tの場合 M(s,t)=0 で与えられる。これは、単純に空間周波数の完全なロー
パスフィルタであるが、このフィルタ用配列としてはw
×hの要素を持つ任意の配列を用いることができる。た
だし、この2次元複素数配列M(s,t)は全ての分割
領域に対して同じ配列を用いる。
[Equation 86] In the case of s, t that satisfies: M (s, t) = 0. This is simply a perfect low pass filter of spatial frequency, but the array for this filter is w
Any array with xh elements can be used. However, this two-dimensional complex number array M (s, t) uses the same array for all divided regions.

【0261】次に、上記のようにして求めたD(s,
t)から以下の式を用いて2次元デジタルフーリエ逆変
換処理を行い、新しく2次元複素数配列E(x,y)を
求める(ステップS608)。
Next, D (s,
From t), two-dimensional digital Fourier inverse transform processing is performed using the following equation to newly obtain a two-dimensional complex array E (x, y) (step S608).

【0262】[0262]

【数87】 ここでwとhが共に2の整数乗の値である場合、この2
次元デジタルフーリエ変換処理として汎用の高速フーリ
エ変換処理であるCooley−Tukeyのアルゴリ
ズムを利用し同じ計算を短時間で行うことが出来る。
[Equation 87] Here, if both w and h are integer powers of 2, this 2
The same calculation can be performed in a short time by using a Cooley-Tukey algorithm that is a general-purpose fast Fourier transform process as the dimensional digital Fourier transform process.

【0263】最後に、この2次元複素数配列E(x,
y)を2次元実数配列J(x,y)に足しあわせる(ス
テップS609)。この処理は、E(x,y)の全要素
に対して以下の式を用いて行う。
Finally, the two-dimensional complex number array E (x,
y) is added to the two-dimensional real number array J (x, y) (step S609). This processing is performed on all elements of E (x, y) using the following equation.

【0264】[0264]

【数88】 を満足しない2次元実数配列J(x,y)の要素に関し
ては、前の値をそのまま用いる。
[Equation 88] For the elements of the two-dimensional real number array J (x, y) that do not satisfy the above, the previous value is used as it is.

【0265】以上の演算を行うことにより、横方向にi
番目、縦方向にj番目の分割領域に対する処理が完了す
る。
By performing the above operation, i is calculated in the horizontal direction.
The processing for the j-th divided area in the vertical and vertical directions is completed.

【0266】以上の処理を横方向に1からnw、縦方向
に1からnhまで分割領域全部に対して行い、分割演算
処理結果を足しあわせる2次元実数配列J(x,y)を
求める。そして、求めた2次元実数配列J(x,y)を
ビットマップ形式にデータを並び替え、元の全ビットマ
ップ形式画像をフーリエフィルタリングした画像データ
を作成する。上述のようにして得られた配列Jは、次の
処理を行うブロック(図1のフィルタ処理部24)へ出
力される(ステップS614)。
The above processing is performed on all the divided areas from 1 to nw in the horizontal direction and from 1 to nh in the vertical direction, and a two-dimensional real number array J (x, y) for adding the results of the division operation processing is obtained. Then, the data of the obtained two-dimensional real number array J (x, y) is rearranged into a bitmap format, and image data obtained by performing Fourier filtering on all the original bitmap format images is created. The array J obtained as described above is output to a block that performs the following processing (the filter processing unit 24 in FIG. 1) (step S614).

【0267】[0267]

【発明の効果】以上説明したように、本発明によれば、
大きな画素数の画像を分割してフーリエ変換することが
できるので、フーリエ変換処理、フィルタ処理、フーリ
エ逆変換処理などのデジタル画像処理を小さいメモリで
高速に行うことができ、しかも、分割領域を厳密に連続
的に接合することができるので、各領域の境界部の影響
のない処理画像を提供することができる。
As described above, according to the present invention,
Since an image with a large number of pixels can be divided and subjected to Fourier transform, digital image processing such as Fourier transform processing, filter processing, Fourier inverse transform processing, etc. can be performed at high speed with a small memory, and the divided area is strict Can be continuously joined, so that it is possible to provide a processed image free from the influence of the boundary of each region.

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

【図1】本発明のデジタル画像処理方法が適用される画
像処理装置の一実施形態を示すブロック図である。
FIG. 1 is a block diagram illustrating an embodiment of an image processing apparatus to which a digital image processing method according to the present invention is applied.

【図2】原画像として取り込まれる、化合物半導体断面
の電子顕微鏡写真である
FIG. 2 is an electron micrograph of a cross section of a compound semiconductor captured as an original image.

【図3】分割領域の一例を示す図である。FIG. 3 is a diagram illustrating an example of a divided area.

【図4】空間周波数スペクトルの一例を示す図である。FIG. 4 is a diagram illustrating an example of a spatial frequency spectrum.

【図5】本発明のデジタル画像処理をバッチ処理として
自動的に行う場合の一手順を示すフローチャート図であ
る。
FIG. 5 is a flowchart illustrating a procedure when digital image processing according to the present invention is automatically performed as batch processing.

【図6】原画像として取り込まれる、化合物半導体断面
の電子顕微鏡写真である
FIG. 6 is an electron micrograph of a cross section of a compound semiconductor captured as an original image.

【図7】分割領域の一例を示す図である。FIG. 7 is a diagram illustrating an example of a divided area.

【図8】空間周波数スペクトルの一例を示す図である。FIG. 8 is a diagram illustrating an example of a spatial frequency spectrum.

【図9】本発明のデジタル画像処理をバッチ処理として
自動的に行う場合の一手順を示すフローチャート図であ
る。
FIG. 9 is a flowchart illustrating a procedure for automatically performing digital image processing of the present invention as batch processing.

【図10】原画像として取り込まれる、シリコン半導体
表面層断面の電子顕微鏡写真である。
FIG. 10 is an electron micrograph of a cross section of a silicon semiconductor surface layer captured as an original image.

【図11】分割領域の一例を示す図である。FIG. 11 is a diagram illustrating an example of a divided area.

【図12】空間周波数スペクトルの一例を示す図であ
る。
FIG. 12 is a diagram illustrating an example of a spatial frequency spectrum.

【図13】本発明のデジタル画像処理をバッチ処理とし
て自動的に行う場合の一手順を示すフローチャート図で
ある。
FIG. 13 is a flowchart illustrating a procedure for automatically performing digital image processing of the present invention as batch processing.

【図14】定数uと定数vの値の一例を示す図である。FIG. 14 is a diagram illustrating an example of values of a constant u and a constant v.

【図15】元の全ビットマップ形式画像をフーリエフィ
ルタリングした画像データの一例を示す図である。
FIG. 15 is a diagram illustrating an example of image data obtained by performing Fourier filtering on an original all bitmap format image.

【図16】本発明のデジタル画像処理をバッチ処理とし
て自動的に行う場合の一手順を示すフローチャート図で
ある。
FIG. 16 is a flowchart illustrating a procedure when digital image processing of the present invention is automatically performed as batch processing.

【図17】定数uと定数vの値の一例を示す図である。FIG. 17 is a diagram illustrating an example of values of a constant u and a constant v.

【図18】元の全ビットマップ形式画像をフーリエフィ
ルタリングした画像データの一例を示す図である。
FIG. 18 is a diagram illustrating an example of image data obtained by performing Fourier filtering on an original all bitmap format image.

【図19】本発明のデジタル画像処理をバッチ処理とし
て自動的に行う場合の一手順を示すフローチャート図で
ある。
FIG. 19 is a flowchart illustrating a procedure when digital image processing of the present invention is automatically performed as batch processing.

【図20】定数uと定数vの値の一例を示す図である。FIG. 20 is a diagram illustrating an example of values of a constant u and a constant v.

【図21】元の全ビットマップ形式画像をフーリエフィ
ルタリングした画像データの一例を示す図である。
FIG. 21 is a diagram illustrating an example of image data obtained by performing Fourier filtering on an original all bitmap format image.

【図22】本発明のデジタル画像処理をバッチ処理とし
て自動的に行う場合の一手順を示すフローチャート図で
ある。
FIG. 22 is a flowchart illustrating a procedure for automatically performing digital image processing of the present invention as batch processing.

【図23】(a)〜(c)は特開平4−42376号公
報に記載の2次元フーリエ変換における付加データエリ
アの例を示す図である。
FIGS. 23A to 23C are diagrams showing examples of additional data areas in a two-dimensional Fourier transform described in Japanese Patent Application Laid-Open No. 4-42376.

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

1 画像入力部 2 画像処理部 3 記憶装置 4 記録媒体 11 スキャナ部 12 画像メモリ部 21 画像分割部 22 窓関数乗算部 23 2次元フーリエ変換部 24 フィルタ処理部 25 2次元フーリエ逆変換部 26 画像合成部 REFERENCE SIGNS LIST 1 image input unit 2 image processing unit 3 storage device 4 recording medium 11 scanner unit 12 image memory unit 21 image division unit 22 window function multiplication unit 23 two-dimensional Fourier transform unit 24 filter processing unit 25 two-dimensional inverse Fourier transform unit 26 image synthesis Department

Claims (18)

【特許請求の範囲】[Claims] 【請求項1】 原画像を、隣接し合う領域が互いにオー
バーラツプする、同一サイズの正方形あるいは長方形の
複数の領域に分割するステップと、 前記分割された各領域に対して窓関数を乗じるステップ
と、 前記窓関数を乗じた各分割領域について2次元デジタル
フーリエ変換を行うステップと、 前記フーリエ変換が施された分割領域を足し合わせるス
テップとを有し、 前記窓関数として、前記フーリエ変換結果を足し合わせ
る際に前記オーバーラップ領域で元の画像が再現される
よう調節した関数を用いることを特徴とするデジタル画
像処理方法。
1. a step of dividing an original image into a plurality of square or rectangular areas of the same size where adjacent areas overlap with each other; and multiplying each of the divided areas by a window function. Performing a two-dimensional digital Fourier transform on each divided region multiplied by the window function; and adding the divided regions subjected to the Fourier transform, and adding the Fourier transform result as the window function A digital image processing method using a function adjusted so that an original image is reproduced in the overlap area.
【請求項2】 請求項1に記載のデジタル画像処理方法
において、 前記原画像を分割するステップが、隣接し合う領域が互
いに半分ずつ重なり合うようにオーバーラップさせて分
割するステップであり、 前記分割された領域の横座標をx、縦座標をy、横幅を
W、縦幅をHとし、定数aと定数bをそれぞれ0以上1
未満とした場合に、各分割領域の左下隅をそれぞれ原点
として、前記窓関数であるF(x,y)が以下の式で与
えられることを特徴とするデジタル画像処理方法。 F(x,y)=sin(π(x+a)/W)sin
(π(y+b)/H)
2. The digital image processing method according to claim 1, wherein the step of dividing the original image is a step of overlapping and dividing adjacent regions such that adjacent regions overlap each other by half. The horizontal coordinate is x, the vertical coordinate is y, the horizontal width is W, the vertical width is H, and the constants a and b are 0 or more and 1 respectively.
A digital image processing method wherein the window function F (x, y) is given by the following equation, with the lower left corner of each divided area as the origin when the value is less than: F (x, y) = sin 2 (π (x + a) / W) sin 2
(Π (y + b) / H)
【請求項3】 請求項1に記載のデジタル画像処理方法
において、 前記原画像を分割するステップが、隣接し合う領域が互
いに半分ずつ重なり合うようにオーバーラップさせて分
割するステップであり、 前記分割された領域の横座標をx、縦座標をy、横幅を
W、縦幅をHとし、前記オーバーラップ領域の横方向の
幅をA、縦方向の幅をBとした場合に、各分割領域の左
下隅をそれぞれ原点として、前記窓関数であるF(x,
y)が以下の式で与えられることを特徴とするデジタル
画像処理方法。 F(x,y)=F(x)F(y) ただし、0≦x≦2(W−A)の範囲で、 F(x)=sin(πx/(2(W−A))) それ以外のxの範囲で、 F(x)=0 0≦y≦2(H−B)の範囲で、 F(y)=sin(πy/(2(H−B))) それ以外のyの範囲で、 F(y)=0
3. The digital image processing method according to claim 1, wherein the step of dividing the original image is a step of overlapping and dividing adjacent regions so that adjacent regions overlap each other by half. When the horizontal coordinate of the divided area is x, the vertical coordinate is y, the horizontal width is W, the vertical width is H, and the horizontal width of the overlap area is A, and the vertical width is B, With the lower left corner as the origin, the window function F (x,
A digital image processing method, wherein y) is given by the following equation: F (x, y) = F 1 (x) F 2 (y) However, in the range of 0 ≦ x ≦ 2 (W−A), F 1 (x) = sin 2 (πx / (2 (W−A) ))) Other than x, F 1 (x) = 0 0 ≦ y ≦ 2 (H−B), F 2 (y) = sin 2 (πy / (2 (H−B)) )) In other y ranges, F 2 (y) = 0
【請求項4】 原画像を、隣接し合う領域が互いにオー
バーラツプする、同一サイズの正方形あるいは長方形の
複数の領域に分割するステップと、 前記分割された各領域に窓関数を乗じるステップと、 前記窓関数を乗じた各分割領域について2次元デジタル
フーリエ変換を行うステップと、 前記フーリエ変換が施された分割領域について所望のフ
ィルタ処理を行うステップと、 前記フィルタ処理が施された分割領域についてデジタル
フーリエ逆変換を行うステップと、 前記フーリエ逆変換が施された分割領域を足し合わせる
ステップとを有し、 前記窓関数として、前記フーリエ逆変換を足し合わせる
際に前記オーバーラップ領域で元の画像が再現されるよ
う調節した関数を用いることを特徴とするデジタル画像
処理方法。
4. A step of dividing the original image into a plurality of square or rectangular areas of the same size where adjacent areas overlap with each other; multiplying each of the divided areas by a window function; Performing a two-dimensional digital Fourier transform on each of the divided regions multiplied by the function; performing a desired filter process on the divided regions on which the Fourier transform has been performed; and performing a digital Fourier inverse on the filtered divided regions. Performing a transform, and adding the divided areas subjected to the inverse Fourier transform, wherein the original image is reproduced in the overlap area when the inverse Fourier transform is added as the window function. A digital image processing method characterized by using a function adjusted in such a manner.
【請求項5】 請求項4に記載のデジタル画像処理方法
において、 前記原画像を分割するステップが、隣接し合う領域が互
いに半分ずつ重なり合うようにオーバーラップさせて分
割するステップであり、 前記分割された領域の横座標をx、縦座標をy、横幅を
W、縦幅をHとし、定数aと定数bをそれぞれ0以上1
未満とした場合に、各分割領域の左下隅をそれぞれ原点
として、前記窓関数であるF(x,y)が以下の式で与
えられることを特徴とするデジタル画像処理方法。 F(x,y)=sin(π(x+a)/W)sin
(π(y+b)/H)
5. The digital image processing method according to claim 4, wherein the step of dividing the original image is a step of dividing the adjacent image so that adjacent regions overlap each other by half. The horizontal coordinate is x, the vertical coordinate is y, the horizontal width is W, the vertical width is H, and the constants a and b are 0 or more and 1 respectively.
A digital image processing method wherein the window function F (x, y) is given by the following equation, with the lower left corner of each divided area as the origin when the value is less than: F (x, y) = sin 2 (π (x + a) / W) sin 2
(Π (y + b) / H)
【請求項6】 請求項4に記載のデジタル画像処理方法
において、 前記原画像を分割するステップが、隣接し合う領域が互
いに半分ずつ重なり合うようにオーバーラップさせて分
割するステップであり、 前記分割された領域の横座標をx、縦座標をy、横幅を
W、縦幅をHとし、前記オーバーラップ領域の横方向の
幅をA、縦方向の幅をBとした場合に、各分割領域の左
下隅をそれぞれ原点として、前記窓関数であるF(x,
y)が以下の式で与えられることを特徴とするデジタル
画像処理方法。 F(x,y)=F(x)F(y) ただし、0≦x≦2(W−A)の範囲で、 F(x)=sin(πx/(2(W−A))) それ以外のxの範囲で、 F(x)=0 0≦y≦2(H−B)の範囲で、 F(y)=sin(πy/(2(H−B))) それ以外のyの範囲で、 F(y)=0
6. The digital image processing method according to claim 4, wherein the step of dividing the original image is a step of dividing the original image by overlapping so that adjacent regions overlap each other by half. When the horizontal coordinate of the divided area is x, the vertical coordinate is y, the horizontal width is W, the vertical width is H, and the horizontal width of the overlap area is A, and the vertical width is B, With the lower left corner as the origin, the window function F (x,
A digital image processing method, wherein y) is given by the following equation: F (x, y) = F 1 (x) F 2 (y) However, in the range of 0 ≦ x ≦ 2 (W−A), F 1 (x) = sin 2 (πx / (2 (W−A) ))) Other than x, F 1 (x) = 0 0 ≦ y ≦ 2 (H−B), F 2 (y) = sin 2 (πy / (2 (H−B)) )) In other y ranges, F 2 (y) = 0
【請求項7】 原画像を、隣接し合う領域が互いにオー
バーラツプする、同一サイズの正方形あるいは長方形の
複数の領域に分割する画像分割手段と、 前記画像分割手段にて分割された各領域に窓関数を乗じ
る窓関数乗算手段と、 前記窓関数を乗じた各分割領域について2次元デジタル
フーリエ変換を行う2次元フーリエ変換手段と、 前記フーリエ変換が施された分割領域を足し合わせる画
像合成手段とを有し、 前記窓関数が、前記フーリエ逆変換を足し合わせる際に
前記オーバーラップ領域で元の画像が再現されるよう調
節した関数であることを特徴とするデジタル画像処理装
置。
7. An image dividing means for dividing an original image into a plurality of square or rectangular areas of the same size in which adjacent areas overlap each other, and a window function for each area divided by said image dividing means. , A two-dimensional Fourier transform means for performing a two-dimensional digital Fourier transform for each divided area multiplied by the window function, and an image synthesizing means for adding the divided areas subjected to the Fourier transform. A digital image processing apparatus, wherein the window function is a function adjusted so that an original image is reproduced in the overlap region when adding the inverse Fourier transform.
【請求項8】 請求項7に記載のデジタル画像処理装置
において、 前記画像分割手段が、隣接し合う領域が互いに半分ずつ
重なり合うようにオーバーラップさせて分割し、 前記窓関数乗算手段が、前記分割された領域の横座標を
x、縦座標をy、横幅をW、縦幅をHとし、定数aと定
数bをそれぞれ0以上1未満とした場合に、各分割領域
の左下隅をそれぞれ原点として、前記窓関数であるF
(x,y)が以下の式で与えられるように構成されてい
ることを特徴とするデジタル画像処理装置。 F(x,y)=sin(π(x+a)/W)sin
(π(y+b)/H)
8. The digital image processing apparatus according to claim 7, wherein the image dividing unit divides the adjacent regions so that adjacent regions overlap each other by half, and the window function multiplying unit performs the division. When the abscissa of the divided area is x, the ordinate is y, the width is W, the height is H, and the constants a and b are each 0 or more and less than 1, the origin is set at the lower left corner of each divided area. , The window function F
A digital image processing apparatus characterized in that (x, y) is given by the following equation. F (x, y) = sin 2 (π (x + a) / W) sin 2
(Π (y + b) / H)
【請求項9】 請求項7に記載のデジタル画像処理装置
において、 前記画像分割手段が、隣接し合う領域が互いに半分ずつ
重なり合うようにオーバーラップさせて分割し、 前記窓関数乗算手段が、前記分割された領域の横座標を
x、縦座標をy、横幅をW、縦幅をHとし、前記オーバ
ーラップ領域の横方向の幅をA、縦方向の幅をBとした
場合に、各分割領域の左下隅をそれぞれ原点として、前
記窓関数であるF(x,y)が以下の式で与えられるよ
うに構成されていることを特徴とするデジタル画像処理
装置。 F(x,y)=F(x)F(y) ただし、0≦x≦2(W−A)の範囲で、 F(x)=sin(πx/(2(W−A))) それ以外のxの範囲で、 F(x)=0 0≦y≦2(H−B)の範囲で、 F(y)=sin(πy/(2(H−B))) それ以外のyの範囲で、 F(y)=0
9. The digital image processing apparatus according to claim 7, wherein the image dividing unit divides the adjacent regions so that adjacent regions overlap each other by half, and the window function multiplying unit performs the division. When the horizontal coordinate of the divided area is x, the vertical coordinate is y, the horizontal width is W, the vertical width is H, and the horizontal width of the overlap area is A, and the vertical width is B, each divided area A digital image processing apparatus characterized in that F (x, y), which is the window function, is given by the following equation, with the lower left corner of each being the origin. F (x, y) = F 1 (x) F 2 (y) However, in the range of 0 ≦ x ≦ 2 (W−A), F 1 (x) = sin 2 (πx / (2 (W−A) ))) Other than x, F 1 (x) = 0 0 ≦ y ≦ 2 (H−B), F 2 (y) = sin 2 (πy / (2 (H−B)) )) In other y ranges, F 2 (y) = 0
【請求項10】 原画像を、隣接し合う領域が互いにオ
ーバーラツプする、同一サイズの正方形あるいは長方形
の複数の領域に分割する画像分割手段と、 前記画像分割手段にて分割された各領域に窓関数を乗じ
る窓関数乗算手段と、 前記窓関数を乗じた各分割領域について2次元デジタル
フーリエ変換を行う2次元フーリエ変換手段と、 前記フーリエ変換が施された分割領域について所望のフ
ィルタ処理を行うフィルタ処理手段と、 前記フィルタ処理が施された分割領域についてデジタル
フーリエ逆変換を行うフーリエ逆変換手段と、 前記フーリエ逆変換が施された分割領域を足し合わせる
画像合成手段とを有し、 前記窓関数が、前記フーリエ逆変換を足し合わせる際に
前記オーバーラップ領域で元の画像が再現されるよう調
節した関数であることを特徴とするデジタル画像処理装
置。
10. An image dividing unit for dividing an original image into a plurality of square or rectangular regions of the same size where adjacent regions overlap each other, and a window function for each of the regions divided by the image dividing unit. A two-dimensional Fourier transform means for performing a two-dimensional digital Fourier transform on each divided area multiplied by the window function; and a filter processing for performing a desired filter process on the divided area subjected to the Fourier transform Means, Fourier inverse transform means for performing a digital Fourier inverse transform on the filtered divided area, and image combining means for adding the divided areas subjected to the Fourier inverse transform, wherein the window function is A function adjusted so that an original image is reproduced in the overlap area when adding the Fourier inverse transform. A digital image processing apparatus, comprising:
【請求項11】請求項10に記載のデジタル画像処理装
置において、 前記画像分割手段が、隣接し合う領域が互いに半分ずつ
重なり合うようにオーバーラップさせて分割し、 前記窓関数乗算手段が、前記分割された領域の横座標を
x、縦座標をy、横幅をW、縦幅をHとし、定数aと定
数bをそれぞれ0以上1未満とした場合に、各分割領域
の左下隅をそれぞれ原点として、前記窓関数であるF
(x,y)が以下の式で与えられるように構成されてい
ることを特徴とするデジタル画像処理装置。 F(x,y)=sin(π(x+a)/W)sin
(π(y+b)/H)
11. The digital image processing apparatus according to claim 10, wherein said image dividing means divides the adjacent areas so that adjacent areas overlap each other by half, and said window function multiplying means includes: When the abscissa of the divided area is x, the ordinate is y, the width is W, the height is H, and the constants a and b are each 0 or more and less than 1, the origin is set at the lower left corner of each divided area. , The window function F
A digital image processing apparatus characterized in that (x, y) is given by the following equation. F (x, y) = sin 2 (π (x + a) / W) sin 2
(Π (y + b) / H)
【請求項12】 請求項10に記載のデジタル画像処理
装置において、 前記画像分割手段が、隣接し合う領域が互いに半分ずつ
重なり合うようにオーバーラップさせて分割し、 前記窓関数乗算手段が、前記分割された領域の横座標を
x、縦座標をy、横幅をW、縦幅をHとし、前記オーバ
ーラップ領域の横方向の幅をA、縦方向の幅をBとした
場合に、各分割領域の左下隅をそれぞれ原点として、前
記窓関数であるF(x,y)が以下の式で与えられるよ
うに構成されていることを特徴とするデジタル画像処理
装置。 F(x,y)=F(x)F(y) ただし、0≦x≦2(W−A)の範囲で、 F(x)=sin(πx/(2(W−A))) それ以外のxの範囲で、 F(x)=0 0≦y≦2(H−B)の範囲で、 F(y)=sin(πy/(2(H−B))) それ以外のyの範囲で、 F(y)=0
12. The digital image processing apparatus according to claim 10, wherein the image dividing unit divides the adjacent regions such that adjacent regions overlap each other by half, and the window function multiplying unit performs the division. When the horizontal coordinate of the divided area is x, the vertical coordinate is y, the horizontal width is W, the vertical width is H, and the horizontal width of the overlap area is A, and the vertical width is B, each divided area A digital image processing apparatus characterized in that F (x, y) as the window function is given by the following equation, with the lower left corner of each being the origin. F (x, y) = F 1 (x) F 2 (y) However, in the range of 0 ≦ x ≦ 2 (W−A), F 1 (x) = sin 2 (πx / (2 (W−A) ))) Other than x, F 1 (x) = 0 0 ≦ y ≦ 2 (H−B), F 2 (y) = sin 2 (πy / (2 (H−B)) )) In other y ranges, F 2 (y) = 0
【請求項13】 原画像を、隣接し合う領域が互いにオ
ーバーラツプする、同一サイズの正方形あるいは長方形
の複数の領域に分割する処理と、 前記分割された各領域に対して窓関数を乗じる処理と、 前記窓関数を乗じた各分割領域について2次元デジタル
フーリエ変換を行う処理と、 前記フーリエ変換が施された分割領域を足し合わせる処
理とをコンピュータに実行させるためのプログラムを記
録した記録媒体であって、 前記窓関数として、前記フーリエ変換結果を足し合わせ
る際に前記オーバーラップ領域で元の画像が再現される
よう調節した関数が用いられるように前記プログラムが
構成されていることを特徴とする記録媒体。
13. A process of dividing an original image into a plurality of square or rectangular regions of the same size where adjacent regions overlap with each other; a process of multiplying each of the divided regions by a window function; A recording medium storing a program for causing a computer to execute a process of performing a two-dimensional digital Fourier transform on each divided region multiplied by the window function and a process of adding the divided regions subjected to the Fourier transform. The recording medium, wherein the program is configured such that a function adjusted so that an original image is reproduced in the overlap area when the Fourier transform results are added is used as the window function. .
【請求項14】 請求項13に記載の記録媒体におい
て、 前記原画像を分割する処理が、隣接し合う領域が互いに
半分ずつ重なり合うようにオーバーラップさせて分割す
る処理であり、 前記分割された領域の横座標をx、縦座標をy、横幅を
W、縦幅をHとし、定数aと定数bをそれぞれ0以上1
未満とした場合に、各分割領域の左下隅をそれぞれ原点
として、前記窓関数であるF(x,y)が以下の式で与
えられるように前記プログラムが構成されていることを
特徴とする記録媒体。 F(x,y)=sin(π(x+a)/W)sin
(π(y+b)/H)
14. The recording medium according to claim 13, wherein the process of dividing the original image is a process of dividing the original image by overlapping so that adjacent regions overlap each other by half. The abscissa is x, the ordinate is y, the width is W, the height is H, and the constants a and b are 0 or more and 1 respectively.
When the number is less than the above, the program is configured such that the window function F (x, y) is given by the following equation, with the lower left corner of each divided area as the origin. Medium. F (x, y) = sin 2 (π (x + a) / W) sin 2
(Π (y + b) / H)
【請求項15】 請求項13に記載の記録媒体におい
て、 前記原画像を分割する処理が、隣接し合う領域が互いに
半分ずつ重なり合うようにオーバーラップさせて分割す
る処理であり、 前記分割された領域の横座標をx、縦座標をy、横幅を
W、縦幅をHとし、前記オーバーラップ領域の横方向の
幅をA、縦方向の幅をBとした場合に、各分割領域の左
下隅をそれぞれ原点として、前記窓関数であるF(x,
y)が以下の式で与えられるように前記プログラムが構
成されていることを特徴とする記録媒体。 F(x,y)=F(x)F(y) ただし、0≦x≦2(W−A)の範囲で、 F(x)=sin(πx/(2(W−A))) それ以外のxの範囲で、 F(x)=0 0≦y≦2(H−B)の範囲で、 F(y)=sin(πy/(2(H−B))) それ以外のyの範囲で、 F(y)=0
15. The recording medium according to claim 13, wherein the process of dividing the original image is a process of dividing the original image by overlapping so that adjacent regions overlap each other by half. , The horizontal coordinate is y, the horizontal width is W, the vertical width is H, and the horizontal width of the overlap region is A, and the vertical width is B. Are the origins, respectively, and the window function F (x,
A recording medium, wherein the program is configured so that y) is given by the following equation. F (x, y) = F 1 (x) F 2 (y) However, in the range of 0 ≦ x ≦ 2 (W−A), F 1 (x) = sin 2 (πx / (2 (W−A) ))) Other than x, F 1 (x) = 0 0 ≦ y ≦ 2 (H−B), F 2 (y) = sin 2 (πy / (2 (H−B)) )) In other y ranges, F 2 (y) = 0
【請求項16】 原画像を、隣接し合う領域が互いにオ
ーバーラツプする、同一サイズの正方形あるいは長方形
の複数の領域に分割する処理と、 前記分割された各領域に窓関数を乗じる処理と、 前記窓関数を乗じた各分割領域について2次元デジタル
フーリエ変換を行う処理と、 前記フーリエ変換が施された分割領域について所望のフ
ィルタ処理を行う処理と、 前記フィルタ処理が施された分割領域についてデジタル
フーリエ逆変換を行う処理と、 前記フーリエ逆変換が施された分割領域を足し合わせる
処理とをコンピュータに実行させるためのプログラムを
記録した記録媒体であって、 前記窓関数として、前記フーリエ逆変換結果を足し合わ
せる際に前記オーバーラップ領域で元の画像が再現され
るよう調節した関数が用いられるように前記プログラム
が構成されていることを特徴とする記録媒体。
16. A process of dividing an original image into a plurality of square or rectangular regions of the same size where adjacent regions overlap each other, a process of multiplying each of the divided regions by a window function, A process of performing a two-dimensional digital Fourier transform on each divided region multiplied by a function; a process of performing a desired filter process on the divided region on which the Fourier transform has been performed; A recording medium storing a program for causing a computer to perform a process of performing conversion and a process of adding the divided areas subjected to the inverse Fourier transform, and, as the window function, add the result of the inverse Fourier transform. When adjusting, the function adjusted so that the original image is reproduced in the overlap area is used. A recording medium comprising the program.
【請求項17】 請求項16に記載の記録媒体におい
て、 前記原画像を分割する処理が、隣接し合う領域が互いに
半分ずつ重なり合うようにオーバーラップさせて分割す
る処理であり、 前記分割された領域の横座標をx、縦座標をy、横幅を
W、縦幅をHとし、定数aと定数bをそれぞれ0以上1
未満とした場合に、各分割領域の左下隅をそれぞれ原点
として、前記窓関数であるF(x,y)が以下の式で与
えられるように前記プログラムが構成されていることを
特徴とする記録媒体。 F(x,y)=sin(π(x+a)/W)sin
(π(y+b)/H)
17. The recording medium according to claim 16, wherein the process of dividing the original image is a process of dividing the original image by overlapping so that adjacent regions overlap each other by half. The abscissa is x, the ordinate is y, the width is W, the height is H, and the constants a and b are 0 or more and 1 respectively.
When the number is less than the above, the program is configured such that the window function F (x, y) is given by the following equation, with the lower left corner of each divided area as the origin. Medium. F (x, y) = sin 2 (π (x + a) / W) sin 2
(Π (y + b) / H)
【請求項18】 請求項16に記載の記録媒体におい
て、 前記原画像を分割する処理が、隣接し合う領域が互いに
半分ずつ重なり合うようにオーバーラップさせて分割す
る処理であり、 前記分割された領域の横座標をx、縦座標をy、横幅を
W、縦幅をHとし、前記オーバーラップ領域の横方向の
幅をA、縦方向の幅をBとした場合に、各分割領域の左
下隅をそれぞれ原点として、前記窓関数であるF(x,
y)が以下の式で与えられるように前記プログラムが構
成されていることを特徴とする記録媒体。 F(x,y)=F(x)F(y) ただし、0≦x≦2(W−A)の範囲で、 F(x)=sin(πx/(2(W−A))) それ以外のxの範囲で、 F(x)=0 0≦y≦2(H−B)の範囲で、 F(y)=sin(πy/(2(H−B))) それ以外のyの範囲で、 F(y)=0
18. The recording medium according to claim 16, wherein the process of dividing the original image is a process of dividing the original image by overlapping so that adjacent regions overlap each other by half. , The horizontal coordinate is y, the horizontal width is W, the vertical width is H, and the horizontal width of the overlap region is A, and the vertical width is B. Are the origins, respectively, and the window function F (x,
A recording medium, wherein the program is configured so that y) is given by the following equation. F (x, y) = F 1 (x) F 2 (y) However, in the range of 0 ≦ x ≦ 2 (W−A), F 1 (x) = sin 2 (πx / (2 (W−A) ))) Other than x, F 1 (x) = 0 0 ≦ y ≦ 2 (H−B), F 2 (y) = sin 2 (πy / (2 (H−B)) )) In other y ranges, F 2 (y) = 0
JP23589299A 1999-07-21 1999-07-21 Digital image processing method, digital image processing device, and recording medium Expired - Fee Related JP3387857B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23589299A JP3387857B2 (en) 1999-07-21 1999-07-21 Digital image processing method, digital image processing device, and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23589299A JP3387857B2 (en) 1999-07-21 1999-07-21 Digital image processing method, digital image processing device, and recording medium

Publications (2)

Publication Number Publication Date
JP2001036731A true JP2001036731A (en) 2001-02-09
JP3387857B2 JP3387857B2 (en) 2003-03-17

Family

ID=16992799

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23589299A Expired - Fee Related JP3387857B2 (en) 1999-07-21 1999-07-21 Digital image processing method, digital image processing device, and recording medium

Country Status (1)

Country Link
JP (1) JP3387857B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102063694A (en) * 2010-11-17 2011-05-18 安徽工业大学 Digital image encryption method based on paper folding transformation
US8041140B1 (en) 2003-12-30 2011-10-18 Adobe Systems Incorporated Healing by texture synthesis in differential space

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0442376A (en) * 1990-06-08 1992-02-12 Photo Composing Mach Mfg Co Ltd Digital picture processing method
JPH05346956A (en) * 1992-06-08 1993-12-27 Nec Corp Processor for image signal
JPH0628476A (en) * 1992-07-09 1994-02-04 Nec Corp Processor for image signal
JPH0816785A (en) * 1994-06-27 1996-01-19 Nec Corp Image recognition device and method
JPH10248016A (en) * 1997-03-05 1998-09-14 Nippon Telegr & Teleph Corp <Ntt> Decoded image generating and filtering method
JPH11514122A (en) * 1996-08-13 1999-11-30 ポラロイド コーポレイション Large kernel filtering using fixed size block processors

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0442376A (en) * 1990-06-08 1992-02-12 Photo Composing Mach Mfg Co Ltd Digital picture processing method
JPH05346956A (en) * 1992-06-08 1993-12-27 Nec Corp Processor for image signal
JPH0628476A (en) * 1992-07-09 1994-02-04 Nec Corp Processor for image signal
JPH0816785A (en) * 1994-06-27 1996-01-19 Nec Corp Image recognition device and method
JPH11514122A (en) * 1996-08-13 1999-11-30 ポラロイド コーポレイション Large kernel filtering using fixed size block processors
JPH10248016A (en) * 1997-03-05 1998-09-14 Nippon Telegr & Teleph Corp <Ntt> Decoded image generating and filtering method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8041140B1 (en) 2003-12-30 2011-10-18 Adobe Systems Incorporated Healing by texture synthesis in differential space
CN102063694A (en) * 2010-11-17 2011-05-18 安徽工业大学 Digital image encryption method based on paper folding transformation
CN102063694B (en) * 2010-11-17 2013-04-24 安徽工业大学 Digital image encryption method based on paper folding transformation

Also Published As

Publication number Publication date
JP3387857B2 (en) 2003-03-17

Similar Documents

Publication Publication Date Title
JP3276886B2 (en) Generating pixel values for enlarged destination images
US6094511A (en) Image filtering method and apparatus with interpolation according to mapping function to produce final image
US7324706B2 (en) System and method for representing a general two dimensional spatial transformation
JP2003274157A (en) Image processor, image processing method, image processing program, and computer readable recording medium with image processing program recorded
JP2010003298A (en) Method for filtering image
JP4776705B2 (en) Image processing apparatus and method
JP2010066803A (en) Image processing apparatus and method, and program
Woods et al. Boundary value problem in image restoration
JP2010003297A (en) Method for filtering of image with bilateral filter and power image
JP2001313844A (en) Method and device for executing local color correction
JPH09149241A (en) Method and device for enlarging picture
JP2005326977A (en) Image magnification device and program
JP2001036731A (en) Method and device for processing digital image and recording medium
JP3026706B2 (en) Image processing device
JP2004180171A (en) Device, method and program for processing image, and storage medium
US20080181528A1 (en) Faster serial method for continuously varying Gaussian filters
Bose et al. A second‐generation wavelet framework for super‐resolution with noise filtering
JP2003219182A (en) Spatial filtering method
JP2000188689A (en) Image processing method and its system
Chen et al. Image reconstruction based on combination of wavelet decomposition, inpainting and texture synthesis
JPH08272960A (en) Filtering processing method for image
JP3972625B2 (en) Image processing apparatus and image processing method
JP2000224405A (en) Image processing method
JP2001043357A (en) Image processing method, device thereof and recording medium
JP2734099B2 (en) Blur image synthesis processing method

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees