JP2003187244A - Image correction method - Google Patents

Image correction method

Info

Publication number
JP2003187244A
JP2003187244A JP2001385528A JP2001385528A JP2003187244A JP 2003187244 A JP2003187244 A JP 2003187244A JP 2001385528 A JP2001385528 A JP 2001385528A JP 2001385528 A JP2001385528 A JP 2001385528A JP 2003187244 A JP2003187244 A JP 2003187244A
Authority
JP
Japan
Prior art keywords
image
pixel
boundary line
correction
mask
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.)
Withdrawn
Application number
JP2001385528A
Other languages
Japanese (ja)
Inventor
Naoki Kawai
直樹 河合
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.)
Dai Nippon Printing Co Ltd
Original Assignee
Dai Nippon Printing 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 Dai Nippon Printing Co Ltd filed Critical Dai Nippon Printing Co Ltd
Priority to JP2001385528A priority Critical patent/JP2003187244A/en
Publication of JP2003187244A publication Critical patent/JP2003187244A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Image Analysis (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image correction method by which an image with high precision and joints of the same images are inconspicuous when the same images are arranged in line, without requiring the skill and manual work of a worker, with high processing efficiency and with excellent reproducibility. <P>SOLUTION: When an area required to be corrected is specified near the joints of images (indicated by bold lines), a corrected place is set as a blank pixel. When a pixel value is reset to the blank pixel P, non-blank pixels (indicated by a diagonal mesh) around the blank pixel P are defined as reference masks, comparison masks in the same shape as that of the reference masks are arranged on the images (Fig. (a)) and similarity of the areas masked by both masks is calculated. The similarity is calculated by transferring the comparison masks on the image and a pixel value of a comparison pixel Q (Fig. (c)) corresponding to a position of the comparison mask the similarity of which is maximized is provided to the blank pixel P. <P>COPYRIGHT: (C)2003,JPO

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、壁、床、天井等の建築
物内装表面、家具、建具、造作部表面等を加飾する建材
印刷物に利用される画像の作成に関し、特に繋ぎ目が目
立たないようにシームレスなエンドレス画像を作成する
ための技術に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to the creation of images used for printed building materials for decorating interior surfaces of buildings such as walls, floors and ceilings, furniture, fittings, surfaces of featured parts, etc. The present invention relates to a technique for creating a seamless endless image so as not to be conspicuous.

【0002】[0002]

【従来の技術】建材印刷物は、出版印刷物、商業用印刷
物等の汎用印刷物に比べて、長さが非常に長い(長
尺)。例えば、壁面に加飾する印刷物を考えると、建物
の床から天井までの長さは、通常2.5m程度はあり、
また部屋の端から端までの水平方向長さも、6畳間の場
合で、長辺が3.5m程度はある。したがって、建材印
刷物用の画像も、最低限その程度の長さは繋ぎ目なく連
続し、一続きとなったエンドレスな画像、すなわちエン
ドレス画像が必要となる。
2. Description of the Related Art Building material printed matter is much longer (longer) than general printed matter such as publication printed matter and commercial printed matter. For example, considering a printed material to decorate the wall surface, the length from the floor to the ceiling of the building is usually about 2.5 m,
In addition, the horizontal length from the end to the end of the room is about 3.5 m in the case of 6 tatami mats. Therefore, the images for printed materials for building materials are also required to be endless images, that is, a continuous continuous image of at least that length, that is, an endless image.

【0003】上記のような長尺の画像を印刷用版胴の1
円周以内に収めることは不可能である。そのため、1円
周分の画像の印刷方向の始端部の辺と終端部の辺とを版
胴上で接続して(繋いで)製版する。そして、印刷時に
版胴が1回転するごとに1円周分の画像が途切れること
なく繰返し印刷されることによって、任意の長さの長尺
印刷物を得ている。
The long image as described above is printed on the plate cylinder 1 for printing.
It is impossible to fit within the circumference. Therefore, the side of the start end and the side of the end of the image for one circumference in the printing direction are connected (connected) on the plate cylinder to perform plate making. Then, each time the plate cylinder makes one rotation during printing, an image for one circumference is repeatedly printed without interruption, thereby obtaining a long printed matter of an arbitrary length.

【0004】ただし、単に1円周分の画像の印刷方向の
始端部の辺と終端部の辺とを突合わせて接続したのみで
は、接続部(繋ぎ目)で画像が不連続となり、エンドレ
ス画像は得られない。版胴画像のエンドレス化のために
は、画像の繋ぎ目において、繋ぎ目を境界として両側画
像の不連続部分を連続化して、繋ぎ目を目視で認識不能
とする作業、すなわち、シームレス化が必要となる。
However, if the side of the start end and the side of the end in the printing direction of the image for one circumference are simply butted and connected, the image becomes discontinuous at the connecting portion (joint) and the endless image is obtained. Can't get In order to make the plate cylinder image endless, it is necessary to make the discontinuity of both images continuous at the seam of the image and make the seam unrecognizable, that is, seamless. Becomes

【0005】そこで、特に木目模様の場合は有効な、画
像繋ぎ目のシームレス化による版胴画像のエンドレス化
の手法として、特公昭43−2065号公報等記載のご
とく、円周上の繋ぎ目を波形、あるいはジグザグの折れ
線として、繋ぎ目自体を目立ち難い形状とし、かつ繋ぎ
目近傍領域を熟練工が手作業で加筆、脱色、染色、削除
等を行うことにより、画像の不連続を修正してシームレ
ス化することが広く行われてきた(従来技術)。
Therefore, as a method of making the plate cylinder image endless by seamlessizing the image joints, which is particularly effective in the case of a wood grain pattern, as described in Japanese Patent Publication No. 43-2065, etc. As a wavy line or zigzag broken line, the joint itself is made inconspicuous and the area near the joint is manually added, decolorized, dyed, deleted, etc. by a skilled worker to correct the discontinuity of the image and seamless Has been widely used (prior art).

【0006】又近年は、電子計算機を応用したデジタル
画像処理技術の進歩によって、原稿画像をスキャナーで
読込んでデジタルデータ化し、CRT等の表示装置上で
マウス、タブレット、カーソル等により修正箇所を指定
し、画面内の他の部分等から適当な画像をコピーして移
植する等の手法により、より作業性を向上させることが
試みられている(従来技術)。さらに、繋ぎ目のシー
ムレス化の作業を両側画像の平均化演算処理によって、
自動的に所定の式で計算することによって効率化する方
法も提案されている(従来技術)。
Further, in recent years, due to the progress of digital image processing technology applying an electronic computer, an original image is read by a scanner to be converted into digital data, and a correction portion is designated by a mouse, a tablet, a cursor or the like on a display device such as a CRT. It has been attempted to further improve workability by a technique such as copying an appropriate image from another portion of the screen or the like and transplanting the image (prior art). Furthermore, the work of making the seams seamless is performed by averaging calculation processing of both side images.
A method of improving efficiency by automatically calculating with a predetermined formula has also been proposed (prior art).

【0007】[0007]

【発明が解決しようとする課題】しかしながら、上記従
来技術においては、シームレス化は、全て熟練工の手
作業によるため、作業効率が低く、かつ近年では熟練工
の確保も困難となってきている。なおかつ、再版時に全
く同一のシームレス処理の版を再現することも困難であ
る。
However, in the above-mentioned prior art, since the seamless operation is performed manually by a skilled worker, the work efficiency is low and it has become difficult to secure a skilled worker in recent years. Moreover, it is also difficult to reproduce a completely seamless plate when reprinting.

【0008】上記従来技術においては、シームレス化
の作業にデジタル化、機械化した処理を採用することに
より、上記従来技術に比べれば、画像の繋ぎ目等の工
程については、作業の効率化は図れた。しかし、特にシ
ームレス化の作業自体は、依然として熟練工の勘と手作
業に依存する点においては、ほとんど改善にはなってい
ない。
In the above-mentioned prior art, by adopting the digitized and mechanized processing for the work of the seamless operation, the work efficiency can be improved in the steps such as the joint of the images as compared with the above-mentioned prior art. . However, the seamlessness work itself has not been improved much in that it depends on the intuition and manual work of a skilled worker.

【0009】上記従来技術では、シームレス化の作業
をもデジタル処理により自動化することによって効率化
は図られた。しかし、シームレス化が、単に両側の画像
を繋ぎ目において加算(平均化)しているため、繋ぎ目
近傍において、空間周波数の高周波成分が欠落し、画像
の微細構造ないしは先鋭度が低下する。そのため、遠く
から見ると依然として繋ぎ目が認識されてしまうという
問題点が残ることになる。
In the above-mentioned prior art, the efficiency has been improved by automating the work of making it seamless by digital processing. However, since the seamlessization simply adds (averages) the images on both sides at the joint, the high frequency component of the spatial frequency is lost near the joint, and the fine structure or sharpness of the image is reduced. Therefore, the problem remains that the joint is still recognized when viewed from a distance.

【0010】上記のような点に鑑み、本発明は、その精
度が高く繋ぎ目が目立たない画像を作成することが可能
であると共に、作業者の熟練、手作業が不要で処理効率
が高く、かつ再現性に優れた画像修正方法を提供するこ
とを課題とする。
In view of the above points, according to the present invention, it is possible to create an image with high accuracy and inconspicuous seams, and at the same time, the skill of the operator and the manual work are unnecessary, and the processing efficiency is high, Another object is to provide an image correction method having excellent reproducibility.

【0011】[0011]

【課題を解決するための手段】上記課題を解決するた
め、本発明では、同一画像を複数並べた際に、その境界
における繋ぎ目が目立たないように画像の端部付近の画
素に修正を施すにあたって、修正対象画像の端部が端部
以外に位置するように画素の位置を変更して位置変更画
像を得る位置変更段階、前記位置変更画像に対して指定
された領域内の各画素を、空白画素として設定する空白
画素設定段階、前記各空白画素の値を決定する画素値決
定段階を実行し、前記画素値決定段階として、各空白画
素について、当該空白画素を基準画素として定義し、当
該基準画素の周囲の非空白画素の存在位置を基準マスク
として決定するマスク形状決定段階、基準マスクと同形
状の比較マスクを前記位置変更画像に配置して、比較マ
スクを前記位置変更画像上で移動させながら、各位置に
おける比較マスクでマスクされた領域と基準マスクでマ
スクされた領域との類似度を算出し、類似度が最大とな
る場合の比較マスクに対応する画素を選出し、当該選出
された画素の画素値を前記基準画素の画素値として与え
る画素値付与段階を実行することにより各空白画素の値
を決定するようにしたことを特徴とする。本発明によれ
ば、作成した画像のシームレス化処理を行うにあたっ
て、修正対象画像の境界部付近に空白画素を設定し、そ
の空白画素に対して、その空白画素の周辺の画素の値と
類似する値を有する画素が周辺に存在する画素を特定
し、その画素の値を空白画素の値として与えるようにし
たので、比較的大まかな構造と比較的細かな質感の双方
を有する画像であっても、違和感無く修正を行うことが
可能となる。
In order to solve the above problems, according to the present invention, when a plurality of the same images are arranged, the pixels near the edges of the images are corrected so that the joints at the boundaries are not noticeable. At this time, a position changing step in which the position of the pixel is changed so that the end portion of the correction target image is located at a position other than the end portion, and a position changing step is performed, in which each pixel in the area designated for the position changing image is A blank pixel setting step of setting as a blank pixel, a pixel value determining step of determining the value of each blank pixel are executed, and as the pixel value determining step, for each blank pixel, the blank pixel is defined as a reference pixel, A mask shape determining step of determining the existence position of non-blank pixels around the reference pixel as a reference mask, arranging a comparison mask of the same shape as the reference mask in the position change image, and changing the position of the comparison mask. While moving on the image, calculate the similarity between the area masked by the comparison mask and the area masked by the reference mask at each position, and select the pixel corresponding to the comparison mask when the similarity is maximum. The value of each blank pixel is determined by executing a pixel value giving step of giving the pixel value of the selected pixel as the pixel value of the reference pixel. According to the present invention, in performing the seamless processing of the created image, a blank pixel is set near the boundary of the correction target image, and the blank pixel is similar to the value of the pixels around the blank pixel. Even if the image has both a relatively rough structure and a relatively fine texture, the pixels that have a value are specified in the vicinity and the value of that pixel is given as the value of the blank pixel. It becomes possible to make corrections without feeling uncomfortable.

【0012】[0012]

【発明の実施の形態】以下、図面を参照して本発明の一
実施形態について詳細に説明する。これは、本発明の方
法を、木目柄原稿を基に、輪転印刷機用の版胴を製版す
る用途に適用した場合に相当する。図1は、本発明に係
る画像修正方法の概略を示すフローチャートである。ま
ず、シームレス処理を行う対象となる原稿画像をスキャ
ナー、デジタルカメラ等を用いて入力し、AD変換して
デジタル情報化する(ステップS1)。ここでは、図2
(a)に示したような木目柄を有する原稿画像G
ORI(図中、一点鎖線の矩形で示す)を入力する。そし
て入力した原稿画像GORIの中から所望の領域を切り抜
いて、これを修正対象画像GRET(図中、実線の矩形で
示す)とする。もちろん、原稿画像GORIをそのまま修
正対象画像GRETとしても良い。なお、ここで、座標系
のY軸方向を印刷方向、すなわち版胴の円周方向とし、
修正対象画像GRETは4辺がX軸方向およびY軸方向に
平行な4角形abcdとする。
DETAILED DESCRIPTION OF THE INVENTION An embodiment of the present invention will be described in detail below with reference to the drawings. This corresponds to the case where the method of the present invention is applied to the application of making a plate cylinder for a rotary printing press based on a wood grain original. FIG. 1 is a flowchart showing an outline of an image correction method according to the present invention. First, a document image to be subjected to seamless processing is input by using a scanner, a digital camera or the like, AD-converted into digital information (step S1). Here, in FIG.
Original image G having a grain pattern as shown in (a)
Enter ORI (indicated by the dashed-dotted rectangle in the figure). Then, a desired area is cut out from the input original image G ORI , and this is used as a correction target image G RET (shown by a solid line rectangle in the drawing). Of course, the original image G ORI may be directly used as the correction target image G RET . Here, the Y-axis direction of the coordinate system is the printing direction, that is, the circumferential direction of the plate cylinder,
The correction target image G RET is a quadrangle abcd whose four sides are parallel to the X-axis direction and the Y-axis direction.

【0013】次に、入力された修正対象画像GRETの、
上下を交換する処理を行う(ステップS2)。なお、こ
こでは、便宜上、+Y軸方向を上方向、−Y軸方向を下
方向と呼称する。具体的には、図2(b)に示すように
修正対象画像GRETの上辺abおよび下辺dcと平行
(X軸と平行)であり、かつ上辺と下辺との間に位置す
る切断線efを用いて、修正対象画像GRETの上半分画
像GAと下半分画像GBとに分割し、次いで上半分画像
GAと下半分画像GBを平行移動により上下の位置をそ
っくり交換する処理を行う。ここでは、画像の繋ぎ目付
近が画像の範囲に十分に含まれるようにすることを目的
としているので、切断線efの位置(Y座標)は必ずし
も上辺abと下辺dcとの中間でなくても良い。また、
図2では修正対象画像GRETの上下を入れ替えたが、本
発明では、必ずしも画像の上下を入れ替えるのではな
く、左右を入れ替えるようにしても良い。いずれであっ
ても、画像入れ替えの方向は、画像を繋ぎ合わせる部分
に対応していれば良い。
Next, of the input correction target image G RET ,
A process of exchanging the upper and lower sides is performed (step S2). Here, for convenience, the + Y axis direction is referred to as an upward direction and the −Y axis direction is referred to as a downward direction. Specifically, as shown in FIG. 2B, a cutting line ef that is parallel to the upper side ab and the lower side dc of the correction target image G RET (parallel to the X axis) and is located between the upper side and the lower side is defined. Then, the upper half image GA and the lower half image GB of the correction target image G RET are divided, and then the upper half image GA and the lower half image GB are moved in parallel to completely exchange the upper and lower positions. Since the purpose here is to sufficiently include the vicinity of the seam of the image in the range of the image, the position (Y coordinate) of the cutting line ef is not necessarily in the middle between the upper side ab and the lower side dc. good. Also,
In FIG. 2, the upper and lower sides of the correction target image G RET are interchanged, but in the present invention, the upper and lower sides of the images may not necessarily be interchanged, but the left and right sides may be interchanged. In either case, it is sufficient that the direction of image replacement corresponds to the portion where the images are joined.

【0014】図2(b)に示したように、修正対象画像
RETの上半分画像GAと下半分画像GBを交換した上
下反転画像GREVにおいては、その上辺efおよび下辺
efはいずれも元来原稿画像ORIの同一部分であるた
め、上下反転画像GREVの上辺efと下辺efとは、円
周方向(Y軸方向)において、円筒状に接合しても繋ぎ
目は生じない。その代わり、反転画像GREVの内部に生
じた上半分画像GAの上辺abと下半分画像GBの下辺
dcとの接合した部分は、元来画像の別の部分が付合わ
されるため、不連続画像(図2(b)では年輪Nが食違
っている)となり、繋ぎ目が目立つことになる。ここ
で、入れ替えにより繋ぎ合わされた付合線ab(乃至d
c:図2(b)に点線で示す)を含むその近傍に、作業
者が修正すべき帯状領域としてGA-Bを指定する(ステ
ップS3)。具体的には、入れ替えられた画像を画面に
表示し、作業者がそれを見ながらマウス等の入力機器を
用いて、付合線ab(乃至dc)の上方の適切な位置
に、図3(a)のように上側境界線EUP(X)の設定を
行い、また付合線ab(乃至dc)よりも下方の適切な
位置に、下側境界線ELOW(X)の設定を行う。このと
き、要修正領域GA-Bは任意の形状、大きさで設定する
ことができる。なお、上側境界線EUP(X)、下側境界
線ELOW(X)は直線でも折線でも曲線でも良い。実用
的には、付合線ab(乃至dc)を中心として、それぞ
れ元の図柄・模様に含まれる好ましいパターンを有する
領域を残すようにして、要修正領域GA-Bを指定するこ
とが好ましい。
As shown in FIG. 2B, in the vertically inverted image G REV in which the upper half image GA and the lower half image GB of the correction target image G RET are exchanged, the upper side ef and the lower side ef are both original. Since it is the same part of the original image ORI , the upper side ef and the lower side ef of the vertically inverted image G REV do not form a joint even if they are joined in a cylindrical shape in the circumferential direction (Y-axis direction). Instead, the joined portion of the upper side ab of the upper half image GA and the lower side dc of the lower half image GB generated inside the reverse image G REV is joined to another portion of the original image, and thus is a discontinuous image. (The annual rings N are misaligned in FIG. 2 (b)), and the joints are conspicuous. Here, the attachment lines ab (or d) connected by the replacement
c: G AB is designated as a strip-shaped area to be corrected by the operator in the vicinity thereof including (indicated by a dotted line in FIG. 2B) (step S3). Specifically, the replaced image is displayed on the screen, and the operator uses an input device such as a mouse while looking at the image and displays the image at an appropriate position above the attachment line ab (or dc) as shown in FIG. The upper boundary line E UP (X) is set as shown in a), and the lower boundary line E LOW (X) is set at an appropriate position below the joining line ab (or dc). At this time, the area to be modified G AB can be set in any shape and size. The upper boundary line E UP (X) and the lower boundary line E LOW (X) may be straight lines, broken lines, or curved lines. Practically, it is preferable to specify the correction required area G AB by leaving the areas having the preferable patterns included in the original designs / patterns around the joining line ab (or dc).

