JP2008066839A - Digital camera - Google Patents

Digital camera Download PDF

Info

Publication number
JP2008066839A
JP2008066839A JP2006240174A JP2006240174A JP2008066839A JP 2008066839 A JP2008066839 A JP 2008066839A JP 2006240174 A JP2006240174 A JP 2006240174A JP 2006240174 A JP2006240174 A JP 2006240174A JP 2008066839 A JP2008066839 A JP 2008066839A
Authority
JP
Japan
Prior art keywords
image
histogram
image data
bits
basic
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP2006240174A
Other languages
Japanese (ja)
Inventor
Kenji Oishi
兼司 大石
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 JP2006240174A priority Critical patent/JP2008066839A/en
Publication of JP2008066839A publication Critical patent/JP2008066839A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)
  • Television Signal Processing For Recording (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Studio Devices (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To generate image data of a size corresponding to the feature of the scene of a photographing object. <P>SOLUTION: The digital camera comprises: a memory for holding basic image data composed of the digital data of the maximum number of bits obtained by an A/D converter; a first histogram preparation means for preparing a basic histogram on the basis of the basic image data; a shrunk image generation means for generating shrunk image data indicating the gradation value of each pixel by the digital data of the reduced number of bits smaller than the maximum number of bits on the basis of the basic image; an expanded image generation means for generating expanded image data indicating the gradation value of each pixel constituting the shrunk image data by the digital data of the maximum number of bits; a second histogram preparation means for preparing a histogram on the basis of the expanded image data; an evaluation means for comparing the basic histogram with the reproduced histogram and evaluating the extent of influence on the feature of images by conversion to the shrunk image; and a recording control means for supplying the shrunk image data to the image recording processing of the poststage for the image for which the evaluated result indicating that the influence is little is obtained by the evaluation means. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、一般的な画像圧縮技術に適合するビット数よりも大きなビット数の画像データを生成するアナログ/デジタル変換器を備え、また、このようなアナログ/デジタル変換器によって得られたデジタルデータから構成される画像データを記憶媒体に記録する機能を備えたデジタルカメラに関する。   The present invention includes an analog / digital converter that generates image data having a number of bits larger than the number of bits compatible with a general image compression technique, and digital data obtained by such an analog / digital converter. The present invention relates to a digital camera having a function of recording image data composed of a storage medium on a storage medium.

一般的には、デジタルカメラは、撮影した画像データにホワイトバランス補正や露出補正などの画像処理を行い、この補正結果をJPEGなどの画像圧縮処理によって圧縮した上でコンパクトフラッシュカードなどの記憶媒体に記録している。
JPEGなどの画像圧縮技術を適用することにより、記憶媒体の有限な容量に多数の画像データを記録することが可能となる反面、圧縮処理によって元の画像データの情報の一部が失われてしまうことは避けられない。とはいえ、このような情報の欠損は、一般的な利用者がスナップ写真を撮影して記録する場合などには問題となることは少なかった。
In general, a digital camera performs image processing such as white balance correction and exposure correction on captured image data, compresses the correction result by image compression processing such as JPEG, and then stores it in a storage medium such as a compact flash card. It is recorded.
By applying an image compression technique such as JPEG, a large amount of image data can be recorded in a finite capacity of the storage medium, but a part of the information of the original image data is lost by the compression process. It is inevitable. Nonetheless, such a lack of information is rarely a problem when a general user takes and records a snapshot.

しかしながら、近年のデジタルカメラの高画素化に伴って、デジタルカメラの画質が向上し、プロやセミプロの利用者が増大するにつれて、上述したような圧縮処理に伴う情報の欠損を回避することが望まれるようになっている。
このような要望に応えるために、CCDなどの撮像素子に出力をA/D変換して得られるデジタルデータから構成される生の画像データ(いわゆるRAWデータ)を記憶媒体に記録する機能を備えたデジタルカメラが提案されている(特許文献1参照)。
However, as the image quality of digital cameras has improved with the recent increase in the number of pixels of digital cameras and the number of professional and semi-professional users has increased, it is desirable to avoid the loss of information associated with compression processing as described above. It is supposed to be.
In order to meet such demands, a function of recording raw image data (so-called RAW data) composed of digital data obtained by A / D converting the output to an image sensor such as a CCD on a storage medium is provided. A digital camera has been proposed (see Patent Document 1).

このような機能を利用して記憶媒体に記録されたRAWデータでは、CCDに捉えられた情報の全てが保持されているので、利用者は、所望の画像処理をこのRAWデータに適用することにより、満足の行く画質の画像を表す画像データを得ることができる。例えば、CCDの各色成分に関する出力の不均衡のために画像全体としてのホワイトバランスがずれてしまった場合などにも、RAWデータに含まれる該当する色成分のデータを調整することにより、適正なホワイトバランスを持つ画像データに変換することが可能である。
特開2001−223979号公報
In the RAW data recorded on the storage medium using such a function, all of the information captured by the CCD is held, so that the user can apply desired image processing to the RAW data. Image data representing an image with satisfactory image quality can be obtained. For example, even when the white balance of the entire image is shifted due to an output imbalance regarding each color component of the CCD, an appropriate white color can be obtained by adjusting the data of the corresponding color component included in the RAW data. It is possible to convert it into image data having a balance.
Japanese Patent Application Laid-Open No. 2001-223979

ところで、上述したRAWデータは、A/D変換器によって得られたデジタルデータに相当するので、当然ながら、個々の画像データのデータサイズはA/D変換器のビット数に依存した大きさになる。そして、デジタルカメラに備えられるA/D変換器は、年々高ビットになる傾向があり、これに伴ってRAWデータのサイズも非常に大きくなるため、1枚のコンパクトフラッシュカードなどの記憶媒体に記録できる画像の数が非常に少なくなってしまう。   By the way, since the above-mentioned RAW data corresponds to digital data obtained by an A / D converter, naturally, the data size of each image data becomes a size depending on the number of bits of the A / D converter. . And A / D converters equipped in digital cameras tend to become high bits every year, and the size of RAW data becomes very large along with this, so it is recorded on a storage medium such as a single compact flash card. The number of images that can be made is very small.

その一方、撮影対象のシーンの特徴によっては、A/D変換のビット数が多少小さくでも十分な画質が得られる場合もある。そのような画像についても高ビットのA/D変換で得られた大きなサイズのRAWデータを記録することは、限りある記憶容量を無駄に費やすことであるので、このような無駄を排除して、記憶媒体により多くの画像データを記録可能とする技術が必要とされている。   On the other hand, depending on the characteristics of the scene to be photographed, sufficient image quality may be obtained even if the number of bits for A / D conversion is somewhat small. For such an image, recording a large size of RAW data obtained by high bit A / D conversion is a waste of a limited storage capacity. There is a need for a technique that enables a large amount of image data to be recorded on a storage medium.

本発明は、撮影対象のシーンの特徴に応じて、適切なビット数のデジタルデータで階調値を表す画像データを生成可能なデジタルカメラを提供することを目的とする。   An object of the present invention is to provide a digital camera capable of generating image data representing a gradation value with digital data having an appropriate number of bits according to the characteristics of a scene to be photographed.

本発明にかかわる第1のデジタルカメラの原理は、以下の通りである。
A/D変換器は、撮像素子の出力信号で示される階調値を所定の最大ビット数のデジタルデータに変換する。メモリは、A/D変換器によって得られたデジタルデータから構成された基本画像データを保持する。第1ヒストグラム作成手段は、基本画像データに基づいて、基本画像を構成する各画素の階調値を最大ビット数に応じた階級ごとに分類して得られる度数を示す基本ヒストグラムを作成する。縮退画像生成手段は、基本画像に基づいて、最大ビット数よりも小さい縮小ビット数のデジタルデータによって各画素の階調値を表す縮退画像データを生成する。拡張画像生成手段は、縮退画像データを構成する各画素の階調値を最大ビット数のデジタルデータで表す拡張画像データを生成する。第2ヒストグラム作成手段は、拡張画像データに基づいてヒストグラムを作成し、このヒストグラムについて、階級の補間を行うことにより、最大ビット数のデジタルデータに関する各階級における階調値の度数を示す再現ヒストグラムを生成する。評価手段は、基本ヒストグラムと再現ヒストグラムとを比較して、縮退画像への変換が画像の特徴にもたらした影響の大きさを評価する。記録制御手段は、評価手段によって影響が小さい旨の評価結果が得られた画像について、縮退画像データを後段の画像記録処理に供する。
The principle of the first digital camera according to the present invention is as follows.
The A / D converter converts the gradation value indicated by the output signal of the image sensor into digital data having a predetermined maximum number of bits. The memory holds basic image data composed of digital data obtained by the A / D converter. The first histogram creating means creates a basic histogram indicating the frequency obtained by classifying the gradation value of each pixel constituting the basic image for each class according to the maximum number of bits based on the basic image data. The reduced image generating means generates reduced image data representing the gradation value of each pixel by digital data having a reduced bit number smaller than the maximum bit number, based on the basic image. The extended image generation means generates extended image data that represents the gradation value of each pixel constituting the reduced image data as digital data having the maximum number of bits. The second histogram creating means creates a histogram based on the extended image data, and performs a class interpolation on the histogram, thereby generating a reproduction histogram indicating the frequency of the gradation value in each class regarding the digital data having the maximum number of bits. Generate. The evaluation means compares the basic histogram and the reproduction histogram, and evaluates the magnitude of the influence that the conversion to the degenerated image has on the image characteristics. The recording control unit uses the degenerated image data for the subsequent image recording process for the image for which the evaluation result indicating that the influence is small is obtained by the evaluation unit.

本発明にかかわる第2のデジタルカメラの原理は、以下の通りである。
A/D変換器は、撮像素子の出力信号で示される階調値を所定の最大ビット数のデジタルデータに変換する。メモリは、A/D変換器によって得られたデジタルデータから構成された基本画像データを保持する。第1ヒストグラム作成手段は、基本画像データに基づいて、基本画像を構成する各画素の階調値を最大ビット数に応じた階級ごとに分類して得られる度数を示す基本ヒストグラムを作成する。縮退画像生成手段は、基本画像に基づいて、最大ビット数よりも小さい縮小ビット数のデジタルデータによって各画素の階調値を表す縮退画像データを生成する。拡張画像生成手段は、縮退画像データを構成する各画素の階調値を最大ビット数のデジタルデータで表す拡張画像データを生成する。第2ヒストグラム作成手段は、拡張画像データに基づいてヒストグラムを作成し、このヒストグラムについて、階級の補間を行うことにより、最大ビット数のデジタルデータに関する各階級における階調値の度数を示す再現ヒストグラムを生成する。評価手段は、基本ヒストグラムと再現ヒストグラムとを比較して、縮退画像への変換が画像の特徴にもたらした影響の大きさを評価する。反復制御手段は、評価手段によって影響が小さい旨の評価結果が得られた基本画像を縮退画像に置き換え、この新たな基本画像について、第1ヒストグラム作成手段、縮退画像生成手段、拡張画像生成手段、第2ヒストグラム作成手段および評価手段による処理を起動する。記録制御手段は、評価手段によって影響が大きい旨の評価結果が得られた基本画像を後段の画像記録処理に供する。
The principle of the second digital camera according to the present invention is as follows.
The A / D converter converts the gradation value indicated by the output signal of the image sensor into digital data having a predetermined maximum number of bits. The memory holds basic image data composed of digital data obtained by the A / D converter. The first histogram creating means creates a basic histogram indicating the frequency obtained by classifying the gradation value of each pixel constituting the basic image for each class according to the maximum number of bits based on the basic image data. The reduced image generating means generates reduced image data representing the gradation value of each pixel by digital data having a reduced bit number smaller than the maximum bit number, based on the basic image. The extended image generation means generates extended image data that represents the gradation value of each pixel constituting the reduced image data as digital data having the maximum number of bits. The second histogram creating means creates a histogram based on the extended image data, and performs a class interpolation on the histogram, thereby generating a reproduction histogram indicating the frequency of the gradation value in each class regarding the digital data having the maximum number of bits. Generate. The evaluation means compares the basic histogram and the reproduction histogram, and evaluates the magnitude of the influence that the conversion to the degenerated image has on the image characteristics. The iterative control means replaces the basic image from which the evaluation result indicating that the influence is small by the evaluation means with a reduced image, and for this new basic image, a first histogram generating means, a reduced image generating means, an extended image generating means, The processing by the second histogram creation means and the evaluation means is started. The recording control means uses the basic image from which the evaluation result indicating that the evaluation means has a great influence is obtained for subsequent image recording processing.

本発明にかかわる第3のデジタルカメラの原理は、以下の通りである。
A/D変換器は、撮像素子の出力信号で示される階調値を所定の最大ビット数のデジタルデータに変換する。メモリは、A/D変換器によって得られたデジタルデータから構成された基本画像データを保持する。第1ヒストグラム作成手段は、基本画像データに基づいて、基本画像を構成する各画素の階調値を最大ビット数に応じた階級ごとに分類して得られる度数を示す基本ヒストグラムを作成する。縮退画像生成手段は、基本画像に基づいて、圧縮処理を含む後段の画像処理に適合する縮小ビット数のデジタルデータによって各画素の階調値を表す縮退画像データを生成する。拡張画像生成手段は、縮退画像データを構成する各画素の階調値を最大ビット数のデジタルデータで表す拡張画像データを生成する。第2ヒストグラム作成手段は、拡張画像データに基づいてヒストグラムを作成し、このヒストグラムについて、階級の補間を行うことにより、最大ビット数のデジタルデータに関する各階級における階調値の度数を示す再現ヒストグラムを生成する。評価手段は、基本ヒストグラムと再現ヒストグラムとを比較して、縮退画像への変換が画像の特徴にもたらした影響の大きさを評価する。圧縮制御手段は、評価手段によって影響が小さい旨の評価結果が得られた画像について、縮退画像データを後段の画像処理に供する。
The principle of the third digital camera according to the present invention is as follows.
The A / D converter converts the gradation value indicated by the output signal of the image sensor into digital data having a predetermined maximum number of bits. The memory holds basic image data composed of digital data obtained by the A / D converter. The first histogram creating means creates a basic histogram indicating the frequency obtained by classifying the gradation value of each pixel constituting the basic image for each class according to the maximum number of bits based on the basic image data. Based on the basic image, the reduced image generation means generates reduced image data representing the gradation value of each pixel using digital data having a reduced number of bits suitable for subsequent image processing including compression processing. The extended image generation means generates extended image data that represents the gradation value of each pixel constituting the reduced image data as digital data having the maximum number of bits. The second histogram creating means creates a histogram based on the extended image data, and performs a class interpolation on the histogram to generate a reproduction histogram indicating the frequency of the gradation value in each class regarding the digital data having the maximum number of bits. Generate. The evaluation means compares the basic histogram and the reproduction histogram, and evaluates the magnitude of the influence that the conversion to the degenerated image has on the image characteristics. The compression control unit uses the degenerated image data for subsequent image processing for an image for which an evaluation result indicating that the influence is small is obtained by the evaluation unit.

本発明にかかわる第4のデジタルカメラの原理は、以下の通りである。
A/D変換器は、撮像素子の出力信号で示される階調値を所定の最大ビット数のデジタルデータに変換する。基本画像取得手段は、撮影に先立って、撮像素子から定期的に出力されるドラフトモード出力に応じてA/D変換器によって得られたデジタルデータから構成された基本画像データを取得する。第1ヒストグラム作成手段は、基本画像データに基づいて、基本画像を構成する各画素の階調値を最大ビット数に応じた階級ごとに分類して得られる度数を示す基本ヒストグラムを作成する。縮退画像生成手段は、基本画像に基づいて、最大ビット数よりも小さい縮小ビット数のデジタルデータによって各画素の階調値を表す縮退画像データを生成する。拡張画像生成手段は、縮退画像データを構成する各画素の階調値を最大ビット数のデジタルデータで表す拡張画像データを生成する。第2ヒストグラム作成手段は、拡張画像データに基づいてヒストグラムを作成し、このヒストグラムについて、階級の補間を行うことにより、最大ビット数のデジタルデータに関する各階級における階調値の度数を示す再現ヒストグラムを生成する。評価手段は、基本ヒストグラムと再現ヒストグラムとを比較して、縮退画像への変換が画像の特徴にもたらした影響の大きさを評価する。ビット数決定手段は、評価手段による評価結果に基づいて、撮影対象のシーンに対応する画像データのビット数を決定する。変換制御手段は、ビット数決定手段によって決定されたビット数のデジタルデータの出力をA/D変換器に指示する。
The principle of the fourth digital camera according to the present invention is as follows.
The A / D converter converts the gradation value indicated by the output signal of the image sensor into digital data having a predetermined maximum number of bits. The basic image acquisition means acquires basic image data composed of digital data obtained by the A / D converter in accordance with the draft mode output periodically output from the image sensor prior to photographing. The first histogram creating means creates a basic histogram indicating the frequency obtained by classifying the gradation value of each pixel constituting the basic image for each class according to the maximum number of bits based on the basic image data. The reduced image generating means generates reduced image data representing the gradation value of each pixel by digital data having a reduced bit number smaller than the maximum bit number, based on the basic image. The extended image generation means generates extended image data that represents the gradation value of each pixel constituting the reduced image data as digital data having the maximum number of bits. The second histogram creating means creates a histogram based on the extended image data, and performs a class interpolation on the histogram, thereby generating a reproduction histogram indicating the frequency of the gradation value in each class regarding the digital data having the maximum number of bits. Generate. The evaluation means compares the basic histogram and the reproduction histogram, and evaluates the magnitude of the influence that the conversion to the degenerated image has on the image characteristics. The bit number determining means determines the bit number of the image data corresponding to the scene to be photographed based on the evaluation result by the evaluating means. The conversion control unit instructs the A / D converter to output digital data having the number of bits determined by the bit number determination unit.

本発明にかかわる第5のデジタルカメラの原理は、以下の通りである。
A/D変換器は、撮像素子の出力信号で示される階調値を所定の最大ビット数のデジタルデータと最大ビット数より小さい少なくとも一つの縮小ビット数のデジタルデータに変換する。基本画像取得手段は、撮影に先立って、撮像素子から連続するフレームの一つについて出力されるドラフトモード出力に応じてA/D変換器によって最大ビット数で得られたデジタルデータから構成された基本画像データを取得する。第1ヒストグラム作成手段は、基本画像データに基づいて、基本画像を構成する各画素の階調値を最大ビット数に応じた階級ごとに分類して得られる度数を示す基本ヒストグラムを作成する。縮退画像取得手段は、撮影に先立って、連続するフレームの別の少なくとも一つについて撮像素子から出力されるドラフトモード出力に応じてA/D変換器によって少なくとも一つの縮小ビット数で得られたデジタルデータから構成された少なくとも一つの縮退画像データを取得する。拡張画像生成手段は、少なくとも一つの縮退画像データを構成する各画素の階調値を最大ビット数のデジタルデータで表す少なくとも一つの拡張画像データを生成する。第2ヒストグラム作成手段は、少なくとも一つの拡張画像データに基づいてそれぞれヒストグラムを作成し、このヒストグラムについて、階級の補間を行うことにより、最大ビット数のデジタルデータに関する各階級における階調値の度数を示す少なくとも一つの再現ヒストグラムを生成する。評価手段は、基本ヒストグラムと少なくとも一つの再現ヒストグラムとを比較して、少なくとも一つの縮退画像それぞれへの変換が画像の特徴にもたらした影響の大きさを評価する。ビット数決定手段は、評価手段による評価結果に基づいて、撮影対象のシーンに対応する画像データのビット数を決定する。変換制御手段は、ビット数決定手段によって決定されたビット数のデジタルデータの出力をA/D変換器に指示する。
The principle of the fifth digital camera according to the present invention is as follows.
The A / D converter converts the gradation value indicated by the output signal of the image sensor into digital data having a predetermined maximum number of bits and digital data having at least one reduced bit number smaller than the maximum number of bits. The basic image acquisition means is a basic image composed of digital data obtained with a maximum number of bits by an A / D converter in accordance with a draft mode output output for one of the continuous frames from the image sensor prior to shooting. Get image data. The first histogram creating means creates a basic histogram indicating the frequency obtained by classifying the gradation value of each pixel constituting the basic image for each class according to the maximum number of bits based on the basic image data. The reduced image acquisition means is a digital image obtained with at least one reduced bit number by an A / D converter in accordance with a draft mode output output from the image sensor for at least one of the consecutive frames prior to shooting. At least one degenerated image data composed of data is acquired. The extended image generating means generates at least one extended image data representing the gradation value of each pixel constituting at least one degenerate image data by digital data having the maximum number of bits. The second histogram creating means creates a histogram based on at least one extended image data, and performs a class interpolation on the histogram, thereby calculating the frequency of the gradation value in each class for the digital data having the maximum number of bits. At least one reproduction histogram is generated. The evaluation unit compares the basic histogram with at least one reproduction histogram, and evaluates the magnitude of the influence that the conversion to each of the at least one degenerated image has on the image characteristics. The bit number determining means determines the bit number of the image data corresponding to the scene to be photographed based on the evaluation result by the evaluating means. The conversion control unit instructs the A / D converter to output digital data having the number of bits determined by the bit number determination unit.

本発明にかかわるデジタルカメラによれば、撮影対象のシーンの特徴に応じて、このシーンに対応する画像の特徴を過不足なく表現するRAWデータであって、適切なビット数のデジタルデータで階調値を表す画像データが生成されるので、RAWデータの特質を活かしつつ、記憶媒体の有限の記憶容量を有効に利用することが可能である。
また、後段の画像処理に適合するビット数のデジタルデータで階調値を表すことによって十分な画質が得られる撮影シーンに対応する画像データについて、RAWデータの段階で後段の上述したビット数の画像データを生成しておくことにより、後段の画像処理手段の処理負担を軽減することができる。
According to the digital camera of the present invention, according to the characteristics of the scene to be photographed, RAW data that expresses the characteristics of the image corresponding to this scene without excess or deficiency, and is represented by digital data having an appropriate number of bits. Since the image data representing the value is generated, it is possible to effectively use the limited storage capacity of the storage medium while utilizing the characteristics of the RAW data.
In addition, regarding the image data corresponding to the shooting scene that can obtain a sufficient image quality by representing the gradation value with the digital data having the number of bits suitable for the subsequent image processing, the image having the above-described number of bits in the subsequent RAW data stage. By generating the data, it is possible to reduce the processing load on the image processing means at the subsequent stage.

以下、図面に基づいて、本発明の実施形態について詳細に説明する。
(第1の実施形態)
図1に、本発明にかかわるデジタルカメラの第1の実施形態を示す。
画像の撮影の際に撮影光学系21によって撮像素子22上に結像された光は、この撮像素子22によってその強度に応じた電気信号に変換され、更に、アナログ/デジタル(A/D)変換器23によってデジタルデータに変換されてメモリ24に保持される。
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
(First embodiment)
FIG. 1 shows a first embodiment of a digital camera according to the present invention.
The light imaged on the image sensor 22 by the imaging optical system 21 at the time of taking an image is converted into an electric signal corresponding to the intensity by the image sensor 22, and further analog / digital (A / D) conversion. It is converted into digital data by the device 23 and held in the memory 24.

図1に示したメモリ24は、バスを介して画像処理部25および記録処理部26に接続されている。通常の場合は、上述したようにしてメモリ24に格納された画像データについて、画像処理部25に備えられた画像補正処理部35および画像圧縮処理部36により圧縮処理を含む適切な画像処理が行われ、この画像処理結果として得られた圧縮画像データがバスを介して記録処理部26に渡され、記憶媒体27に記録される。   The memory 24 shown in FIG. 1 is connected to the image processing unit 25 and the recording processing unit 26 via a bus. In a normal case, the image data stored in the memory 24 as described above is subjected to appropriate image processing including compression processing by the image correction processing unit 35 and the image compression processing unit 36 provided in the image processing unit 25. The compressed image data obtained as a result of this image processing is transferred to the recording processing unit 26 via the bus and recorded on the storage medium 27.

図1に示した画像処理部25において、変換制御部31は、例えば、利用者が操作パネル(図示せず)を操作することによって未加工のRAWデータを記録する旨を指示するRAW記録指示の入力に応じて、シフト処理部32、ヒストグラム作成部33および評価処理部34の機能を利用して、後述するようにして、A/D変換器23によって得られた画像データのサイズを画像の特徴に適合したサイズに変換し、記録処理部26の処理に供する。   In the image processing unit 25 shown in FIG. 1, the conversion control unit 31 is, for example, a RAW recording instruction that instructs the user to record raw RAW data by operating an operation panel (not shown). In accordance with the input, the size of the image data obtained by the A / D converter 23 is determined by using the functions of the shift processing unit 32, the histogram creation unit 33, and the evaluation processing unit 34 as described later. Is converted to a size suitable for the recording processing unit 26 and used for processing by the recording processing unit 26.

図1に示したシフト処理部32は、変換制御部31からの指示に従って、指定された画像データを構成する各画素の階調値を示すデジタルデータに対するシフト処理を行い、シフト処理結果を変換制御部31に返す。また、図1に示したヒストグラム作成部33は、変換制御部31からの指示に従って、指定された画像データを構成する各画素の階調値に関するヒストグラムを作成する。このヒストグラム作成部33によって作成されたヒストグラムは、後述する評価処理部34による画質に関する対比評価処理に供され、この評価結果に基づいて、変換制御部31による適正サイズ変換処理が行われる。   The shift processing unit 32 shown in FIG. 1 performs shift processing on digital data indicating the gradation value of each pixel constituting the designated image data in accordance with an instruction from the conversion control unit 31, and performs conversion control on the shift processing result. Return to section 31. Further, the histogram creation unit 33 shown in FIG. 1 creates a histogram related to the gradation value of each pixel constituting the designated image data in accordance with an instruction from the conversion control unit 31. The histogram created by the histogram creation unit 33 is subjected to a contrast evaluation process related to image quality by an evaluation processing unit 34 described later, and an appropriate size conversion process is performed by the conversion control unit 31 based on the evaluation result.

以下、これらの各部の連携によって画像の特徴に適したデータサイズのRAWデータを記録する処理について詳細に説明する。
図2に、適正サイズ変換動作を表す流れ図を示す。
撮影の際に、図1に示した撮像素子22の出力信号に応じてA/D変換器23によって生成されたデジタルデータは、基本画像データとしてメモリ24に保持される(図2のステップ301)。この基本画像データにおいては、各画素に対応する色成分(例えば、R、G、B成分)に関する階調値が、A/D変換器23による量子化結果を所定のビット数(例えば、14ビット)で示すデジタルデータで表されている。
Hereinafter, a process for recording RAW data having a data size suitable for the feature of the image by cooperation of these units will be described in detail.
FIG. 2 is a flowchart showing an appropriate size conversion operation.
At the time of shooting, digital data generated by the A / D converter 23 according to the output signal of the image sensor 22 shown in FIG. 1 is held in the memory 24 as basic image data (step 301 in FIG. 2). . In this basic image data, the gradation value relating to the color component (for example, R, G, B component) corresponding to each pixel is obtained by converting the quantization result by the A / D converter 23 into a predetermined number of bits (for example, 14 bits). ) Is represented by digital data.

図1に示した変換制御部31は、上述したようにしてメモリ24に保持された基本画像データをヒストグラム作成部33に渡して、この基本画像データを構成する全ての階調値に関するヒストグラムの作成を指示し、これに応じて、ヒストグラム作成部33は、図3(a)に示すようなヒストグラムを作成し(ステップ302)、このヒストグラムを図1に示した評価処理部34に渡す。   The conversion control unit 31 shown in FIG. 1 passes the basic image data held in the memory 24 as described above to the histogram generation unit 33, and generates histograms for all gradation values constituting the basic image data. In response to this, the histogram creation unit 33 creates a histogram as shown in FIG. 3A (step 302), and passes this histogram to the evaluation processing unit 34 shown in FIG.

次に、図1に示した変換制御部31は、上述した基本画像データをシフト処理部32に渡すとともに、例えば、2ビットの右シフトを指示し、これに応じて、シフト処理部32によるシフト処理によってビット数が縮小された画像データを縮退画像データとして、上述した基本画像データとは別にメモリ24に格納する(図2のステップ303)。
次いで、図1に示した変換制御部31は、図2のステップ303で生成した縮退画像データを再びシフト処理部32に渡すとともに、今度は、逆に2ビットの左シフトを指示することにより、シフト処理部32によるシフト処理によって、上述した縮退画像データを構成する各デジタルデータのビット数を拡大した復元画像データを生成する(図2のステップ304)。このようにして生成された復元画像データは、図1に示した変換制御部31によってヒストグラム作成部33に渡され、これに応じて、このヒストグラム作成部33により、復元画像データに関するヒストグラムが作成され(図2のステップ305)、図1に示した評価処理部34の処理に供される。
Next, the conversion control unit 31 shown in FIG. 1 sends the above-described basic image data to the shift processing unit 32 and instructs, for example, a 2-bit right shift, and the shift processing unit 32 shifts accordingly. The image data whose number of bits has been reduced by the processing is stored in the memory 24 separately from the basic image data described above as reduced image data (step 303 in FIG. 2).
Next, the conversion control unit 31 shown in FIG. 1 passes the reduced image data generated in step 303 of FIG. 2 to the shift processing unit 32 again, and this time, by instructing a left shift of 2 bits, Restored image data in which the number of bits of each digital data constituting the above-described reduced image data is enlarged is generated by the shift processing by the shift processing unit 32 (step 304 in FIG. 2). The restored image data generated in this way is passed to the histogram creating unit 33 by the conversion control unit 31 shown in FIG. 1, and in response to this, the histogram creating unit 33 creates a histogram relating to the restored image data. (Step 305 in FIG. 2) is provided to the processing of the evaluation processing unit 34 shown in FIG.

このとき、ヒストグラム作成部33は、上述した復元画像データから直接に作成されたヒストグラムについて、適切な補間処理を行い、縮退画像データを作成した際に、縮小されたビット数(例えば12ビット)に対応する各階級に集約された度数を、それぞれに対応する複数の階級に分布させることにより、基本画像データに対応するヒストグラムに相当するヒストグラムの再現を試みることができる。   At this time, the histogram creation unit 33 performs an appropriate interpolation process on the histogram created directly from the above-described restored image data, and reduces the number of bits (for example, 12 bits) when the reduced image data is created. By distributing the frequencies aggregated in the corresponding classes to a plurality of classes corresponding to the classes, it is possible to attempt to reproduce a histogram corresponding to the histogram corresponding to the basic image data.

この評価処理部34は、上述したステップ302で得られた基本画像データに対応するヒストグラムとステップ305で得られた復元画像データに対応するヒストグラムとを対比させることにより、基本画像データから縮退画像データへの変換によって、それぞれによって表される画像の画質に変化があるか否かが評価される(ステップ306)。
ここで、ヒストグラムの対比に基づいて画質の変化を評価する方法について詳細に説明する。
The evaluation processing unit 34 compares the histogram corresponding to the basic image data obtained in step 302 described above with the histogram corresponding to the restored image data obtained in step 305, thereby reducing the degenerated image data from the basic image data. It is evaluated whether or not there is a change in the image quality of the image represented by each conversion (step 306).
Here, a method for evaluating the change in image quality based on the contrast of the histogram will be described in detail.

例えば、図3(a)に示した基本画像データに対応するヒストグラムにおいて点線で囲んだ部分の分布波形に現れる微細構造(図3(b)参照)は、上述したようにしてビット数を縮小した縮退画像を経て作成された復元画像データに対応するヒストグラムを作成する過程で周囲の階級に度数が均等に配分されてしまうために、ステップ305で作成されたヒストグラムにおいては再現されない可能性がある(図3(c)、(d)参照)。   For example, the fine structure (see FIG. 3B) appearing in the distribution waveform of the portion surrounded by the dotted line in the histogram corresponding to the basic image data shown in FIG. 3A has the number of bits reduced as described above. In the process of creating the histogram corresponding to the restored image data created through the degenerated image, the frequencies are evenly distributed to the surrounding classes, so that the histogram created in step 305 may not be reproduced ( (See FIGS. 3C and 3D).

そして、このような復元画像データに対応するヒストグラムに再現されない分布波形の微細構造が多ければ、撮影された画像の特徴は縮小されたビット数のデジタルデータで階調値を表す縮退画像では十分に再現されないおそれがある。また、逆に、再現されない微細構造の影響が無視できる程度であれば、撮影された画像の特徴は、縮退画像データによっても十分に再現される。   If there are many fine structures of the distribution waveform that cannot be reproduced in the histogram corresponding to such restored image data, the characteristics of the photographed image are sufficient for a reduced image that represents a gradation value with digital data of a reduced number of bits. May not be reproduced. On the other hand, if the influence of the fine structure that cannot be reproduced is negligible, the characteristics of the photographed image are sufficiently reproduced even by the degenerate image data.

このような判定を行うために、図1に示した評価処理部34は、図4に示すように、まず、基本画像データに対応するヒストグラムの各階級の度数を復元画像データに対応するヒストグラムの対応する階級の度数と比較し(ステップ311)、差分dが予め適切に決定した閾値Dthよりも大きい場合に(ステップ312の肯定判定)、該当する階級に画像データを縮退させたことによる影響が及んだと判断し、影響を受けた階級の数を示す影響階級数nをインクリメントする(ステップ313)。   In order to make such a determination, as shown in FIG. 4, the evaluation processing unit 34 shown in FIG. 1 first calculates the frequency of each class of the histogram corresponding to the basic image data in the histogram corresponding to the restored image data. Compared with the frequency of the corresponding class (step 311), if the difference d is larger than the threshold value Dth appropriately determined in advance (affirmative determination in step 312), the effect of degenerating the image data to the corresponding class is affected. The number of influence classes n indicating the number of affected classes is incremented (step 313).

その後、評価処理部34は、全ての階級について上述した度数の比較を行ったか否かを判定し(ステップ314)、未処理の階級がある場合は(ステップ314の否定判定)、ステップ311に戻って次の階級についての比較を行う。
一方、全ての階級に関する処理が完了した場合(ステップ314の肯定判定)に、評価処理部34は、影響階級数nと予め適切に決定した閾値Nthとを比較し、影響階級数nが閾値Nthよりも大きい場合に(ステップ315の肯定判定)、ビット数の縮小によって画質に影響がある旨の判断結果を変換制御部31に渡して処理を終了する(ステップ316)。
Thereafter, the evaluation processing unit 34 determines whether or not the above-described frequency comparison has been performed for all classes (step 314). If there is an unprocessed class (negative determination in step 314), the process returns to step 311. Compare the next class.
On the other hand, when the processes related to all classes are completed (Yes in step 314), the evaluation processing unit 34 compares the influence class number n with a predetermined threshold value Nth, and the influence class number n is set to the threshold value Nth. If it is greater than the value (Yes in step 315), the determination result that the image quality is affected by the reduction in the number of bits is passed to the conversion control unit 31 and the process is terminated (step 316).

逆に、影響階級数nが閾値Nthよりも小さい場合に(ステップ315の否定判定)、評価処理部34は、ビット数の縮小による画質への影響は小さい旨の判断結果を変換制御部31に渡して処理を終了する(ステップ317)。
なお、上述した度数の差分に関する閾値Dthを超える差分dの総和Sを予め適切に決定した閾値Sthと比較した結果に基づいて、画質への影響が無視できるか否かを判断することも可能である。また、各階級の度数の差分に関する閾値Dthの値を、個々の階級の度数の値を考慮して決定することも可能である。また、各階級の度数の差分に関する閾値Dthや影響階級数nに関する閾値Nthおよび上述した総和Sに関する閾値Sthの値は、例えば、様々な被写体を撮影して得られた画像データについて、上述したような縮退画像データを作成し、この縮退画像データで表される画像と基本画像データに対応する画像とを目視によって比較する実験を行った結果などに基づいて決定することができる。
On the contrary, when the influence class number n is smaller than the threshold value Nth (negative determination in step 315), the evaluation processing unit 34 sends a determination result that the influence on the image quality due to the reduction of the bit number is small to the conversion control unit 31. Then, the process ends (step 317).
It is also possible to determine whether or not the influence on the image quality can be ignored based on the result of comparing the sum S of the differences d exceeding the threshold Dth relating to the above-described frequency difference with a threshold Sth determined appropriately in advance. is there. It is also possible to determine the threshold value Dth regarding the frequency difference of each class in consideration of the frequency value of each class. In addition, the threshold value Dth related to the frequency difference of each class, the threshold value Nth related to the influence class n, and the threshold value Sth related to the above-described sum S are, for example, as described above for image data obtained by photographing various subjects. It is possible to make a decision based on the result of an experiment in which a reduced image data is generated and an image represented by the reduced image data and an image corresponding to the basic image data are visually compared.

上述したようにして、評価処理部34により、階調値を表すデジタルデータのビット数を縮小することによって画質に影響があると判断された場合に(図2のステップ307の肯定判定)、図1に示した変換制御部31は、メモリ24に基本画像データとして格納された画像データを記憶媒体27への記録対象の画像データとして記録処理部26に通知することにより、この画像データを記録処理に供する(図2のステップ308)。   As described above, when the evaluation processing unit 34 determines that the image quality is affected by reducing the number of bits of the digital data representing the gradation value (affirmative determination in step 307 in FIG. 2), 1 notifies the recording processing unit 26 of the image data stored as basic image data in the memory 24 as image data to be recorded in the storage medium 27, thereby recording the image data. (Step 308 in FIG. 2).

一方、ステップ307の否定判定の場合に、図1に示した変換制御部31は、縮退画像データによって基本画像データと同等の画質が期待できると判断し、メモリ24に保持された基本画像データを縮退画像データで置き換えて基本画像データとする(図2のステップ309)。その後、変換制御部31は、基本画像データを構成する階調値を表すデジタルデータのビット数が、例えば圧縮処理に適合する画像データのビット数に基づいて決定した最低ビット数(例えば、8ビット)に等しいか否かを判定し(ステップ310)、否定判定の場合は、ステップ302に戻って、上述したようにして基本画像データとなった縮退画像データに関する処理を開始する。   On the other hand, in the case of a negative determination in step 307, the conversion control unit 31 shown in FIG. 1 determines that the image quality equivalent to the basic image data can be expected from the degenerated image data, and the basic image data held in the memory 24 is obtained. The image data is replaced with the reduced image data to obtain basic image data (step 309 in FIG. 2). Thereafter, the conversion control unit 31 determines that the number of bits of the digital data representing the gradation values constituting the basic image data is the minimum number of bits (for example, 8 bits) determined based on the number of bits of the image data suitable for the compression process, for example. ) (Step 310), and in the case of a negative determination, the process returns to step 302 to start the process for the degenerated image data that has become the basic image data as described above.

上述したようにしてステップ302〜ステップ307およびステップ309,310を繰り返すことにより、画質に影響がないとされる範囲で階調値を表すデジタルデータのビット数を縮小していき、撮影された画像の特徴を過不足なく再現可能なビット数のデジタルデータによって階調値が表された画像データを、ステップ308において記録処理に供することができる。   By repeating Steps 302 to 307 and Steps 309 and 310 as described above, the number of bits of digital data representing gradation values is reduced within a range that does not affect the image quality, and a photographed image is obtained. In step 308, the image data in which the gradation value is represented by digital data of the number of bits that can reproduce the above characteristics without excess or deficiency can be used.

このようにして、撮影された画像の特徴に応じて、RAWデータにおいて階調値を表すデジタルデータのビット数を制限することにより、適切なデータサイズの未加工の画像データを記録処理に供することができる。これにより、RAWデータ記録による特色を活かしつつ、記憶媒体27に記録可能な画像の数を増やすことができるので、記憶媒体27の有限な記憶容量を有効に利用することができる。   In this way, raw image data having an appropriate data size is subjected to recording processing by limiting the number of bits of digital data representing gradation values in RAW data according to the characteristics of the captured image. Can do. This makes it possible to increase the number of images that can be recorded on the storage medium 27 while utilizing the characteristics of RAW data recording, so that the finite storage capacity of the storage medium 27 can be used effectively.

なお、図2のステップ310において、基本画像データにおいて階調値を表すデジタルデータのビット数が上述した最低ビット数に等しいとされた場合に、図1に示した変換制御部31は、ステップ308に進み、ステップ309において縮退画像データによって置き換えることで得られた最低ビット数のデジタルデータから構成される基本画像データを記録処理に供して処理を終了することにより、上述したビット数の制限に下限を設けることも可能である。   2, when the number of bits of the digital data representing the gradation value in the basic image data is equal to the minimum number of bits described above, the conversion control unit 31 shown in FIG. And the basic image data composed of the digital data with the minimum number of bits obtained by replacing with the degenerated image data in step 309 is subjected to the recording process, and the process is terminated. It is also possible to provide.

また、上述したようにして、A/D変換器23から直接得られる最大ビット数の画像データから段階的にビット数を縮小する代わりに、複数段階の縮小ビット数に対応する縮退画像データを並行して作成し、これらに対応する復元画像データに対応するヒストグラムを最大ビット数の基本画像データに対応するヒストグラムとそれぞれ比較することにより、縮退が可能な限界を見極めることも可能である。   Further, as described above, instead of reducing the number of bits step by step from the image data having the maximum number of bits obtained directly from the A / D converter 23, the reduced image data corresponding to the reduced number of bits in a plurality of steps is parallelized. It is also possible to determine the limit at which degeneration is possible by comparing the histogram corresponding to the restored image data corresponding to these with the histogram corresponding to the basic image data having the maximum number of bits.

更に、RAWデータの記録が指示されていない場合にも、例えば、圧縮処理部36に適合するビット数(例えば、8ビット)に階調値を表すデジタルデータを縮小した縮退画像データについて、上述したようにして、基本画像から画質に変化があるか否かを調べ、変化がないとされた場合に、基本画像データに代えて上述した縮退画像データを画像補正処理部35および画像圧縮処理部36に渡すことにより、これらの各部の処理負担を軽減することができる。
(第2の実施形態)
図5に、本発明にかかわるデジタルカメラの第2の実施形態を示す。また、図6に、適正サイズ変換動作を表す流れ図を示す。
Furthermore, even when RAW data recording is not instructed, for example, the above-described reduced image data obtained by reducing the digital data representing the gradation value to the number of bits suitable for the compression processing unit 36 (for example, 8 bits) is described above. In this way, it is checked whether or not there is a change in image quality from the basic image. If it is determined that there is no change, the above-described reduced image data is used as the image correction processing unit 35 and the image compression processing unit 36 instead of the basic image data. By passing to, it is possible to reduce the processing load of each of these units.
(Second Embodiment)
FIG. 5 shows a second embodiment of a digital camera according to the present invention. FIG. 6 is a flowchart showing an appropriate size conversion operation.

なお、図5に示す構成要素のうち、図1に示した各部と同等のものについては、図1に示した符号を付して示し、その説明を省略する。
図5に示した撮像素子22およびA/D変換器30は、毎秒30〜60フレームの間引き画像(ドラフト画像)データを生成し、メモリ24を介して表示制御部28に渡し、液晶ディスプレイ29による表示処理に供することにより、撮像素子22に捉えられている被写体の様子をリアルタイムで利用者に提供するスルー画機能を備えている。
5 that are the same as those shown in FIG. 1 are denoted by the same reference numerals as those shown in FIG. 1 and description thereof is omitted.
The image sensor 22 and the A / D converter 30 shown in FIG. 5 generate thinned image (draft image) data of 30 to 60 frames per second, pass it to the display control unit 28 via the memory 24, and the liquid crystal display 29 By using the display process, a through image function is provided that provides the user with the state of the subject captured by the image sensor 22 in real time.

図5に示した変換制御部41は、上述したスルー画機能のためにメモリ24に書き込まれるドラフト画像データを基本画像データとして取得する(図6のステップ321参照)。
次いで、図5に示した変換制御部41は、この基本画像データに基づいて、上述したようにして画質を劣化させない限界の縮小ビット数を探索し(図6のステップ302〜ステップ307およびステップ309,310参照)、この探索で得られた結果に基づいて、撮影の際に撮像素子22の出力信号を量子化して得るべきデジタルデータのビット数を決定して、A/D変換器30に対する設定を行う(ステップ322)。
The conversion control unit 41 shown in FIG. 5 acquires the draft image data written in the memory 24 for the above-described through image function as basic image data (see step 321 in FIG. 6).
Next, the conversion control unit 41 shown in FIG. 5 searches the limit reduction bit number that does not deteriorate the image quality as described above based on the basic image data (steps 302 to 307 and step 309 in FIG. 6). 310), the number of bits of digital data to be obtained by quantizing the output signal of the image sensor 22 at the time of shooting is determined based on the result obtained by this search, and the setting for the A / D converter 30 is performed. (Step 322).

