JPH02257230A - Managing method for two-dimensional image memory - Google Patents

Managing method for two-dimensional image memory

Info

Publication number
JPH02257230A
JPH02257230A JP1022974A JP2297489A JPH02257230A JP H02257230 A JPH02257230 A JP H02257230A JP 1022974 A JP1022974 A JP 1022974A JP 2297489 A JP2297489 A JP 2297489A JP H02257230 A JPH02257230 A JP H02257230A
Authority
JP
Japan
Prior art keywords
cluster
type
image
image memory
stored
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP1022974A
Other languages
Japanese (ja)
Inventor
Kiyoshi Hirakawa
潔 平川
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.)
Yaskawa Electric Corp
Original Assignee
Yaskawa Electric Manufacturing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yaskawa Electric Manufacturing Co Ltd filed Critical Yaskawa Electric Manufacturing Co Ltd
Priority to JP1022974A priority Critical patent/JPH02257230A/en
Publication of JPH02257230A publication Critical patent/JPH02257230A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To avoid waste from on an image memory and to efficiently store the images of the maximum quantity by storing plural images in the image memory, and using an image memory space as the combination of divided rectangular areas of a prescribed size in accordance with the size of each storing image. CONSTITUTION:The minimum unit area of length LX/(N-th power of 2 (N is an integer of >='0')) and LY/(N-th power of 2) in the X and the Y directions is divided into rectangular areas called as sectors 100a, and numbers are applied as sectors '0', 1, 2, - 63 successively from the position near the origin of two X and Y axes. Based on the sector being the minimum unit of this rectangular area, the storage of an image to an image memory 100 is managed, and an area constituted of sectors of pieces of M-th power of 4 (M is an integer of >='0' and <N) for forming adjacent rectangular areas is set as the cluster of a type M. When 4 pieces of clusters of the type M are accumulated, only one piece of cluster of a type (M + 1) being its high-order type is generated, and on the contrary, when one piece of cluster of the type (M + 1) is decomposed, 4 pieces of adjacent clusters of the type M are generated. In such a manner, a memory area which becomes useless can be decreased.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、2次元アドレスが割付けられている画像メモ
リに、任意のX、Y方向の長さを持つ複数個の画像の画
像データを格納するときに必要となる2次元画像メモリ
の管理方法に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention stores image data of a plurality of images having arbitrary lengths in the X and Y directions in an image memory to which two-dimensional addresses are assigned. This invention relates to a method for managing two-dimensional image memory required when

〔従来の技術〕[Conventional technology]

従来、この種の手段としては、2次元アドレスが割付け
られている画像メモリに、複数個の画像の画像データを
格納する必要がある場合は、格納画像の最大のX、 Y
方向の長さを持った矩形領域に画像メモリの2次元空間
を一様に分割し、格納画像を、その大きさに関係なく、
その空き領域のいずれかに格納することが行われる。
Conventionally, with this type of means, when it is necessary to store image data of multiple images in an image memory to which two-dimensional addresses are assigned, the maximum X and Y of the stored images are
The two-dimensional space of the image memory is uniformly divided into rectangular areas with a length in the direction, and the stored image is
The data is stored in one of the free areas.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

ところで、この従来の方法では、画像のX、Y方向の長
さによらず、すべて同一容量の画像メモリ領域を使用す
るので、格納画像が分割した矩形領域に比べて小さい場
合に、無駄となる画像メモリ領域が多くなるという欠点
が存在する。
By the way, in this conventional method, the image memory area of the same capacity is used regardless of the length of the image in the X and Y directions, so if the stored image is smaller than the divided rectangular area, it will be wasted. The disadvantage is that the image memory area increases.

ここにおいて、本発明は、従来の方法における上記問題
点に鑑み、格納画像のX、Y方向の長さに応じて、適当
なメモリ容量の領域を確保し、そこに画像を格納するこ
とにより、無駄となるメモリ領域を減少させることを可
能とする方法を提供することを、その目的とする。
In view of the above-mentioned problems in the conventional method, the present invention secures an area with an appropriate memory capacity depending on the length of the stored image in the X and Y directions, and stores the image there. The purpose is to provide a method that makes it possible to reduce wasted memory area.

