Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3855256B2 - COMPRESSED IMAGE DATA GENERATION DEVICE, COMPRESSED IMAGE DATA GENERATION METHOD, AND MEDIUM CONTAINING COMPRESSED IMAGE DATA GENERATION PROCESSING PROGRAM - Google Patents
[go: Go Back, main page]

JP3855256B2 - COMPRESSED IMAGE DATA GENERATION DEVICE, COMPRESSED IMAGE DATA GENERATION METHOD, AND MEDIUM CONTAINING COMPRESSED IMAGE DATA GENERATION PROCESSING PROGRAM - Google Patents

COMPRESSED IMAGE DATA GENERATION DEVICE, COMPRESSED IMAGE DATA GENERATION METHOD, AND MEDIUM CONTAINING COMPRESSED IMAGE DATA GENERATION PROCESSING PROGRAM Download PDF

Info

Publication number
JP3855256B2
JP3855256B2 JP2001272285A JP2001272285A JP3855256B2 JP 3855256 B2 JP3855256 B2 JP 3855256B2 JP 2001272285 A JP2001272285 A JP 2001272285A JP 2001272285 A JP2001272285 A JP 2001272285A JP 3855256 B2 JP3855256 B2 JP 3855256B2
Authority
JP
Japan
Prior art keywords
image data
pixels
original image
original
compressed
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
Application number
JP2001272285A
Other languages
Japanese (ja)
Other versions
JP2003087543A (en
Inventor
政信 白川
耕平 籬
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2001272285A priority Critical patent/JP3855256B2/en
Publication of JP2003087543A publication Critical patent/JP2003087543A/en
Application granted granted Critical
Publication of JP3855256B2 publication Critical patent/JP3855256B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、圧縮画像データ生成装置、圧縮画像データ生成方法および圧縮画像データ生成処理プログラムを記録した媒体に関し、特に、圧縮画像データ生成装置、圧縮画像データ生成方法および圧縮画像データ生成処理プログラムを記録した媒体に関する。
【0002】
【従来の技術】
従来、この種の圧縮画像データ生成装置は、縦横比が4:3のサイズに規格化されたJPEG圧縮画像データとしてのサムネール画像データを生成するものが知られている。このとき、元画像データの縦横比が4:3であればこの元画像データに基づいて規格に適合したサムネール画像データを生成する。一方、元画像データの縦横比が4:3ではない場合、この元画像データを適宜伸長させて縦横比4:3の規格に適合させることによってサムネール画像データを生成している。
【0003】
【発明が解決しようとする課題】
上述した従来の圧縮画像データ生成装置においては、元画像データの縦横比が4:3ではない場合、この元画像データを適宜伸長させるため、生成されたサムネール画像データが歪んでしまったりするという課題があった。
【0004】
本発明は、上記課題にかんがみてなされたもので、簡易な方法で元画像データの縦横比をJPEG圧縮画像データの規格に適合させることが可能な圧縮画像データ生成装置、圧縮画像データ生成方法および圧縮画像データ生成処理プログラムを記録した媒体の提供を目的とする。
【0005】
【課題を解決するための手段】
上記目的を達成するため、請求項1にかかる発明は、元画像データの縦横比を調整するよう所定画素数の画像データを付加する画像データ付加手段と、上記画像データ付加手段により画像データを付加された画像の元画像データを直交変換する直交変換手段と、上記画像データ付加手段が付加した上記画像データの直流成分を白色になるよう設定する直流成分変換手段と、上記画像データが付加された元画像データを量子化する量子化手段と、上記量子化された元画像データを符号化して圧縮画像データを生成する符号化手段とを具備する構成としている。
上記のように構成した請求項1にかかる発明では、画像データ付加手段により、元画像データに所定画素数の画像データを付加して画素数調整を行う。次に、上記画像が付加された元画像部分に直交変換手段にて直交変換を行い、付加した画素は直流成分変換手段にて、直流成分を白色に設定するよう変換を行う。
【0006】
次に量子化手段にて画像データが付加された元画像データを量子化するとともに、符号化手段にて量子化された元画像データを符号化して圧縮画像データを生成する。このように、直交変換された元画像データに直流成分のみにて形成された画像データを付加することによって、この付加する画像データのデータ設定を簡易に行なうことができるとともに、簡易な手法で元画像データの大きさを変化させることが可能になる。また、直流成分のみにて形成される画像データを付加することにより、量子化および符号化における処理負荷を低減することが可能になる。
【0007】
圧縮画像データを生成する処理の高速化を実現可能な手法の一例として、請求項2にかかる発明は、上記請求項1に記載の圧縮画像データ生成装置において、上記画像データ付加手段は、予めサイズが固定されている元画像データに予めサイズが固定されている上記画像データを付加する構成としてある。
上記のように構成した請求項2にかかる発明においては、元画像データのサイズを予め決めておき固定としておく。従って、画像データ付加手段はこの元画像データのサイズに適した予めサイズを固定した画像データを用意しておく。そして、この予めサイズを固定して用意した画像データを元画像データに付加する。これにより、付加された元画像データは常に同一サイズとなる。従って、各処理も固定サイズに基づいて実行されるようにすればよく、処理速度を高速化することが可能になる。
【0008】
任意のサイズを有する元画像データに適宜適切な画像データを付加することが可能な手法の一例として、請求項3にかかる発明は、上記請求項1に記載の圧縮画像データ生成装置において、上記画像データ付加手段は、上記元画像データのサイズを検出するサイズ検出手段を備えるとともに、このサイズ検出手段にて検出された元画像データのサイズに応じた上記画像データを付加する構成としてある。
上記のように構成した請求項3にかかる発明においては、画像データ付加手段に元画像データのサイズを検出するサイズ検出手段を備えさせる。そして、画像データ付加手段はこのサイズ検出手段にて検出された元画像データのサイズに応じた上記画像データを付加する。
【0009】
画像データを付加する態様の一例として、請求項4にかかる発明は、上記請求項1〜請求項3のいずれかに記載の圧縮画像データ生成装置において、上記画像データ付加手段は、上記元画像データの上下あるいは何れか一方に上記画像データを付加する構成としてある。
上記のように構成した請求項4にかかる発明においては、画像データ付加手段にて元画像データの上下あるいは何れか一方に上記画像データを付加する。
【0010】
画像データを付加する態様の他の一例として、請求項5にかかる発明は、上記請求項1〜請求項3のいずれかに記載の圧縮画像データ生成装置において、上記画像データ付加手段は、上記元画像データの左右あるいは何れか一方に上記画像データを付加する構成としてある。
上記のように構成した請求項5にかかる発明においては、画像データ付加手段にて元画像データの左右あるいは何れか一方に上記画像データを付加する。
【0011】
画像データを付加する態様のさらに他の一例として、請求項6にかかる発明は、上記請求項1〜請求項3のいずれかに記載の圧縮画像データ生成装置において、上記画像データ付加手段は、上記元画像データの上下左右に上記画像データを付加する構成としてある。
上記のように構成した請求項6にかかる発明においては、画像データ付加手段にて元画像データの上下左右に上記画像データを付加する。
【0012】
直流成分にて形成される画像データに採用して好適な一例として、請求項7にかかる発明は、上記請求項1〜請求項6のいずれかに記載の圧縮画像データ生成装置において、上記画像データ付加手段は、白色データにて構成される画像データを上記元画像データに付加する構成としてある。
上記のように構成した請求項7にかかる発明においては、画像データ付加手段にて白色データにて構成される画像データを元画像データに付加する。
【0013】
直流成分にて形成される画像データに採用して好適な他の一例として、請求項8にかかる発明は、上記請求項1〜請求項6のいずれかに記載の圧縮画像データ生成装置において、上記画像データ付加手段は、黒色データにて構成される画像データを上記元画像データに付加する構成としてある。
上記のように構成した請求項8にかかる発明においては、画像データ付加手段にて黒色データにて構成される画像データを元画像データに付加する。
【0014】
また、所定の元画像データから圧縮画像データを生成する手法は必ずしも実体のある装置に限られる必要はなく、その方法としても機能することは容易に理解できる。
このため、請求項9にかかる発明は、所定の元画像データから圧縮画像データを生成する圧縮画像データ生成方法であって、元画像データの縦横比を調整するよう所定数の画素を付加する画像データ付加工程と、 上記画像データ付加工程により画像データを付加された画像の元画像データ部分を直交変換する直交変換工程と、上記画像データ付加工手により付加した画像データの直流成分を白色になるよう設定する直流成分変換工程と、上記画像データが付加された元画像データを量子化する量子化工程と、上記量子化された元画像データを符号化して圧縮画像データを生成する符号化工程とを具備する構成としてある。
すなわち、必ずしも実体のある装置に限らず、その方法としても有効であることに相違はない。
【0015】
ところで、このような圧縮画像データ生成装置は単独で存在する場合もあるし、ある機器に組み込まれた状態で利用されることもあるなど、発明の思想としてはこれに限らず、各種の態様を含むものである。従って、ソフトウェアであったりハードウェアであったりするなど、適宜、変更可能である。発明の思想の具現化例として圧縮画像データ生成装置のソフトウェアとなる場合には、かかるソフトウェアを記録した記録媒体上においても当然に存在し、利用されるといわざるをえない。
【0016】
その一例として、請求項10にかかる発明は、所定の元画像データから圧縮画像データを生成する圧縮画像データ生成処理プログラムを記録した媒体であって、元画像データの縦横比を調整するよう所定数の画素を付加する画像データ付加機能と、上記画像データ付加機能により画素を付加された画像の上記元画像データを直交変換する直交変換機能と、上記画像データ付加機能により付加した画像の直流成分を白色になるよう設定する直流成分変換機能と、上記画像データが付加された元画像データを量子化する量子化機能と、上記量子化された元画像データを符号化して圧縮画像データを生成する符号化機能とをコンピュータに実行させる構成としてある。
【0017】
むろん、その記録媒体は、磁気記録媒体であってもよいし光磁気記録媒体であってもよいし、今後開発されるいかなる記録媒体においても全く同様に考えることができる。また、一次複製品、二次複製品などの複製段階については全く問う余地無く同等である。また、一部がソフトウェアであって、一部がハードウェアで実現されている場合においても発明の思想において全く異なるものではなく、一部を記録媒体上に記憶しておいて必要に応じて適宜読み込まれるような形態のものとしてあってもよい。
【0018】
【発明の効果】
以上説明したように本発明は、直交変換された元画像データに直流成分のみにて形成された画像データを付加することによって、この付加する画像データのデータ設定を簡易に行なうことができるとともに、直流成分のみにて形成される画像データを付加することにより、量子化および符号化における処理負荷を低減することが可能な圧縮画像データ生成装置を提供することができる。
また、請求項2にかかる発明によれば、サイズを固定することによって処理速度を高速化することが可能になる。
さらに、請求項3にかかる発明によれば、任意のサイズを有する元画像データに適宜適切な画像データを付加することが可能になる。
【0019】
さらに、請求項4にかかる発明によれば、画像データを付加する態様の一例を提示することができる。
さらに、請求項5にかかる発明によれば、画像データを付加する態様の他の一例を提示することができる。
さらに、請求項6にかかる発明によれば、画像データを付加する態様のさらに他の一例を提示することができる。
さらに、請求項7にかかる発明によれば、直流成分にて形成される画像データの一例を提示することができる。
さらに、請求項8にかかる発明によれば、直流成分にて形成される画像データの他の一例を提示することができる。
【0020】
さらに、請求項9にかかる発明によれば、直交変換された元画像データに直流成分のみにて形成された画像データを付加することによって、この付加する画像データのデータ設定を簡易に行なうことができるとともに、直流成分のみにて形成される画像データを付加することにより、量子化および符号化における処理負荷を低減することが可能な圧縮画像データ生成方法を提供することができる。
さらに、請求項10にかかる発明によれば、直交変換された元画像データに直流成分のみにて形成された画像データを付加することによって、この付加する画像データのデータ設定を簡易に行なうことができるとともに、直流成分のみにて形成される画像データを付加することにより、量子化および符号化における処理負荷を低減することが可能な圧縮画像データ生成処理プログラムを記録した媒体を提供することができる。
【0021】
【発明の実施の形態】
ここでは、下記の順序に従って本発明の実施形態について説明する。
(1)ディジタルスチルカメラの構成について:
(2)画像処理の概略について:
(3)画像データの生成について:
(4)サムネール画像データ生成処理について:
(5)サムネール画像データ生成処理の変形例について:
(6)まとめ:
【0022】
(1)ディジタルスチルカメラの構成について:
図1は、本発明のエッジ強調処理装置が適用されるディジタルスチルカメラの概略構成をブロック図により示している。同図において、ディジタルスチルカメラ10は、光学部20と、CPU32を核とする制御部30とから構成されている。光学部20は、光学レンズ系21と、オートフォーカス機構22と、測距部23と、オートフォーカスコントローラ24とを備え、オートフォーカスコントローラ24がコントローラ25からの制御信号に基づいて測距部23にて被写体までの距離を測定しつつオートフォーカス機構22にて光学レンズ系21を駆動してピントを合わせる。光学レンズ系21にて被写体像を結像するのは撮像素子としてのCCD26の撮像面であり、本CCD26は1800×1200画素を有する単板で構成されている。単板で構成しているため、2×2画素について、グリーン(G)、マゼンタ(M)、イエロー(Y)、シアン(C)のカラーフィルタを順次形成してある。なお、シャッターについては電子シャッターとともにメカニカルシャッターを備えているが、メカニカルシャッターについては図示を省略している。
【0023】
この他、光学部20にはストロボ27も備えられており、コントローラ25からの駆動信号に応じて所定光量および所定回数の発光を行う。これにより、赤目防止であるとかスローシンクといった撮影を実現している。なお、CCD26が出力するアナログ量の電気信号を増幅するオートゲインコントローラ(AGC)28が備えられ、増幅後のアナログ電気信号をディジタル値に変換して出力するA/Dコンバータ29が備えられている。むろん、以上の光学部20については、ディジタルスチルカメラ10としての一般的な構成の一例に過ぎず、各種の変更が可能であることはいうまでもない。例えば、光学レンズ系21にはズームレンズを備えることもできるし、あるいは固定焦点としてオートフォーカスの機能を備えない廉価なものであっても良い。
【0024】
また、制御部30はバス31を備えており、当該バス31にCPU32とROM33とRAM34と上記A/Dコンバータ29が接続されている。CPU32はROM33に書き込まれたファームウェアを実行して光学部20の制御や画像処理の演算等を実行するものであり、その際にRAM34は画像データを保存する画像エリア34aとして機能したり演算処理のためのワークエリア34bとして機能したりする。CPU32が光学部20を制御する際には、コントローラ25に対して制御信号を出力し、同コントローラ25が各構成回路などに対する適宜制御信号を生成して出力する。
【0025】
制御部30はマンマシンインターフェイスとしての機能も有しており、操作ボタンなどを配置した操作パネル35と、撮影画像や操作指示などを表示するLCDパネル36を備えており、CPU32は操作パネル35の操作を監視し、適宜、操作を受けつつ対応する制御を実行する。また、LCDパネル36への表示はRAM34に割り当てられたビデオRAMエリア34cに対してCPU32が所定のデータを書き込むことにより、LCDパネル36に備えられたディスプレイコントローラが適宜同データを読み込んで表示を行う。そして、撮影され、所定の画像処理を経て生成される画像データはI/O37aを介して外部メモリであるフラッシュメモリカード37bに書き込まれ、また、必要に応じて同フラッシュメモリカード37bから読み出される。
【0026】
制御部30の構成もこの種のディジタルスチルカメラ10の典型例であって、各種の変更が可能である。例えば、外部メモリの種類については適宜他の種類のものに置き換えることは容易であるし、さらには着脱可能なメモリとのインターフェイスを備えなくてもUSBインターフェイスを介してコンピュータに画像データを出力するようにしてもよい。表示部としてのLCDパネルに付随して情報表示用LCDを備えてもよいし、CPU32については制御対象が異なる複数のCPUを備えても良い。
【0027】
光学部20で撮像された画像はCCD26からアナログ電気信号として出力された後、AGC28を経てA/Dコンバータ29にてディジタルデータに変換され、さらにバス31を介してRAM34の画像エリア34aに記録される。そして、CPU32が所定の画像処理を実行することによりJPEG画像データに変換されて上述したフラッシュメモリカード37bに書き込まれることになる。
【0028】
(2)画像処理の概略について:
図2は、このCPU32が実行する画像処理の主要な流れを示している。細部においては後述するような具体的な処理が実行されるものの、概略的にはこの流れに従って処理を進めている。まず、この概略について説明する。同図において、ステップS102では、欠陥画素補間を実行する。およそ200万画素を有するCCD26には欠陥画素は避けられず、所定の基準値以下のものであれば良品として供給される。このため、良品の範囲内での欠陥画素については同色画素だけを基準とした5×5画素のメヂアンフィルタを使用して補う。すなわち、欠陥画素がシアンの画素であるとすると、この欠陥画素の周囲に位置する5×5のシアン画素の出力値を順番に並べ、中央値を欠陥画素の値とする。なお、欠陥画素自体は光学部20において既に検出されている。
【0029】
次のステップS104ではホワイトバランスの測定を行う。撮影時の光源の種類、およびCCD26とカラーフィルタとの組合せによっては、ホワイトバランスがずれることがあり、本実施形態においては、各撮影ごとにステップS104にてホワイトバランスを測定し、その結果を反映させてずれを少なくするようにステップS110にてホワイトバランスの制御をする。ホワイトバランスを測定するときには間引き処理で選択した113×75画素の画像データを利用し、RGB表色系においてG成分を基準としたR成分の偏りとB成分の偏りを測定する。なお、本CCD26は補色系のカラーフィルタを備えており、補色系であることを踏まえて制御をしている。
【0030】
本実施形態では三種類の画像を生成する。一つ目は確認画像であり、二つ目はサムネール画像であり、三つ目は主画像である。確認画像は撮影後速やかにLCDパネル36に表示するための画像であり、720×240画素の画像データで構成される。サムネール画像は主画像とともに画像データとして記録されるものであり160×120画素の画像データで構成される。主画像は操作者の選択によって三つのサイズを選択可能であり、E−mail画像という720×480画素か、Print画像という1800×1200画素か、Hypict2という高解像度化した2160×1440画素かのいずれかである。
【0031】
図2において、ステップS106〜ステップS114は破線で囲む表示をしてあり、すくなくともこれらの処理は生成される三種類の画像ごとに実施される。ステップS106ではデータ補間を実施する。CCD26は単板で構成され、200万画素を有しているものの全画素のそれぞれで色情報が完結しているわけではない。すなわち、ある画素についてはシアンの情報だけ、ある画素についてはマゼンタの情報だけ、ある画素についてはイエローの情報だけ、ある画素についてはグリーンの情報だけとなっている。このデータをモザイクカラーデータと呼ぶ。データ補間では各画素に対して不足する他の色の情報を補うことにより、各画素ごとに色情報を完結させるための処理である。不足する情報は注目画素に隣接して取り囲む8画素に含まれる色情報の平均値である。例えば、シアン画素(C1)の周囲にはイエローの画素が二個(Y1,Y2)、マゼンタの画素が二個(M1,M2)、グリーンの画素が四個(G1〜G4)存在する。
【0032】
従って、このシアン画素の色情報(C,M,Y,G)については、
C=C1 ・・・(1)
M=(M1+M2)/2 ・・・(2)
Y=(Y1+Y2)/2 ・・・(3)
G=(G1+G2+G3+G4)/4 ・・・(4)
として計算する。
【0033】
ステップS108では、表色系を変えてRGB画像データに変換する。変換のための一般式も存在するが、実際には単純な一般式を利用するのではなく、チューニングを施したルックアップテーブルを利用したり行列式を利用したりして変換を行う。RGB画像データに変換後、ステップS110では、上述したようにRGB表色系におけるR成分の偏りとB成分の偏りを少なくする制御を実行する。次のステップS112ではトーンカーブ補正を行う。トーンカーブ補正はいわゆるγ補正とも呼ばれ、このときに各成分について10ビットの画像データを8ビットの画像データに変換しつつ、さらに白色側領域と黒色側領域でのノイズの低減や階調性の保持のためにγカーブ自体についての調整も行っている。トーンカーブ補正自体はルックアップテーブルを利用しており、予めチューニングして作成した10ビット→8ビットのルックアップテーブルを参照して変換する。
【0034】
この後、JPEG画像圧縮技術を利用するため、RGB表色系からYUV表色系へと色変換する。なお、輝度とイエローを区別するため、以後において輝度はYmと表示し、また、後述するようにモザイクカラーデータから直接導き出す輝度を単純輝度Ysとして表示することにする。RGB表色系からYUV表色系への色変換は一般式あるいは行列式を利用して変換する。
【0035】
なお、モザイクカラーデータからYUV表色系への変換の一般式は、
Ys=0.25×(C+M+Y+G)
U=C+M−(Y+G)
V=−C+M+Y−G
となっているが、実際には上述したようなチューニングやホワイトバランスの制御が実施され、この通りの対応関係を採用しているわけではない。
【0036】
ステップS116とステップS118は主画像の作成の際にのみ実施される処理である。ノイズ除去は色成分としてUV成分についてのみいわゆるローパスフィルタを適用する演算を行なう。すなわち、色変化が急峻すぎるものについては押さえ気味に作用する。また、エッジ強調は輝度成分についてのみ当該輝度成分に基づくエッジ量から非線形関数値(例えば、コアリング関数値)を算出し、同非線形関数値を元の輝度成分に加重して演算している。従って、隣接する画素間で輝度値が変化する場合にそのエッジ量を算出し、当該エッジ量の絶対値が大きければその変化量を大きく輝度値に反映させるし、同絶対値が小さければ元輝度値はほぼ元のままの値となる。
【0037】
以上が画像処理の概略であるが、上記手順は実際の演算処理において複数の処理を同時に行うなどすることにより、演算処理時間の短縮を図ることも行なう。撮影は上述した三種類の画像ごとに上述した画像処理を実行し、最終的にはサムネール画像を含んだ主画像のJPEG圧縮画像をフラッシュメモリカード37bに書き込むことによって完了する。この他にも、本ディジタルスチルカメラではフラッシュメモリカード37bから画像データを読み込んでLCDパネル36に表示したり、データの削除や各種の設定を実行可能であるが、これについては一般的な技術を適用可能であるので説明を省略する。
【0038】
(3)画像データの生成について:
次に、上述した三種類の画像データを生成する処理について説明する。図3は、この三種類の画像データを生成する流れをフローチャートにより示している。上述したように、RAM34の画像エリア34aに記録された画像データは、1800×1200のドットマトリクス状の画素で多階調表現されている。本実施形態の場合、各画素に10ビットを割り当てた1024階調としている。しかし、各画素のそれぞれで色情報が完結しているわけではなく、図5の左側に示すように、各要素色であるCMYG別にモザイク状に配置されたモザイクデータとされている。また、全画素のうちデータの無い欠陥画素もある。そこで、図3においては、先ず、光学部20において検出された欠陥画素について、同色画素だけを基準とした5×5画素のメヂアンフィルタを使用し、欠陥画素補間を実行する(ステップS202)。
【0039】
次に、ホワイトバランスの測定を行う(ステップS204)。すなわち、全画素のうち、16×16画素のデータを平均してデータサイズを小さくした113×75画素の縮小画像データを利用し、RGB表色系においてG成分を基準としたR成分の偏りを補正するホワイトバランス係数Rcと、同G成分を基準としたB成分の偏りを補正する係数Bcを算出する。ここで、ホワイトバランス係数Rc,Bcは様々な手法により算出することができる。例えば、以下のようにして、ホワイトバランス係数Rc,Bcを算出すればよい。
【0040】
まず、CMYGの縮小画像データから上記単純輝度Ysを算出し、縮小画像データを所定の換算式によりRGBデータに変換する。次に、RGBの縮小画像データを単純輝度Ysの大きさの順に画素数が均等となるように所定の帯域に分け、各帯域内で、G成分の総和をR成分の総和で除したもの(Rciとする)と、G成分の総和をB成分の総和で除したもの(Bciとする)を算出する。さらに、Rci,Bciが1よりも小さい場合は、Rci,Bciを一時的に逆数に置き換える。そして、各Rci,Bciについて、次式に基づいて評価関数Eiを算出する。
【0041】
Ei = |1−Rci| + |1−Bci|
そして、逆数に置き換えたRci,Bciを元に戻して評価関数Eiが最も小さくなるRci,Bciを取得し、ホワイトバランス係数Rc,Bcとすることができる。むろん、この手法は一例に過ぎないため、他の一般的な手法を採用してもよいし、本ディジタルスチルカメラの特性に最も合うように他の手法を検討して採用することも可能である。
【0042】
その後、確認画像データを生成する確認画像生成処理(ステップS206)、サムネール画像データを生成するサムネール生成処理(ステップS208)、主画像データを生成する主画像生成処理(ステップS210)を順番に行う。その際、ステップS204で算出したホワイトバランス係数Rc,BcをステップS206〜S210のすべての処理に使用する。そして、主画像データとサムネール画像データとを圧縮してフラッシュメモリカード37bに記憶させる画像データ記憶処理を行う(ステップS212)。
【0043】
上述したように、RAM34の画像エリア34aに記録された画像データはドットマトリクス状の1800×1200画素で多階調表現されている。そして、後述するように160×104画素に変換される。従って、縦横比約3:2の画像データとなる。一方、ステップS208にて実行されるサムネール生成処理では、JPEG規格のサムネール画像データを生成する。ここで、JPEG規格のサムネール画像データは縦横比が4:3に形成される。従って、縦横比約3:2の画像データのまま縦横比4:3のJPEG圧縮画像データを生成すると、画像に歪みが発生し、圧縮画像表示が狂ってしまう。そこで、本実施形態においては、後述する手法によって、縦横比約3:2の画像データを縦横比4:3に整形しJPEG規格に合わせることによって歪みのないサムネール画像データの生成を可能にしている。
【0044】
(4)サムネール画像データ生成処理について:
図4は、ステップS208のサムネール生成処理の処理内容を示したフローチャートである。光学部20で撮像された画像情報は、ドットマトリクス状の画素で多階調表現した画像データとしてRAM34の画像エリア34aに記録されている。同画像データは1800×1200画素で表現され、CMYG別のモザイクデータとされているが、サムネール画像データを生成するに際しては、この1800画素×1200画素の画像データの画素数を削減する必要がある。そこで、同図においては、先ず、1800×1200画素のモザイクデータを160×104画素のモザイクデータに変換する画素数変換処理を行う(ステップS302)。
【0045】
この画素数変換処理は、画像データの1800×1200画素を間引く処理により行う。ここで、1800×1200画素の1800画素を横方向、1200画素を縦方向とすると、横160×縦104画素とするには、横方向の画素が160/1800=1/11.25、縦方向の画素が104/1200=1/11.54となるように間引く必要がある。図5はこの間引き処理の考え方の一例を説明する模式図である。
【0046】
記録された画像データ41のある座標41aを基準として、横方向に2.5画素間隔、縦方向に5画素間隔の座標を考える(図では、各座標の位置を四角で囲っている)。また、基準の座標41a(図ではGの画像データが格納されている)については、間引き後の画像データ42の基準の画素42aに同色要素Gのデータを格納するものとする。ここで、縦方向については5画素間隔となるので、基準の座標41aの5画素下の座標41bはYのデータとなる。そこで、同座標41bについては、画素42aの一つ下の画素42bに同色要素Yのデータを格納することができる。同様にして、基準の座標41aと同じ列の座標については、間引き後の画像データ42の基準の画素42aと同じ列に同要素色のデータを格納することができる。
【0047】
しかし、横方向については2.5画素間隔となるので、基準の座標41aの2.5画素右の座標41cは記録された画像データ41の二つの画素にまたがっている。そこで、同二つの画素のうち、間引き後の画像データ42に格納すべきMのデータを取得して、画素42cに格納する。座標41cの5画素下の座標41d等、同じ列の座標についても同様である。また、座標41cの2.5画素右の座標41eについては、間引き後の画像データ42の画素42eにGのデータを格納すべきであるのに対し、Gとは異なるMのデータとなっている。
【0048】
そこで、座標41eに近隣した画素のうちGのデータが格納された画素(図では、座標41eの左隣と右隣)のデータを取得し、これらのデータを平均して画素42eに格納する。座標41eの5画素下の座標41f等、同じ列の座標についても同様である。さらに、座標41eの2.5画素右の座標41gについては、記録された画像データ41の二つの画素にまたがるので、間引き後の画像データ42に格納すべきMのデータを取得して、画素42gに格納する。座標41gの5画素下の座標41h等、同じ列の座標についても同様である。
【0049】
以上の考えに基づいた画素数変換処理の処理内容を図6のフローチャートに示すなお、図のフローを行う前提として、間引き後の画像データ42を記憶する領域がRAM34のワークエリア34bに設けられている。まず、抽出する画素の座標を算出し(ステップS402)、この座標の画素の要素色が間引き後の画像データ42に格納するデータの要素色と同じかどうかを判断する(ステップS404)。ここで、座標が複数(本例の場合は二つのみ)の画素にまたがっている場合には、同複数の画素のうちいずれか一つが画像データ42に格納するデータの要素色と同じであれば条件成立としている。
【0050】
例えば、図5の座標41a,41c,41gに座標がある場合に条件成立となる。条件成立の場合、間引き後の画像データ42に格納するデータの要素色の画像データを取得し(ステップS406)、ステップS412に進む。一方、図5の座標41eに座標があるときのように、ステップS404で条件不成立の場合、座標に近隣した画素から画像データ42に格納するデータの要素色と同じ要素色の画像データを取得し(ステップS408)、取得した画像データを平均して(ステップS410)、ステップS412に進む。
【0051】
ステップS412では、取得した画像データを、間引き後の画像データ42を記憶する領域に格納する。そして、次の座標があるかどうかを判断し(ステップS414)、次の座標がある場合には再びステップS402〜S414の処理を行い、次の座標が無い場合には処理を終了する。このようにして、RAM34の画像エリア34aに記録された画像データの画素を間引く処理を行うことができる。その結果、160×104画素のモザイクデータを生成する処理時間が短くて済む。
【0052】
画素数変換処理が終了すると、160×104画素のモザイクデータに対してデータ補間を実施する(ステップS304)。すなわち、上記補間式(1)〜(4)を用いて、各画素に対して不足する他の色の情報を注目画素に隣接して取り囲む8画素に含まれる色情報の平均値とするように計算する。次に、一般式に基づいてチューニングを施した行列式A1を利用して、CMYGの画像データをRGBの画像データに色変換する(ステップS306)。すなわち、CMYGの画像データの各画素の各成分を(C,M,Y,G)、RGBの画像データの各画素の各成分を(R,G,B)で表すと、RGBの画像データは以下の式により演算することができる。
【数1】

Figure 0003855256
【0053】
さらに、ステップS204で算出したホワイトバランス係数Rc,BcによりRGB表色系におけるR成分の偏りとB成分の偏りを少なくするホワイトバランス制御を行う(ステップS308)。すなわち、補正後のRGBの画像データにおける各画素の各成分を(R’,G’,B’)で表すと、以下の式によりホワイトバランス制御を行うことができる。
【数2】
Figure 0003855256
【0054】
ホワイトバランス制御後は、予めチューニングして作成したルックアップテーブルを参照して、トーンカーブ補正を行う(ステップS310)。このとき、RGBの各成分について10ビットの画像データを8ビットの画像データに変換しつつ、さらに白色側領域と黒色側領域でのノイズを低減させたり階調性を保持させたりする。その後、サムネール画像データを生成するとともにフラッシュメモリカード37bに記憶させるに際して、JPEG画像圧縮処理を実行する(ステップS312)。
【0055】
ここで、ステップS310にてトーンカーブ補正して生成された画像データは160×104画素であり、サムネール画像データの規格である160×120画素に対して縦方向において16画素少なくなっている。そこで、本実施形態では、図7に示すようにステップS312のJPEG画像圧縮処理にてサムネール画像データを生成するに際して、160×104画素の画像データの上下にそれぞれ帯状の8画素分の画素から構成される画像データを付加することによって、サムネール画像データの規格である160×120画素の画像データに変換してからサムネール画像データを生成する。このとき、本実施形態においては、付加する画像データを直流成分のみによって指定できる白色の画像データによって構成することによって、簡易に処理負荷をかけることなく、サムネール画像データの規格への変換を実現している。なお、主画像データもRAM34の画像エリア34aに記録された画像データに基づいて生成されるので、サムネール画像は主画像に対応した画像となる。
【0056】
次に、ステップS312にて実行されるJPEG画像圧縮処理の処理内容について図8のフローチャートに示す。同図において、先ず、ステップS310にてトーンカーブ補正された160×104画素の画像データの上下に8×8画素の画像データを20個横に並べた8×160画素の画像データを付加することによって、160×120画素の画像データを生成する(ステップS502)。そして、この160×120画素の画像データに基づいてJPEG画像圧縮を行なう。このJPEG画像圧縮は通常8×8画素のブロック単位で実行されるため、この160×120画素の画像データから8×8画素のブロックデータを取得する(ステップS504)。8×8画素のブロックデータを取得すると、その先頭画素の座標に基づいて、当該ブロックデータがステップS502にて付加した画像データであるか否かを判別する(ステップS506)。
【0057】
付加された画像データでない場合、ステップS310にてトーンカーブ補正が実行された画像データであり、この画像データにJPEG画像圧縮を行なうため、次の変換式(7)を用いてRGBの画像データからYmUVの画像データに色変換する(ステップS508)。
【数3】
Figure 0003855256
【0058】
そして、YmUVに色変換した画像データを離散コサイン変換することによって、直流成分と交流成分に分解する(ステップS510)。一方、ステップS506にて8×8画素のブロックデータがステップS502にて付加した画像データであると判別された場合は、このブロックデータを白色の画像データに変換する(ステップS512)。ブロックデータを白色の画像データに変換する場合、図9に示すように当該ブロックデータのYm成分、U成分、V成分を指定するに際して、Ym成分に白色を示す「0x3F8」の直流成分を先頭画素データに設定する。そして、Ym成分の他の画素データを「0」に設定するとともに、U成分およびV成分の全画素を「0」に設定することによって8×8画素のブロックデータを白色の画像データとすることができる。
【0059】
ステップS510にて離散コサイン変換された8×8画素のブロックデータおよびステップS512にて白色の直流成分が設定された8×8画素のブロックデータを量子化するとともに(ステップS514)、この量子化されたブロックデータを符号化する(ステップS516)。以上のステップS506〜S516の処理を全ブロックデータについて実行し(ステップS518)、全ブロックデータについて符号化までの処理が終了すると、サムネール画像データが生成されることになる(ステップS520)。
【0060】
本実施形態においては、ステップS512にてステップS502において付加された8×8画素のブロックデータの画像データが白色になるように直流成分を設定することによって、データ設定が簡易であるとともに、ステップS514の量子化およびステップS516の符号化の処理負荷を低減することを可能にした。一方、このようにデータ設定が簡易であるとともに、処理負荷を低減することが可能な設定は、白色に限定されるものではなく、黒色であっても良い。
【0061】
このときは図9に示したYm成分の先頭画素データに黒色の直流成分を設定するとともに、他の画素データおよびU成分、Y成分の全画素データに「0」を設定すれば良い。上述した態様では、上下に8×160画素の画像データを付加する構成を採用したが、160×120画素のサムネール画像データの規格に適合させる方法は限定されるものではなく、上下の何れか一方に16×160画素の画像データを付加することによって、160×104画素の画像データを160×120画素の画像データに変換するようにしても良いことは言うまでもない。
【0062】
また、本実施形態においては、ステップS302の画素数変換処理にて1800×1200画素から160×104画素に変換する構成を採用した。これにより、ステップS502にて画像データの上下あるいは何れか一方に8×8画素のブロックデータを適宜付加すればサムネール画像データの規格に適合させることが可能になった。ここで、ステップS302における画素数変換処理にて、1800×1200画素から任意の大きさに画素数を変換することを可能にした場合、上下あるいは何れか一方に8×8画素のブロックデータを付加しただけでは、サムネール画像データの規格に適合させることができない。かかる場合、ステップS302にて生成された画像データの大きさを検出し、この大きさに対応した画像データを付加することによって、サムネール画像データの規格に適合させるようにしても良い。
【0063】
このように、160×104画素にて形成された画像データをサムネール画像データの規格である160×120画素の画像データに変換するに際して、白色の直流成分にて形成される8×160画素の画像データを上下に付加する。これによって、付加する画像データのデータ設定を簡易にすることができるとともに、直流成分のみの設定であるため、後処理の処理負荷を低減することが可能になる。
【図面の簡単な説明】
【図1】 本発明の圧縮画像データ生成装置が適用されるディジタルスチルカメラの概略構成を示すブロック図である。
【図2】 画像処理の主要な処理内容を示すフローチャートである。
【図3】 画像データ生成処理の処理内容を示したフローチャートである。
【図4】 サムネール生成処理の処理内容を示したフローチャートである。
【図5】 間引き処理の考え方の一例を説明する模式図である。
【図6】 画素変換処理の処理内容を示したフローチャートである。
【図7】 サムネール画像データの規格に適合させる態様を示した図である。
【図8】 JPEG画像圧縮処理の処理内容を示したフローチャートである。
【図9】 直流成分にて白色を設定する場合の各成分データを示した図である。
【符号の説明】
10…ディジタルスチルカメラ
20…光学部
21…光学レンズ系
22…オートフォーカス機構
23…測距部
24…オートフォーカスコントローラ
25…コントローラ
26…CCD
27…ストロボ
28…オートゲインコントローラ(AGC)
29…A/Dコンバータ
30…制御部
31…バス
32…CPU
33…ROM
34…RAM
34a…画像エリア
34b…ワークエリア
34c…ビデオRAMエリア
35…操作パネル
36…LCDパネル
37a…I/O
37b…フラッシュメモリカード[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a compressed image data generation device, a compressed image data generation method, and a medium on which a compressed image data generation processing program is recorded, and in particular, records a compressed image data generation device, a compressed image data generation method, and a compressed image data generation processing program. Related media.
[0002]
[Prior art]
Conventionally, this type of compressed image data generation apparatus is known which generates thumbnail image data as JPEG compressed image data that has been standardized to a size with an aspect ratio of 4: 3. At this time, if the aspect ratio of the original image data is 4: 3, thumbnail image data conforming to the standard is generated based on the original image data. On the other hand, when the aspect ratio of the original image data is not 4: 3, thumbnail image data is generated by appropriately expanding the original image data to conform to the standard of aspect ratio 4: 3.
[0003]
[Problems to be solved by the invention]
In the conventional compressed image data generation apparatus described above, when the aspect ratio of the original image data is not 4: 3, the generated thumbnail image data is distorted in order to appropriately expand the original image data. was there.
[0004]
The present invention has been made in view of the above problems, and a compressed image data generation apparatus, a compressed image data generation method, and a method capable of adapting the aspect ratio of original image data to the JPEG compressed image data standard by a simple method. An object is to provide a medium on which a compressed image data generation processing program is recorded.
[0005]
[Means for Solving the Problems]
To achieve the above object, according to the first aspect of the present invention, there is provided an image data adding means for adding image data having a predetermined number of pixels so as to adjust an aspect ratio of the original image data, and adding the image data by the image data adding means. Orthogonal transformation means for orthogonal transformation of the original image data of the obtained image, DC component transformation means for setting the DC component of the image data added by the image data addition means to be white, and the image data added The apparatus includes a quantization unit that quantizes the original image data and an encoding unit that encodes the quantized original image data to generate compressed image data.
In the invention according to claim 1 configured as described above, the image data adding means adds image data of a predetermined number of pixels to the original image data to adjust the number of pixels. Next, the original image portion to which the image is added is subjected to orthogonal transformation by the orthogonal transformation means, and the added pixel is transformed by the direct current component conversion means so that the direct current component is set to white.
[0006]
Next, the original image data to which the image data is added is quantized by the quantization means, and the original image data quantized by the encoding means is encoded to generate compressed image data. In this way, by adding image data formed with only a DC component to the orthogonally transformed original image data, the data setting of the added image data can be easily performed, and the original method can be performed by a simple method. It becomes possible to change the size of the image data. Further, by adding image data formed only with a direct current component, it is possible to reduce the processing load in quantization and encoding.
[0007]
As an example of a technique capable of realizing high-speed processing for generating compressed image data, the invention according to claim 2 is the compressed image data generation apparatus according to claim 1, wherein the image data adding means has a size in advance. The image data whose size is fixed in advance is added to the original image data where is fixed.
In the invention according to claim 2 configured as described above, the size of the original image data is determined in advance and fixed. Accordingly, the image data adding means prepares image data having a fixed size suitable for the size of the original image data. Then, the image data prepared with the size fixed in advance is added to the original image data. Thereby, the added original image data always has the same size. Accordingly, each process may be executed based on a fixed size, and the processing speed can be increased.
[0008]
As an example of a technique capable of appropriately adding appropriate image data to original image data having an arbitrary size, the invention according to claim 3 is the compressed image data generation device according to claim 1, The data adding means includes size detecting means for detecting the size of the original image data, and adds the image data according to the size of the original image data detected by the size detecting means.
In the invention according to claim 3 configured as described above, the image data adding means is provided with a size detecting means for detecting the size of the original image data. The image data adding means adds the image data corresponding to the size of the original image data detected by the size detecting means.
[0009]
As an example of an aspect of adding image data, the invention according to claim 4 is the compressed image data generation device according to any one of claims 1 to 3, wherein the image data adding means is the original image data. The image data is added to the top, bottom, or any one of them.
In the invention according to claim 4 configured as described above, the image data adding means adds the image data to the top or bottom of the original image data.
[0010]
As another example of the aspect of adding image data, the invention according to claim 5 is the compressed image data generation device according to any one of claims 1 to 3, wherein the image data adding means is the original data. The image data is added to the left or right of the image data.
In the invention according to claim 5 configured as described above, the image data adding means adds the image data to the left or right of the original image data.
[0011]
As still another example of the aspect of adding image data, the invention according to claim 6 is the compressed image data generation device according to any one of claims 1 to 3, wherein the image data adding means is The image data is added to the top, bottom, left and right of the original image data.
In the invention according to claim 6 configured as described above, the image data adding means adds the image data to the top, bottom, left and right of the original image data.
[0012]
As an example suitable for use in image data formed with a direct current component, the invention according to claim 7 is the compressed image data generation device according to any one of claims 1 to 6, wherein the image data The adding means is configured to add image data composed of white data to the original image data.
In the invention according to claim 7 configured as described above, image data composed of white data is added to the original image data by the image data adding means.
[0013]
As another example suitable for use in image data formed with a direct current component, the invention according to claim 8 is the compressed image data generation apparatus according to any one of claims 1 to 6, wherein The image data adding means adds image data composed of black data to the original image data.
In the invention according to claim 8 configured as described above, image data composed of black data is added to the original image data by the image data adding means.
[0014]
In addition, the method of generating compressed image data from predetermined original image data is not necessarily limited to a substantial apparatus, and it can be easily understood that the method also functions as a method.
For this reason, the invention according to claim 9 is a compressed image data generation method for generating compressed image data from predetermined original image data, and an image to which a predetermined number of pixels are added so as to adjust the aspect ratio of the original image data. A data addition step, an orthogonal transformation step for orthogonal transformation of the original image data portion of the image to which image data has been added by the image data addition step, and a direct current component of the image data added by the image data processing operator is white. A direct current component conversion step for setting, a quantization step for quantizing the original image data to which the image data is added, and an encoding step for generating compressed image data by encoding the quantized original image data. It is set as the structure which comprises.
That is, it is not necessarily limited to a substantial apparatus, and there is no difference that the method is also effective.
[0015]
By the way, such a compressed image data generation apparatus may exist alone, or may be used in a state where it is incorporated in a certain device. Is included. Therefore, it can be changed as appropriate, such as software or hardware. When the software of the compressed image data generation apparatus is implemented as an embodiment of the idea of the invention, it naturally exists on a recording medium on which such software is recorded, and it must be used.
[0016]
As an example, the invention according to claim 10 is a medium on which a compressed image data generation processing program for generating compressed image data from predetermined original image data is recorded, and a predetermined number is adjusted so as to adjust the aspect ratio of the original image data. An image data addition function for adding a pixel, an orthogonal transformation function for orthogonal transformation of the original image data of an image to which a pixel is added by the image data addition function, and a DC component of the image added by the image data addition function. DC component conversion function for setting white color, quantization function for quantizing original image data to which the image data is added, and code for generating compressed image data by encoding the quantized original image data The computer is configured to execute the function.
[0017]
Of course, the recording medium may be a magnetic recording medium, a magneto-optical recording medium, or any recording medium that will be developed in the future. In addition, the duplication stages such as the primary duplication product and the secondary duplication product are equivalent without any question. In addition, even when a part is software and a part is realized by hardware, the idea of the invention is not completely different, and a part is stored on a recording medium and is appropriately changed as necessary. It may be in the form of being read.
[0018]
【The invention's effect】
As described above, the present invention can easily perform data setting of the image data to be added by adding image data formed with only a direct current component to the original image data subjected to orthogonal transformation, It is possible to provide a compressed image data generation apparatus capable of reducing the processing load in quantization and encoding by adding image data formed only with a direct current component.
According to the second aspect of the present invention, the processing speed can be increased by fixing the size.
Further, according to the invention of claim 3, appropriate image data can be appropriately added to original image data having an arbitrary size.
[0019]
Furthermore, according to the invention concerning Claim 4, an example of the aspect which adds image data can be shown.
Furthermore, according to the invention concerning Claim 5, another example of the aspect which adds image data can be shown.
Furthermore, according to the invention concerning Claim 6, another example of the aspect which adds image data can be shown.
Furthermore, according to the seventh aspect of the present invention, an example of image data formed with a DC component can be presented.
Furthermore, according to the eighth aspect of the present invention, another example of image data formed with a DC component can be presented.
[0020]
According to the ninth aspect of the present invention, the image data to be added can be easily set by adding the image data formed only with the DC component to the orthogonally transformed original image data. In addition, it is possible to provide a compressed image data generation method capable of reducing the processing load in quantization and encoding by adding image data formed only with a DC component.
Furthermore, according to the invention of claim 10, by adding image data formed only with a direct current component to orthogonally transformed original image data, data setting of the added image data can be easily performed. In addition, it is possible to provide a medium on which a compressed image data generation processing program capable of reducing the processing load in quantization and encoding can be provided by adding image data formed only with a DC component. .
[0021]
DETAILED DESCRIPTION OF THE INVENTION
Here, embodiments of the present invention will be described in the following order.
(1) About the configuration of the digital still camera:
(2) Outline of image processing:
(3) Generation of image data:
(4) Thumbnail image data generation processing:
(5) Modification of thumbnail image data generation processing:
(6) Summary:
[0022]
(1) About the configuration of the digital still camera:
FIG. 1 is a block diagram showing a schematic configuration of a digital still camera to which an edge enhancement processing apparatus of the present invention is applied. In the figure, the digital still camera 10 includes an optical unit 20 and a control unit 30 having a CPU 32 as a core. The optical unit 20 includes an optical lens system 21, an autofocus mechanism 22, a distance measuring unit 23, and an autofocus controller 24, and the autofocus controller 24 controls the distance measuring unit 23 based on a control signal from the controller 25. The optical lens system 21 is driven by the autofocus mechanism 22 while the distance to the subject is measured. A subject image is formed by the optical lens system 21 on the image pickup surface of a CCD 26 as an image pickup element, and the CCD 26 is constituted by a single plate having 1800 × 1200 pixels. Since it is composed of a single plate, green (G), magenta (M), yellow (Y), and cyan (C) color filters are sequentially formed for 2 × 2 pixels. In addition, although the shutter is provided with the mechanical shutter with the electronic shutter, illustration is abbreviate | omitted about the mechanical shutter.
[0023]
In addition, the optical unit 20 is also provided with a strobe 27, which emits a predetermined amount of light and a predetermined number of times according to a drive signal from the controller 25. This realizes shooting such as red-eye prevention or slow sync. Note that an auto gain controller (AGC) 28 for amplifying an analog electric signal output from the CCD 26 is provided, and an A / D converter 29 for converting the amplified analog electric signal into a digital value and outputting the digital value. . Of course, the optical unit 20 described above is merely an example of a general configuration as the digital still camera 10, and it is needless to say that various changes can be made. For example, the optical lens system 21 may include a zoom lens, or may be an inexpensive one that does not have an autofocus function as a fixed focus.
[0024]
The control unit 30 includes a bus 31, and the CPU 32, the ROM 33, the RAM 34, and the A / D converter 29 are connected to the bus 31. The CPU 32 executes firmware written in the ROM 33 to execute control of the optical unit 20 and calculation of image processing. At this time, the RAM 34 functions as an image area 34a for storing image data or performs calculation processing. Function as a work area 34b. When the CPU 32 controls the optical unit 20, it outputs a control signal to the controller 25, and the controller 25 generates and outputs an appropriate control signal for each component circuit.
[0025]
The control unit 30 also has a function as a man-machine interface, and includes an operation panel 35 on which operation buttons and the like are arranged, and an LCD panel 36 for displaying captured images and operation instructions. The operation is monitored, and the corresponding control is executed while receiving the operation as appropriate. Further, the display on the LCD panel 36 is performed by the CPU 32 writing predetermined data in the video RAM area 34c allocated to the RAM 34, so that the display controller provided in the LCD panel 36 appropriately reads the data and displays it. . Then, image data that has been shot and generated through predetermined image processing is written to the flash memory card 37b, which is an external memory, via the I / O 37a, and is read out from the flash memory card 37b as necessary.
[0026]
The configuration of the control unit 30 is also a typical example of this type of digital still camera 10, and various changes can be made. For example, the type of external memory can be easily replaced with another type as appropriate, and image data can be output to a computer via a USB interface even without an interface with a removable memory. It may be. An LCD for information display may be provided along with the LCD panel as a display unit, and the CPU 32 may be provided with a plurality of CPUs having different control targets.
[0027]
The image picked up by the optical unit 20 is output from the CCD 26 as an analog electric signal, then converted into digital data by the A / D converter 29 via the AGC 28, and further recorded in the image area 34 a of the RAM 34 via the bus 31. The Then, the CPU 32 executes predetermined image processing to convert it into JPEG image data and write it into the above-described flash memory card 37b.
[0028]
(2) Outline of image processing:
FIG. 2 shows a main flow of image processing executed by the CPU 32. Although detailed processing as described below is executed in detail, the processing is generally proceeded according to this flow. First, this outline will be described. In the figure, in step S102, defective pixel interpolation is executed. A defective pixel is inevitable in the CCD 26 having about 2 million pixels, and if it is below a predetermined reference value, it is supplied as a non-defective product. For this reason, defective pixels within a non-defective range are compensated by using a 5 × 5 pixel median filter based on only the same color pixels. That is, if the defective pixel is a cyan pixel, the output values of 5 × 5 cyan pixels located around the defective pixel are arranged in order, and the median value is set as the value of the defective pixel. The defective pixel itself has already been detected by the optical unit 20.
[0029]
In the next step S104, white balance is measured. Depending on the type of light source at the time of shooting and the combination of the CCD 26 and the color filter, the white balance may be shifted. In this embodiment, the white balance is measured at step S104 for each shooting, and the result is reflected. In step S110, the white balance is controlled so as to reduce the deviation. When measuring the white balance, 113 × 75 pixel image data selected in the thinning process is used to measure the bias of the R component and the bias of the B component in the RGB color system based on the G component. The CCD 26 includes a complementary color filter, and performs control based on the fact that it is a complementary color system.
[0030]
In this embodiment, three types of images are generated. The first is a confirmation image, the second is a thumbnail image, and the third is a main image. The confirmation image is an image to be displayed on the LCD panel 36 immediately after shooting, and is composed of image data of 720 × 240 pixels. The thumbnail image is recorded as image data together with the main image, and is composed of image data of 160 × 120 pixels. The main image can be selected in three sizes according to the selection of the operator, and is any of 720 × 480 pixels as an E-mail image, 1800 × 1200 pixels as a Print image, or 2160 × 1440 pixels with high resolution as Hypic2 It is.
[0031]
In FIG. 2, Steps S106 to S114 are displayed surrounded by broken lines, and at least these processes are performed for each of the three types of generated images. In step S106, data interpolation is performed. Although the CCD 26 is composed of a single plate and has 2 million pixels, the color information is not completely completed for all the pixels. That is, there is only cyan information for some pixels, only magenta information for some pixels, only yellow information for some pixels, and only green information for some pixels. This data is called mosaic color data. Data interpolation is a process for completing the color information for each pixel by supplementing the information of other colors that are insufficient for each pixel. The lacking information is the average value of the color information included in the eight pixels surrounding the target pixel. For example, there are two yellow pixels (Y1, Y2), two magenta pixels (M1, M2), and four green pixels (G1-G4) around the cyan pixel (C1).
[0032]
Therefore, for the color information (C, M, Y, G) of this cyan pixel,
C = C1 (1)
M = (M1 + M2) / 2 (2)
Y = (Y1 + Y2) / 2 (3)
G = (G1 + G2 + G3 + G4) / 4 (4)
Calculate as
[0033]
In step S108, the color system is changed and converted to RGB image data. There are general formulas for conversion, but actually, a simple general formula is not used, but conversion is performed using a tuned lookup table or a determinant. After conversion into RGB image data, in step S110, as described above, control is performed to reduce the bias of the R component and the bias of the B component in the RGB color system. In the next step S112, tone curve correction is performed. Tone curve correction is also referred to as so-called γ correction. At this time, 10-bit image data is converted into 8-bit image data for each component, and further noise reduction and gradation characteristics in the white side region and the black side region are performed. The γ curve itself is also adjusted to maintain The tone curve correction itself uses a look-up table, and is converted with reference to a 10-bit → 8-bit look-up table created by tuning in advance.
[0034]
Thereafter, color conversion is performed from the RGB color system to the YUV color system in order to use the JPEG image compression technique. In order to distinguish between brightness and yellow, the brightness is hereinafter displayed as Ym, and the brightness directly derived from the mosaic color data is displayed as simple brightness Ys as described later. The color conversion from the RGB color system to the YUV color system is performed using a general formula or a determinant.
[0035]
The general formula for conversion from mosaic color data to YUV color system is:
Ys = 0.25 × (C + M + Y + G)
U = C + M- (Y + G)
V = -C + M + Y-G
However, in practice, the tuning and white balance control as described above are performed, and this correspondence is not adopted.
[0036]
Steps S116 and S118 are processes performed only when the main image is created. Noise removal is performed by applying a so-called low-pass filter only for the UV component as the color component. In other words, the color change that is too steep acts on the pressing feeling. In the edge enhancement, a non-linear function value (for example, a coring function value) is calculated from an edge amount based on the luminance component only for the luminance component, and the non-linear function value is weighted to the original luminance component. Therefore, when the luminance value changes between adjacent pixels, the edge amount is calculated, and if the absolute value of the edge amount is large, the amount of change is reflected in the luminance value. If the absolute value is small, the original luminance is calculated. The value is almost unchanged.
[0037]
The above is the outline of the image processing. However, the above procedure also shortens the calculation processing time by simultaneously performing a plurality of processes in the actual calculation processing. The shooting is completed by executing the above-described image processing for each of the three types of images described above, and finally writing the JPEG compressed image of the main image including the thumbnail image in the flash memory card 37b. In addition, this digital still camera can read image data from the flash memory card 37b and display it on the LCD panel 36, or can delete data and perform various settings. The description is omitted because it is applicable.
[0038]
(3) Generation of image data:
Next, processing for generating the above-described three types of image data will be described. FIG. 3 is a flowchart showing the flow of generating these three types of image data. As described above, the image data recorded in the image area 34a of the RAM 34 is expressed in multiple gradations by pixels of a 1800 × 1200 dot matrix. In the case of the present embodiment, the gradation is 1024 with 10 bits assigned to each pixel. However, the color information is not completed for each pixel, but the mosaic data is arranged in a mosaic for each element color CMYG as shown on the left side of FIG. In addition, there is a defective pixel without data among all the pixels. Therefore, in FIG. 3, first, for defective pixels detected by the optical unit 20, a 5 × 5 pixel median filter based on only the same color pixels is used to perform defective pixel interpolation (step S202).
[0039]
Next, white balance is measured (step S204). That is, out of all the pixels, the reduced image data of 113 × 75 pixels obtained by averaging the data of 16 × 16 pixels and reducing the data size is used, and the bias of the R component based on the G component in the RGB color system is used. A white balance coefficient Rc to be corrected and a coefficient Bc to correct the bias of the B component with respect to the G component are calculated. Here, the white balance coefficients Rc and Bc can be calculated by various methods. For example, the white balance coefficients Rc and Bc may be calculated as follows.
[0040]
First, the simple luminance Ys is calculated from the CMYG reduced image data, and the reduced image data is converted into RGB data by a predetermined conversion formula. Next, the RGB reduced image data is divided into predetermined bands so that the number of pixels is equal in the order of the magnitude of the simple luminance Ys, and within each band, the sum of the G components is divided by the sum of the R components ( Rci) and the sum of G components divided by the sum of B components (Bci). Furthermore, when Rci and Bci are smaller than 1, Rci and Bci are temporarily replaced with reciprocals. Then, for each Rci and Bci, an evaluation function Ei is calculated based on the following equation.
[0041]
Ei = | 1-Rci | + | 1-Bci |
Then, Rci and Bci replaced with reciprocals are restored to obtain Rci and Bci with the smallest evaluation function Ei, and can be set as white balance coefficients Rc and Bc. Of course, this method is only an example, so other general methods may be adopted, and other methods may be studied and adopted to best suit the characteristics of the digital still camera. .
[0042]
Thereafter, a confirmation image generation process for generating confirmation image data (step S206), a thumbnail generation process for generating thumbnail image data (step S208), and a main image generation process for generating main image data (step S210) are sequentially performed. At that time, the white balance coefficients Rc and Bc calculated in step S204 are used for all the processes in steps S206 to S210. Then, an image data storage process is performed in which the main image data and the thumbnail image data are compressed and stored in the flash memory card 37b (step S212).
[0043]
As described above, the image data recorded in the image area 34a of the RAM 34 is expressed in multi-tone with dot matrix 1800 × 1200 pixels. Then, it is converted to 160 × 104 pixels as will be described later. Accordingly, the image data has an aspect ratio of about 3: 2. On the other hand, in the thumbnail generation process executed in step S208, JPEG standard thumbnail image data is generated. Here, the JPEG standard thumbnail image data is formed with an aspect ratio of 4: 3. Therefore, if JPEG compressed image data having an aspect ratio of 4: 3 is generated with the image data having an aspect ratio of about 3: 2, the image is distorted and the compressed image display is distorted. Therefore, in the present embodiment, thumbnail image data without distortion can be generated by shaping image data with an aspect ratio of about 3: 2 into an aspect ratio of 4: 3 and matching it with the JPEG standard by a method described later. .
[0044]
(4) Thumbnail image data generation processing:
FIG. 4 is a flowchart showing the processing contents of the thumbnail generation processing in step S208. Image information picked up by the optical unit 20 is recorded in the image area 34a of the RAM 34 as image data expressed in multiple gradations by dots matrix pixels. The image data is expressed by 1800 × 1200 pixels and is mosaic data for each CMYG. However, when generating thumbnail image data, it is necessary to reduce the number of pixels of the image data of 1800 pixels × 1200 pixels. . Therefore, in the figure, first, pixel number conversion processing is performed to convert mosaic data of 1800 × 1200 pixels into mosaic data of 160 × 104 pixels (step S302).
[0045]
This pixel number conversion process is performed by thinning out 1800 × 1200 pixels of the image data. Here, assuming that 1800 pixels of 1800 × 1200 pixels are in the horizontal direction and 1200 pixels are in the vertical direction, the horizontal pixels are 160/1800 = 1 / 11.25 to make the horizontal 160 × vertical 104 pixels, the vertical direction It is necessary to thin out the pixels so that 104/1200 = 1 / 1.54. FIG. 5 is a schematic diagram for explaining an example of the concept of the thinning process.
[0046]
Considering the coordinates 41a of the recorded image data 41 as a reference, the coordinates of 2.5 pixel intervals in the horizontal direction and 5 pixel intervals in the vertical direction are considered (in the figure, the positions of the respective coordinates are surrounded by squares). As for the reference coordinates 41a (G image data is stored in the figure), the data of the same color element G is stored in the reference pixel 42a of the image data 42 after thinning. Here, since the vertical direction is an interval of 5 pixels, the coordinate 41b 5 pixels below the reference coordinate 41a is Y data. Therefore, for the same coordinate 41b, data of the same color element Y can be stored in the pixel 42b immediately below the pixel 42a. Similarly, for the coordinates in the same column as the reference coordinates 41a, data of the same element color can be stored in the same column as the reference pixels 42a of the thinned image data 42.
[0047]
However, since the interval in the horizontal direction is 2.5 pixels, the coordinates 41c to the right of 2.5 pixels of the reference coordinates 41a extend over two pixels of the recorded image data 41. Therefore, among the two pixels, M data to be stored in the thinned image data 42 is acquired and stored in the pixel 42c. The same applies to the coordinates in the same column, such as the coordinates 41d five pixels below the coordinates 41c. In addition, the coordinate 41e on the right side of the pixel 41c by 2.5 pixels is G data that should be stored in the pixel 42e of the thinned image data 42, but is M data different from G. .
[0048]
Therefore, the data of the pixel in which G data is stored among the pixels adjacent to the coordinate 41e (in the figure, the left adjacent and right adjacent to the coordinate 41e) is acquired, and these data are averaged and stored in the pixel 42e. The same applies to the coordinates in the same column, such as the coordinates 41f five pixels below the coordinates 41e. Further, since the coordinate 41g to the right of 2.5 pixels of the coordinate 41e extends over two pixels of the recorded image data 41, M data to be stored in the thinned image data 42 is acquired, and the pixel 42g To store. The same applies to the coordinates in the same column, such as the coordinates 41h five pixels below the coordinates 41g.
[0049]
The processing content of the pixel number conversion processing based on the above idea is shown in the flowchart of FIG. 6. Note that an area for storing the image data 42 after thinning is provided in the work area 34 b of the RAM 34 on the premise of performing the flow of FIG. Yes. First, the coordinates of the pixel to be extracted are calculated (step S402), and it is determined whether the element color of the pixel at this coordinate is the same as the element color of the data stored in the thinned image data 42 (step S404). Here, when the coordinates extend over a plurality of pixels (only two in this example), any one of the plurality of pixels may have the same element color as the data stored in the image data 42. The condition is met.
[0050]
For example, the condition is satisfied when the coordinates 41a, 41c, and 41g in FIG. If the condition is satisfied, the image data of the element color of the data stored in the thinned image data 42 is acquired (step S406), and the process proceeds to step S412. On the other hand, when the condition is not satisfied in step S404 as in the case where the coordinate 41e in FIG. 5 has a coordinate, image data having the same element color as the element color of the data stored in the image data 42 is obtained from the pixel adjacent to the coordinate. (Step S408), average the acquired image data (Step S410), and proceed to Step S412.
[0051]
In step S412, the acquired image data is stored in an area for storing the image data 42 after thinning. Then, it is determined whether or not there is a next coordinate (step S414). If there is a next coordinate, the processes in steps S402 to S414 are performed again. If there is no next coordinate, the process is terminated. In this way, it is possible to perform a process of thinning out the pixels of the image data recorded in the image area 34a of the RAM 34. As a result, the processing time for generating 160 × 104 pixel mosaic data can be shortened.
[0052]
When the pixel number conversion process ends, data interpolation is performed on mosaic data of 160 × 104 pixels (step S304). That is, by using the above-described interpolation formulas (1) to (4), the information of other colors that are insufficient for each pixel is set as the average value of the color information included in the eight pixels surrounding the target pixel. calculate. Next, the CMYG image data is color-converted into RGB image data using the determinant A1 that has been tuned based on the general formula (step S306). That is, if each component of each pixel of CMYG image data is represented by (C, M, Y, G) and each component of each pixel of RGB image data is represented by (R, G, B), RGB image data is It can be calculated by the following equation.
[Expression 1]
Figure 0003855256
[0053]
Further, white balance control is performed to reduce the deviation of the R component and the B component in the RGB color system using the white balance coefficients Rc and Bc calculated in step S204 (step S308). That is, when each component of each pixel in the corrected RGB image data is represented by (R ′, G ′, B ′), white balance control can be performed by the following equation.
[Expression 2]
Figure 0003855256
[0054]
After the white balance control, tone curve correction is performed with reference to a lookup table created by tuning in advance (step S310). At this time, 10-bit image data is converted into 8-bit image data for each component of RGB, and noise in the white side region and the black side region is further reduced and gradation is maintained. Thereafter, when the thumbnail image data is generated and stored in the flash memory card 37b, JPEG image compression processing is executed (step S312).
[0055]
Here, the image data generated by the tone curve correction in step S310 is 160 × 104 pixels, which is 16 pixels fewer in the vertical direction than 160 × 120 pixels which is the standard for thumbnail image data. Therefore, in the present embodiment, as shown in FIG. 7, when thumbnail image data is generated by the JPEG image compression processing in step S <b> 312, the image data of 160 × 104 pixels is composed of pixels for eight strips above and below the image data. By adding the image data to be processed, the thumbnail image data is generated after being converted into image data of 160 × 120 pixels which is the standard of the thumbnail image data. At this time, in the present embodiment, the image data to be added is configured by white image data that can be specified only by the DC component, thereby easily converting the thumbnail image data to the standard without imposing a processing load. ing. Since the main image data is also generated based on the image data recorded in the image area 34a of the RAM 34, the thumbnail image is an image corresponding to the main image.
[0056]
Next, the processing content of the JPEG image compression processing executed in step S312 is shown in the flowchart of FIG. In the figure, first, 8 × 160 pixel image data in which 20 8 × 8 pixel image data are arranged horizontally above and below the 160 × 104 pixel image data subjected to tone curve correction in step S310 is added. Thus, image data of 160 × 120 pixels is generated (step S502). Then, JPEG image compression is performed based on the image data of 160 × 120 pixels. Since this JPEG image compression is normally performed in units of 8 × 8 pixel blocks, block data of 8 × 8 pixels is acquired from the image data of 160 × 120 pixels (step S504). When the block data of 8 × 8 pixels is acquired, it is determined whether the block data is the image data added in step S502 based on the coordinates of the head pixel (step S506).
[0057]
If it is not added image data, it is the image data on which tone curve correction has been executed in step S310. In order to perform JPEG image compression on this image data, the RGB image data is converted using the following conversion equation (7). Color conversion to YmUV image data is performed (step S508).
[Equation 3]
Figure 0003855256
[0058]
Then, the image data color-converted to YmUV is subjected to discrete cosine transform to be decomposed into a DC component and an AC component (step S510). On the other hand, if it is determined in step S506 that the 8 × 8 pixel block data is the image data added in step S502, the block data is converted into white image data (step S512). When converting block data into white image data, when specifying the Ym component, U component, and V component of the block data as shown in FIG. 9, the direct current component of “0x3F8” indicating white is used as the Ym component. Set to data. Then, the other pixel data of the Ym component is set to “0”, and all the pixels of the U component and the V component are set to “0”, thereby making the 8 × 8 pixel block data white image data. Can do.
[0059]
The block data of 8 × 8 pixels subjected to discrete cosine transform in step S510 and the block data of 8 × 8 pixels in which a white DC component is set in step S512 are quantized (step S514), and the quantized data is obtained. The block data is encoded (step S516). The processes in steps S506 to S516 described above are executed for all the block data (step S518), and when the processes up to the encoding for all the block data are completed, thumbnail image data is generated (step S520).
[0060]
In the present embodiment, by setting the DC component so that the image data of the block data of 8 × 8 pixels added in step S502 is white in step S512, the data setting is simplified and step S514 is performed. It has become possible to reduce the processing load of quantization and encoding in step S516. On the other hand, the setting that can simplify the data setting and reduce the processing load is not limited to white, but may be black.
[0061]
At this time, a black DC component may be set in the head pixel data of the Ym component shown in FIG. 9, and “0” may be set in all the pixel data of other pixel data, U component, and Y component. In the above-described aspect, the configuration in which the image data of 8 × 160 pixels is added to the top and bottom is adopted. However, the method of conforming to the standard of the thumbnail image data of 160 × 120 pixels is not limited, and any one of the top and bottom Needless to say, image data of 160 × 104 pixels may be converted to image data of 160 × 120 pixels by adding image data of 16 × 160 pixels to the image data.
[0062]
In the present embodiment, a configuration is used in which the pixel number conversion process in step S302 converts from 1800 × 1200 pixels to 160 × 104 pixels. As a result, it becomes possible to conform to the standard of thumbnail image data if block data of 8 × 8 pixels is appropriately added to the top and bottom of the image data or one of them in step S502. Here, when it is possible to convert the number of pixels from 1800 × 1200 pixels to an arbitrary size in the pixel number conversion process in step S302, block data of 8 × 8 pixels is added to the upper and lower sides or either one of them. It is not possible to conform to the thumbnail image data standard. In such a case, the size of the image data generated in step S302 may be detected, and image data corresponding to this size may be added to conform to the thumbnail image data standard.
[0063]
Thus, when converting image data formed by 160 × 104 pixels into image data of 160 × 120 pixels, which is the standard of thumbnail image data, an image of 8 × 160 pixels formed by a white DC component. Append data up and down. As a result, the setting of the image data to be added can be simplified, and since only the DC component is set, the processing load of post-processing can be reduced.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a schematic configuration of a digital still camera to which a compressed image data generation apparatus of the present invention is applied.
FIG. 2 is a flowchart showing main processing contents of image processing.
FIG. 3 is a flowchart showing processing contents of image data generation processing.
FIG. 4 is a flowchart showing processing contents of thumbnail generation processing;
FIG. 5 is a schematic diagram illustrating an example of a concept of thinning processing.
FIG. 6 is a flowchart showing the contents of pixel conversion processing.
FIG. 7 is a diagram showing a mode of conforming to the standard of thumbnail image data.
FIG. 8 is a flowchart showing the processing content of JPEG image compression processing.
FIG. 9 is a diagram showing each component data when white is set with a DC component.
[Explanation of symbols]
10. Digital still camera
20 ... Optical part
21 ... Optical lens system
22 ... Autofocus mechanism
23. Ranging section
24 ... Autofocus controller
25 ... Controller
26 ... CCD
27 Strobe
28 ... Auto gain controller (AGC)
29 ... A / D converter
30 ... Control unit
31 ... Bus
32 ... CPU
33 ... ROM
34 ... RAM
34a ... Image area
34b ... Work area
34c ... Video RAM area
35 ... Control panel
36 ... LCD panel
37a ... I / O
37b ... Flash memory card

Claims (10)

元画像データの縦横比を調整するよう所定画素数の画像データを付加する画像データ付加手段と、
上記画像データ付加手段により画像データを付加された画像の元画像データ部分を直交変換する直交変換手段と、
上記画像データ付加手段が付加した画像データの直流成分を白色になるよう設定する直流成分変換手段と、
上記画像データが付加された元画像データを量子化する量子化手段と、
上記量子化された元画像データを符号化して圧縮画像データを生成する符号化手段とを具備することを特徴とする圧縮画像データ生成装置。
Image data adding means for adding image data of a predetermined number of pixels so as to adjust the aspect ratio of the original image data;
Orthogonal transformation means for orthogonal transformation of the original image data portion of the image to which image data is added by the image data addition means;
DC component converting means for setting the DC component of the image data added by the image data adding means to be white,
Quantization means for quantizing the original image data to which the image data is added;
An apparatus for generating compressed image data, comprising: encoding means for encoding the quantized original image data to generate compressed image data.
上記画像データ付加手段は、予めサイズが固定されている元画像データに予めサイズが固定されている上記画像データを付加することを特徴とする上記請求項1に記載の圧縮画像データ生成装置。  2. The compressed image data generation apparatus according to claim 1, wherein the image data adding means adds the image data whose size is fixed in advance to original image data whose size is fixed in advance. 上記画像データ付加手段は、上記元画像データのサイズを検出するサイズ検出手段を備えるとともに、このサイズ検出手段にて検出された元画像データのサイズに応じた上記画像データを付加することを特徴とする上記請求項1に記載の圧縮画像データ生成装置。  The image data adding means includes size detecting means for detecting the size of the original image data, and adds the image data according to the size of the original image data detected by the size detecting means. The compressed image data generation apparatus according to claim 1. 上記画像データ付加手段は、上記元画像データの上下あるいは何れか一方に上記画像データを付加することを特徴とする上記請求項1〜請求項3のいずれかに記載の圧縮画像データ生成装置。  The compressed image data generation apparatus according to any one of claims 1 to 3, wherein the image data adding means adds the image data to the upper side or the lower side of the original image data. 上記画像データ付加手段は、上記元画像データの左右あるいは何れか一方に上記画像データを付加することを特徴とする上記請求項1〜請求項3のいずれかに記載の圧縮画像データ生成装置。  4. The compressed image data generation apparatus according to claim 1, wherein the image data adding means adds the image data to the left or right of the original image data. 上記画像データ付加手段は、上記元画像データの上下左右に上記画像データを付加することを特徴とする上記請求項1〜請求項3のいずれかに記載の圧縮画像データ生成装置。  4. The compressed image data generation apparatus according to claim 1, wherein the image data adding means adds the image data to the top, bottom, left and right of the original image data. 上記画像データ付加手段は、白色データにて構成される画像データを上記元画像データに付加することを特徴とする上記請求項1〜請求項6のいずれかに記載の圧縮画像データ生成装置。  The compressed image data generating apparatus according to any one of claims 1 to 6, wherein the image data adding means adds image data composed of white data to the original image data. 上記画像データ付加手段は、黒色データにて構成される画像データを上記元画像データに付加することを特徴とする上記請求項1〜請求項6のいずれかに記載の圧縮画像データ生成装置。  7. The compressed image data generating apparatus according to claim 1, wherein the image data adding means adds image data composed of black data to the original image data. 所定の元画像データから圧縮画像データを生成する圧縮画像データ生成方法であって、
元画像データの縦横比を調整するよう所定数の画像データを付加する画像データ付加工程と、
上記画像データ付加工程により画像データを付加された画像の元画像データ部分を直交変換する直交変換工程と、
上記画像データ付加工程にて付加した画像データの直流成分を白色になるよう設定する直流成分換工程と、
上記画像データが付加された元画像データを量子化する量子化工程と、
上記量子化された元画像データを符号化して圧縮画像データを生成する符号化工程とを具備することを特徴とする圧縮画像データ生成方法。
A compressed image data generation method for generating compressed image data from predetermined original image data,
An image data adding step of adding a predetermined number of image data to adjust the aspect ratio of the original image data;
An orthogonal transformation step of orthogonally transforming the original image data portion of the image to which the image data is added by the image data addition step;
DC component changing step for setting the DC component of the image data added in the image data adding step to be white,
A quantization step for quantizing the original image data to which the image data is added;
A compressed image data generation method comprising: an encoding step of generating compressed image data by encoding the quantized original image data.
所定の元画像データから圧縮画像データを生成する圧縮画像データ生成処理プログラムを記録した媒体であって、
元画像データに所定画素数の画像データを付加して画素数の調整を行う画像データ付加機能と、
上記画像データ付加機能により画像データを付加された画像の元画像データ部分を直交変換する直交変換機能と、
上記画像データ付加機能が付加した画像データの直流成分を白色になるよう設定する直流成分変換機能と、
上記画像データが付加された元画像データを量子化する量子化機能と、
上記量子化された元画像データを符号化して圧縮画像データを生成する符号化機能とをコンピュータに実行させることを特徴とする圧縮画像データ生成処理プログラムを記録した媒体。
A medium in which a compressed image data generation processing program for generating compressed image data from predetermined original image data is recorded,
An image data addition function for adjusting the number of pixels by adding image data of a predetermined number of pixels to the original image data;
An orthogonal transformation function for orthogonal transformation of an original image data portion of an image to which image data is added by the image data addition function;
DC component conversion function for setting the DC component of the image data added by the image data addition function to be white,
A quantization function for quantizing the original image data to which the image data is added;
A medium having recorded thereon a compressed image data generation processing program that causes a computer to execute an encoding function for generating compressed image data by encoding the quantized original image data.
JP2001272285A 2001-09-07 2001-09-07 COMPRESSED IMAGE DATA GENERATION DEVICE, COMPRESSED IMAGE DATA GENERATION METHOD, AND MEDIUM CONTAINING COMPRESSED IMAGE DATA GENERATION PROCESSING PROGRAM Expired - Fee Related JP3855256B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001272285A JP3855256B2 (en) 2001-09-07 2001-09-07 COMPRESSED IMAGE DATA GENERATION DEVICE, COMPRESSED IMAGE DATA GENERATION METHOD, AND MEDIUM CONTAINING COMPRESSED IMAGE DATA GENERATION PROCESSING PROGRAM

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001272285A JP3855256B2 (en) 2001-09-07 2001-09-07 COMPRESSED IMAGE DATA GENERATION DEVICE, COMPRESSED IMAGE DATA GENERATION METHOD, AND MEDIUM CONTAINING COMPRESSED IMAGE DATA GENERATION PROCESSING PROGRAM

Publications (2)

Publication Number Publication Date
JP2003087543A JP2003087543A (en) 2003-03-20
JP3855256B2 true JP3855256B2 (en) 2006-12-06

Family

ID=19097681

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001272285A Expired - Fee Related JP3855256B2 (en) 2001-09-07 2001-09-07 COMPRESSED IMAGE DATA GENERATION DEVICE, COMPRESSED IMAGE DATA GENERATION METHOD, AND MEDIUM CONTAINING COMPRESSED IMAGE DATA GENERATION PROCESSING PROGRAM

Country Status (1)

Country Link
JP (1) JP3855256B2 (en)

Also Published As

Publication number Publication date
JP2003087543A (en) 2003-03-20

Similar Documents

Publication Publication Date Title
CN100405824C (en) camera system and playing system
US7227574B2 (en) Image capturing apparatus
JP5014099B2 (en) Imaging apparatus and control method thereof
JPH11331596A (en) Image processing method and its device
US10991126B2 (en) Information processing device and method, and program, for gamut conversion of content
US8478039B2 (en) Information processing device and method and program
CN101273623B (en) Camera device, image processing device, and image processing method
US20060245008A1 (en) Image processing apparatus, image processing method, electronic camera, and scanner
US7327876B2 (en) Image processing device
JP2005354372A (en) Apparatus and method for image recording device, method and system for image processing
JP3855256B2 (en) COMPRESSED IMAGE DATA GENERATION DEVICE, COMPRESSED IMAGE DATA GENERATION METHOD, AND MEDIUM CONTAINING COMPRESSED IMAGE DATA GENERATION PROCESSING PROGRAM
JP2000013806A (en) Image processing apparatus and image processing method
JP4150878B2 (en) Image data generator
JP4168229B2 (en) Edge enhancement processing device
JP4003037B2 (en) White balance adjustment device, white balance adjustment program, white balance adjustment method, and digital camera
JP4025962B2 (en) White balance adjustment
JP2000308079A (en) Image signal processing device, image signal processing method, learning device, learning method, and recording medium
JP2005284423A (en) Image processing apparatus and image processing method
JP2000232618A (en) Photo-finishing method, system therefor and recording medium
JP4074323B2 (en) Playback system and playback program
JP2005347963A (en) Background detection method and image processing apparatus using the same
JP2004096444A (en) Image processing apparatus and method
JP2003087807A (en) Image data conversion device, image data conversion method, image data conversion program, and medium recording image data conversion program
JP2001320593A (en) Image processing apparatus, image forming apparatus having the same, and image processing method
JP2004178428A (en) Image processing method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040930

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060417

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060510

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060703

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060903

R150 Certificate of patent or registration of utility model

Ref document number: 3855256

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20090922

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20100922

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20100922

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20110922

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20120922

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20130922

Year of fee payment: 7

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees