JP2003023536A - Image correcting method and system thereof - Google Patents

Image correcting method and system thereof

Info

Publication number
JP2003023536A
JP2003023536A JP2001206172A JP2001206172A JP2003023536A JP 2003023536 A JP2003023536 A JP 2003023536A JP 2001206172 A JP2001206172 A JP 2001206172A JP 2001206172 A JP2001206172 A JP 2001206172A JP 2003023536 A JP2003023536 A JP 2003023536A
Authority
JP
Japan
Prior art keywords
mask
image
pixel
original image
reduced
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
JP2001206172A
Other languages
Japanese (ja)
Inventor
Tomotaka Noda
智孝 野田
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 JP2001206172A priority Critical patent/JP2003023536A/en
Publication of JP2003023536A publication Critical patent/JP2003023536A/en
Withdrawn legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide an image correcting method and system, capable of removing any pattern deviation generated in a pattern image by reproducing the texture of an image itself at the part causing the pattern deviation. SOLUTION: At designation of a region to be corrected on an original image, and deciding each pixel in the designated region to be corrected; a mask in a prescribed shape is arranged on a reduced correction image region, corresponding to the region to be corrected (a), and masks in the same shape as that of the mask are arranged on the reduced original images (b-e). While the position of the mask on the reduced correction image region is fixed, the masks on the reduced original images are moved by one pixel each, the similarity of the region masked on the reduced correction image region and the regions masked on the reduced original images is calculated, the pixels, having the same position relation with the mask on the reduced original image (e) whose similarity, is decided to be the highest as a position relation between the mask on the reduced correction image region, and the pixels to be decided are assigned as pixels on the reduced correction image region.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、建材印刷に用いる画像
上に生じた柄癖等、特定部分の画像を修正するための技
術に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a technique for correcting an image of a specific portion such as a pattern habit generated on an image used for printing a building material.

【0002】[0002]

【従来の技術】従来より、建材製品等の表面を装飾する
ものとして様々な模様画像が用いられている。このよう
な模様画像は、撮影した画像を修正して作成したり、コ
ンピュータの演算により人工的に作成したりすることに
より得られている。このようにして作成した模様画像に
は、繰り返して配置することにより、しばしば柄癖と呼
ばれる意図しない模様が生じ、模様画像の美観を損ねる
場合がある。
2. Description of the Related Art Conventionally, various pattern images have been used to decorate the surface of building materials and the like. Such a pattern image is obtained by correcting a photographed image and creating it or artificially creating it by a computer operation. By repeatedly arranging the pattern image thus created, an unintended pattern often called a pattern habit is generated, which may impair the aesthetic appearance of the pattern image.

【0003】上記のような柄癖が生じた場合、従来は、
市販されている画像処理ソフトウェアを用いて、オペレ
ータが直接レタッチ作業を行っていた。また、コンピュ
ータのソフトウェアを用いて自動的に柄癖を除去する手
法もいくつか提案されている。
When the above-mentioned pattern habit is generated, conventionally,
The operator directly performed retouching work using commercially available image processing software. In addition, some methods for automatically removing the pattern habit using computer software have been proposed.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、上記従
来の柄癖除去手法では、オペレータがレタッチ作業を行
う場合には、オペレータの主観に基づいて行われるた
め、修正された部分により画像全体の質感を壊してしま
う場合がある。また、コンピュータで自動的に行う手法
についても、満足のいく効果が得られていないのが現状
である。
However, in the above-described conventional pattern habit removing method, when the operator performs retouching work, it is performed based on the subjectivity of the operator. Therefore, the texture of the entire image is corrected by the corrected portion. It may break. In addition, the present condition is that the method automatically performed by a computer has not been satisfactory.

【0005】上記のような点に鑑み、本発明は、模様画
像において柄癖が生じた場合に、その画像自身の質感
を、柄癖の原因となっている部分に再現することにより
柄癖を除去する画像修正方法およびシステムを提供する
ことを課題とする。
In view of the above points, in the present invention, when a pattern habit is generated in a pattern image, the texture of the image itself is reproduced in a portion which causes the pattern habit, thereby creating the pattern habit. An object is to provide an image correction method and system for removing.

【0006】[0006]

【課題を解決するための手段】上記課題を解決するた
め、本発明では、修正を行う箇所を有する原画像を入力
し、入力された原画像上において修正対象領域を指定
し、指定された修正対象領域の各画素を決定するが、こ
の修正対象領域の各画素の決定は、修正対象領域上に所
定の形状のマスクを配置し、当該マスクと同形状のマス
クを原画像上に配置し、修正対象領域上のマスクの位置
は固定したまま、原画像上のマスクを1画素分ずつ移動
させながら、修正対象領域上でマスクされた領域と原画
像上でマスクされた領域の類似度を求め、この類似度が
最も高いと判定される原画像上のマスクとの位置関係
が、修正対象領域上におけるマスクと決定すべき画素と
の位置関係と同一となる位置関係にある画素を、修正対
象領域上の画素として割り当てるものであり、修正対象
領域上に配置するマスクが修正対象領域からはみ出す部
分については、原画像上の画素を利用することにより行
うようにしたことを特徴とする。本発明によれば、指定
された修正対象領域上と、原画像上の修正領域以外の部
分でマスクされた領域の類似度を求めることにより、原
画像上の画素を修正対象領域に割り当てるようにし、特
に、修正対象領域上に配置するマスクが修正対象領域か
らはみ出す際には、原画像上の画素をそのまま利用する
ようにしたので、修正対象領域が原画像の特徴を有した
状態で新たに作成され、修正対象領域の繋ぎ目部分も目
立たなくなる。
In order to solve the above problems, in the present invention, an original image having a portion to be corrected is input, a correction target area is designated on the input original image, and the designated correction is performed. Each pixel of the target area is determined. To determine each pixel of the correction target area, a mask having a predetermined shape is arranged on the correction target area, and a mask having the same shape as the mask is arranged on the original image. While the position of the mask on the correction target area is fixed, the degree of similarity between the masked area on the correction target area and the masked area on the original image is obtained by moving the mask on the original image pixel by pixel. , The pixel whose positional relationship with the mask on the original image determined to have the highest degree of similarity is the same as the positional relationship between the mask and the pixel to be determined on the correction target area, Divided as pixels on the area It is those shed, portions masks placed on the correction object region protrudes from the correction target region, characterized in that to perform by using the pixel on the original image. According to the present invention, the pixel on the original image is assigned to the correction target area by obtaining the similarity between the specified correction target area and the area masked by the portion other than the correction area on the original image. , In particular, when the mask to be placed on the correction target area extends out of the correction target area, the pixels on the original image are used as they are, so that the correction target area is newly added with the characteristics of the original image. It is created, and the joint part of the correction target area becomes inconspicuous.

【0007】[0007]

