JP2004236170A - Image data processing method, image data processing apparatus and program, and storage medium - Google Patents

Image data processing method, image data processing apparatus and program, and storage medium Download PDF

Info

Publication number
JP2004236170A
JP2004236170A JP2003024538A JP2003024538A JP2004236170A JP 2004236170 A JP2004236170 A JP 2004236170A JP 2003024538 A JP2003024538 A JP 2003024538A JP 2003024538 A JP2003024538 A JP 2003024538A JP 2004236170 A JP2004236170 A JP 2004236170A
Authority
JP
Japan
Prior art keywords
image data
correction
correction amount
data processing
corrected
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP2003024538A
Other languages
Japanese (ja)
Inventor
Takashi Hanamoto
貴志 花本
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2003024538A priority Critical patent/JP2004236170A/en
Publication of JP2004236170A publication Critical patent/JP2004236170A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image data processing method for relieving a job load in the case of extracting image data to be outputted among a plurality of image data by sorting a plurality of the image data in orders of 'well taken' image data. <P>SOLUTION: The image data processing method for revising an output sequence of a plurality of outputted image data includes: a correction step of correcting the image data; a correction amount calculation step (step S803) for calculating a correction amount on the basis of the image data before being corrected in the correction step and the image data after the correction; and a revision step (step S806) for revising the output sequence to output a plurality of the image data in the order of smaller calculated correction amount. <P>COPYRIGHT: (C)2004,JPO&NCIPI

Description

