JP2008107894A - Image correction method and apparatus using stamp - Google Patents

Image correction method and apparatus using stamp Download PDF

Info

Publication number
JP2008107894A
JP2008107894A JP2006287528A JP2006287528A JP2008107894A JP 2008107894 A JP2008107894 A JP 2008107894A JP 2006287528 A JP2006287528 A JP 2006287528A JP 2006287528 A JP2006287528 A JP 2006287528A JP 2008107894 A JP2008107894 A JP 2008107894A
Authority
JP
Japan
Prior art keywords
stamp
image
initial position
image correction
pixel
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.)
Granted
Application number
JP2006287528A
Other languages
Japanese (ja)
Other versions
JP4445953B2 (en
Inventor
Hidetomo Sakaino
英朋 境野
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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP2006287528A priority Critical patent/JP4445953B2/en
Publication of JP2008107894A publication Critical patent/JP2008107894A/en
Application granted granted Critical
Publication of JP4445953B2 publication Critical patent/JP4445953B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To compensate for lost areas in images quickly without using an advanced mathematical equation. <P>SOLUTION: A stamp St is positioned in contact with an upper left end of an area K to be corrected from above ((a)). Gray values of all the pixels set in the position are stored. The stamp St is moved down by one pixel ((b)). Similarities are calculated between the initial position and post-shift positions of the stamp St shifted left ((c)), right ((d)), down, down right and down left by one pixel. The stamp St is positioned in the post-shift position corresponding to the highest similarity that is higher than a threshold TH (for example, position (d)), and the stored gray values are set. If the highest similarity is not higher than the threshold TH, the stamp St is moved to the right from the preceding initial position by the size of the stamp St ((e)). The position of the stamp St is thus moved to the right. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、複数の画素の大きさをもつスタンプによる画像補正方法および装置に関するものである。   The present invention relates to an image correction method and apparatus using a stamp having a plurality of pixel sizes.

携帯電話、デジタルカメラ、ビデオ、DVDなど、情報家電の普及には目覚ましいものがある。年々、LSI,DSPなど、組み込みのハードウェア性能は高まってきている。そのため、パソコン上で動作していた各種ソフトウェアのアプリケーションも携帯電話内でリアルタイムに動作するようになっている。   There is a remarkable spread of information home appliances such as mobile phones, digital cameras, videos and DVDs. The performance of embedded hardware such as LSI and DSP is increasing year by year. For this reason, various software applications that have been running on a personal computer can also be run in real time in a mobile phone.

携帯電話における手ぶれ補正は、代表的な画像処理に基づいた補正方法の一つである。DVDにおける不要なテロップ文字の消去、これも画像処理に基づいた補正方法の一つである。   Camera shake correction in a mobile phone is one of correction methods based on typical image processing. Erasing unnecessary telop characters on a DVD is also one of correction methods based on image processing.

ときに、ハードウェアでアルゴリズムを実現するには、浮動小数点演算から整数化しての演算が求められることが少なくない。この数理的な方程式の解法で高速化を実現するには、特別の工夫が必要となっている。   At times, in order to implement an algorithm in hardware, it is often necessary to perform an operation by converting a floating point operation into an integer. In order to achieve high speed by solving this mathematical equation, special measures are required.

一方で、手ぶれ補正を行うと画枠が一回り小さくなるので、元の大きさに戻る画像補正が求められる。また、不要な文字やテロップなどを自在に消去する方法についても、見やすい画像への補正が求められている。   On the other hand, when camera shake correction is performed, the image frame becomes one size smaller, so image correction that returns to the original size is required. In addition, regarding a method for erasing unnecessary characters and telops freely, correction to an easy-to-view image is required.

これまでの画像補正は、偏微分方程式などに基づいた数値解法問題(非特許文献1など)に基づいていることが多く、例えばパソコンが用いられる。ただし、この画像補正は、補正対象が低空間周波数成分に富んでいる場合に限られる。   Conventional image correction is often based on a numerical solution problem (such as Non-Patent Document 1) based on a partial differential equation or the like, and for example, a personal computer is used. However, this image correction is limited to the case where the correction target is rich in low spatial frequency components.

一方、エッジ構造や輪郭が明瞭な補正対象の場合は、高空間周波数成分までの補正が必要であり、これについては、非特許文献2のtexture-synthesisと呼ばれる方法が知られている。   On the other hand, in the case of a correction target with a clear edge structure and outline, correction up to a high spatial frequency component is necessary, and a method called texture-synthesis in Non-Patent Document 2 is known.

しかし、この方法では、パターンマッチングに伴う演算コストが、非特許文献1の方法の数倍必要であるという欠点がある。数値演算にもよるが、非特許文献1の方法では指数関数を用いるため、単純にアルゴリズムを浮動小数点型から整数型へ変換することが容易ではない問題がある。   However, this method has a drawback that the operation cost associated with pattern matching is several times that of the method of Non-Patent Document 1. Although depending on the numerical operation, the method of Non-Patent Document 1 uses an exponential function, and thus there is a problem that it is not easy to simply convert the algorithm from the floating point type to the integer type.

数値解法問題では、偏微分方程式の時間発展により画像を補正していく方法が中心的である。そのため、多くのメモリと空間と時間の微分計算が必要となり、携帯電話などのようなCPUが高くない機種でのリアルタイム処理が困難となっている。   In the numerical solution problem, the method of correcting the image by the time evolution of the partial differential equation is central. For this reason, a lot of memory, space, and time differential calculations are required, and real-time processing is difficult in a model such as a cellular phone that does not have a high CPU.

単純な方法としては、移動平均法や線形補間法などを用いれば、ある程度の画像補正ができる。しかし、補正された領域がぼやけるといった問題や周辺画像とは異なった人工的なテクスチャで補正されるといった問題が生じる。
M.Beralmio,G.Sapiro,C.Ballester,and V.Caselles,Computer Graphics,"image inpainting",Proceeding of SIGGRAPH 2000,pp.417-424,July 2000. Li-Yi Wei and M.Levoy,"Texture systhesis over arbitrary manifold surfaces",Proceeding of SIGGRAPH 2001,pp.355-360,Aug.2001
As a simple method, a certain amount of image correction can be performed by using a moving average method, a linear interpolation method, or the like. However, there arises a problem that the corrected area is blurred and a problem that correction is performed with an artificial texture different from the surrounding image.
M.Beralmio, G.Sapiro, C.Ballester, and V.Caselles, Computer Graphics, "image inpainting", Proceeding of SIGGRAPH 2000, pp.417-424, July 2000. Li-Yi Wei and M. Levoy, "Texture systhesis over arbitrary manifold surfaces", Proceeding of SIGGRAPH 2001, pp.355-360, Aug. 2001

本発明が解決する課題設定の背景には、以下の問題点がある。   The background of the problem setting solved by the present invention has the following problems.

第1の問題点)携帯電話のような低性能CPU上でも、リアルタイム処理が必要である。第2の問題点)数値演算に依存すると、多くのメモリを必要とする。第3の問題点)画像補正の低から高空間周波数成分を補正できない。第4の問題点)アルゴリズム上、整数化表現ができない。   First problem) Real-time processing is required even on a low-performance CPU such as a mobile phone. Second problem) Depending on the numerical operation, a lot of memory is required. Third problem) High spatial frequency components cannot be corrected due to low image correction. Fourth problem) Due to the algorithm, it cannot be expressed as an integer.