【発明の実施の形態】以下、図面を参照して本発明の実
施形態について詳細に説明する。図1は、本発明に係る
画像修正方法の概略を示すフローチャートである。ま
ず、その一部に柄癖等の修正すべき箇所が生じた原画像
を入力して、ディスプレイ装置の画面に表示させ、柄癖
が生じている修正対象領域を指定する(ステップS
1)。このときの状態を図2(a)に示す。図2(a)
において、sx,syはそれぞれ修正対象領域の横方
向、縦方向の画素数である。
DETAILED DESCRIPTION OF THE INVENTION Embodiments of the present invention will be described in detail below with reference to the drawings. FIG. 1 is a flowchart showing an outline of an image correction method according to the present invention. First, an original image in which a portion to be corrected such as a pattern habit is generated is displayed on the screen of the display device, and a correction target area in which the pattern habit is generated is designated (step S).
1). The state at this time is shown in FIG. Figure 2 (a)
In the above, sx and sy are the numbers of pixels in the horizontal and vertical directions of the correction target area, respectively.

【0008】次に、指定された修正対象領域について、
解像度を落とす率である解像度削減率を設定する(ステ
ップS2)。ここで設定される解像度削減率は、元の画
像の何画素を1画素に落とすかを設定するものである。
これは、画素数を減らすことにより、演算量を削減する
ことを主な目的として行う。
Next, regarding the designated correction target area,
A resolution reduction rate, which is a rate at which the resolution is reduced, is set (step S2). The resolution reduction rate set here sets how many pixels of the original image are dropped to one pixel.
This is done mainly for the purpose of reducing the calculation amount by reducing the number of pixels.

【0009】次に、設定された解像度削減率により原画
像の解像度を落とした縮小原画像を作成する(ステップ
S3)。縮小原画像は、解像度削減率をrとしたとき
に、原画像上の横r×縦r個の画素の平均値を、縮小原
画像の1画素の画素値として与えることにより作成され
る。このとき、縮小原画像の各画素は与えられた平均値
と共に、その画素が原画像のどのr×r個の画素を元に
得られたものであるかを記録しておく。これは、後に元
のサイズに復元する際に利用される。
Next, a reduced original image in which the resolution of the original image is reduced is created at the set resolution reduction rate (step S3). The reduced original image is created by giving an average value of horizontal r × vertical r pixels on the original image as a pixel value of one pixel of the reduced original image, where r is the resolution reduction rate. At this time, each pixel of the reduced original image is recorded together with the given average value, and which r × r pixels of the original image the pixel was obtained from are recorded. This is used later when restoring to the original size.

【0010】続いて、上記ステップS1において指定さ
れた修正対象領域の画像サイズ(画素数)を、上記ステ
ップS2において設定された解像度削減率を用いて削減
した縮小修正画像領域のサイズを求め、この縮小修正画
像領域の上下左右に2画素分ずつ加えたサイズの領域を
画像メモリ等の作業記憶領域に確保する(ステップS
4)。ここで、上記解像度削減率rを用いると、図3
(a)に示した縮小修正画像領域の横方向rx、縦方向
ryは、以下の〔数式1〕により算出される。
Then, the size of the reduced corrected image area obtained by reducing the image size (the number of pixels) of the area to be corrected specified in step S1 by using the resolution reduction rate set in step S2 is obtained. An area having a size obtained by adding two pixels to the upper, lower, left, and right sides of the reduced correction image area is secured in a working storage area such as an image memory (step S
4). Here, if the resolution reduction rate r is used, FIG.
The horizontal direction rx and the vertical direction ry of the reduced corrected image area shown in (a) are calculated by the following [Formula 1].

【0011】〔数式1〕 rx = sx / r ry = sy / r[Formula 1] rx = sx / r ry = sy / r

【0012】これを基に図3(b)に網掛けで示した上
下左右2画素分ずつを加えると、画像メモリの作業領域
には、横(rx+4)×縦(ry+4)画素分が確保さ
れることになる。
Based on this, by adding two pixels in the upper, lower, left and right shaded in FIG. 3B, horizontal (rx + 4) × vertical (ry + 4) pixels are secured in the work area of the image memory. Will be.

【0013】次に、図3(b)に示したような縮小修正
画像領域の周りに付加された領域に、原画像の対応する
部分の画素値を与える(ステップS5)。具体的には、
図2(b)に網掛けで示したような、縮小原画像上の修
正対象領域の上下左右の2個分の画素を利用する。すな
わち、図2(b)に網掛けで示した部分の画素を複製す
ることにより、図3(b)に網掛けで示した部分の画素
に値を与えるのである。
Next, the pixel value of the corresponding portion of the original image is given to the area added around the reduced corrected image area as shown in FIG. 3B (step S5). In particular,
Two pixels in the upper, lower, left, and right of the correction target area on the reduced original image as shown by hatching in FIG. 2B are used. That is, by duplicating the pixels in the shaded area in FIG. 2B, values are given to the pixels in the shaded area in FIG. 3B.

【0014】縮小修正画像領域の上下左右の2画素分の
領域の画素値が決定したら、次に、縮小修正画像領域の
各画素の値を決定していくことにより、縮小修正画像を
作成する(ステップS6)。縮小修正画像において画素
値を決定すべき順序としては、色々考えられるが、本実
施形態では、図4(a)に斜線で示した左上端の画素か
ら決定していくことにする。左上端の画素を決定するた
めには、そのさらに左上に示したようなマスクを利用す
る。具体的には、このマスクと同形状のマスクを縮小原
画像の修正対象領域以外の全ての画素に対応する位置に
配置し、その類似度を求める。類似度が最も高いと判定
された縮小原画像上のマスクに対応する位置の画素を、
図4(a)に示した左上端の画素として割り当てる。縮
小原画像上のマスクとしては、まず図4(b)に示す位
置に配置し、そのマスクされた領域と図4(a)に示し
たマスクされた領域との類似度を求める。次に、図4
(c)に示すように1画素分マスクを右側にずらして、
そのマスクされた領域と図4(a)に示したマスクされ
た領域との類似度を求める。同様にして各画素位置につ
いて類似度を求める処理を行っていき、マスクが縮小原
画像上で右端に達したら、図4(d)に示すようにマス
クを1行下の左端に移動させ、そのマスクされた領域と
図4(a)に示したマスクされた領域との類似度を求め
る。このようにして、縮小原画像上の全画素に対応する
位置について、そのマスクされた領域と図4(a)に示
したマスクされた領域との類似度を求める。例えば、図
4(e)に示すような位置でマスクされた領域との類似
度が最も高いと判定された場合は、図4(e)に斜線の
網掛けで示された画素が、図4(a)に示した左上端の
画素として割り当てられることになる。
After the pixel values of the two pixels above, below, to the left and right of the reduced correction image area are determined, the reduced correction image is then created by determining the value of each pixel in the reduced correction image area ( Step S6). There are various conceivable orders for determining the pixel value in the reduced corrected image, but in the present embodiment, the pixel value is determined from the pixel at the upper left corner shown by the diagonal lines in FIG. To determine the upper left pixel, a mask as shown in the upper left is used. Specifically, a mask having the same shape as this mask is arranged at positions corresponding to all pixels other than the correction target region of the reduced original image, and the degree of similarity is obtained. The pixel at the position corresponding to the mask on the reduced original image determined to have the highest similarity is
The pixel is assigned as the upper left pixel shown in FIG. The mask on the reduced original image is first placed at the position shown in FIG. 4B, and the degree of similarity between the masked region and the masked region shown in FIG. 4A is obtained. Next, FIG.
As shown in (c), shift the mask by one pixel to the right,
The degree of similarity between the masked area and the masked area shown in FIG. 4A is calculated. Similarly, the process of obtaining the degree of similarity is performed for each pixel position. When the mask reaches the right end on the reduced original image, the mask is moved to the left end one line down, as shown in FIG. The degree of similarity between the masked area and the masked area shown in FIG. 4A is obtained. In this way, the similarity between the masked area and the masked area shown in FIG. 4A is obtained for the positions corresponding to all the pixels on the reduced original image. For example, when it is determined that the similarity to the masked area at the position shown in FIG. 4E is the highest, the pixels shaded with diagonal lines in FIG. It will be assigned as the upper left pixel shown in (a).

