JP2765051B2 - Combination method of binary image information - Google Patents

Combination method of binary image information

Info

Publication number
JP2765051B2
JP2765051B2 JP1134296A JP13429689A JP2765051B2 JP 2765051 B2 JP2765051 B2 JP 2765051B2 JP 1134296 A JP1134296 A JP 1134296A JP 13429689 A JP13429689 A JP 13429689A JP 2765051 B2 JP2765051 B2 JP 2765051B2
Authority
JP
Japan
Prior art keywords
image information
binary image
area
row
dots
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 - Lifetime
Application number
JP1134296A
Other languages
Japanese (ja)
Other versions
JPH02311967A (en
Inventor
誠 宮井
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
Nippon Electric 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP1134296A priority Critical patent/JP2765051B2/en
Publication of JPH02311967A publication Critical patent/JPH02311967A/en
Application granted granted Critical
Publication of JP2765051B2 publication Critical patent/JP2765051B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は排他的論理和をとることにより、2つの二値
画像情報上の指定された矩形範囲内の二値画像情報を合
成する二値画像情報の合成方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Application Field] The present invention obtains an exclusive OR to combine binary image information within a specified rectangular range on two binary image information. The present invention relates to a method for synthesizing image information.

〔従来の技術〕[Conventional technology]

排他的論理和をとることにより、2つの二値画像情報
上の指定された矩形範囲内の二値画像情報を合成すると
いうことは従来より行なわれており、従来は第10図に示
すように、合成元の二値画像情報111上の矩形領域111a
内の二値画像情報と合成先の二値画像情報112上の矩形
領域112a内の二値画像情報とを合成させて二値画像情報
112′を得る場合、矩形領域111a,112a内の対応するドッ
ト同士の排他的論理和を1ドットずつとり、論理演算結
果を矩形領域112a内に書込む合成手段113を用いてい
た。
It has been conventionally performed to combine binary image information within a specified rectangular range on two pieces of binary image information by taking an exclusive OR. Conventionally, as shown in FIG. , A rectangular area 111a on the binary image information 111 of the synthesis source
And the binary image information in the rectangular area 112a on the binary image information 112 of the combining destination
When obtaining 112 ', the combining means 113 which takes the exclusive OR of the corresponding dots in the rectangular areas 111a and 112a one by one and writes the logical operation result in the rectangular area 112a has been used.

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

従来は上述したように、矩形領域内の二値画像情報を
1ドットずつ処理することにより、二値画像情報を合成
するようにしているため、処理速度が遅くなるという問
題があった。
Conventionally, as described above, since the binary image information is synthesized by processing the binary image information in the rectangular area one dot at a time, there is a problem that the processing speed is reduced.

本発明の目的は2つの矩形領域内の二値画像情報を高
速に合成できるようにすることにある。
An object of the present invention is to enable high-speed synthesis of binary image information in two rectangular areas.

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

本発明は上記目的を達成するため、 第1,第2の二値画像情報上の矩形領域内の二値画像情
報を合成する二値画像情報の合成方式に於いて、 前記第1,第2の二値画像情報の各行の末尾に付加ドッ
トを付加して各行のドット数をワードサイズの整数倍に
した二値画像情報を第1,第2の二値画像情報展開領域に
書込む書込手段と、 先頭がワード境界から始まり、行方向のドット数が前
記ワードサイズと等しい矩形の切出領域であって、前記
矩形領域と重なり合っている部分を有する切出領域の位
置を求める検索手段と、 該検索手段が位置を求めた前記第1の二値画像情報上
の切出領域に含まれる二値画像情報と、前記検索手段が
位置を求めた前記切出領域の前記矩形領域と重なり合っ
ているビットのみを“1"にしたデータとの論理積演算を
ワードサイズ単位で行ない、論理演算結果がオール“0"
でない行の論理演算結果と前記第2の二値画像情報展開
領域上の対応する行の二値画像情報とのワードサイズ単
位の排他的論理和演算を行ない、論理演算結果を前記第
2の二値画像情報展開領域上の対応する行に書込む排他
的論理和手段と、 前記第2の二値画像情報展開領域に格納されている二
値画像情報の各行の末尾に付加されている付加ドットを
削除して出力する書出手段とを設けたものである。
In order to achieve the above object, the present invention provides a method of synthesizing binary image information for synthesizing binary image information in a rectangular area on first and second binary image information, Writing the binary image information in which the number of dots in each row is an integral multiple of the word size by adding an additional dot to the end of each row of the binary image information in the first and second binary image information development areas A search means for obtaining a position of a cutout area having a portion starting from a word boundary and having a number of dots in a row direction equal to the word size and having a portion overlapping the rectangular area; The binary image information included in the cutout area on the first binary image information whose position has been found by the search means, and the rectangular area of the cutout area whose position has been found by the search means; AND operation with data in which only the bit Done in's unit, the logical operation result is all "0"
The logical operation result of a row that is not the same and the binary image information of the corresponding row on the second binary image information development area are subjected to an exclusive OR operation in word size units, and the logical operation result is calculated as the second binary image information. Exclusive OR means for writing to a corresponding row on the value image information development area; and an additional dot added to the end of each row of the binary image information stored in the second binary image information development area And a writing means for deleting and outputting the same.