以上を踏まえて、本発明は、画像内の欠落領域を高度な数理方程式によらずにしかも高速に補える画像補正方法および装置を提供することにある。   In view of the above, it is an object of the present invention to provide an image correction method and apparatus that can compensate for missing regions in an image at high speed without using sophisticated mathematical equations.

本発明では、例えば、計算コストが極めて低い、フィルタ設計に基づいた画素への重み付け処理として高速化を実現している。   In the present invention, for example, high speed is realized as a weighting process for pixels based on filter design, which is extremely low in calculation cost.

また、周辺のテクスチャ特徴量に応じて、スタンプの大きさを小さいものから大きいものへ段階的に適用することで、複雑な画像パターンへ対応している。   In addition, a complicated image pattern can be handled by applying the stamp size step by step from a small size to a large size in accordance with the surrounding texture feature amount.

また、階層画像化により、細かいテクスチャまでの補正・補間をより高速に演算できる。   In addition, correction and interpolation to fine textures can be performed at higher speed by hierarchical image formation.

本発明によれば、画像内の欠落領域を高度な数理方程式によらずにしかも高速に補える。   According to the present invention, a missing region in an image can be compensated at high speed without using sophisticated mathematical equations.

これにより、テロップやスーパーインポーズなどの領域を自動的にもとの背景図柄に置換することができる。   As a result, areas such as telop and superimpose can be automatically replaced with the original background symbols.

また、これまでの手作業によるテロップ領域へのぼかし作業を行わずして、違和感のない、もとの画像への置換が自動的かつ効果的にできる。   In addition, it is possible to automatically and effectively replace the original image without a sense of incongruity without performing the conventional blurring operation on the telop area.

また、単純な処理の繰り返しであるため、携帯電話内での高速な処理が可能となる。   In addition, since simple processing is repeated, high-speed processing in a mobile phone is possible.

以上のような効果により、ブロードバンド時代における家庭からプロ仕様まで、デジタルカメラ、デジタルビデオ、デジタルテレビにおける国内外のデジタル産業における新しい画像変換技術の中核となることが考えられる。   From the above effects, it can be considered to be the core of new image conversion technology in the digital industry in Japan and overseas in the digital camera, digital video, and digital television from home to professional in the broadband age.

以下、本発明に係るスタンプを用いた画像補正装置および方法の実施の形態を図面を参照して説明する。   Embodiments of an image correction apparatus and method using a stamp according to the present invention will be described below with reference to the drawings.

図1は、本実施の形態に係る画像補正装置の構成図である。   FIG. 1 is a configuration diagram of an image correction apparatus according to the present embodiment.