【0015】なお、ここでは、縮小修正画像領域上に
は、画素値を割り当てるだけではなく、縮小原画像上の
どの画素を割り当てたかを記憶しておく。これは、縮小
修正画像領域に画素値を与えることにより得られる縮小
修正画像は目的とする画像ではなく、元のサイズに復元
する際に必要な情報を有していなければならないからで
ある。縮小原画像上の各画素は、原画像のどの画素を元
に得られたかを記録しているので、最終的に復元するこ
とが可能となる。
Here, not only the pixel value is assigned to the reduced corrected image area, but which pixel on the reduced original image is assigned is stored. This is because the reduced corrected image obtained by giving a pixel value to the reduced corrected image area is not the target image but must have the information necessary for restoring the original size. Since each pixel on the reduced original image records which pixel of the original image is obtained, it can be finally restored.

【0016】ここで、本発明において、縮小修正画像で
マスクされた領域と、縮小原画像上でマスクされた領域
の類似度を算出するための関数について説明する。この
関数としては、縮小修正画像領域上のマスク位置に存在
する画素と縮小原画像上のマスク位置に存在する画素と
の類似性を判定できるものであれば、どのようなもので
も良いが、本実施形態では、以下の〔数式2〕に示すも
のを利用している。
Here, in the present invention, a function for calculating the degree of similarity between the area masked with the reduced corrected image and the area masked with the reduced original image 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 on the reduced corrected image area and the pixel existing at the mask position on the reduced original image. In the embodiment, the one shown in the following [Formula 2] is used.

【0017】〔数式2〕 V = Σi(Rs2+Gs2+Bs2) ただし、i=1〜12(画素数)[Formula 2] V = Σi (Rs 2 + Gs 2 + Bs 2 ) where i = 1 to 12 (number of pixels)

【0018】上記〔数式2〕において、Vは類似度を評
価するための評価値であり、Rs、Gs、Bsはそれぞ
れ、RGBのカラー画像を用いた場合の、縮小修正画像
領域上の画素と縮小原画像上の画素の各色成分ごとの差
分である。そのため、評価値Vの値が小さいほど、値が
近いということになり、類似度が高いと判定される。な
お、上記の例ではi=1〜12としているが、これは、
図4に示したような標準的なマスクを使用した場合であ
り、マスク形状により異なることになる。
In the above [Formula 2], V is an evaluation value for evaluating the degree of similarity, and Rs, Gs, and Bs are the pixels on the reduced corrected image area when the RGB color image is used, respectively. It is a difference for each color component of pixels on the reduced original image. Therefore, the smaller the value of the evaluation value V, the closer the value is, and it is determined that the degree of similarity is high. In the above example, i = 1 to 12, but this is
This is the case where a standard mask as shown in FIG. 4 is used, and it depends on the mask shape.

【0019】ところで、マスクの類似度を求めるために
は、そのマスク位置に画素が存在しなければならない
が、図4(a)に示すように、縮小修正画像領域内の最
初の画素を決定する場合、マスク位置に何らかの画素が
必要となる。ここでは、それを実際の修正対象領域とそ
の周囲の画素の関係に基づいて、図2(b)に網掛けで
示した部分の画素を利用するようにしている。このた
め、縮小修正画像サイズ内に得られる画像は、その周囲
の画素の影響を受けることになり、周囲と全く異なった
画像となることはなくなる。すなわち、修正対象領域が
原画像の他の部分に継ぎはぎしたような状態になること
を防いでいる。
By the way, in order to obtain the mask similarity, a pixel must exist at the mask position, but as shown in FIG. 4A, the first pixel in the reduced corrected image area is determined. In that case, some pixel is required at the mask position. Here, based on the relationship between the actual correction target area and the surrounding pixels, the pixels in the shaded area in FIG. 2B are used. Therefore, the image obtained within the reduced corrected image size is affected by the surrounding pixels, and the image does not become completely different from the surroundings. That is, it is possible to prevent the correction target area from being in a state of being spliced to other parts of the original image.

【0020】図4(a)に示したような左上端の画素が
決定したら、図5(a)に示すように、縮小修正画像領
域上のマスクを右側に1画素分ずらして同様の処理を行
う。このとき、マスクされた領域の類似度を求めるため
に利用される画素は、縮小修正画像領域の外側の11画
素と、既に画素が割り当てられた左上端の画素(図5
(a)において○印で示す)の値が利用される。
When the pixel at the upper left corner as shown in FIG. 4A is determined, as shown in FIG. 5A, the mask on the reduced corrected image area is shifted to the right by one pixel and the same process is performed. To do. At this time, the pixels used to obtain the similarity of the masked area are 11 pixels outside the reduced corrected image area and the upper left pixel to which the pixel has already been assigned (see FIG. 5).
The value of (circle mark in (a)) is used.

【0021】同様にして、縮小修正画像サイズの1行目
の画素を決定していく。図5(b)は、1行目の右端の
画素を決定する場合のマスクの位置を示している。図5
(b)においても、○印で示した画素は、既に値が決定
しているものである。1行目の右端の画素が決定した
ら、2行目については、左端からでなく、右端から画素
の決定を行う。この際、図5(c)に示すように、マス
クは1行目の画素決定に利用したものと左右が反転した
形状のものを使用する。なお、図5(c)においても○
印は、既に値が決定した画素を示している。図5(c)
に示したようなマスクを用いた場合、類似度を求めるた
めの縮小原画像上のマスクは、当然図5(c)に示した
ものと同形状のものが用いられる。このようなマスクを
使用して、2行目の画素は右側から順次決定していく。
縮小修正画像領域の3行目については、また図5(a)
に示したようなマスクを使用して左端の画素から決定し
ていく。すなわち、1行ごとに左右反転したマスクを用
いて左右反対方向に向かって画素を決定していくことに
なる。全ての行について、常に1方向から決定するよう
にしても良いが、その場合、作成された画像上に斜め方
向に意図していない流れのようなものが現れてしまうと
いう現象が生じることがある。そのような不具合を解消
するため、図5の例のようにジグザグに画素を決定して
いくことが望ましい。
Similarly, the pixels in the first row of the reduced corrected image size are determined. FIG. 5B shows the position of the mask when the rightmost pixel in the first row is determined. Figure 5
Also in (b), the values of the pixels indicated by the circles have already been determined. When the rightmost pixel in the first row is determined, the pixels in the second row are determined from the right edge instead of the left edge. At this time, as shown in FIG. 5C, the mask used has a shape that is left-right inverted from that used for determining the pixels in the first row. In addition, also in FIG.
The mark indicates a pixel whose value has already been determined. FIG. 5 (c)
When the mask as shown in FIG. 5 is used, the mask having the same shape as that shown in FIG. 5C is naturally used as the mask on the reduced original image for obtaining the similarity. Using such a mask, the pixels on the second row are sequentially determined from the right side.
Regarding the third line of the reduced correction image area, FIG.
It is determined from the pixel on the left end using the mask as shown in FIG. That is, the pixels are determined in the left-right opposite directions by using the mask that is horizontally inverted for each row. Although it is possible to determine all the rows from one direction at all times, in such a case, there may occur a phenomenon in which an unintended flow like a diagonal flow appears on the created image. . In order to eliminate such a problem, it is desirable to determine pixels in a zigzag manner as in the example of FIG.