【0015】要修正領域GA-Bとして設定された帯状領
域に存在する画素は、一旦、空白画素(未修正画素)と
なるようリセット処理された後、新たに画素値を与えら
れ、連続画像が生成される(ステップS4)。ここで空
白とは、その部分の値が無意味なものになることを示
す。具体的な処理としては、空白部分の画素の値を0と
したり、RGBの3色とは別の4番目のチャンネルを設
定し、空白画素にその旨を示すフラグを立てる等するこ
とにより行われる。このとき、空白領域が設定された反
転画像GREVの様子を図3(a)に示す。
Pixels existing in the band-shaped area set as the correction-required area G AB are once reset to be blank pixels (uncorrected pixels) and then given new pixel values to generate continuous images. (Step S4). Here, blank means that the value of the part becomes meaningless. The specific processing is performed by setting the value of the pixel in the blank portion to 0, setting the fourth channel different from the three colors of RGB, and setting a flag indicating that to the blank pixel. . At this time, the state of the reverse image G REV in which the blank area is set is shown in FIG.

【0016】ここで、このステップS4における連続画
像の生成処理について、図4に示すフローチャートを用
いて詳細に説明する。まず、空白画素の探索を行う(ス
テップS41)。この処理は、画像上部の行から下部の
行に向かって、また同一の行内については左側の画素か
ら右側の画素に向かって走査しながら順次判定してい
く。すなわち、図3(a)に示した反転画像GREVの左
上端(頂点eに接する位置)から探索が開始されること
になる。図5に付合線ab付近の拡大図を示す。図5に
おいて、中央を横切る太線が下半分画像GBと上半分画
像GAの付合線である。各マス目は画素を示し、このう
ち網掛けされた画素は値のある画素を示し、網掛けされ
ていない画素は空白として設定された画素を示してい
る。空白画素は、付合線を挟んでいることがわかるが、
これは、ステップS3における作業者の指定に基づくも
のである。図5に示した例で上の行から探索を行い、同
一の行内については、左の画素から探索を行っていく
と、「P」で示した画素が空白画素として検出されるこ
とになる。具体的な空白画素の探索処理としては、例え
ば、上述のように4番目のチャンネルに空白を示すフラ
グを立てるようにした場合は、このフラグが立っている
ものを検出すれば良いことになる。
Now, the process of generating continuous images in step S4 will be described in detail with reference to the flowchart shown in FIG. First, a blank pixel is searched (step S41). This process is performed sequentially while scanning from the upper row to the lower row of the image, and from the left pixel to the right pixel within the same row. That is, the search is started from the upper left end of the inverted image G REV shown in FIG. FIG. 5 shows an enlarged view near the joining line ab. In FIG. 5, a thick line crossing the center is a joining line of the lower half image GB and the upper half image GA. Each square represents a pixel, of which a shaded pixel represents a pixel having a value, and a non-shaded pixel represents a pixel set as a blank. It can be seen that the blank pixels are sandwiching the joining line,
This is based on the designation of the worker in step S3. If the search is performed from the upper row in the example shown in FIG. 5 and the search is performed from the left pixel in the same row, the pixel indicated by "P" is detected as a blank pixel. As a specific blank pixel search process, for example, when a flag indicating a blank is set on the fourth channel as described above, it is sufficient to detect the flag set.