【0001】
【発明の属する技術分野】
本発明は、画像データの処理技術に関するものである。
【0002】
【従来の技術】
デジタルカメラを用いて画像データを撮影し、それをPCを介して、もしくはダイレクトでプリンタにデータ転送して、印刷を実行するという系は既に一般化しつつある。それに伴い、メモリーカードの容量が増加し、その結果、一度に大量の画像データをデジタルカメラにおいて撮影することが可能となった。
【0003】
しかし、それらの画像データ全てを印刷するには、多大なコストがかかる。そこで、ユーザは、大量に撮影した画像データの中から印刷すべき画像データを抽出し、当該抽出した画像データのみを印刷することで、印刷コストの削減を図ってきた。
【0004】
しかし、何百枚もある画像の中から、数枚の画像データを抽出するという作業には多大な労力を要する。そのため、大量に撮影した画像データを、印刷すべき画像データの順に自動的にソートする機能の実現が望まれている。
【0005】
画像データを自動的にソートする技術としては、例えば、特開2000ー207405号公報が挙げられる。同公報によれば、輝度のような画像の特徴量に応じて、画像データを自動的にソートすることが可能となる。
【0006】
【特許文献1】
特開2000−207405号公報
【0007】
【発明が解決しようとする課題】
しかしながら、上記従来例に示した画像データのソート方法は、画像データの所定の特徴量に応じて画像データをソートするものであり、必ずしもユーザの望む順序にソートがなされるわけではない。
【0008】
ユーザにとって印刷すべき画像データとは、一般的に「良く撮れている」画像データのことであり、このため、画像データの印刷または表示等の出力を行うにあたっては、予め「良く撮れている」画像データの順にソートされることが求められる。
【0009】
本発明は、上記課題を鑑みてなされたものであり、複数の画像データを、「良く撮れている」画像データの順にソートすることで、当該複数の画像データの中から出力すべき画像データを抽出する際の作業負荷の低減を図ることを目的とする。
【0010】
【課題を解決するための手段】
上記の目的を達成するために本発明に係る画像データ処理方法は以下のような構成を備える。即ち、
出力される複数の画像データの出力順序を変更するための画像データ処理方法であって、
前記画像データを補正する補正工程と、
前記補正工程により補正される前の画像データと、補正された後の画像データとに基づいて、補正量を算出する補正量算出工程と、
前記算出された補正量の小さい順に前記複数の画像データを出力するための、出力順序を変更する変更工程とを備える。
【0011】
【発明の実施の形態】
【第1の実施形態】
本実施形態では、指定された画像データ群に対して、補正量を算出し、当該補正量に基づいてソート処理を実行する方法について説明する。
【0012】
(1)システム構成
図1は、本発明の実施形態にかかる画像データ処理装置のシステム構成を示すブロック図である。入力装置101は、ユーザからの指示や、データを入力する装置で、キーボードやマウスなどのポインティングシステムを含む。表示装置102は、GUIなどを表示する装置で、通常はCRTや、液晶ディスプレイなどが用いられる。
【0013】
蓄積装置103は、画像データやプログラム等を蓄積する装置で、通常は、ハードディスクが用いられる。104はCPUで、上述した各構成の処理の全てに関わる。ROM105と、RAM106は、その処理に必要なプログラム、データ、作業領域などをCPU104に提供する。また、以降のフローチャートの処理に必要な制御プログラムは、蓄積装置103に格納されているか、ROM105に格納されているものとする。蓄積装置103に格納されている場合は、一旦RAM106に読み込まれてから実行される。
【0014】
なお、本発明の実施形態にかかる画像データ処理装置のシステム構成としては、上記以外にも、様々な構成要素が存在するが、本発明の主眼ではないので、その説明は省略する。
【0015】
(2)補正量の算出方法
次に補正量の算出方法について説明する。本実施形態では代表的な補正量の算出方法として、3つの方法について述べる(ただし、本発明は、かかる3つの算出方法に限定するものではない)。
【0016】
▲1▼第1の補正量算出方法
図5は、第1の補正量算出方法について説明したフローチャートである。ステップS501では、画像データを蓄積装置103より読み取り、RAM106に格納する。ステップS502では、読み込んだ画像データに対して、デコード処理を行い、各8ビットのRGBデータを得る。
【0017】
ステップS503では、画像テータの中から、サンプリング点のRGB値を読み取る。サンプリング点とは、図2Aの画像データ201に記載してあるように、画像データの中から、ある一定の割合で抽出した点である(図中の○印の部分(202)がサンプリング点である)。このように、サンプリング点を取ることによって、画像データ全体に処理をかける必要がなくなり、処理速度の高速化が図れる。
【0018】
ステップS504では、読み取ったサンプリング点のRGBデータ値から輝度を算出し、輝度ヒストグラムを作成する。ステップS505では、作成した輝度ヒストグラムから、画像データのハイライトポイントH0、シャドウポイントS0、平均輝度Y0を算出する。ハイライトポイントH0とは、図2Bの(a)に示す輝度ヒストグラム203に記載しているように、最も輝度の高い部分である。一方、シャドウポイントS0とは、図2Bの(a)に示す輝度ヒストグラム203に記載しているように、最も輝度の低い部分である。
【0019】
ステップS506では、画像データの理想的な(補正後の)ハイライトポイントH1、シャドウポイントS1、平均輝度Y1を求める。これらの値の設定は、画像データが人間の目に対し、好ましく感じられるように設定し、その程度は画像データの特徴(輝度)から、経験的に決定する。
【0020】
ステップS507では、図2Cの補正量算出式205を用いて、各変化量を算出する。ステップS508では、各変化量の平均値(AVG(ΔH、ΔS、ΔY))を算出し、それをこの画像データの補正量とする。
【0021】
このように、輝度ヒストグラムを用いることによって、画像データの補正量(AVG(ΔH、ΔS、ΔY))を算出することができる。
【0022】
▲2▼第2の補正量算出方法
図6は、第2の補正量算出方法について説明したフローチャートである。ステップS601では、画像データを蓄積装置103より読み取り、RAM106に格納する。ステップS602では、読み込んだ画像データに対して、デコード処理を行い、各8ビットのRGBデータを得る。
【0023】
ステップS603では、画像テータの中から、サンプリング点のRGB値を読み取る。ステップS504では、読み取ったサンプリング点のRGBデータ値からRGB値ヒストグラムを作成する。
【0024】
ステップS605では、RGB値ヒストグラムを用いて、RGB値を補正すべきガンマ値を算出する。ガンマ値とは、図3Aの(a)に示すガンマ変換式301に使われる定数のことで、同図(b)のガンマ曲線302のようにRGB値を補正するための曲線を描く。このガンマ曲線を用いた補正は、画像データの補正においては一般的に用いられる手法である。ガンマ値の設定は、画像データが人間の目に対し、好ましく感じられるように設定し、その程度は画像データの特徴(RGB値の分布)から、経験的に決定する。
【0025】
ステップS606では、図3Bの補正量算出式303を用いて、補正量であるΔγを算出する。このように、画像データを補正するためのガンマ値を求めることによって補正量(Δγ)を算出することができる。
【0026】
▲3▼第3の補正量算出方法
図7は、第3の補正量算出方法について説明したフローチャートである。ステップS601では、画像データを蓄積装置103より読み取り、RAM106に格納する。ステップS702では、読み込んだ画像データに対して、デコード処理を行い、各8ビットのRGBデータを得る。
【0027】
ステップS703では、画像テータの中から、サンプリング点のRGB値を読み取る。ステップS704では、図5の場合と同様に、輝度ヒストグラムを求め、また平均彩度も算出する。ステップS605では、輝度ヒストグラム、平均彩度から、画像データのRGB値にかける3×3のマトリクス値を算出する(図4Aの(a)に示すマトリクス401)。
【0028】
そして同図に示すように、3×3のマトリクス値401をRGB値(R0、G0、B0)に掛け合わせることによる画像補正は、一般的に行われており、マトリクスの各要素値(a、b、c、・・・i)は、画像データの特徴(輝度、彩度)から、経験的に算出される。
【0029】
ステップS706では、算出されたマトリクス値401を用いて、各サンプリング点のRGB値(R0、G0、B0)に対し、マトリクス演算を実行し(図4(a)のマトリクス演算式402)、補正後のRGB値(R1、G1、B1)を得る。ステップS707では、全てのサンプリング点のRGB値(R0、G0、B0)の平均値と、補正後のRGB値(R1、G1、B1)の平均値とを求め、図4の(b)に示す補正量算出式403を用いて、各RGB値の変化量(ΔR、ΔG、ΔB)を算出する。
【0030】
ステップS708では、変化量ΔR、ΔG、ΔBの平均値を算出し、それをこの画像データの補正量とする。このように、補正用のマトリクスを算出することによって、画像データの補正量(AVG(ΔR、ΔG、ΔB))を算出することができる。
【0031】
(3)ソート処理
次に上記(2)で求められた補正量に基づいて実行されるソート処理について説明する。
【0032】
図8は、補正量を使って画像データをソートする過程について説明したフローチャートである。ステップS801では、まず、ソートすべき画像データ群を指定する。ステップS802では、指定された画像データ群の中の、何番目の画像データかを示す整数Nを、0に初期化する。
【0033】
ステップS803では、図5、6、7のいずれかの処理により、N番目の画像データの補正量を算出する。ステップS804では、Nの値を1つ進める。ステップS805では、指定した画像データ群の全ての画像データに対して、補正量を算出したかどうかを判断する。全ての画像データに対して補正量を算出している場合は、ステップS806に進み、そうでない場合は、ステップS803に戻る。
【0034】
ここで、画像データが「良く撮れている」か否かは補正量の大小に依存することから、ステップS806では、算出した全ての画像データの補正量を比較し、補正量の少ない順に画像データをソートしていく。その結果、印刷、表示等のい出力にあたっては、当該ソートされた順序で行うことが可能となる。
【0035】
以上の説明から明らかように、画像データを補正量の少ない順にソートしていくことで、うまく撮影された画像データを簡単に見つけ出すことができ(つまり、出力すべき画像データの抽出作業の負荷が低減され)、画像データを取り扱う際の利便性を向上させることが可能となる。
【0036】
【第2の実施形態】
本実施形態では、大量の画像データを所定のグループに分類し、各グループの中から、最も良好に撮影できている画像データを自動的に選び出し、印刷する方法を説明する。なお、本実施形態にかかる画像データ処理装置のシステム構成等は、上記第1の実施形態と同じであるので、説明を省略する。
【0037】
図9は、本実施形態の処理の流れを説明したフローチャートである。ステップS901では、印刷したい画像データ群を指定する。ステップS802では、類似画像検索を用いて、指示された画像データ群の各画像データを同一シーン毎に分類する(図10の▲1▼の処理)。類似画像検索とは、画像データのRGB値の分布などを調べ、似たようなシーンで撮影された画像を検索する技術である。なお、この技術の詳細な説明は、本発明とは直接関係なので省略する。
【0038】
ステップS902では、類似画像検索でグルーピングされた画像グループに対し、撮影日時を調査し、撮影日時の同じ(または近い)画像毎に更にグルーピングする(図10の▲2▼の処理)。これは、似たようなシーンで撮影されているが、撮影場所が違う画像データを分けておくための処理である(例えば、同じ海のシーンでも違う海岸であるような場合)。撮影日時の情報は、図12にあるように、画像データ1101のヘッダ部分のヘッダ情報1202に記載されているので、それを読み取ることにより、取得できる。
【0039】
ステップS904では、それぞれグルーピングされた画像グループに対し、上記第1の実施形態で記述したようなソート処理を、グループ毎に実行する(図10の▲3▼の処理)。ステップS905では、グループ毎に最も補正量の少ない画像データを抽出する(図10の▲4▼の処理)。ステップS906では、各グループ毎に抽出された1つの画像データを印刷する。
【0040】
このように、画像データを分類し、各グループごとに補正量によるソート処理を実行することによって、大量の画像データ群の中から、各グループごとに最も良好に撮影できている画像データを自動的に抽出し、印刷を実行することが可能になる。
【0041】
【第3の実施形態】
上記第2の実施形態においては、シーン毎に、良好に撮影できている画像データのみを印刷する手法について説明した。しかし、ユーザによっては、人物が被写体となっている画像データについては、全部の印刷を希望する場合がある。そこで、本実施形態では、大量の画像データ群の中から、人物以外が被写体となっている画像データのみをソート処理し、人物が被写体となっている画像データについては、ソート処理を行うことなく印刷する方法について説明する。なお、システム構成等は、上記第1の実施形態と同じであるので、説明を省略する。
【0042】
図12は、画像データ1201にヘッダ情報1202として付加されている撮影情報について説明した図である。同図に示すようにヘッダ情報1202には撮影時の各種情報が記述されている。Exifなどのファイルフォーマットがそれにあたる。撮影情報には、撮影日時、撮影モード(自動モード、人物モード、風景モード、夜景モードなど)、フラッシュのON/OFFなどの情報がある。この中の、撮影モードを見ることで、画像データの被写体が何であるかを判定できる。
【0043】
図11は、人物以外が被写体となっている画像データのみをソート処理する過程を説明したフローチャートである。ステップS1101では、印刷すべき画像データ群を指定する。ステップS1102では、指定された画像データ群の各画像データのヘッダ情報から撮影モードを読み込む。
【0044】
ステップS1103では、撮影モードが人物モードかどうかを判断し、人物モード以外である場合には、ステップS1104に進み、人物モードである場合には、ステップS1106に進む。
【0045】
ステップS1104では、上記第2の実施形態で説明したような、グルーピング、ソート処理を行う。ステップS1105では、各グループの中から、最も補正量の少ない画像データを抽出する。ステップS1106では、印刷を実行する。
【0046】
このように、撮影情報と、補正量によるソート処理を併用することで、適切な画像データのみを印刷することが可能になる。つまり、被写体が人物以外の場合には、分類されたグループにおいてソート処理が行われ、各グループごとに最も良好に撮影できている画像データのみが印刷され、被写体が人物の場合には、ソート処理を行うことなくすべて印刷されることとなる。
【0047】
なお、本実施形態では、被写体の判別を撮影情報を用いて行っているが、例えば顔認識処理を用いるなど、その方法は何でもよい。
【0048】
【他の実施形態】
なお、本発明は、複数の機器(例えばホストコンピュータ、インタフェイス機器、リーダ、プリンタなど)から構成されるシステムに適用しても、一つの機器からなる装置(例えば、複写機、ファクシミリ装置など)に適用してもよい。
【0049】
また、本発明の目的は、前述した実施形態の機能を実現するソフトウェアのプログラムコードを記録した記憶媒体を、システムあるいは装置に供給し、そのシステムあるいは装置のコンピュータ(またはCPUやMPU)が記憶媒体に格納されたプログラムコードを読出し実行することによっても、達成されることは言うまでもない。
【0050】
この場合、記憶媒体から読出されたプログラムコード自体が前述した実施形態の機能を実現することになり、そのプログラムコードを記憶した記憶媒体は本発明を構成することになる。
【0051】
プログラムコードを供給するための記憶媒体としては、例えば、フロッピ(登録商標)ディスク、ハードディスク、光ディスク、光磁気ディスク、CD−ROM、CD−R、磁気テープ、不揮発性のメモリカード、ROMなどを用いることができる。
【0052】
また、コンピュータが読出したプログラムコードを実行することにより、前述した実施形態の機能が実現されるだけでなく、そのプログラムコードの指示に基づき、コンピュータ上で稼働しているOS(オペレーティングシステム)などが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。
【0053】
さらに、記憶媒体から読出されたプログラムコードが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書込まれた後、そのプログラムコードの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。
【0054】
【発明の効果】
以上説明したように本発明によれば、複数の画像データを、「良く撮れている」画像データの順にソートすることで、当該複数の画像データの中から出力すべき画像データを抽出する際の作業負荷の低減を図ることが可能となる。
【図面の簡単な説明】
【図1】本発明の実施形態にかかる画像データ処理装置のシステム構成を示す図である。
【図2A】画像データのサンプリング点を示す図である。
【図2B】補正前および補正後の輝度ヒストグラムを示す図である。
【図2C】第1の補正量算出方法における補正量算出式を示す図である。
【図3A】ガンマ変換式およびガンマ曲線を示す図である。
【図3B】第2の補正量算出方法における補正量算出式を示す図である。
【図4】第3の補正量算出方法におけるマトリックス演算式および補正量算出式を示す図である。
【図5】本発明の第1の実施形態にかかる画像データ処理装置における、第1の補正量算出方法による処理の流れを示すフローチャートである。
【図6】本発明の第1の実施形態にかかる画像データ処理装置における、第2の補正量算出方法による処理の流れを示すフローチャートである。
【図7】本発明の第1の実施形態にかかる画像データ処理装置における、第3の補正量算出方法による処理の流れを示すフローチャートである。
【図8】本発明の第1の実施形態にかかる画像データ処理装置における、ソート処理の流れを示すフローチャートである。
【図9】本発明の第2の実施形態にかかる画像データ処理装置における処理の流れを示すフローチャートである。
【図10】本発明の第2の実施形態にかかる画像データ処理装置における処理の流れを示す概念図である。
【図11】本発明の第3の実施形態にかかる画像データ処理装置における処理の流れを示すフローチャートである。
【図12】画像データのヘッダ情報について説明した概念図である。
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a technique for processing image data.
[0002]
[Prior art]
A system in which image data is photographed using a digital camera and the data is transferred to a printer via a PC or directly to execute printing is already being generalized. As a result, the capacity of the memory card has increased, and as a result, a large amount of image data can be captured by a digital camera at one time.
[0003]
However, printing all of the image data requires a great deal of cost. Therefore, the user has attempted to reduce the printing cost by extracting image data to be printed from image data shot in large quantities and printing only the extracted image data.
[0004]
However, the task of extracting several pieces of image data from hundreds of images requires a great deal of labor. Therefore, it is desired to realize a function of automatically sorting a large amount of image data in the order of image data to be printed.
[0005]
As a technique for automatically sorting image data, for example, JP-A-2000-207405 is cited. According to the publication, it is possible to automatically sort image data according to the feature amount of an image such as luminance.
[0006]
[Patent Document 1]
JP 2000-207405 A
[Problems to be solved by the invention]
However, the image data sorting method shown in the above-described conventional example sorts the image data according to a predetermined feature amount of the image data, and is not necessarily sorted in an order desired by the user.
[0008]
The image data to be printed for the user is generally image data that is “good”, and therefore, when printing or displaying image data, “good” is performed in advance. Sorting is required in the order of image data.
[0009]
The present invention has been made in view of the above-described problem, and sorts a plurality of image data in the order of the image data that is “taken well” so that the image data to be output from the plurality of image data is sorted out. The purpose is to reduce the work load at the time of extraction.
[0010]
[Means for Solving the Problems]
In order to achieve the above object, an image data processing method according to the present invention has the following configuration. That is,
An image data processing method for changing an output order of a plurality of output image data,
A correction step of correcting the image data,
A correction amount calculating step of calculating a correction amount based on the image data before being corrected by the correcting step and the corrected image data;
Changing the output order for outputting the plurality of image data in ascending order of the calculated correction amount.
[0011]
BEST MODE FOR CARRYING OUT THE INVENTION
[First Embodiment]
In the present embodiment, a method will be described in which a correction amount is calculated for a specified image data group, and a sort process is executed based on the correction amount.
[0012]
(1) System Configuration FIG. 1 is a block diagram showing a system configuration of an image data processing apparatus according to an embodiment of the present invention. The input device 101 is a device for inputting instructions and data from a user, and includes a pointing system such as a keyboard and a mouse. The display device 102 is a device that displays a GUI or the like, and usually uses a CRT, a liquid crystal display, or the like.
[0013]
The storage device 103 is a device that stores image data, programs, and the like, and usually uses a hard disk. Reference numeral 104 denotes a CPU, which is involved in all of the above-described processing of each configuration. The ROM 105 and the RAM 106 provide programs, data, a work area, and the like necessary for the processing to the CPU 104. Further, it is assumed that a control program necessary for the processing of the subsequent flowcharts is stored in the storage device 103 or in the ROM 105. If the data is stored in the storage device 103, the data is temporarily read into the RAM 106 and then executed.
[0014]
The system configuration of the image data processing apparatus according to the embodiment of the present invention includes various components other than those described above, but is not the main focus of the present invention, and a description thereof will be omitted.
[0015]
(2) Calculation method of correction amount Next, a calculation method of the correction amount will be described. In the present embodiment, three methods will be described as typical calculation methods of the correction amount (however, the present invention is not limited to the three calculation methods).
[0016]
(1) First correction amount calculation method FIG. 5 is a flowchart illustrating the first correction amount calculation method. In step S501, the image data is read from the storage device 103 and stored in the RAM. In step S502, decoding processing is performed on the read image data to obtain 8-bit RGB data.
[0017]
In step S503, the RGB values at the sampling points are read from the image data. The sampling point is a point extracted from the image data at a certain fixed rate as described in the image data 201 in FIG. 2A. is there). By taking sampling points in this way, it is not necessary to perform processing on the entire image data, and the processing speed can be increased.
[0018]
In step S504, luminance is calculated from the read RGB data values of the sampling points, and a luminance histogram is created. In step S505, a highlight point H0, a shadow point S0, and an average luminance Y0 of the image data are calculated from the created luminance histogram. The highlight point H0 is a portion having the highest luminance as described in the luminance histogram 203 shown in (a) of FIG. 2B. On the other hand, the shadow point S0 is a portion having the lowest luminance as described in the luminance histogram 203 shown in (a) of FIG. 2B.
[0019]
In step S506, ideal (corrected) highlight point H1, shadow point S1, and average luminance Y1 of the image data are obtained. These values are set so that the image data is preferably felt by human eyes, and the degree is empirically determined from the characteristics (luminance) of the image data.
[0020]
In step S507, each change amount is calculated using the correction amount calculation formula 205 in FIG. 2C. In step S508, the average value (AVG (ΔH, ΔS, ΔY)) of each change amount is calculated, and is set as the correction amount of this image data.
[0021]
As described above, by using the luminance histogram, the correction amount (AVG (ΔH, ΔS, ΔY)) of the image data can be calculated.
[0022]
(2) Second correction amount calculation method FIG. 6 is a flowchart illustrating the second correction amount calculation method. In step S601, the image data is read from the storage device 103 and stored in the RAM. In step S602, decoding processing is performed on the read image data to obtain 8-bit RGB data.
[0023]
In step S603, the RGB values at the sampling points are read from the image data. In step S504, an RGB value histogram is created from the read RGB data values at the sampling points.
[0024]
In step S605, a gamma value to be corrected for the RGB value is calculated using the RGB value histogram. The gamma value is a constant used in the gamma conversion formula 301 shown in (a) of FIG. 3A, and draws a curve for correcting RGB values like a gamma curve 302 of (b) of FIG. The correction using the gamma curve is a method generally used in correcting image data. The setting of the gamma value is set so that the image data is preferably perceived by human eyes, and the degree is determined empirically from the characteristics of the image data (the distribution of RGB values).
[0025]
In step S606, the correction amount Δγ is calculated using the correction amount calculation formula 303 in FIG. 3B. Thus, the correction amount (Δγ) can be calculated by obtaining the gamma value for correcting the image data.
[0026]
(3) Third Correction Amount Calculation Method FIG. 7 is a flowchart illustrating a third correction amount calculation method. In step S601, the image data is read from the storage device 103 and stored in the RAM. In step S702, decoding processing is performed on the read image data to obtain 8-bit RGB data.
[0027]
In step S703, the RGB values at the sampling points are read from the image data. In step S704, as in the case of FIG. 5, a luminance histogram is obtained, and an average saturation is also calculated. In step S605, a 3 × 3 matrix value to be applied to the RGB values of the image data is calculated from the luminance histogram and the average saturation (matrix 401 shown in FIG. 4A).
[0028]
As shown in the figure, image correction by multiplying a 3 × 3 matrix value 401 by an RGB value (R0, G0, B0) is generally performed, and each element value (a, b, c,... i) are empirically calculated from the features (luminance, saturation) of the image data.
[0029]
In step S706, a matrix operation is performed on the RGB values (R0, G0, B0) of each sampling point using the calculated matrix value 401 (matrix operation expression 402 in FIG. 4A), and the corrected Are obtained (R1, G1, B1). In step S707, the average of the RGB values (R0, G0, B0) and the average of the corrected RGB values (R1, G1, B1) of all the sampling points are obtained, and are shown in FIG. 4B. Using the correction amount calculation formula 403, the amount of change (ΔR, ΔG, ΔB) of each RGB value is calculated.
[0030]
In step S708, the average value of the change amounts ΔR, ΔG, and ΔB is calculated, and the calculated average value is used as the correction amount of the image data. By calculating the correction matrix in this manner, the correction amount (AVG (ΔR, ΔG, ΔB)) of the image data can be calculated.
[0031]
(3) Sorting Process Next, a sorting process executed based on the correction amount obtained in the above (2) will be described.
[0032]
FIG. 8 is a flowchart illustrating a process of sorting image data using a correction amount. In step S801, first, an image data group to be sorted is specified. In step S802, an integer N indicating the number of the image data in the designated image data group is initialized to zero.
[0033]
In step S803, the correction amount of the N-th image data is calculated by one of the processes in FIGS. In step S804, the value of N is increased by one. In step S805, it is determined whether the correction amount has been calculated for all the image data of the specified image data group. If the correction amounts have been calculated for all the image data, the process proceeds to step S806; otherwise, the process returns to step S803.
[0034]
Here, since whether or not the image data is “satisfactorily taken” depends on the magnitude of the correction amount, in step S806, the calculated correction amounts of all the image data are compared, and the image data is compared in ascending order of the correction amount. Is sorted. As a result, printing, display, and other output can be performed in the sorted order.
[0035]
As is apparent from the above description, by sorting the image data in ascending order of the correction amount, it is possible to easily find the image data that has been successfully captured (that is, the load of the work of extracting the image data to be output is reduced). It is possible to improve convenience when handling image data.
[0036]
[Second embodiment]
In the present embodiment, a method will be described in which a large amount of image data is classified into predetermined groups, and the image data that is best captured is automatically selected from each group and printed. Note that the system configuration and the like of the image data processing apparatus according to the present embodiment are the same as those of the above-described first embodiment, and a description thereof will be omitted.
[0037]
FIG. 9 is a flowchart illustrating the flow of the process according to the present embodiment. In step S901, a group of image data to be printed is specified. In step S802, each image data of the designated image data group is classified into the same scene using the similar image search (the process (1) in FIG. 10). The similar image search is a technique for examining the distribution of RGB values of image data and searching for an image captured in a similar scene. A detailed description of this technique will be omitted because it is directly related to the present invention.
[0038]
In step S902, the photographing date and time of the image group grouped by the similar image search is checked, and further grouping is performed for each image having the same (or close) photographing date and time (the process (2) in FIG. 10). This is a process for dividing image data that is shot in similar scenes but is shot at different locations (for example, when the same sea scene is on a different beach). As shown in FIG. 12, the information on the shooting date and time is described in the header information 1202 of the header portion of the image data 1101, and can be obtained by reading it.
[0039]
In step S904, the sort process described in the first embodiment is executed for each group of image groups for each group (process (3) in FIG. 10). In step S905, image data with the smallest correction amount is extracted for each group (process (4) in FIG. 10). In step S906, one piece of image data extracted for each group is printed.
[0040]
In this way, by classifying the image data and executing the sort processing based on the correction amount for each group, the image data that can be best captured for each group is automatically selected from the large amount of image data group. And printing can be executed.
[0041]
[Third Embodiment]
In the second embodiment, the method of printing only the image data that has been successfully photographed for each scene has been described. However, some users may want to print all image data in which a person is the subject. Therefore, in the present embodiment, only the image data in which a person other than a person is a subject is sorted out of a large amount of image data groups, and the image data in which a person is a subject is not subjected to the sorting process. A printing method will be described. Note that the system configuration and the like are the same as in the first embodiment, and a description thereof will be omitted.
[0042]
FIG. 12 is a view for explaining shooting information added as header information 1202 to the image data 1201. As shown in the figure, the header information 1202 describes various information at the time of shooting. A file format such as Exif corresponds to this. The shooting information includes information such as shooting date and time, shooting mode (auto mode, portrait mode, landscape mode, night view mode, etc.), flash ON / OFF, and the like. By looking at the shooting mode among them, it is possible to determine what the subject of the image data is.
[0043]
FIG. 11 is a flowchart illustrating a process of sorting only image data in which a subject other than a person is a subject. In step S1101, an image data group to be printed is specified. In step S1102, the shooting mode is read from the header information of each image data of the specified image data group.
[0044]
In step S1103, it is determined whether the shooting mode is the portrait mode. If the shooting mode is not the portrait mode, the process proceeds to step S1104. If the shooting mode is the portrait mode, the process proceeds to step S1106.
[0045]
In step S1104, grouping and sorting are performed as described in the second embodiment. In step S1105, image data with the smallest correction amount is extracted from each group. In step S1106, printing is performed.
[0046]
As described above, by using the photographing information and the sort processing based on the correction amount together, it is possible to print only appropriate image data. In other words, if the subject is not a person, the sorting process is performed on the classified groups, and only the image data that is best captured for each group is printed. If the subject is a person, the sorting process is performed. All without printing.
[0047]
In the present embodiment, the subject is determined using the photographing information. However, any method may be used, such as using face recognition processing.
[0048]
[Other embodiments]
The present invention can be applied to a system including a plurality of devices (for example, a host computer, an interface device, a reader, a printer, etc.), but may be a device including one device (for example, a copying machine, a facsimile machine, etc.). May be applied.
[0049]
Further, an object of the present invention is to provide a storage medium storing a program code of software for realizing the functions of the above-described embodiments to a system or an apparatus, and a computer (or CPU or MPU) of the system or apparatus to store the storage medium. It is needless to say that the present invention can also be achieved by reading and executing the program code stored in the program.
[0050]
In this case, the program code itself read from the storage medium realizes the function of the above-described embodiment, and the storage medium storing the program code constitutes the present invention.
[0051]
As a storage medium for supplying the program code, for example, a floppy (registered trademark) disk, hard disk, optical disk, magneto-optical disk, CD-ROM, CD-R, magnetic tape, nonvolatile memory card, ROM, or the like is used. be able to.
[0052]
When the computer executes the readout program code, not only the functions of the above-described embodiments are realized, but also an OS (Operating System) running on the computer based on the instruction of the program code. It goes without saying that a part or all of the actual processing is performed and the functions of the above-described embodiments are realized by the processing.
[0053]
Further, after the program code read from the storage medium is written into a memory provided on a function expansion board inserted into the computer or a function expansion unit connected to the computer, the function expansion is performed based on the instruction of the program code. It goes without saying that a CPU or the like provided in the board or the function expansion unit performs part or all of the actual processing, and the processing realizes the functions of the above-described embodiments.
[0054]
【The invention's effect】
As described above, according to the present invention, when a plurality of image data are sorted in the order of the image data which is "taken well", the image data to be output from the plurality of image data is extracted. Work load can be reduced.
[Brief description of the drawings]
FIG. 1 is a diagram showing a system configuration of an image data processing apparatus according to an embodiment of the present invention.
FIG. 2A is a diagram showing sampling points of image data.
FIG. 2B is a diagram showing a luminance histogram before and after correction.
FIG. 2C is a diagram showing a correction amount calculation formula in a first correction amount calculation method.
FIG. 3A is a diagram showing a gamma conversion equation and a gamma curve.
FIG. 3B is a diagram illustrating a correction amount calculation formula in a second correction amount calculation method.
FIG. 4 is a diagram showing a matrix operation expression and a correction amount calculation formula in a third correction amount calculation method.
FIG. 5 is a flowchart showing a flow of processing by a first correction amount calculation method in the image data processing device according to the first embodiment of the present invention.
FIG. 6 is a flowchart illustrating a flow of processing by a second correction amount calculation method in the image data processing device according to the first embodiment of the present invention.
FIG. 7 is a flowchart showing a flow of processing by a third correction amount calculation method in the image data processing device according to the first embodiment of the present invention.
FIG. 8 is a flowchart illustrating a flow of a sorting process in the image data processing device according to the first embodiment of the present invention.
FIG. 9 is a flowchart showing a flow of processing in an image data processing device according to a second embodiment of the present invention.
FIG. 10 is a conceptual diagram showing a flow of processing in an image data processing device according to a second embodiment of the present invention.
FIG. 11 is a flowchart showing a flow of processing in an image data processing device according to a third embodiment of the present invention.
FIG. 12 is a conceptual diagram illustrating header information of image data.