〔作 用〕(Operation)

書込手段は第1,第2の二値画像情報の各行の末尾に付
加ドットを付加し、各行のドット数をワードサイズの整
数倍にした二値画像情報を第1,第2の二値画像情報展開
領域に書込む。検索手段は先頭がワード境界から始ま
り、行方向のドット数がワードサイズと等しい矩形の切
出領域であって、矩形領域と重なり合っている部分を有
する切出領域の位置を求める。排他的論理和手段は検索
手段が求めた第1の二値画像情報上の切出領域内に含ま
れる二値画像情報と、上記切出領域の矩形領域と重なり
合っているビットのみを“1"としたデータとの論理積演
算をワードサイズ単位で行ない、論理演算結果がオール
“0"でない行の論理演算結果と第2の二値画像情報展開
領域上の対応する行の二値画像情報とのワードサイズ単
位の排他的論理和演算を行ない、論理演算結果を第2の
二値画像情報展開領域上の対応する行に書込む。書出手
段は第2の二値画像情報展開領域に格納されている二値
画像情報の各行の末尾に付加されている付加ドットを削
除して出力する。
The writing means adds an additional dot to the end of each line of the first and second binary image information, and converts the binary image information in which the number of dots in each line is an integral multiple of the word size into the first and second binary image information. Write in the image information development area. The search means obtains the position of a rectangular cut-out area whose head starts from a word boundary and whose number of dots in the row direction is equal to the word size, and which has a portion overlapping the rectangular area. The exclusive OR means sets "1" to only the binary image information included in the cutout area on the first binary image information obtained by the search means and the bit overlapping the rectangular area of the cutout area. AND operation is performed in word size units with the data set as above, and the logical operation result of the row where the logical operation result is not all “0” and the binary image information of the corresponding row on the second binary image information development area And the result of the logical operation is written to the corresponding row in the second binary image information development area. The writing unit deletes and outputs an additional dot added to the end of each line of the binary image information stored in the second binary image information development area.

〔実施例〕〔Example〕

次に本発明の実施例について図面を参照して詳細に説
明する。
Next, embodiments of the present invention will be described in detail with reference to the drawings.

第1図は本発明の実施例のブロック図であり、二値画
像情報合成装置1と、合成元の二値画像情報が格納され
る二値画像情報記憶領域2a及び合成先の二値画像情報が
格納される二値画像情報記憶領域2bを含む記憶装置2と
から構成されている。二値画像情報合成装置1は合成元
の二値画像情報が展開される二値画像情報展開領域11a
及び合成先の二値画像情報が展開される二値画像情報展
開領域11bを含む記憶手段11と、記憶装置2内の二値画
像情報記憶領域2a,2bに格納されている二値画像情報を
読込み、読込んだ二値画像情報に対して各行のドット数
がワードサイズの整数倍となるように各行の末尾に白の
付加ドットを付加し、付加ドットを付加した二値画像情
報の各行がワード境界から始まるようにして二値画像情
報展開領域11a,11bに書込む書込手段12と、指定された
矩形領域と重なる部分を有する全ての切出領域(先頭が
ワード境界から始まり、行方向のドット数がワードサイ
ズと等しい矩形の領域であり、本実施例では一辺のドッ
ト数がワードサイズと等しい正方形の領域とする)の左
上端の位置を排他的論理和手段14に通知する検索手段13
と、排他的論理和をとることにより二値画像情報の合成
を行なう排他的論理和手段14と、二値画像情報展開領域
11bに格納されている合成の済んだ二値画像情報の各行
の末尾に付加されている付加ドットを削除して二値画像
情報記憶領域2bに書出す書出手段15とを含んでいる。ま
た、排他的論理和手段14は容量が1ワードサイズと等し
いレジスタ14aを含んでおり、レジスタ14aの第1ビット
〜第Nビットはそれぞれ切出領域中の第1ビット〜第N
ビットと対応している。
FIG. 1 is a block diagram of an embodiment of the present invention, in which a binary image information synthesizing apparatus 1, a binary image information storage area 2a storing binary image information of a synthesis source, and binary image information of a synthesis destination And a storage device 2 including a binary image information storage area 2b. The binary image information synthesizing device 1 is a binary image information expansion area 11a in which the binary image information of the synthesis source is expanded.
A storage unit 11 including a binary image information development area 11b in which binary image information of a combination destination is developed, and binary image information stored in binary image information storage areas 2a and 2b in the storage device 2. For the read binary image information, white additional dots are added to the end of each line so that the number of dots in each line becomes an integral multiple of the word size, and each line of the binary image information to which the additional dots are added is read. Writing means 12 for writing into binary image information development areas 11a and 11b starting from a word boundary, and all cutout areas having a portion overlapping with a specified rectangular area (the head starts from a word boundary and starts in the line direction) Is a rectangular area in which the number of dots is equal to the word size, and in the present embodiment, is a square area in which the number of dots on one side is equal to the word size). 13
And exclusive OR means 14 for combining binary image information by taking exclusive OR, and a binary image information development area
And writing means 15 for deleting an additional dot added to the end of each line of the combined binary image information stored in 11b and writing it to the binary image information storage area 2b. The exclusive OR means 14 includes a register 14a having a capacity equal to the size of one word, and the first bit to the Nth bit of the register 14a are the first bit to the Nth bit in the cut-out area, respectively.
Corresponds to a bit.

