JPH0448277B2 - - Google Patents

Info

Publication number
JPH0448277B2
JPH0448277B2 JP1862486A JP1862486A JPH0448277B2 JP H0448277 B2 JPH0448277 B2 JP H0448277B2 JP 1862486 A JP1862486 A JP 1862486A JP 1862486 A JP1862486 A JP 1862486A JP H0448277 B2 JPH0448277 B2 JP H0448277B2
Authority
JP
Japan
Prior art keywords
data
image
processed
bit
density
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.)
Expired
Application number
JP1862486A
Other languages
Japanese (ja)
Other versions
JPS62175881A (en
Inventor
Yoriaki Shimizu
Hiroshige Sakahara
Satoshi Sakurai
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 JP1862486A priority Critical patent/JPS62175881A/en
Publication of JPS62175881A publication Critical patent/JPS62175881A/en
Publication of JPH0448277B2 publication Critical patent/JPH0448277B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Image Analysis (AREA)

Description

【発明の詳細な説明】 〔概要〕 細分化された画素の濃度レベルを個々のデータ
として処理すると、辞書データと被処理データを
記憶するための厖大な容量の記憶装置と長い処理
時間を必要とする。そこでデータを圧縮し記憶容
量の縮小と処理時間の短縮を図つたものである。
[Detailed Description of the Invention] [Summary] Processing the density levels of subdivided pixels as individual data requires a huge storage capacity and long processing time to store dictionary data and data to be processed. do. Therefore, data is compressed to reduce storage capacity and processing time.

〔産業上の利用分野〕[Industrial application field]

本発明は電子計算機を利用する画像処理装置に
係り、特に記憶容量の縮小と処理時間の短縮を可
能にする画像データの処理方法に関する。
The present invention relates to an image processing apparatus using an electronic computer, and more particularly to an image data processing method that enables reduction of storage capacity and processing time.

電子計算機を利用して装置に記憶されている基
準の画像と任意の画像とを比較する画像処理装置
の開発が進められている。かかる画像処理装置に
おいて二値化した画像を表す手段として、通常画
像を細分化してなる画素の濃度レベルを走査順序
に従つて列記する方法が取られている。しかし画
像データの精度を高くするに伴つて画素の数が増
加し、辞書データと被処理データを記憶するため
の厖大な容量の記憶装置と、それ等のデータを処
理するための長い処理時間を必要とする。
2. Description of the Related Art Image processing devices that use electronic computers to compare arbitrary images with reference images stored in the device are being developed. As a means for representing a binarized image in such an image processing apparatus, a method is generally adopted in which the density levels of pixels obtained by subdividing an image are listed in accordance with the scanning order. However, as the precision of image data increases, the number of pixels increases, requiring a huge capacity storage device to store dictionary data and data to be processed, and a long processing time to process such data. I need.

そこで画像処理装置における画像データの精度
を高くするにあたり、記憶容量の縮小と処理時間
の短縮を可能にする画像データの処理方法の開発
が望まれている。
Therefore, in order to improve the accuracy of image data in an image processing device, there is a desire to develop an image data processing method that can reduce storage capacity and processing time.

〔従来の技術〕[Conventional technology]

第3図は通常の画像データの処理方法を示す図
で、第3図aは画素の例を示す図、第3図bは画
像データの例を示す図である。
FIG. 3 is a diagram showing a normal image data processing method, FIG. 3a is a diagram showing an example of pixels, and FIG. 3b is a diagram showing an example of image data.

通常の画像データの処理方法では基準画像およ
びそれと比較する画像を同一基準に従つて細分化
し、それぞれの画素の濃度レベルを二値化して走
査順序に従つて列記する。例えば第3図aでは画
像をX方向Y方向共に10分割されており100個の
画素が形成されている。第3図bはそれぞれの画
素の濃度レベルを二値化し、白い部分を“0”で
アスタリスクの部分を“1”で表したものであ
り、第3図bにおける画素の濃度レベルを走査順
序に従つて列記すると画像データになる。
In a normal image data processing method, a reference image and an image to be compared with it are subdivided according to the same standard, and the density level of each pixel is binarized and listed according to the scanning order. For example, in FIG. 3a, the image is divided into 10 parts in both the X and Y directions, forming 100 pixels. In Figure 3b, the density level of each pixel is binarized, and the white part is represented by "0" and the asterisk part is represented by "1".The density level of the pixel in Figure 3b is shown in the scanning order. Therefore, when listed, it becomes image data.

画像の処理に際し基準画像およびそれと比較す
る被処理画像の、それぞれ対応する画素の濃度レ
ベルを順次比較して任意の区間において濃度レベ
ルの相違する画素の数を計数し、基準画像と被処
理画像との非マツチング量を算出している。
When processing an image, the density levels of the corresponding pixels of the reference image and the processed image to be compared with it are sequentially compared, and the number of pixels with different density levels in an arbitrary interval is counted, and the reference image and the processed image are compared. The amount of non-matching is calculated.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上記の例では画素の数は100個であり少なくと
も200ビツトの記憶容量があれば、基準画像を表
す辞書データと被処理画像を表す被処理データと
を記憶することができる。しかし通常の画像デー
タの処理方法では区間の分割数を増大し、画像デ
ータの高精度化を図ると画素の数が幾何級数的に
増加し、辞書データと被処理データを記憶するた
めに厖大な容量の記憶装置を必要とし、それ等の
厖大なデータを一つ一つ比較するために長い処理
時間を必要とするという問題があつた。
In the above example, the number of pixels is 100, and if there is a storage capacity of at least 200 bits, it is possible to store the dictionary data representing the reference image and the processed data representing the processed image. However, in the normal image data processing method, when the number of divisions of the interval is increased and the precision of the image data is increased, the number of pixels increases exponentially, and a huge amount of memory is required to store the dictionary data and the data to be processed. This method requires a large-capacity storage device and requires a long processing time to compare such huge amounts of data one by one.

〔問題点を解決するための手段〕[Means for solving problems]

第1図は本発明になる画像データの処理方法を
示す図で、第1図aは単位画像データの構成を示
す図、第1図bは画像データの一例を示す図であ
る。
FIG. 1 is a diagram showing the image data processing method according to the present invention, FIG. 1a is a diagram showing the structure of unit image data, and FIG. 1b is a diagram showing an example of the image data.

上記問題点は濃度レベルを示す1ビツトの濃度
指示ビツト1と、その濃度レベルが連続する長さ
を示す7ビツトの長さ指示ビツト2からなる、1
バイトの単位画像データを走査順序に従つて列記
し、画像の処理に際して前記手段に従つて列記さ
れた辞書データと被処理データとを比較し、任意
の区間において濃度指示ビツト1が相違する部分
の長さを順次加算することによつて、辞書データ
と被処理データとの非マツチング量を求める本発
明になる画像データの処理方法によつて解決され
る。
The above problem consists of a 1-bit density indicator bit 1 that indicates the density level, and a 7-bit length indicator bit 2 that indicates the continuous length of the density level.
Byte unit image data is listed according to the scanning order, and when processing the image, the dictionary data listed according to the above method and the data to be processed are compared, and the parts where the density indicator bit 1 differs in any interval are determined. This problem is solved by the image data processing method of the present invention, which calculates the amount of unmatching between the dictionary data and the data to be processed by sequentially adding the lengths.

〔作用〕[Effect]

第1図において1バイトの単位画像データを走
行順序に従つて列記することによつて、辞書デー
タと被処理データを記憶するための記憶容量を縮
小し、辞書データと被処理データとの非マツチン
グ量を求めるための処理時間を短縮することがで
きる。
In FIG. 1, by arranging 1-byte unit image data according to the running order, the storage capacity for storing dictionary data and processed data is reduced, and the dictionary data and processed data are not matched. The processing time for determining the amount can be shortened.

〔実施例〕〔Example〕

以下添付図により本発明の実施例について説明
する。なお第2図は画像処理装置の一実施例を示
すブロツク図である。
Embodiments of the present invention will be described below with reference to the accompanying drawings. Note that FIG. 2 is a block diagram showing one embodiment of the image processing apparatus.

第1図aにおいて1ビツトの濃度指示ビツト1
と、7ビツトの長さ指示ビツト2とで1バイトの
単位画像データを構成することによつて、区間の
分割数に関係無く同一濃度が続く区間を1バイト
の単位画像データで表すことができる。例えば第
3図bの内容を本発明になる単位画像データで表
すと、第1図bに示す如く22個の単位画像データ
即ち172ビツトの画像データに置換され、辞書デ
ータと被処理データとを記憶するために少なくと
も360ビツトの記憶容量を必要とする。
In FIG. 1a, 1-bit concentration indicator bit 1
By configuring 1 byte of unit image data with , and 7-bit length indication bit 2, it is possible to represent a section where the same density continues regardless of the number of divisions of the section with 1 byte of unit image data. . For example, if the content of FIG. 3b is expressed by unit image data according to the present invention, it will be replaced with 22 unit image data, that is, 172-bit image data, as shown in FIG. 1b, and the dictionary data and the data to be processed will be Requires at least 360 bits of storage capacity to store.

図示の如く区間の分割数が少ない場合は通常の
方法が有利なことは言うまでも無い。しかし区間
の分割数を20倍にすると画素の数が400倍になり、
辞書データと被処理データとを記憶するために通
常の方法では80000ビツトの記憶容量を必要とす
るのに対し、本発明になる方法では約20倍の8000
ビツトの記憶容量があれば充分で、辞書データと
被処理データを記憶するための記憶容量を大幅に
縮小することができる。
It goes without saying that the normal method is advantageous when the number of divided sections is small as shown in the figure. However, if you increase the number of divisions of the section by 20 times, the number of pixels will increase by 400 times,
While conventional methods require a storage capacity of 80,000 bits to store dictionary data and data to be processed, the method of the present invention requires 8,000 bits, which is about 20 times as large.
A storage capacity of bits is sufficient, and the storage capacity for storing dictionary data and data to be processed can be significantly reduced.

しかし画像の処理において本発明になる方法は
通常の方法と異なり、対応する画素の濃度レベル
を順次比較して濃度レベルの相違する画素の数を
計数し、基準画像と被処理画像との非マツチング
量を算出することができない。そこで本発明にな
る方法では基準画像と被処理画像との非マツチン
グ量を次の方法で算出する。
However, the method according to the present invention in image processing differs from normal methods in that it sequentially compares the density levels of corresponding pixels and counts the number of pixels with different density levels, thereby preventing non-matching between the reference image and the processed image. It is not possible to calculate the amount. Therefore, in the method of the present invention, the amount of unmatching between the reference image and the processed image is calculated by the following method.

第2図において画像処理装置は、レジスタ31
およびレジスタ32を有する演算回路3と非マツ
チング量加算回路4とを具えており、画像の処理
に際して図示していない記憶装置に記憶されてい
る辞書データから順次読み出された、単位画像デ
ータA(辞書データAと称する)がレジスタ31
に、また被処理データから順次読み出された単位
画像データB(被処理データBと称する)がレジ
スタ32に格納される。
In FIG. 2, the image processing device includes a register 31
and a register 32, and a non-matching amount addition circuit 4, unit image data A ( (referred to as dictionary data A) is stored in the register 31.
Also, unit image data B (referred to as processing data B) sequentially read out from the processed data is stored in the register 32.

() 非マツチング量算出:演算回路3におい
て辞書データAおよび被処理データBから、長さ
指示ビツト2を用いて(1)式によつて非マツチング
量Cが算出される。
() Calculation of non-matching amount: In the arithmetic circuit 3, the non-matching amount C is calculated from the dictionary data A and the data to be processed B using the length indication bit 2 according to equation (1).

C=A+B−|A−B|/2 ……(1) この非マツチング量Cが非マツチング量加算回
路4に入力されるが、非マツチング量加算回路4
は辞書データAおよび被処理データBの濃度指示
ビツト1が相違している場合のみ、動作して非マ
ツチング量を加算するように構成されており、任
意の区間において濃度指示ビツトが相違する部分
の長さを順次加算し、辞書データと被処理データ
との非マツチング量を求めることができる。
C=A+B-|A-B|/2...(1) This non-matching amount C is input to the non-matching amount adding circuit 4, but the non-matching amount adding circuit 4
is configured to operate and add the non-matching amount only when the density indicator bit 1 of the dictionary data A and the processed data B is different, and it is possible to add the non-matching amount in any section where the density indicator bits are different. By sequentially adding the lengths, the amount of unmatching between the dictionary data and the data to be processed can be determined.

() 長さ照合:また演算回路3は長さ指示ビ
ツト2から辞書データAと被処理データBの長さ
の差を、(2)式によつて算出してその結果をレジス
タ31に格納し、それを次の辞書データAとして
上記の非マツチング量算出を行う。
() Length verification: Also, the arithmetic circuit 3 calculates the difference in length between the dictionary data A and the data to be processed B from the length indication bit 2 using equation (2), and stores the result in the register 31. , is used as the next dictionary data A to perform the above-mentioned unmatching amount calculation.

A′=|A−B|+A−B/2 ……(2) また辞書データAと被処理データBの長さの差
を(3)式によつて算出してその結果をレジスタ32
に格納し、それを次の辞書データBとして上記の
非マツチング量算出を行う。
A'=|A-B|+A-B/2...(2) Also, calculate the difference in length between the dictionary data A and the data to be processed B using equation (3), and send the result to the register 32.
, and use it as the next dictionary data B to perform the above-mentioned unmatching amount calculation.

B′=|A−B|−A+B/2 ……(3) なおレジスタ31に格納したA′またはレジス
タ32に格納したB′が0の場合は、次の辞書デ
ータAをレジスタ31に或いは被処理データBを
レジスタ32に格納する。
B'=|A-B|-A+B/2...(3) If A' stored in register 31 or B' stored in register 32 is 0, the next dictionary data A is stored in register 31 or Processing data B is stored in the register 32.

() 非マツチング量算出例: 次表の例に示す辞書データAと被処理データB
における非マツチング量を算出する。
() Example of calculating unmatched amount: Dictionary data A and processed data B shown in the example in the table below.
Calculate the amount of unmatching in .

辞書データAと被処理データBの例 濃度レベル : 0 1 0 辞書データAの長さ :60、80、60、 被処理データBの長さ:50、100、50、 第1回演算: 非マツチング量算出は同レベルのため省略。 Example of dictionary data A and processed data B Concentration level: 0 1 0 Length of dictionary data A: 60, 80, 60, Length of processed data B: 50, 100, 50, 1st operation: Calculation of non-matching amount is omitted as it is at the same level.

A′=10、B′=0、 第2回演算: C=10、A′=10、B′=90 第3回演算: 非マツチング量算出は同レベルのため省略。 A′=10, B′=0, 2nd operation: C=10, A'=10, B'=90 3rd operation: Calculation of non-matching amount is omitted as it is at the same level.

A′=0、B′=10、 第4回演算: C=10、A′=50、B′=0 第5回演算: 非マツチング量算出は同レベルのため省略。 A′=0, B′=10, 4th operation: C=10, A'=50, B'=0 5th operation: Calculation of non-matching amount is omitted as it is at the same level.

A′=0、B′=0、 以上の如く5回の演算によつて辞書データAと
被処理データBとが比較され、その区間内におけ
る非マツチング量が20であることが算出される。
A'=0, B'=0 As described above, the dictionary data A and the processed data B are compared through the five calculations, and it is calculated that the amount of unmatching within that section is 20.

上記の辞書データAと被処理データBの例を通
常の方法で比較し非マツチング量を算出すると、
200個ある画素の一つ一つについて辞書データA
と被処理データBとを比較し、濃度レベルが相違
するとその都度加算するために長い処理時間を必
要とする。即ち本発明になる方法によつて画像処
理に要する時間を大幅に短縮することができる。
Comparing the above examples of dictionary data A and processed data B using the usual method and calculating the amount of unmatching results in
Dictionary data A for each of the 200 pixels
and the data to be processed B, and if the density level differs, it is added each time, which requires a long processing time. That is, the method according to the present invention can significantly reduce the time required for image processing.

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

上述の如く本発明によれば記憶容量の縮小と処
理時間の短縮を実現可能な画像データの処理方法
を提供することができる。
As described above, according to the present invention, it is possible to provide an image data processing method that can reduce storage capacity and processing time.

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

第1図は本発明になる画像データの処理方法を
示す図、第2図は画像処理装置の一実施例を示す
ブロツク図、第3図は通常の画像データの処理方
法を示す図、である。図において、1は濃度指示
ビツト、2は長さ指示ビツト、3は演算回路、4
は非マツチング量加算回路、31,32はレジス
タ、をそれぞれ表す。
FIG. 1 is a diagram showing an image data processing method according to the present invention, FIG. 2 is a block diagram showing an embodiment of an image processing device, and FIG. 3 is a diagram showing a normal image data processing method. . In the figure, 1 is a density indicating bit, 2 is a length indicating bit, 3 is an arithmetic circuit, and 4 is a length indicating bit.
3 represents a non-matching amount addition circuit, and 31 and 32 represent registers, respectively.

Claims (1)

【特許請求の範囲】 1 画像処理装置において二値化した画像を表す
手段として、濃度レベルを示す1ビツトの濃度指
示ビツト1と該濃度レベルが連続する長さを示す
7ビツトの長さ指示ビツト2からなる、1バイト
の単位画像データを走査順序に従つて列記し、 画像の処理に際して前記手段に従つて列記され
た辞書データと被処理データとを比較し、任意の
区間において濃度指示ビツト1が相違する部分の
長さを順次加算することによつて、辞書データと
被処理データとの非マツチング量を求めることを
特徴とする画像データの処理方法。
[Claims] 1. As a means for representing a binarized image in an image processing device, a 1-bit density indicator bit 1 indicating a density level and a 7-bit length indicator bit indicating a continuous length of the density level are used. 2, 1-byte unit image data is listed according to the scanning order, and when processing the image, the dictionary data listed according to the above means is compared with the data to be processed, and the density indication bit 1 is set in an arbitrary interval. 1. A method for processing image data, characterized in that the amount of unmatching between dictionary data and data to be processed is determined by sequentially adding the lengths of portions where the values are different.
JP1862486A 1986-01-30 1986-01-30 Processing method for image data Granted JPS62175881A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1862486A JPS62175881A (en) 1986-01-30 1986-01-30 Processing method for image data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1862486A JPS62175881A (en) 1986-01-30 1986-01-30 Processing method for image data

Publications (2)

Publication Number Publication Date
JPS62175881A JPS62175881A (en) 1987-08-01
JPH0448277B2 true JPH0448277B2 (en) 1992-08-06

Family

ID=11976775

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1862486A Granted JPS62175881A (en) 1986-01-30 1986-01-30 Processing method for image data

Country Status (1)

Country Link
JP (1) JPS62175881A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH076231A (en) * 1993-04-07 1995-01-10 Yuseisho Tsushin Sogo Kenkyusho High speed calculation system for distance between pictures

Also Published As

Publication number Publication date
JPS62175881A (en) 1987-08-01

Similar Documents

Publication Publication Date Title
WO2022068328A1 (en) Data migration method and apparatus, and processor and calculation device
JPH04291418A (en) Pre-processor for division circuit
JPH0448277B2 (en)
JPS6318756B2 (en)
US4723258A (en) Counter circuit
JPS6168636A (en) Data processor
JP3210356B2 (en) Data zero judgment device
JP2730087B2 (en) Register file address circuit
JP2892378B2 (en) Noise reduction method for moving images
JP2624738B2 (en) Rounding method
JPH03290741A (en) Error logging method
JPS5875928A (en) Loop counting system
JP2590866B2 (en) Data retrieval device
JPH01142823A (en) Bit position inspecting circuit
JPH08147210A (en) Bit map memory device
JPS60124730A (en) Digital operation circuit
JPH0319985B2 (en)
JPH04195334A (en) Fixed decimal point type digital signal processor
JPH0426494B2 (en)
JPH0364904B2 (en)
JPH02131291A (en) Bit block transfer device
JPH01263812A (en) Table reading circuit
JPH02139799A (en) Two-dimensional shift register and dynamic vector detecting arithmetic circuit using the register
JPH07203453A (en) Context generator and coder using the same
JPS62279449A (en) Data transfer equipment

Legal Events

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