〔課題を解決するための手段〕[Means to solve the problem]

上記目的を達成するため、本発明は、 直交するX、 Y二軸のX、Y方向の長さLX。 In order to achieve the above object, the present invention Length LX in the X and Y directions of two orthogonal X and Y axes.

LYの二次元アドレスが割り付けられている画像メモリ
を、 X、Y方向の長さLX/ (2のベキ乗)、LY/(2
のベキ乗)のセクタと呼ぶ矩形領域に分割し、 隣接して矩形領域を形成する4のベキ乗の個数のセクタ
で構成されるクラスタと称する領域を定義し、 画像メモリ内のクラスタの配置およびその使用状態を記
録するための配列であるクラスタアローケーションテー
ブルをプログラムメモリ上に設け、画像メモリに記憶さ
れるべき画像をそれが納まる最小の大きさのクラスタに
格納し、 画像メモリにおける画像の格納および消去を行うときに
は、 クラスタアローケーションテーブルを更新し、任意のX
、Y方向の長さを持つ複数個の画像の画像データに対応
して、つねにX、Y二軸の原点により近い方のクラスタ
から順次に新たな画像を格納することにより、 画像メモリ空間上で任意に複数個の画像を格納および消
去するようにした ことを特徴とする2次元画像メモリの管理方法である。
The image memory to which the two-dimensional address of LY is assigned is defined as the length LX/(power of 2) in the X and Y directions, and LY/(2
A power of 4) is divided into rectangular areas called sectors, and an area called a cluster is defined which is made up of a power of 4 sectors that are adjacent to each other to form a rectangular area. A cluster allocation table, which is an array for recording the usage status, is provided on the program memory, and images to be stored in the image memory are stored in the smallest cluster that can accommodate them, and images are stored in the image memory. and when performing deletion, update the cluster allocation table and use any X
, in the image memory space by sequentially storing new images starting from the cluster that is closer to the origin of the two axes X and Y, corresponding to the image data of multiple images having lengths in the Y direction. This is a two-dimensional image memory management method characterized in that a plurality of images are arbitrarily stored and deleted.

〔作 用〕[For production]

上記のように行われるので、 格納画像の任意の大きさに応じた無駄のない矩形画像メ
モリ領域の組合わせが、一定の順序で、最適の領域に格
納され、最多の複数個の画像の画像データの格納を可能
とし、2次元画像メモリを効率的に管理できる。
As described above, the combination of lean rectangular image memory areas corresponding to the arbitrary size of the stored image is stored in the optimal area in a certain order, and the image of the largest number of images is stored in the optimal area. Data can be stored and two-dimensional image memory can be managed efficiently.

〔実施例〕〔Example〕

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

第1図は、画像メモリ上を矩形分割して形成した各セク
タに添付した呼称番号を表すセクタ番号図である。
FIG. 1 is a sector number diagram showing designation numbers attached to each sector formed by dividing the image memory into rectangular sections.

画像メモリ100上に、直交するX、 Y二軸を想定し
、X、 Y方向の長さLX、LYの二次元アドレスが割
り付けられている状態を考える。
Let us consider a state in which two-dimensional addresses with lengths LX and LY in the X and Y directions are assigned on the image memory 100, assuming two orthogonal X and Y axes.

そのx、 y方向の長さLX/ (2のN乗)。Its length in the x and y directions is LX/(2 to the N power).

LY/ (2のN乗)の最小単位領域をセクタ100a
と呼ぶ矩形領域に分割し、X、Y二軸の原点から近い方
から順次にセクタ0.セクタ1゜セクタ2.・・・・・
・、セクタ63というようにセクタ番号を添付する。
The minimum unit area of LY/ (2 to the N power) is sector 100a
It is divided into rectangular areas called 0. Sector 1° Sector 2.・・・・・・
・Attach a sector number such as , sector 63.

ここに、Nは0以上の整数である。Here, N is an integer greater than or equal to 0.