【0022】縮小修正画像領域の1行目〜下から3行目
までについては、図4、図5に示したような12個の画
素からなるマスクを利用して画素を決定するが、下から
2行分については、図6に示すような異なった形状のマ
スクを用いる。なお、図6において、網掛けの斜線で示
したものが決定すべき画素、○印を付したものが既に決
定された画素である。下から2行目の画素の決定には、
図6(a)に示すようなマスクを用いる。このマスクは
図4、図5に示したような12個の画素に加えて、決定
すべき画素の2行下の位置の5個の画素を加えた形状と
なっている。また、1番下の行の画素を決定するには、
図6(b)に示すようなマスクを用いる。このマスクは
図4、図5に示したような12個の画素に加えて、決定
すべき画素の下2行の10個の画素を加えた形状となっ
ている。類似度の判定は、上記〔数式2〕のような評価
値を算出することにより行うことができる。ただし、
〔数式2〕において、図6(a)に示したマスクでは、
i=1〜17となり、図6(b)に示したマスクでは、
i=1〜22となる。
For the first row to the third row from the bottom of the reduced corrected image area, the pixels are determined using a mask of 12 pixels as shown in FIGS. 4 and 5, but from the bottom. For two lines, masks having different shapes as shown in FIG. 6 are used. In FIG. 6, the shaded hatched pixels are the pixels to be determined, and the circled ones are the already determined pixels. To determine the pixels in the second row from the bottom,
A mask as shown in FIG. 6A is used. This mask has a shape in which, in addition to 12 pixels as shown in FIGS. 4 and 5, 5 pixels at a position two rows below the pixel to be determined are added. Also, to determine the pixel in the bottom row,
A mask as shown in FIG. 6B is used. This mask has a shape in which, in addition to the 12 pixels shown in FIGS. 4 and 5, 10 pixels in the lower two rows of the pixel to be determined are added. The determination of the degree of similarity can be performed by calculating the evaluation value as in [Equation 2] above. However,
In [Equation 2], the mask shown in FIG.
i = 1 to 17, and with the mask shown in FIG.
i = 1 to 22.

【0023】下2行分の画素の決定において、図6のよ
うな形状のマスクを用いるのは、縮小修正画像領域の下
側の2行分の画素の値を反映させるためである。縮小修
正画像領域の上下左右の2個分の画素は、上述のよう
に、縮小原画像の対応する位置から複製してきたもので
ある。そのため、これらの画素の値を反映させること
は、後に修正対象領域に修正画像を貼り込んだ際に、繋
ぎ目が目立たないということになる。それは、すなわち
修正した跡が目立たないということになり本発明の課題
解決に大きく寄与することになる。なお、縮小修正画像
サイズの上側と左右については、図4、図5に示した例
でもわかるように、十分に縮小原画像の画素の値を反映
している。
In determining the pixels for the lower two rows, the mask having the shape as shown in FIG. 6 is used to reflect the values of the pixels for the lower two rows on the reduced corrected image area. As described above, the two pixels on the upper, lower, left and right sides of the reduced corrected image area are duplicated from the corresponding positions of the reduced original image. Therefore, reflecting the values of these pixels means that the seams are not conspicuous when the corrected image is pasted in the correction target area later. That is, the corrected mark becomes inconspicuous, which greatly contributes to solving the problem of the present invention. Note that the upper and left and right sides of the reduced corrected image size sufficiently reflect the pixel values of the reduced original image, as can be seen from the examples shown in FIGS. 4 and 5.

【0024】縮小修正画像領域の各画素を決定すること
により縮小修正画像が得られたら、次に、これを元に解
像度を元に戻した修正部分画像を作成する(ステップS
7)。縮小修正画像は、上記説明のようにして作成され
るため、その各画素が縮小原画像のどの画素を割り当て
たかを記録している。また、縮小原画像上の各画素は、
原画像のどのr×r個の画素を元に得られたかを記録し
ている。つまり、縮小画像上の各画素は、原画像上のど
のr×r個の画素と対応しているかがわかるので、縮小
画像上の各画素に、原画像上の対応するr×r個の画素
を割り当てることにより、原画像と同解像度の修正部分
画像が作成される。
When the reduced corrected image is obtained by determining each pixel in the reduced corrected image area, the corrected partial image whose resolution is returned to the original is created based on this (step S).
7). Since the reduced corrected image is created as described above, each pixel records which pixel of the reduced original image is assigned. Also, each pixel on the reduced original image is
It records which r × r pixels of the original image were obtained. That is, it is possible to know which r × r pixels on the original image each pixel on the reduced image corresponds to, so that each pixel on the reduced image corresponds to r × r pixels on the original image. Is assigned, a corrected partial image having the same resolution as the original image is created.

【0025】上記ステップS7の処理では、縮小修正画
像から修正部分画像を作成する際に、縮小修正画像から
縮小原画像を介して原画像上の対応画素を求め、それを
そのまま、修正部分画像上に割り当てるようにしたが、
この際、解像度削減率が小さい(r=3程度)場合に
は、それほど問題は生じないが、解像度削減率が大きい
場合には、解像度削減率に対応する画素数ごとに、固ま
りのようなものが見えるような現象が生じてしまう。例
えば、解像度削減率r=40であるならば、40×40
の画素からなるブロックを修正部分画像上に並べていく
ことになる。このとき、40×40画素の継ぎ目にあた
る部分では、隣接する画素の配置に連続性が考慮されて
いないため、継ぎ目が目立ってしまう。その結果、修正
部分画像全体が、40×40画素のブロックの集合体で
あるように見えてしまう。
In the process of step S7, when the corrected partial image is created from the reduced corrected image, the corresponding pixel on the original image is obtained from the reduced corrected image through the reduced original image, and the pixel is directly displayed on the corrected partial image. I assigned it to
At this time, when the resolution reduction rate is small (r = 3 or so), there is not much problem, but when the resolution reduction rate is large, it is like a lump for each number of pixels corresponding to the resolution reduction rate. Will occur. For example, if the resolution reduction rate r = 40, then 40 × 40
The blocks consisting of pixels are arranged on the modified partial image. At this time, in the portion corresponding to the joint of 40 × 40 pixels, the continuity is not taken into consideration in the arrangement of the adjacent pixels, so that the joint becomes conspicuous. As a result, the entire modified partial image looks like an aggregate of blocks of 40 × 40 pixels.

