JP2011249926A - Image processing program and image processing apparatus - Google Patents
Image processing program and image processing apparatus Download PDFInfo
- Publication number
- JP2011249926A JP2011249926A JP2010118550A JP2010118550A JP2011249926A JP 2011249926 A JP2011249926 A JP 2011249926A JP 2010118550 A JP2010118550 A JP 2010118550A JP 2010118550 A JP2010118550 A JP 2010118550A JP 2011249926 A JP2011249926 A JP 2011249926A
- Authority
- JP
- Japan
- Prior art keywords
- image
- image processing
- color
- target area
- region
- 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
Links
Images
Landscapes
- Editing Of Facsimile Originals (AREA)
- Processing Or Creating Images (AREA)
Abstract
Description
本発明は、画像処理プログラム、および画像処理装置に関する。 The present invention relates to an image processing program and an image processing apparatus.
次のようなデジタル画像内の不所望なオブジェクト等の消去方法が知られている。この方法では、ユーザが指定した不所望なオブジェクト等を含む領域内の画素を、生成したテクスチャにより置き換えることで、デジタル画像内から不所望なオブジェクト等を消去することによって画像を修正する(例えば、特許文献1)。 There are known methods for erasing an undesired object in a digital image as follows. In this method, an image is corrected by erasing an undesired object or the like from the digital image by replacing pixels in an area including the undesired object or the like specified by the user with the generated texture (for example, Patent Document 1).
しかしながら、従来の方法では、使用者が指定した領域内から、必ずしも所望の被写体が消去されるとは限らず、使用者が望む被写体とは異なる被写体が消去されてしまう可能性があった。 However, in the conventional method, a desired subject is not necessarily deleted from the area designated by the user, and a subject different from the subject desired by the user may be deleted.
本発明による画像処理プログラムは、使用者によって対象画像内に設定された領域を編集対象領域として設定する領域設定手順と、領域設定手順で設定した編集対象領域内の画像、編集対象領域の周辺領域内の画像、または編集対象領域内と編集対象領域の周辺領域内との画像を領域内画像として抽出し、領域内画像から特徴色を抽出する抽出手順と、抽出手順で抽出した特徴色以外の色に基づいて、編集対象領域内に含まれる不要な被写体を消去するために用いる編集用データを生成する生成手順と、生成手順で生成した編集用データを用いて、編集対象領域内に含まれる不要な被写体を消去する画像処理手順とをコンピュータに実行させることを特徴とする。
本発明では、抽出手順は、領域内画像の色相の頻度を算出し、色相の頻度が最も高い色を特徴色として抽出するようにしてもよく、この場合、生成手順は、色相の頻度が2番目に高い色に基づいて編集用データを生成し、画像処理手順は、編集対象領域内における特徴色の画素の画素値を編集用データを用いて補正することにより、編集対象領域内に含まれる不要な被写体を消去するようにしてもよい。
抽出手順は、領域内画像の色相の頻度を算出し、色相の頻度が2番目に高い色を特徴色として抽出するようにしてもよく、この場合、生成手順は、色相の頻度が最も高い色に基づいて編集用データを生成し、画像処理手順は、編集対象領域内における特徴色の画素の画素値を編集用データを用いて補正することにより、編集対象領域内に含まれる不要な被写体を消去するようにしてもよい。
抽出手順は、領域内画像の中央部分に存在する色を特徴色として抽出するようにしてもよい。
抽出手順は、領域内画像内で最も大きな面積を占める色を特徴色として抽出するようにしてもよい。
抽出手順は、領域内画像内に含まれる複数の色をユーザに提示し、その中からユーザによって選択された色を特徴色として特定するようにしてもよい。
生成手順は、領域内画像内における特徴色以外の画素の画素値に基づいて編集用データを生成し、画像処理手順は、領域内画像内における特徴色の画素の画素値を編集用データを用いて補正することにより、編集対象領域内に含まれる不要な被写体を消去するようにしてもよい。
抽出手順は、領域内画像を複数の分割領域に分割し、各分割領域ごとに特徴色を抽出し、生成手順は、各分割領域ごとに編集用データを生成するようにしてもよい。
本発明による画像処理装置は、上記いずれかの画像処理プログラムを実行する実行手段を備えることを特徴とする。
An image processing program according to the present invention includes an area setting procedure for setting an area set in a target image by a user as an editing target area, an image in the editing target area set in the area setting procedure, and a peripheral area of the editing target area. Or an image within the editing target area and the surrounding area of the editing target area is extracted as an intra-area image, and a feature color is extracted from the image within the area, and a feature color other than the feature color extracted by the extraction procedure is extracted. Based on the color, it is included in the editing target area by using the generation procedure for generating editing data used for erasing unnecessary subjects included in the editing target area and the editing data generated in the generation procedure. An image processing procedure for erasing an unnecessary subject is executed by a computer.
In the present invention, the extraction procedure may calculate the hue frequency of the in-region image and extract the color having the highest hue frequency as the characteristic color. In this case, the generation procedure has a hue frequency of 2 The editing data is generated based on the second highest color, and the image processing procedure is included in the editing target region by correcting the pixel value of the characteristic color pixel in the editing target region using the editing data. Unnecessary subjects may be erased.
In the extraction procedure, the hue frequency of the in-region image may be calculated, and the color having the second highest hue frequency may be extracted as the feature color. In this case, the generation procedure is performed by selecting the color having the highest hue frequency. The editing data is generated based on the image processing procedure, and the image processing procedure corrects the pixel value of the pixel of the characteristic color in the editing target area by using the editing data, thereby removing an unnecessary subject included in the editing target area. It may be deleted.
In the extraction procedure, a color existing in the central portion of the in-region image may be extracted as a feature color.
In the extraction procedure, the color occupying the largest area in the in-region image may be extracted as the feature color.
In the extraction procedure, a plurality of colors included in the in-region image may be presented to the user, and the color selected by the user may be specified as the characteristic color.
The generation procedure generates editing data based on pixel values of pixels other than the feature color in the in-region image, and the image processing procedure uses the pixel value of the feature color pixel in the in-region image using the editing data. The unnecessary subject included in the edit target area may be deleted by correcting the image.
The extraction procedure may divide the in-region image into a plurality of divided regions, extract feature colors for each divided region, and the generation procedure may generate editing data for each divided region.
An image processing apparatus according to the present invention includes an execution unit that executes any one of the above-described image processing programs.
本発明によれば、使用者が望む被写体を消去できる可能性を向上させることができる。 According to the present invention, it is possible to improve the possibility that the subject desired by the user can be deleted.
図1は、本実施の形態における画像処理装置の一実施の形態の構成を示すブロック図である。画像処理装置としては、例えば、パーソナルコンピュータ(パソコン)100が用いられ、このパソコン100は、操作部材101と、接続IF(インターフェース)102と、制御装置103と、HDD(ハードディスクドライブ)104と、モニタ105とを備えている。
FIG. 1 is a block diagram showing a configuration of an embodiment of an image processing apparatus according to the present embodiment. As the image processing apparatus, for example, a personal computer (personal computer) 100 is used. The
操作部材101は、使用者によって操作される種々の装置、例えばキーボードやマウスを含む。接続IF102は、パソコン100と外部機器とを接続するためのインターフェースである。本実施の形態では、パソコン100は、この接続IF102を介してデジタルカメラと接続され、デジタルカメラからは撮影によって得られた画像ファイルが取り込まれる。なお、接続IF102としては、パソコン100とデジタルカメラとを有線接続するためのUSBインターフェースや、無線接続するための無線LANモジュールなどが用いられる。
The
制御装置103は、CPU、メモリ、およびその他の周辺回路によって構成され、パソコン100の全体を制御する。なお、制御装置103を構成するメモリは、例えばSDRAM等の揮発性のメモリである。このメモリは、CPUがプログラム実行時にプログラムを展開するためのワークメモリや、データを一時的に記録するためのバッファメモリを含む。
The
HDD104は、接続IF102を介して取り込まれた画像ファイルのデータや、制御装置103で実行される種々のプログラムのデータ等を記録するための記録装置である。なお、HDD104に記録されるプログラムのデータは、CD−ROMやDVD−ROMなどの記憶媒体に記録されて提供され、使用者が当該記憶媒体を用いてプログラムのデータをHDD104にインストールすることによって、制御装置103がプログラムを実行できるようになる。モニタ105は、例えば液晶モニタであって、制御装置103から出力される種々の表示用データが表示される。
The HDD 104 is a recording device for recording image file data fetched via the connection IF 102 and data of various programs executed by the
本実施の形態におけるパソコン100では、使用者は、画像処理アプリケーションを実行してHDD104に記録されている画像ファイルの画像を表示し、表示中の画像を編集することができる。例えば、図2(a)に示すように、画像内に電線Aが写り込んでいる場合に、使用者は、画像内から電線Aを消去して画像を修復することができる。具体的には、使用者は、図2(b)に示すように、画像処理アプリケーションが備える編集ツールの1つである矩形ツールを用いて電線Aを含む領域2aを指定したり、図2(c)に示すように、画像処理アプリケーションが備える編集ツールの1つである修復ブラシツールを用いて電線Aを含む領域2bを指定したりする。
In
制御装置103は、使用者が指定した領域(2aまたは2b)を編集対象領域として特定し、当該編集対象領域内に含まれる不要な被写体(この場合は電線A)を消去するための画像処理(以下、「画像修正処理」と呼ぶ)を実行する。具体的な画像修正処理の方法については後述する。
The
編集対象領域の指定方法として修復ブラシツールを用いる場合には、使用者は、使用するブラシの大きさを選択してから、その大きさのブラシを画像上の消去したい被写体、すなわち上述した電線A等の不要な被写体上で移動させることにより、ブラシが移動した範囲内の領域を編集対象領域として指定することができる。なお、ブラシの大きさは、段階的に大きくなるように複数の大きさが用意されており、使用者は、その中から任意のブラシの大きさを選択する。 When the restoration brush tool is used as a method for designating the editing target area, the user selects the size of the brush to be used, and then selects the brush whose size is to be erased on the image, that is, the above-described electric wire A. By moving on an unnecessary subject such as, it is possible to designate an area within the range where the brush has moved as an editing target area. Note that a plurality of sizes of brushes are prepared in a stepwise manner, and the user selects an arbitrary brush size from among them.
このとき、使用者は、消去したい被写体を含むように編集対象領域を設定することになるが、制御装置103は、使用者が編集対象領域内のどの被写体を消去しようとしているかを特定することができないと、画像修正処理の結果、使用者が消去したいと考えていた被写体が正しく消去されない可能性がある。
At this time, the user sets the editing target area so as to include the subject to be erased, but the
例えば、使用者は、図2(d)に示すように、図2(a)に示した画像内の被写体のうち、電線A以外の被写体はそのまま残し、電線Aのみが消去された画像を得たいと考えて編集対象領域を指定したとする。しかしながら、画像修正処理の結果、図2(e)に示すように、本来消去したかった電線Aは残ったまま、領域2c内にあった花が消去されてしまう可能性がある。あるいは、図2(f)に示すように、電線Aと花の両方が消去されてしまう可能性もある。
For example, as shown in FIG. 2 (d), the user leaves an object other than the wire A among the subjects in the image shown in FIG. 2 (a), and obtains an image in which only the wire A is erased. Suppose you want to edit and specify the editing area. However, as a result of the image correction process, as shown in FIG. 2E, the flower A in the
このような場合には、使用者は、その後、改めて編集対象領域を設定し直して画像修正処理を実行する必要がある。さらに、そのときの画像修正処理の結果が使用者の望むものでない場合には、使用者は、再び編集対象領域を設定し直す必要があり、所望の結果が得られるまでこれを繰り返さなければならない。本実施の形態では、使用者がこのような煩雑な操作を行わなくても、使用者が意図した被写体を画像から消去できるように、制御装置103は、以下に示す処理を行う。
In such a case, after that, the user needs to reset the edit target area and execute the image correction process. Furthermore, when the result of the image correction processing at that time is not what the user desires, the user needs to set the editing target area again, and must repeat this until a desired result is obtained. . In the present embodiment, the
具体的には、制御装置103は、使用者によってブラシを用いて画像上に編集対象領域が指定された場合には、指定された編集対象領域内の画像を抽出し、抽出した編集対象領域内の画像の色空間、例えばRGB空間をLCH空間に変換する。制御装置103は、LCH空間に変換した後の編集対象領域内の画像を対象として各画素の色相を算出する。そして、制御装置103は、色相環を複数の領域に分割する。例えば、制御装置103は、色相環を16度幅で10分割、または22.5度幅で16分割する。
Specifically, when the editing target area is specified on the image using a brush by the user, the
その後、制御装置103は、色相環の各分割領域ごとに、編集対象領域内における各画素の色相の出現頻度を算出することにより、編集対象領域内の色相の分布を算出する。そして、制御装置103は、算出した色相の分布に基づいて、編集対象領域内において最も出現頻度の高い色相を編集対象領域における特徴色として抽出する。また、編集対象領域内において特徴色が算出された画素を編集対象の画素として特定する。
After that, the
次に、制御装置103は、編集対象領域内における上述した特徴色以外の色に基づいて、編集対象領域内に含まれる不要な被写体を消去するために用いる編集用データを生成する。具体的には、制御装置103は、編集対象領域内において2番目に出現頻度の高い色相を特定し、編集対象領域内において該2番目に出現頻度の高い色相が算出された画素を編集用の画素として特定する。そして、制御装置103は、特定した編集用の画素のそれぞれの画素値を求め、その画素値の平均値を編集用データとして算出する。そして、制御装置103は、上述した編集対象領域内で特定した編集対象の画素の画素値を、上記編集用データで置換することによって、編集対象領域内に含まれる不要な被写体を消去する。
Next, the
このように、使用者によって設定された編集対象領域内において最も出現頻度の高い色相を特徴色として算出し、該特徴色が算出された画素を編集対象の画素として特定することにより、使用者は、消去したい被写体を大きく含むように編集対象領域を設定する可能性が高いことを加味して、使用者が消去したい被写体を精度高く特定することができる。また、編集対象領域内において2番目に出現頻度の高い色相が算出された画素を編集用の画素として特定し、その画素値の平均値を編集用データとして用いて編集対象の画素の画素値を置換することにより、編集対象の画素の周辺画素を用いて、使用者が消去したい被写体を精度高く消去することが可能となる。 In this way, by calculating the hue with the highest appearance frequency in the edit target area set by the user as the feature color and specifying the pixel for which the feature color is calculated as the pixel to be edited, the user can Considering that there is a high possibility that the edit target area is set so as to largely include the subject to be erased, the user can specify the subject to be erased with high accuracy. Further, the pixel having the second highest appearance hue in the editing target area is specified as the editing pixel, and the pixel value of the editing target pixel is determined using the average value of the pixel values as the editing data. By substituting, it becomes possible to erase the subject that the user wants to erase with high accuracy using the peripheral pixels of the pixel to be edited.
図3は、本実施の形態における画像修正処理の流れを示すフローチャートである。この図3に示す処理は、使用者によって画像修正処理用アプリケーションの実行が指示されると起動するプログラムとして、制御装置103によって実行される。
FIG. 3 is a flowchart showing the flow of image correction processing in the present embodiment. The processing shown in FIG. 3 is executed by the
ステップS10において、制御装置103は、使用者によって画像の編集ツールとして修復ブラシツールが選択され、該修復ブラシツールが操作されて画像内に編集対象領域が指定されたか否かを判断する。ステップS10で肯定判断した場合には、ステップS20へ進み、制御装置103は、画像内から編集対象領域内の画像を抽出して、ステップS30へ進む。ステップS30では、制御装置103は、ステップS20で抽出した編集対象領域内の画像の色空間、例えばRGB空間をLCH空間に変換して、ステップS40へ進む。
In step S10, the
ステップS40では、制御装置103は、上述したように、LCH空間に変換した後の編集対象領域内の画像を対象として各画素の色相を算出する。そして、制御装置103は、色相環を複数の領域に分割して、色相環の各分割領域ごとに、編集対象領域内における各画素の色相の出現頻度を算出することにより、編集対象領域内の色相の分布を算出する。さらに、制御装置103は、算出した色相の分布に基づいて、編集対象領域内において最も出現頻度の高い色相を編集対象領域における特徴色として抽出する。また、制御装置103は、編集対象領域内において特徴色が算出された画素を編集対象の画素として特定する。
In step S40, as described above, the
その後、ステップS50へ進み、制御装置103は、上述したように、編集対象領域内において2番目に出現頻度の高い色相を特定し、編集対象領域内において該2番目に出現頻度の高い色相が算出された画素を編集用の画素として特定する。そして、制御装置103は、特定した編集用の画素のそれぞれの画素値を求め、その画素値の平均値を編集用データとして算出する。その後、ステップS60へ進む。
Thereafter, the process proceeds to step S50, and as described above, the
ステップS60では、制御装置103は、ステップS40で特定した編集対象の画素の画素値を、ステップS50で算出した編集用データで置換することによって、編集対象領域内に含まれる不要な被写体を消去する。その後、処理を終了する。
In step S60, the
以上説明した本実施の形態によれば、以下のような作用効果を得ることができる。
(1)制御装置103は、使用者によって画像内に設定された編集対象領域内の画像から特徴色を抽出し、抽出した特徴色以外の色に基づいて、編集対象領域内に含まれる不要な被写体を消去するために用いる編集用データを生成し、生成した編集用データを用いて、編集対象領域内に含まれる不要な被写体を消去するようにした。これによって、編集対象領域内における特徴色が使用者が消去したい被写体の色である可能性が高いことを加味して、使用者が消去したい被写体を精度高く特定して消去することができる。
According to the present embodiment described above, the following operational effects can be obtained.
(1) The
(2)制御装置103は、編集対象領域内における各画素の色相の出現頻度を算出し、編集対象領域内において最も出現頻度の高い色相を編集対象領域における特徴色として抽出するようにした。これによって、使用者は消去したい被写体を大きく含むように編集対象領域を設定する可能性が高いことから、最も出現頻度が高い色相を特徴色として抽出して編集対象の画素を特定することにより、使用者が消去したい被写体を精度高く特定することができる。
(2) The
(3)制御装置103は、編集対象領域内において2番目に出現頻度の高い色相が算出された画素を編集用の画素として特定し、特定した編集用の画素の画素値の平均値を編集用データとして算出するようにした。そして、制御装置103は、編集対象領域内で特定した編集対象の画素の画素値を、編集用データで置換することによって、編集対象領域内に含まれる不要な被写体を消去するようにした。これによって、編集対象の画素の周辺画素を用いて、使用者が消去したい被写体を精度高く消去することが可能となる。
(3) The
―変形例―
なお、上述した実施の形態の画像処理装置は、以下のように変形することもできる。
(1)上述した実施の形態では、制御装置103は、編集対象領域内において最も出現頻度の高い色相を編集対象領域における特徴色として抽出し、編集対象領域内において該特徴色が算出された画素を編集対象の画素として特定するようにした。また、制御装置103は、編集対象領域内において2番目に出現頻度の高い色相が算出された画素を編集用の画素として特定し、特定した編集用の画素の画素値の平均値を編集用データとして算出するようにした。しかしながら、制御装置103は、編集対象領域内において2番目に出現頻度の高い色相を編集対象領域における特徴色として抽出し、編集対象領域内において該特徴色が算出された画素を編集対象の画素として特定するようにし、編集対象領域内において最も出現頻度の高い色相が算出された画素を編集用の画素として特定し、特定した編集用の画素の画素値の平均値を編集用データとして算出するようにしてもよい。これによって、使用者が消去したい被写体の領域よりも背景領域を多く含むように編集対象領域を設定した場合でも、使用者が消去したい被写体を精度高く特定し、背景領域の画素を用いて被写体を消去することが可能となる。
-Modification-
The image processing apparatus according to the above-described embodiment can be modified as follows.
(1) In the above-described embodiment, the
(2)また、上述した実施の形態と上記変形例(1)とを組み合わせてもよい。すなわち、制御装置103は、上述した実施の形態における画像修正処理を行なって被写体を消去した後の画像と、上記変形例(1)における画像修正処理を行なって被写体を消去した後の画像とをモニタ105上に並べて表示し、その中から使用者によって選択された画像を最終的な編集後の画像として採用するようにしてもよい。
(2) Moreover, you may combine embodiment mentioned above and the said modification (1). That is, the
(3)上述した実施の形態では、制御装置103は、編集対象領域内において最も出現頻度の高い色相を編集対象領域における特徴色として抽出する例について説明した。しかしながら、制御装置103は、編集対象領域内の画像の色情報に基づいて、編集対象領域内の中央部分に存在する色を特定し、これを編集対象領域における特徴色として特定するようにしてもよい。なお、編集対象領域内の中央部分に存在する色とは、例えば、設定された編集対象領域が円形の場合や縦横比が大きく異ならない矩形の場合には、設定された編集対象領域の中心部分またはその近傍の一部分の色成分を意味する。また、設定された編集対象領域が縦横比が大きく異なる矩形の場合には、設定された編集対象領域の短辺方向の中心、かつ長辺方向の全体に分布する色成分を意味する。
(3) In the above-described embodiment, the example has been described in which the
そして、この場合には、制御装置103は、画像内の編集対象領域内において特徴色が算出された画素の画素値を、編集対象領域内における特徴色以外の画素の画素値を用いて置き換えることにより、編集対象領域内に含まれる不要な被写体を消去すればよい。これによって、使用者は、消去したい被写体が中央部分に位置するように編集対象領域を指定する可能性が高いことを加味して、使用者が消去したい被写体を精度高く特定し、これを消去することが可能となる。
In this case, the
(4)あるいは、制御装置103は、編集対象領域内で最も大きな面積を占める色を特徴的な色として特定するようにしてもよい。これによって、使用者は、消去したい被写体を大きく含むように編集対象領域を設定する可能性が高いことを加味して、使用者が消去したい被写体を精度高く特定し、これを消去することが可能となる。
(4) Alternatively, the
(5)あるいは、制御装置103は、編集対象領域内に含まれる複数の色をユーザに提示し、その中からユーザによって選択された色を特徴的な色として特定するようにするようにしてもよい。これによって、使用者は、消去したい被写体の色を直接指定することができるため、使用者が消去したい被写体を精度高く特定し、これを消去することが可能となる。
(5) Alternatively, the
(6)上述した実施の形態では、制御装置103は、編集対象領域内の画像を抽出し、抽出した編集対象領域内の画像を対象として画像修正処理を行う例について説明した。しかしながら、制御装置103は、編集対象領域を複数の分割領域に分割して各分割領域ごとに画像修正処理を行なうようにしてもよい。これによって、例えば使用者によって設定された編集対象領域の面積が大きい場合でも、分割領域ごとに画像修正処理を行なうことができ、処理精度を向上させることができる。
(6) In the above-described embodiment, an example in which the
(7)上述した実施の形態では、使用者は、画像処理アプリケーションが備える編集ツールの1つである矩形ツールや修復ブラシツールを用いて編集対象領域を指定する例について説明した。しかしながら、使用者は、その他の方法によって編集対象領域を指定してもよい。例えば、描画ツールを用いてフリーハンドで画像上に編集対象領域を描画することによって指定してもよい。あるいは、使用者がマウスを使用して画像内で消去したい被写体上の1点をクリックしたときに、制御装置103は、クリックされた位置の画素と連続し、かつ色が類似している画素が存在する領域を自動的に認識し、認識した領域、または認識した領域とその周辺画素とを含んだ領域を編集対象領域としてもよい。
(7) In the above-described embodiment, the user has described an example in which the editing target area is specified using a rectangular tool or a repair brush tool which is one of editing tools included in the image processing application. However, the user may designate the editing target area by other methods. For example, it may be specified by drawing a region to be edited on an image freehand using a drawing tool. Alternatively, when the user uses the mouse to click on a point on the subject to be erased in the image, the
(8)上述した実施の形態、および変形例では、制御装置103は、使用者によって指定された編集対象領域内の画像を抽出し、該編集対象領域内の画像を対象として画像修正処理を行う例について説明した。しかしながら、制御装置103は、編集対象領域内の画像の代わりに、編集対象領域の周辺領域内の画像、または編集対象領域内および編集対象領域の周辺領域内の画像を抽出して、これらの画像を対象として画像修正処理を行うようにしてもよい。
(8) In the embodiment and the modification described above, the
(9)上述した実施の形態では、画像処理装置としては、パソコン100を使用する例について説明したが、これに限定されず、カメラ等の他の機器にも本発明は適用可能である。
(9) In the above-described embodiment, the example in which the
なお、本発明の特徴的な機能を損なわない限り、本発明は、上述した実施の形態における構成に何ら限定されない。また、上述の実施の形態と複数の変形例を組み合わせた構成としてもよい。 Note that the present invention is not limited to the configurations in the above-described embodiments as long as the characteristic functions of the present invention are not impaired. Moreover, it is good also as a structure which combined the above-mentioned embodiment and a some modification.
100 パソコン、101 操作部材、102 接続IF、103 制御装置、104 HDD、105 モニタ 100 PC, 101 operation member, 102 connection IF, 103 control device, 104 HDD, 105 monitor
Claims (11)
前記領域設定手順で設定した前記編集対象領域内の画像、前記編集対象領域の周辺領域内の画像、または前記編集対象領域内と前記編集対象領域の周辺領域内との画像を領域内画像として抽出し、前記領域内画像から特徴色を抽出する抽出手順と、
前記抽出手順で抽出した前記特徴色以外の色に基づいて、前記編集対象領域内に含まれる不要な被写体を消去するために用いる編集用データを生成する生成手順と、
前記生成手順で生成した前記編集用データを用いて、前記編集対象領域内に含まれる不要な被写体を消去する画像処理手順とをコンピュータに実行させるための画像処理プログラム。 An area setting procedure for setting an area set in the target image by the user as an editing target area;
An image in the edit target region set in the region setting procedure, an image in the peripheral region of the edit target region, or an image in the edit target region and the peripheral region of the edit target region is extracted as an intra-region image. And an extraction procedure for extracting a feature color from the in-region image;
A generation procedure for generating editing data used for erasing unnecessary subjects included in the editing target area based on colors other than the characteristic color extracted in the extraction procedure;
An image processing program for causing a computer to execute an image processing procedure for erasing an unnecessary subject included in the editing target area using the editing data generated in the generating procedure.
前記抽出手順は、前記領域内画像の色相の頻度を算出し、前記色相の頻度が最も高い色を前記特徴色として抽出することを特徴とする画像処理プログラム。 In the image processing program according to claim 1,
The extraction procedure calculates an hue frequency of the in-region image, and extracts a color having the highest hue frequency as the characteristic color.
前記生成手順は、前記色相の頻度が2番目に高い色に基づいて前記編集用データを生成し、
前記画像処理手順は、前記編集対象領域内における前記特徴色の画素の画素値を前記編集用データを用いて補正することにより、前記編集対象領域内に含まれる不要な被写体を消去することを特徴とする画像処理プログラム。 The image processing program according to claim 2,
The generation procedure generates the editing data based on a color having the second highest frequency of hue,
In the image processing procedure, an unnecessary subject included in the edit target area is deleted by correcting a pixel value of the pixel of the characteristic color in the edit target area using the editing data. An image processing program.
前記抽出手順は、前記領域内画像の色相の頻度を算出し、前記色相の頻度が2番目に高い色を前記特徴色として抽出することを特徴とする画像処理プログラム。 In the image processing program according to claim 1,
The image processing program characterized in that the extraction procedure calculates a hue frequency of the in-region image and extracts a color having the second highest hue frequency as the characteristic color.
前記生成手順は、前記色相の頻度が最も高い色に基づいて前記編集用データを生成し、
前記画像処理手順は、前記編集対象領域内における前記特徴色の画素の画素値を前記編集用データを用いて補正することにより、前記編集対象領域内に含まれる不要な被写体を消去することを特徴とする画像処理プログラム。 The image processing program according to claim 4,
The generation procedure generates the editing data based on a color having the highest hue frequency,
In the image processing procedure, an unnecessary subject included in the edit target area is deleted by correcting a pixel value of the pixel of the characteristic color in the edit target area using the editing data. An image processing program.
前記抽出手順は、前記領域内画像の中央部分に存在する色を前記特徴色として抽出することを特徴とする画像処理プログラム。 In the image processing program according to claim 1,
The image processing program characterized in that the extraction procedure extracts a color existing in a central portion of the in-region image as the characteristic color.
前記抽出手順は、前記領域内画像内で最も大きな面積を占める色を前記特徴色として抽出することを特徴とする画像処理プログラム。 In the image processing program according to claim 1,
In the image processing program, the extraction procedure extracts a color occupying the largest area in the in-region image as the characteristic color.
前記抽出手順は、前記領域内画像内に含まれる複数の色をユーザに提示し、その中からユーザによって選択された色を前記特徴色として特定することを特徴とする画像処理プログラム。 In the image processing program according to claim 1,
The extraction procedure presents a plurality of colors included in the in-region image to a user, and specifies a color selected by the user as the characteristic color.
前記生成手順は、前記領域内画像内における前記特徴色以外の画素の画素値に基づいて前記編集用データを生成し、
前記画像処理手順は、前記領域内画像内における前記特徴色の画素の画素値を前記編集用データを用いて補正することにより、前記編集対象領域内に含まれる不要な被写体を消去することを特徴とする画像処理プログラム。 In the image processing program as described in any one of Claims 6-8,
The generation procedure generates the editing data based on pixel values of pixels other than the characteristic color in the in-region image,
In the image processing procedure, an unnecessary subject included in the editing target area is deleted by correcting a pixel value of the pixel of the characteristic color in the intra-area image using the editing data. An image processing program.
前記抽出手順は、前記領域内画像を複数の分割領域に分割し、各分割領域ごとに前記特徴色を抽出し、
前記生成手順は、各分割領域ごとに前記編集用データを生成することを特徴とする画像処理プログラム。 In the image processing program as described in any one of Claims 1-9,
The extraction procedure divides the in-region image into a plurality of divided regions, extracts the characteristic color for each divided region,
The generation procedure generates the editing data for each divided region.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010118550A JP5663951B2 (en) | 2010-05-24 | 2010-05-24 | Image processing program and image processing apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010118550A JP5663951B2 (en) | 2010-05-24 | 2010-05-24 | Image processing program and image processing apparatus |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2011249926A true JP2011249926A (en) | 2011-12-08 |
JP5663951B2 JP5663951B2 (en) | 2015-02-04 |
Family
ID=45414691
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2010118550A Active JP5663951B2 (en) | 2010-05-24 | 2010-05-24 | Image processing program and image processing apparatus |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5663951B2 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013179560A1 (en) * | 2012-05-30 | 2013-12-05 | パナソニック株式会社 | Image processing device and image processing method |
KR20190004570A (en) * | 2017-07-04 | 2019-01-14 | 주식회사 케이티 | Appratus and method for providing image from search result page displayed by web browser |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001005987A (en) * | 1999-04-26 | 2001-01-12 | Adobe Syst Inc | Smart erasing brush |
-
2010
- 2010-05-24 JP JP2010118550A patent/JP5663951B2/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001005987A (en) * | 1999-04-26 | 2001-01-12 | Adobe Syst Inc | Smart erasing brush |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013179560A1 (en) * | 2012-05-30 | 2013-12-05 | パナソニック株式会社 | Image processing device and image processing method |
KR20190004570A (en) * | 2017-07-04 | 2019-01-14 | 주식회사 케이티 | Appratus and method for providing image from search result page displayed by web browser |
KR102238812B1 (en) * | 2017-07-04 | 2021-04-09 | 주식회사 케이티 | Appratus and method for providing image from search result page displayed by web browser |
Also Published As
Publication number | Publication date |
---|---|
JP5663951B2 (en) | 2015-02-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2020107297A1 (en) | Video clipping control method, terminal device, system | |
JP4817881B2 (en) | Image processing method and image processing apparatus | |
JP2010016804A (en) | Apparatus and method for processing image, and recording medium | |
JP5663951B2 (en) | Image processing program and image processing apparatus | |
JP6314427B2 (en) | Imaging apparatus, information processing apparatus, control method, and program | |
JP2007043506A (en) | Image processing apparatus, image processing method thereof, program, and storage medium | |
JP2008147850A (en) | Design editing method, design editing device, and design editing program | |
JP5531636B2 (en) | Image processing program and image processing apparatus | |
JP2011228897A (en) | Image processing program and image processing apparatus | |
JP5556194B2 (en) | Display control apparatus and display control program | |
EP2811732B1 (en) | Image processing apparatus, image processing method, computer-readable storage medium and program | |
JP2007293582A (en) | Image processor, setting method of image processing condition in the image processor, and program | |
US9122923B2 (en) | Image generation apparatus and control method | |
JP2007201935A (en) | Control method of image processing apparatus, and image processing apparatus | |
JP2010081504A (en) | Image processor, image processing system, information processing system, and control program of image processor | |
JP2006094030A (en) | Image pickup device, and composite image creating method, and program | |
JP4498245B2 (en) | Color processing method and apparatus | |
JP2015184701A (en) | Image processing apparatus, image processing method, and program | |
JP2010176235A (en) | Image interface and image search program | |
JP2006211140A (en) | Image correction device, image correction program, data converter, and data conversion program | |
JP5132802B2 (en) | Image processing method and image processing apparatus | |
JP2006166052A (en) | Display control device and its method, recording medium and program | |
JP2014174855A (en) | Image processor, image processing method and program | |
JP2019087779A (en) | Image processing system, control method and program of image processing system | |
JP6277062B2 (en) | Video creation device, video creation method, and video creation processing program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20130329 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20140130 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20140218 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20140421 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20140520 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20140718 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20140812 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20141014 |
|
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: 20141111 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20141124 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5663951 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |