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
JP4720339B2 - Image processing apparatus, image processing program, and electronic camera - Google Patents
[go: Go Back, main page]

JP4720339B2 - Image processing apparatus, image processing program, and electronic camera - Google Patents

Image processing apparatus, image processing program, and electronic camera Download PDF

Info

Publication number
JP4720339B2
JP4720339B2 JP2005214166A JP2005214166A JP4720339B2 JP 4720339 B2 JP4720339 B2 JP 4720339B2 JP 2005214166 A JP2005214166 A JP 2005214166A JP 2005214166 A JP2005214166 A JP 2005214166A JP 4720339 B2 JP4720339 B2 JP 4720339B2
Authority
JP
Japan
Prior art keywords
compression
image
unit
data
image processing
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 - Lifetime
Application number
JP2005214166A
Other languages
Japanese (ja)
Other versions
JP2007036440A (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.)
Nikon Corp
Original Assignee
Nikon 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 Nikon Corp filed Critical Nikon Corp
Priority to JP2005214166A priority Critical patent/JP4720339B2/en
Publication of JP2007036440A publication Critical patent/JP2007036440A/en
Application granted granted Critical
Publication of JP4720339B2 publication Critical patent/JP4720339B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Image Processing (AREA)
  • Studio Devices (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Description

本発明は、画像圧縮の圧縮パラメータを設定するための技術に関する。   The present invention relates to a technique for setting a compression parameter for image compression.

一般に、電子カメラやコンピュータでは、画像データの記録容量を削減するため、画像圧縮を実施する。この種の画像圧縮では、画像データの個体差によって、圧縮後の符号量や伸長後の画質が大きくばらつく。そこで、一般的なJPEG圧縮などでは、複数回の試し圧縮を行いながら、スケールファクタの値を適宜に調整し、最終的な圧縮符号量を所望の範囲内に納めている。   In general, an electronic camera or computer performs image compression in order to reduce the recording capacity of image data. In this type of image compression, the code amount after compression and the image quality after decompression vary greatly due to individual differences in image data. Therefore, in general JPEG compression or the like, the value of the scale factor is adjusted as appropriate while performing a plurality of trial compressions, so that the final compression code amount falls within a desired range.

また、下記の特許文献1では、画像データの撮像時の条件に基づいて、試行用の圧縮パラメータを変更する技術が記載されている。これによって、正解近くの圧縮パラメータから試し圧縮を開始することが可能になり、圧縮パラメータの推定を適切かつ正確に行うことが可能になる。   Further, Patent Document 1 below describes a technique for changing a compression parameter for trial based on conditions at the time of image data capture. As a result, trial compression can be started from a compression parameter near the correct answer, and the compression parameter can be estimated appropriately and accurately.

なお、本願では、上述のスケールファクタのように、画像圧縮において圧縮符号量に影響を与える調整可能なパラメータを総称して、『圧縮パラメータ』と呼ぶ。   In the present application, adjustable parameters that affect the compression code amount in image compression, such as the scale factor described above, are collectively referred to as “compression parameters”.

特開2001−61148号公報(段落0112など)JP 2001-61148 A (paragraph 0112 etc.)

ところで、近年の電子カメラでは、連写速度の向上や操作性向上のため、画像圧縮にかかる処理時間の短縮が要望される。また、コンピュータの画像処理プログラムにおいても、スループット向上のため、画像圧縮にかかる処理時間の短縮が要望される。
ところで、上述した画像圧縮では、試し圧縮の結果に基づいて圧縮パラメータを設定しなければならず、圧縮パラメータの設定に時間がかかる。
そこで、本発明では、適正な圧縮パラメータを少ない処理負荷で設定するための新たな技術を提供することを目的とする。
By the way, in recent electronic cameras, in order to improve the continuous shooting speed and the operability, it is desired to shorten the processing time required for image compression. Also in computer image processing programs, it is desired to reduce the processing time required for image compression in order to improve throughput.
By the way, in the image compression described above, it is necessary to set the compression parameter based on the result of the trial compression, and it takes time to set the compression parameter.
Accordingly, an object of the present invention is to provide a new technique for setting an appropriate compression parameter with a small processing load.

請求項1に記載の画像処理装置は、入力された画像データに対して近傍画素間の画素差分である空間差分を複数求める画素演算部と、複数の前記空間差分についてバラツキ度を検出する差分解析部と、前記バラツキ度に応じて、画像圧縮において圧縮符号量に影響を与えるパラメータである圧縮パラメータを設定する圧縮制御部と、設定された前記圧縮パラメータを用いて、前記画像データに前記画像圧縮を施し、圧縮データを生成する画像圧縮部とを備え、前記画素演算部は、前記空間差分を、予め調整可能な重み割合で前記画像データに加算することにより、前記画像データに輪郭強調を施し、前記圧縮制御部は、前記バラツキ度および前記重み割合の組み合わせに応じて、圧縮パラメータを設定し、前記画像圧縮部は、設定された前記圧縮パラメータを用いて、前記輪郭強調済みの前記画像データに前記画像圧縮を施し、圧縮データを生成することを特徴とする。  The image processing apparatus according to claim 1, a pixel calculation unit that obtains a plurality of spatial differences that are pixel differences between neighboring pixels with respect to input image data, and a differential analysis that detects a degree of variation of the plurality of spatial differences. A compression control unit that sets a compression parameter that is a parameter that affects the compression code amount in image compression according to the degree of variation, and the image compression is performed on the image data using the set compression parameter. An image compression unit that generates compressed data, and the pixel calculation unit performs edge enhancement on the image data by adding the spatial difference to the image data at a weight ratio that can be adjusted in advance. The compression control unit sets a compression parameter according to the combination of the degree of variation and the weight ratio, and the image compression unit With contraction parameter, it performs the image compression on the image data of the contour-enhanced, and generates compressed data.

請求項4に記載の画像処理プログラムは、コンピュータを、請求項1ないし請求項3のいずれか1項に記載の前記画素演算部、前記差分解析部、前記圧縮制御部、前記画像圧縮部として機能させる。  The image processing program according to claim 4 functions as a computer, the pixel calculation unit, the difference analysis unit, the compression control unit, and the image compression unit according to any one of claims 1 to 3. Let

請求項5に記載の電子カメラは、請求項1ないし請求項3のいずれか1項に記載の画像処理装置と、被写体像を撮像して画像データを生成する撮像部とを備え、前記撮像部で生成された前記画像データを、前記画像処理装置で画像圧縮する機能を有することを特徴とする。An electronic camera according to a fifth aspect includes the image processing apparatus according to any one of the first to third aspects, and an imaging unit that captures a subject image and generates image data. The image processing apparatus has a function of compressing the image data generated by the image processing apparatus using the image processing apparatus.

請求項6に記載の画像処理装置は、入力された画像データに対して近傍画素間の画素差分である空間差分を複数求める画素演算部と、複数の前記空間差分についてバラツキ度を検出する差分解析部と、前記バラツキ度に応じて、画像圧縮において圧縮符号量に影響を与えるパラメータである圧縮パラメータを設定する圧縮制御部と、設定された前記圧縮パラメータを用いて、前記画像データに前記画像圧縮を施し、圧縮データを生成する画像圧縮部とを備え、前記差分解析部は、複数の前記空間差分に対してデータ圧縮を施し、データ圧縮後のデータ量が多いほど、前記空間差分のバラツキ度が高いと判定することを特徴とする。  The image processing device according to claim 6, a pixel calculation unit that obtains a plurality of spatial differences that are pixel differences between neighboring pixels with respect to input image data, and a differential analysis that detects a degree of variation of the plurality of spatial differences. A compression control unit that sets a compression parameter that is a parameter that affects the compression code amount in image compression according to the degree of variation, and the image compression is performed on the image data using the set compression parameter. And the difference analysis unit performs data compression on the plurality of spatial differences, and the greater the amount of data after data compression, the greater the degree of variation in the spatial differences. Is determined to be high.

請求項7に記載の画像処理プログラムは、コンピュータを、請求項6に記載の前記画素演算部、前記差分解析部、前記圧縮制御部、前記画像圧縮部として機能させる。  An image processing program according to a seventh aspect causes a computer to function as the pixel calculation unit, the difference analysis unit, the compression control unit, and the image compression unit according to a sixth aspect.

請求項8に記載の電子カメラは、請求項6に記載の画像処理装置と、被写体像を撮像して画像データを生成する撮像部とを備え、前記撮像部で生成された前記画像データを、前記画像処理装置で画像圧縮する機能を有することを特徴とする。  An electronic camera according to an eighth aspect includes the image processing device according to the sixth aspect and an imaging unit that captures a subject image to generate image data, and the image data generated by the imaging unit is The image processing apparatus has a function of compressing an image.

本発明によれば、適正な圧縮パラメータを少ない処理負荷で設定するための新たな技術を提供することが可能になる。 According to the present invention , it is possible to provide a new technique for setting an appropriate compression parameter with a small processing load .

《第1実施形態》
[実施形態の構成説明]
図1は、本実施形態の電子カメラ11を示すブロック図である。
図1において、電子カメラ11には、撮影レンズ12が装着される。レンズ制御部12aは、この撮影レンズ12のフォーカス駆動や絞り制御などを実施する。この撮影レンズ12の像空間には、撮像素子13の受光面が配置される。この撮像素子13は、撮像制御部14によって駆動される。撮像素子13から出力される画像データは、信号処理部15、およびA/D変換部16を介して処理された後、メモリ17に一時蓄積される。
このメモリ17は、バス18に接続される。このバス18には、レンズ制御部12a、撮像制御部14、マイクロプロセッサ19、記録部22、モニタ表示部23、画像圧縮部42および画像処理部43も接続される。
上記のマイクロプロセッサ19には、レリーズ釦などの操作部19a、被写界の複数箇所について焦点検出を実施する焦点検出部19bが接続される。また、上記の記録部22には、記録媒体22aが装着される。
<< First Embodiment >>
[Description of Embodiment Configuration]
FIG. 1 is a block diagram showing an electronic camera 11 of the present embodiment.
In FIG. 1, a photographing lens 12 is attached to the electronic camera 11. The lens control unit 12a performs focus driving, aperture control, and the like of the photographing lens 12. In the image space of the photographic lens 12, the light receiving surface of the image sensor 13 is arranged. The imaging element 13 is driven by the imaging control unit 14. Image data output from the image sensor 13 is processed via the signal processing unit 15 and the A / D conversion unit 16 and then temporarily stored in the memory 17.
This memory 17 is connected to a bus 18. Also connected to the bus 18 are a lens control unit 12a, an imaging control unit 14, a microprocessor 19, a recording unit 22, a monitor display unit 23, an image compression unit 42, and an image processing unit 43.
The microprocessor 19 is connected to an operation unit 19a such as a release button and a focus detection unit 19b that performs focus detection at a plurality of locations in the object scene. The recording unit 22 is loaded with a recording medium 22a.

[第1実施形態の動作説明]
図2は、第1実施形態の動作を示す流れ図である。以下、図面に示すステップ番号に沿って、本実施形態の動作を説明する。
[Description of Operation of First Embodiment]
FIG. 2 is a flowchart showing the operation of the first embodiment. The operation of this embodiment will be described below along the step numbers shown in the drawings.

ステップS1: マイクロプロセッサ19は、操作部19aのレリーズ操作を検知すると、撮像制御部14などを介して撮像素子13を駆動して、撮像動作を実施する。撮像動作によって生成された画像データは、メモリ17に一時蓄積される。 Step S1: When the microprocessor 19 detects a release operation of the operation unit 19a, the microprocessor 19 drives the image pickup device 13 via the image pickup control unit 14 or the like to perform an image pickup operation. Image data generated by the imaging operation is temporarily stored in the memory 17.

ステップS2: 画像処理部43は、メモリ17中の画像データについて、近傍画素間の空間差分を画素単位に算出する。なお、ここでの空間差分の算出には、縦または横方向に隣接画素間の差分をとる1次差分や、ラプラシアンフィルタなどの局所オペレータを用いることが好ましい。 Step S2: The image processing unit 43 calculates the spatial difference between neighboring pixels for the image data in the memory 17 in units of pixels. Note that, for the calculation of the spatial difference here, it is preferable to use a primary operator that takes the difference between adjacent pixels in the vertical or horizontal direction, or a local operator such as a Laplacian filter.

ステップS3: 画像処理部43は、空間差分を所定の重み割合で画像データに画素加算することで、画像データに輪郭強調を施す。この重み割合は、ユーザーが予めカスタム設定した輪郭強調の強弱度合いに応じて、選択される。 Step S3: The image processing unit 43 performs edge enhancement on the image data by adding pixels of the spatial difference to the image data at a predetermined weight ratio. This weight ratio is selected according to the degree of contour emphasis that is custom-set by the user in advance.

ステップS4: 画像処理部43は、空間差分の全部または部分について、絶対値和を求める。この絶対値和は、空間差分のバラツキ度を示す値となる。 Step S4: The image processing unit 43 calculates an absolute value sum for all or part of the spatial difference. This absolute value sum is a value indicating the degree of variation of the spatial difference.

ステップS5: マイクロプロセッサ19は、画像処理部43から絶対値和と重み割合を情報取得する。マイクロプロセッサ19は、この絶対値和と重み割合の組み合わせに応じて、圧縮パラメータを決定する。
例えば、マイクロプロセッサ19は、(空間差分の絶対値和)×(輪郭強調の重み割合)の積に対応して、下記のように圧縮パラメータを決定する。
Step S5: The microprocessor 19 acquires information on the sum of absolute values and the weight ratio from the image processing unit 43. The microprocessor 19 determines a compression parameter according to the combination of the absolute value sum and the weight ratio.
For example, the microprocessor 19 determines the compression parameter as follows, corresponding to the product of (absolute value sum of spatial differences) × (weight ratio of edge enhancement).

(空間差分の絶対値和)×(輪郭強調の重み割合)≦閾値1ならば、圧縮パラメータ1を選択する。
閾値1<(空間差分の絶対値和)×(輪郭強調の重み割合)≦閾値2ならば、圧縮パラメータ2を選択する。
閾値2<(空間差分の絶対値和)×(輪郭強調の重み割合)≦閾値3ならば、圧縮パラメータ3を選択する。
閾値3<(空間差分の絶対値和)×(輪郭強調の重み割合)≦閾値4ならば、圧縮パラメータ4を選択する。
If (sum of absolute values of spatial differences) × (weight ratio of contour emphasis) ≦ threshold 1, compression parameter 1 is selected.
If threshold value 1 <(sum of absolute values of spatial differences) × (weight ratio of edge enhancement) ≦ threshold value 2, compression parameter 2 is selected.
If threshold value 2 <(sum of absolute values of spatial differences) × (weight ratio of edge enhancement) ≦ threshold value 3, compression parameter 3 is selected.
If threshold value 3 <(sum of absolute values of spatial differences) × (weight ratio of edge enhancement) ≦ threshold value 4, compression parameter 4 is selected.

また例えば、マイクロプロセッサ19は、係数A×(空間差分の絶対値和)+係数B×(輪郭強調の重み割合)の評価値に対応して、圧縮パラメータを決定してもよい。   Further, for example, the microprocessor 19 may determine the compression parameter corresponding to the evaluation value of coefficient A × (sum of absolute values of spatial differences) + coefficient B × (weight ratio of edge enhancement).

このような積や評価値が大きいほど、圧縮パラメータを高圧縮方向(圧縮効率が高くなる方向)に変更することにより、固定長圧縮にほぼ近い画像圧縮を実現することができる。
逆に、積や評価値が大きいほど、圧縮パラメータを低圧縮方向(圧縮歪みが少ない方向)に変更することにより、画質優先の画像圧縮を実現することができる。
As the product or evaluation value increases, the compression parameter is changed in the high compression direction (the direction in which the compression efficiency increases), thereby realizing image compression that is almost similar to fixed length compression.
Conversely, as the product or evaluation value increases, the compression parameter is changed to a lower compression direction (a direction with less compression distortion), thereby realizing image compression with priority on image quality.

ステップS6: マイクロプロセッサ19は、ステップS5で決定した圧縮パラメータを、画像圧縮部42に設定する。画像圧縮部42は、この圧縮パラメータを使用して、輪郭強調後の画像データを画像圧縮し、圧縮データを生成する。 Step S6: The microprocessor 19 sets the compression parameter determined in step S5 in the image compression unit 42. Using this compression parameter, the image compression unit 42 compresses the image data after the edge enhancement, and generates compressed data.

ステップS7: 記録部22は、圧縮データを、記録媒体22aに保存記録する。 Step S7: The recording unit 22 saves and records the compressed data on the recording medium 22a.

[第1実施形態の効果など]
第1実施形態では、画像データの近傍画素間で空間差分を求め、これら空間差分の絶対値和を求める。この絶対値和が小さければ、画像データの起伏変化(空間情報量)が少ないことを意味する。この場合には、画像データの圧縮効率が高くなる。逆に、絶対値和が大きければ、画像データの起伏変化(空間情報量)が多いことを意味する。この場合、画像データの圧縮効率は低くなる。このように、第1実施形態では、空間差分の絶対値和を求めるという比較的軽い処理負荷によって、画像データの圧縮効率を簡易に推測することができる。さらに、第1実施形態では、この絶対値和に応じて圧縮パラメータを決定することで、画像データの空間情報量を考慮した適切な圧縮パラメータを決定することが可能になる。
[Effects of First Embodiment]
In the first embodiment, a spatial difference is obtained between neighboring pixels of image data, and an absolute value sum of these spatial differences is obtained. If this absolute value sum is small, it means that there is little undulation change (amount of spatial information) in the image data. In this case, the compression efficiency of the image data is increased. On the contrary, if the sum of absolute values is large, it means that there are many undulation changes (amount of spatial information) in the image data. In this case, the compression efficiency of the image data is low. As described above, in the first embodiment, the compression efficiency of image data can be easily estimated by a relatively light processing load of obtaining the sum of absolute values of spatial differences. Furthermore, in the first embodiment, it is possible to determine an appropriate compression parameter considering the amount of spatial information of image data by determining the compression parameter according to the sum of absolute values.

また、第1実施形態では、輪郭強調用に求めた空間差分を流用して、圧縮パラメータを決定する。したがって、空間差分を求めるための演算処理を新たに追加する必要がない。その結果、圧縮パラメータの決定のために追加する処理負荷は極めて少なくなる。   In the first embodiment, the compression parameter is determined by diverting the spatial difference obtained for contour enhancement. Therefore, it is not necessary to newly add a calculation process for obtaining the spatial difference. As a result, the processing load added for determining the compression parameter is extremely reduced.

さらに、第1実施形態では、絶対値和と、輪郭強調の重み割合との組み合わせに応じて、圧縮パラメータを決定する。したがって、輪郭強調後の圧縮効率の変化も考慮した、圧縮パラメータを設定することが可能になる。   Furthermore, in the first embodiment, the compression parameter is determined according to the combination of the sum of absolute values and the weight ratio of edge enhancement. Therefore, it is possible to set a compression parameter in consideration of a change in compression efficiency after contour enhancement.

また、第1実施形態では、画像圧縮前に圧縮効率を推定できる。そのため、従来の試し圧縮を廃止し、一度で画像圧縮を終えることも可能になる。その結果、試し圧縮にかかる時間を省いて、画像圧縮時間を短縮することが可能になる。   In the first embodiment, the compression efficiency can be estimated before image compression. Therefore, it becomes possible to abolish the conventional trial compression and finish the image compression at once. As a result, the time required for trial compression can be omitted, and the image compression time can be shortened.

《第2実施形態》
第2実施形態の構成は、第1実施形態(図1)と同じため、ここでの説明を省略する。
図3は、第2実施形態の動作を示す流れ図である。以下、図面に示すステップ番号に沿って、本実施形態の動作を説明する。
<< Second Embodiment >>
Since the structure of 2nd Embodiment is the same as 1st Embodiment (FIG. 1), description here is abbreviate | omitted.
FIG. 3 is a flowchart showing the operation of the second embodiment. The operation of this embodiment will be described below along the step numbers shown in the drawings.

ステップS21〜S23: 第1実施形態のステップS1〜S3と同じ処理。 Steps S21 to S23: The same processing as steps S1 to S3 of the first embodiment.

ステップS24: 画像処理部43は、空間差分の全部または部分について、ランレングス符号化などのデータ圧縮を試みる。
画像処理部43は、この空間差分の圧縮データ量を求める。この圧縮データ量は、空間差分のバラツキ度を示す値となる。
なお、ランレングス符号化の場合には、空間差分の値ゼロを最短符号とする符号割り当てを用いることが好ましい。さらには、空間差分が値ゼロに近いほど短い符号を割り当てることが好ましい。このような符号割り当てにより、空間差分の圧縮データ量は、画像データの起伏(空間情報量)と正の相関を強く示すようになる。
Step S24: The image processing unit 43 attempts data compression such as run-length encoding for all or part of the spatial difference.
The image processing unit 43 obtains the compressed data amount of this spatial difference. This amount of compressed data is a value indicating the degree of variation in spatial difference.
In the case of run-length encoding, it is preferable to use code allocation in which the spatial difference value of zero is the shortest code. Furthermore, it is preferable to assign a shorter code as the spatial difference is closer to zero. By such code assignment, the compressed data amount of the spatial difference strongly shows a positive correlation with the undulation (spatial information amount) of the image data.

ステップS25: マイクロプロセッサ19は、画像処理部43から圧縮データ量と重み割合を情報取得する。マイクロプロセッサ19は、この圧縮データ量と重み割合の組み合わせに応じて、圧縮パラメータを決定する。
例えば、マイクロプロセッサ19は、(空間差分の圧縮データ量)×(輪郭強調の重み割合)の積に対応して、下記のように圧縮パラメータを決定する。
Step S25: The microprocessor 19 acquires information on the compressed data amount and the weight ratio from the image processing unit 43. The microprocessor 19 determines a compression parameter according to the combination of the compressed data amount and the weight ratio.
For example, the microprocessor 19 determines a compression parameter as follows, corresponding to a product of (compressed data amount of spatial difference) × (weight ratio of edge enhancement).

(空間差分の圧縮データ量)×(輪郭強調の重み割合)≦閾値1ならば、圧縮パラメータ1を選択する。
閾値1<(空間差分の圧縮データ量)×(輪郭強調の重み割合)≦閾値2ならば、圧縮パラメータ2を選択する。
閾値2<(空間差分の圧縮データ量)×(輪郭強調の重み割合)≦閾値3ならば、圧縮パラメータ3を選択する。
閾値3<(空間差分の圧縮データ量)×(輪郭強調の重み割合)≦閾値4ならば、圧縮パラメータ4を選択する。
When (compressed data amount of spatial difference) × (weight ratio of contour emphasis) ≦ threshold 1, compression parameter 1 is selected.
If threshold value 1 <(compressed data amount of spatial difference) × (weight ratio of edge enhancement) ≦ threshold value 2, compression parameter 2 is selected.
If threshold 2 <(compressed data amount of spatial difference) × (weight ratio of edge enhancement) ≦ threshold 3, compression parameter 3 is selected.
If threshold 3 <(compressed data amount of spatial difference) × (weight ratio of edge enhancement) ≦ threshold 4, compression parameter 4 is selected.

また例えば、マイクロプロセッサ19は、係数A×(空間差分の圧縮データ量)+係数B×(輪郭強調の重み割合)の評価値に対応して、圧縮パラメータを決定してもよい。   Further, for example, the microprocessor 19 may determine the compression parameter in accordance with the evaluation value of coefficient A × (space difference compressed data amount) + coefficient B × (weight ratio of edge enhancement).

このような積や評価値が大きいほど、圧縮パラメータを高圧縮方向(圧縮効率が高くなる方向)に変更することにより、固定長圧縮にほぼ近い画像圧縮を実現することができる。
逆に、積や評価値が大きいほど、圧縮パラメータを低圧縮方向(圧縮歪みが少ない方向)に変更することにより、画質優先の画像圧縮を実現することができる。
As the product or evaluation value increases, the compression parameter is changed in the high compression direction (the direction in which the compression efficiency increases), thereby realizing image compression that is almost similar to fixed length compression.
Conversely, as the product or evaluation value increases, the compression parameter is changed to a lower compression direction (a direction with less compression distortion), thereby realizing image compression with priority on image quality.

ステップS26: マイクロプロセッサ19は、ステップS25で決定した圧縮パラメータを、画像圧縮部42に設定する。画像圧縮部42は、この圧縮パラメータを使用して、輪郭強調後の画像データを画像圧縮し、圧縮データを生成する。 Step S26: The microprocessor 19 sets the compression parameter determined in step S25 in the image compression unit 42. Using this compression parameter, the image compression unit 42 compresses the image data after the edge enhancement, and generates compressed data.

ステップS27: 記録部22は、圧縮データを、記録媒体22aに保存記録する。 Step S27: The recording unit 22 saves and records the compressed data in the recording medium 22a.

[第2実施形態の効果など]
第2実施形態では、画像データの近傍画素間で空間差分を求め、これら空間差分の圧縮データ量を求める。この圧縮データ量が小さいほど、画像データの起伏変化(空間情報量)が少ないことを意味する。この場合には、画像データの圧縮効率が高くなる。逆に、圧縮データ量が大きいほど、画像データの起伏変化(空間情報量)が多いことを意味する。この場合、画像データの圧縮効率は低くなる。このように、第2実施形態では、空間差分の圧縮データ量を求めるという比較的軽い処理負荷によって、画像データの圧縮効率を簡易推測することが可能になる。
[Effects of Second Embodiment, etc.]
In the second embodiment, a spatial difference is obtained between neighboring pixels of image data, and a compressed data amount of these spatial differences is obtained. It means that the smaller the amount of compressed data, the smaller the undulation change (spatial information amount) of the image data. In this case, the compression efficiency of the image data is increased. Conversely, the larger the amount of compressed data, the greater the undulation change (spatial information amount) of the image data. In this case, the compression efficiency of the image data is low. As described above, according to the second embodiment, it is possible to easily estimate the compression efficiency of the image data with a relatively light processing load of obtaining the compressed data amount of the spatial difference.

さらに、第2実施形態では、この空間差分の圧縮データ量に応じて圧縮パラメータを決定することにより、画像データの空間情報量を考慮した適切な圧縮パラメータを決定することが可能になる。   Furthermore, in the second embodiment, it is possible to determine an appropriate compression parameter in consideration of the spatial information amount of the image data by determining the compression parameter according to the compressed data amount of the spatial difference.

また、第2実施形態では、輪郭強調用に求めた空間差分を流用して、圧縮パラメータを決定する。したがって、空間差分を求めるために演算処理を新たに追加する必要がない。その結果、圧縮パラメータの決定のために追加する処理負荷は極めて少なくなる。   In the second embodiment, the compression parameter is determined by diverting the spatial difference obtained for contour enhancement. Therefore, it is not necessary to newly add a calculation process to obtain the spatial difference. As a result, the processing load added for determining the compression parameter is extremely reduced.

さらに、第2実施形態では、空間差分の圧縮データ量と、輪郭強調の重み割合との組み合わせに応じて、圧縮パラメータを決定する。したがって、輪郭強調後の圧縮効率の変化を考慮した、圧縮パラメータを設定することが可能になる。   Further, in the second embodiment, the compression parameter is determined according to the combination of the compressed data amount of the spatial difference and the weight ratio of the contour enhancement. Therefore, it is possible to set a compression parameter in consideration of a change in compression efficiency after contour enhancement.

また、第2実施形態では、画像圧縮前に圧縮効率を推定できる。そのため、従来の試し圧縮を廃止し、一度で画像圧縮を終えることも可能になる。その結果、試し圧縮にかかる時間を省いて、画像圧縮時間を短縮することが可能になる。   In the second embodiment, the compression efficiency can be estimated before image compression. Therefore, it becomes possible to abolish the conventional trial compression and finish the image compression at once. As a result, the time required for trial compression can be omitted, and the image compression time can be shortened.

《実施形態の補足事項》
なお、本実施形態では、画素単位に空間差分を求めている。しかしながら、実施形態はこれに限定されるものではない。圧縮パラメータの決定には、所定の間引き間隔おきに空間差分を算出してもよい。このような処理により、圧縮パラメータの決定に要する処理負荷を更に軽減することが可能になる。
<< Additional items of embodiment >>
In the present embodiment, the spatial difference is obtained for each pixel. However, the embodiment is not limited to this. In determining the compression parameter, a spatial difference may be calculated at predetermined thinning intervals. By such processing, it is possible to further reduce the processing load required for determining the compression parameter.

また、本実施形態では、空間差分の絶対値和や圧縮データ量によって、空間差分のバラツキ量を評価している。しかしながら、実施形態はこれに限定されるものではない。一般的には、空間差分のバラツキ変化や頻度を評価して、バラツキ度とすればよい。例えば、空間差分の分散などを求めて、バラツキ度としてもよい。   In the present embodiment, the variation amount of the spatial difference is evaluated based on the sum of absolute values of the spatial difference and the compressed data amount. However, the embodiment is not limited to this. In general, the variation degree and frequency of the spatial difference may be evaluated to determine the variation degree. For example, the variance may be obtained by obtaining the variance of the spatial difference.

このようなバラツキ度に対しては、図4に示す傾向に従って圧縮パラメータを調整することが好ましい。この場合、図4[A]に従うことで、固定長圧縮の圧縮パラメータを設定することが可能になる。また、図4[B]に従うことで、画質優先の圧縮パラメータを設定することが可能になる。   For such a variation degree, it is preferable to adjust the compression parameter according to the tendency shown in FIG. In this case, it is possible to set a compression parameter for fixed length compression by following FIG. 4A. Further, by following FIG. 4B, it is possible to set compression parameters giving priority to image quality.

また、本実施形態では、試し圧縮を廃止するケースについて説明した。しかしながら、実施形態はこれに限定されるものではない。上述した圧縮パラメータを、試し圧縮のスタートパラメータとしてもよい。このような処理により、試し圧縮を正解に近いところから出発することが可能になる。その結果、試し圧縮がそのまま本番圧縮となったり、また、試し圧縮の回数を低減することが可能になる。   In the present embodiment, the case where the trial compression is abolished has been described. However, the embodiment is not limited to this. The compression parameter described above may be used as a start parameter for trial compression. Such processing makes it possible to start trial compression from a location close to the correct answer. As a result, the trial compression can be the actual compression as it is, and the number of trial compressions can be reduced.

また、本実施形態では、条件式や評価値などに基づいて、圧縮パラメータを決定している。しかしながら、実施形態はこれに限定されるものではない。例えば、バラツキ度(またはバラツキ度と重み割合の組み合わせ)に基づいて、対応関係(ルックアップテーブルや関数式など)を用いて、圧縮パラメータを決定してもよい。この場合、複数の画像サンプルについてデータ圧縮実験を行い、バラツキ度(またはバラツキ度と重み割合の組み合わせ)と、適正な圧縮パラメータとの標準的な対応関係を予め実験的に決定しておくことが好ましい。   In this embodiment, the compression parameter is determined based on a conditional expression, an evaluation value, and the like. However, the embodiment is not limited to this. For example, the compression parameter may be determined based on the degree of variation (or a combination of the degree of variation and the weight ratio) using a correspondence relationship (such as a lookup table or a function expression). In this case, a data compression experiment is performed on a plurality of image samples, and a standard correspondence relationship between the degree of variation (or a combination of the degree of variation and the weight ratio) and an appropriate compression parameter is experimentally determined in advance. preferable.

なお、本実施形態では、圧縮対象の画像データを直に解析して圧縮パラメータを決定している。しかしながら、実施形態はこれに限定されるものではない。例えば、本撮像前のモニタ画像やファインダ画像を上記のように解析して、本撮像時に使用する圧縮パラメータを決定してもよい。   In this embodiment, compression parameters are determined by directly analyzing image data to be compressed. However, the embodiment is not limited to this. For example, the monitor image and finder image before the main imaging may be analyzed as described above to determine the compression parameter used during the main imaging.

また、上述した空間差分を求める際の近傍画素の範囲については、適宜に設定することが可能である。例えば、YCbCrの画像データであれば、Y面のみで近傍画素間の差分を求め、この空間差分のバラツキ度からYCbCr各面の圧縮パラメータを決定してもよい。また、YCbCr各面ごとに近傍画素間の差分を個別に求め、各面の圧縮パラメータをそれぞれ決定してもよい。また例えば、RGBの画像データであれば、G面のみで近傍画素間の差分を求め、この空間差分のバラツキ度からRGB各面の圧縮パラメータを決定してもよい。また、RGBの面ごとに近傍画素間の差分を個別に求め、各面の圧縮パラメータをそれぞれ決定してもよい。また例えば、RAWデータであれば、同色成分の近傍画素間の差分を求めて空間差分としてもよい。また、低彩度のRAWデータであれば、異色成分の近傍画素間の差分を求めて空間差分としてもよい。   In addition, the range of neighboring pixels when obtaining the spatial difference described above can be set as appropriate. For example, in the case of YCbCr image data, a difference between neighboring pixels may be obtained using only the Y plane, and compression parameters for each plane of YCbCr may be determined based on the degree of variation in the spatial difference. Alternatively, the difference between neighboring pixels may be obtained individually for each surface of YCbCr, and the compression parameter for each surface may be determined. Further, for example, in the case of RGB image data, a difference between neighboring pixels may be obtained using only the G plane, and compression parameters for each of the RGB planes may be determined based on the degree of variation in the spatial difference. Alternatively, the difference between neighboring pixels may be obtained separately for each RGB surface, and the compression parameter for each surface may be determined. For example, in the case of RAW data, a difference between neighboring pixels of the same color component may be obtained and used as a spatial difference. In the case of low-saturation RAW data, a difference between neighboring pixels of different color components may be obtained and used as a spatial difference.

なお、本実施形態では、電子カメラ11に適用するケースについて説明した。しかしながら、上記と同じ画像処理を、画像処理プログラムによってコンピュータで実施してもよい。さらに、インターネットなどを介して転送される画像データに対して、上述した画像処理方法をサービス提供してもよい。   In the present embodiment, the case applied to the electronic camera 11 has been described. However, the same image processing as described above may be performed by a computer using an image processing program. Further, the image processing method described above may be provided for image data transferred via the Internet or the like.

以上説明したように、本発明は、画像処理装置や電子カメラなどに利用可能な技術である。   As described above, the present invention is a technique that can be used for an image processing apparatus, an electronic camera, and the like.

本実施形態の電子カメラ11を示すブロック図である。It is a block diagram which shows the electronic camera 11 of this embodiment. 第1実施形態の動作を示す流れ図である。It is a flowchart which shows operation | movement of 1st Embodiment. 第2実施形態の動作を示す流れ図である。It is a flowchart which shows operation | movement of 2nd Embodiment. 空間差分のバラツキ度と、圧縮パラメータとの一般的関係を示す図である。It is a figure which shows the general relationship between the variation degree of a space difference, and a compression parameter.

符号の説明Explanation of symbols

11…電子カメラ,12…撮影レンズ,12a…レンズ制御部,13…撮像素子,14…撮像制御部,15…信号処理部,16…A/D変換部,17…メモリ,18…バス,19…マイクロプロセッサ,19a…操作部,22…記録部,22a…記録媒体,23…モニタ表示部,42…画像圧縮部,43…画像処理部
DESCRIPTION OF SYMBOLS 11 ... Electronic camera, 12 ... Shooting lens, 12a ... Lens control part, 13 ... Imaging device, 14 ... Imaging control part, 15 ... Signal processing part, 16 ... A / D conversion part, 17 ... Memory, 18 ... Bus, 19 ... Microprocessor, 19a. Operation unit, 22 ... Recording unit, 22a ... Recording medium, 23 ... Monitor display unit, 42 ... Image compression unit, 43 ... Image processing unit

Claims (8)

入力された画像データに対して近傍画素間の画素差分である空間差分を複数求める画素演算部と、
複数の前記空間差分についてバラツキ度を検出する差分解析部と、
記バラツキ度に応じて、画像圧縮において圧縮符号量に影響を与えるパラメータである圧縮パラメータを設定する圧縮制御部と、
設定された前記圧縮パラメータを用いて、前記画像データに前記画像圧縮を施し、圧縮データを生成する画像圧縮部とを備え、
前記画素演算部は、前記空間差分を、予め調整可能な重み割合で前記画像データに加算することにより、前記画像データに輪郭強調を施し、
前記圧縮制御部は、前記バラツキ度および前記重み割合の組み合わせに応じて、圧縮パラメータを設定し、
前記画像圧縮部は、設定された前記圧縮パラメータを用いて、前記輪郭強調済みの前記画像データに前記画像圧縮を施し、圧縮データを生成する
とを特徴とする画像処理装置。
A pixel calculation unit in which a plurality obtaining the spatial difference component which is the pixel difference between neighboring pixels on the input image data,
A difference analysis unit for detecting a variation degree for the plurality of spatial differences;
Depending before Kiba variability index, and a compression control unit for setting a compression parameter is Rupa parameters affecting the compression code amount in images compressed,
An image compression unit that performs the image compression on the image data using the set compression parameter and generates compressed data ;
The pixel calculation unit performs edge enhancement on the image data by adding the spatial difference to the image data at a weight ratio that can be adjusted in advance.
The compression control unit sets a compression parameter according to the combination of the variation degree and the weight ratio,
The image compression unit performs the image compression on the contour-enhanced image data using the set compression parameter, and generates compressed data
The image processing apparatus according to claim and this.
請求項1に記載の画像処理装置において、
前記差分解析部は、複数の前記空間差分に対してデータ圧縮を施し、データ圧縮後のデータ量が多いほど、前記空間差分のバラツキ度が高いと判定する
ことを特徴とする画像処理装置。
The image processing apparatus according to claim 1.
The difference analysis unit performs data compression on a plurality of the spatial differences, and determines that the variation degree of the spatial differences is higher as the amount of data after the data compression is larger .
請求項1に記載の画像処理装置において、
前記差分解析部は、複数の前記空間差分について絶対値和を求め、前記絶対値和が大きいほど、前記空間差分のバラツキ度が高いと判定する
ことを特徴とする画像処理装置。
The image processing apparatus according to claim 1 .
The difference analysis unit calculates an absolute value sum for a plurality of the spatial differences, and determines that the degree of variation of the spatial difference is higher as the absolute value sum is larger .
コンピュータを、請求項1ないし請求項3のいずれか1項に記載の前記画素演算部、前記差分解析部、前記圧縮制御部、前記画像圧縮部として機能させるための画像処理プログラム。An image processing program for causing a computer to function as the pixel calculation unit, the difference analysis unit, the compression control unit, and the image compression unit according to any one of claims 1 to 3. 請求項1ないし請求項3のいずれか1項に記載の画像処理装置と、An image processing apparatus according to any one of claims 1 to 3,
被写体像を撮像して画像データを生成する撮像部とを備え、  An imaging unit that captures a subject image and generates image data;
前記撮像部で生成された前記画像データを、前記画像処理装置で画像圧縮する機能を有する  A function of compressing the image data generated by the imaging unit with the image processing apparatus;
ことを特徴とする電子カメラ。  An electronic camera characterized by that.
入力された画像データに対して近傍画素間の画素差分である空間差分を複数求める画素演算部と、A pixel calculation unit that obtains a plurality of spatial differences that are pixel differences between neighboring pixels with respect to input image data;
複数の前記空間差分についてバラツキ度を検出する差分解析部と、  A difference analysis unit for detecting a variation degree for the plurality of spatial differences;
前記バラツキ度に応じて、画像圧縮において圧縮符号量に影響を与えるパラメータである圧縮パラメータを設定する圧縮制御部と、  According to the degree of variation, a compression control unit that sets a compression parameter that is a parameter that affects a compression code amount in image compression;
設定された前記圧縮パラメータを用いて、前記画像データに前記画像圧縮を施し、圧縮データを生成する画像圧縮部とを備え、  An image compression unit that performs the image compression on the image data using the set compression parameter and generates compressed data;
前記差分解析部は、複数の前記空間差分に対してデータ圧縮を施し、データ圧縮後のデータ量が多いほど、前記空間差分のバラツキ度が高いと判定する  The difference analysis unit performs data compression on the plurality of spatial differences, and determines that the degree of variation in the spatial differences is higher as the amount of data after data compression is larger.
ことを特徴とする画像処理装置。  An image processing apparatus.
コンピュータを、請求項6に記載の前記画素演算部、前記差分解析部、前記圧縮制御部、前記画像圧縮部として機能させるための画像処理プログラム。  An image processing program for causing a computer to function as the pixel calculation unit, the difference analysis unit, the compression control unit, and the image compression unit according to claim 6. 請求項6に記載の画像処理装置と、  An image processing apparatus according to claim 6;
被写体像を撮像して画像データを生成する撮像部とを備え、  An imaging unit that captures a subject image and generates image data;
前記撮像部で生成された前記画像データを、前記画像処理装置で画像圧縮する機能を有する  A function of compressing the image data generated by the imaging unit with the image processing apparatus;
ことを特徴とする電子カメラ。  An electronic camera characterized by that.
JP2005214166A 2005-07-25 2005-07-25 Image processing apparatus, image processing program, and electronic camera Expired - Lifetime JP4720339B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005214166A JP4720339B2 (en) 2005-07-25 2005-07-25 Image processing apparatus, image processing program, and electronic camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005214166A JP4720339B2 (en) 2005-07-25 2005-07-25 Image processing apparatus, image processing program, and electronic camera

Publications (2)

Publication Number Publication Date
JP2007036440A JP2007036440A (en) 2007-02-08
JP4720339B2 true JP4720339B2 (en) 2011-07-13

Family

ID=37795180

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005214166A Expired - Lifetime JP4720339B2 (en) 2005-07-25 2005-07-25 Image processing apparatus, image processing program, and electronic camera

Country Status (1)

Country Link
JP (1) JP4720339B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010004319A (en) * 2008-06-20 2010-01-07 Hoya Corp Imaging apparatus

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0795578A (en) * 1993-06-30 1995-04-07 Canon Inc Encoder
JP2003018590A (en) * 2001-06-29 2003-01-17 Toshiba Corp Moving picture coding method and moving picture coding apparatus

Also Published As

Publication number Publication date
JP2007036440A (en) 2007-02-08

Similar Documents

Publication Publication Date Title
JP4902562B2 (en) Imaging apparatus, image processing apparatus, control method, and program
JP5398156B2 (en) WHITE BALANCE CONTROL DEVICE, ITS CONTROL METHOD, AND IMAGING DEVICE
JP4924430B2 (en) Imaging apparatus, image processing apparatus, and program
CN100405824C (en) camera system and playing system
US8373775B2 (en) Apparatus, method and software stored on a computer-readable storage medium, for reducing noise in an image
JP4896852B2 (en) Autofocus control circuit, autofocus control method, and imaging apparatus
JP6906947B2 (en) Image processing equipment, imaging equipment, image processing methods and computer programs
EP1984892A2 (en) Foreground/background segmentation in digital images
WO2009098741A1 (en) Imaging device, integrated circuit, and imaging method
WO2008129926A1 (en) Video processing apparatus, video processing program, and video processing method
JP2005303802A (en) Imaging apparatus and image processing program
US11575841B2 (en) Information processing apparatus, imaging apparatus, method, and storage medium
JP4720339B2 (en) Image processing apparatus, image processing program, and electronic camera
JP6245847B2 (en) Image processing apparatus and image processing method
JP2010134309A (en) Autofocus device, autofocus method and imaging apparatus
JP5213604B2 (en) Imaging device
JP5115297B2 (en) Image processing apparatus, imaging apparatus, image processing method, and program
KR20100011288A (en) Method of compressing images, computer-readable medium storing program to perform the same and apparatus of photographing digital images
JP4885698B2 (en) Motion vector calculation device, method and program, moving image compression recording device, and imaging device
JP2007267232A (en) Electronic image stabilization method and apparatus, and imaging apparatus
JP2008141616A (en) Motion vector calculation device, method and program, moving image compression recording device, and imaging device
JP2012133492A (en) Image processing device and program
JP5158167B2 (en) Image processing apparatus, imaging apparatus, and image processing program
KR20060123237A (en) Image identification method and apparatus, method and apparatus for determining image movement, image stabilization method and apparatus, computer program product
JP2016206728A (en) Image processing apparatus and image processing method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080630

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20101209

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20101214

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110214

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110321

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

Free format text: PAYMENT UNTIL: 20140415

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4720339

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

Year of fee payment: 3

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250