利用者は二値画像情報の合成を行なう場合、二値画像
情報記憶領域2a,2bにそれぞれ合成元,合成先の二値画
像情報を入力すると共に、検索手段13に二値画像情報記
憶領域2a,2b上の矩形領域の位置(本実施例では両者の
位置は等しいものとする)を入力し、その後、書込手段
12を起動する。
When combining the binary image information, the user inputs the binary image information of the combination source and the combination destination into the binary image information storage areas 2a and 2b, respectively, and also inputs the binary image information storage area 2a to the search means 13. , 2b (in this embodiment, the positions are assumed to be the same), and then the writing means
Start 12

第2図は書込手段12の処理例を示す流れ図であり、同
図を参照すると、書込手段12はステップS21に於いてフ
ラグFを「1」とし、次のステップS22に於いて入力元
を二値画像情報記憶領域2a、出力先を二値画像情報展開
領域11aとする。その後、書込手段12はステップS23に於
いて入力元の二値画像情報記憶領域2a上の二値画像情報
の横のドット数(1行のドット数)を予め定まっている
1ワードのドット数で割った時の余りを1ワード分のド
ット数から引くことにより、行と行との間に付加する白
の付加ドットのドット数Kを求め、ステップS24に於い
て付加ドットの付加処理を行なう行位置Iを第1行目と
する。次のステップS25に於いて書込手段12は入力元の
二値画像情報記憶領域2a上の二値画像情報の第I行目を
入力し、ステップS26に於いてステップS25で入力した1
行分の二値画像情報の最後に白の付加ドットをK個付加
し、ステップS27に於いてK個の付加ドットを付加した
1行分の二値画像情報を二値画像情報展開領域11aの第
1行目に書込む。以下、書込手段12は付加ドットの付加
処理を行なう行位置Iを1行ずつ進め(ステップS2
8)、行位置Iが二値画像情報記憶領域2a上の二値画像
情報の行数を越えるまで(ステップS29の判断結果がyes
となるまで)、上述した処理を繰返す。そして、ステッ
プS29の判断結果がyesとなることにより、書込手段12は
フラグFが「1」になっているか否かを判断する(ステ
ップS30)。そして、ステップS30に於いてフラグFが
「1」になっていると判断した場合は、書込手段12はス
テップS31に於いて入力元を二値画像情報記憶領域2b、
出力先を二値画像情報展開領域11bとし、ステップS32に
於いてフラグFを「0」にした後、ステップS23の処理
に戻り、前述したと同様にして二値画像情報記憶領域2b
に記憶されている二値画像情報を二値画像情報展開領域
11bに展開する。また、ステップS30に於いてフラグFが
「1」でないと判断した場合は、書込手段12は検索手段
13を起動した後(ステップS33)、その処理を終了す
る。
FIG. 2 is a flow chart showing a processing example of the writing means 12. Referring to FIG. 2, the writing means 12 sets the flag F to "1" in step S21, and sets the input source in the next step S22. Is a binary image information storage area 2a, and an output destination is a binary image information development area 11a. Thereafter, in step S23, the writing means 12 determines the number of horizontal dots (the number of dots in one row) of binary image information in the binary image information storage area 2a of the input source in one word. By subtracting the remainder after dividing by the number of dots for one word, the number K of white additional dots to be added between rows is obtained, and additional dot addition processing is performed in step S24. The row position I is the first row. In the next step S25, the writing means 12 inputs the first line of the binary image information in the binary image information storage area 2a of the input source, and in step S26 the 1st row input in step S25.
At the end of the row of binary image information, K white additional dots are added, and at step S27, one row of binary image information to which K additional dots have been added is added to the binary image information development area 11a. Write to the first line. Hereinafter, the writing means 12 advances the row position I where the additional dot addition processing is performed by one row (step S2).
8) Until the row position I exceeds the number of rows of the binary image information in the binary image information storage area 2a (the determination result of step S29 is yes)
The above processing is repeated. When the result of the determination in step S29 is yes, the writing means 12 determines whether the flag F is "1" (step S30). If it is determined in step S30 that the flag F is "1", the writing means 12 sets the input source to the binary image information storage area 2b in step S31.
The output destination is the binary image information development area 11b, the flag F is set to "0" in step S32, and the process returns to step S23, and the binary image information storage area 2b is processed in the same manner as described above.
The binary image information stored in the
Expand to 11b. If it is determined in step S30 that the flag F is not "1", the writing means 12
After activating 13 (step S33), the process ends.