【0017】続いて、この空白画素を基準画素P
(XS,YS)として定義し、基準画素P(XS,YS)の
値を決定するために必要なマスク形状を決定する(ステ
ップS42)。具体的には、図6に示すように基準画素
P(XS,YS)を中心とする5×5画素の範囲を設定
し、そのうち空白でない画素の部分にマスクを設定す
る。これを基準マスクと呼ぶことにする。図6に示す基
準画素P(XS,YS)については、斜線の網掛けで示し
たように15個の画素に渡る基準マスクが設定されるこ
とになる。
Subsequently, the blank pixel is used as a reference pixel P.
(X S, Y S) is defined as the reference pixel P (X S, Y S) to determine the mask shape necessary to determine the value of (step S42). Specifically, as shown in FIG. 6, a range of 5 × 5 pixels centering on the reference pixel P (X S , Y S ) is set, and a mask is set for the non-blank pixel portion. This is called a reference mask. For the reference pixel P (X S , Y S ) shown in FIG. 6, a reference mask extending over 15 pixels is set as shown by hatching.

【0018】基準マスクが設定されたら、基準画素P
(XS,YS)の値を決定するために、基準マスクと同形
状の比較マスクを反転画像GREV上に配置し、両マスク
によりマスクされた領域の類似度simを求める(ステッ
プS43)。このステップS43の処理は、1つの基準
画素P(XS,YS)の値を決定するために、比較マスク
を反転画像GREVの全ての画素に対応する位置に配置し
て各位置について行われる。ただし、空白画素に対応す
る位置、および比較マスクが反転画像GREV内に収まら
ない位置については比較を行わない。反転画像GREV
において、比較すべき全ての位置について類似度simを
算出したら(ステップS44)、その類似度simが最大
であった比較マスクに対応する画素Q(XR,YR)の画
素値を基準画素P(XS,YS)の画素値とする(ステッ
プS45)。
When the reference mask is set, the reference pixel P
To determine the value of (X S , Y S ), a comparison mask having the same shape as the reference mask is arranged on the inverted image G REV , and the similarity sim of the regions masked by both masks is obtained (step S43). . In the process of step S43, in order to determine the value of one reference pixel P (X S , Y S ), the comparison mask is arranged at positions corresponding to all the pixels of the inverted image G REV , and the line is set for each position. Be seen. However, no comparison is made at positions corresponding to blank pixels and positions where the comparison mask does not fit within the reverse image G REV . When the similarity sim is calculated for all positions to be compared on the inverted image G REV (step S44), the pixel of the pixel Q (X R , Y R ) corresponding to the comparison mask having the highest similarity sim. The value is set as the pixel value of the reference pixel P (X S , Y S ) (step S45).