この矩形領域の最小単位としてセクタに基づいて、画像
メモリ100への画像の格納の管理を行うことにする。
Storage of images in the image memory 100 will be managed based on sectors as the minimum units of this rectangular area.

そして、隣接して矩形領域をなす4のM乗個のセクタで
構成される領域をタイプMのクラスタと称することにす
る。
An area composed of 4 M sectors adjacent to each other forming a rectangular area will be referred to as a type M cluster.

ここで、Mは0以上でN未満の整数である。Here, M is an integer greater than or equal to 0 and less than N.

隣接して矩形領域をなすタイプMのクラスタを4個集積
すると、その上位タイプであるタイプ(M+ 1 )の
クラスタが1個だけ生成される。
When four clusters of type M that form adjacent rectangular areas are accumulated, only one cluster of type (M+ 1 ), which is a higher type, is generated.

それとは逆にタイプ(M+1)のクラスタの1個を分解
すると、隣接する4個のタイプMのクラスタが生成され
る。
Conversely, when one cluster of type (M+1) is decomposed, four adjacent clusters of type M are generated.

この隣接する4個のタイプMのクラスタのそれぞれには
、第1図に示す各セクタ番号の最小のセクタである先頭
セクタの番号と同一の番号が割り付けられる。
Each of these four adjacent clusters of type M is assigned the same number as the number of the first sector, which is the smallest sector of each sector number shown in FIG.

各クラスタは、そのタイプによって特定のセクタを先頭
セクタとしている。
Each cluster has a specific sector as its first sector depending on its type.

第2図は、このようにして隣接して矩形領域をなす4の
M乗個のセクタで構成されるクラスタ領域説明図である
FIG. 2 is an explanatory diagram of a cluster area constituted by 4 to the M power of sectors forming adjacent rectangular areas in this manner.

画像メモリ100に格納される各々の画像は、それが格
納できる最小のサイズのクラスタ内に格納される。
Each image stored in image memory 100 is stored in a cluster of the smallest size it can be stored.

タイプMのクラスタに格納する画像をタイプM画像と呼
ぶ。
An image stored in a type M cluster is called a type M image.

画像が格納されているクラスタを使用中クラスタと言い
、そうでないクラスタを未使用クラスタと称する。
A cluster in which an image is stored is referred to as an in-use cluster, and a cluster in which an image is not stored is referred to as an unused cluster.

画像メモリ100内のクラスタの配置およびその使用状
態を記憶するため、セクタ・スティタスと画像番号順の
配列であるクラスタ・アローケーション・テーブルを、
プログラムメモリ上に設ける。このクラスタ拳アローケ
ーションーテーブルの態様は後述する図面第4図〜第1
2図のそれぞれ(c)に図示している。
In order to store the arrangement of clusters in the image memory 100 and their usage status, a cluster allocation table, which is arranged in order of sector status and image number, is created.
Provided on program memory. The form of this cluster allocation table is shown in Figures 4 to 1 of the drawings, which will be described later.
This is shown in (c) of each figure.

画像の格納時あるいは消去時には、そのたびにクラスタ
・アローケーション・テーブルのセクタ・ステータスお
よび画像番号を更新する。
Each time an image is stored or deleted, the sector status and image number in the cluster allocation table are updated.