本装置は、データ入力手段100、領域分離手段110、濃淡値記憶設定手段120、終了判定手段130および画像表示手段140により構成される。本装置は、いわゆるコンピュータであり、コンピュータプログラムを読み込み、それに応じた処理を実行するようになっている。   This apparatus includes a data input unit 100, a region separation unit 110, a gray value storage setting unit 120, an end determination unit 130, and an image display unit 140. This apparatus is a so-called computer, which reads a computer program and executes processing corresponding thereto.

本装置では、データ入力手段100が、携帯電話のカメラやデジタルカメラなどの画像Gを入力する。画像Gは各画素の濃淡値で構成される。モノクロの画像Gでは、画素の色指定がされず、一方、カラーの画像Gでは、赤・緑・青の色指定がされる。画素には、例えば、8ビット階調の濃淡値が設定される。ここでは、色やビット数によらない処理を説明するので、当該事項への言及は省略する。   In this apparatus, the data input means 100 inputs an image G from a mobile phone camera or a digital camera. The image G is composed of gray values of each pixel. In the monochrome image G, the pixel color is not specified, while in the color image G, red, green, and blue are specified. For example, a gray value of 8-bit gradation is set in the pixel. Here, since processing that does not depend on the color or the number of bits will be described, reference to the matter is omitted.

領域分離手段110は、例えば、文字認識技術を用いて、画像Gからテロップや不要物を消去する。また、領域分離手段110は、例えば、パケットロスで欠落した領域を分離する。ここではテロップがあった領域や欠落した領域を領域Kという。   The area separating unit 110 erases telops and unnecessary objects from the image G using, for example, a character recognition technique. In addition, the region separation unit 110 separates a region missing due to packet loss, for example. Here, a region where a telop is present or a region where a telop is missing is referred to as a region K.

濃淡値記憶設定手段120は、領域Kに対して順次に画像補正(濃淡値設定)を行う。詳細については後述する。   The gray value storage setting unit 120 sequentially performs image correction (gray value setting) on the region K. Details will be described later.

終了判定手段130は、画像補正が順次に行われる中にあって、現在の領域Kと直前の画像補正前の領域Kとの間の類似度が予め定めた閾値より高くなったら、画像補正を終了させる。   When the image correction is sequentially performed and the similarity between the current area K and the previous area K before the image correction is higher than a predetermined threshold, the end determination unit 130 performs the image correction. Terminate.

なお、画像Gを複数の解像度ごとの画像へ変換し、最も低い解像度の画像の濃淡値設定(画像補正)を行うことから始めて、当該解像度より高い解像度の画像の濃淡値設定(画像補正)を順次に行うようにしてもよい。これにより、処理時間を短縮することができる。   It is to be noted that the image G is converted into an image for each of a plurality of resolutions, and the gradation value setting (image correction) of the image having the lowest resolution is started. You may make it carry out sequentially. Thereby, processing time can be shortened.

画像表示手段140は、かかる画像補正後の画像を表示する。   The image display means 140 displays the image after such image correction.

図2は、濃淡値記憶設定手段120が行う処理のフローチャートである。図3は、その処理の様子を示す図である。   FIG. 2 is a flowchart of processing performed by the gray value storage setting unit 120. FIG. 3 is a diagram showing the state of the processing.

まず、スタンプ(ここでは、上下方向に3画素分、左右方向に3画素分の長さをもつ正方形のスタンプとする)Stを初回の初期位置(初回の初期位置は、ここでは領域Kの左上端の上側に接する位置)に位置させる(S1:図3(a))。   First, a stamp (here, a square stamp having a length of 3 pixels in the vertical direction and a length of 3 pixels in the horizontal direction) is set to the initial initial position (the initial initial position is the upper left of the region K here) (S1: FIG. 3 (a)).

次に、スタンプStの位置において設定済みである全画素の濃淡値を記憶する(S2)。   Next, the gray values of all the pixels that have been set at the position of the stamp St are stored (S2).

次に、濃淡値が設定される画素の方、ここでは下の方へスタンプStを例えば1画素分移動させる(S3:図3(b))。つまり移動前後でのスタンプStの位置を部分的に重複させる。   Next, the stamp St is moved, for example, by one pixel toward the pixel for which the gray value is set, here, downward (S3: FIG. 3B). That is, the position of the stamp St before and after the movement is partially overlapped.

移動前の方向、ここでは上を除いた複数の方向、ここでは左(図3(c)に例示)、右(図3(d)に例示)、下、右下、左下(これらは例示省略)へスタンプStを例えば1画素分シフトしたときシフト後位置と初期位置の類似度を計算する(S4)。つまりシフト前後でのスタンプStの位置が部分的に重複するようなシフト後位置と初期位置の類似度を計算する。例えば、式(1)により類似度(R)を求める。
Direction before movement, here multiple directions except top, here left (illustrated in FIG. 3 (c)), right (illustrated in FIG. 3 (d)), bottom, bottom right, bottom left (these are not illustrated) ) When the stamp St is shifted by, for example, one pixel, the similarity between the post-shift position and the initial position is calculated (S4). That is, the similarity between the post-shift position and the initial position is calculated so that the positions of the stamps St before and after the shift partially overlap. For example, the degree of similarity (R) is obtained from equation (1).