【0019】ここで、ステップS43〜ステップS45
の処理を図面を参照して具体的に説明すると、まず図7
(a)に示すように、反転画像GREVの左上端に比較マ
スクを配置し、比較マスクでマスクされた領域と基準マ
スクでマスクされた領域との類似度simを求める。次
に、図7(b)に示すように比較マスクを1画素分右
側、すなわちY座標をそのままとして、X座標を+1増
加した位置にずらして、そのマスクされた領域と基準マ
スクでマスクされた領域との類似度simを求める。同様
にして各画素Q(XR,YR)を中心とした比較マスクに
ついて類似度simを求める処理を行っていき、比較マス
クが画像上で右端(X座標値最大)に達したら、比較マ
スクを1行下の左端(Y座標値1減少、X座標値最小)
に移動させ、そのマスクされた領域と基準マスクでマス
クされた領域との類似度simを求める。このようにし
て、画像上の空白部分を除き、比較マスクが反転画像G
REV内に収まる範囲で、全画素Q(XR,YR)に対応す
る位置について比較マスクを配置し、そのマスクされた
領域と基準マスクでマスクされた領域との類似度simを
求める。例えば、図7(c)に示すような位置に比較マ
スクを配置した場合に、そのマスクされた領域との類似
度simが最も高いと判定された場合は、比較マスクとの
位置関係が、基準マスクと基準画素Pの位置関係と同一
の位置関係となる比較画素Qの値が、基準画素Pの値と
して設定されることになる。ここで、比較画素Qの値
が、基準画素Pの値として設定されるとは、例えば、R
GBのカラー画像の場合、比較画素Qが有しているR・
G・Bのそれぞれの値を基準画素PのR・G・Bの値と
して与え、RGBの3色とは別の4番目のチャンネルに
ついて、空白部分を示すフラグを0とすることにより行
われる。
Here, steps S43 to S45
The process of FIG. 7 will be described in detail with reference to the drawings.
As shown in (a), a comparison mask is arranged at the upper left corner of the inverted image G REV , and the similarity sim between the area masked by the comparison mask and the area masked by the reference mask is obtained. Next, as shown in FIG. 7B, the comparison mask is shifted to the right by one pixel, that is, the Y coordinate is left as it is, and the X coordinate is shifted to a position where the X coordinate is increased by +1 and masked by the masked region and the reference mask. Find the similarity sim with the region. Similarly, the process of obtaining the similarity sim is performed for the comparison mask centered on each pixel Q (X R , Y R ) and when the comparison mask reaches the right end (maximum X coordinate value) on the image, the comparison mask To the left edge one line down (Y coordinate value decremented by 1, X coordinate value minimum)
To calculate the similarity sim between the masked area and the area masked by the reference mask. In this way, the comparison mask is the inverted image G except for the blank part on the image.
Comparison masks are arranged at positions corresponding to all pixels Q (X R , Y R ) within a range that falls within REV , and the similarity sim between the masked region and the region masked by the reference mask is obtained. For example, when the comparison mask is arranged at the position shown in FIG. 7C, and it is determined that the similarity sim with the masked area is the highest, the positional relationship with the comparison mask is based on the reference value. The value of the comparison pixel Q having the same positional relationship as that of the mask and the reference pixel P is set as the value of the reference pixel P. Here, setting the value of the comparison pixel Q as the value of the reference pixel P means, for example, R
In the case of a GB color image, R · that the comparison pixel Q has
This is performed by giving the respective values of G and B as the values of R, G and B of the reference pixel P, and setting the flag indicating the blank portion to 0 for the fourth channel different from the three colors of RGB.