このようにしてA/D変換器30におけるデジタル化動作を制御することにより、レリーズボタンの押下に応じて撮影が行われたときには、適切なビット数のデジタルデータによって階調値が表された画像データを取得して(ステップ323)、記録処理部26の処理に供することができる。
上述したようにして、撮影に先立って、スルー画機能のためのドラフト画像に基づいて、階調値を表すデジタルデータのビット数を縮小することによる画質への影響を評価し、A/D変換器30によるデジタル化動作を制御することにより、撮影された画像に対応する適正なサイズの画像データを迅速に記録処理部26の処理に供することが可能である。
By controlling the digitization operation in the A / D converter 30 in this way, when shooting is performed in response to pressing of the release button, an image whose gradation value is represented by digital data having an appropriate number of bits. Data can be acquired (step 323) and used for the processing of the recording processing unit 26.
As described above, prior to shooting, based on the draft image for the through image function, the influence on the image quality by reducing the number of bits of the digital data representing the gradation value is evaluated, and A / D conversion is performed. By controlling the digitization operation by the device 30, it is possible to quickly provide image data of an appropriate size corresponding to the captured image to the processing of the recording processing unit 26.

また、図6に示したステップ323に先立って、ステップ321に続く一連の処理を、例えば、定期的に繰り返すことによって、デジタルカメラに捉えられたシーンの変化をA/D変換器30に対する設定に反映することにより、撮影されたシーンに適合するビット数で撮像素子22の出力信号をデジタル化し、撮影されたシーンに対応する画像の特徴を過不足なく再現可能な画像データを取得することが可能である。   Further, prior to step 323 shown in FIG. 6, a series of processing following step 321 is periodically repeated, for example, so that a scene change captured by the digital camera is set to the A / D converter 30. By reflecting, it is possible to digitize the output signal of the image sensor 22 with the number of bits suitable for the shot scene and obtain image data that can reproduce the features of the image corresponding to the shot scene without excess or deficiency. It is.