ave ,Javeは、それぞれ初期位置の濃淡値の平均、シフト後位置の濃淡値の平均である。 I ave and J ave are the average of the gray value at the initial position and the average of the gray value at the position after the shift, respectively.

I(i,j),J(i,j)は、それぞれ初期位置において左右方向i,上下方向jの位置(つまりスタンプ内のX座標がi,Y座標がjの位置)にある画素の濃淡値、シフト後位置において左右方向i,上下方向jの位置(つまりスタンプ内のX座標がi,Y座標がjの位置の位置)にある画素の濃淡値である。   I (i, j) and J (i, j) are the shades of pixels at the initial position in the horizontal direction i and the vertical direction j (that is, the X coordinate in the stamp is i and the Y coordinate is j). The gray value of the pixel at the position in the left-right direction i and the up-down direction j (that is, the position where the X coordinate in the stamp is i and the Y coordinate is j) in the post-shift position.

SIZE ,YSIZEは、それぞれスタンプStの左右方向(X方向)のサイズ(ここでは3(画素))、スタンプStの上下方向(Y方向)のサイズ(ここでは3(画素))である。 X SIZE, Y SIZE is the size of the horizontal direction of each stamp St (X direction) (3 (pixels) in this case), the size (in this case 3 (pixel)) vertical stamp St (Y-direction) is.

次に、最も高い類似度が予め定められた閾値THより高いか否かを判定する(S5)。   Next, it is determined whether or not the highest similarity is higher than a predetermined threshold TH (S5).

図4は、S3での移動後のスタンプStを原点としてその近傍位置での類似度の分布を示した図である。近傍位置により類似度が異なるが、S5では、その中で最も高い類似度(○の位置)が予め定められた閾値THより高いかを判定する。   FIG. 4 is a diagram showing the distribution of similarity at the position near the stamp St after the movement at S3. Although the degree of similarity varies depending on the vicinity position, in S5, it is determined whether the highest degree of similarity (position of ◯) is higher than a predetermined threshold TH.

図2に戻り、S5でYESと判定された場合は、最も高い類似度に対応するシフト後位置(次回の初期位置)にスタンプStを位置させ(例えば、図3(d)の位置)、そこでの設定対象の画素にS2で記憶した濃淡値を設定する(S6)。ここではスタンプSt内での位置が同じ画素の濃淡値を設定する。領域K内で濃淡値が設定済みの場合は、上書きするか、または、両濃淡値の平均を設定する。   Returning to FIG. 2, if YES is determined in S5, the stamp St is positioned at the post-shift position (next initial position) corresponding to the highest similarity (for example, the position of FIG. 3D), and there. The gray value stored in S2 is set to the setting target pixel (S6). Here, the gray value of the pixel having the same position in the stamp St is set. If the gray value has already been set in the area K, it is overwritten or an average of both gray values is set.

S5でNOと判定された場合は、スタンプStを次回の初期位置に位置させる(S7)。例えば、直前の初期位置からスタンプSt1個分(3画素分)だけ右の位置に位置させる(図3(e))。このようにして、スタンプStは右へと位置を変えていく。   If it is determined NO in S5, the stamp St is positioned at the next initial position (S7). For example, it is positioned at the right position by one stamp St (three pixels) from the immediately preceding initial position (FIG. 3E). In this way, the position of the stamp St is changed to the right.

S6およびS7の後、スタンプStが領域Kの右端を超えているか否かを判定し(S8)、NOと判定された場合は、S2に戻る。YESと判定された場合は、スタンプStを1個分下に移動させたら下端を超えるか否かを判定し(S9)、NOと判定された場合は、スタンプStを次回の初期位置(上下方向ではスタンプ1個分下、左右方向では領域Kの左端の位置)に位置させ(S10:図3(f))、S2に戻る。S9でYESと判定された場合は、図2の処理を終える。   After S6 and S7, it is determined whether or not the stamp St exceeds the right end of the region K (S8). If NO is determined, the process returns to S2. If it is determined YES, it is determined whether or not the lower end is exceeded if the stamp St is moved down by one (S9), and if it is determined NO, the stamp St is set to the next initial position (vertical direction). Then, it is positioned one stamp below, and in the left-right direction (position at the left end of the region K) (S10: FIG. 3 (f)), and the process returns to S2. If it is determined YES in S9, the process in FIG.

続いて、これまで同様の処理を行うのだが、以下の点が異なる。   Subsequently, the same processing is performed until now, but the following points are different.

これまでの処理では設定対象の領域の左上端の上側に接する位置を初期位置としたところを、ここでは、左下端の下側に接する位置を初期位置とする。また、スタンプStを下へ移動させたところを、ここでは上へ移動させる。また、スタンプStを左、右、下、右下、左下へシフトしたときの類似度を計算したところを、ここでは左、右、上、右上、左上へシフトしたときの類似度を計算する。   In the processing so far, the position that is in contact with the upper side of the upper left end of the region to be set is set as the initial position, and here, the position that is in contact with the lower side of the lower left end is set as the initial position. Further, the place where the stamp St is moved downward is moved upward here. Further, the similarity when the stamp St is shifted to the left, right, lower, lower right, and lower left is calculated. Here, the similarity when the stamp St is shifted to the left, right, upper, upper right, and upper left is calculated.