従って、二値画像情報展開領域11a,11bには第3図に
示すように、二値画像情報記憶領域2a,2b上の二値画像
情報の各行の末尾にK個の付加ドットが付加され、各行
がワード境界から始まるようにされた二値画像情報が格
納される。
Accordingly, as shown in FIG. 3, K additional dots are added to the end of each row of the binary image information in the binary image information storage areas 2a and 2b in the binary image information development areas 11a and 11b, Binary image information in which each row starts from a word boundary is stored.

検索手段13は書込手段12から起動がかけられると、第
4図の流れ図に示す処理を開始し、先ず、ステップS41
に於いて二値画像情報展開領域11a,11b上の矩形領域の
先頭行位置を、矩形領域の左上端を含む切出領域の先頭
行位置Lとする。今、例えば、二値画像情報展開領域11
a上の矩形領域11cが第5図に示すものであるとすると、
検索手段13は第4行を、矩形領域11cの左上端を含む切
出領域d1,1の先頭行位置Lとする。
When the search means 13 is activated by the writing means 12, it starts the processing shown in the flowchart of FIG.
In this case, the top row position of the rectangular area on the binary image information development areas 11a and 11b is set as the top row position L of the cutout area including the upper left end of the rectangular area. Now, for example, the binary image information development area 11
Assuming that the rectangular area 11c on a is as shown in FIG.
The search unit 13 sets the fourth row as the top row position L of the cutout area d1,1 including the upper left end of the rectangular area 11c.

ステップS41の処理が終了すると、検索手段13はステ
ップS42に於いて、二値画像情報展開領域11a上の矩形領
域11cの左端のドット位置(列位置)を1ワード分のド
ット数(本実施例では4ドットとする)で割った時の整
数倍と1ワード分のドット数とを乗算し、乗算結果に1
を加算することにより、矩形領域11cの左上端を含む切
出領域d1,1の左上端のドット位置Mを求める。第5図に
示した例では、矩形領域11cの左端のドット位置は7、
1ワード分のドット数は4であるので、切出領域d1,1の
左端のドット位置Mは第5ドットとなる。
When the processing in step S41 is completed, the search means 13 determines in step S42 the dot position (column position) at the left end of the rectangular area 11c on the binary image information development area 11a by the number of dots for one word (the present embodiment). In this case, it is assumed to be 4 dots.
Are added to obtain the dot position M at the upper left corner of the cutout area d1,1 including the upper left corner of the rectangular area 11c. In the example shown in FIG. 5, the dot position at the left end of the rectangular area 11c is 7,
Since the number of dots for one word is 4, the dot position M at the left end of the cutout area d1,1 is the fifth dot.

ステップS42に於いて、ドット位置Mを求めると、検
索手段13はドット位置M及びステップS41で求めた行位
置Lを渡して排他的論理和手段14を起動する(ステップ
S43)。排他的論理和手段14は検索手段13から起動がか
けられると、二値画像情報展開領域11a,11bに格納され
ている二値画像情報の合成処理を開始する。尚、排他的
論理和手段14が行なう合成処理については後で詳細に説
明する。
When the dot position M is obtained in step S42, the search means 13 activates the exclusive OR means 14 by passing the dot position M and the row position L obtained in step S41 (step S42).
S43). When the exclusive OR means 14 is activated by the search means 13, it starts the process of synthesizing the binary image information stored in the binary image information development areas 11a and 11b. The combining process performed by the exclusive OR means 14 will be described later in detail.

ステップS43で排他的論理和手段14を起動すると、検
索手段13はステップS44に於いて、ドット位置Mに1ワ
ード分のドット数を加算した値を新たな切出領域の左端
のドット位置Mとし、次のステップS45に於いて次式
(1)に示す演算を行なうことにより、ステップS44で
求めたドット位置Mが矩形領域11cの右端を越えている
か否かを判断する。
When the exclusive OR means 14 is activated in step S43, the search means 13 determines in step S44 the value obtained by adding the number of dots for one word to the dot position M as the dot position M at the left end of the new cutout area. In the next step S45, the calculation shown in the following equation (1) is performed to determine whether or not the dot position M obtained in step S44 is beyond the right end of the rectangular area 11c.

M>A+B−C …(1) 但し、式(1)に於いて、Aは二値画像情報展開領域
11a上の矩形領域11cの右端ドット位置、Bは1ワード分
のドット数、Cは二値画像情報展開領域11a上の矩形領
域11cの右端ドット位置を1ワード分のドット数で割っ
た時の剰余を表している。
M> A + BC (1) where, in the expression (1), A is a binary image information development area
The right end dot position of the rectangular area 11c on 11a, B is the number of dots for one word, and C is the right end dot position of the rectangular area 11c on the binary image information development area 11a divided by the number of dots for one word. Represents the remainder.