【0020】ここで、本実施形態において、基準マスク
でマスクされた領域と、比較マスクでマスクされた領域
の類似度simを算出するための関数について説明する。
この関数としては、基準マスクのマスク位置に存在する
画素と比較マスクのマスク位置に存在する画素との類似
性を判定できるものであれば、どのようなものでも良い
が、本実施形態では、以下の〔数式1〕に示すものを利
用している。
Here, in the present embodiment, a function for calculating the similarity sim between the area masked by the reference mask and the area masked by the comparison mask will be described.
As this function, any function may be used as long as it can determine the similarity between the pixel existing at the mask position of the reference mask and the pixel existing at the mask position of the comparison mask. The formula shown in [Formula 1] is used.

【0021】〔数式1〕 Sim = 1/{Σk(VPk−VQk2} ただし、k=1〜K(マスク内参照画素数)[0021] [Equation 1] Sim = 1 / {Σ k ( V Pk -V Qk) 2} However, k = 1 to K (the number of reference pixels in the mask)

【0022】上記〔数式1〕において、Simは類似度で
あり、VPk 、VQk はそれぞれ、基準画素Pとの基準マ
スク内における位置関係、比較画素Qとの比較マスク内
における位置関係が同一である画素の画素値を示す。ま
た、Σkはk=1からKまでとしたときの総和を演算す
ることを示す。すなわち、Σk(VPk−VQk2=(V P1
−VQ12+(VP2−VQ22+…+(VPK−VQK2
なる。ここで、Kはマスク内の画素数を示しており、例
えば、図6、図7に示したような形状のマスクを利用し
た場合、K=15となる。画素値VPkと画素値VQkの差
は、モノクロ画像の場合は画素値をそのまま比較すれば
良いし、カラー画像の場合は代表色として1色を選出し
てその差分を基に算出しても良いし、2色または3色全
ての差分の二乗の総和を算出しても良い。
In the above [Formula 1], Sim is the similarity.
Yes, VPk , VQk Is a reference pixel with the reference pixel P.
Positional relationship within the mask, comparison mask with comparison pixel Q
The pixel value of a pixel having the same positional relationship in is shown. Well
ΣkCalculates the sum when k = 1 to K
Indicates that That is, Σk(VPk-VQk)2= (V P1
-VQ1)2+ (VP2-VQ2)2+ ... + (VPK-VQK)2When
Become. Here, K indicates the number of pixels in the mask.
For example, using a mask with the shape shown in FIG. 6 and FIG.
If so, K = 15. Pixel value VPkAnd pixel value VQkDifference
For a monochrome image, compare the pixel values as they are.
Good, select one color as the representative color for color images
May be calculated based on the difference, or two colors or all three colors may be calculated.
You may calculate the sum total of the square of all the differences.

【0023】また、上述した、マスク内における位置関
係が同一な画素とは、基準画素Pの座標値を(Px、P
y)、比較画素Qの座標値を(Qx、Qy)としたと
き、以下の〔数式2〕により定義される、比較マスク内
の各参照画素(Qkx、Qky)と、基準マスク内の各
参照画素(Pkx、Pky)の関係となる。
The pixel having the same positional relationship in the mask as described above means that the coordinate value of the reference pixel P is (Px, P
y), where the coordinate value of the comparison pixel Q is (Qx, Qy), each reference pixel (Qkx, Qky) in the comparison mask and each reference in the standard mask defined by the following [Formula 2]. The relationship of pixels (Pkx, Pky) is established.

【0024】〔数式2〕 Qkx = Qx+Xk Qky = Qy+Yk ただし、Xk = Pkx−Px Yk = Pky−Py[Formula 2] Qkx = Qx + Xk Qky = Qy + Yk However, Xk = Pkx-Px Yk = Pky-Py

【0025】図6に示したような基準画素Pの値が決定
したら、図8に示すように、次の空白画素Pの値を求め
るため、基準画素Pを中心とする5×5画素の範囲内に
新たな基準マスクを設定する。基準マスクが設定された
ら、この基準マスクと同形状の比較マスクを設定し、図
7に示したのと同様に画像内の全画素について基準マス
クと比較マスクの類似度Simを〔数式1〕により求め、
類似度が最大となる比較画素Qの値を基準画素Pの値と
する。このとき、図8に示したようにマスク内の画素は
13個であるので、K=13として〔数式1〕が適用さ
れることになる。
When the value of the reference pixel P as shown in FIG. 6 is determined, as shown in FIG. 8, in order to obtain the value of the next blank pixel P, a range of 5 × 5 pixels centering on the reference pixel P is obtained. Set a new reference mask inside. When the reference mask is set, a comparison mask having the same shape as this reference mask is set, and the similarity Sim between the reference mask and the comparison mask is calculated by [Equation 1] for all pixels in the image as shown in FIG. Seeking,
The value of the comparison pixel Q having the maximum similarity is set as the value of the reference pixel P. At this time, since there are 13 pixels in the mask as shown in FIG. 8, [Formula 1] is applied with K = 13.

【0026】同様にして、次々に空白画素に画素値を与
えていく。空白画素Pを中心とする5×5画素の範囲内
に元の上半分画像GAの非空白画素が含まれるようにな
ると、空白画素Pの値は、上半分画像GAの影響を受け
ることになる。例えば、図9に示すような空白画素Pの
値を決定する場合、基準マスク内には、上半分画像GA
の非空白画素7個が含まれることになる。図9に示した
ような基準マスクが設定された場合にも、図7に示した
のと同様にして、比較マスクとの類似度の算出を行った
後、空白画素Pの画素値が決定される。この場合、上半
分画像GAの非空白画素がマスク内に含まれるため、空
白画素Pの画素値に影響を与える。そのため、上半分画
像GAとの繋ぎ目が目立たなくなる。すなわち、シーム
レス化が図られることになる。反転画像GREV上の全て
の空白画素に画素値が与えられたら、画素値決定処理は
終了する(ステップS46)。
Similarly, pixel values are successively given to blank pixels. When the non-blank pixels of the original upper half image GA are included in the range of 5 × 5 pixels centered on the blank pixel P, the value of the blank pixel P is influenced by the upper half image GA. . For example, when determining the value of the blank pixel P as shown in FIG. 9, the upper half image GA is included in the reference mask.
7 non-blank pixels are included. Even when the reference mask as shown in FIG. 9 is set, the pixel value of the blank pixel P is determined after calculating the similarity with the comparison mask in the same manner as shown in FIG. It In this case, since the non-blank pixels of the upper half image GA are included in the mask, the pixel value of the blank pixel P is affected. Therefore, the joint with the upper half image GA becomes inconspicuous. That is, seamlessness is achieved. When the pixel values are given to all the blank pixels on the reverse image G REV , the pixel value determination process ends (step S46).

【0027】このようにして、ステップS4における連
続画像の生成処理が終了すると、修正後の画像は、所定
の出力手段により出力されることになる(ステップS
5)。
In this way, when the continuous image generation process in step S4 is completed, the corrected image is output by a predetermined output means (step S).
5).

【0028】本発明により画像が修正されていく様子を
図3に示す。図1のステップS41において図3(a)
に示すように空白画素が設定された反転画像GREVは、
図4のステップS45において、各空白画素に順次画素
値が与えられていく。すなわち、要修正領域GA-Bに生
成画像GGENが生成されていく。このときの画像の状態
を図3(b)に示す。さらに、空白画素に画素値を与え
ていくことにより最終的に図3(c)に示すような生成
画像GGENを含むシームレス画像が得られる。
FIG. 3 shows how the image is modified according to the present invention. In step S41 of FIG. 1, FIG.
The inverted image G REV in which blank pixels are set as shown in
In step S45 of FIG. 4, pixel values are sequentially given to the blank pixels. That is, the generated image G GEN is generated in the correction required area G AB . The state of the image at this time is shown in FIG. Furthermore, by giving pixel values to the blank pixels, a seamless image including the generated image G GEN as shown in FIG. 3C is finally obtained.

【0029】(システム構成)次に、上記画像修正方法
を実行するためのシステム構成について説明する。図1
0は、画像修正方法を実行するためのシステムの一実施
形態を示す構成図である。図10において、画像入力手
段1は、原稿画像GORIを入力する機能を有する。画像
入力手段1としては、原稿画像GORIがデジタルデータ
として既に用意されている場合は、そのデジタルデータ
を記録した電子記録媒体を読取り可能な読取り装置で実
現でき、原稿画像GORIが紙などの物理的な媒体で用意
されている場合は、スキャナ等の光学的読取り装置で実
現できる。
(System Configuration) Next, a system configuration for executing the image correction method will be described. Figure 1
0 is a block diagram showing an embodiment of a system for executing the image correction method. In FIG. 10, the image input means 1 has a function of inputting a document image G ORI . As the image inputting means 1, when the original image G ORI is already prepared as digital data, it can be realized by a reading device capable of reading an electronic recording medium on which the digital data is recorded, and the original image G ORI is a paper or the like. When prepared as a physical medium, it can be realized by an optical reading device such as a scanner.

【0030】表示手段2は、原稿画像GORI、修正対象
画像GRET、および修正対象画像GRE Tの上半分画像GA
と下半分画像GBを交換した反転画像GREVを表示する
ためのものであり、CRT、液晶等各種ディスプレイ装
置が利用できる。指示入力手段3は、表示手段2に表示
された反転画像GREVを見ながら、作業者が要修正領域
A-Bを指定するためのものであり、マウスやキーボー
ド等の入力機器により実現できる。
The display means 2 displays the upper half image GA of the original image G ORI , the correction target image G RET , and the correction target image G RE T.
It is for displaying a reverse image G REV in which the lower half image GB is exchanged, and various display devices such as a CRT and a liquid crystal can be used. The instruction input means 3 is used by the operator to designate the required correction area G AB while looking at the reverse image G REV displayed on the display means 2, and can be realized by an input device such as a mouse or a keyboard.

【0031】演算制御装置4は、画像修正方法を実現す
るためのシステムの中心的な役割を果たすものであり、
画像反転手段4a、空白画素設定手段4b、マスク形状
決定手段4c、画素値付与手段4dを有している。画像
反転手段4aは、図1のステップS2の処理を実行する
機能を有しており、本実施形態では、修正対象画像G
RETの上半分画像GAと下半分画像GBの入れ替えを行
っている。空白画素設定手段4bは、図1のステップS
41の処理を実行する機能を有しており、指示入力手段
3によって指定された範囲の画素を空白画素として設定
する。マスク形状決定手段4cは、図4のステップS4
2の処理を実行する機能を有しており、基準画素とされ
た空白画素を中心とした5×5の範囲を設定し、この範
囲内の非空白画素の位置を基準マスクのマスク形状とす
る。画素値付与手段4dは、図4のステップS43から
ステップS45の処理を実行する機能を有しており、基
準マスクでマスクされた領域と比較マスクでマスクされ
た領域の類似度が最大となる場合に、比較マスクに隣接
する比較画素Qの値を基準画素Pの値として付与する。
演算制御装置4はコンピュータのCPU、メモリで実現
され、具体的な機能である画像反転手段4a、空白画素
設定手段4b、マスク形状決定手段4c、画素値付与手
段4dは、コンピュータに搭載された専用のソフトウェ
アプログラムにより実現される。
The arithmetic and control unit 4 realizes the image correction method.
It plays a central role in the system for
Image inversion means 4a, blank pixel setting means 4b, mask shape
It has a determining means 4c and a pixel value giving means 4d. image
The inverting means 4a executes the process of step S2 in FIG.
It has a function, and in the present embodiment, the correction target image G
RETSwap the upper half image GA and the lower half image GB
ing. The blank pixel setting means 4b uses the step S of FIG.
41 has a function of executing the processing of 41 and has an instruction input means.
Set the pixels in the range specified by 3 as blank pixels
To do. The mask shape determining means 4c uses step S4 of FIG.
It has a function to execute the process of 2 and is used as a reference pixel.
Set a 5 × 5 range centered on the blank pixels
The position of the non-blank pixel in the box is set as the mask shape of the reference mask.
It The pixel value giving means 4d starts from step S43 of FIG.
It has a function to execute the process of step S45, and
Areas masked with the quasi-mask and masked with the comparison mask
Adjacent to the comparison mask when the similarity of the
The value of the comparison pixel Q to be applied is given as the value of the reference pixel P.
The arithmetic and control unit 4 is realized by the CPU and memory of the computer.
Image inversion means 4a, which is a specific function, and blank pixels
Setting means 4b, mask shape determining means 4c, pixel value assigning hand
Step 4d is dedicated software installed in the computer.
It is realized by a program.

【0032】画像出力手段5は、修正されることにより
シームレス化された画像を出力するための手段であり、
ハードディスク等の外部記憶装置、携帯可能な電子記録
媒体への記録装置、さらにネットワークを介して遠隔地
へ送信するための通信装置等が適用可能である。
The image output means 5 is means for outputting an image which is made seamless by being modified,
An external storage device such as a hard disk, a recording device for a portable electronic recording medium, and a communication device for transmitting to a remote place via a network are applicable.

【0033】[0033]

【発明の効果】以上、説明したように本発明によれば、
同一画像を複数並べた際に、その境界における繋ぎ目が
目立たないように画像の端部付近の画素に修正を施すに
あたって、修正対象画像の端部が端部以外に位置するよ
うに画素の位置を変更して位置変更画像を得て、この位
置変更画像に対して指定された領域内の各画素を空白画
素として設定し、各空白画素の値を決定し、この画素の
決定を、各空白画素について、当該空白画素を基準画素
として定義し、当該基準画素の周囲の非空白画素の存在
位置を基準マスクとして決定し、基準マスクと同形状の
比較マスクを位置変更画像に配置して、比較マスクを位
置変更画像上で移動させながら、各位置における比較マ
スクでマスクされた領域と基準マスクでマスクされた領
域との類似度を算出し、類似度が最大となる場合の比較
マスクに対応する画素を選出し、選出された画素の画素
値を前記基準画素の画素値として与えることにより各空
白画素の値を決定するようにしたので、比較的大まかな
構造と比較的細かな質感の双方を有する画像であって
も、違和感無く修正を行うことが可能となるという効果
を奏する。
As described above, according to the present invention,
When arranging the same image more than once, when correcting pixels near the edge of the image so that the joints at the boundary are not noticeable, the pixel position so that the edge of the image to be corrected is located outside the edge To obtain the position-changed image, set each pixel in the area specified for this position-changed image as a blank pixel, determine the value of each blank pixel, and determine this pixel for each blank For a pixel, the blank pixel is defined as a reference pixel, the positions where non-blank pixels around the reference pixel are present are determined as a reference mask, and a comparison mask having the same shape as the reference mask is placed in the position-changed image for comparison. While moving the mask on the position-changed image, the similarity between the area masked by the comparison mask and the area masked by the reference mask at each position is calculated, which corresponds to the comparison mask when the similarity becomes maximum. Since the value of each blank pixel is determined by selecting a pixel and giving the pixel value of the selected pixel as the pixel value of the reference pixel, both a relatively rough structure and a relatively fine texture can be obtained. Even if the image is included, it is possible to correct the image without feeling uncomfortable.

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

【図1】本発明に係る画像修正方法のフローチャートで
ある。
FIG. 1 is a flowchart of an image correction method according to the present invention.

【図2】原稿画像GORI、修正対象画像GRET、上下反転
画像GREVの関係を示す図である。
FIG. 2 is a diagram showing a relationship among a document image G ORI , a correction target image G RET , and a vertically inverted image G REV .

【図3】要修正領域GA-Bに生成画像GGENが生成される
ことにより画像が修正されていく様子を示す図である。
FIG. 3 is a diagram showing how an image is corrected by generating a generated image G GEN in a correction required area G AB .

【図4】図1のステップS4における処理の詳細を示す
フローチャートである。
FIG. 4 is a flowchart showing details of processing in step S4 of FIG.

【図5】空白画素が設定された際の付合線付近の拡大図
である。
FIG. 5 is an enlarged view of the vicinity of a joining line when a blank pixel is set.

【図6】マスク形状の決定の様子を示す図である。FIG. 6 is a diagram showing how a mask shape is determined.

【図7】類似度算出のための比較マスクの移動の様子を
示す図である。
FIG. 7 is a diagram showing how a comparison mask is moved to calculate a degree of similarity.

【図8】隣接する空白画素のマスク形状の決定の様子を
示す図である。
FIG. 8 is a diagram showing how mask shapes of adjacent blank pixels are determined.

【図9】修正対象画像GRETの上半分画像GAの非空白
画素を含む場合のマスク形状の決定の様子を示す図であ
る。
FIG. 9 is a diagram showing how a mask shape is determined when non-blank pixels of the upper half image GA of the correction target image G RET are included.

【図10】本発明に係る画像修正方法を実現するシステ
ムの構成を示す図である。
FIG. 10 is a diagram showing a configuration of a system that realizes an image correction method according to the present invention.

【符号の説明】[Explanation of symbols]

1・・・画像入力手段 2・・・表示手段 3・・・指示入力手段 4・・・演算制御装置 4a・・・画像反転手段 4b・・・空白画素設定手段 4c・・・マスク形状決定手段 4b・・・画素値付与手段 5・・・画像出力手段 1. Image input means 2 ... Display means 3 ... Instruction input means 4 ... Arithmetic control device 4a ... Image reversing means 4b: blank pixel setting means 4c ... Mask shape determining means 4b ... Pixel value providing means 5: Image output means

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】原稿画像GORIを入力し、入力した原稿画
像の中から、4角形形状の修正対象画像GRETを指定す
る画像入力段階と、 修正対象画像GRETの4辺と平行にX軸およびY軸をも
つXY座標系とし、+Y方向を上方向、−Y方向を下方
向、および当該修正対象画像GRETをなす4角形の頂点
を左上から順に時計廻りにa,b,c,dとしたとき
に、 修正対象画像GRETをその上端部の境界線をなす上辺a
bと下端部の境界線をなす下辺cdとの中間部に位置
し、しかもこれらと平行な切断線efによって、上半分
画像GAと下半分画像GBとに2分し、 上半分画像GAと下半分画像GBを平行移動により上下
位置を交換させ、かつ下半分画像GBの下端部dcと上
半分画像GAの上端部abとが一致するように接合して
反転画像GREVを得る画像反転段階と、 前記反転画像GREVにおいて、上端部abおよび下端部
dcとが付合わせられた付合線よりも上方部に上側境界
線EUP(X)を、また付合線よりも下方部に下側境界線
LOW(X)を設定し、次いで上側境界線EUP(X)と
下側境界線ELOW(X)との間を帯状の要修正領域GA-B
とする要修正領域指定段階と、 前記要修正領域GA-B内の画素を順次走査しつつ、画素
値の決定処理を順次行って、前記要修正領域GA-B内に
おいて下半分画像GBから上半分画像GAにかけて画像
が連続的に接続されるような生成画像GGENを生成する
連続画像生成段階を有し、 前記連続画像生成段階は、(a)要修正領域GA-B内の未修
正画素P(XS,YS)を1つ固定する、(b)上半分画像
GAの下側境界線ELOW(X)よりも下方領域内および
下半分画像GBの上側境界線EUP(X)よりも上方領域
内の全画素Q(XR,YR)を走査し、画素P(XS
S)と画素Q(XR,YR)との類似度sim{(XS
S)、(XR,YR)}を全画素Q(XR,YR)につい
て計算し、(c)類似度sim{(XS,YS)、(XR
R)}が最大であった画素Q(XR,YR)の画素値を
画素P(XS,YS)の画素値に置換する、(d)もし、全
未修正画素P(XS,YS)について、上記(a)〜(c)まで
の処理が終了している場合は処理を終了し、また上記
(a)〜(c)までの処理が終了していない未修正画素P(X
S,YS)が残っている場合は、別の未修正画素P
(XS,YS)を選択した上で(a)の処理に戻る、 という前記(a)〜(d)の処理により実行されるものである
ことを特徴とする画像修正方法。
1. An image input step of inputting a document image G ORI and designating a correction target image G RET having a rectangular shape from the input document image, and X in parallel with four sides of the correction target image G RET. With an XY coordinate system having axes and a Y-axis, the + Y direction is upward, the -Y direction is downward, and the vertices of the quadrangle forming the correction target image G RET are sequentially turned clockwise from the upper left in the order of a, b, c ,. When the correction target image G RET is defined as d, the upper side a that forms the boundary line of the upper end portion
It is located at an intermediate portion between b and the lower side cd which forms a boundary line between the lower end portion and the parallel with the cutting line ef and is divided into an upper half image GA and a lower half image GB by an upper half image GA and a lower half image GA. An image inversion step in which the upper and lower positions of the half image GB are exchanged by parallel movement and the lower end dc of the lower half image GB and the upper end ab of the upper half image GA are joined so as to obtain an inverted image G REV. In the reverse image G REV , the upper boundary line E UP (X) is located above the joining line where the upper end ab and the lower end dc are joined together, and below the joining line below the joining line. A boundary line E LOW (X) is set, and then a strip-shaped correction area G AB is provided between the upper boundary line E UP (X) and the lower boundary line E LOW (X).
A main correction area specifying step to the while sequentially scanning the pixels of the correction required in the region G AB, sequentially performs determination processing of the pixel value, the upper half image from the lower half image GB in the correction required area G AB has a continuous image generation step of image toward GA to produce a product image G GEN as continuously connected, the continuous image generation step, (a) unmodified pixel P (X of the principal modified region G AB S, Y S) to the fixed one 1, (b) on the lower border E LOW (X) above the lower region than in and a lower half image GB upper boundary line E UP (X) of half images GA All pixels Q (X R , Y R ) in the area are scanned, and pixels P (X S ,
Y s ) and the pixel Q (X R , Y R ) similarity sim {(X S ,
Y S ), (X R , Y R )} is calculated for all pixels Q (X R , Y R ), and (c) similarity sim {(X S , Y S ), (X R ,
Y R )} is the maximum, and the pixel value of the pixel Q (X R , Y R ) is replaced with the pixel value of the pixel P (X S , Y S ). (D) If all uncorrected pixels P (X S , Y S ), if the above processes (a) to (c) are completed, the process is terminated, and
Uncorrected pixel P (X
S , Y S ) remains, another uncorrected pixel P
An image correction method, which is executed by the processes of (a) to (d), in which (X S , Y S ) is selected and the process returns to the process of (a).
【請求項2】前記連続画像生成段階における類似度の計
算は、基準画素Pの周囲に正方形状の領域を設定して当
該正方形領域に含まれる非空白画素の存在位置を基準マ
スクとし、比較画素Qの周囲に正方形状の領域を設定し
て当該正方形領域に含まれる非空白画素の存在位置を比
較マスクとし、基準マスクと比較マスクでマスクされた
領域の類似度を求めることにより行うものであることを
特徴とする請求項1に記載の画像修正方法。
2. The calculation of the degree of similarity in the step of generating continuous images is performed by setting a square area around the reference pixel P and using a non-blank pixel existing position included in the square area as a reference mask. This is performed by setting a square area around Q, setting the existence position of the non-blank pixels included in the square area as a comparison mask, and obtaining the similarity between the reference mask and the area masked by the comparison mask. The image correction method according to claim 1, wherein:
【請求項3】コンピュータに、 原稿画像GORIを入力し、入力した原稿画像の中から、
4角形形状の修正対象画像GRETを指定する画像入力段
階、 修正対象画像GRETの4辺と平行にX軸およびY軸をも
つXY座標系とし、+Y方向を上方向、−Y方向を下方
向、および当該修正対象画像GRETをなす4角形の頂点
を左上から順に時計廻りにa,b,c,dとしたとき
に、修正対象画像GRETをその上端部の境界線をなす上
辺abと下端部の境界線をなす下辺cdとの中間部に位
置し、しかもこれらと平行な切断線efによって、上半
分画像GAと下半分画像GBとに2分し、上半分画像G
Aと下半分画像GBを平行移動により上下位置を交換さ
せ、かつ下半分画像GBの下端部cdと上半分画像GA
の上端部abとが一致するように接合して反転画像G
REVを得る画像反転段階と、 前記反転画像GREVにおいて、上端部abおよび下端部
cd付合わせられた付合線よりも上方部に上側境界線E
UP(X)を、また付合線よりも下方部に下側境界線E
LOW(X)を設定し、次いで上側境界線EUP(X)と下
側境界線ELOW(X)との間を帯状の要修正領域GA-B
する要修正領域指定段階、 前記要修正領域GA-B内の画素を順次走査しつつ、画素
値の決定処理を順次行って、前記要修正領域GA-B内に
おいて下半分画像GBから上半分画像GAにかけて画像
が連続的に接続されるような生成画像GGENを生成する
連続画像生成段階を実行させるためのプログラム。
3. An original image G ORI is input to a computer, and from the input original images,
An image input step of designating a correction target image G RET having a rectangular shape, an XY coordinate system having an X axis and a Y axis in parallel with four sides of the correction target image G RET , + Y direction is an upward direction, and −Y direction is a downward direction. When the directions and the vertices of the quadrangle forming the correction target image G RET are sequentially set to a, b, c, and d in the clockwise direction from the upper left, the correction target image G RET has an upper side ab that forms a boundary line of its upper end portion. And a lower side cd forming a boundary line between the lower end and the lower end, and a cutting line ef parallel to the lower side cd divides the image into an upper half image GA and a lower half image GB, and an upper half image G.
A and the lower half image GB are moved in parallel to exchange the upper and lower positions, and the lower end cd of the lower half image GB and the upper half image GA are
The reverse image G is joined so that the upper end ab of the
In the image inversion step of obtaining REV , in the inverted image G REV , the upper boundary line E is located above the joining line where the upper end portion ab and the lower end portion cd are attached.
UP (X) and lower boundary line E below the joining line
LOW (X) is set, and then a correction-required region specifying step in which a strip-like correction-required region G AB is defined between the upper boundary line E UP (X) and the lower boundary line E LOW (X), Generating such that the pixel value determination process is sequentially performed while sequentially scanning the pixels in G AB , and the images from the lower half image GB to the upper half image GA are continuously connected in the correction required region G AB . A program for performing successive image generation steps for generating an image G GEN .
JP2001385528A 2001-12-19 2001-12-19 Image correction method Withdrawn JP2003187244A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001385528A JP2003187244A (en) 2001-12-19 2001-12-19 Image correction method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001385528A JP2003187244A (en) 2001-12-19 2001-12-19 Image correction method

Publications (1)

Publication Number Publication Date
JP2003187244A true JP2003187244A (en) 2003-07-04

Family

ID=27594917

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001385528A Withdrawn JP2003187244A (en) 2001-12-19 2001-12-19 Image correction method

Country Status (1)

Country Link
JP (1) JP2003187244A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013115591A (en) * 2011-11-28 2013-06-10 Sharp Corp Image processing method, image processing apparatus and image forming apparatus provided therewith, image reading apparatus, program, and recording medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013115591A (en) * 2011-11-28 2013-06-10 Sharp Corp Image processing method, image processing apparatus and image forming apparatus provided therewith, image reading apparatus, program, and recording medium

Similar Documents

Publication Publication Date Title
JP4184703B2 (en) Image correction method and system
EP0179373B1 (en) Method of processing picture data for printing process
JP2004334843A (en) Method of composting image from two or more images
JP2001124522A (en) Crack evaluator using image processing
JP4143549B2 (en) Image processing apparatus and method, computer program, and computer-readable storage medium
JPH06138636A (en) Method and device for plate making of endless pattern
JP2003187244A (en) Image correction method
JP2001052152A (en) Method and device for composing image, and storage medium
JP3935768B2 (en) Image composition method and system
JP2005084089A (en) Image comparison display method and its device, and image comparison display program
JPH11345313A (en) Picture processor and picture processing method
JPH11144037A (en) Image layout method, system therefor and manufacture of printed matter
JP4184704B2 (en) Image correction method and system
JP4202661B2 (en) Image creation method
JP4006056B2 (en) Image composition apparatus, image composition method, and storage medium
JP2003023536A (en) Image correcting method and system thereof
JP2000307848A (en) Image processor, method therefor and storage medium thereof
JP2000276584A (en) Method and device for image processing, and storage medium
JPH0554151B2 (en)
JPH0865519A (en) Method for correcting defect of picture and device therefor
JP3026093B2 (en) Image correction method and apparatus
JP2000242765A (en) Method and device for preparing image
JP2003030669A (en) Image preparation method and system
JP2000276606A (en) Image preparation device
JPS61228583A (en) Processing system for variable density picture

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20050301