続いて、これまで同様の処理を行うのだが、以下の点が異なる。   Subsequently, the same processing is performed until now, but the following points are different.

これまでの処理では上下方向に3画素分、左右方向に3画素分の長さをもつスタンプStを用いたところを、ここでは、例えば、上下方向に4画素分、左右方向に4画素分の長さをもつスタンプStを用いる。スタンプStを段階的に大きくして、さらに処理を行ってもよい。   In the processing so far, a stamp St having a length of 3 pixels in the vertical direction and 3 pixels in the horizontal direction is used. Here, for example, 4 pixels in the vertical direction and 4 pixels in the horizontal direction are used. A stamp St having a length is used. Further processing may be performed by increasing the stamp St in stages.

図5は、従来法と本装置による補正の様子を示す画像の模式図である。   FIG. 5 is a schematic diagram of an image showing a state of correction by the conventional method and the present apparatus.

従来では、領域Kに直角な方向に濃淡値を設定する線形補間法があり、その従来法では、領域Kに対して斜めに入射するテクスチャを再現できない(図5(a))が、本装置では、類似度が最も高いシフト後位置に濃淡値を設定するので、そのような斜めのテクスチャを再現することができる(図5(b))。   Conventionally, there is a linear interpolation method in which a gray value is set in a direction perpendicular to the region K, and the conventional method cannot reproduce a texture that is obliquely incident on the region K (FIG. 5A). Then, since the gray value is set at the post-shift position with the highest similarity, such an oblique texture can be reproduced (FIG. 5B).

図6は、従来法と本装置による補正の様子を示す実際の画像である。   FIG. 6 is an actual image showing a state of correction by the conventional method and this apparatus.

図6(a)は、様々なテクスチャおよび帯域が広い複雑なパターンで構成されていることから符号化分野の標準画像となっているマンドリルの画像(本来の画像)である。   FIG. 6A is a mandrill image (original image) which is a standard image in the coding field because it is composed of a complex pattern with various textures and wide bands.

図6(b)は、この画像を16画素分の画素ごとに左端から右端に走査することで表示するにあたり、表示の順で送信されるパケットにパケットロスが生じたことを想定して生成された画像である。画像はパケットロスにより濃淡値が未設定になってしまった画素からなる欠損領域を4つ含んでいる。   FIG. 6B is generated on the assumption that a packet loss has occurred in a packet transmitted in the display order when this image is displayed by scanning from the left end to the right end for every 16 pixels. It is an image. The image includes four missing areas composed of pixels whose gray values have not been set due to packet loss.

図6(c)は、本装置による補正により得られた画像である。4つの欠損領域が良好に補間され、本来の画像とほとんど変わらない画像が得られた。   FIG. 6C shows an image obtained by correction by this apparatus. The four missing areas were interpolated well, and an image almost the same as the original image was obtained.

図6(d)は、従来法(線形補間法)による補正により得られた画像である。4つの欠損領域がぼやけて補間され、不完全な画像となった。線形補間法は、欠損領域に接する領域の濃淡値を基にして欠損領域を線形に補間する。距離が長いほど、既知の画素間で設定すべき画素が増えるため、不自然さが目立ってしまう欠点がある。また、低域通過フィルタの性質を有するので、エッジ成分などの構造のあるテクスチャを補間しようとしても、細かい情報がぼやけた情報に変換される。これがぼやけの原理である。   FIG. 6D is an image obtained by correction by a conventional method (linear interpolation method). Four defective areas were blurred and interpolated, resulting in an incomplete image. The linear interpolation method linearly interpolates the missing area based on the gray value of the area in contact with the missing area. The longer the distance, the more pixels to be set between known pixels. In addition, since it has the characteristics of a low-pass filter, even when trying to interpolate a texture having a structure such as an edge component, fine information is converted into blurred information. This is the principle of blurring.

図7は、画質についての評価結果を示す図である。   FIG. 7 is a diagram illustrating an evaluation result regarding image quality.

画質については、低空間周波数のパターンで画像補正する場合の評価結果と、高空間周波数のパターンで画像補正する場合の評価結果を示す。   Regarding the image quality, an evaluation result when the image is corrected with a low spatial frequency pattern and an evaluation result when the image is corrected with a high spatial frequency pattern are shown.

詳しくは、復元性、連続性などについて、5人で行った主観評価の結果を示す。評価結果「1」が最も悪く、評価結果「5」が最も良いとした。   In detail, the result of the subjective evaluation performed by five persons about restoreability, continuity, etc. is shown. Evaluation result “1” was the worst and evaluation result “5” was the best.

また、ここでは、従来法(線形補間法)での評価結果と、本装置での評価結果を示す。 従来法では、テクスチャ構造が崩れるため、高空間周波数のパターンでの評価結果が「1」近くまで悪くなった。また、高空間周波数のパターンでの評価結果は「4」ないし「5」と良好だった。   In addition, here, the evaluation result by the conventional method (linear interpolation method) and the evaluation result by this apparatus are shown. In the conventional method, since the texture structure is broken, the evaluation result with a pattern of a high spatial frequency has deteriorated to near “1”. In addition, the evaluation results in the pattern of high spatial frequency were good from “4” to “5”.