【0026】そこで、ステップS7の処理では、以下の
ような処理を行うことで前記問題点を解決している。解
像度削減率r=40であった場合、40×40画素を修
正部分画像上に割り当てることになるが、原画像上にお
ける46×46画素を修正部分画像上に割り当てるよう
にする。つまり、上下左右の3画素ずつを余分に抽出
し、割り当てることになる。この余分に抽出した画素
は、修正部分画像上に割り当てられた他の画素と合成す
る。このときの合成率は、46×46画素のブロックの
端に近付けば近付くほど、小さくなる値とし、さらに、
乱数を用いて合成率を変動させる。合成率α算出は、以
下の〔数式3〕により行う。
Therefore, in the process of step S7, the above problem is solved by performing the following process. When the resolution reduction ratio r = 40, 40 × 40 pixels are allocated on the modified partial image, but 46 × 46 pixels on the original image are allocated on the modified partial image. In other words, the upper, lower, left, and right 3 pixels are extracted and allocated in excess. The extra extracted pixels are combined with other pixels assigned on the modified partial image. The synthesis rate at this time is set to a value that becomes smaller as it gets closer to the end of the block of 46 × 46 pixels.
Vary the composition rate using random numbers. The synthesis rate α is calculated by the following [Formula 3].

【0027】〔数式3〕 α = DI(X)+RAND[Formula 3] α = DI (X) + RAND

【0028】上記〔数式3〕において、DI(X)は、
ブロックの端からの距離に応じて増加する関数であり、
0〜1の値をとる。また、RANDは、−0.5〜0.
5の値をとる乱数である。演算後、αは、0〜1の値に
なるように補正される。また、ここでは、上下左右に3
画素分を余分に抽出・割り当てするようにしたが、この
余分の画素数も縮小率に応じて変化される。
In the above [Formula 3], DI (X) is
Is a function that increases with the distance from the edge of the block,
It takes a value from 0 to 1. Further, RAND is -0.5 to 0.
It is a random number that takes a value of 5. After the calculation, α is corrected to have a value of 0 to 1. In addition, here, 3
The extra pixels are extracted and assigned, but the number of extra pixels is also changed according to the reduction rate.

【0029】修正部分画像が得られたら、この修正部分
画像を、原画像の修正対象領域部分の画像に貼り込む
(ステップS8)。これにより、新たな原画像が得られ
る。つまり、原画像の修正対象領域が修正されたことに
なる。以上のようにして、指定した領域の画像が修正さ
れることになるが、画像作成のさらに効果的な手法につ
いて以下に説明する。
When the corrected partial image is obtained, the corrected partial image is pasted on the image of the correction target area portion of the original image (step S8). As a result, a new original image is obtained. That is, the correction target area of the original image has been corrected. As described above, the image in the designated area is corrected, but a more effective method for creating an image will be described below.

【0030】上記の例においては、演算量の削減のため
に、解像度を落とした縮小修正画像を作成した後で修正
部分画像を作成するようにしたが、この場合、図7に示
すような問題が生じる。図7(a)は、縮小修正画像の
一部(3画素)拡大図であり、図7(b)は、修正部分
画像の一部拡大図である。なお、図7は解像度削減率r
=3とした場合を示している。 r=3とした場合、縮
小修正画像上の1画素は、修正部分画像上の9(3×
3)画素に復元されることになるが、その場合、この9
画素の配列は、原画像と同じ状態で復元される。そのた
め、図7(a)に示すように縮小修正画像上の同一画素
が連続して3回選ばれた場合、復元した際に、修正部分
画像上の狭い範囲において模様の繰り返しが生じてしま
う。これは、図7(b)に網掛けで示した画素でわかる
ように、特定の画素が繰り返されてしまうからである。
In the above example, in order to reduce the amount of calculation, the modified partial image is created after the reduced modified image having a reduced resolution is created, but in this case, the problem as shown in FIG. Occurs. FIG. 7A is an enlarged view of a part (three pixels) of the reduced corrected image, and FIG. 7B is a partially enlarged view of the corrected partial image. Note that FIG. 7 shows the resolution reduction rate r
= 3 is shown. When r = 3, one pixel on the reduced corrected image is equal to 9 (3 ×
3) It will be restored to pixels, but in this case, this 9
The pixel array is restored in the same state as the original image. Therefore, as shown in FIG. 7A, when the same pixel on the reduced corrected image is selected three times in succession, when restored, the pattern repeats in a narrow range on the corrected partial image. This is because a specific pixel is repeated, as can be seen from the pixel shaded in FIG.

【0031】そこで、本発明では、近傍の画素と同一の
画素を選択しないようにすることにより、上記のような
問題が生じないようにしている。図8は、縮小修正画像
の一部拡大図である。特に、図8(a)は、左から右方
向に画素を決定していく場合、図8(b)は、右から左
方向に画素を決定していく場合を示している。左から右
へ画素を決定していく場合、図8(a)の斜線の網掛け
で示した画素を決定する際には、○印で示した4つの画
素と同一にならないようにする。斜線の網掛けで示した
画素を決定するにあたっては、上記の例で説明したのと
同様に、縮小修正画像上のマスクと、縮小原画像上のマ
スクとの類似度を求め、類似度が最も高い場合の画素が
選択されるが、ここでは、選択された縮小原画像上の画
素を、そのまま斜線で示した画素とするのではなく、○
印で示した4つの画素と同一でないかどうかを調べるの
である。これにより、近傍の画素と同一の画素を選択す
ることがなくなり、上述の問題が解決される。また、右
から左方向へ画素を決定していく場合は、図8(b)に
示すような位置関係、すなわち、図8(a)の場合と左
右対称の画素を対象として重複を防ぐ処理が行われる。
Therefore, in the present invention, the above-mentioned problem does not occur by not selecting the same pixel as the neighboring pixels. FIG. 8 is a partially enlarged view of the reduced corrected image. Particularly, FIG. 8A shows a case where pixels are determined from left to right, and FIG. 8B shows a case where pixels are determined from right to left. When determining pixels from the left to the right, when determining the pixels indicated by hatching in FIG. 8A, the pixels should not be the same as the four pixels indicated by the circles. In determining the pixels shaded with diagonal lines, the similarity between the mask on the reduced corrected image and the mask on the reduced original image is obtained in the same manner as described in the above example, and the similarity is the highest. The pixel in the case of being higher is selected, but here, the pixel on the selected reduced original image is not made to be the pixel indicated by the diagonal line as it is,
It is checked whether it is not the same as the four pixels indicated by the mark. As a result, the same pixel as a neighboring pixel is not selected, and the above problem is solved. Further, when the pixels are determined from the right to the left, the positional relationship as shown in FIG. 8B, that is, the processing for preventing the overlapping with respect to the pixels symmetrical to the case of FIG. Done.