未使用クラスタの先頭セクタのセクタ会ステータスには
、“クラスタのタイプの値に1を加えた澁”をセットし
、使用中クラスタの先頭セクタのセクタ寺ステータスに
は、“クラスタのタイプの値に1を加えた値” [この
ように両者とも1を加えるのは、後記しているように未
使用セクタを0符号で表すから、それと識別するためで
あるコの符号を反転(つまり負符号)した値をセットす
る。
The sector status of the first sector of an unused cluster is set to "the value of the cluster type plus 1", and the sector status of the first sector of a used cluster is set to "the value of the cluster type plus 1". The value of adding 1" [The reason why 1 is added to both in this way is to identify it because an unused sector is represented by a 0 code as described later. Set the value.

さらに、画像番号には格納する画像の[識別用]番号を
セットする。
Furthermore, the [identification] number of the image to be stored is set in the image number.

かつ、各クラスタの途中のセクタのセクタ・ステータス
には0をセットする。
In addition, the sector status of the middle sector of each cluster is set to 0.

ここで、本発明の画像メモリへの画像の格納するための
演算方法である作用を説明する。
Here, the operation of the calculation method for storing an image in the image memory of the present invention will be explained.

画像格納の際は以下の処理を実行する。When storing images, perform the following processing.

la、画像のX、Y方向長より画像のタイプTを求める
The type T of the image is determined from la and the length of the image in the X and Y directions.

2a、 タイプTの未使用クラスタが存在するか確認す
る。もし存在しなければ、タイプTより上位タイプの未
使用クラスタを探し、そのうち最下位タイプで最小番号
のものを分解して、タイプTの未使用クラスタを生成す
る。タイプTより上位タイプの未使用クラスタも存在し
なければ、画像を格納できないため処理を中断する。
2a. Check whether there is an unused cluster of type T. If it does not exist, an unused cluster of a type higher than type T is searched, and the one of the lowest type and the lowest number is decomposed to generate an unused cluster of type T. If there is no unused cluster of a higher type than type T, the process is interrupted because no image can be stored.

3a、 まえの2aの未使用クラスタのうち最小番号の
ものに、画像を格納する。
3a, Store the image in the lowest numbered cluster among the unused clusters in 2a.

画像消去の際は以下の処理を実行する。When erasing an image, perform the following processing.

tb、画像が格納されていた使用中クラスタAを未使用
クラスタとし、その近傍の未使用クラスタの集積を可能
なだけ繰返し、未使用クラスタBを生成する。
tb, the used cluster A in which the image was stored is set as an unused cluster, and unused clusters in its vicinity are accumulated as many times as possible to generate an unused cluster B.

2b、未使用クラスタBと同一タイプの使用中クラスタ
で、未使用クラスタBより番号が大きいクラスタが存在
するかどうか確認する。未使用クラスタBより番号が大
きいクラスタが存在しなければ終了する。
2b. Check whether there is a cluster in use that is of the same type as unused cluster B and has a higher number than unused cluster B. If there is no cluster with a higher number than unused cluster B, the process ends.

3b、まえの2bの使用中クラスタのうち最大番号のク
ラスタCを未使用クラスタとし、その画像を未使用クラ
スタBへ転送し、クラスタBを使用中クラスタB・に変
更した後に、さきのlbから最大番号のクラスタCにつ
いてこれまでの処理を繰返す。
3b, among the clusters in use in the previous 2b, set the cluster C with the highest number as an unused cluster, transfer the image to the unused cluster B, change cluster B to the used cluster B, and then transfer it from the previous lb. The previous processing is repeated for cluster C, which has the largest number.

ついで、この一実施例のクラスタ定義図を第3図に表わ
す。
Next, a cluster definition diagram of this embodiment is shown in FIG.

この一実施例では、画像メモリを4の3乗個すなわち6
4個のセクタに分割し[第3図(b)]、タイプ0から
タイプ3までのクラスタ[第3図(c)〜(f)]を定
義している。
In this embodiment, the number of image memories is 4 to the power of 3, or 6
It is divided into four sectors [Fig. 3(b)], and clusters from type 0 to type 3 [Fig. 3(c) to (f)] are defined.

これからは、第1段階から順次第9段階までのケースを
想定して、この2次元画像メモリに各画像を格納する管
理方法を述べる。
From now on, we will describe a management method for storing each image in this two-dimensional image memory, assuming cases from the first stage to the ninth stage.

第1段階 初期状態ではタイプ3の未使用クラスタ0が配置されて
いる。
In the initial state of the first stage, unused cluster 0 of type 3 is arranged.

その状態は第4図に示され、第4図(a)はセクタ中ス
テータスの状態図、第4図(b)は格納する画像の画像
番号の配置図、第4図(c)はプログラム・メモリに表
されたクラスタφアローケーション・テーブルである。
The state is shown in FIG. 4, where FIG. 4(a) is a state diagram of the status in the sector, FIG. 4(b) is a diagram of the arrangement of image numbers of images to be stored, and FIG. 4(c) is a diagram of the program. Cluster φ allocation table represented in memory.

以下、第5図〜第12図におけるそれぞれの(a)、(
b)、(c)についても同様である。
Hereinafter, each of (a) and (
The same applies to b) and (c).

第4図(a)は、タイプ3で未使用クラスタの0の番号
のセクタに“クラスタのタイプの値〔−3]に1を加え
た値”4をセットし、のこりは全て0となる。
In FIG. 4(a), the sector numbered 0 of an unused cluster of type 3 is set to 4, which is the sum of the cluster type value [-3] and 1, and all the rest are set to 0.