一方、本装置では、両パターンでの評価結果が「4」ないし「5」と良好だった。高空間周波数のパターンでの評価結果は、従来法でのものより良好だった。これは、本装置が既知画像を元にしているからであり、明らかな優位点である。   On the other hand, in this apparatus, the evaluation results in both patterns were good, “4” to “5”. The evaluation results with the high spatial frequency pattern were better than those with the conventional method. This is because this device is based on known images, which is a clear advantage.

なお、本実施の形態では正方形としたスタンプStの形状を長方形などといった他の形状としてもよい。   In the present embodiment, the shape of the square stamp St may be another shape such as a rectangle.

また、本実施の形態では、領域Kなどの矩形領域をいわゆる線順次走査しながら補正を行ったが、補正対象の領域を周回するように走査しながら補正を行ってもよい。これにより、任意の形状の領域で画像補正が行える。   In the present embodiment, the correction is performed while scanning a rectangular area such as the area K so-called line-sequential scanning, but the correction may be performed while scanning so as to go around the correction target area. Thereby, image correction can be performed in a region having an arbitrary shape.

また、上記の画像補正方法を本装置に実行させるコンピュータプログラムは、半導体メモリ、磁気ディスク、光ディスク、光磁気ディスク、磁気テープなどのコンピュータ読み取り可能な記録媒体に記録したり、インターネットなどの通信網を介して伝送させて、広く流通させることができる。   A computer program that causes the apparatus to execute the above image correction method is recorded on a computer-readable recording medium such as a semiconductor memory, a magnetic disk, an optical disk, a magneto-optical disk, or a magnetic tape, or a communication network such as the Internet. And can be widely distributed.

本実施の形態に係る画像補正装置の構成図である。It is a block diagram of the image correction apparatus which concerns on this Embodiment. 濃淡値記憶設定手段120が行う処理のフローチャートである。It is a flowchart of the process which the gray value storage setting means 120 performs. 図3の処理の様子を示す図である。It is a figure which shows the mode of the process of FIG. スタンプStの近傍位置での類似度の分布を示した図である。It is the figure which showed distribution of the similarity degree in the vicinity position of stamp St. 従来法と本装置による補正の様子を示す画像の模式図である。It is the model of the image which shows the mode of correction | amendment by the conventional method and this apparatus. 従来法と本装置による補正の様子を示す実際の画像である。It is an actual image which shows the mode of correction by the conventional method and this apparatus. 画質についての評価結果を示す図である。It is a figure which shows the evaluation result about an image quality.

符号の説明Explanation of symbols

100 データ入力手段
110 領域分離手段
120 濃淡値記憶設定手段
130 終了判定手段
140 画像表示手段
G 補正対象の画像
K 補正対象の領域
St スタンプ
100 Data input means 110 Area separation means 120 Gray value storage setting means 130 End determination means 140 Image display means G Image to be corrected K Area to be corrected St Stamp

Claims (9)