そして、式(1)に示す条件が満たされていないと判
断した場合、即ち、ステップS44で求めた新たな切出領
域の左端のドット位置が矩形領域11cの右端を越えてい
ないと判断した場合は、検索手段13はステップS43の処
理に戻り、式(1)に示す条件が満たされていると判断
した場合、即ちステップS44で求めた新たな切出領域の
左端が矩形領域11cの右端を越えていると判断した場合
はステップS46の処理を行なう。
Then, when it is determined that the condition shown in Expression (1) is not satisfied, that is, when it is determined that the dot position on the left end of the new cutout area obtained in step S44 does not exceed the right end of the rectangular area 11c Returns to the process of step S43, when the search unit 13 determines that the condition shown in the equation (1) is satisfied, that is, the left end of the new cutout region obtained in step S44 is set to the right end of the rectangular region 11c. If it is determined that it has exceeded, the process of step S46 is performed.

従って、第5図に示した例では、ステップS44に於い
て切出領域d1,4の左端のドット位置Mに1ワード分のド
ット数を加えるまでは、ステップS45の判断結果がnoと
なるので、検索手段13は二値画像情報展開領域11a上の
切出領域d1,1〜d1,4の左上端の行位置L,ドット位置Mを
順次排他的論理和手段14に通知することになる。
Therefore, in the example shown in FIG. 5, since the number of dots for one word is added to the dot position M at the left end of the cutout areas d1, 4 in step S44, the determination result in step S45 is no. The search means 13 sequentially notifies the exclusive-OR means 14 of the row position L and dot position M at the upper left corner of the cutout areas d1,1 to d1,4 on the binary image information development area 11a.

ステップS46に於いては、検索手段13は行位置Lに1
ワード分のドット数を加算する処理を行ない、次のステ
ップS47に於いては次式(2)に示す演算を行なうこと
により、ステップS46で求めた行位置Lが矩形領域11cの
下端行位置を越えているか否かを判断する。
In step S46, the search means 13 sets 1 in the row position L.
A process of adding the number of dots for words is performed, and in the next step S47, an operation represented by the following equation (2) is performed, so that the line position L obtained in step S46 is changed to the lower line position of the rectangular area 11c. It is determined whether or not it has exceeded.

L>X+B−Y …(2) 但し、式(2)に於いてXは二値画像情報展開領域11
a上の矩形領域11cの下端行位置、Bは1ワード分のドッ
ト数、Yは二値画像情報展開領域11a上の矩形領域11cの
下端行位置を1ワード分のドット数で割った時の剰余を
表している。
L> X + BY (2) where X is the binary image information development area 11 in the equation (2).
a is the lower row position of the rectangular area 11c on a, B is the number of dots for one word, and Y is the lower row position of the rectangular area 11c on the binary image information development area 11a divided by the dot number for one word. Represents the remainder.

ステップS47に於いて、ステップS46で求めた行位置L
が矩形領域11cの下端行位置を越えていないと判断した
場合、即ち式(2)に示す条件を満たしていないと判断
した場合はステップS42の処理に戻り、下端行位置を越
えていると判断した場合は排他的論理和手段14の処理が
終了するのを待ち(ステップS48)、排他的論理和手段1
4の処理が終了すると、書出手段15を起動させた後(ス
テップS49)、その処理を終了する。
In step S47, the row position L obtained in step S46
If it is determined that does not exceed the bottom row position of the rectangular area 11c, that is, if it is determined that the condition shown in Expression (2) is not satisfied, the process returns to step S42, and it is determined that the bottom row row is exceeded. If the processing has been completed, the process waits for the processing of the exclusive OR means 14 to end (step S48), and the exclusive OR means 1
When the process of 4 is completed, the writing unit 15 is activated (step S49), and then the process is terminated.

従って、第5図に示した例ではステップS46に於いて
切出領域d3,4の左上端の行位置Laに1ワード分のドット
数を加えるまでは、ステップS47の判断結果がnoとなる
ので、検索手段13は切出領域d2,1〜d3,4の左上端の行位
置L,ドット位置Mを順次排他的論理和手段14に通知し、
その後、処理を終了することになる。
Therefore, in the example shown in FIG. 5, the determination result in step S47 is no until the number of dots for one word is added to the row position La at the upper left corner of the cutout areas d3, 4 in step S46. The search means 13 sequentially notifies the exclusive-OR means 14 of the row position L and the dot position M at the upper left corner of the cutout areas d2,1 to d3,4,
After that, the process ends.