また、評価の対象となる基本画像データのサイズがドラフト画像データであって、撮影の際に得られる画像データに比べてデータサイズが非常に小さいので、ヒストグラムの作成や縮退画像データおよび復元画像データの作成に要する処理時間の短縮が期待できる。
(第3の実施形態)
図7に、本発明にかかわるデジタルカメラの第3の実施形態を示す。また、図8に、適正サイズ変換動作を表す流れ図を示す。
In addition, since the size of the basic image data to be evaluated is draft image data, and the data size is very small compared to the image data obtained at the time of shooting, creation of a histogram, degenerated image data, and restored image data It can be expected that the processing time required to create the file will be shortened.
(Third embodiment)
FIG. 7 shows a third embodiment of a digital camera according to the present invention. FIG. 8 is a flowchart showing an appropriate size conversion operation.

なお、図7に示す構成要素のうち、図5に示した各部と同等のものについては、図5に示した符号を付して示し、その説明を省略する。
図7に示した変換制御部42は、上述したスルー画機能のためにメモリ24に書き込まれるドラフト画像データを基本画像データとして取得して(図8のステップ321参照)、図7に示したヒストグラム作成部33の機能を利用して、この基本画像データについてヒストグラムを作成した後、A/D変換器30に適切な縮小ビット数(例えば、基本画像データに対応するビット数より2ビット小さいビット数)を設定する(ステップ324)。
7 that are the same as those shown in FIG. 5 are denoted by the same reference numerals as those shown in FIG. 5 and description thereof is omitted.
The conversion control unit 42 shown in FIG. 7 acquires the draft image data written in the memory 24 for the above-described through image function as basic image data (see step 321 in FIG. 8), and the histogram shown in FIG. After creating a histogram for this basic image data by using the function of the creation unit 33, the A / D converter 30 has an appropriate reduced bit number (for example, a bit number smaller by 2 bits than the bit number corresponding to the basic image data). ) Is set (step 324).