濃淡値が設定済みの画素からなる領域と設定対象の画素からなる領域を含む画像を入力し、複数の画素の大きさをもつスタンプにより画素に濃淡値を設定するスタンプによる画像補正方法であって、
設定済みの画素を含む初期位置にスタンプを位置させて当該画素の濃淡値を記憶するステップ、
濃淡値が設定される画素の方へスタンプを移動させるステップ、
移動前の方向を除いた複数の方向へスタンプをシフトしたときシフト後位置と前記初期位置の類似度を計算するステップ、
最も高い類似度が予め定められた閾値より高いときは当該類似度に対応するシフト後位置の濃淡値を前記記憶された濃淡値により設定するステップを初期位置を変えながら複数回行い、
前の回で最も高い類似度が閾値より高くなかったときは初期位置を前の回の初期位置に対して異ならせる一方、前の回で最も高い類似度が閾値より高くてシフト後位置に濃淡値が設定されたときは当該シフト後位置を初期位置にする
ことを特徴とするスタンプを用いた画像補正方法。
An image correction method using a stamp that inputs an image including an area including pixels having grayscale values and an area including pixels to be set, and sets the gray value to the pixels using a stamp having a plurality of pixel sizes. ,
Storing the gray value of the pixel by positioning the stamp at an initial position including the set pixel;
Moving the stamp towards the pixel where the gray value is set;
Calculating the similarity between the post-shift position and the initial position when the stamp is shifted in a plurality of directions excluding the direction before movement;
When the highest similarity is higher than a predetermined threshold, the step of setting the gray value of the post-shift position corresponding to the similarity by the stored gray value is performed a plurality of times while changing the initial position,
When the highest similarity in the previous round is not higher than the threshold, the initial position is made different from the initial position in the previous round, while the highest similarity in the previous round is higher than the threshold and the shift position is shaded. An image correction method using a stamp, characterized in that when a value is set, the post-shift position is set as an initial position.
請求項1記載の画像補正方法をスタンプの大きさを変えて行うことを特徴とするスタンプを用いた画像補正方法。   2. An image correction method using a stamp, wherein the image correction method according to claim 1 is performed by changing a size of the stamp. 前記設定対象の画素からなる領域は画像内のテロップを文字認識技術により切り出してなる領域であること請求項1または2記載のスタンプを用いた画像補正方法。   The image correction method using a stamp according to claim 1 or 2, wherein the region including the pixels to be set is a region obtained by cutting out a telop in an image by a character recognition technique. 前記画像を複数の解像度ごとの画像へ変換し、最も低い解像度の画像の濃淡値設定から始めて、当該解像度より高い解像度の画像の濃淡値設定を順次に行うことを特徴とする請求項1ないし3のいずれかに記載のスタンプを用いた画像補正方法。   4. The image is converted into an image for each of a plurality of resolutions, and the gradation value setting of an image having a resolution higher than the resolution is sequentially performed starting from the gradation value setting of the image having the lowest resolution. An image correction method using the stamp according to any one of the above. 濃淡値が設定済みの画素からなる領域と設定対象の画素からなる領域を含む画像を入力し、複数の画素の大きさをもつスタンプにより画素に濃淡値を設定するスタンプによる画像補正装置であって、
前記画像を入力する手段と、
前記設定対象の画素からなる領域を検出する手段と、
設定済みの画素を含む初期位置にスタンプを位置させて当該画素の濃淡値を記憶する手段と、
濃淡値が設定される画素の方へスタンプを移動させ、移動前の方向を除いた複数の方向へスタンプをシフトしたときシフト後位置と前記初期位置の類似度を計算し、最も高い類似度が予め定められた閾値より高いときは当該類似度に対応するシフト後位置の濃淡値を前記記憶された濃淡値により設定するステップを初期位置を変えながら複数回行う手段とを備え、
前の回で最も高い類似度が閾値より高くなかったときは初期位置を前の回の初期位置に対して異ならせる一方、前の回で最も高い類似度が閾値より高くてシフト後位置に濃淡値が設定されたときは当該シフト後位置を初期位置にする
ことを特徴とするスタンプを用いた画像補正装置。
An image correction apparatus using a stamp that inputs an image including an area composed of pixels with grayscale values and an area composed of pixels to be set, and sets grayscale values for the pixels using a stamp having a plurality of pixel sizes. ,
Means for inputting the image;
Means for detecting an area composed of pixels to be set;
Means for positioning a stamp at an initial position including a set pixel and storing the gray value of the pixel;
When the stamp is moved toward the pixel for which the gray value is set and the stamp is shifted in a plurality of directions excluding the direction before the movement, the similarity between the post-shift position and the initial position is calculated, and the highest similarity is obtained. Means for setting the gray value of the post-shift position corresponding to the degree of similarity with the stored gray value when the threshold value is higher than a predetermined threshold value, a plurality of times while changing the initial position;
When the highest similarity in the previous round is not higher than the threshold, the initial position is made different from the initial position in the previous round, while the highest similarity in the previous round is higher than the threshold and the shift position is shaded. An image correction apparatus using a stamp, characterized in that when a value is set, the post-shift position is set as an initial position.
請求項5記載の画像補正装置が行う画像補正方法をスタンプの大きさを変えて行うことを特徴とする請求項5記載のスタンプを用いた画像補正装置。   6. The image correction apparatus using a stamp according to claim 5, wherein the image correction method performed by the image correction apparatus according to claim 5 is performed by changing a size of the stamp. 前記設定対象の画素からなる領域は画像内のテロップを文字認識技術により切り出してなる領域であること請求項5または6記載のスタンプを用いた画像補正装置。   The image correction apparatus using a stamp according to claim 5 or 6, wherein the region including the pixels to be set is a region obtained by cutting out a telop in an image by a character recognition technique. 前記画像を複数の解像度ごとの画像へ変換し、最も低い解像度の画像の濃淡値設定から始めて、当該解像度より高い解像度の画像の濃淡値設定を順次に行うことを特徴とする請求項5ないし7のいずれかに記載のスタンプを用いた画像補正装置。   8. The image is converted into an image for each of a plurality of resolutions, and the gradation value setting for an image having a resolution higher than the resolution is sequentially performed, starting with the gradation value setting for the image having the lowest resolution. An image correction apparatus using the stamp according to any one of the above. 濃淡値が設定済みの画素からなる領域と設定対象の画素からなる領域を含む画像を入力し、複数の画素の大きさをもつスタンプにより画素に濃淡値を設定するスタンプによる画像補正方法を画像補正装置に実行させるコンピュータプログラムであって、
設定済みの画素を含む初期位置にスタンプを位置させて当該画素の濃淡値を記憶するステップ、
濃淡値が設定される画素の方へスタンプを移動させるステップ、
移動前の方向を除いた複数の方向へスタンプをシフトしたときシフト後位置と前記初期位置の類似度を計算するステップ、
最も高い類似度が予め定められた閾値より高いときは当該類似度に対応するシフト後位置の濃淡値を前記記憶された濃淡値により設定するステップを初期位置を変えながら複数回行い、
前の回で最も高い類似度が閾値より高くなかったときは初期位置を前の回の初期位置に対して異ならせる一方、前の回で最も高い類似度が閾値より高くてシフト後位置に濃淡値が設定されたときは当該シフト後位置を初期位置にする
ことを特徴とするスタンプを用いた画像補正方法を画像補正装置に実行させるコンピュータプログラム。
An image correction method using a stamp that sets a gray value for a pixel with a stamp having a size of multiple pixels is input. A computer program to be executed by an apparatus,
Storing the gray value of the pixel by positioning the stamp at an initial position including the set pixel;
Moving the stamp towards the pixel where the gray value is set;
Calculating the similarity between the post-shift position and the initial position when the stamp is shifted in a plurality of directions excluding the direction before movement;
When the highest similarity is higher than a predetermined threshold, the step of setting the gray value of the post-shift position corresponding to the similarity by the stored gray value is performed a plurality of times while changing the initial position,
When the highest similarity in the previous round is not higher than the threshold, the initial position is made different from the initial position in the previous round, while the highest similarity in the previous round is higher than the threshold and the shift position is shaded. A computer program for causing an image correction apparatus to execute an image correction method using a stamp, characterized in that when a value is set, the position after shifting is set as an initial position.
JP2006287528A 2006-10-23 2006-10-23 Image correction method and apparatus using stamp Active JP4445953B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006287528A JP4445953B2 (en) 2006-10-23 2006-10-23 Image correction method and apparatus using stamp

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006287528A JP4445953B2 (en) 2006-10-23 2006-10-23 Image correction method and apparatus using stamp

