JP2698382B2 - Image composition method - Google Patents

Image composition method

Info

Publication number
JP2698382B2
JP2698382B2 JP63180752A JP18075288A JP2698382B2 JP 2698382 B2 JP2698382 B2 JP 2698382B2 JP 63180752 A JP63180752 A JP 63180752A JP 18075288 A JP18075288 A JP 18075288A JP 2698382 B2 JP2698382 B2 JP 2698382B2
Authority
JP
Japan
Prior art keywords
image
pixels
dither matrix
images
small area
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 - Fee Related
Application number
JP63180752A
Other languages
Japanese (ja)
Other versions
JPH0229161A (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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP63180752A priority Critical patent/JP2698382B2/en
Publication of JPH0229161A publication Critical patent/JPH0229161A/en
Application granted granted Critical
Publication of JP2698382B2 publication Critical patent/JP2698382B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は画像合成方式に関し、特に、中間調画像を合
成する画像合成方式に関する。
Description: TECHNICAL FIELD The present invention relates to an image synthesis method, and more particularly to an image synthesis method for synthesizing a halftone image.

(従来の技術) 近時、情報化社会にあって中間調画像の処理が要求さ
れるようになり、特に、2つの中間調画像を合成して1
つの画像を作成することが要求されている。
(Prior Art) Recently, in the information-oriented society, processing of halftone images has been demanded.
It is required to create one image.

ところが、中間調画像を合成するに際し、単に2つの
画像の境界を接続するように合成したのでは、2つの画
像の境界部分が周囲の画像に比べて不自然な画像とな
り、画像全体として違和感のある画像となる。
However, if the halftone image is synthesized by simply connecting the boundaries of the two images, the boundary between the two images becomes an unnatural image compared to the surrounding images, and the image as a whole becomes uncomfortable. It becomes a certain image.

そこで、従来、合成する2つの画像のアナグロデータ
あるいは多値データをそれぞれ記憶する画像メモリを設
けるとともに、合成する2つの画像の境界部分に両画像
の重複部分を設け、該重複部分の位置に応じて所定の方
式で決定した割合いで両画像の画像データを出力して両
画像の境界をぼかすことが行われている。
Therefore, conventionally, an image memory for storing analog data or multi-valued data of two images to be combined is provided, and an overlapping portion of both images is provided at a boundary portion between the two images to be combined, and according to a position of the overlapping portion. Image data of both images is output at a ratio determined by a predetermined method to blur the boundary between the two images.

(発明が解決しようとする課題) しかしながら、このような従来の画像合成方式にあっ
ては、画像をアナグロデータあるいは多値データの段階
の画像データを合成していたため、画像データを記憶す
るために容量の大きな画像メモリを必要とし、画像合成
を行うための装置が高価なものとなっていた。
(Problems to be Solved by the Invention) However, in such a conventional image synthesizing method, an image is synthesized with image data at the stage of analog data or multi-valued data. A large-capacity image memory is required, and an apparatus for performing image synthesis is expensive.

(発明の目的) そこで、本発明は、合成する2つの画像の画像データ
を同じディザマトリックスで2値化処理し、該2つの画
像を当該ディザマトリックスが連続する位置で所定方法
で合成するとともに、該合成部分の所定領域内の白(又
は黒)画素数だけ、上記と同じディザマトリックスに従
って白(又は黒)画素を配置することにより、2値化処
理した画像データに基づいて2つの画像を自然につな
ぎ、違和感のない合成画像を作成して、画像メモリの容
量を削減し、画像合成を行う装置の価格を低減するとと
もに、合成画像の画質を向上させることを目的としてい
る。
(Objects of the Invention) Accordingly, the present invention binarizes image data of two images to be combined with the same dither matrix and combines the two images at a position where the dither matrix is continuous by a predetermined method. By arranging white (or black) pixels according to the same dither matrix as the number of white (or black) pixels in a predetermined area of the composite portion, two images can be naturally formed based on the binarized image data. It is an object of the present invention to create a composite image without a sense of incongruity, reduce the capacity of an image memory, reduce the price of a device that performs image composition, and improve the image quality of the composite image.

(発明の構成) 本発明は、上記目的を達成するため、 (1)多値データを同一のm×nのディザマトリックス
により2値化した2種類の画像を合成する画像合成方式
であって、該2種類の画像を合成するに際し、各画像の
多値データの2値化に用いたディザマトリックスの各領
域における配置が両画像の境界位置で連続する位置で合
成し、該境界部分で双方の画像を主走査方向にm画素の
所定倍、副走査方向にn画素の所定倍だけ重複させ、こ
の重複部分をm×nの小領域毎に分割し、分割した各小
領域において、重複する各画像毎に各小領域内の黒画素
数あるいは白画素数を検出し、この検出結果と、当該小
領域の前記重複部分での位置と、に基づいて当該小領域
の新しい黒画素数と白画素数を設定するとともに、前記
m×nのディザマトリックスに基づいて当該小領域内の
新しい黒画素と白画素の位置を設定することを特徴とす
るもの。
(Constitution of the Invention) The present invention provides an image synthesis method for synthesizing two types of images obtained by binarizing multi-valued data with the same m × n dither matrix to achieve the above object. In synthesizing the two types of images, the dither matrix used for binarizing the multi-valued data of each image is synthesized at a position where the arrangement in each region is continuous at the boundary position between the two images, and both images are synthesized at the boundary portion. The image is overlapped by a predetermined multiple of m pixels in the main scanning direction and by a predetermined multiple of n pixels in the sub-scanning direction, and the overlapping portion is divided into m × n small regions. The number of black pixels or white pixels in each small area is detected for each image, and the new number of black pixels and white pixels in the small area are determined based on the detection result and the position of the small area in the overlapping portion. Set the number and the m × n dither mat Which is characterized in that setting the position of the new black and white pixels in the small region on the basis of the box.

および (2)多値データを同一のm×nのディザマトリックス
により2値化した2種類の画像を合成する画像合成方式
であって、該2種類の画像を合成するに際し、各画像の
多値データの2値化に用いたディザマトリックスの各領
域における配置が両画像の境界位置で連続する位置で合
成し、該境界部分で双方の画像の画素を含み主走査方向
にm画素、副走査方向にn画素の小領域を設定し、当該
小領域内の黒画素数あるいは白画素数を検出し、該検出
した数の黒画素と白画素の新しい配置を該小領域に対応
させた前記m×nのディザマトリックスに基づいて設定
することを特徴とするものである。
And (2) an image synthesizing method for synthesizing two types of images obtained by binarizing multi-valued data using the same m × n dither matrix, and when synthesizing the two types of images, the multi-level The arrangement in each area of the dither matrix used for the binarization of data is synthesized at a position where both images are continuous at a boundary position between the two images, and m pixels in the main scanning direction including pixels of both images at the boundary portion, and sub-scanning direction A small area of n pixels is set, and the number of black pixels or white pixels in the small area is detected, and the new arrangement of the detected number of black pixels and white pixels is associated with the m × It is set based on n dither matrices.

以下、本発明の実施例に基づいて具体的に説明する。 Hereinafter, a specific description will be given based on examples of the present invention.

第1図〜第6図は請求項1記載の発明の一実施例を示
す図であり、画像処理装置に適用したものである。
FIGS. 1 to 6 show an embodiment of the first aspect of the present invention, which is applied to an image processing apparatus.

第1図は画像処理装置1の機能ブロック図であり、画
像処理装置1は、2つのディザ処理回路2、3、画像メ
モリ4、5、合成処理回路6、画像メモリ7、プリンタ
8およびディスプレイ9等を備えている。
FIG. 1 is a functional block diagram of the image processing apparatus 1. The image processing apparatus 1 includes two dither processing circuits 2, 3, image memories 4, 5, a synthesis processing circuit 6, an image memory 7, a printer 8, and a display 9. Etc. are provided.

ディザ処理回路2、3は同一のm×nのディザマトリ
ックス(例えば、第2図に示すような4×4のディザマ
トリックス)を有し、入力される多値の画像データにデ
ィザ処理を施して2値の画像データとして画像メモリ4
および画像メモリ5に出力する。ディザ処理回路2およ
びディザ処理回路3に入力される画像データはCCD(Cha
rge Coupled Device)等で原稿の画像を読み取ったアナ
グロデータを当該アナグロデータの大きさに対応する大
きさの多値データにディジタル変換したものである。
The dither processing circuits 2 and 3 have the same m × n dither matrix (for example, a 4 × 4 dither matrix as shown in FIG. 2) and perform dither processing on input multi-valued image data. Image memory 4 as binary image data
And outputs it to the image memory 5. The image data input to the dither processing circuit 2 and the dither processing circuit 3 is a CCD (Cha
The digital data is obtained by digitally converting analog data obtained by reading an image of a document using a rge coupled device or the like into multivalued data having a size corresponding to the size of the analog data.

画像メモリ4、5は合成処理回路6において画像の合
成を行うのに必要な所定容量を有し、それぞれディザ処
理回路2およびディザ処理回路3で2値化処理された画
像データを蓄える。
The image memories 4 and 5 each have a predetermined capacity necessary for performing image synthesis in the synthesis processing circuit 6, and store image data that has been binarized by the dither processing circuit 2 and the dither processing circuit 3, respectively.

合成処理回路6は画像メモリ4および画像メモリ5に
格納された画像データの画像を後述する所定の画像合成
方式に基づいて合成して画像メモリ7に出力し、合成さ
れた画像データは画像メモリ7に一旦蓄えられた後、プ
リンタ8で記録紙に記録され、また、ディスプレイ9に
表示される。
The synthesizing circuit 6 synthesizes an image of the image data stored in the image memory 4 and the image memory 5 based on a predetermined image synthesizing method to be described later and outputs the synthesized image data to the image memory 7. Is temporarily stored on a recording paper by the printer 8 and displayed on the display 9.

次に作用を説明する。 Next, the operation will be described.

いま、第3図に示すように、画像Aと画像Bを合成す
るものとして説明する。
Now, description will be made assuming that the image A and the image B are combined as shown in FIG.

画像Aの画像データA(多値データ)はディザ処理回
路2に入力され、画像Bの画像データ(多値データ)は
ディザ処理回路3に入力される。画像データAおよび画
像データBはそれぞれ画像メモリ4および画像メモリ5
で同一のディザマトリックスでディザ処理され、それぞ
2値データとして画像メモリ4および画像メモリ5に格
納される。
Image data A (multi-valued data) of image A is input to dither processing circuit 2, and image data of image B (multi-valued data) is input to dither processing circuit 3. The image data A and the image data B are stored in the image memory 4 and the image memory 5, respectively.
Are dithered by the same dither matrix, and stored in the image memory 4 and the image memory 5 as binary data.

合成処理回路6は画像メモリ4および画像メモリ5に
格納された画像データに基づいて画像Aと画像Bの合成
を行うが、このとき、第3図に示す画像Aと画像Bの境
界位置で画像データAの2値化に用いたディザマトリッ
クスと画像データBの2値化に用いたディザマトリック
スとが連続するように合成する。すなわち、画像データ
Aと画像データBとを同じディザマトリックスで2値化
処理しており、画像Aと画像Bを合成する場合その境界
位置で、例えば、第2図にZで示すように、ディザマト
リックスのディザ値が連続するように合成する。
The synthesis processing circuit 6 synthesizes the image A and the image B based on the image memory 4 and the image data stored in the image memory 5. At this time, at the boundary position between the image A and the image B shown in FIG. The dither matrix used for binarizing the data A and the dither matrix used for binarizing the image data B are synthesized so as to be continuous. That is, the image data A and the image data B are binarized using the same dither matrix. When the image A and the image B are combined, the dithering is performed at the boundary position, for example, as indicated by Z in FIG. The composition is performed so that the dither values of the matrix are continuous.

また、合成処理回路6は、画像Aと画像Bの合成を行
うに際し、第3図に示すように、画像Aと画像Bの境界
部分に画像Aと画像Bの重複部分Pを設ける。この重複
部分Pは主走査方向(第3図中x方向)に前記ディザ処
理回路2およびディザ処理回路3のディザマトリックス
の主走査方向の行数分mの所定倍(l倍)の画素数分の
幅を有し、副走査方向(第3図中y方向)に前記ディザ
処理回路2およびディザ処理回路3のディザマトリック
スの副走査方向の列数分nの所定倍(l倍)の画素数分
の幅を有している。この重複部分Pに新たな画像を設定
する。この新たな画像の設定に際し、重複部分Pをディ
ザ処理回路2およびディザ処理回路3のディザマトリッ
クスと同じm×nの画素分の小領域に区分し、該小領域
毎に該小領域内の新しい画像の黒画素数(あるいは白画
素数)を設定し、その黒画素(あるいは白画素)の該小
領域での配置を決定する。すなわち、第4図に示すよう
に、まず、小領域Spで重なるA画像の小領域分Saおよび
B画像の小領域分Sbの双方の黒画素数(あるいは白画素
数)(第4図中黒画素は斜線で表示)を検出する。次い
で、この小領域Spの合成後の画像の黒画素数(あるいは
白画素数)を該小領域Spの重複部分Pでの位置に対応し
た所定の計算式に基づいて計算する。例えば、第5図に
示すように、画像Aと画像Bが合成される場合に、重複
部分Pを有し、重複部分Pが小領域P1,P2……,Plに区分
されていると、上記小領域P1,P2,……,Plでの画像Aの
黒画素数をa、同様に画像Bの黒画素数をbとすると、
各小領域P1,P2……,Plの新しい画像の黒画素数BP1,BP2
……,BPlは次式で求められる。
When combining the image A and the image B, the combining processing circuit 6 provides an overlapping portion P of the image A and the image B at the boundary between the image A and the image B as shown in FIG. The overlapped portion P has a pixel number in the main scanning direction (x direction in FIG. 3) which is a predetermined number (l times) of the number m of rows in the main scanning direction of the dither processing circuit 2 and the dither matrix of the dither processing circuit 3. And the number of pixels in the sub-scanning direction (y direction in FIG. 3) is a predetermined number (l times) of the number n of columns of the dither processing circuit 2 and the dither matrix of the dither processing circuit 3 in the sub-scanning direction. Minute width. A new image is set in the overlapping portion P. When setting this new image, the overlapping portion P is divided into small areas of the same m × n pixels as the dither matrix of the dither processing circuit 2 and the dither processing circuit 3. The number of black pixels (or white pixels) of the image is set, and the arrangement of the black pixels (or white pixels) in the small area is determined. That is, as shown in FIG. 4, first, the small area fraction S b the number of black pixels in both the small area fraction S a and B images of the A image that overlaps a small area Sp (or the number of white pixels) (Fig. 4 (Black pixels are indicated by oblique lines). Next, the number of black pixels (or the number of white pixels) of the image after the synthesis of the small area Sp is calculated based on a predetermined calculation formula corresponding to the position of the small area Sp at the overlapping portion P. For example, as shown in FIG. 5, when the image A and the image B are combined, the image A and the image B have an overlapping portion P, and the overlapping portion P is divided into small areas P 1 , P 2 ,. .., Pl, the number of black pixels of the image A in the small area P 1 , P 2 ,...
The number of black pixels BP 1 , BP 2 of the new image in each of the small areas P 1 , P 2 ..., Pl
..., BPl is obtained by the following equation.

この式は小領域Spが合成する2つの画像、すなわち、
画像Aと画像Bのいずれに近いかによりその近い方の画
像の黒画素数に近い黒画素数を新しい画像の黒画素数と
して設定するものである。したがって、画像Aと画像B
との境界部分において黒画素数がなめらかに変化し、違
和感のない画像となる。
This equation gives the two images combined by the small area Sp, namely
Depending on which one of the images A and B is closer, the number of black pixels close to the number of black pixels of the closer image is set as the number of black pixels of the new image. Therefore, image A and image B
The number of black pixels changes smoothly at the boundary between the image and the image, and an image with no discomfort is obtained.

小領域Spにおける新しい画像の黒画素数が決定される
と、次いで、決定された数の黒画素の配置を、第4図に
示すように、前記ディザ処理回路2およびディザ処理回
路3で使用したディザマトリックスと同じディザマトリ
ックスに基づいて決定する。すなわち、ディザマトリッ
クスは、第2図および第4図に示したように、該マトリ
ックスの数だけの閾値が配置されたものであり、その閾
値の小さい画素から黒画素とし、黒画素の数が上記で決
定した数になるまでの画素を黒画素とする。例えば、第
4図の場合、決定した黒画素数が7個であると、新しい
小領域NSの画像はディザマトリックスの閾値が“1"であ
る画素位置から閾値が“7"である画素位置までを黒画素
とする画像となる。これは、通常のディザ処理におい
て、ディザマトリックスの閾値の小さい画素位置の画素
から黒画素となる可能性が高いことに対応させたもので
ある。したがって、同一のディザマトリックスでディザ
処理した画像Aおよび画像Bと違和感のない自然な画像
を得ることができる。
When the number of black pixels of the new image in the small area Sp is determined, the determined number of black pixels is then used in the dither processing circuit 2 and the dither processing circuit 3 as shown in FIG. It is determined based on the same dither matrix as the dither matrix. That is, as shown in FIGS. 2 and 4, the dither matrix has thresholds arranged by the number of the matrices. Pixels having the smaller thresholds are set as black pixels. Pixels up to the number determined by are defined as black pixels. For example, in the case of FIG. 4, if the determined number of black pixels is seven, the image of the new small area NS is from the pixel position where the threshold value of the dither matrix is “1” to the pixel position where the threshold value is “7”. Are black pixels. This corresponds to a high possibility that a pixel at a pixel position where the threshold value of the dither matrix is small becomes a black pixel in the normal dither processing. Therefore, it is possible to obtain a natural image that does not feel uncomfortable with the image A and the image B that have been dithered with the same dither matrix.

なお、新しい画像の黒画素の位置を各小領域Sp毎に形
定する場合に、各小領域Spに対応するディザマトリック
スの閾値の位置が第2図や第4図に示したような配列と
ならず、画像Aと画像Bの境界位置のディザマトリック
スの連がり状態によってはm×nの小領域で設定される
ディザマトリックスは、例えば、第6図に示すような閾
値の配置となることがある。この場合、各小領域Spにお
ける新画像の黒画素の配置は第6図に示すような当該デ
ィザマトリックスの閾値に基づいて決定する。すなわ
ち、画像の合成位置に対応したディザマトリックスと同
一の閾値配置とするのである。
In the case where the position of the black pixel of the new image is defined for each small region Sp, the position of the threshold value of the dither matrix corresponding to each small region Sp is the same as the arrangement shown in FIG. 2 or FIG. However, depending on the connection state of the dither matrix at the boundary position between the image A and the image B, the dither matrix set in the small area of m × n may have, for example, a threshold arrangement as shown in FIG. is there. In this case, the arrangement of the black pixels of the new image in each small area Sp is determined based on the threshold value of the dither matrix as shown in FIG. That is, the same threshold value arrangement as that of the dither matrix corresponding to the image combining position is used.

このように、本発明によれば、同一のディザマトリッ
クスでディザ処理した2値データを画像メモリ4、5に
格納し、2値化後の画像データに基づいて画像を合成し
ているため、画像メモリ4、5の容量を小さくすること
ができ、画像メモリ4、5の価格、ひいては画像処理装
置1の価格を低減することができる。また、画像全体と
してのディザマトリックスの配置を維持し、2つの画像
の境界においてもディザマトリックスが連続するように
合成するとともに、境界部分に画像の重複部分を設け、
該重複部分をディザマトリックスの大きさに対応させた
小領域に区分して、各小領域毎に当該小領域内のもとの
画像の黒画素数(又は白画素数)と、該小領域の位置
と、に基づいて黒画素数を決定し、決定した黒画素をも
とのディザマトリックスに基づいて再配置したため、境
界の部分が不自然とならず、全体として違和感がない画
像を得ることができる。その結果、合成画像の画質を向
上させることができる。
As described above, according to the present invention, the binary data dithered with the same dither matrix is stored in the image memories 4 and 5, and the image is synthesized based on the binarized image data. The capacity of the memories 4 and 5 can be reduced, and the price of the image memories 4 and 5 and the price of the image processing apparatus 1 can be reduced. In addition, the arrangement of the dither matrix as the entire image is maintained, the two images are combined so that the dither matrix is continuous even at the boundary, and an overlapping portion of the image is provided at the boundary,
The overlapping portion is divided into small areas corresponding to the size of the dither matrix, and for each small area, the number of black pixels (or the number of white pixels) of the original image in the small area and the Since the number of black pixels is determined based on the position and the determined black pixels and rearranged based on the original dither matrix, it is possible to obtain an image in which the boundary portion does not become unnatural and as a whole does not feel uncomfortable. it can. As a result, the quality of the synthesized image can be improved.

第7図〜第9図は請求項2記載の発明の一実施例を示
す図である。
7 to 9 show an embodiment of the second aspect of the present invention.

第7図は画像処理装置11の機能ブロック図であり、第
1図に示した実施例と同一構成部分には同一符号のみを
付してその説明を省略する。
FIG. 7 is a functional block diagram of the image processing apparatus 11, and the same components as those of the embodiment shown in FIG.

画像処理装置11はディザ処理回路2、3、画像メモリ
4、5、合成処理回路12、画像メモリ7、プリンタ8お
よびディスプレイ9等を備えている。
The image processing apparatus 11 includes dither processing circuits 2 and 3, image memories 4 and 5, a synthesis processing circuit 12, an image memory 7, a printer 8, a display 9, and the like.

合成処理回路12はディザ処理回路2、3でディザ処理
され画像メモリ4、5に格納された2つの画像データを
合成して合成画像データを画像メモリ7に出力する。合
成処理回路12は以下の方式により2つの画像の合成を行
う。すなわち、いま、第8図に示すような画像Aと画像
Bを合成する場合、合成処理回路12は、前記第1〜6図
に示した実施例と同様に画像Aと画像Bが、その境界位
置で画像Aをディザ処理するのに使用したディザマトリ
ックスの閾値配置と、画像Bをディザ処理するのに使用
したディザマトリックスの閾値配置と、が連続するよう
に合成し、両画像の境界位置において、第9図に示すよ
うに、ディザ処理回路2およびディザ処理回路3で使用
したディザマトリックスDMと同じ画素数分のm×6の小
領域SKを設定する。この小領域SKはディザマトリックス
DKの一つ分に相当するものを設定するが、境界を含み、
画像Aと画像Bの双方を含む領域を設定する。小領域SK
を設定すると、該小領域SK内の黒画素数(あるいは白画
素数)を検出し、検出した数だけの黒画素をディザ処理
回路2、3で使用したディザマトリックスDMに基づいて
当該小領域SKに新たに再配置する。このとき、ディザマ
トリックスDMの閾値の小さい方の画素から順次、黒画素
の数だけ黒画素を配置する。例えば、第9図の場合、画
像Aと画像Bの境界に設定した小領域SK中に黒画素(第
9図中斜線で表示)が5画素含まれていたとすると、当
該小領域SKに新たに再配置する黒画素の数は5画素であ
る。この新たに再配置する黒画素の配置位置はディザマ
トリックスDMの閾値の小さい方の画素位置から5画素分
までの位置(第9図中斜線で表示)である。
The synthesis processing circuit 12 synthesizes the two image data stored in the image memories 4 and 5 that have been dithered by the dither processing circuits 2 and 3 and outputs the synthesized image data to the image memory 7. The synthesis processing circuit 12 synthesizes two images by the following method. That is, when the image A and the image B as shown in FIG. 8 are to be combined, the combining processing circuit 12 sets the boundary between the image A and the image B as in the embodiment shown in FIGS. The threshold arrangement of the dither matrix used to dither the image A at the position and the threshold arrangement of the dither matrix used to dither the image B are combined so that they are continuous, and at the boundary position between the two images, as shown in FIG. 9, it sets a small region S K dither processing circuit 2 and the dither processing circuit 3 fraction same pixel as the dither matrix DM m × 6 used in. This small area SK is a dither matrix
Set the equivalent of one DK, but including the boundaries,
An area including both the image A and the image B is set. Small area S K
Setting, the small area S detects the number of black pixels (or the number of white pixels) in the K, the small region based on the dither matrix DM using black pixels by the number detected by the dither processing circuits 2 and 3 newly relocated to S K. At this time, black pixels are arranged by the number of black pixels sequentially from the pixel having the smaller threshold value of the dither matrix DM. For example, in the case of FIG. 9, if five black pixels (indicated by oblique lines in FIG. 9) are included in the small region S K set at the boundary between the image A and the image B, the small region S K The number of black pixels to be newly rearranged is five. The positions of the newly rearranged black pixels are positions from the pixel having the smaller threshold value of the dither matrix DM to five pixels (indicated by oblique lines in FIG. 9).

したがって、2値化した画像データを画像メモリ4、
5に格納し、この画像データに基づいて画像の合成を行
っているため、画像メモリ4、5の容量を小さくするこ
とができ、画像メモリ4、5ひいては画像処理装置11の
価格を低減することができる。また、合成する両画像を
ディザマトリックスの閾値配置が連続するように合成す
るとともに、境界位置に両画像をディザ処理したディザ
マトリックスの1つ分の小領域を設定し、該小領域内の
黒画素を当該小領域に対応するディザマトリックスに基
づいて再配置したため、境界部分において自然な画像と
なり、滑らかに画像が変化する。その結果、全体として
違和感のない良好な合成画像を得ることができる。
Therefore, the binarized image data is stored in the image memory 4,
5, and the image is synthesized based on the image data. Therefore, the capacity of the image memories 4 and 5 can be reduced, and the price of the image memories 4 and 5 and the image processing apparatus 11 can be reduced. Can be. In addition, the two images to be combined are combined so that the threshold arrangement of the dither matrix is continuous, and one small area of the dither matrix obtained by dithering the two images is set at the boundary position, and the black pixels in the small area are set. Has been rearranged based on the dither matrix corresponding to the small area, so that a natural image is obtained at the boundary portion, and the image changes smoothly. As a result, it is possible to obtain a good composite image without discomfort as a whole.

第10図は請求項2記載の発明の他の実施例を示す図で
ある。
FIG. 10 is a diagram showing another embodiment of the second aspect of the present invention.

本実施例は上記第7〜9図に示した実施例において、
合成する2つの画像の境界部分に設定する小領域SKの設
定方法を変更したものである。
This embodiment is different from the embodiment shown in FIGS.
Setting small regions S K to set the boundary portions of the two images to be combined is obtained by changing the.

すなわち、画像Aと画像Bの境界部分に、該境界を含
む小領域SKを設定するに際し、小領域SK内に画像Aと画
像Bの画素を略同数含む小領域SKを設定する。この小領
域SK内の黒画素数を検出し、検出した数だけの黒画素を
ディザマトリックスDMに基づいて再配置する。このと
き、小領域SKを両画像の画素数を同数含むように設定す
ると、第10図に示すように小領域SKがディザマトリック
スDMの本来の閾値配置とはずれた位置に設定されること
がある。この場合、小領域SKに黒画素を再配置するのに
用いるディザマトリックスDMは、第10図に示すように、
本来の閾値配置から小領域SKに対応してずらしたディザ
マトリックスNDMを採用する。
That is, the boundary portion of the image A and the image B, upon setting a small region S K containing boundary, sets the small region S K containing substantially the same number of pixels of the image A and image B in the small regions S K. This detects the number of black pixels in the small region S K, repositioning based black pixels of the number detected in the dither matrix DM. In this case, setting the small area S K to include equal number of pixels of both images, the small areas S K as shown in FIG. 10 is set at a position deviated from the original threshold arrangement of a dither matrix DM There is. In this case, the dither matrix DM used to reposition the black pixels in the small region S K, as shown in FIG. 10,
Employing a dither matrix NDM shifted in correspondence with the small region S K from the original threshold arrangement.

したがって、本実施例においては、境界部分を挟んで
合成される2つの画像に同じ幅に亘って小領域SKを設定
して黒画素を再配置することができ、より一層、境界部
分を自然な画像として形成することができる。その結
果、合成画像をより一層、自然で、違和感のないものと
することができ、画質をより一層向上させることができ
る。
Accordingly, in this embodiment, it is possible to reposition the black pixels set to small areas S K over the same width in the two images to be synthesized across the boundary, further, natural boundary portion It can be formed as a perfect image. As a result, the synthesized image can be made more natural and free from discomfort, and the image quality can be further improved.

(効果) 本発明によれば、2値化処理した画像データに基づい
て2つの画像を自然につなぎ、違和感のない合成画像を
作成することができる。したがって、画像メモリの容量
を削減することができ、画像合成を行う装置の価格を低
減することができるとともに、合成画像の画質を向上さ
せることができる。
(Effects) According to the present invention, it is possible to naturally connect two images based on the image data subjected to the binarization processing, and to create a combined image without a sense of discomfort. Therefore, the capacity of the image memory can be reduced, the price of the device that performs image synthesis can be reduced, and the image quality of the synthesized image can be improved.

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

第1図〜第6図は請求項1記載の発明の画像合成方式の
一実施例を示す図であり、第1図はその画像合成方式を
適用した画像処理装置の機能ブロック図、第2図はその
ディザマトリックスのフォーマット、第3図はその合成
する画像の模式図、第4図はその画像の重複部分の新画
像の設定処理の手順を示す作用説明図、第5図はその画
像の重複部分の小領域の区分割を示す模式図、第6図は
画像の重複部分の小領域に対応したディザマトリックス
のフォーマットである。 第7図〜第9図は請求項2記載の発明の画像合成方式の
一実施例を示す図であり、第7図はその画像合成方式を
適用した画像処理装置の機能ブロック図、第8図はその
合成する画像の模式図、第9図はその合成画像の境界部
分の新画像の設定処理の手順を示す作用説明図である。 第10図は請求項2記載の発明の画像合成方式の他の実施
例を示す図であり、その合成画像の境界部分の新画像の
設定処理の手順を示す作用説明図である。 1、11……画像処理装置、 2、3……ディザ処理回路、 4、5……画像メモリ、 6、12……合成処理回路、 7……画像メモリ、 Sp、Sa、Sb、SK……小領域、 P……重複部分、 DM……ディザマトリックス。
1 to 6 are diagrams showing an embodiment of the image synthesizing system according to the first aspect of the present invention. FIG. 1 is a functional block diagram of an image processing apparatus to which the image synthesizing system is applied, and FIG. Is a format of the dither matrix, FIG. 3 is a schematic diagram of an image to be synthesized, FIG. 4 is an operation explanatory view showing a procedure of setting a new image in an overlapping portion of the image, and FIG. FIG. 6 is a schematic diagram showing division of a small area of a part, and FIG. 6 shows a dither matrix format corresponding to the small area of an overlapping part of an image. 7 to 9 show an embodiment of the image synthesizing method according to the second aspect of the present invention. FIG. 7 is a functional block diagram of an image processing apparatus to which the image synthesizing method is applied. FIG. 9 is a schematic diagram of an image to be synthesized, and FIG. 9 is an operation explanatory view showing a procedure of a setting process of a new image at a boundary portion of the synthesized image. FIG. 10 is a diagram showing another embodiment of the image synthesizing method according to the second aspect of the present invention, and is an operation explanatory diagram showing a procedure for setting a new image at a boundary portion of the synthesized image. 1, 11 image processing device, 2, 3 dither processing circuit, 4, 5 image memory, 6, 12 synthesis processing circuit, 7 image memory, Sp, Sa, Sb, S K ... ... Small area, P ... Duplicate part, DM ... Dither matrix.

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】多値データを同一のm×nのディザマトリ
ックスにより2値化した2種類の画像を合成する画像合
成方式であって、該2種類の画像を合成するに際し、各
画像の多値データの2値化に用いたディザマトリックス
の各領域における配置が両画像の境界位置で連続する位
置で合成し、該境界部分で双方の画像を主走査方向にm
画素の所定倍、副走査方向にn画素の所定倍だけ重複さ
せ、この重複部分をm×nの小領域毎に分割し、分割し
た各小領域において、重複する各画像毎に各小領域内の
黒画素数あるいは白画素数を検出し、この検出結果と、
当該小領域の前記重複部分での位置と、に基づいて当該
小領域の新しい黒画素数と白画素数を設定するととも
に、前記m×nのディザマトリックスに基づいて当該小
領域内の新しい黒画素と白画素の位置を設定することを
特徴とする画像合成方式。
An image synthesizing method for synthesizing two types of images obtained by binarizing multi-valued data using the same m.times.n dither matrix. The arrangement in each area of the dither matrix used for the binarization of the value data is synthesized at a position that is continuous at a boundary position between the two images, and both images are m-scanned in the main scanning direction at the boundary portion.
A predetermined number of pixels and a predetermined number of n pixels are overlapped in the sub-scanning direction, and the overlapped portion is divided into m × n small regions. The number of black pixels or white pixels is detected, and the detection result and
A new black pixel number and a white pixel number of the small area are set based on the position of the small area in the overlapping portion, and a new black pixel in the small area is set based on the m × n dither matrix. An image synthesis method characterized by setting the positions of pixels and white pixels.
【請求項2】多値データを同一のm×nのディザマトリ
ックスにより2値化した2種類の画像を合成する画像合
成方式であって、該2種類の画像を合成するに際し、各
画像の多値データの2値化に用いたディザマトリックス
の各領域における配置が両画像の境界位置で連続する位
置で合成し、該境界部分で双方の画像の画素を含み主走
査方向にm画素、副走査方向にn画素の小領域を設定
し、当該小領域内の黒画素数あるいは白画素数を検出
し、該検出した数の黒画素と白画素の新しい配置を該小
領域に対応させた前記m×nのディザマトリックスに基
づいて設定することを特徴とする画像合成方式。
2. An image synthesizing method for synthesizing two types of images obtained by binarizing multi-valued data using the same m.times.n dither matrix. The arrangement in each area of the dither matrix used for the binarization of the value data is synthesized at a continuous position at the boundary position between the two images, and the boundary portion includes the pixels of both images, m pixels in the main scanning direction, and the sub-scanning. A small area of n pixels is set in the direction, the number of black pixels or white pixels in the small area is detected, and a new arrangement of the detected number of black pixels and white pixels is associated with the small area. An image synthesis method characterized by setting based on a × n dither matrix.
JP63180752A 1988-07-19 1988-07-19 Image composition method Expired - Fee Related JP2698382B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63180752A JP2698382B2 (en) 1988-07-19 1988-07-19 Image composition method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63180752A JP2698382B2 (en) 1988-07-19 1988-07-19 Image composition method

Publications (2)

Publication Number Publication Date
JPH0229161A JPH0229161A (en) 1990-01-31
JP2698382B2 true JP2698382B2 (en) 1998-01-19

Family

ID=16088698

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63180752A Expired - Fee Related JP2698382B2 (en) 1988-07-19 1988-07-19 Image composition method

Country Status (1)

Country Link
JP (1) JP2698382B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3582347A1 (en) * 2018-06-13 2019-12-18 ABB Schweiz AG Electrical connection assembly in an electrical switchgear

Also Published As

Publication number Publication date
JPH0229161A (en) 1990-01-31

Similar Documents

Publication Publication Date Title
JPS59156070A (en) Picture processing device
EP0351062B1 (en) Method and apparatus for generating composite images
JPS63266982A (en) Interpolating method for picture signal and picture signal processor executing it
JP2698382B2 (en) Image composition method
US7269271B2 (en) Method for digital image alteration detection and original digital image recovery
JPH01154669A (en) Picture recorder to record based on corresponding relation between picture elements
JPH0253761B2 (en)
JPH0722327B2 (en) Color image processor
JP3539552B2 (en) Image processing device
JPH0799543B2 (en) Image processing device
JPS60136478A (en) Picture processor
JPS6020680A (en) Picture processing method
JP3384688B2 (en) Image data processing device
JP2618894B2 (en) Image signal processing device
JPS6029872A (en) Method and device for picture signal processing
JPS6135073A (en) Picture processing system
JPH07177347A (en) Image processor
JP2903175B2 (en) Image processing device
JPS6135072A (en) Picture processing system
JP2007194955A (en) Image processing device
JPS63312150A (en) Binary circuit for contrast image
JPS5827493B2 (en) Method for recording a halftone image with contours faithful to the original image
JPH0292562A (en) Image processor
JPH06225122A (en) Image forming device
JPS6174454A (en) Color picture reproducing device

Legal Events

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