Claims (22)

複数の画像データの順序を変更するための画像データ処理方法であって、
前記画像データを補正する補正工程と、
前記補正工程により補正される前の画像データと、補正された後の画像データとに基づいて、補正量を算出する補正量算出工程と、
前記算出された補正量の小さい順に順序を変更する変更工程と
を備えることを特徴とする画像データ処理方法。
An image data processing method for changing an order of a plurality of image data,
A correction step of correcting the image data,
A correction amount calculating step of calculating a correction amount based on the image data before being corrected by the correcting step and the corrected image data;
Changing the order of the calculated correction amounts in ascending order.
出力される複数の画像データの出力順序を変更するための画像データ処理方法であって、
前記画像データを補正する補正工程と、
前記補正工程により補正される前の画像データと、補正された後の画像データとに基づいて、補正量を算出する補正量算出工程と、
前記算出された補正量の小さい順に前記複数の画像データを出力するための、出力順序を変更する変更工程と
を備えることを特徴とする画像データ処理方法。
An image data processing method for changing an output order of a plurality of output image data,
A correction step of correcting the image data,
A correction amount calculating step of calculating a correction amount based on the image data before being corrected by the correcting step and the corrected image data;
A changing step of changing an output order for outputting the plurality of image data in order of the calculated correction amount being small.
複数の画像データの中から所定の画像データを出力するための画像データ処理方法であって、
前記複数の画像データを、複数の画像データ群に分類する分類工程と、
前記分類された画像データ群ごとに、該画像データ群に含まれる複数の画像データを補正する補正工程と、
前記補正工程により補正される前の画像データと、補正された後の画像データとに基づいて、補正量を算出する補正量算出工程と、
前記分類された画像データ群ごとに、前記算出された補正量の最も小さい画像データを出力する出力工程と
を備えることを特徴とする画像データ処理方法。
An image data processing method for outputting predetermined image data from a plurality of image data,
A classifying step of classifying the plurality of image data into a plurality of image data groups;
A correction step of correcting a plurality of image data included in the image data group for each of the classified image data groups,
A correction amount calculating step of calculating a correction amount based on the image data before being corrected by the correcting step and the corrected image data;
Outputting an image data with the smallest calculated correction amount for each of the classified image data groups.
前記補正量は、
前記補正される前の画像データにおける輝度ヒストグラムに対する、前記補正された後の画像データの輝度ヒストグラムのハイライトポイントの変化量、シャドウポイントの変化量、または平均輝度の変化量のいずれかを含むことを特徴とする請求項1乃至3のいずれかに記載の画像データ処理方法。
The correction amount is:
Including any of a change amount of a highlight point, a change amount of a shadow point, and a change amount of an average luminance of the luminance histogram of the corrected image data with respect to the luminance histogram of the image data before the correction. The image data processing method according to claim 1, wherein:
前記補正量は、
前記補正工程において前記画像データをガンマ補正した場合の、ガンマ値であることを特徴とする請求項1乃至3のいずれかに記載の画像データ処理方法。
The correction amount is:
4. The image data processing method according to claim 1, wherein the image data is a gamma value when the image data is gamma-corrected in the correction step.
前記補正量は、
前記補正工程において前記画像データのRGB値に所定の要素値を掛け合わせた場合の、補正前のRGB値に対する補正後のRGB値の変化量を含むことを特徴とする請求項1乃至3のいずれかに記載の画像データ処理方法。
The correction amount is:
4. The method according to claim 1, further comprising a change amount of the corrected RGB value with respect to the uncorrected RGB value when the RGB value of the image data is multiplied by a predetermined element value in the correcting step. The image data processing method according to any one of the above.
前記分類工程は、前記複数の画像データを類似画像ごとに分類することを特徴とする請求項3に記載の画像データ処理方法。4. The image data processing method according to claim 3, wherein the classification step classifies the plurality of image data for each similar image. 前記分類工程は、前記複数の画像データを、該各画像データが有する撮影時の情報に基づいて分類することを特徴とする請求項3に記載の画像データ処理方法。4. The image data processing method according to claim 3, wherein the classifying step classifies the plurality of image data based on information at the time of shooting included in each of the image data. 前記撮影時の情報は、撮影モード、撮影日時を含むことを特徴とする請求項8に記載の画像データ処理方法。9. The image data processing method according to claim 8, wherein the information at the time of shooting includes a shooting mode and a shooting date and time. 前記出力工程は、
前記分類工程により分類された画像データのうち、撮影モードが人物モードの画像データを更に出力することを特徴とする請求項9に記載の画像データ処理方法。
The output step includes:
The image data processing method according to claim 9, further comprising outputting image data in which a photographing mode is a person mode among the image data classified in the classification step.
複数の画像データの順序を変更するための画像データ処理装置であって、
前記画像データを補正する補正手段と、
前記補正手段により補正される前の画像データと、補正された後の画像データとに基づいて、補正量を算出する補正量算出手段と、
前記算出された補正量の小さい順に順序を変更する変更手段と
を備えることを特徴とする画像データ処理装置。
An image data processing device for changing the order of a plurality of image data,
Correction means for correcting the image data,
Correction amount calculation means for calculating a correction amount based on the image data before being corrected by the correction means and the image data after the correction,
Changing means for changing the order of the calculated correction amounts in ascending order.
出力される複数の画像データの出力順序を変更する画像データ処理装置であって、
前記画像データを補正する補正手段と、
前記補正手段により補正される前の画像データと、補正された後の画像データとに基づいて、補正量を算出する補正量算出手段と、
前記算出された補正量の小さい順に前記複数の画像データを出力するための、出力順序を変更する変更手段と
を備えることを特徴とする画像データ処理装置。
An image data processing device that changes an output order of a plurality of image data to be output,
Correction means for correcting the image data,
Correction amount calculation means for calculating a correction amount based on the image data before being corrected by the correction means and the image data after the correction,
An image data processing apparatus comprising: a changing unit configured to change an output order for outputting the plurality of pieces of image data in ascending order of the calculated correction amount.
複数の画像データの中から所定の画像データを出力する画像データ処理装置であって、
前記複数の画像データを、複数の画像データ群に分類する分類手段と、
前記分類された画像データ群ごとに、該画像データ群に含まれる複数の画像データを補正する補正手段と、
前記補正手段により補正される前の画像データと、補正された後の画像データとに基づいて、補正量を算出する補正量算出手段と、
前記分類された画像データ群ごとに、前記算出された補正量の最も小さい画像データを出力する出力手段と
を備えることを特徴とする画像データ処理装置。
An image data processing device that outputs predetermined image data from a plurality of image data,
Classification means for classifying the plurality of image data into a plurality of image data groups,
Correction means for correcting a plurality of image data included in the image data group for each of the classified image data groups;
Correction amount calculation means for calculating a correction amount based on the image data before being corrected by the correction means and the image data after the correction,
An image data processing apparatus comprising: an output unit that outputs image data having the smallest calculated correction amount for each of the classified image data groups.
前記補正量は、
前記補正される前の画像データにおける輝度ヒストグラムに対する、前記補正された後の画像データの輝度ヒストグラムのハイライトポイントの変化量、シャドウポイントの変化量、または平均輝度の変化量のいずれかを含むことを特徴とする請求項11乃至13のいずれかに記載の画像データ処理装置。
The correction amount is:
Including any of a change amount of a highlight point, a change amount of a shadow point, and a change amount of an average luminance of the luminance histogram of the corrected image data with respect to the luminance histogram of the image data before the correction. The image data processing apparatus according to claim 11, wherein:
前記補正量は、
前記補正手段において前記画像データをガンマ補正した場合の、ガンマ値であることを特徴とする請求項11乃至13のいずれかに記載の画像データ処理装置。
The correction amount is:
14. The image data processing device according to claim 11, wherein the correction value is a gamma value when the image data is gamma-corrected.
前記補正量は、
前記補正手段において、前記画像データのRGB値に所定の要素値を掛け合わせた場合の、補正前のRGB値に対する補正後のRGB値の変化量を含むことを特徴とする請求項11乃至13のいずれかに記載の画像データ処理装置。
The correction amount is:
14. The correction method according to claim 11, wherein the correction unit includes a change amount of the corrected RGB value with respect to the uncorrected RGB value when the RGB value of the image data is multiplied by a predetermined element value. An image data processing device according to any one of the above.
前記分類手段は、前記複数の画像データを類似画像ごとに分類することを特徴とする請求項13に記載の画像データ処理装置。14. The image data processing apparatus according to claim 13, wherein the classification unit classifies the plurality of image data for each similar image. 前記分類手段は、前記複数の画像データを、該各画像データが有する撮影時の情報に基づいて分類することを特徴とする請求項13に記載の画像データ処理装置。14. The image data processing apparatus according to claim 13, wherein the classification unit classifies the plurality of image data based on information at the time of shooting included in each of the image data. 前記撮影時の情報には、撮影モード、撮影日時を含むことを特徴とする請求項18に記載の画像データ処理装置。19. The image data processing apparatus according to claim 18, wherein the information at the time of shooting includes a shooting mode and a shooting date and time. 前記出力手段は、
前記分類手段により分類された画像データのうち、撮影モードが人物モードの画像データを更に出力することを特徴とする請求項19に記載の画像データ処理装置。
The output means,
20. The image data processing apparatus according to claim 19, wherein, of the image data classified by the classification unit, image data in a shooting mode of a person mode is further output.
請求項1乃至10のいずれか1つに記載の画像データ処理方法をコンピュータによって実現させるための制御プログラム。A control program for causing a computer to implement the image data processing method according to any one of claims 1 to 10. 請求項1乃至10のいずれか1つに記載の画像データ処理方法をコンピュータによって実現させるための制御プログラムを格納する記録媒体。A recording medium storing a control program for causing a computer to implement the image data processing method according to claim 1.
JP2003024538A 2003-01-31 2003-01-31 Image data processing method, image data processing apparatus and program, and storage medium Withdrawn JP2004236170A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003024538A JP2004236170A (en) 2003-01-31 2003-01-31 Image data processing method, image data processing apparatus and program, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003024538A JP2004236170A (en) 2003-01-31 2003-01-31 Image data processing method, image data processing apparatus and program, and storage medium