【0032】次に、上記画像修正方法を実行するための
システム構成について説明する。図9は、本発明による
画像修正システムの一実施形態を示す構成図である。図
9において、原画像入力手段1は、修正すべき箇所を有
する画像を入力する機能を有する。原画像入力手段1と
しては、原画像がデジタルデータとして既に用意されて
いる場合は、そのデジタルデータを記録した電子記録媒
体を読取り可能な読取り装置で実現でき、原画像が紙な
どの物理的な媒体で用意されている場合は、スキャナ等
の光学的読取り装置で実現できる。
Next, a system configuration for executing the above image correction method will be described. FIG. 9 is a block diagram showing an embodiment of the image correction system according to the present invention. In FIG. 9, the original image input means 1 has a function of inputting an image having a portion to be corrected. As the original image input means 1, when the original image 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 is a physical image such as paper. When prepared as a medium, it can be realized by an optical reading device such as a scanner.

【0033】修正領域指定手段2は、図1のステップS
1の処理を実行するためのものであり、マウスやキーボ
ード等の入力機器により実現できる。パラメータ設定手
段3は、必要な種々のパラメータを設定するものであ
り、特に、図1のステップS2においては、解像度削減
率rを設定する機能を有する。パラメータ設定手段3も
修正領域指定手段2と同様、マウスやキーボード等の入
力機器により実現される。
The correction area designating means 2 executes the step S in FIG.
It is for executing the process 1 and can be realized by an input device such as a mouse or a keyboard. The parameter setting unit 3 sets various necessary parameters, and particularly has a function of setting the resolution reduction rate r in step S2 of FIG. The parameter setting means 3 is also realized by an input device such as a mouse or a keyboard, like the correction area designating means 2.

【0034】マスク形状記憶手段4は、上記図1のステ
ップS6で説明したような、修正部分画像の画素決定の
ために縮小修正画像上と縮小原画像の両方に配置するた
めのマスクを記憶するためのものである。
The mask shape storage means 4 stores the masks to be arranged on both the reduced corrected image and the reduced original image for determining the pixels of the corrected partial image as described in step S6 of FIG. It is for.

【0035】演算制御装置5は、本発明に係る画像修正
システムの中心的な役割を果たすものであり、画素決定
手段5a、解像度変換手段5bを有している。画素決定
手段5aは、図1のステップS4〜ステップS6の処理
を実行する機能を有しており、画像メモリ6上に縮小修
正画像の作成領域を確保し、画素を決定していく。解像
度変換手段5bは、図1のステップS3およびステップ
S7の処理を実行する機能を有しており、設定された解
像度削減率にしたがって原画像から縮小原画像を作成す
ると共に、縮小修正画像から修正部分画像を作成する。
演算制御装置5はコンピュータのCPU、メモリで実現
され、具体的な機能である画素決定手段5a、解像度変
換手段5bは、コンピュータに搭載された専用のソフト
ウェアプログラムにより実現される。
The arithmetic and control unit 5 plays a central role in the image correction system according to the present invention, and has a pixel determining unit 5a and a resolution converting unit 5b. The pixel determining means 5a has a function of executing the processing of steps S4 to S6 of FIG. 1, and secures an area for creating a reduced corrected image on the image memory 6 to determine pixels. The resolution converting means 5b has a function of executing the processing of steps S3 and S7 of FIG. 1, and creates a reduced original image from the original image according to the set resolution reduction rate and corrects it from the reduced corrected image. Create a partial image.
The arithmetic and control unit 5 is realized by a CPU and a memory of a computer, and the pixel determining unit 5a and the resolution converting unit 5b which are specific functions are realized by a dedicated software program installed in the computer.

【0036】画像メモリ6は、縮小修正画像を作成する
ための記憶領域であり、修正領域指定手段2により指定
された修正対象領域を、パラメータ設定手段3により設
定された解像度削減率により削減したサイズの記憶領域
を確保し、演算制御装置5により算出された画素を記憶
していく。
The image memory 6 is a storage area for creating a reduced correction image, and is a size obtained by reducing the correction target area designated by the correction area designating means 2 by the resolution reduction rate set by the parameter setting means 3. The storage area is secured and the pixels calculated by the arithmetic and control unit 5 are stored.

【0037】画像表示手段7は、本発明において扱う画
像を表示するためのものであり、特に、修正対象領域の
指定を行う際に、原画像を表示する際に用いられる。実
際には、コンピュータに接続された、液晶・CRT等の
ディスプレイ装置で実現される。
The image display means 7 is for displaying an image handled in the present invention, and is particularly used for displaying an original image when designating a correction target area. Actually, it is realized by a display device such as a liquid crystal / CRT connected to a computer.

【0038】以上、本発明の好適な実施形態について説
明したが、本発明は上記実施形態に限定されず、種々の
変形が可能である。例えば、上記実施形態では、演算処
理の負荷軽減のために、原画像を縮小すると共に、縮小
されたサイズの縮小修正画像を作成した後、解像度を戻
して修正部分画像を作成するようにしたが、演算処理の
負荷を考慮しないのであれば、画像メモリには、修正対
象領域と上下左右2画素分を確保し、原画像の修正対象
領域以外の画素を用いて、上記説明と同様にマスクされ
た領域の類似度を求めることにより、修正部分画像を直
接作成するようにしても良い。
The preferred embodiment of the present invention has been described above, but the present invention is not limited to the above embodiment, and various modifications can be made. For example, in the above-described embodiment, in order to reduce the load of the arithmetic processing, the original image is reduced, the reduced corrected image of the reduced size is created, and then the resolution is restored to create the modified partial image. If the calculation processing load is not taken into consideration, a correction target area and two pixels in the upper, lower, left, and right directions are secured in the image memory, and pixels other than the correction target area of the original image are used to mask the same as described above. The corrected partial image may be directly created by obtaining the similarity between the regions.

【0039】[0039]

【発明の効果】以上、説明したように本発明によれば、
修正を行う箇所を有する原画像を入力し、入力された原
画像上において修正対象領域を指定し、指定された修正
対象領域の各画素を決定するが、この修正対象領域の各
画素の決定は、修正対象領域上に所定の形状のマスクを
配置し、当該マスクと同形状のマスクを原画像上に配置
し、修正対象領域上のマスクの位置は固定したまま、原
画像上のマスクを1画素分ずつ移動させながら、修正対
象領域上でマスクされた領域と原画像上でマスクされた
領域の類似度を求め、この類似度が最も高いと判定され
る原画像上のマスクとの位置関係が、修正対象領域上に
おけるマスクと決定すべき画素との位置関係と同一とな
る位置関係にある画素を、修正対象領域上の画素として
割り当てるものであり、修正領域上に配置するマスクが
修正対象領域からはみ出す部分については、原画像上の
画素を利用することにより行うようにしたので、前記修
正対象領域が原画像の特徴を有した状態で新たに作成さ
れ、修正対象領域の繋ぎ目部分も目立たなくなるという
効果を奏する。特に、模様画像において柄癖が生じた場
合に、原画像自身の特徴を、柄癖が生じた修正対象領域
に再現することにより柄癖が除去された修正画像が得ら
れることになる。
As described above, according to the present invention,
An original image having a portion to be corrected is input, a correction target area is specified on the input original image, and each pixel of the specified correction target area is determined. , A mask having a predetermined shape is placed on the correction target area, a mask having the same shape as the mask is placed on the original image, and the mask on the original image is set to 1 while the position of the mask on the correction target area is fixed. While moving pixel by pixel, the similarity between the masked area on the correction target area and the masked area on the original image is calculated, and the positional relationship with the mask on the original image that is determined to have the highest similarity. Is to allocate pixels having the same positional relationship as the positional relationship between the mask on the correction target area and the pixel to be determined, as the pixels on the correction target area. From the area The protruding portion is made by using the pixels on the original image, so that the correction target area is newly created with the characteristics of the original image, and the joint portion of the correction target area is also conspicuous. Has the effect of disappearing. In particular, when a pattern habit is generated in the pattern image, the characteristic of the original image itself is reproduced in the correction target area in which the pattern habit is generated, whereby a corrected image from which the pattern habit is removed can be obtained.

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

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