そして、この縮小ビット数が設定されたA/D変換器30によってスルー画機能のために生成されたドラフト画像データを縮退画像データとして取得し(ステップ325)、この縮退画像データに基づいて、シフト処理部32の機能を利用して復元画像データを生成する(ステップ304)。
このようにして、A/D変換器30におけるスルー画機能のためのデジタル化動作をフレームごとに制御することにより、A/D変換器30の出力として、基本画像データおよび縮退画像データを直接に得ることができる。
Then, the draft image data generated for the through image function by the A / D converter 30 in which the reduced bit number is set is acquired as reduced image data (step 325), and the shift is performed based on the reduced image data. The restored image data is generated using the function of the processing unit 32 (step 304).
In this way, by controlling the digitization operation for the through image function in the A / D converter 30 for each frame, the basic image data and the degenerated image data are directly output as the output of the A / D converter 30. Obtainable.

以上に説明したように、本発明によるデジタルカメラでは、撮影された画像の特徴を過不足なく再現可能とするために必要な階調値の量子化にかかわる条件を見極め、適切なビット数のデジタルデータによって階調値が表された画像データを記録処理に供することができる。
このようにして、未加工の画像データを記録する際に、画像の特徴に応じて階調値を表すデジタルデータのビット数を制限し、記録対象となる画像データのサイズを適切に制御することにより、RAWデータ記録による利点を享受しつつ、限りある記憶媒体の容量を有効に利用することが可能となる。
As described above, in the digital camera according to the present invention, it is possible to determine the conditions related to quantization of gradation values necessary to make it possible to reproduce the characteristics of a captured image without excess and deficiency, and to perform digital processing with an appropriate number of bits. Image data in which gradation values are represented by data can be used for recording processing.
In this way, when recording raw image data, the number of bits of digital data representing gradation values is limited according to the characteristics of the image, and the size of the image data to be recorded is controlled appropriately. Thus, it is possible to effectively use the limited capacity of the storage medium while enjoying the advantages of RAW data recording.

