JPS61211778A - Data storing system - Google Patents

Data storing system

Info

Publication number
JPS61211778A
JPS61211778A JP5359785A JP5359785A JPS61211778A JP S61211778 A JPS61211778 A JP S61211778A JP 5359785 A JP5359785 A JP 5359785A JP 5359785 A JP5359785 A JP 5359785A JP S61211778 A JPS61211778 A JP S61211778A
Authority
JP
Japan
Prior art keywords
area
data
words
rectangular
situated
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
JP5359785A
Other languages
Japanese (ja)
Inventor
Nobuyuki Sato
信幸 佐藤
Yasukazu Ito
伊藤 能一
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP5359785A priority Critical patent/JPS61211778A/en
Publication of JPS61211778A publication Critical patent/JPS61211778A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Input (AREA)

Abstract

PURPOSE:To reduce the number of accesses by making a data storing an area capable of making access at one time on a memory area rectangular areas divided on a two-dimensional data. CONSTITUTION:After all data are stored in a memory area from a facsimile equipment 1, a central processing unit 2 divides the image data of the memory area 4 into rectangular areas and the respective rectangular areas are moved to the memory area as one word. Under a condition in which the image data is stored, in case of making access to a small region of 3X3 and a center of the 3X3 matrix is situated in a position of A, the accesses of 4 words of a word corresponding to the rectangular area in which a center point exists, and three words corresponding to adjacent three rectangular areas respectively are required. When the center is situated in the position of B, the accesses of two words of a word corresponding to the rectangular area in which a center point is situated and a word corresponding to an upper or a lower or a right or a left rectangular area of the rectangular area are required. When the center is situated in a position of C, only a word corresponding to the rectangular area in which the center point is situated may be made access. Thereby, an average number of the access words is drastically decreased.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、画像データなどの2次元データを1次元の記
憶域に格納するデータ格納方式に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a data storage method for storing two-dimensional data such as image data in a one-dimensional storage area.

〔概要〕〔overview〕

画像データなどの2次元データを1次元の記憶域に格納
する場合、適当に分割した矩形領域単位に格納すること
によって、例えば図形の特徴抽出などを効率良く行い得
るようにしたデータ格納方式である。
When storing two-dimensional data such as image data in a one-dimensional storage area, it is a data storage method that allows efficient extraction of features of figures, for example, by storing it in appropriately divided rectangular areas. .

〔従来技術と問題点〕[Conventional technology and problems]

例えばファックスなどで読み取った白黒の2値の画像デ
ータを計算機で解釈する場合には、画像の各種の特徴を
抽出する必要がある。画像の特徴とは、例えば、どこか
らどこまで線があるとか、どこで線が分岐しているとか
いうことを意味している。そのためには画像データ上で
黒画素又は白画素を追跡していくことが必要であり、そ
れには成る画素を中心とする矩形領域(例えば3×3)
の画素値が必要となる。
For example, when interpreting binary black and white image data read by a fax machine using a computer, it is necessary to extract various features of the image. Features of an image mean, for example, where a line ends and where a line branches. To do this, it is necessary to track black pixels or white pixels on the image data, and to do so, it is necessary to trace a rectangular area (for example, 3 x 3) centered on the black pixel or white pixel.
pixel values are required.

第4図は画素のトレースを説明するための図である。成
る点(黒画素)から黒画素をトレースして行くには、そ
の点を中心として3×3の領域の画素を調べ、その点板
外に黒画素があれば、その黒画素を次の中心としてその
操作を繰り返して行く。図示の例では、現在の中心点の
右側又は左斜下側の黒画素が次の中心点となる。但し、
現在の中心点の前の中心点は次の中心点としない。
FIG. 4 is a diagram for explaining pixel tracing. To trace a black pixel from a point (black pixel), check the pixels in a 3 x 3 area centered on that point, and if there is a black pixel outside the point board, move that black pixel to the next center. Repeat the operation as follows. In the illustrated example, the black pixel to the right or diagonally lower left of the current center point becomes the next center point. however,
The center point before the current center point is not used as the next center point.