Publications (2)

Publication Number Publication Date
JP2008107894A true JP2008107894A (en) 2008-05-08
JP4445953B2 JP4445953B2 (en) 2010-04-07

Family

ID=39441223

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006287528A Active JP4445953B2 (en) 2006-10-23 2006-10-23 Image correction method and apparatus using stamp

Country Status (1)

Country Link
JP (1) JP4445953B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010211300A (en) * 2009-03-06 2010-09-24 Toshiba Corp Image processing device and method
JP2011145977A (en) * 2010-01-18 2011-07-28 Nikon Corp Image processing program and image processor
JP5337250B2 (en) * 2009-09-04 2013-11-06 株式会社東芝 Image processing apparatus and method
CN114708592A (en) * 2022-05-16 2022-07-05 北京万里红科技有限公司 Seal security level judging method, device, equipment and computer readable storage medium
CN114998329A (en) * 2022-07-28 2022-09-02 启东市嘉信精密机械有限公司 Precise stamping quality analysis system for radio frequency shielding case of electronic communication equipment

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010211300A (en) * 2009-03-06 2010-09-24 Toshiba Corp Image processing device and method
JP5337250B2 (en) * 2009-09-04 2013-11-06 株式会社東芝 Image processing apparatus and method
JP2011145977A (en) * 2010-01-18 2011-07-28 Nikon Corp Image processing program and image processor
CN114708592A (en) * 2022-05-16 2022-07-05 北京万里红科技有限公司 Seal security level judging method, device, equipment and computer readable storage medium
CN114998329A (en) * 2022-07-28 2022-09-02 启东市嘉信精密机械有限公司 Precise stamping quality analysis system for radio frequency shielding case of electronic communication equipment

Also Published As

Publication number Publication date
JP4445953B2 (en) 2010-04-07

Similar Documents

Publication Publication Date Title
JP6649750B2 (en) Image processing apparatus and image processing method
US7548659B2 (en) Video enhancement
JP3915563B2 (en) Image processing apparatus and image processing program
CA2702165C (en) Image generation method and apparatus, program therefor, and storage medium which stores the program
WO2018082185A1 (en) Image processing method and device
EP2221763A1 (en) Image generation method, device, its program and recording medium stored with program
JP2002135592A (en) Image processing apparatus and recording medium
US6959117B2 (en) Method and apparatus for deblurring and re-blurring image segments
US20050201632A1 (en) Resolution changing method and apparatus
JP5939154B2 (en) Image processing apparatus and computer program
JP5451313B2 (en) Image processing apparatus, image processing method, and program
JP4445953B2 (en) Image correction method and apparatus using stamp
US20140375843A1 (en) Image processing apparatus, image processing method, and program
US20130279799A1 (en) Image processing device, image processing method, and image processing program
JP2010034964A (en) Image composition apparatus, image composition method and image composition program
US20090237549A1 (en) Image processing apparatus, image processing method, and program
JP4882680B2 (en) Image processing system and image processing program
WO2017203941A1 (en) Image processing device, image processing method, and program
JP4857975B2 (en) Image processing system and image processing program
JP2006031245A (en) Image processing method and image processor by profile tracking of digital image
WO2014034242A1 (en) Image processing device, and method and program for image processing
JP4235217B2 (en) Filtering type image correction apparatus and filtering type image correction method
JP2005293265A (en) Image processing device, and method
KR101332030B1 (en) Method of magnifying image and computer readable medium storing the program thereof
JP4537426B2 (en) Image correction apparatus and method

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090917

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090929

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20091021

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20100105

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100118

R150 Certificate of patent or registration of utility model

Ref document number: 4445953

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20130122

Year of fee payment: 3

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350