【図2】原画像と修正対象領域の関係を示す図である。FIG. 2 is a diagram showing a relationship between an original image and a correction target area.

【図3】画像メモリ上に確保される作業領域を示す図で
ある。
FIG. 3 is a diagram showing a work area secured on an image memory.

【図4】縮小修正画像および縮小原画像と、その上に配
置されるマスクの関係を示す図である。
FIG. 4 is a diagram showing a relationship between a reduced corrected image, a reduced original image, and a mask arranged thereon.

【図5】左右交互に画素決定の順序を変える場合の縮小
修正画像とマスクの関係を示す図である。
FIG. 5 is a diagram showing a relationship between a reduced corrected image and a mask when the order of pixel determination is changed left and right alternately.

【図6】修正対象領域の下側部分のシームレス化処理を
行う場合の、縮小修正画像とマスクの関係を示す図であ
る。
FIG. 6 is a diagram showing a relationship between a reduced corrected image and a mask when performing a seamless process on a lower side portion of a correction target area.

【図7】縮小修正画像上で同一の画素が連続して選ばれ
た場合の、画素の関係を示す図である。
FIG. 7 is a diagram showing a pixel relationship when the same pixel is continuously selected on the reduced corrected image.

【図8】決定すべき画素と、重複を禁止すべき画素との
位置関係を示す図である。
FIG. 8 is a diagram showing a positional relationship between a pixel to be determined and a pixel whose duplication is prohibited.

【図9】本発明による画像修正システムの一実施形態を
示す構成図である。
FIG. 9 is a configuration diagram showing an embodiment of an image correction system according to the present invention.

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