第4図(b)は、まだ画像が与えられていないから、全
て0である。
In FIG. 4(b), all values are 0 because no image has been given yet.

第4図(C)は、セクタ番号の欄のセクタ0゜セクタ1
.〜.セクタ63におけるセクタスティタスおよび画像
番号はおのおの第4図(b)および第4図(C)から図
示のようになる。
Figure 4 (C) shows sector 0° sector 1 in the sector number column.
.. ~. The sector status and image number in the sector 63 are as shown in FIGS. 4(b) and 4(c), respectively.

第2段階 タイプ0の画像番号1を画像メモリに格納する際には、
タイプ0の未使用クラスタが存在しないため、タイプ3
のクラスタ0を分解してタイプ2のクラスタを4個[そ
の各クラスタにおける先頭の最小番号のセクタ番号と同
一の番号が割り付けられて、クラスタ0.クラスタ16
.クラスタ32、クラスタ48]を生成し、そしてその
うちの最小番号のクラスタ0を分解してタイプ1のクラ
スタを4個[タイプ1のクラスタ0.4.8. 12]
を生成し、さらにそのうちの最小番号のクラスタ0を分
解してタイプ0のクラスタを4個[タイプ0のクラスタ
0. 1. 2. 3]を生成し、ここでそのうちの最
小番号のクラスタ0に画像番号1を格納する。
When storing image number 1 of the second stage type 0 in the image memory,
Since there are no unused clusters of type 0, type 3
Cluster 0 is decomposed into four type 2 clusters [each cluster is assigned the same number as the first lowest sector number, and cluster 0. cluster 16
.. cluster 32, cluster 48], and then decomposes the lowest numbered cluster 0 to create four type 1 clusters [type 1 cluster 0.4.8. 12]
, and further decomposes the lowest numbered cluster 0 to create 4 type 0 clusters [type 0 cluster 0. 1. 2. 3], and here, image number 1 is stored in cluster 0, which is the lowest number among them.

この態様が第5図に表されている。This aspect is represented in FIG.

すなわち、画像番号1がセクタ0に格納されており、こ
こは使用中クラスタの先頭セクタのセクタ0において、
“クラスタのタイプの値[−〇]に1を加えた値[1]
″の符号を反転(つまり負符号)した値[−1]をセッ
トする。その他の未使用クラスタについては、第4図に
準する。
That is, image number 1 is stored in sector 0, which is the first sector of the cluster in use.
“Value of cluster type value [-〇] plus 1 [1]
A value [-1] is set by inverting the sign of `` (that is, a negative sign).For other unused clusters, the same applies to FIG. 4.

第3段階 続いて、タイプ0の画像番号2を格納する際には、第6
図に示されるとうりに、タイプ0の未使用クラスタのう
ち最小番号であるクラスタ1に画像番号2を格納する。
3rd stage Subsequently, when storing image number 2 of type 0, the 6th stage
As shown in the figure, image number 2 is stored in cluster 1, which is the lowest number among the unused clusters of type 0.

第4段階 さらに、第7図に示すように、タイプ0の画像番号3,
4.5を格納する際には、第3段階と同様にして画像番
号3.4をタイプ0のクラスタであるクラスタ2.3に
格納した後に、タイプ0の未使用クラスタが存在しなく
なるので、タイプ1のクラスタ4を分解して、タイプ0
のクラスタを4個が作成され、そのうちのクラスタ4に
画像番号5を格納する。
Fourth stage Furthermore, as shown in FIG. 7, image number 3 of type 0,
When storing 4.5, after storing image number 3.4 in cluster 2.3, which is a type 0 cluster, as in the third stage, there will be no unused type 0 cluster, so Decomposing type 1 cluster 4, type 0
Four clusters are created, and image number 5 is stored in cluster 4.