Publications (1)

Publication Number Publication Date
JP2004236170A true JP2004236170A (en) 2004-08-19

Family

ID=32953049

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003024538A Withdrawn JP2004236170A (en) 2003-01-31 2003-01-31 Image data processing method, image data processing apparatus and program, and storage medium

Country Status (1)

Country Link
JP (1) JP2004236170A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006211248A (en) * 2005-01-27 2006-08-10 Canon Inc Information processing apparatus and control method thereof, and program
JP2007174015A (en) * 2005-12-20 2007-07-05 Nikon Corp Image management program and image management apparatus

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006211248A (en) * 2005-01-27 2006-08-10 Canon Inc Information processing apparatus and control method thereof, and program
JP4560416B2 (en) * 2005-01-27 2010-10-13 キヤノン株式会社 Information processing apparatus, control method therefor, and program
US7831909B2 (en) 2005-01-27 2010-11-09 Canon Kabushiki Kaisha Information processing apparatus, control method therefor, and program with display based on change amount of field areas
JP2007174015A (en) * 2005-12-20 2007-07-05 Nikon Corp Image management program and image management apparatus

Similar Documents

Publication Publication Date Title
US10810454B2 (en) Apparatus, method and program for image search
US9058655B2 (en) Region of interest based image registration
JP5478999B2 (en) Imaging device
JP4214568B2 (en) Image data sequential display device, image data sequential display method, and recording medium
US20140009796A1 (en) Information processing apparatus and control method thereof
US8532431B2 (en) Image search apparatus, image search method, and storage medium for matching images with search conditions using image feature amounts
JP5271015B2 (en) Image processing apparatus, image processing method, and program
US20060215187A1 (en) Image processing apparatus and image processing method
JP3192613B2 (en) Image processing apparatus and method, storage medium
US20080181524A1 (en) Image evaluation method, apparatus, and program
CN110313001A (en) Photo processing method, device and computer equipment
JP2014085814A (en) Information processing device, control method therefor, and program
JP2004236170A (en) Image data processing method, image data processing apparatus and program, and storage medium
JPH1173493A (en) Efficient correcting method for image
JP3684148B2 (en) Image processing method and apparatus, and storage medium
JP2019032654A (en) Image processing device, image processing method, and computer program
US20080181525A1 (en) Image evaluation method, apparatus, and program
JP3122900B2 (en) Electronic image album device
JP5871293B2 (en) Mobile terminal and image classification method
JP4932802B2 (en) Image processing apparatus, method, and program
JP2007011762A (en) Area extraction apparatus and area extraction method
US20230206660A1 (en) Image processing apparatus, image processing method, and storage medium
JP2007122621A (en) Information processor, information processing method
JP5511554B2 (en) Image processing method, image processing apparatus, and program
JP2002024766A (en) Character recognizing device and method

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20060404