デジタルカメラの高級化に伴い、デジタルカメラに備えられるA/D変換器のビット数が年々増大していることを考慮すれば、RAWデータ記録において、記録される画像データのサイズを適切に制御可能であることは、非常に有用な特徴である。   Considering that the number of bits of A / D converters provided in digital cameras is increasing year by year as digital cameras become more sophisticated, the size of recorded image data can be controlled appropriately in RAW data recording. It is a very useful feature.

本発明にかかわるデジタルカメラの第1の実施形態を示す図である。It is a figure which shows 1st Embodiment of the digital camera concerning this invention. 適正サイズ変換動作を表す流れ図である。It is a flowchart showing proper size conversion operation. ヒストグラムに基づく画質変動評価を説明する図である。It is a figure explaining the image quality variation evaluation based on a histogram. 画質の変化を評価する動作を表す流れ図である。It is a flowchart showing the operation | movement which evaluates the change of an image quality. 本発明にかかわるデジタルカメラの第2の実施形態を示す図である。It is a figure which shows 2nd Embodiment of the digital camera concerning this invention. 適正サイズ変換動作を表す流れ図である。It is a flowchart showing proper size conversion operation. 本発明にかかわるデジタルカメラの第3の実施形態を示す図である。It is a figure which shows 3rd Embodiment of the digital camera concerning this invention. 適正サイズ変換動作を表す流れ図である。It is a flowchart showing proper size conversion operation.