第5図は従来のデータ格納方式を説明するため゛の図で
゛ある。従来技術にお□いては画像データのよ□うな2
次元データを格納する場合、1ライン(1,I’NEn
行)を例えば32ビツト毎に区切り、各区画を1ワード
として主記憶に格納する。図示の例では竿0ライン(先
頭ライン)の第・0区画(先頭区画)は上記す、aの第
0番地に格納され、第Oラインの第1区画は上記1.a
の第1番地に格納される。
FIG. 5 is a diagram for explaining a conventional data storage method. In conventional technology, image data is
When storing dimensional data, one line (1, I'NEn
For example, each row is divided into 32-bit units, and each division is stored in the main memory as one word. In the illustrated example, the 0th section (leading section) of the 0th line (leading line) of the rod is stored at the 0th address of the above 1.a, and the 1st section of the 0th line is stored at the 1. a
is stored at the first address.

第6図は第5図に示されるようにして画像データを格納
した状態の下において3×3の小領域をアクセスする場
合の平均アクセス・ワード数を説明するための図である
。Aに示すように1ワードの両端が3×3マトリツクス
の中心である場合には、中心点の存在するワードと、中
心点の上下に位置する点が存在するワードと、中心点の
隣に位置する点が存在するワードと、該隣の点の上下に
位置する点が存在するワード、計6ワー1−をアクセス
する必要がある。Bに示すように1ワードの中間が3×
3マトリツクスの中心である場合には、中心点の存在す
るワードと、当該中心点の上下に位置する点が存在する
ワード、計3ワードをアクセスする必要がある。したが
って、平均アクセス・ワード数は (6x2+3  x30)   ÷32 = 102 
 ÷32となり、平均アクセス・ワード数は比較的に大
きくなる。
FIG. 6 is a diagram for explaining the average number of access words when accessing a 3×3 small area under the state in which image data is stored as shown in FIG. 5. As shown in A, if both ends of one word are the center of a 3x3 matrix, there are two words: a word with a center point, a word with points located above and below the center point, and a word with points located next to the center point. It is necessary to access a total of six words 1-, including the word in which the point exists and the word in which the point located above and below the adjacent point exists. As shown in B, the middle of one word is 3×
In the case of the center of three matrices, it is necessary to access a total of three words: the word where the center point exists and the word where the points located above and below the center point exist. Therefore, the average number of accessed words is (6x2+3x30) ÷32 = 102
÷32, and the average number of accessed words is relatively large.

〔発明の目的〕[Purpose of the invention]

本発明は、上記の考察に基づくものであって、nXnの
小領域の2次元データ(例えば画素データ)をアクセス
する場合に、アクセスする回数を減少出来るようにした
データ格納方式を提供することを特徴としている。
The present invention is based on the above consideration, and an object of the present invention is to provide a data storage method that can reduce the number of accesses when accessing two-dimensional data (for example, pixel data) in a small area of nXn. It is a feature.

〔目的を達成するための手段〕[Means to achieve the purpose]

そしてデータ格納方式は、画像データなどの2次元デー
タを計算機の主記憶などの1次元の記憶域に格納するデ
ータ格納方式において、記憶域上で一時にアクセス可能
な領域に格納するデータを2次元データ上の分割した矩
形領域とすることを特徴とするものである。
The data storage method stores two-dimensional data such as image data in a one-dimensional storage area such as the main memory of a computer, and the data storage method stores two-dimensional data such as image data in a one-dimensional storage area such as the main memory of a computer. The feature is that the data is divided into rectangular areas.

〔発明の実施例〕[Embodiments of the invention]

以下、本発明を図面を参照しつつ説明する。 Hereinafter, the present invention will be explained with reference to the drawings.

第1図は本発明の1実施例を説明するための図である。FIG. 1 is a diagram for explaining one embodiment of the present invention.

本発明では第1図に示すように、例えば画像データを8
ビツト×4ラインの矩形領域に分割し、各矩形領域を1
ワードとして主記憶に格納する。図示の例では、第0ラ
インのビットOないし7、第1ラインのヒツト0ないし
7、第2ラインのピントOないし7及び第3ラインのビ
ットOないし7が主記憶の第0番地に格納され、第0ラ
インのビット8ないし15、第1ラインのピント8ない
し15、第2ラインのビット8ないし15及び第3ライ
ンのビット8ないし15が主記憶の第1番地に格納され
ている。
In the present invention, as shown in FIG.
Divide into rectangular areas of bit x 4 lines, and each rectangular area
Stored in main memory as a word. In the illustrated example, bits O to 7 of the 0th line, hits 0 to 7 of the first line, focus O to 7 of the second line, and bits O to 7 of the third line are stored at address 0 of the main memory. , bits 8 to 15 of the 0th line, focus 8 to 15 of the first line, bits 8 to 15 of the second line, and bits 8 to 15 of the third line are stored at the first address of the main memory.

第2図は第1図に示されるようにして画像データを格納
した状態の下において3×3の小領域をアクセスする場
合の平均アクセス・ワード数を説明するための図である
。3×3マトリツク入の中心がAの位置にある場合には
、中心点の存在する矩形領域に対応するワードと、当該
矩形領域に隣接する3個の矩形領域のそれぞれに対応す
る3ワード、計4ワードのアクセスが必要である。3×
3マトリツクスの中心がBの位置にある場合には、中心
点の存在する矩形領域に対応するワードと、当該矩形領
域の上又は下又は右又は左の矩形領域に対応する1ワー
ド、計2ワードのアクセスが必要である。3×3マトリ
ツクスの中心がCの位置にある場合には、中心点の存在
する矩形領域に対応するワードのみをアクセスすればよ
い。従って、平均アクセス・ワード数は (4X4+2  交16+1 x 12)   ÷32
 = 60÷32となり、従来方式に比べて平均アクセ
ス・ワード数が大幅に減少する。
FIG. 2 is a diagram for explaining the average number of access words when a 3×3 small area is accessed under the state in which image data is stored as shown in FIG. 1. If the center of the 3x3 matrix is at position A, a word corresponding to the rectangular area where the center point exists, and 3 words corresponding to each of the three rectangular areas adjacent to the rectangular area, in total. 4 word access is required. 3×
3. When the center of the matrix is at position B, a word corresponding to the rectangular area where the center point exists and one word corresponding to the rectangular area above or below or to the right or left of the rectangular area, a total of 2 words. access is required. If the center of the 3×3 matrix is at position C, only the word corresponding to the rectangular area where the center point exists needs to be accessed. Therefore, the average number of access words is (4 x 4 + 2 cross 16 + 1 x 12) ÷ 32
= 60÷32, and the average number of access words is significantly reduced compared to the conventional method.

第3図は本発明の1応用例を示す図である。第3図にお
いて、■はファクシミリ装置、2は中央処理装置、3は
主記憶、4と5は記憶域をそれぞれ示している。中央処
理装置2は、ファクシミリ装置1から送られてきたデー
タを記憶域4に第5図に示した態様で格納する。ファク
シミリ装置Iからのデータを全て記憶域4に格納した後
、中央処理装置2は、記憶域4のデータを第1図で示し
たような態様で記憶域5に移し換える。
FIG. 3 is a diagram showing one application example of the present invention. In FIG. 3, ■ indicates a facsimile machine, 2 indicates a central processing unit, 3 indicates a main memory, and 4 and 5 indicate storage areas, respectively. The central processing unit 2 stores the data sent from the facsimile machine 1 in the storage area 4 in the manner shown in FIG. After storing all the data from the facsimile machine I in the storage area 4, the central processing unit 2 transfers the data in the storage area 4 to the storage area 5 in the manner shown in FIG.

〔発明の効果〕〔Effect of the invention〕

以上の説明から明らかなように、本発明によれば、画面
上のnXnの小領域の画像データをアクセスするに際し
て、必要なアクセス回数を従来方式に比べて大幅に減少
することが出来る。
As is clear from the above description, according to the present invention, when accessing image data of a small area of nXn on a screen, the number of accesses required can be significantly reduced compared to the conventional method.

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

第1図は本発明の1実施例を説明するだめの図、第2図
は第1図に示されるようにして画像データを格納した状
態の下において3×3の小領域をアクセスする場合の平
均アクセス・ワード数を説明するための図、第3図は本
発明の1応用例を示す図、第4図は画素のトレースを説
明するための図、第5図は従来のデータ格納方式を説明
するための図、第6図は第5図に示されるようにして画
像データを格納した状態の下において3×3の小領域を
アクセスする場合の平均アクセス・ワード数を説明する
ための図である。 1・・・ファクシミリ装置、2・・・中央処理装置、3
・・・主記憶、4と5・・・記憶域。
FIG. 1 is a diagram for explaining one embodiment of the present invention, and FIG. 2 is a diagram showing a case where a 3×3 small area is accessed under the state in which image data is stored as shown in FIG. 1. Figure 3 is a diagram for explaining the average number of access words, Figure 3 is a diagram showing an example of application of the present invention, Figure 4 is a diagram for explaining pixel tracing, and Figure 5 is a diagram for explaining the conventional data storage method. FIG. 6 is a diagram for explaining the average number of access words when accessing a 3×3 small area under the condition that image data is stored as shown in FIG. 5. It is. 1...Facsimile machine, 2...Central processing unit, 3
...Main memory, 4 and 5...Storage area.

Claims (1)

【特許請求の範囲】[Claims] 画像データなどの2次元データを計算機の主記憶などの
1次元の記憶域に格納するデータ格納方式において、記
憶域上で一時にアクセス可能な領域に格納するデータを
2次元データ上の分割した矩形領域とすることを特徴と
するデータ格納方式。
In a data storage method that stores two-dimensional data such as image data in a one-dimensional storage area such as the main memory of a computer, the data to be stored in an area that can be accessed at one time on the storage area is divided into rectangles on the two-dimensional data. A data storage method characterized by using an area.
JP5359785A 1985-03-18 1985-03-18 Data storing system Pending JPS61211778A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5359785A JPS61211778A (en) 1985-03-18 1985-03-18 Data storing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5359785A JPS61211778A (en) 1985-03-18 1985-03-18 Data storing system

Publications (1)

Publication Number Publication Date
JPS61211778A true JPS61211778A (en) 1986-09-19

Family

ID=12947285

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5359785A Pending JPS61211778A (en) 1985-03-18 1985-03-18 Data storing system

Country Status (1)

Country Link
JP (1) JPS61211778A (en)

Similar Documents

Publication Publication Date Title
CA1199413A (en) Method of editing dot pattern data for character and/or image representations
US4561072A (en) Memory system handling a plurality of bits as a unit to be processed
US4434502A (en) Memory system handling a plurality of bits as a unit to be processed
JPH04252562A (en) Picture processing unit
JPS61211778A (en) Data storing system
JPS6076790A (en) Memory
JPS647393Y2 (en)
JPS5892072A (en) Printer
JP2687679B2 (en) Program development equipment
JPS63239542A (en) Image memory device and image processing device
JPH061449B2 (en) Image memory for image editing
JPS58115969A (en) Picture data trimming device
JPS6271990A (en) Storing method for image information
JPS609887Y2 (en) Preprocessing circuit in character reading device
JPH0312752A (en) Picture data access system
JPS58140786A (en) Graphic display control system
JPH07253919A (en) Image memory device
JPS58181359A (en) Picture data processor
JPH05234370A (en) Data transfer method of image memory
JPS59177665A (en) Memory system provided with mask memory
JPS638951A (en) Information memory device
JPS616768A (en) Multi-dimensional information storage device to be accessed in parallel at its small picture
JPS61289438A (en) Picture data storage device
JPS62249190A (en) Attribute display system for display unit
JPH04360286A (en) Space filtering image processor