排他的論理和手段14は検索手段13から処理対象とする
切出領域の左上端の行位置L,ドット位置Mが渡され、起
動がかけられると、第6図の流れ図に示す処理を開始
し、先ず、ステップS61に於いてNを「1」とすること
により、切出領域内に於ける処理対象行を第1行目にす
る。次いで、排他的論理和手段14は二値画像情報展開領
域11a上の左上端の行位置,ドット位置がそれぞれL,Mで
ある切出領域の第N行の第1ビット〜第4ビットをそれ
ぞれレジスタ14aの第1ビット〜第4ビットに対応さ
せ、上記第N行の各ビットの内の矩形領域と重なり合っ
ているビットに対応するレジスタ14aのビットに“1"を
セットし、それ以外のビットには“0"をセットする(ス
テップS62)。その後、排他的論理和手段14は検索手段1
3から通知された行位置L,ドット位置Mによって示され
る二値画像情報展開領域11a上の切出領域内の第N行目
の二値画像情報とレジスタ14aにセットされているデー
タとのワードサイズ単位の論理積演算を行ない、演算結
果をレジスタ14aにセットする(ステップS63)。
The exclusive OR means 14 receives the row position L and the dot position M at the upper left corner of the cut-out area to be processed from the search means 13 and, when activated, starts the processing shown in the flowchart of FIG. First, in step S61, N is set to "1", so that the line to be processed in the cutout area is set to the first line. Next, the exclusive OR means 14 converts the first bit to the fourth bit of the N-th row of the cutout area where the upper left row position and the dot position on the binary image information development area 11a are L and M, respectively. Corresponding to the first to fourth bits of the register 14a, "1" is set to the bit of the register 14a corresponding to the bit overlapping the rectangular area among the bits of the Nth row, and the other bits are set. Is set to "0" (step S62). Thereafter, the exclusive OR means 14 becomes the search means 1
The word of the binary image information of the Nth line in the cutout area on the binary image information development area 11a indicated by the row position L and the dot position M notified from 3 and the data set in the register 14a A logical AND operation in units of size is performed, and the operation result is set in the register 14a (step S63).

第7図(a)は第5図に示した切出領域d1,1の左上端
の行位置L,ドット位置Mが通知され、N=1,2,3,4とし
た時の切出領域d1,1の内容,ステップS62の処理が行な
われた時のレジスタ14aの内容及びステップS63の処理が
行なわれた時点のレジスタ14aの内容を示している。こ
の例では切出領域d1,1はその第3行,第4行しか矩形領
域11cと重なっていないので、ステップS62の処理が行な
われることにより、レジスタ14aの第3ビット,第4ビ
ットのみに“1"がセットされ、第1ビット,第2ビット
には“0"がセットされる。また、同図(b)は切出領域
d1,2が通知された時の上記各内容を、同図(c)は切出
領域d1,4が通知された時の上記各内容を、同図(d)は
切出領域d3,1が通知された時の上記各内容を、同図
(e)は切出領域d3,2が通知された時の上記各内容を、
同図(f)は切出領域d3,4が通知された時の上記各内容
を示している。
FIG. 7A shows the cutout area when the row position L and the dot position M at the upper left corner of the cutout area d1,1 shown in FIG. 5 are notified, and N = 1, 2, 3, 4 It shows the contents of d1, 1 and the contents of the register 14a when the processing in step S62 is performed and the contents of the register 14a when the processing in step S63 is performed. In this example, since only the third and fourth rows of the cutout area d1,1 overlap the rectangular area 11c, the processing in step S62 is performed, so that only the third and fourth bits of the register 14a are stored. “1” is set, and “0” is set in the first and second bits. FIG. 4B shows a cutout area.
FIG. 3 (c) shows the above contents when d1,2 is notified, FIG. 4 (c) shows the above contents when the cutout areas d1,4 are notified, and FIG. 4 (d) shows the cutout areas d3,1. FIG. 9E shows the contents at the time when the cutout areas d3 and 2 were notified, and FIG.
FIG. 11F shows the above contents when the cutout areas d3 and d4 are notified.

次いで、排他的論理和手段14はレジスタ14aにセット
されていデータがオール“0"であるか否かを判断する
(ステップS64)。そして、ステップS64でレジスタ14a
にセットされているデータがオール“0"であると判断し
た場合はNを+1する(ステップS66)。また、オール
“0"でないと判断した場合は、検索手段12から通知され
た行位置L,ドット位置Mによって示される二値画像情報
展開領域11b上の切出領域の第N行目の二値画像情報と
レジスタ14aにセットされているデータとのワードサイ
ズ単位の論理的排他和演算を行ない、その演算結果を上
記切出領域の第N行目に書込んだ後(ステップS65)、
ステップS66の処理を行なう。ステップS66の処理が終了
すると、排他的論理和手段14はステップS66で求めたN
が切出領域の1ワード分のドット数を越えているか否か
を判断する(ステップS67)。そして、Nが切出領域の
1ワード分のドット数を越えていないと判断した場合は
ステップS62の処理に戻り、越えていると判断した場合
はその処理を終了する。
Next, the exclusive OR means 14 determines whether or not the data set in the register 14a is all "0" (step S64). Then, in step S64, the register 14a
If it is determined that the data set in is "0", N is incremented by 1 (step S66). On the other hand, if it is determined that all the bits are not “0”, the binary data of the N-th row of the cut-out area on the binary image information development area 11b indicated by the row position L and the dot position M notified from the search unit 12 After performing a logical exclusive OR operation on a word size basis between the image information and the data set in the register 14a, and writing the operation result in the N-th row of the cutout area (step S65),
The process of step S66 is performed. When the processing in step S66 ends, the exclusive OR means 14 calculates the N obtained in step S66.
Is larger than the number of dots for one word of the cutout area (step S67). Then, when it is determined that N does not exceed the number of dots for one word of the cutout area, the process returns to step S62, and when it is determined that it exceeds, the process is terminated.