1・・・原画像入力手段 2・・・修正領域指定手段 3・・・パラメータ設定手段 4・・・マスク形状記憶手段 5・・・演算制御装置 5a・・・画素決定手段 5b・・・解像度変換手段 6・・・画像メモリ 7・・・画像表示手段 1. Original image input means 2 ... Correction area designation means 3 ... Parameter setting means 4 ... Mask shape storage means 5 ... Arithmetic control device 5a ... Pixel determining means 5b ... Resolution conversion means 6 ... Image memory 7 ... Image display means

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 5B050 BA06 BA18 CA07 EA03 EA12 EA18 5C076 AA01 AA22 BA06 BB07 5L096 BA18 CA24 EA03 EA14 FA69 GA10 JA03    ─────────────────────────────────────────────────── ─── Continued front page    F term (reference) 5B050 BA06 BA18 CA07 EA03 EA12                       EA18                 5C076 AA01 AA22 BA06 BB07                 5L096 BA18 CA24 EA03 EA14 FA69                       GA10 JA03

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】原画像上において修正対象領域を指定する
段階と、 前記指定された修正対象領域の各画素を決定する段階
と、を有し、 前記修正対象領域の各画素の決定は、前記修正対象領域
上に所定の形状のマスクを配置し、当該マスクと同形状
のマスクを前記原画像上の前記修正対象領域以外の部分
に配置し、前記修正対象領域上のマスクの位置は固定し
たまま、前記原画像上のマスクを1画素分ずつ移動させ
ながら、前記修正対象領域上でマスクされた領域と前記
原画像上でマスクされた領域の類似度を求め、当該類似
度が最も高いと判定される原画像上のマスクとの位置関
係が、前記修正対象領域上におけるマスクと決定すべき
画素との位置関係と同一となる位置関係にある画素を、
前記修正対象領域上の画素として割り当てるものであ
り、修正対象領域上に配置するマスクが修正対象領域か
らはみ出す部分については、原画像上の画素を利用する
ことにより行うことを特徴とする画像修正方法。
1. A method comprising: specifying a correction target area on an original image; and determining each pixel of the specified correction target area, wherein each pixel of the correction target area is determined by A mask having a predetermined shape is arranged on the correction target area, a mask having the same shape as the mask is arranged on a portion other than the correction target area on the original image, and the position of the mask on the correction target area is fixed. As it is, the degree of similarity between the masked area on the correction target area and the masked area on the original image is calculated by moving the mask on the original image by one pixel at a time, and the similarity is the highest. A pixel having a positional relationship with the mask on the original image to be determined has a positional relationship that is the same as the positional relationship between the mask on the correction target region and the pixel to be determined,
The image correction method is to be assigned as pixels on the correction target area, and a portion of the mask arranged on the correction target area that extends outside the correction target area is performed by using pixels on the original image. .
【請求項2】前記修正対象領域の各画素を決定する際、
修正対象領域の最後の所定数分の行については、前記マ
スク形状と異なる形状のマスクを使用し、その一部の画
素として、原画像上の修正対象領域下方の所定数の行の
画素を利用するようにしたことを特徴とする請求項1に
記載の画像修正方法。
2. When determining each pixel of the correction target area,
For the last predetermined number of rows of the correction target area, a mask having a shape different from the mask shape is used, and as a part of the pixels, pixels of a predetermined number of rows below the correction target area on the original image are used. The image correction method according to claim 1, wherein the image correction method is performed.
【請求項3】原画像上において修正対象領域を指定する
段階と、 解像度削減率を設定する段階と、 前記設定された解像度削減率に従って解像度を落とした
縮小原画像を作成する段階と、 前記指定された修正対象領域を前記設定された解像度削
減率に従って解像度を落とした縮小修正画像の各画素を
決定することにより縮小修正画像を得る段階と、 前記縮小修正画像の各画素に記録された情報を元に前記
原画像の修正対象領域部分の画像である修正部分画像を
作成する段階と、を有し、 前記縮小修正画像を得る段階における各画素の決定は、
縮小修正画像上に所定の形状のマスクを配置し、当該マ
スクと同形状のマスクを前記縮小原画像上に配置し、前
記縮小修正画像上のマスクの位置は固定したまま、前記
縮小原画像上のマスクを1画素分ずつ移動させながら、
前記縮小修正画像上でマスクされた領域と前記縮小原画
像上でマスクされた領域の類似度を求め、当該類似度が
最も高いと判定される縮小原画像上のマスクとの位置関
係が、前記縮小修正画像上におけるマスクと決定すべき
画素との位置関係と同一となる位置関係にある画素を、
前記縮小修正画像上の画素として割り当てるものであ
り、前記縮小修正画像上に配置するマスクが縮小修正画
像のサイズからはみ出す部分については、縮小原画像上
の画素を利用することにより行い、 前記修正部分画像を作成する段階は、前記縮小修正画像
の各画素に割り当てられた縮小原画像上の画素を元に、
対応する原画像上の複数画素を特定し、当該原画像上の
複数画素を前記縮小修正画像の各画素に対応させて配置
していくことにより前記修正部分画像を作成するもので
あることを特徴とする画像修正方法。
3. A step of designating an area to be corrected on the original image, a step of setting a resolution reduction rate, a step of creating a reduced original image having a reduced resolution in accordance with the set resolution reduction rate, A step of obtaining a reduced correction image by determining each pixel of the reduced correction image in which the resolution of the corrected target area is reduced according to the set resolution reduction rate; and information recorded in each pixel of the reduced correction image. And a step of creating a modified partial image that is an image of the modification target area portion of the original image, and determining each pixel in the step of obtaining the reduced modified image,
A mask having a predetermined shape is arranged on the reduced corrected image, a mask having the same shape as the mask is arranged on the reduced original image, and the position of the mask on the reduced corrected image is fixed, and the mask is placed on the reduced original image. While moving the mask of 1 pixel by 1 pixel,
The positional relationship between the masked area on the reduced corrected image and the masked area on the reduced original image is calculated, and the positional relationship between the mask on the reduced original image determined to have the highest similarity is Pixels that have the same positional relationship as the mask and the pixel to be determined on the reduced corrected image are
The portion to be allocated as a pixel on the reduced corrected image, and the portion of the mask arranged on the reduced corrected image that is outside the size of the reduced corrected image is performed by using the pixels on the reduced original image. The step of creating an image is based on the pixels on the reduced original image assigned to each pixel of the reduced corrected image,
The correction partial image is created by specifying a plurality of pixels on the corresponding original image and arranging the plurality of pixels on the original image corresponding to each pixel of the reduced correction image. And image correction method.
【請求項4】修正すべき原画像を入力する画像入力手段
と、 前記入力された原画像上において修正対象領域を指定す
る修正領域指定手段と、 前記修正対象領域上の各画素の決定を、修正対象領域上
に所定の形状のマスクを配置し、当該マスクと同形状の
マスクを前記原画像上に配置し、前記修正対象領域上の
マスクの位置は固定したまま、前記原画像上のマスクを
1画素分ずつ移動させながら、前記修正対象領域上でマ
スクされた領域と前記原画像上でマスクされた領域の類
似度を求め、当該類似度が最も高いと判定される原画像
上のマスクとの位置関係が、前記修正対象領域上におけ
るマスクと決定すべき画素との位置関係と同一となる位
置関係にある画素を、前記修正対象領域上の画素として
割り当てることにより行い、前記修正対象領域に配置す
るマスクが当該修正対象領域からはみ出す際に、原画像
上の対応する画素を利用するものである画素決定手段
と、 を有することを特徴とする画像修正システム。
4. Image input means for inputting an original image to be corrected, correction area designating means for designating a correction target area on the input original image, and determination of each pixel on the correction target area, A mask having a predetermined shape is arranged on the correction target area, a mask having the same shape as the mask is arranged on the original image, and the mask on the original image is fixed while the position of the mask on the correction target area is fixed. While moving each pixel by 1 pixel, the similarity between the masked area on the correction target area and the masked area on the original image is obtained, and the mask on the original image is determined to have the highest similarity. Pixels having the same positional relationship as that of the mask and the pixel to be determined on the correction target area are assigned as pixels on the correction target area, Image modification system mask arranged in frequency is characterized by having when protruding from the correction object region, and the pixel determination unit is to utilize the corresponding pixel on the original image.
【請求項5】コンピュータに、修正対象領域上に所定の
形状のマスクを配置する段階、当該マスクと同形状のマ
スクを前記原画像上に配置する段階、前記修正対象領域
上のマスクの位置は固定したまま、前記原画像上のマス
クを1画素分ずつ移動させながら、前記修正対象領域上
でマスクされた領域と前記原画像上でマスクされた領域
の類似度を求め、当該類似度が最も高いと判定される原
画像上のマスクとの位置関係が、前記修正対象領域上に
おけるマスクと決定すべき画素との位置関係と同一とな
る位置関係にある画素を、前記修正領域上の画素として
割り当てる段階を実行させて修正対象領域上の各画素を
決定し、前記修正対象領域上に配置するマスクが修正対
象領域からはみ出す部分については、原画像上の対応画
素を利用することにより行うものであるプログラム。
5. A method of arranging a mask of a predetermined shape on a correction target area, a step of arranging a mask of the same shape as the mask on the original image, and a position of the mask on the correction target area in a computer. While the mask is fixed, the mask on the original image is moved pixel by pixel, and the similarity between the masked area on the correction target area and the masked area on the original image is calculated. A pixel having a positional relationship with the mask on the original image that is determined to be high has the same positional relationship as the positional relationship between the mask on the correction target area and the pixel to be determined, as a pixel on the correction area. The step of allocating is performed to determine each pixel on the correction target area, and for the portion of the mask placed on the correction target area that extends beyond the correction target area, use the corresponding pixel on the original image. Program is intended to do more.
JP2001206172A 2001-07-06 2001-07-06 Image correcting method and system thereof Withdrawn JP2003023536A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001206172A JP2003023536A (en) 2001-07-06 2001-07-06 Image correcting method and system thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001206172A JP2003023536A (en) 2001-07-06 2001-07-06 Image correcting method and system thereof

Publications (1)

Publication Number Publication Date
JP2003023536A true JP2003023536A (en) 2003-01-24

Family

ID=19042347

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001206172A Withdrawn JP2003023536A (en) 2001-07-06 2001-07-06 Image correcting method and system thereof

Country Status (1)

Country Link
JP (1) JP2003023536A (en)

Similar Documents

Publication Publication Date Title
JP4184703B2 (en) Image correction method and system
JP4114191B2 (en) Image processing apparatus and image processing method
EP0535987B1 (en) Geometric pattern generating and printing system
JPH0997344A (en) Method and system for texture generation
JP2003023536A (en) Image correcting method and system thereof
JP3584179B2 (en) Image processing method, image processing device, and storage medium
JPH11144037A (en) Image layout method, system therefor and manufacture of printed matter
JP3935768B2 (en) Image composition method and system
JP2003030669A (en) Image preparation method and system
US20130329133A1 (en) Movie processing apparatus and control method therefor
JP4184704B2 (en) Image correction method and system
JP2003108994A (en) Image generation method and system therefor
JP3652167B2 (en) Image processing apparatus and method and storage medium therefor
JP2003006662A (en) Method and system for preparing image
JP2003067761A (en) Image forming method and system
JP2002366955A (en) Method and system for preparing image
JP2000276584A (en) Method and device for image processing, and storage medium
JPH0546718A (en) Picture editing device
JP2003016466A (en) Method and system for image generation
JP2003187244A (en) Image correction method
JP2760176B2 (en) Low brightness character pattern generator
JP2000348211A (en) Method and device for texture mapping of three- dimensional image
JPH07281409A (en) Endless pattern forming system and printed matter
JP4202661B2 (en) Image creation method
JPH10214351A (en) Image processing method, its device and its storage medium

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: 20081007