第5段階 続いて、タイプ1の画像番号6.7.8を格納する際に
は、画像番号6.7をタイプ1の未使用クラスタ8,1
2に格納した後に、タイプ1の未使用クラスタが存在し
なくなるので、タイプ2のクラスタ16を分解してタイ
プ1のクラスタ4個を生成して、そのうちのクラスタ1
6に画像番号8を格納する。この態様を第8図に表して
いる。
Fifth step: Subsequently, when storing type 1 image number 6.7.8, image number 6.7 is stored in type 1 unused cluster 8, 1.
2, there will be no unused type 1 clusters, so the type 2 cluster 16 will be decomposed to generate four type 1 clusters, of which cluster 1
Image number 8 is stored in 6. This aspect is illustrated in FIG.

第6段階 さらに、タイプOの画像番号9. 10. 11゜12
を格納する際には、第9図に示すように、画像番号9,
10.11をクラスタ5.6. 7に格納したに、タイ
プ0の未使用クラスタが存在しなくなるので、タイプ1
のクラスタ20を分解して、タイプ0のクラスタ4個を
生成して、そのうちのクラスタ20に画像番号12を格
納する。
6th stage Furthermore, type O image number 9. 10. 11°12
When storing the image number 9, as shown in Figure 9,
10.11 to cluster 5.6. 7, there are no unused clusters of type 0, so type 1
The cluster 20 of is decomposed to generate four clusters of type 0, and image number 12 is stored in cluster 20 of them.

第7段階 続いて、タイプ0の画像番号2を格納する際には、まず
、それが格納されているクラスタ1を未使用クラスタと
する。クラスタ1はこれ以上集積することはできない。
7th Step Subsequently, when storing image number 2 of type 0, cluster 1 in which it is stored is first set as an unused cluster. Cluster 1 cannot be accumulated any further.

次に、タイプ0のクラスタのうち番号が最大のクラスタ
20の内容[つまり画像番号12である]をクラスタ1
に転送し、クラスタ1を再び使用中クラスタとする。そ
して、クラスタ20を未使用クラスタとして、クラスタ
20.21.22.23を集積して、タイプ1のクラス
タを生成する。タイプ1のクラスタで20より大きな番
号のクラスタは存在しないので終了する。この過程を第
10図が図示している。
Next, among clusters of type 0, the contents of cluster 20 with the largest number [that is, image number 12] are transferred to cluster 1.
, and makes cluster 1 a busy cluster again. Then, with cluster 20 as an unused cluster, clusters 20, 21, 22, and 23 are accumulated to generate a type 1 cluster. Since there is no type 1 cluster with a number greater than 20, the process ends. FIG. 10 illustrates this process.

第8段階 さらに、タイプ1の画像番号13.14,15゜16を
格納する際には、第11図に示しているとおり、クラス
タ20,24.28に画像番号13゜14.15を格納
したのちに、タイプ1の未使用クラスタが存在しなくな
るので、タイプ2のクラスタ32を分解して、タイプ1
のクラスタ4個を生成し、そのうちのクラスタ32に画
像番号16を格納する。
8th stage Furthermore, when storing image numbers 13.14 and 15°16 of type 1, image numbers 13°14.15 are stored in clusters 20 and 24.28, as shown in FIG. Later, since there will be no unused type 1 clusters, the type 2 clusters 32 will be decomposed and type 1 clusters will be disassembled.
4 clusters are generated, and image number 16 is stored in cluster 32.

