JP5173377B2 - Image processing method and apparatus, program, and storage medium - Google Patents
Image processing method and apparatus, program, and storage medium Download PDFInfo
- Publication number
- JP5173377B2 JP5173377B2 JP2007307893A JP2007307893A JP5173377B2 JP 5173377 B2 JP5173377 B2 JP 5173377B2 JP 2007307893 A JP2007307893 A JP 2007307893A JP 2007307893 A JP2007307893 A JP 2007307893A JP 5173377 B2 JP5173377 B2 JP 5173377B2
- Authority
- JP
- Japan
- Prior art keywords
- image
- frame
- feature amount
- color conversion
- interest
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Processing Of Color Television Signals (AREA)
Description
本発明は画像処理装置および画像処理方法に関し、特に動画像データに対してカラーマッチングを行う画像処理装置および画像処理方法に関する。 The present invention relates to an image processing apparatus and an image processing method, and more particularly to an image processing apparatus and an image processing method for performing color matching on moving image data.
人間の色の見え方を予測するために、様々な色知覚モデルが提案されている。その代表的なものに、CIECAM02と呼ばれるカラーアピアランスモデル(CAM)がある。CIECAM02では、白色点や順応輝度、背景輝度、視環境条件といった観察環境のパラメータを設定することができる。CIECAM02を利用してカラーマッチングを行う場合、これらの観察環境パラメータを入力/出力のそれぞれに対して設定できるため、異なる観察環境下におけるカラーマッチングが可能となる。 Various color perception models have been proposed to predict how human colors appear. A typical example is a color appearance model (CAM) called CIECAM02. In CIECAM02, parameters of an observation environment such as a white point, adaptation luminance, background luminance, and viewing environment conditions can be set. When color matching is performed using CIECAM02, these observation environment parameters can be set for each input / output, and color matching under different observation environments becomes possible.
また、カラーアピアランスモデルに対して視覚の空間的特性を組み込んだイメージアピアランスモデルも提案されている。さらに近年は、静止画像だけでなく動画像に対するカラーマッチングも行われている。動画像の見えの予測には、視覚の時間的な特性もさらに考慮される必要がある。 In addition, an image appearance model in which a visual spatial characteristic is incorporated into a color appearance model has been proposed. Furthermore, in recent years, color matching has been performed not only for still images but also for moving images. In order to predict the appearance of a moving image, it is necessary to further consider temporal characteristics of vision.
動画像に対して、イメージアピアランスモデルであるiCAM(image Color Appearance Model)を適用した技術が、例えば非特許文献1に記載されている。この文献には、以下のような技術が記載されている。まず、10秒前のフレーム画像から注目フレーム画像までのフレームに対するローパス画像、及びYローパス画像(絶対輝度画像)に対し、以下に示す(1)式によって算出した順応の重みを掛け合わせる。なお、(1)式においてAWは算出された重みを示し、fはフレーム番号を示す。すなわち、例えば1秒間に30フレームであれば、f=0で現在のフレーム番号、f=-300で10秒前のフレーム番号を示す。
For example, Non-Patent
次に、それら複数の重み付けられたローパス画像及びYローパス画像をそれぞれ合成することによって、注目フレームのローパス画像及びYローパス画像を生成する。そして、これらをiCAMのフレームワークで利用する事により、空間的かつ時間的視覚特性を反映させた動画再生を行っている。
一般的な動画像において、被写体オブジェクトが複数存在することは当然であり、それぞれのオブジェクトは異なる特徴をする。しかしながら上記非特許文献1に記載された技術によれば、フレーム画像全体に対して一様なアピアランス処理を行っていた。したがって、フレーム画像全体に対して一様に時間的視覚特性等が反映されるため、オブジェクトごとの特徴を考慮した適切な処理を行うことができなかった。
In a general moving image, there are naturally a plurality of subject objects, and each object has different characteristics. However, according to the technique described in Non-Patent
この例を図13を用いて説明する。図13に示す車Aと車Bは同一のオブジェクトであり、これらは、動画像のフレーム内を異なる速度で移動しているものとする。車Aと車Bは、もともと同一のオブジェクトであるにも関わらず、その速度の違いにより、それぞれの車に対して知覚される色(色の見え)は一致しないことがある。このように、動画像内のオブジェクトに対する色の見えは、移動速度や位置といったオブジェクトの特徴に応じて異なる場合がある。 This example will be described with reference to FIG. The car A and the car B shown in FIG. 13 are the same object, and these are moving at different speeds in the frame of the moving image. Although the car A and the car B are originally the same object, the colors (color appearances) perceived for each car may not match due to the difference in speed. As described above, the color appearance of an object in a moving image may differ depending on the object characteristics such as moving speed and position.
このように、フレーム画像全体に一様なアピアランス処理を適用した場合、図13に例示したような車Aと車Bの特徴の違いを考慮することができず、それぞれのオブジェクトに対して適切な処理結果が得られない可能性がある。 As described above, when uniform appearance processing is applied to the entire frame image, the difference in characteristics between the car A and the car B illustrated in FIG. 13 cannot be taken into consideration, and appropriate for each object. Processing results may not be obtained.
本発明は上述した問題を解決するためになされたものであり、フレーム画像内のオブジェクト画像ごとに、その特徴量に応じた色変換処理を行う画像処理装置および画像処理方法を提供することを目的とする。 The present invention has been made to solve the above-described problem, and an object thereof is to provide an image processing apparatus and an image processing method for performing color conversion processing according to the feature amount for each object image in a frame image. And
上記目的を達成するための一手段として、本発明の画像処理装置は以下の構成を備える。 As a means for achieving the above object, an image processing apparatus of the present invention comprises the following arrangement.
すなわち、人間の空間的視覚特性及び時間的視覚特性を反映させるように、時分割された複数のフレーム画像からなる動画像を再生する画像処理装置であって、前記複数のフレーム画像内の注目フレーム画像からオブジェクト画像を抽出するオブジェクト抽出手段と、前記抽出したオブジェクトに対するオブジェクト特徴量を取得するオブジェクト特徴量の取得手段と、前記注目フレーム画像に対し、前記オブジェクト画像ごとに前記オブジェクト特徴量に応じた色変換用の準備処理を行って色変換用画像を作成する色変換準備手段と、前記注目フレームまでの予め定められた処理期間内において、フレーム順応時間を取得するフレーム順応時間の取得手段と、前記注目フレーム画像に対し、前記フレーム順応時間に基づいてフレーム順応特徴量を算出するフレーム順応特徴量の算出手段と、前記注目フレーム画像に対し、前記色変換用画像および前記フレーム順応特徴量に基づく色変換を行う色変換手段と、を有することを特徴とする。 That is, an image processing apparatus that reproduces a moving image composed of a plurality of time-divided frame images so as to reflect human spatial visual characteristics and temporal visual characteristics, wherein the frame of interest in the plurality of frame images An object extraction unit that extracts an object image from an image, an object feature amount acquisition unit that acquires an object feature amount for the extracted object, and the object feature amount corresponding to each object image with respect to the target frame image Color conversion preparation means for performing color conversion preparation processing to create a color conversion image, frame adaptation time acquisition means for acquiring a frame adaptation time within a predetermined processing period up to the frame of interest, A frame adaptation feature is applied to the frame image of interest based on the frame adaptation time. A calculation unit frame adaptation feature amount to calculate the amount, relative to the frame image of interest, and having a color conversion unit that performs color conversion based on the color conversion image and the frame adaptation feature amount.
以上の構成からなる本発明によれば、フレーム画像内のオブジェクト画像ごとに、その特徴量に応じた色変換処理を行うことができる。 According to the present invention having the above configuration, color conversion processing corresponding to the feature amount can be performed for each object image in the frame image.
以下、添付の図面を参照して、本発明をその好適な実施形態に基づいて詳細に説明する。なお、以下の実施形態において示す構成は一例に過ぎず、本発明は図示された構成に限定されるものではない。 Hereinafter, the present invention will be described in detail based on preferred embodiments with reference to the accompanying drawings. The configurations shown in the following embodiments are merely examples, and the present invention is not limited to the illustrated configurations.
<第1実施形態>
●装置構成
図1は、本実施形態に係る画像処理装置のブロック構成例を示す図である。同図において、CPU701は、ROM702及びハードディスク等の外部記憶装置705、等に格納されたプログラムに従い、RAM703をワークメモリに利用して、装置全体の動作を司る。CPU701はさらに、本実施形態におけるカラーマッチングに関連する処理をはじめとする各種の画像処理を実行する。
<First Embodiment>
Apparatus Configuration FIG. 1 is a diagram illustrating a block configuration example of an image processing apparatus according to the present embodiment. In the figure, a
入力部704は、キーボードやマウスなどの入力デバイス及びその入力インターフェイスを示し、操作者からの入力指示を受け取る。表示部706は、モニタなどの表示デバイス及びビデオインターフェイスを示し、動画像の表示、本実施形態に関わるユーザインターフェィスの画面を表示する。出力部707は、プリンタなどの出力デバイス及び出力デバイスインターフェイスを示す。
The
動画像入力部708は、ビデオカメラやデジタルカメラ、ビデオプレーヤーなどの動画像データを扱うデバイスより、動画像データを入力して加工する処理部である。例えば、一般に動画像データは画像及び音声から構成されるが、まずこれを画像信号及び音声信号に分離する。そして、画像信号をアナログ信号として受け取った場合に、これをアナログからデジタルに変換する画像A/D処理部や、音声信号をアナログ信号として受け取った場合、アナログからデジタルに変換する音声A/D処理部、等を有する。更に、処理されたデジタル画像信号及びデジタル音声信号を圧縮して合成する合成処理部を有する。また、動画像データがMPEG4などのオブジェクト符号化方式で送られた場合、オブジェクト符号をオブジェクト画像に復号する復号処理部も、動画像入力部708に含まれる。動画像入力部708で取得された画像データは、JPEGやTIFF画像などの画像フォーマットに変換されたることによって、カラーマッチングを行うための画像データが得られる。
The moving
●動画像再生処理概要
図2は、本実施形態に係る画像処理装置における動画像再生処理の概要を示すフローチャートであり、夫々の処理の詳細については後述する。
FIG. 2 is a flowchart showing an outline of a moving image reproduction process in the image processing apparatus according to the present embodiment, and details of each process will be described later.
図1に示す動画像入力部708より入力された動画像データは、まずステップS201において、所定の時間間隔にて静止画像に分割される。分割された静止画像を以降、「フレーム画像」と称する。また、本実施形態におけるカラーマッチング処理対象となるフレーム画像を「注目フレーム画像」と称する。ステップS201ではすなわち、動画像データを時分割して注目フレーム画像を生成する。
The moving image data input from the moving
次にステップS202において、注目フレーム画像に対するフレーム画像情報を作成し、さらにステップS203において、注目フレーム画像に対し、オブジェクトの切り出しを行う。次にステップS204において、切り出されたオブジェクトに対して、本実施形態の特徴である人間の空間的視覚特性および時間的視覚特性を反映させたカラーマッチング処理に必要となる、オブジェクト情報を生成する。 Next, in step S202, frame image information for the target frame image is created, and in step S203, an object is cut out from the target frame image. In step S <b> 204, object information necessary for color matching processing that reflects the human spatial visual characteristics and temporal visual characteristics, which are features of the present embodiment, is generated for the extracted object.
そしてステップS205において、これらのオブジェクト特徴量に応じて、注目フレーム画像に対するローパス画像を生成する。そしてステップS206において、該生成したローパス画像を利用して、注目フレーム画像に対するカラーマッチング処理を行うことにより、再生する動画像データを作成する。 In step S205, a low-pass image for the target frame image is generated according to these object feature amounts. In step S206, color matching processing is performed on the frame image of interest using the generated low-pass image, thereby generating moving image data to be reproduced.
以下、図2に示した各ステップの処理について、詳細に説明する。 Hereinafter, the process of each step shown in FIG. 2 will be described in detail.
●注目フレーム画像分割処理(S201)
動画像入力部708より入力された動画像データは、特定もしくは任意の時間間隔で時分割される。分割されたフレーム画像は、ROM702やRAM703、または外部記憶装置705に保持する。このとき、後述する図3に示すフレーム画像情報テーブルに対し、フレーム画像データアドレス情報403にフレーム画像の格納先を示すアドレスを格納し、さらにフレーム画像サイズ情報404にフレーム画像のデータサイズを格納する。
-Attention frame image division processing (S201)
The moving image data input from the moving
●フレーム画像情報作成処理(S202)
時分割された1フレーム画像に関する情報を、図3に示すようなフレーム画像情報テーブルとして、ROM702やRAM703、または外部記憶装置705に保持する。
● Frame image information creation processing (S202)
Information about one frame image that is time-divided is stored in the
図3に示すように、本実施形態のフレーム画像情報テーブルは、フレーム画像の情報を識別するための番号情報を示すフレーム画像情報識別情報として、フレーム連番401を有する。さらに、フレーム間の時間間隔、すなわちフレーム画像が描画されるインターバルを示す時間情報402、を有する。さらに、記憶装置に格納されているフレーム画像データへのアドレスを示すフレーム画像データアドレス情報403、及びフレーム画像データのデータ長を示すフレーム画像サイズ情報404、を有する。そしてさらに、後述するステップS205で生成される、フレーム画像に対するローパス画像データのアドレスを示すフレームローパス画像アドレス情報405を有する。そしてさらに、フレーム画像内に含まれるオブジェクトの情報を格納しているオブジェクト情報テーブルのアドレスを示すオブジェクト情報テーブルアドレス情報406、及び該テーブルのデータ長を示すオブジェクト情報サイズ情報407、を有する。
As shown in FIG. 3, the frame image information table of this embodiment has a
本実施形態において、フレーム連番401はフレーム画像を再生する順番を示し、フレーム画像が切り出される度にインクリメントされて格納される。また、時間情報402は、フレーム画像が特定の時間間隔で分割されている場合、その分割時間を格納する。これが任意の時間間隔である場合は、注目フレーム画像の前フレーム画像が表示開始された時間から、該注目フレーム画像が表示されるまでの時間を、装置が標準的に備えている時間処理装置(内部クロック)により取得する。
In this embodiment, the
●被写体オブジェクト抽出処理(S203)
ここでは、注目フレーム画像内に含まれる被写体オブジェクトを抽出してオブジェクト画像データを得る。この被写体オブジェクトを抽出する方法としては、周知の方法を適用することが可能であり、例えば以下のような技術が適用される。
Subject object extraction process (S203)
Here, a subject object included in the target frame image is extracted to obtain object image data. As a method of extracting the subject object, a well-known method can be applied. For example, the following technique is applied.
例えば、特開2004−248312号公報に記載された技術によれば、連続する複数のフレーム画像により構成される動画像に含まれる被写体の動きを検出するためにブロックマッチング方法の技術を使用している。このブロックマッチング方法とは、フレーム画像をブロック(領域)に分割し、ブロック単位で前画像との類似位置をパターンマッチングにより探索して、一連の画像に含まれる被写体を検出する。検出されたオブジェクトは、オブジェクトと背景の境界を示す領域境界情報により表現される。この領域境界情報より、オブジェクト画像データを生成することができる。 For example, according to the technique described in Japanese Patent Application Laid-Open No. 2004-248312, the technique of the block matching method is used to detect the motion of a subject included in a moving image composed of a plurality of continuous frame images. Yes. In this block matching method, a frame image is divided into blocks (areas), and a similar position to the previous image is searched for in block units by pattern matching to detect a subject included in a series of images. The detected object is expressed by area boundary information indicating the boundary between the object and the background. Object image data can be generated from this region boundary information.
また、動画像において背景、人物などの複数のオブジェクトを分離し、該オブジェクト毎に符号化を行うオブジェクト符号化方式も知られている。このオブジェクト符号化方式は、動画像符号化方式の国際標準(ISO/IEC MPEG4)等でサポートされている。このようなオブジェクト符号化方式の場合、オブジェクトごとに分離されているオブジェクト符号を受け取り、これを復号してオブジェクト画像データを作成することが可能である。 There is also known an object encoding method in which a plurality of objects such as a background and a person are separated from a moving image and encoding is performed for each object. This object encoding method is supported by the international standard (ISO / IEC MPEG4) of the moving image encoding method. In the case of such an object encoding method, it is possible to receive an object code separated for each object and decode it to create object image data.
本実施形態では、注目フレーム画像から何らかの方法によって抽出されたオブジェクトごとに、図4に示すオブジェクト情報テーブルに新規オブジェクト情報として登録する。また、このオブジェクト情報を示すアドレスは、図3に示すフレーム画像情報テーブルのオブジェクト情報テーブルアドレス情報406に格納され、また、オブジェクト情報のサイズが、オブジェクト情報サイズ情報407に格納される。
In the present embodiment, each object extracted from the target frame image by some method is registered as new object information in the object information table shown in FIG. The address indicating the object information is stored in the object information
図4に示すように、本実施形態のオブジェクト情報テーブルには以下に説明する項目が格納される。まず、オブジェクト情報の識別番号を示すオブジェクト番号501、オブジェクトの分類を示すオブジェクト分類情報テーブルへのアドレスを示すオブジェクト分類情報アドレス情報502を有する。ここでオブジェクト分類情報とは、フレーム画像内に存在するオブジェクトの要素を表すものであり、例えば、後述する図13に示す「車A」などが1つの分類となる。このオブジェクト分類情報の詳細については後述する。
As shown in FIG. 4, items described below are stored in the object information table of the present embodiment. First, it has an
さらに、被写体オブジェクトとして抽出されたオブジェクトの座標情報が格納されるオブジェクト画像位置情報503を有する。このオブジェクト画像位置情報503は、フレーム画像の左上を(0,0)とし、オブジェクト画像の左上端を(0,0)としたときの画素の相対位置を示し、オブジェクトの領域境界の座標情報を示す。この座標は、オブジェクトのローパス画像生成の際に利用される。
Furthermore, it has object
さらに、オブジェクトの移動速度や大きさ等の特徴量を示す、オブジェクト特徴量情報504を有することを特徴とする。
Further, the image processing apparatus is characterized by having object
この被写体オブジェクト抽出処理ではすなわち、図4に示すオブジェクト情報テーブルに対し、オブジェクト番号501およびオブジェクト画像位置情報503を格納する。
In this subject object extraction process, the
●オブジェクト情報生成処理(S204)
図5は、ステップS204におけるオブジェクト情報生成処理の流れを示すフローチャートである。まず、ステップS203の被写体オブジェクト抽出処理において抽出されたオブジェクト画像データが、注目フレーム以前のフレーム画像において、後述するオブジェクト分類情報テーブルに既に登録されているか否かを判定する(S301)。この判定は、例えば以下のように行うことができる。まず、フレーム情報テーブルのフレーム連番401を参照して、注目フレーム画像の連番よりも1つ小さいフレーム連番を持つフレーム情報を取得する。そして、該取得したフレーム情報に対するオブジェクト情報テーブルを参照し、そのオブジェクト画像位置情報503に基づいてオブジェクト画像を抽出する。そして、該抽出したオブジェクト画像が、ステップS203の被写体オブジェクト抽出処理で切り出されたオブジェクト画像と一致するか否かを判定し、一致していれば、既に登録済みであると判定できる。
Object information generation process (S204)
FIG. 5 is a flowchart showing the flow of object information generation processing in step S204. First, it is determined whether or not the object image data extracted in the subject object extraction process in step S203 is already registered in an object classification information table described later in a frame image before the frame of interest (S301). This determination can be performed as follows, for example. First, with reference to the
なお、オブジェクト画像の一致判定の方法としては例えば、オブジェクト画像を構成する全ての画素が一致するか否かを調べることはもちろん、さらにオブジェクト画像に対して拡大,縮小及び回転等を施してパターンマッチングを行うことも有効である。また、オブジェクト画像の一致したサイズと、該オブジェクト画像のオリジナルサイズと、の割合に基づいて、該オブジェクト画像が登録済みであるか否かを判定してもよい。また、オブジェクト符号化を用いた動画像については、オブジェクトを識別するためのオブジェクト信号が取得されるため、オブジェクトの一致の判断は容易である。 As a method for determining the coincidence of the object image, for example, it is possible to check whether all the pixels constituting the object image coincide with each other, or to perform pattern matching by enlarging, reducing, rotating, etc. the object image. It is also effective to perform. Further, whether or not the object image has been registered may be determined based on the ratio between the matching size of the object image and the original size of the object image. For moving images using object coding, an object signal for identifying an object is acquired, so it is easy to determine whether the objects match.
ステップS301において、抽出されたオブジェクトがオブジェクト分類情報テーブルに登録されていないと判断された場合、ステップS302において、該オブジェクトの情報を、オブジェクト分類情報テーブルに新規オブジェクト分類情報として登録する。 If it is determined in step S301 that the extracted object is not registered in the object classification information table, information on the object is registered in the object classification information table as new object classification information in step S302.
ここで図6に、オブジェクト分類情報テーブルの構成例を示す。同図に示すように本実施形態のオブジェクト分類情報テーブルは、オブジェクト分類を識別するためのオブジェクト分類番号901を有する。そしてさらに、オブジェクトが描画開始されたフレーム番号を示す描画開始フレーム番号902、およびオブジェクトが描画終了したフレーム番号を示す描画終了フレーム番号903、を有する。そしてさらに、注目フレーム(すなわち描画終了フレーム)におけるオブジェクト特徴量を示す、注目フレームオブジェクト特徴量情報904を有する。
FIG. 6 shows a configuration example of the object classification information table. As shown in the figure, the object classification information table of this embodiment has an
オブジェクト分類情報テーブルに対してオブジェクト分類情報を新規登録する場合、オブジェクト分類番号901の最大値に1を加えて、新たなオブジェクト分類番号901を登録する。そして、描画開始フレーム番号902、及び描画終了フレーム番号903の両方に対して、注目フレーム番号を登録する。そして、登録したオブジェクト分類情報を示すアドレスを、図4に示すオブジェクト情報テーブルのオブジェクト分類情報アドレス情報502に格納する。
When newly registering object classification information in the object classification information table, 1 is added to the maximum value of the
一方、ステップS301においてオブジェクト分類情報が登録済みと判断された場合にはステップS303に進み、登録されていたオブジェクト分類情報を更新する。すなわち、そのオブジェクト分類情報の描画終了フレーム番号903に1を加える。そしてさらに、既に登録されていたオブジェクト分類情報のアドレスを、図4に示すオブジェクト情報テーブルのオブジェクト分類情報アドレス情報502に格納する。
On the other hand, if it is determined in step S301 that the object classification information has been registered, the process proceeds to step S303, where the registered object classification information is updated. That is, 1 is added to the drawing
ステップS302における新規登録処理、またはステップS303における更新処理を終了した後、ステップS304において、オブジェクトの特徴量を算出する。ここでは、オブジェクト特徴量としてオブジェクトの「移動速度」を例として説明する。オブジェクト移動速度は、例えば、注目フレームとその直前のフレーム(注目フレームのフレーム連番−1)における、オブジェクト画像位置情報503の差分ΔPos、および、時間情報402の差分ΔTに基づき、以下の(2)式により算出される。
After completing the new registration process in step S302 or the update process in step S303, the feature amount of the object is calculated in step S304. Here, the “movement speed” of the object will be described as an example of the object feature amount. The object moving speed is based on, for example, the following (2) based on the difference ΔPos in the object
(2)式において、fはフレーム番号を示し、オブジェクトが新規描画オブジェクトである場合には、V(f)=0とすれば良い。 In the equation (2), f indicates a frame number. When the object is a new drawing object, V (f) = 0 may be set.
なお、ここではオブジェクト特徴量としてオブジェクトの「移動速度」を例として説明したが、他の特徴量として、オブジェクトの「移動加速度」や「大きさ」等も利用可能である。「移動加速度」については、上記(2)式のV(f)をΔTで除算することにより算出できるし、「大きさ」については、オブジェクトの連結成分を演算することで算出可能である。また、図4に示すオブジェクト情報テーブルに格納されているオブジェクト画像位置情報503を、オブジェクト特徴量として利用しても良い。
Here, the “movement speed” of the object has been described as an example of the object feature amount, but “movement acceleration”, “size”, and the like of the object can also be used as other feature amounts. The “movement acceleration” can be calculated by dividing V (f) in the above equation (2) by ΔT, and the “size” can be calculated by calculating the connected component of the object. Further, the object
ここで算出されたオブジェクト特徴量は、図4に示すオブジェクト情報テーブルのオブジェクト特徴量情報504と、図6に示すオブジェクト分類情報テーブルの注目フレームオブジェクト特徴量情報904に格納される。なお、オブジェクトが新規オブジェクトでない場合には、注目フレームオブジェクト特徴量情報904を上書き更新する。
The object feature amount calculated here is stored in the object
以上のようにステップS304でオブジェクトの特徴量が算出されると、次にステップS305において、フレーム内の全てのオブジェクト画像に対し、オブジェクト情報を生成したか否かを判定する。全ての作成が終了している場合は、オブジェクト情報生成処理を終了するが、作成していない場合は、ステップS301に戻って次のオブジェクト情報を生成する。 As described above, when the object feature amount is calculated in step S304, it is determined in step S305 whether object information has been generated for all object images in the frame. If all creations have been completed, the object information generation process is terminated. If not, the process returns to step S301 to generate the next object information.
ステップS204のオブジェクト情報生成処理ではすなわち、図4に示すオブジェクト情報テーブルに対し、オブジェクト分類情報アドレス情報502、およびオブジェクト特徴量情報504を格納する。
In the object information generation process in step S204, that is, object classification
●注目フレームローパス画像生成処理(S205)
図7は、ステップS205における注目フレームローパス画像生成処理の流れを示すフローチャートである。
● attention frame low-pass image generation processing (S205)
FIG. 7 is a flowchart showing the flow of the attention frame low-pass image generation processing in step S205.
まずステップS601において、注目フレーム画像に対するフレームローパス画像を生成、保存し、図3に示すフレーム画像情報テーブルにそのアドレス情報をセットする。このフレームローパス画像はXYZ画像として扱われるため、ここでは注目フレーム画像をXYZ画像に変換し、ガウシアンフィルタ等のローパスフィルタを適用して生成される。なお、このステップS601において、本実施形態の特徴であるオブジェクト特徴量に応じたローパス画像生成処理が行われるが、その詳細については後述する。 First, in step S601, a frame low-pass image for the frame image of interest is generated and stored, and the address information is set in the frame image information table shown in FIG. Since this frame low-pass image is treated as an XYZ image, the frame image of interest is converted into an XYZ image and generated by applying a low-pass filter such as a Gaussian filter. In step S601, low-pass image generation processing is performed in accordance with the object feature amount that is a feature of the present embodiment. Details thereof will be described later.
次に、後述する重み付きローパス画像の生成対象となる開始フレーム・終了フレームのフレーム連番を取得する(S602)。本実施形態では、上記非特許文献1に記載された技術と同様に、注目フレームとその10秒前のフレームまでの処理期間内に存在するフレーム画像に対してローパス画像を生成する。したがって、ローパス画像生成対象の開始フレーム連番に、注目フレームから−10secにあたるフレームのフレーム連番を設定する。また、ローパス画像生成対象の終了フレーム連番に、注目フレームのフレーム連番を設定する。ここで、−10secの時間情報は、図3に示すフレーム画像情報テーブルの時間情報402に基づいて算出する。このとき、−10secちょうどに相当するフレームがない場合は、−10secに最も近いフレームを代わりに用いれば良い。
Next, the frame sequential numbers of the start frame and the end frame that are the generation targets of the weighted low-pass image described later are acquired (S602). In the present embodiment, similarly to the technique described in
そして、ローパス画像生成カウンタiに、ステップS602で設定したローパス画像生成対象の開始フレーム連番を設定する(S603)。 Then, the start frame serial number of the low-pass image generation target set in step S602 is set in the low-pass image generation counter i (S603).
そしてステップS604〜S606において、1フレーム画像に対するフレームローパス画像の生成を行う。以下、この1フレーム画像に対する処理について説明する。 In steps S604 to S606, a frame low-pass image for one frame image is generated. Hereinafter, the process for this one-frame image will be described.
まず、ローパス画像生成カウンタiが示すフレーム連番のフレームローパス画像、及び時間情報を、図3に示すフレーム画像情報テーブルより取得する(S604)。次に、注目フレームの時間情報とフレーム連番iのフレームの時間情報に基づき、フレーム画像の相対時間を算出する(S605)。この相対時間がすなわちフレーム順応時間に相当し、例えば1秒間に30フレームが描画されるのであれば、この順応時間は注目フレームに対しては0となり、−10sec相当のフレームに対しては−300となる。 First, the frame sequential frame low-pass image indicated by the low-pass image generation counter i and the time information are acquired from the frame image information table shown in FIG. 3 (S604). Next, the relative time of the frame image is calculated based on the time information of the frame of interest and the time information of the frame with the frame sequence number i (S605). This relative time corresponds to the frame adaptation time. For example, if 30 frames are drawn per second, this adaptation time is 0 for the frame of interest and −300 for the frame corresponding to −10 sec. It becomes.
以上のようにステップS605におけるフレーム順応時間取得処理が終了すると、次にステップS606において、フレーム順応時間を適用した重み付きローパス画像を生成する。すなわち、ステップS604で取得したフレームローパス画像に対し、フレーム順応特徴量であるローパス重みAWを乗じる。このAWは、上記(1)式に対してステップS605で取得したフレーム順応時間を適用することによって算出できる。これにより、視覚の時間特性を反映する重み付きローパス画像が生成される。 When the frame adaptation time acquisition process in step S605 is completed as described above, in step S606, a weighted low-pass image to which the frame adaptation time is applied is generated. That is, the frame low-pass image acquired in step S604 is multiplied by a low-pass weight AW that is a frame adaptation feature amount. This AW can be calculated by applying the frame adaptation time acquired in step S605 to the above equation (1). As a result, a weighted low-pass image that reflects visual temporal characteristics is generated.
次に、ローパス画像生成カウンタiがローパス画像生成対象の終了フレーム(すなわち注目フレーム)に相当するか否かを判定する(S607)。ここで終了フレームでない場合には、ローパス画像生成カウンタiに1を加算して(S608)、ステップS604の処理に移行する。一方、終了フレームであった場合には、ステップS606で生成した各フレームの重み付きローパス画像を合成することによって、注目フレームに対するローパス画像を生成する(S609)。 Next, it is determined whether or not the low-pass image generation counter i corresponds to a low-pass image generation target end frame (that is, a target frame) (S607). If it is not the end frame, 1 is added to the low-pass image generation counter i (S608), and the process proceeds to step S604. On the other hand, if it is the end frame, the low-pass image for the frame of interest is generated by synthesizing the weighted low-pass images of the frames generated in step S606 (S609).
●ローパス画像生成処理詳細(S601)
図8は、ステップS601における注目フレームのフレームローパス画像生成処理を示すフローチャートである。
Details of low-pass image generation processing (S601)
FIG. 8 is a flowchart showing frame low-pass image generation processing of the frame of interest in step S601.
まず、ステップS801において、注目フレームの背景ローパス画像を生成する。この背景ローパス画像は、非特許文献1に記載された技術と同様に、注目フレーム画像にローパスフィルタであるガウシアンフィルタを適用して得られる画像である。もちろん、ここでのローパス処理はガウシアンフィルタによるフィルタリングに限定するものではなく、他のローパスフィルタや人間のコントラスト感度特性に基づくローパス処理を行っても良い。
First, in step S801, a background low-pass image of the frame of interest is generated. This background low-pass image is an image obtained by applying a Gaussian filter, which is a low-pass filter, to the frame image of interest, as in the technique described in
次に、ステップS802,S803において、注目フレーム画像内のオブジェクトに対し、本実施形態の特徴であるオブジェクトの特徴量に応じた処理の変更を行って、オブジェクトのローパス画像を生成する。 Next, in steps S802 and S803, the processing in the object frame image is changed according to the feature amount of the object, which is a feature of this embodiment, to generate a low-pass image of the object.
ステップS802においては、注目フレーム画像内の1オブジェクトのオブジェクト特徴量を取得する。オブジェクト特徴量は、図6に示すオブジェクト分類情報テーブルに格納された注目フレームオブジェクト特徴量情報904、または図4に示すオブジェクト情報テーブルにおけるオブジェクト特徴量情報504を利用する。ここでは、注目フレームオブジェクト特徴量情報904に格納された注目フレームにおける「移動速度」特徴量を取得するとする。
In step S802, the object feature amount of one object in the target frame image is acquired. As the object feature amount, attention frame object
次にステップS803において、本実施形態における色変換準備処理として、オブジェクトの色変換用画像すなわちローパス画像を生成する。ここでは、ステップS802で取得したオブジェクトの「移動速度」に応じて、ローパスフィルタのフィルタサイズを変更する。例えば、「大」「中」「小」といった3段階のサイズのフィルタを用意し、移動速度が大きいほど大きいフィルタを利用する、というように段階的な変更を行うことが考えられる。あるいは、移動速度を入力、フィルタサイズを出力とし、移動速度が小さいほど小さい値を出力するような関数を利用して、連続的な変更を行っても良い。 Next, in step S803, an object color conversion image, that is, a low-pass image is generated as color conversion preparation processing in the present embodiment. Here, the filter size of the low-pass filter is changed in accordance with the “movement speed” of the object acquired in step S802. For example, it is conceivable to perform a step-by-step change such as preparing filters of three levels such as “large”, “medium”, and “small” and using a larger filter as the moving speed increases. Alternatively, the continuous change may be performed using a function that inputs the moving speed, outputs the filter size, and outputs a smaller value as the moving speed is lower.
なお、ここではフィルタ処理の変更に利用するオブジェクト特徴量としてオブジェクトの「移動速度」を用いる例を示したが、これに代えてオブジェクトの「移動加速度」や「大きさ」、「位置情報」等の他の特徴量を利用しても良い。また、これらの特徴量を複数組合せたものを利用しても良い。 Here, an example is shown in which the “movement speed” of the object is used as the object feature amount used for changing the filter processing, but instead of this, the “movement acceleration”, “size”, “position information”, etc. of the object Other feature quantities may be used. A combination of a plurality of these feature amounts may be used.
次にステップS804において、ステップS803で生成したオブジェクトローパス画像を、ステップS801で生成した背景ローパス画像に合成する。具体的には、背景ローパス画像のオブジェクト領域をオブジェクトローパス画像で上書きする。 In step S804, the object low-pass image generated in step S803 is combined with the background low-pass image generated in step S801. Specifically, the object region of the background low-pass image is overwritten with the object low-pass image.
次にステップS805において、フレーム内の全てのオブジェクトに対して処理を終了したか否かを判定し、未処理のオブジェクトが残っている場合はステップS802に戻る。全てのオブジェクトに対する処理が終了した場合はステップS806に移行する。 Next, in step S805, it is determined whether or not processing has been completed for all the objects in the frame. If unprocessed objects remain, the process returns to step S802. If the processing for all objects is completed, the process proceeds to step S806.
ステップS806では、全てのオブジェクトローパス画像が合成された背景ローパス画像を、フレームローパス画像としてROM702やRAM703、または外部記憶装置705に格納する。そして、そのアドレスを図3に示すフレーム画像情報テーブルのフレームローパス画像アドレス情報405に格納する。
In step S806, the background low-pass image obtained by combining all the object low-pass images is stored in the
以上、図7および図8のフローチャートにより説明した処理によって、注目フレームに対するローパス画像が生成される。 As described above, the low-pass image for the frame of interest is generated by the processing described with reference to the flowcharts of FIGS.
ここで図9に、以上の動作を模式的に示す。図9によれば、車Aと車Bのそれぞれのオブジェクトに対して、オブジェクト特徴量(移動速度)に応じた処理が行われていることが分かる。すなわち、車Aと車Bのそれぞれのオブジェクトに対して、まず移動速度に応じたローパスフィルタ処理を行ってフレーム毎のローパス画像を作成する。そして、(1)式の重み付けに基づいて複数フレームのローパス画像を合成することで、注目フレームに対するローパス画像が生成されている。 FIG. 9 schematically shows the above operation. According to FIG. 9, it can be seen that the processing corresponding to the object feature amount (movement speed) is performed on each object of the car A and the car B. That is, the low-pass filter process corresponding to the moving speed is first performed on each object of the car A and the car B to create a low-pass image for each frame. Then, a low-pass image for the frame of interest is generated by synthesizing a plurality of frames of low-pass images based on the weighting of equation (1).
●再生画像生成処理(S206)
図10は、ステップS206における再生画像生成処理の流れを示すフローチャートである。ここでは、上記非特許文献1と同様にiCAMのフレームワークを利用する例を示す。
Reproduction image generation process (S206)
FIG. 10 is a flowchart showing the flow of the reproduction image generation process in step S206. Here, an example in which the iCAM framework is used as in
まず、注目フレーム画像(XYZ画像)及びステップS205で生成したフレームローパス画像に対し、以下の(3),(4)式に基づいて色順応変換処理を行う(S1001)。 First, chromatic adaptation conversion processing is performed on the target frame image (XYZ image) and the frame low-pass image generated in step S205 based on the following equations (3) and (4) (S1001).
(3)式により変換された注目フレーム画像の各画素をR,G,Bとし、同じく(3)式により変換されたローパス画像の各画素をRw,Gw,Bwとすると、色順応後のRGB値(Rc,Gc,Bc)は、以下の(5)〜(7)式から算出される。 If each pixel of the frame image of interest converted by the equation (3) is R, G, B, and each pixel of the low-pass image converted by the equation (3) is Rw, Gw, Bw, RGB after chromatic adaptation Values (Rc, Gc, Bc) are calculated from the following equations (5) to (7).
ここで、Dはデバイス白色への順応度合いを表すパラメータであり、0(順応なし)〜1(完全順応)の値をとる。 Here, D is a parameter representing the degree of adaptation to the device white color, and takes a value from 0 (no adaptation) to 1 (complete adaptation).
次に、観察条件係数FLを画素ごとに算出する(S1002)。ここで観察条件FLは、フレームローパス画像のY値(YA)から作成されるYローパス画像(絶対輝度画像)に基づき、以下の(8)式により算出される。 Next, the observation condition coefficient FL is calculated for each pixel (S1002). Here, the observation condition FL is calculated by the following equation (8) based on the Y low-pass image (absolute luminance image) created from the Y value (YA) of the frame low-pass image.
次に、ステップS1001で変換された順応後のRGB値(Rc,Gc,Bc)をIPT空間に変換する(S1003)。ここでIPT空間とは、Iが明暗の度合い、Pが赤−緑の色合い、Tが黄−青の色合い、をそれぞれ表す直方色空間である。以下、このIPT空間への変換処理について具体的に説明する。 Next, the RGB values after adaptation (Rc, Gc, Bc) converted in step S1001 are converted into an IPT space (S1003). Here, the IPT space is a rectangular color space in which I represents the degree of light and darkness, P represents a red-green hue, and T represents a yellow-blue hue. Hereinafter, the conversion process to the IPT space will be specifically described.
まず、順応後のRc,Gc,Bcを、以下に示す(9)〜(11)式にしたがって、錐体応答空間LMSに変換する。 First, Rc, Gc, and Bc after adaptation are converted into a cone response space LMS according to the following equations (9) to (11).
そして次に、以下に示す(12)〜(14)式に従って錐体応答の非線形圧縮を適用するが、その際に、式(8)で算出したFL値を利用する。 Then, non-linear compression of the cone response is applied according to the following equations (12) to (14), and the FL value calculated by equation (8) is used at that time.
その後、下記の(15),(16)式を利用して、IPT空間への変換を行う。 Thereafter, conversion to the IPT space is performed using the following equations (15) and (16).
以上のようにIPT空間への変換が終了すると、次に、IPT空間上の色を動画像を表示するモニタのRGB空間に逆変換する(S1004)。IPTからモニタRGBへの変換は、まずIPT値から順応RGB値への逆変換を行い、それをモニタの観察環境に応じたXYZ値に変換し、さらにモニタの特性に基づいてモニタRGB値に変換することによって、行われる。 When the conversion to the IPT space is completed as described above, the color in the IPT space is then inversely converted to the RGB space of the monitor that displays the moving image (S1004). For conversion from IPT to monitor RGB, first, reverse conversion from IPT value to adaptive RGB value is performed, converted to XYZ value according to the monitor's observation environment, and further converted to monitor RGB value based on the characteristics of the monitor Is done by doing.
以上説明した様に本実施形態によれば、フレーム内におけるオブジェクトごとに、その特徴量に基づいてローパス画像の生成処理を変更することにより、動画像に対してより適切なアピアランス処理を適用することが可能となる。 As described above, according to the present embodiment, a more appropriate appearance process is applied to a moving image by changing the low-pass image generation process based on the feature amount for each object in the frame. Is possible.
<第2実施形態>
以下、本発明に係る第2実施形態について説明する。第2実施形態における動画像再生処理は上述した第1実施形態とほぼ同様であるが、ステップS205の注目フレームローパス画像生成処理が異なる。したがって、以下では第2実施形態における注目フレームローパス画像再生処理について説明し、その他の処理については上述した第1実施形態と同様であるため、説明を省略する。
Second Embodiment
Hereinafter, a second embodiment according to the present invention will be described. The moving image reproduction process in the second embodiment is almost the same as that in the first embodiment described above, but the attention frame low-pass image generation process in step S205 is different. Therefore, the attention frame low-pass image reproduction process in the second embodiment will be described below, and the other processes are the same as those in the first embodiment described above, and the description thereof will be omitted.
●注目フレームローパス画像生成処理(S205)
図11は、第2実施形態における注目フレームローパス画像生成処理を示すフローチャートである。第2実施形態では、上述した第1実施形態で図7のフローチャートに示した処理に対して、オブジェクト特徴量に応じた処理を行うタイミングが異なる。すなわち、第1実施形態ではステップS601において、注目フレームに対し、オブジェクト特徴に応じた処理を行っていた。しかしながら第2実施形態では後述するように、注目フレームだけでなくそれ以前のフレームに対しても、それぞれのオブジェクト特徴量を利用することを特徴とする。
● attention frame low-pass image generation processing (S205)
FIG. 11 is a flowchart showing the attention frame low-pass image generation processing in the second embodiment. In the second embodiment, the timing for performing the process according to the object feature amount is different from the process shown in the flowchart of FIG. 7 in the first embodiment. That is, in the first embodiment, in step S601, a process corresponding to the object feature is performed on the frame of interest. However, as described later, the second embodiment is characterized in that each object feature amount is used not only for the frame of interest but also for the previous frame.
まずステップS1101において、注目フレーム画像に対するフレームローパス画像を生成、保存する。このフレームローパス画像はXYZ画像として扱われるため、ここでは注目フレーム画像をXYZ画像に変換し、ガウシアンフィルタ等のローパスフィルタを適用して生成される。作成されたフレームローパス画像は、ROM702やRAM703、または外部記憶装置705に格納され、そのアドレスが、図3に示すフレーム画像情報テーブルのフレームローパス画像アドレス情報405に格納される。なお、このステップS1101では、第1実施形態で示した図7のステップS601ようにオブジェクト特徴量に応じたローパス画像生成処理は行わない。
First, in step S1101, a frame low-pass image for the frame image of interest is generated and stored. Since this frame low-pass image is treated as an XYZ image, the frame image of interest is converted into an XYZ image and generated by applying a low-pass filter such as a Gaussian filter. The created frame low-pass image is stored in the
次に、後述する重み付きローパス画像の生成対象となる開始フレーム・終了フレームのフレーム連番を取得する(S1102)。本実施形態では、上記非特許文献1に記載された技術と同様に、注目フレームとその10秒前のフレームまでの間に存在するフレーム画像に対してローパス画像を生成している。したがって、ローパス画像生成対象の開始フレーム連番に、注目フレームから−10secにあたるフレームのフレーム連番を設定する。また、ローパス画像生成対象の終了フレーム連番に、注目フレームのフレーム連番を設定する。ここで、−10secの時間情報は、図3に示すフレーム画像情報テーブルの時間情報402に基づいて算出する。このとき、−10secちょうどに相当するフレームがない場合は、−10secに最も近いフレームを代わりに用いれば良い。
Next, the frame sequential numbers of the start frame and end frame that are the generation targets of the weighted low-pass image to be described later are acquired (S1102). In the present embodiment, similarly to the technique described in
そして、ローパス画像生成カウンタiに、ステップS1102で設定したローパス画像生成対象の開始フレーム連番を設定する(S1103)。 Then, the low-pass image generation counter i is set to the start frame serial number of the low-pass image generation target set in step S1102 (S1103).
そしてステップS1104〜S1108において、1フレーム画像に対するフレームローパス画像の生成を行う。以下、この1フレーム画像に対する処理について説明する。 In steps S1104 to S1108, a frame low-pass image for one frame image is generated. Hereinafter, the process for this one-frame image will be described.
まず、ローパス画像生成カウンタiが示すフレーム連番のフレームローパス画像、及び時間情報を、図3に示すフレーム画像情報テーブルより取得する(S1104)。次に、注目フレームの時間情報とフレーム連番iのフレームの時間情報に基づき、フレーム画像の相対時間を算出する(S1105)。 First, the frame sequential frame low-pass image indicated by the low-pass image generation counter i and the time information are acquired from the frame image information table shown in FIG. 3 (S1104). Next, the relative time of the frame image is calculated based on the time information of the frame of interest and the time information of the frame with the frame sequence number i (S1105).
次に、上記相対時間に基づいて重みつきローパス画像を生成する(S1106)。具体的には、ステップS1105で算出した相対時間に基づいて、(1)式からローパス重みAWを算出し、このローパス重みAWをステップS1104で取得したフレームローパス画像に乗じる。これにより、視覚の時間特性を反映した重み付きローパス画像が生成され、以下、このローパス画像を重み付き背景ローパス画像と称する。 Next, a weighted low-pass image is generated based on the relative time (S1106). Specifically, based on the relative time calculated in step S1105, the low-pass weight AW is calculated from the equation (1), and the low-pass weight AW is multiplied by the frame low-pass image acquired in step S1104. As a result, a weighted low-pass image reflecting visual temporal characteristics is generated, and this low-pass image is hereinafter referred to as a weighted background low-pass image.
次に、ステップS1107,S1108において、フレーム画像内のオブジェクトに対し、第2実施形態の特徴であるオブジェクトの特徴量に応じた処理の変更を行って、重み付きローパス画像を生成する。 Next, in steps S1107 and S1108, the processing in the frame image is changed according to the feature amount of the object, which is a feature of the second embodiment, to generate a weighted low-pass image.
ステップS1107においては、フレーム連番iのフレーム画像内における1オブジェクトのオブジェクト特徴量を取得する。オブジェクト特徴量は、図4に示すオブジェクト情報テーブルにおいてフレームごとに格納されたオブジェクト特徴量情報504を利用するが、ここでは、「移動速度」特徴量を利用するとする。
In step S1107, the object feature amount of one object in the frame image of frame sequence number i is acquired. As the object feature amount, the object
次にステップS1108において、ステップS1106で生成した重み付き背景ローパス画像におけるオブジェクト画像領域に重みを設定して、重み付き背景ローパス画像を更新する。例えば、移動速度Vが大きいほど1に近づき、Vが小さいほど0に近づくような、移動速度Vに対する重み関数VW(V)を定義し、ステップS1107で取得したオブジェクトの移動速度から、移動速度による重みVWを算出する。この重みVWが、第2実施形態におけるオブジェクト順応特徴量となる。この重みVWをステップS1106で生成した重み付き背景ローパス画像におけるオブジェクト画像領域のデータに乗じることによって、オブジェクトの特徴量に応じた重み付けを行ったローパス画像が生成される。 In step S1108, a weight is set for the object image area in the weighted background low-pass image generated in step S1106, and the weighted background low-pass image is updated. For example, a weighting function VW (V) for the moving speed V is defined such that the moving speed V approaches 1 as the moving speed V increases, and approaches 0 as the V decreases, and the moving speed of the object acquired in step S1107 depends on the moving speed. A weight VW is calculated. This weight VW is the object adaptation feature amount in the second embodiment. By multiplying the weight VW by the data of the object image area in the weighted background low-pass image generated in step S1106, a low-pass image weighted according to the feature amount of the object is generated.
ここで図12に、以上の動作を模式的に示す。図12によれば、車Aと車Bのそれぞれのオブジェクトに対して、フレーム毎のオブジェクト特徴量(移動速度)に基づいた重み付け(VW)を行うことにより、注目フレームに対する重み付きローパス画像を生成していることが分かる。 FIG. 12 schematically shows the above operation. According to FIG. 12, a weighted low-pass image for the frame of interest is generated by performing weighting (VW) based on the object feature amount (moving speed) for each object for each object of car A and car B. You can see that
なお、ここではオブジェクトに対する重みを算出するためのオブジェクト特徴量としてオブジェクトの「移動速度」を用いる例を示したが、これに代えてオブジェクトの「移動加速度」や「大きさ」、「位置情報」等の他の特徴量を利用しても良い。また、これらの特徴量を複数組合せたものを利用しても良い。 In this example, the “movement speed” of the object is used as the object feature amount for calculating the weight for the object. Instead, the “movement acceleration”, “size”, and “position information” of the object are used instead. Other feature amounts such as may be used. A combination of a plurality of these feature amounts may be used.
そして、フレーム内の全てのオブジェクトに対し、オブジェクトごとの順応時間を適用しオブジェクトローパス画像を生成したか否かを判定する(S1109)。全てのオブジェクトに対する処理が終了した場合にはステップS1110に移行するが、未終了であればステップS1107に戻る。 Then, it is determined whether an object low-pass image has been generated by applying the adaptation time for each object to all objects in the frame (S1109). If the processing for all objects has been completed, the process proceeds to step S1110. If the process has not been completed, the process returns to step S1107.
ステップS1110では、ローパス画像生成カウンタiがローパス画像生成対象の終了フレーム(すなわち注目フレーム)に相当するか否かを判定する。ここで終了フレームでない場合には、ローパス画像生成カウンタiに1を加算して(S1111)、ステップS1104の処理に移行する。一方、終了フレームであった場合には、ステップS1108で生成した複数の重み付きローパス画像を合成することによって、注目フレームに対するローパス画像を生成する(S1112)。 In step S1110, it is determined whether or not the low-pass image generation counter i corresponds to an end frame (that is, a target frame) that is a low-pass image generation target. If it is not the end frame, 1 is added to the low-pass image generation counter i (S1111), and the process proceeds to step S1104. On the other hand, if it is an end frame, a plurality of weighted low-pass images generated in step S1108 are combined to generate a low-pass image for the frame of interest (S1112).
なお、第2実施形態においては、特徴量に応じてオブジェクトローパス画像の重み値を変更することでオブジェクト特徴量に応じた処理の変更を実現する例を示したが、上述した第1実施形態と同様にフィルタサイズを変更しても良い。 In the second embodiment, the example in which the processing change according to the object feature amount is realized by changing the weight value of the object low-pass image according to the feature amount is described. However, the second embodiment is different from the first embodiment described above. Similarly, the filter size may be changed.
以上説明したように第2実施形態によれば、上述した第1実施形態と同様の効果が得られることに加えて、注目フレームだけでなく、それ以前のフレームにおける特徴量も利用することによって、時間的視覚特性の制御をより詳細に行うことができる。 As described above, according to the second embodiment, in addition to obtaining the same effects as those of the first embodiment described above, not only the attention frame but also the feature amount in the previous frame is used. The temporal visual characteristics can be controlled in more detail.
<他の実施形態>
以上、実施形態例を詳述したが、本発明は例えば、システム、装置、方法、プログラム若しくは記録媒体(記憶媒体)等としての実施態様をとることが可能である。具体的には、複数の機器(例えば、ホストコンピュータ、インタフェース機器、撮像装置、webアプリケーション等)から構成されるシステムに適用しても良いし、また、一つの機器からなる装置に適用しても良い。
<Other embodiments>
Although the embodiment has been described in detail above, the present invention can take an embodiment as a system, apparatus, method, program, recording medium (storage medium), or the like. Specifically, the present invention may be applied to a system composed of a plurality of devices (for example, a host computer, an interface device, an imaging device, a web application, etc.), or may be applied to a device composed of a single device. good.
尚本発明は、前述した実施形態の機能を実現するソフトウェアプログラムを、システムあるいは装置に直接あるいは遠隔から供給し、そのシステムあるいは装置のコンピュータが該供給されたプログラムコードを読み出して実行することによっても達成される。なお、この場合のプログラムとは、コンピュータ読取可能であり、実施形態において図に示したフローチャートに対応したプログラムである。 The present invention also provides a software program that realizes the functions of the above-described embodiments directly or remotely to a system or apparatus, and the system or apparatus computer reads out and executes the supplied program code. Achieved. The program in this case is a computer-readable program that corresponds to the flowchart shown in the drawing in the embodiment.
従って、本発明の機能処理をコンピュータで実現するために、該コンピュータにインストールされるプログラムコード自体も本発明を実現するものである。つまり、本発明は、本発明の機能処理を実現するためのコンピュータプログラム自体も含まれる。 Accordingly, since the functions of the present invention are implemented by computer, the program code installed in the computer also implements the present invention. In other words, the present invention includes a computer program itself for realizing the functional processing of the present invention.
その場合、プログラムの機能を有していれば、オブジェクトコード、インタプリタにより実行されるプログラム、OSに供給するスクリプトデータ等の形態であっても良い。 In that case, as long as it has the function of a program, it may be in the form of object code, a program executed by an interpreter, script data supplied to the OS, or the like.
プログラムを供給するための記録媒体としては、以下に示す媒体がある。例えば、フロッピー(登録商標)ディスク、ハードディスク、光ディスク、光磁気ディスク、MO、CD-ROM、CD-R、CD-RW、磁気テープ、不揮発性のメモリカード、ROM、DVD(DVD-ROM,DVD-R)などである。 Recording media for supplying the program include the following media. For example, floppy disk, hard disk, optical disk, magneto-optical disk, MO, CD-ROM, CD-R, CD-RW, magnetic tape, nonvolatile memory card, ROM, DVD (DVD-ROM, DVD- R).
プログラムの供給方法としては、以下に示す方法も可能である。すなわち、クライアントコンピュータのブラウザからインターネットのホームページに接続し、そこから本発明のコンピュータプログラムそのもの(又は圧縮され自動インストール機能を含むファイル)をハードディスク等の記録媒体にダウンロードする。また、本発明のプログラムを構成するプログラムコードを複数のファイルに分割し、それぞれのファイルを異なるホームページからダウンロードすることによっても実現可能である。つまり、本発明の機能処理をコンピュータで実現するためのプログラムファイルを複数のユーザに対してダウンロードさせるWWWサーバも、本発明に含まれるものである。 As a program supply method, the following method is also possible. That is, the browser of the client computer is connected to a homepage on the Internet, and the computer program itself (or a compressed file including an automatic installation function) of the present invention is downloaded to a recording medium such as a hard disk. It can also be realized by dividing the program code constituting the program of the present invention into a plurality of files and downloading each file from a different homepage. That is, a WWW server that allows a plurality of users to download a program file for realizing the functional processing of the present invention on a computer is also included in the present invention.
また、本発明のプログラムを暗号化してCD-ROM等の記憶媒体に格納してユーザに配布し、所定の条件をクリアしたユーザに対し、インターネットを介してホームページから暗号化を解く鍵情報をダウンロードさせることも可能である。すなわち該ユーザは、その鍵情報を使用することによって暗号化されたプログラムを実行し、コンピュータにインストールさせることができる。 In addition, the program of the present invention is encrypted, stored in a storage medium such as a CD-ROM, distributed to users, and key information for decryption is downloaded from a homepage via the Internet to users who have cleared predetermined conditions. It is also possible to make it. That is, the user can execute the encrypted program by using the key information and install it on the computer.
また、コンピュータが、読み出したプログラムを実行することによって、前述した実施形態の機能が実現される。さらに、そのプログラムの指示に基づき、コンピュータ上で稼動しているOSなどが、実際の処理の一部または全部を行い、その処理によっても前述した実施形態の機能が実現され得る。 Further, the functions of the above-described embodiments are realized by the computer executing the read program. Furthermore, based on the instructions of the program, an OS or the like running on the computer performs part or all of the actual processing, and the functions of the above-described embodiments can also be realized by the processing.
さらに、記録媒体から読み出されたプログラムが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書き込まれた後、実行されることによっても、前述した実施形態の機能が実現される。すなわち、該プログラムの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行うことが可能である。 Further, the program read from the recording medium is written in a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer, and then executed, so that the program of the above-described embodiment can be obtained. Function is realized. That is, based on the instructions of the program, the CPU provided in the function expansion board or function expansion unit can perform part or all of the actual processing.
Claims (12)
前記複数のフレーム画像内の注目フレーム画像からオブジェクト画像を抽出するオブジェクト抽出手段と、
前記抽出したオブジェクトに対するオブジェクト特徴量を取得するオブジェクト特徴量の取得手段と、
前記注目フレーム画像に対し、前記オブジェクト画像ごとに前記オブジェクト特徴量に応じた色変換用の準備処理を行って色変換用画像を作成する色変換準備手段と、
前記注目フレームまでの予め定められた処理期間内において、フレーム順応時間を取得するフレーム順応時間の取得手段と、
前記注目フレーム画像に対し、前記フレーム順応時間に基づいてフレーム順応特徴量を算出するフレーム順応特徴量の算出手段と、
前記注目フレーム画像に対し、前記色変換用画像および前記フレーム順応特徴量に基づく色変換を行う色変換手段と、
を有することを特徴とする画像処理装置。 An image processing apparatus for reproducing a moving image composed of a plurality of time-divided frame images so as to reflect human spatial visual characteristics and temporal visual characteristics,
An object extracting means for extracting an object image from the frame image of interest in the plurality of frame images;
An object feature amount acquisition means for acquiring an object feature amount for the extracted object;
Color conversion preparation means for creating a color conversion image by performing color conversion preparation processing according to the object feature amount for each object image with respect to the target frame image;
A frame adaptation time acquisition means for acquiring a frame adaptation time within a predetermined processing period until the frame of interest;
A frame adaptation feature amount calculating unit that calculates a frame adaptation feature amount based on the frame adaptation time for the frame image of interest;
Color conversion means for performing color conversion based on the image for color conversion and the frame adaptation feature amount for the frame image of interest;
An image processing apparatus comprising:
前記複数のフレーム画像内の注目フレーム画像からオブジェクト画像を抽出するオブジェクト抽出手段と、
前記注目フレームまでの予め定められた処理期間内において、前記抽出したオブジェクト画像ごとのオブジェクト特徴量を取得するオブジェクト特徴量の取得手段と、
前記オブジェクト画像ごとに、前記オブジェクト特徴量に基づいてオブジェクト順応特徴量を算出するオブジェクト順応特徴量の算出手段と、
前記注目フレーム画像に対し、前記オブジェクト画像ごとに前記オブジェクト順応特徴量に基づく色変換を行う色変換手段と、
を有することを特徴とする画像処理装置。 An image processing apparatus for reproducing a moving image composed of a plurality of time-divided frame images so as to reflect human spatial visual characteristics and temporal visual characteristics,
An object extracting means for extracting an object image from the frame image of interest in the plurality of frame images;
An object feature amount acquisition means for acquiring an object feature amount for each of the extracted object images within a predetermined processing period until the frame of interest;
Object adaptation feature amount calculating means for calculating an object adaptation feature amount based on the object feature amount for each object image;
Color conversion means for performing color conversion on the object frame image based on the object adaptation feature for each object image;
An image processing apparatus comprising:
オブジェクト抽出手段が、前記複数のフレーム画像内の注目フレーム画像からオブジェクト画像を抽出するオブジェクト抽出ステップと、
オブジェクト特徴量の取得手段が、前記抽出したオブジェクトに対するオブジェクト特徴量を取得するオブジェクト特徴量の取得ステップと、
色変換準備手段が、前記注目フレーム画像に対し、前記オブジェクト画像ごとに前記オブジェクト特徴量に応じた色変換用の準備処理を行って色変換用画像を作成する色変換準備ステップと、
フレーム順応時間の取得手段が、前記注目フレームまでの予め定められた処理期間内において、フレーム順応時間を取得するフレーム順応時間の取得ステップと、
フレーム順応特徴量の算出手段が、前記注目フレーム画像に対し、前記フレーム順応時間に基づいてフレーム順応特徴量を算出するフレーム順応特徴量の算出ステップと、
色変換手段が、前記注目フレーム画像に対し、前記色変換用画像および前記フレーム順応特徴量に基づく色変換を行う色変換ステップと、
を有することを特徴とする画像処理方法。 An image processing method for reproducing a moving image composed of a plurality of time-divided frame images so as to reflect human spatial visual characteristics and temporal visual characteristics,
An object extraction step for extracting an object image from the frame image of interest in the plurality of frame images;
An object feature quantity acquisition means for acquiring an object feature quantity for the extracted object;
A color conversion preparation step for preparing a color conversion image by performing color conversion preparation processing according to the object feature amount for each object image with respect to the target frame image;
A frame adaptation time acquisition unit for acquiring a frame adaptation time within a predetermined processing period until the frame of interest;
A frame adaptation feature amount calculating unit that calculates a frame adaptation feature amount based on the frame adaptation time with respect to the frame image of interest;
A color conversion step in which color conversion means performs color conversion based on the image for color conversion and the frame adaptation feature amount for the frame image of interest;
An image processing method comprising:
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2007307893A JP5173377B2 (en) | 2007-11-28 | 2007-11-28 | Image processing method and apparatus, program, and storage medium |
| US12/323,307 US8817190B2 (en) | 2007-11-28 | 2008-11-25 | Image processing apparatus, image processing method, and computer program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2007307893A JP5173377B2 (en) | 2007-11-28 | 2007-11-28 | Image processing method and apparatus, program, and storage medium |
Publications (3)
| Publication Number | Publication Date |
|---|---|
| JP2009135602A JP2009135602A (en) | 2009-06-18 |
| JP2009135602A5 JP2009135602A5 (en) | 2011-01-27 |
| JP5173377B2 true JP5173377B2 (en) | 2013-04-03 |
Family
ID=40867087
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2007307893A Expired - Fee Related JP5173377B2 (en) | 2007-11-28 | 2007-11-28 | Image processing method and apparatus, program, and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP5173377B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP5235825B2 (en) * | 2009-09-02 | 2013-07-10 | 三菱電機株式会社 | Video feature extraction method, object search method, video feature extraction device, object search device |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7003154B1 (en) * | 2000-11-17 | 2006-02-21 | Mitsubishi Electric Research Laboratories, Inc. | Adaptively processing a video based on content characteristics of frames in a video |
| JP3882824B2 (en) * | 2004-03-25 | 2007-02-21 | カシオ計算機株式会社 | Image processing apparatus and image processing method |
| JP2006215756A (en) * | 2005-02-02 | 2006-08-17 | Dainippon Ink & Chem Inc | Image processing apparatus, image processing method, and program thereof |
| JP2006350577A (en) * | 2005-06-14 | 2006-12-28 | Fuji Xerox Co Ltd | Operation analyzing device |
-
2007
- 2007-11-28 JP JP2007307893A patent/JP5173377B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2009135602A (en) | 2009-06-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8218025B2 (en) | Image capturing apparatus, image capturing method, and computer program product | |
| US7047412B2 (en) | Digital watermark data embedding method, and digital watermark data embeddability analyzing method | |
| US10469701B2 (en) | Image processing method that obtains special data from an external apparatus based on information multiplexed in image data and apparatus therefor | |
| KR20030036747A (en) | Method and apparatus for superimposing a user image in an original image | |
| CN110505471B (en) | Head-mounted display equipment and screen acquisition method and device thereof | |
| US20200175770A1 (en) | Information processing system | |
| WO2013024640A1 (en) | Moving image distribution server, moving image reproduction apparatus, control method, program, and recording medium | |
| CN112774183B (en) | Appreciation system, model forming apparatus, control method, and recording medium | |
| JP2004015288A (en) | Screen saver creation system and method | |
| JP2009501479A (en) | Image coder for texture areas | |
| JPH11108633A (en) | Three-dimensional shape measuring device and three-dimensional engraving device using the same | |
| JP2010244398A (en) | Image processing apparatus and image processing program | |
| JP6340675B1 (en) | Object extraction device, object recognition system, and metadata creation system | |
| JP4444603B2 (en) | Display device, system, image display system, image processing method, display method, and program | |
| JP2002163678A (en) | Method and device for generating pseudo three- dimensional image | |
| JP5173377B2 (en) | Image processing method and apparatus, program, and storage medium | |
| JP5371232B2 (en) | Image processing apparatus and image processing method | |
| US8817190B2 (en) | Image processing apparatus, image processing method, and computer program | |
| JP2005196304A (en) | Image processing method and image composition apparatus | |
| JP4612856B2 (en) | Information processing apparatus and control method thereof | |
| CN118661192A (en) | Adaptive mixing for real-time and mobile video post-processing | |
| US20070076978A1 (en) | Moving image generating apparatus, moving image generating method and program therefor | |
| JP6577815B2 (en) | Information processing apparatus, information processing method, and program | |
| KR100810649B1 (en) | System and method for moving picture file and multimedia file synthesis | |
| WO2008069474A1 (en) | Personal-oriented multimedia studio platform apparatus and method for authorizing 3d content |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20101126 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20101208 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20121025 |
|
| 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: 20121130 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20121227 |
|
| R151 | Written notification of patent or utility model registration |
Ref document number: 5173377 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20160111 Year of fee payment: 3 |
|
| LAPS | Cancellation because of no payment of annual fees |