書出手段15は検索手段13から起動がかけられると、第
8図の流れ図に示す処理を開始し、先ず、ステップS81
に於いて行位置Jを第1行目とする。次いで、ステップ
S82に於いて二値画像情報展開領域11b上の二値画像情報
の第J行目を入力し、ステップS83に於いてステップS82
で入力した行の最後からKドットを削除し、更に、ステ
ップS84に於いてステップS83で最後のKドットを削除し
た第J行目の二値画像情報を二値画像情報記憶領域2bの
第J行目に書込む。以下、書出手段15は1行ずつ行位置
Jを進め(ステップS85)、行位置Jが二値画像情報展
開領域11bの二値画像情報の行数を越えるまで(ステッ
プS86の判断結果がyesとなるまで)、上述した処理を繰
返す。即ち、書出手段15は第9図に示すように、書込手
段12が付加した付加ドットを削除して、二値画像情報展
開領域11b上の合成済みの二値画像情報を二値画像情報
記憶領域2bに書出すものである。
When the writing means 15 is activated by the search means 13, it starts the processing shown in the flowchart of FIG.
, The row position J is the first row. Then step
In step S82, the J-th line of the binary image information on the binary image information development area 11b is input, and in step S83, the process proceeds to step S82.
In step S84, K dots are deleted from the end of the input line, and in step S84, the binary image information of the J-th line from which the last K dots have been deleted in step S83 is replaced with the J-th binary image information in the binary image information storage area 2b. Write on the line. Thereafter, the writing means 15 advances the line position J line by line (step S85), and until the line position J exceeds the number of lines of the binary image information in the binary image information development area 11b (the determination result in step S86 is yes). The above processing is repeated. That is, as shown in FIG. 9, the writing means 15 deletes the additional dots added by the writing means 12, and replaces the combined binary image information on the binary image information development area 11b with the binary image information. This is written to the storage area 2b.

尚、上述した実施例に於いては、ワードサイズを4ド
ットとしたが、複数ドットであればこれに限られるもの
ではない。
In the above-described embodiment, the word size is set to four dots, but the word size is not limited to four dots.

〔発明の効果〕〔The invention's effect〕

以上説明したように、本発明は、ワードサイズ単位に
論理的排他和をとることにより二値画像情報を合成する
ようにしたものであるので、1ドットずつ排他的論理和
をとることにより二値画像情報の合成を行なっていた従
来例に比較して2つの二値画像情報の合成処理を高速に
行なうことができる効果がある。また、更に、本発明は
二値画像情報の各行に付加ドットを付加し、各行のドッ
ト数をワードサイズの整数倍とした後、合成処理を行な
うようにしたものであるので、ワードサイズ単位の処理
を容易に行なうことが可能になる効果もある。
As described above, in the present invention, binary image information is synthesized by taking a logical exclusive OR in word size units. As compared with the conventional example in which image information is synthesized, there is an effect that the synthesizing process of two pieces of binary image information can be performed at a higher speed. Further, according to the present invention, an additional dot is added to each line of the binary image information, and the number of dots in each line is set to an integral multiple of the word size, and then the combining process is performed. There is also an effect that processing can be easily performed.

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