第9段階 続いて、タイプ1の画像番号14を消去する際には、ま
ず、それが格納されているクラスタ24を未使用状態と
する。クラスタ24はこれ以上集積することはできない
。次に、タイプ1のクラスタのうち番号が最大のクラス
タ32の内容[すなわち画像番号16である]をクラス
タ24に転送して、クラスタ24を使用中クラスタとし
、クラスタ32を未使用クラスタとする。クラスタ32
゜36.40.44を集積して、タイプ2のクラスタ3
2を生成する。これらの状態が第12図に表されている
Ninth stage: When erasing type 1 image number 14, first the cluster 24 in which it is stored is made unused. Clusters 24 cannot be accumulated any further. Next, the contents of the cluster 32 with the largest number among the clusters of type 1 (ie, image number 16) are transferred to the cluster 24, making the cluster 24 a used cluster and the cluster 32 an unused cluster. cluster 32
Accumulating ゜36.40.44, type 2 cluster 3
Generate 2. These conditions are represented in FIG.

これまでの説明で明らかのように、未使用状態のクラス
タの番号の小さいものに優先して適合する大きさの画像
が配置できる。
As is clear from the above description, an image of a suitable size can be placed preferentially to an unused cluster with a small number.

[発明の効果〕 本発明は、以上説明したように画像メモリに複数の画像
を格納するので、各格納画像の大きさに応じて、画像メ
モリ空間を分割された一定の大きさの矩形領域の組合わ
せとして使用するから、2次元アドレスが割り付けられ
ている画像メモリ上に、無駄がなく最大限の数量の画像
を効率的に格納することが可能となり、例えばロボット
・ビジョンに適用すればテンプレート画像を効率良くメ
モリに保持するため、テンプレート番マッチィングの信
頼性を著しく向上させるという、格段の効果を奏するこ
ともできる。
[Effects of the Invention] As explained above, the present invention stores a plurality of images in the image memory, so the image memory space is divided into rectangular areas of a fixed size according to the size of each stored image. Since they are used in combination, it is possible to efficiently store the maximum number of images without any waste on the image memory to which two-dimensional addresses are assigned.For example, if applied to robot vision, template images can be stored. Since the information is efficiently held in the memory, the reliability of template number matching can be significantly improved, which is a significant effect.

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

第1図は本発明の一実施例におけるセクタ番号図、第2
図は隣接して矩形領域をなす4のM乗個のセクタで構成
されるクラスタ領域説明図、第3図は一実施例のクラス
タ定義図、第4図ないし第12図は画像メモリに複数の
画像を格納する場合の任意のケースを想定したときの説
明図を表しそれらの(a)はセクタ・スティタス、(b
)は画像番号配置図、(C)はプログラム・メモリでの
クラスタ・アローケーション・テーブルを示す。 100・・・画像メモリ 100a・・・最小単位矩形領域をなすセクタ100n
・・・位置に対応するセクタ番号。
FIG. 1 is a sector number diagram in one embodiment of the present invention, and FIG.
The figure is an explanatory diagram of a cluster area composed of 4 M sectors contiguously forming a rectangular area, FIG. 3 is a cluster definition diagram of one embodiment, and FIGS. This is an explanatory diagram assuming an arbitrary case when storing an image. (a) shows the sector status, (b
) shows an image number allocation diagram, and (C) shows a cluster allocation table in the program memory. 100... Image memory 100a... Sector 100n forming the minimum unit rectangular area
...Sector number corresponding to the position.

Claims (1)

【特許請求の範囲】 1、直交するX、Y二軸のX、Y方向の長さLX、LY
の二次元アドレスが割り付けられている画像メモリを、 X、Y方向の長さLX/(2のベキ乗)、LY/(2の
ベキ乗)のセクタと呼ぶ矩形領域に分割し、 隣接して矩形領域を形成する4のベキ乗の個数のセクタ
で構成されるクラスタと称する領域を定義し、 画像メモリ内のクラスタの配置およびその使用状態を記
録するための配列であるクラスタアローケーションテー
ブルをプログラムメモリ上に設け、画像メモリに記憶さ
れるべき画像をそれが納まる最小の大きさのクラスタに
格納し、 画像メモリにおける画像の格納および消去を行うときに
は、 クラスタアローケーションテーブルを更新し、任意のX
、Y方向の長さを持つ複数個の画像の画像データに対応
して、つねにX、Y二軸の原点により近い方のクラスタ
から順次に新たな画像を格納することにより、 画像メモリ空間上で任意に複数個の画像を格納および消
去するようにした ことを特徴とする2次元画像メモリの管理方法。
[Claims] 1. Lengths LX and LY in the X and Y directions of two orthogonal X and Y axes
The image memory to which the two-dimensional addresses of Defines an area called a cluster, which is made up of a power of 4 number of sectors that form a rectangular area, and programs a cluster allocation table, which is an array for recording the arrangement of clusters in the image memory and their usage status. An image to be stored in the image memory is stored in a cluster of the minimum size that can accommodate it, and when storing and erasing images in the image memory, the cluster allocation table is updated and any X
, in the image memory space by sequentially storing new images starting from the cluster that is closer to the origin of the two axes X and Y, corresponding to the image data of multiple images having lengths in the Y direction. A method for managing a two-dimensional image memory, characterized in that a plurality of images are arbitrarily stored and deleted.
JP1022974A 1989-02-01 1989-02-01 Managing method for two-dimensional image memory Pending JPH02257230A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1022974A JPH02257230A (en) 1989-02-01 1989-02-01 Managing method for two-dimensional image memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1022974A JPH02257230A (en) 1989-02-01 1989-02-01 Managing method for two-dimensional image memory

Publications (1)

Publication Number Publication Date
JPH02257230A true JPH02257230A (en) 1990-10-18

Family

ID=12097534

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1022974A Pending JPH02257230A (en) 1989-02-01 1989-02-01 Managing method for two-dimensional image memory

Country Status (1)

Country Link
JP (1) JPH02257230A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0519694A2 (en) * 1991-06-17 1992-12-23 Sun Microsystems, Inc. Method for allocating off-screen display memory
EP3693861A1 (en) * 2019-02-06 2020-08-12 Advanced Digital Broadcast S.A. System and method for reducing memory fragmentation in a device lacking graphics memory management unit

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0519694A2 (en) * 1991-06-17 1992-12-23 Sun Microsystems, Inc. Method for allocating off-screen display memory
EP3693861A1 (en) * 2019-02-06 2020-08-12 Advanced Digital Broadcast S.A. System and method for reducing memory fragmentation in a device lacking graphics memory management unit
US11461224B2 (en) 2019-02-06 2022-10-04 Advanced Digital Broadcast Sa System and method for reducing memory fragmentation in a device lacking graphics memory management unit

Similar Documents

Publication Publication Date Title
US5745418A (en) Flash memory mass storage system
US9684462B2 (en) Method and apparatus utilizing non-uniform hash functions for placing records in non-uniform access memory
US9542307B2 (en) Shiftable memory defragmentation
US6874062B1 (en) System and method for utilizing a hierarchical bitmap structure for locating a set of contiguous ordered search items having a common attribute
JPH02501599A (en) Virtual processing techniques and virtual processors in multiprocessor arrays
US20060149938A1 (en) Determining a register file region based at least in part on a value in an index register
US20100042794A1 (en) Data protection system and method
US6950843B2 (en) Multi-dimensional Fourier transform parallel processing method for shared memory type scalar parallel computer
CN116069530B (en) Simulation engine data sharing blackboard system based on memory pool
JPH02257230A (en) Managing method for two-dimensional image memory
WO2001016761A2 (en) Efficient page allocation
KR20210024751A (en) Graph processing system including different kind memory device and an operation method thereof
Nodine et al. Paradigms for optimal sorting with multiple disks
KR910008459B1 (en) Multiple disk memory access arrangement for gridded type data
Jeng et al. A distributed management scheme for partitionable parallel computers
JPH0844577A (en) Data dividing method and multi-processor system
JP2734959B2 (en) Temporary labeling method
JPS6172333A (en) Merge processing system
JPS63285649A (en) Dead region management processing method
JP2735684B2 (en) Cell management method for storage device
JPH09231347A (en) Image processor
JPS62287350A (en) Index integrally updating system
JPS58222360A (en) File management system
CN1381786A (en) Data processing device and its data read method
US20210240473A1 (en) Processor device