符号の説明Explanation of symbols

21…撮影光学系、22…撮像素子、23、30…アナログ/デジタル(A/D)変換器、24…めもり、25…画像処理部、26…記録処理部、27…記憶媒体、28…表示制御部、29…液晶表示部、31、41、42…変換制御部、32…シフト処理部、33…ヒストグラム作成部、34…評価処理部、35…画像補正処理部、36…画像圧縮処理部。 DESCRIPTION OF SYMBOLS 21 ... Shooting optical system, 22 ... Image pick-up element, 23, 30 ... Analog / digital (A / D) converter, 24 ... Memory, 25 ... Image processing part, 26 ... Recording processing part, 27 ... Storage medium, 28 ... Display Control unit 29 ... Liquid crystal display unit 31, 41, 42 ... Conversion control unit, 32 ... Shift processing unit, 33 ... Histogram creation unit, 34 ... Evaluation processing unit, 35 ... Image correction processing unit, 36 ... Image compression processing unit .

Claims (5)

撮像素子の出力信号で示される階調値を所定の最大ビット数のデジタルデータに変換するA/D変換器と、
前記A/D変換器によって得られたデジタルデータから構成された基本画像データを保持するメモリと、
前記基本画像データに基づいて、前記基本画像を構成する各画素の階調値を前記最大ビット数に応じた階級ごとに分類して得られる度数を示す基本ヒストグラムを作成する第1ヒストグラム作成手段と、
前記基本画像に基づいて、前記最大ビット数よりも小さい縮小ビット数のデジタルデータによって各画素の階調値を表す縮退画像データを生成する縮退画像生成手段と、
前記縮退画像データを構成する各画素の階調値を前記最大ビット数のデジタルデータで表す拡張画像データを生成する拡張画像生成手段と、
前記拡張画像データに基づいてヒストグラムを作成し、このヒストグラムについて、階級の補間を行うことにより、前記最大ビット数のデジタルデータに関する各階級における階調値の度数を示す再現ヒストグラムを生成する第2ヒストグラム作成手段と、
前記基本ヒストグラムと前記再現ヒストグラムとを比較して、前記縮退画像への変換が画像の特徴にもたらした影響の大きさを評価する評価手段と、
前記評価手段によって影響が小さい旨の評価結果が得られた画像について、前記縮退画像データを後段の画像記録処理に供する記録制御手段と
を備えたことを特徴とするデジタルカメラ。
An A / D converter that converts the gradation value indicated by the output signal of the image sensor into digital data having a predetermined maximum number of bits;
A memory for holding basic image data composed of digital data obtained by the A / D converter;
First histogram creating means for creating a basic histogram indicating the frequency obtained by classifying the gradation value of each pixel constituting the basic image for each class according to the maximum number of bits based on the basic image data; ,
Reduced image generation means for generating reduced image data representing a gradation value of each pixel by digital data having a reduced bit number smaller than the maximum bit number based on the basic image;
Extended image generation means for generating extended image data representing the gradation value of each pixel constituting the reduced image data by the digital data of the maximum number of bits;
A histogram is generated based on the extended image data, and a second histogram is generated by performing class interpolation on the histogram, thereby generating a reproduction histogram indicating the frequency of gradation values in each class regarding the digital data having the maximum number of bits. Creating means;
An evaluation means for comparing the basic histogram and the reproduction histogram and evaluating the magnitude of the influence of the conversion to the degenerate image on the image characteristics;
A digital camera, comprising: a recording control unit that uses the reduced image data for subsequent image recording processing for an image for which an evaluation result indicating that the influence is small is obtained by the evaluation unit.
撮像素子の出力信号で示される階調値を所定の最大ビット数のデジタルデータに変換するA/D変換器と、
前記A/D変換器によって得られたデジタルデータから構成された基本画像データを保持するメモリと、
前記基本画像データに基づいて、前記基本画像を構成する各画素の階調値を前記最大ビット数に応じた階級ごとに分類して得られる度数を示す基本ヒストグラムを作成する第1ヒストグラム作成手段と、
前記基本画像に基づいて、前記最大ビット数よりも小さい縮小ビット数のデジタルデータによって各画素の階調値を表す縮退画像データを生成する縮退画像生成手段と、
前記縮退画像データを構成する各画素の階調値を前記最大ビット数のデジタルデータで表す拡張画像データを生成する拡張画像生成手段と、
前記拡張画像データに基づいてヒストグラムを作成し、このヒストグラムについて、階級の補間を行うことにより、前記最大ビット数のデジタルデータに関する各階級における階調値の度数を示す再現ヒストグラムを生成する第2ヒストグラム作成手段と、
前記基本ヒストグラムと前記再現ヒストグラムとを比較して、前記縮退画像への変換が画像の特徴にもたらした影響の大きさを評価する評価手段と、
前記評価手段によって影響が小さい旨の評価結果が得られた基本画像を前記縮退画像に置き換え、この新たな基本画像について、前記第1ヒストグラム作成手段、前記縮退画像生成手段、前記拡張画像生成手段、前記第2ヒストグラム作成手段および前記評価手段による処理を起動する反復制御手段と、
前記評価手段によって影響が大きい旨の評価結果が得られた基本画像を後段の画像記録処理に供する記録制御手段と
を備えたことを特徴とするデジタルカメラ。
An A / D converter that converts the gradation value indicated by the output signal of the image sensor into digital data having a predetermined maximum number of bits;
A memory for holding basic image data composed of digital data obtained by the A / D converter;
First histogram creating means for creating a basic histogram indicating the frequency obtained by classifying the gradation value of each pixel constituting the basic image for each class according to the maximum number of bits based on the basic image data; ,
Reduced image generation means for generating reduced image data representing a gradation value of each pixel by digital data having a reduced bit number smaller than the maximum bit number based on the basic image;
Extended image generation means for generating extended image data representing the gradation value of each pixel constituting the reduced image data by the digital data of the maximum number of bits;
A histogram is generated based on the extended image data, and a second histogram is generated by performing class interpolation on the histogram, thereby generating a reproduction histogram indicating the frequency of gradation values in each class regarding the digital data having the maximum number of bits. Creating means;
An evaluation means for comparing the basic histogram and the reproduction histogram and evaluating the magnitude of the influence of the conversion to the degenerate image on the image characteristics;
The basic image from which an evaluation result indicating that the influence is small is obtained by the evaluation unit is replaced with the reduced image, and the first histogram generation unit, the reduced image generation unit, the extended image generation unit, and the new basic image. Repetitive control means for starting processing by the second histogram creating means and the evaluation means;
A digital camera comprising: a recording control unit that provides a basic image for which an evaluation result indicating that the evaluation unit has a great influence is obtained for subsequent image recording processing.
撮像素子の出力信号で示される階調値を所定の最大ビット数のデジタルデータに変換するA/D変換器と、
前記A/D変換器によって得られたデジタルデータから構成された基本画像データを保持するメモリと、
前記基本画像データに基づいて、前記基本画像を構成する各画素の階調値を前記最大ビット数に応じた階級ごとに分類して得られる度数を示す基本ヒストグラムを作成する第1ヒストグラム作成手段と、
前記基本画像に基づいて、圧縮処理を含む後段の画像処理に適合する縮小ビット数のデジタルデータによって各画素の階調値を表す縮退画像データを生成する縮退画像生成手段と、
前記縮退画像データを構成する各画素の階調値を前記最大ビット数のデジタルデータで表す拡張画像データを生成する拡張画像生成手段と、
前記拡張画像データに基づいてヒストグラムを作成し、このヒストグラムについて、階級の補間を行うことにより、前記最大ビット数のデジタルデータに関する各階級における階調値の度数を示す再現ヒストグラムを生成する第2ヒストグラム作成手段と、
前記基本ヒストグラムと前記再現ヒストグラムとを比較して、前記縮退画像への変換が画像の特徴にもたらした影響の大きさを評価する評価手段と、
前記評価手段によって影響が小さい旨の評価結果が得られた画像について、前記縮退画像データを後段の画像処理に供する圧縮制御手段と
を備えたことを特徴とするデジタルカメラ。
An A / D converter that converts the gradation value indicated by the output signal of the image sensor into digital data having a predetermined maximum number of bits;
A memory for holding basic image data composed of digital data obtained by the A / D converter;
First histogram creating means for creating a basic histogram indicating the frequency obtained by classifying the gradation value of each pixel constituting the basic image for each class according to the maximum number of bits based on the basic image data; ,
Based on the basic image, reduced image generation means for generating reduced image data representing the gradation value of each pixel by digital data having a reduced number of bits suitable for subsequent image processing including compression processing;
Extended image generation means for generating extended image data representing the gradation value of each pixel constituting the reduced image data by the digital data of the maximum number of bits;
A histogram is generated based on the extended image data, and a second histogram is generated by performing class interpolation on the histogram, thereby generating a reproduction histogram indicating the frequency of gradation values in each class regarding the digital data having the maximum number of bits. Creating means;
An evaluation means for comparing the basic histogram and the reproduction histogram and evaluating the magnitude of the influence of the conversion to the degenerate image on the image characteristics;
A digital camera comprising: compression control means for subjecting the reduced image data to subsequent image processing for an image for which an evaluation result indicating that the influence is small is obtained by the evaluation means.
撮像素子の出力信号で示される階調値を所定の最大ビット数のデジタルデータに変換するA/D変換器と、
撮影に先立って、前記撮像素子から定期的に出力されるドラフトモード出力に応じて前記A/D変換器によって得られたデジタルデータから構成された基本画像データを取得する基本画像取得手段と、
前記基本画像データに基づいて、前記基本画像を構成する各画素の階調値を前記最大ビット数に応じた階級ごとに分類して得られる度数を示す基本ヒストグラムを作成する第1ヒストグラム作成手段と、
前記基本画像に基づいて、前記最大ビット数よりも小さい縮小ビット数のデジタルデータによって各画素の階調値を表す縮退画像データを生成する縮退画像生成手段と、
前記縮退画像データを構成する各画素の階調値を前記最大ビット数のデジタルデータで表す拡張画像データを生成する拡張画像生成手段と、
前記拡張画像データに基づいてヒストグラムを作成し、このヒストグラムについて、階級の補間を行うことにより、前記最大ビット数のデジタルデータに関する各階級における階調値の度数を示す再現ヒストグラムを生成する第2ヒストグラム作成手段と、
前記基本ヒストグラムと前記再現ヒストグラムとを比較して、前記縮退画像への変換が画像の特徴にもたらした影響の大きさを評価する評価手段と、
前記評価手段による評価結果に基づいて、撮影対象のシーンに対応する画像データのビット数を決定するビット数決定手段と、
前記ビット数決定手段によって決定されたビット数のデジタルデータの出力を前記A/D変換器に指示する変換制御手段と
を備えたことを特徴とするデジタルカメラ。
An A / D converter that converts the gradation value indicated by the output signal of the image sensor into digital data having a predetermined maximum number of bits;
Prior to shooting, basic image acquisition means for acquiring basic image data composed of digital data obtained by the A / D converter according to a draft mode output periodically output from the image sensor;
First histogram creating means for creating a basic histogram indicating the frequency obtained by classifying the gradation value of each pixel constituting the basic image for each class according to the maximum number of bits based on the basic image data; ,
Reduced image generation means for generating reduced image data representing a gradation value of each pixel by digital data having a reduced bit number smaller than the maximum bit number based on the basic image;
Extended image generation means for generating extended image data representing the gradation value of each pixel constituting the reduced image data by the digital data of the maximum number of bits;
A histogram is generated based on the extended image data, and a second histogram is generated by performing class interpolation on the histogram, thereby generating a reproduction histogram indicating the frequency of gradation values in each class regarding the digital data having the maximum number of bits. Creating means;
An evaluation means for comparing the basic histogram and the reproduction histogram and evaluating the magnitude of the influence of the conversion to the degenerate image on the image characteristics;
Based on the evaluation result by the evaluation means, the bit number determination means for determining the number of bits of image data corresponding to the scene to be photographed;
A digital camera comprising: conversion control means for instructing the A / D converter to output digital data having the number of bits determined by the bit number determination means.
撮像素子の出力信号で示される階調値を所定の最大ビット数のデジタルデータと前記最大ビット数より小さい少なくとも一つの縮小ビット数のデジタルデータに変換するA/D変換器と、
撮影に先立って、前記撮像素子から連続するフレームの一つについて出力されるドラフトモード出力に応じて前記A/D変換器によって前記最大ビット数で得られたデジタルデータから構成された基本画像データを取得する基本画像取得手段と、
前記基本画像データに基づいて、前記基本画像を構成する各画素の階調値を前記最大ビット数に応じた階級ごとに分類して得られる度数を示す基本ヒストグラムを作成する第1ヒストグラム作成手段と、
撮影に先立って、前記連続するフレームの別の少なくとも一つについて前記撮像素子から出力されるドラフトモード出力に応じて前記A/D変換器によって前記少なくとも一つの縮小ビット数で得られたデジタルデータから構成された少なくとも一つの縮退画像データを取得する縮退画像取得手段と、
前記少なくとも一つの縮退画像データを構成する各画素の階調値を前記最大ビット数のデジタルデータで表す少なくとも一つの拡張画像データを生成する拡張画像生成手段と、
前記少なくとも一つの拡張画像データに基づいてそれぞれヒストグラムを作成し、このヒストグラムについて、階級の補間を行うことにより、前記最大ビット数のデジタルデータに関する各階級における階調値の度数を示す少なくとも一つの再現ヒストグラムを生成する第2ヒストグラム作成手段と、
前記基本ヒストグラムと前記少なくとも一つの再現ヒストグラムとを比較して、前記少なくとも一つの縮退画像それぞれへの変換が画像の特徴にもたらした影響の大きさを評価する評価手段と、
前記評価手段による評価結果に基づいて、撮影対象のシーンに対応する画像データのビット数を決定するビット数決定手段と、
前記ビット数決定手段によって決定されたビット数のデジタルデータの出力を前記A/D変換器に指示する変換制御手段と
を備えたことを特徴とするデジタルカメラ。
An A / D converter that converts the gradation value indicated by the output signal of the image sensor into digital data having a predetermined maximum number of bits and at least one reduced bit number smaller than the maximum number of bits;
Prior to shooting, basic image data composed of digital data obtained with the maximum number of bits by the A / D converter in accordance with a draft mode output output for one of the continuous frames from the image sensor. Basic image acquisition means for acquiring;
First histogram creating means for creating a basic histogram indicating the frequency obtained by classifying the gradation value of each pixel constituting the basic image for each class according to the maximum number of bits based on the basic image data; ,
Prior to shooting, from the digital data obtained with the at least one reduced bit number by the A / D converter in accordance with the draft mode output output from the imaging device for at least one of the consecutive frames. Reduced image acquisition means for acquiring configured at least one reduced image data;
Extended image generating means for generating at least one extended image data representing the gradation value of each pixel constituting the at least one degenerated image data by the digital data of the maximum number of bits;
A histogram is created based on each of the at least one extended image data, and a class interpolation is performed on the histogram, whereby at least one reproduction indicating the frequency of the gradation value in each class regarding the digital data having the maximum number of bits. A second histogram generating means for generating a histogram;
An evaluation means for comparing the basic histogram and the at least one reproduction histogram to evaluate the magnitude of the effect of the conversion to each of the at least one degenerated image on the image characteristics;
Based on the evaluation result by the evaluation means, the bit number determination means for determining the number of bits of image data corresponding to the scene to be photographed;
A digital camera comprising: conversion control means for instructing the A / D converter to output digital data having the number of bits determined by the bit number determination means.
JP2006240174A 2006-09-05 2006-09-05 Digital camera Withdrawn JP2008066839A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006240174A JP2008066839A (en) 2006-09-05 2006-09-05 Digital camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006240174A JP2008066839A (en) 2006-09-05 2006-09-05 Digital camera