第1図は本発明の実施例のブロック図、 第2図は書込手段12の処理例を示す流れ図、 第3図は書込手段12の動作説明図、 第4図は検索手段13の処理例を示す流れ図、 第5図は検索手段13の動作説明図、 第6図は排他的論理和手段14の処理例を示す流れ図、 第7図は排他的論理和手段14の動作説明図、 第8図は書出手段15の処理例を示す流れ図、 第9図は書出手段15の動作説明図及び、 第10図は従来例の説明図である。 図に於いて、 1……二値画像情報合成装置 2……記憶装置 2a,2b……二値画像情報記憶領域 11……記憶手段 11a,11b……二値画像情報展開領域 13……検索手段 14……排他的論理和手段 14a……レジスタ 15……書出手段 FIG. 1 is a block diagram of an embodiment of the present invention, FIG. 2 is a flow chart showing an example of processing of the writing means 12, FIG. FIG. 5 is a flow chart showing an example of processing of the exclusive OR means 14, FIG. 7 is a flow chart showing an example of processing of the exclusive OR means 14, FIG. FIG. 8 is a flowchart showing an example of processing by the writing means 15, FIG. 9 is an explanatory view of the operation of the writing means 15, and FIG. 10 is an explanatory view of a conventional example. In the figure, 1... Binary image information synthesizing device 2... Storage device 2a, 2b... Binary image information storage region 11... Means 14 ... Exclusive OR means 14a ... Register 15 ... Write means

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】第1,第2の二値画像情報上の矩形領域内の
二値画像情報を合成する二値画像情報の合成方式に於い
て、 前記第1,第2の二値画像情報の各行の末尾に付加ドット
を付加して各行のドット数をワードサイズの整数倍にし
た二値画像情報を第1,第2の二値画像情報展開領域に書
込む書込手段と、 先頭がワード境界から始まり、行方向のドット数が前記
ワードサイズと等しい矩形の切出領域であって、前記矩
形領域と重なり合っている部分を有する切出領域の位置
を求める検索手段と、 該検索手段が位置を求めた前記第1の二値画像情報上の
切出領域に含まれる二値画像情報と、前記検索手段が位
置を求めた前記切出領域の前記矩形領域と重なり合って
いるビットのみを“1"にしたデータとの論理積演算をワ
ードサイズ単位で行ない、論理演算結果がオール“0"で
ない行の論理演算結果と前記第2の二値画像情報展開領
域上の対応する行の二値画像情報とのワードサイズ単位
の排他的論理和演算を行ない、論理演算結果を前記第2
の二値画像情報展開領域上の対応する行に書込む排他的
論理和手段と、 前記第2の二値画像情報展開領域に格納されている二値
画像情報の各行の末尾に付加されている付加ドットを削
除して出力する書出手段とを含むことを特徴とする二値
画像情報の合成方式。
1. A binary image information synthesizing method for synthesizing binary image information in a rectangular area on first and second binary image information, wherein the first and second binary image information Writing means for writing binary image information obtained by adding an additional dot to the end of each line and making the number of dots in each line an integral multiple of the word size into the first and second binary image information development areas; A search unit for obtaining a position of a cutout region which is a rectangular cutout region in which the number of dots in the row direction is equal to the word size, starting from a word boundary, and having a portion overlapping the rectangular region; Only the binary image information included in the cutout area on the first binary image information whose position has been obtained and the bits overlapping the rectangular area of the cutout area whose position has been obtained by the search means are “ Performs a logical AND operation with the data set to 1 "in word size units. Performing an exclusive OR operation in word size units between the logical operation result of the row whose operation result is not all “0” and the binary image information of the corresponding row on the second binary image information development area, The result is the second
EXCLUSIVE-OR means for writing to a corresponding row on the binary image information development area, and added to the end of each row of the binary image information stored in the second binary image information development area A writing unit that deletes and outputs the additional dots.
JP1134296A 1989-05-26 1989-05-26 Combination method of binary image information Expired - Lifetime JP2765051B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1134296A JP2765051B2 (en) 1989-05-26 1989-05-26 Combination method of binary image information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1134296A JP2765051B2 (en) 1989-05-26 1989-05-26 Combination method of binary image information

Publications (2)

Publication Number Publication Date
JPH02311967A JPH02311967A (en) 1990-12-27
JP2765051B2 true JP2765051B2 (en) 1998-06-11

Family

ID=15124968

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1134296A Expired - Lifetime JP2765051B2 (en) 1989-05-26 1989-05-26 Combination method of binary image information

Country Status (1)

Country Link
JP (1) JP2765051B2 (en)

Also Published As

Publication number Publication date
JPH02311967A (en) 1990-12-27

Similar Documents

Publication Publication Date Title
US4707153A (en) Printer controller
JP2765051B2 (en) Combination method of binary image information
JPH01290448A (en) Character generator
JPS6330256A (en) Printer
JPH05138943A (en) Character pattern generating device for serial printer
JP2853321B2 (en) Binary image information synthesis method
JP2507399B2 (en) Database equipment
JPH0668754B2 (en) Image retrieval device
JPS61158384A (en) Character processor
JPS63257071A (en) Image magnifying/reducing method
JPH08300746A (en) Printing device
JPH0481224B2 (en)
JPS6364474A (en) Picture memory controller
JPH03278279A (en) Copying system for binary image information
JPH04199238A (en) Memory access system
JPS6398785A (en) Inverting system for binary picture information
JPH06318233A (en) Image information processor
JPH02224188A (en) Device for counting black dots of binary image information
JPH02255989A (en) Binary picture information extracting device
JPH05189521A (en) Layout pattern generating device
JPH04182751A (en) Picture memory read-out control circuit
JPH06278325A (en) Printing control device
JPS63227351A (en) Character height position control apparatus in character generating circuit
JPS63147274A (en) Data processing system
JPH0145648B2 (en)

Legal Events

Date Code Title Description
FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081207

Year of fee payment: 7

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081207

Year of fee payment: 7

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091207

Year of fee payment: 8

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091207

Year of fee payment: 8

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101207

Year of fee payment: 9

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101207

Year of fee payment: 9

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111207

Year of fee payment: 10

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111207

Year of fee payment: 10

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121207

Year of fee payment: 11

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131207

Year of fee payment: 12