Publications (1)

Publication Number Publication Date
JP2008066839A true JP2008066839A (en) 2008-03-21

Family

ID=39289196

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006240174A Withdrawn JP2008066839A (en) 2006-09-05 2006-09-05 Digital camera

Country Status (1)

Country Link
JP (1) JP2008066839A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009253646A (en) * 2008-04-04 2009-10-29 Canon Inc Image processing apparatus, image processing method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009253646A (en) * 2008-04-04 2009-10-29 Canon Inc Image processing apparatus, image processing method

Similar Documents

Publication Publication Date Title
JP4987129B2 (en) Image processing apparatus and control method thereof
CN101682788B (en) Signal processing method and signal processing device
JP2004128809A (en) Method and apparatus for image processing, and imaging device
US20090284618A1 (en) Image processing device and method, and computer-readable recording medium containing program
US7620259B2 (en) History adding device for generating history-added image file, electronic camera, and image processing program for processing history-added image file
JP2014167609A (en) Image processing apparatus, control method thereof, program, and storage medium
US20160037014A1 (en) Imaging apparatus and imaging apparatus control method
JP2001008092A (en) Picture data forming device and picture data processing method
CN107509019A (en) Picture pick-up device, image capture method and non-transient computer-readable media
US20170134648A1 (en) Image processing apparatus, method for controlling image processing apparatus, image pickup apparatus, method for controlling image pickup apparatus, and recording medium
JP2002305684A (en) Imaging system and program
US7710464B2 (en) Image photographing and recording device and method
JP2010021710A (en) Imaging device, image processor, and program
JP2008294524A (en) Image processor and image processing method
JP2008066839A (en) Digital camera
JP2005094298A (en) Digital camera and image data recording method
JP2007174015A (en) Image management program and image management apparatus
JP6576018B2 (en) Image processing apparatus and imaging apparatus
JP2010124114A (en) Digital camera and image data processing program
KR101480407B1 (en) Digital image processing apparatus, method for controlling the same and medium of recording the method
KR20040065928A (en) Printer having printing function of moving picture and control method thereof
JP5315634B2 (en) Image processing apparatus and image processing method
JP5515653B2 (en) Imaging apparatus and image processing apparatus
JP6274829B2 (en) Image processing apparatus and control method thereof
JP2005223370A (en) Solid-state image pickup device, image recording method thereof and image reproducing method thereof

Legal Events

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

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20091110