JP5957813B2 - Imaging apparatus, program, and recording medium - Google Patents

Imaging apparatus, program, and recording medium Download PDF

Info

Publication number
JP5957813B2
JP5957813B2 JP2011150870A JP2011150870A JP5957813B2 JP 5957813 B2 JP5957813 B2 JP 5957813B2 JP 2011150870 A JP2011150870 A JP 2011150870A JP 2011150870 A JP2011150870 A JP 2011150870A JP 5957813 B2 JP5957813 B2 JP 5957813B2
Authority
JP
Japan
Prior art keywords
image data
color gamut
color space
srgb
color
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.)
Active
Application number
JP2011150870A
Other languages
Japanese (ja)
Other versions
JP2013021397A (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 JP2011150870A priority Critical patent/JP5957813B2/en
Publication of JP2013021397A publication Critical patent/JP2013021397A/en
Application granted granted Critical
Publication of JP5957813B2 publication Critical patent/JP5957813B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Description

本発明は、撮像装置、プログラム、及び記録媒体に関する。   The present invention relates to an imaging device, a program, and a recording medium.

液晶ディスプレイや薄型テレビ等の表示装置で表示可能な色再現範囲(色域)は、近年拡大傾向にあり、従来の標準的な規格であるsRGBやRec709、さらにはadobeRGB等で定義した特定の色空間の色域にとどまらず、より広い色域を表示できるようになってきている。   The color reproduction range (color gamut) that can be displayed on display devices such as liquid crystal displays and flat-screen TVs has been on the rise in recent years, and specific colors defined by sRGB, Rec709, and adobeRGB, which are conventional standard standards It has become possible to display a wider color gamut, not just the spatial color gamut.

デジタルカメラは、取得することができる色域が前記特定の色空間の色域よりも広い。そこで、デジタルカメラの多くは、予め決められた色空間の色域で画像データを記録するJPEG形式等の第1フォーマットと、第1フォーマットよりも広い色空間の色域で画像データを記録するRAWデータ等の第2フォーマットとの2種類のファイル形式を撮影者が撮影前に択一的に選択しておくことができるようになっている(特許文献1、2)。   The digital camera has a wider color gamut than the specific color space. Therefore, many digital cameras use a first format such as a JPEG format that records image data in a color gamut of a predetermined color space, and a RAW that records image data in a color gamut wider than the first format. The photographer can selectively select two types of file formats such as data and the second format before photographing (Patent Documents 1 and 2).

ところで、前述した広色域表示装置では、広い色空間の色域をもつ画像を表示する場合、従来の色空間の色域を超える画像をストレートに拡張した色域の画像に変換して表示するため、その画像領域が明らかに異なった鮮やかな発色で表示されることが多い。そこで、広色域表示装置の色域を対応させるために、撮像データの全てをRAWデータ等の第2フォーマットのファイル形式で保存することが望まれている。   By the way, in the wide color gamut display device described above, when displaying an image having a color gamut of a wide color space, an image exceeding the color gamut of the conventional color space is converted into an image of a color gamut expanded straightly and displayed. Therefore, the image area is often displayed with a distinctly different vivid color. Therefore, in order to correspond to the color gamut of the wide color gamut display device, it is desired to save all of the imaging data in a second format file format such as RAW data.

特開平11−261933号公報JP 11-261933 A 特開2001−223979号公報Japanese Patent Application Laid-Open No. 2001-223979

しかしながら、全ての撮像データをRAW等の第2フォーマットのファイル形式で保存すると、RAWデータで保存する必要性の低い画像が多く含まれてしまい、後のデータの扱いや管理が非常に煩雑なるという問題が生じる。またデータ容量が大きくなるという問題も生じる。   However, if all the imaging data is saved in a file format of the second format such as RAW, many images that are not necessary to be saved as RAW data are included, and handling and management of the subsequent data becomes very complicated. Problems arise. There is also a problem that the data capacity increases.

本発明は、かかる点に鑑みてなされたものであり、撮像画像の色域に基づいて最適なフォーマットのファイル形式で画像を保存することができる撮像装置、プログラム、及び記録媒体を提供することを目的とする。   The present invention has been made in view of this point, and provides an imaging apparatus, a program, and a recording medium that can store an image in a file format of an optimal format based on the color gamut of the captured image. Objective.

本発明を例示する撮像装置の一態様は、sRGB色空間の色域よりも広い色域を有する色空間における画像データの色域が、前記sRGB色空間の色域内にすべて存在するか一部だけが存在するかを判定する判定部と、前記判定部が前記sRGB色空間の色域内にすべて存在すると判定した場合に、前記画像データを前記sRGB色空間にあわせてエンコードしてJPEG画像データを生成する処理を行い、前記判定部が前記sRGB色空間の色域内に一部だけが存在すると判定した場合に、前記画像データに前記sRGB色空間にあわせたエンコードとは異なる処理を行って第1の画像データを生成する処理と、前記画像データを前記sRGB色空間の第2の画像データに変換する処理とを行う画像処理部とを備えたものである。 According to one aspect of the imaging apparatus illustrating the present invention, the color gamut of image data in a color space having a color gamut wider than the color gamut of the sRGB color space is all or only part of the color gamut of the sRGB color space. JPEG image data is generated by encoding the image data according to the sRGB color space when the determination unit determines that the image data is all within the color gamut of the sRGB color space. When the determination unit determines that only a part of the color gamut of the sRGB color space exists, the image data is subjected to a process different from the encoding according to the sRGB color space to perform a first process. And an image processing unit that performs processing for generating image data and processing for converting the image data into second image data in the sRGB color space .

また、前記判定部が前記sRGB色空間の色域内にすべて存在すると判定した場合に、生成された前記JPEG画像データを記憶媒体に記憶し、前記判定部が前記sRGB色空間の色域内に一部だけが存在する判定した場合に、生成された前記第1の画像データと前記第2の画像データとを記憶媒体に記憶する記憶部を備えても良い。 In addition, when the determination unit determines that all exist in the color gamut of the sRGB color space, the generated JPEG image data is stored in a storage medium, and the determination unit is partially in the color gamut of the sRGB color space. A storage unit that stores the generated first image data and the second image data in a storage medium when it is determined that only the image data exists.

また、前記第1の画像データはRAWデータであっても良い。

Further, the first image data may be RAW data.

また、本発明としては、コンピュータが読み取り可能なプログラム、並びにコンピュータが読み取り可能なプログラムを記録した記録媒体の発明としてもよい。   Further, the present invention may be an invention of a computer-readable program and a recording medium recording the computer-readable program.

本発明は、色域変換手段で変換した特定の色空間の色域が予め決めた色空間の色域よりも広いかを判定する色域判定手段を備えたため、広色域領域が撮像画像に存在するかを撮影毎に判断することができる。これにより、撮像した画像データの色域に基づいて最適なフォーマットのファイル形式で画像データを保存することができる。   Since the present invention includes color gamut determination means for determining whether the color gamut of the specific color space converted by the color gamut conversion means is wider than the color gamut of the predetermined color space, the wide color gamut area is included in the captured image. Whether it exists or not can be determined for each shooting. As a result, the image data can be stored in the file format of the optimum format based on the color gamut of the captured image data.

本発明の撮像装置の一実施形態であるデジタルカメラの要部を示すブロック図である。It is a block diagram which shows the principal part of the digital camera which is one Embodiment of the imaging device of this invention. デジタルカメラの背面図である。It is a rear view of a digital camera. デジタルカメラの動作手順を示すフローチャートである。It is a flowchart which shows the operation | movement procedure of a digital camera. 撮影時に取り込んだ画像の一例を示す参考図である。It is a reference diagram showing an example of an image captured at the time of shooting. sRGBの色域とXYZ色空間に変換した画像データの色域とを平面で表したxy色度図である。FIG. 4 is an xy chromaticity diagram illustrating, in a plane, an sRGB color gamut and a color gamut of image data converted into an XYZ color space. LCDに表示する表示用画像のうちの広色域領域に黒色を点滅表示させた説明図である。It is explanatory drawing which blinked and displayed black in the wide color gamut area | region among the images for a display displayed on LCD. 広色域領域が存在する時に点灯するLEDを設けた他の実施形態を示すカメラボディの背面図である。It is a rear view of the camera body which shows other embodiment which provided LED which lights when a wide color gamut area | region exists.

本発明を適用したデジタルカメラ10は、図1に示すように、撮像部11、現像処理部12、色空間変換部13、画像処理部14、圧縮伸長処理部15、SDRAM16、メディアコントローラ17、表示制御部18、CPU19、カードメモリ20、及びLCD21を備えている。なお、符号22は、バスである。   As shown in FIG. 1, a digital camera 10 to which the present invention is applied includes an imaging unit 11, a development processing unit 12, a color space conversion unit 13, an image processing unit 14, a compression / decompression processing unit 15, an SDRAM 16, a media controller 17, and a display. A control unit 18, a CPU 19, a card memory 20, and an LCD 21 are provided. Reference numeral 22 denotes a bus.

撮像部11は、撮影レンズ23、単板式のカラー撮像センサ24、及びAFE25等で構成され、カラー撮像センサ24から得られる撮像信号に対してAFE25で各種処理を行ない、RAW(Bayer)データを生成してSDRAM16に格納する。   The imaging unit 11 includes a photographic lens 23, a single-plate color imaging sensor 24, an AFE 25, and the like. The imaging unit 11 performs various processes on the imaging signal obtained from the color imaging sensor 24 and generates RAW (Bayer) data. And stored in the SDRAM 16.

現像処理部12は、SDRAM16に格納したRAWデータの現像処理(Bayer→RGB変換)を行い、現像処理を施したRGBデータを色空間変換部13に出力する。   The development processing unit 12 performs development processing (Bayer → RGB conversion) of the RAW data stored in the SDRAM 16 and outputs the RGB data subjected to the development processing to the color space conversion unit 13.

色空間変換部13は、記録時には現像処理部12で得たRGBデータをsYCC色空間に変換してSDRAM16に格納するとともに、再生時にはSDRAM16からsYCC色空間のデータを読み出し、必要に応じてsRGB色空間のデータ(sRGBデータ)に変換する。なお、sRGB色空間の代わりに、周知のadobeRGB色空間等に変換してもよい。   The color space conversion unit 13 converts the RGB data obtained by the development processing unit 12 into the sYCC color space at the time of recording and stores it in the SDRAM 16, and reads out the data of the sYCC color space from the SDRAM 16 at the time of reproduction. Convert to spatial data (sRGB data). Note that instead of the sRGB color space, it may be converted into a well-known adobeRGB color space or the like.

表示制御部18は、sRGBデータを、LCD21の解像度に合うように縮小処理して表示用画像を作成し、作成した表示用画像を保存用の画像としてLCD21に一定時間表示する。   The display control unit 18 reduces the sRGB data so as to match the resolution of the LCD 21, creates a display image, and displays the created display image on the LCD 21 as a storage image for a predetermined time.

画像処理部14は、色空間変換部13で得たsYCCデータを対してサイズ変換や画像調整等の処理を行ってSDRAM16に格納する。   The image processing unit 14 performs processing such as size conversion and image adjustment on the sYCC data obtained by the color space conversion unit 13 and stores it in the SDRAM 16.

圧縮伸長処理部15は、記録時には画像処理済みのsYCCデータをSDRAM16から読み出し、読み出したsYCCデータに対してsRGB色空間に色域圧縮をするJPEG形式に圧縮処理が施され、再生時にはJPEG形式の圧縮画像データをカードメモリ20から読み出し、これを伸長して得たsRGBデータをSDRAM16に格納する。   The compression / decompression processing unit 15 reads sYCC data that has undergone image processing at the time of recording from the SDRAM 16, compresses the read sYCC data into a JPEG format that performs color gamut compression in the sRGB color space, and at the time of playback, the JPEG format The compressed image data is read from the card memory 20 and the sRGB data obtained by decompressing it is stored in the SDRAM 16.

メディアコントローラ17は、カードメモリ20に対するRAWデータやJPEGデータの読み出し、及び書き込みを制御する。   The media controller 17 controls reading and writing of RAW data and JPEG data to the card memory 20.

CPU19は、レリーズボタン、撮影モード選択操作部、電源スイッチ等からなる操作部30が接続されており、操作部30からの指示に応答して各部を制御する。撮影モード選択操作部は、通常撮影モードと広色域撮影モードとのいずれかを選択する。通常撮影モードは、撮像した画像データをsRGBに色域圧縮したJPEG圧縮ファイルでカードメモリ20に保存する。   The CPU 19 is connected to an operation unit 30 including a release button, a shooting mode selection operation unit, a power switch, and the like, and controls each unit in response to an instruction from the operation unit 30. The shooting mode selection operation unit selects either the normal shooting mode or the wide color gamut shooting mode. In the normal shooting mode, the captured image data is stored in the card memory 20 as a JPEG compressed file obtained by color gamut compression into sRGB.

広色域撮影モードでは、保存画像の撮影対象領域に広色域領域が存在するか否かを判定し、存在する場合には、RAWデータ(第2フォーマット形式の画像データ)をカードメモリ20に保存し、また、存在しない場合にはsRGBに色域圧縮したJPEG形式(第1フォーマット形式)のファイルで保存する。   In the wide color gamut shooting mode, it is determined whether or not there is a wide color gamut area in the shooting target area of the stored image. If there is, the RAW data (second format image data) is stored in the card memory 20. If it does not exist, it is saved as a JPEG format (first format) file that has been gamut-compressed to sRGB.

CPU19には、不揮発性メモリ31、及びバッファメモリ32が接続されている。不揮発性メモリ31には、CPU19が種々の制御を行う際に参照される制御プログラム等が格納されている。CPU19は、不揮発性メモリ31に格納されている制御プログラムに従い、バッファメモリ32を一時記憶作業領域として利用して各部(回路)の制御を行い、デジタルカメラ10の各部(回路)の機能を作動させる。   A nonvolatile memory 31 and a buffer memory 32 are connected to the CPU 19. The nonvolatile memory 31 stores a control program that is referred to when the CPU 19 performs various controls. The CPU 19 controls each part (circuit) using the buffer memory 32 as a temporary storage work area in accordance with a control program stored in the nonvolatile memory 31, and activates the function of each part (circuit) of the digital camera 10. .

CPU19は、撮像データの撮影対象領域に広色域領域が存在するか否かの判定を行うために、色域変換部26、色域内外判定部27、広色域表示制御部28、及び広色域記録制御部29を有する。これらは、不揮発性メモリ31に格納されている制御プログラムを実行することで生成される。   The CPU 19 determines whether or not there is a wide color gamut area in the imaging target area of the imaging data, and the color gamut conversion unit 26, the color gamut inside / outside determination unit 27, the wide color gamut display control unit 28, A color gamut recording control unit 29 is provided. These are generated by executing a control program stored in the nonvolatile memory 31.

色域変換部26は、撮影時に得られる画像データの撮影対象領域の色域を算出する。これは、現像処理部12で現像処理を施したRGBデータを、カラー撮像センサ24の分光特性から求まる3×3マトリクス回路により、CIE(国際照明委員会)で定義されたXYZ色空間(特定の色空間)の色域に変換することで算出することができる。XYZ色空間は、CIE-XYZ色空間であり、デバイス非依存の色空間である。なお、デバイス非依存の特定の色空間の色域としては、XYZ色空間の色域以外に、CIE−L*a*b*空間の色域等に変換してもよい。   The color gamut conversion unit 26 calculates the color gamut of the shooting target area of the image data obtained at the time of shooting. This is because the RGB data subjected to the development processing by the development processing unit 12 is converted into an XYZ color space defined by the CIE (International Illumination Commission) by a 3 × 3 matrix circuit obtained from the spectral characteristics of the color image sensor 24 (specific illumination). It can be calculated by converting to a color gamut. The XYZ color space is a CIE-XYZ color space and is a device-independent color space. The color gamut of a specific device-independent color space may be converted to a color gamut of the CIE-L * a * b * space in addition to the color gamut of the XYZ color space.

色域内外判定部27は、特定の色空間の色域と予め決めた色空間の色域とを比較し、撮影対象領域の色域が予め決めた色空間の色域よりも広いか否かを判定する。比較は、撮影対象領域の全画素に対して行う。判定は、一つの画素でも予め決めた色空間の色域に入っていない場合は広色域領域が存在すると判定する。   The color gamut inside / outside determination unit 27 compares the color gamut of the specific color space with the color gamut of the predetermined color space, and determines whether or not the color gamut of the shooting target region is wider than the color gamut of the predetermined color space. Determine. The comparison is performed for all pixels in the imaging target area. In the determination, if even one pixel does not fall within the color gamut of the predetermined color space, it is determined that a wide color gamut region exists.

なお、色域内外判定部27としては、XYZデータを平滑化処理し、平滑化したXYZデータのうちの水平、又は垂直方向に飛び飛びの画素についてのみ判別するようにしてもよい。この場合、全画素を比較しなくて済むため処理速度が向上する。また、予め決めた色空間の色域としては、sRGB、adobeRGB等の標準的な色空間の色域としてもよいし、ユーザーが定義した色空間の色域としてもよい。   Note that the color gamut inside / outside determination unit 27 may perform smoothing processing on XYZ data and determine only pixels that are skipped in the horizontal or vertical direction in the smoothed XYZ data. In this case, since it is not necessary to compare all the pixels, the processing speed is improved. The color gamut of a predetermined color space may be a color gamut of a standard color space such as sRGB or adobeRGB, or a color gamut of a color space defined by the user.

広色域表示制御部28は、色域内外判定部27が撮影対象領域に広色域領域が存在すると判定する場合、LCD21に表示する表示用画像のうちの広色域領域を黒色で一定時間点滅表示するよう制御する。   The wide color gamut display control unit 28, when the color gamut inside / outside determination unit 27 determines that the wide color gamut region exists in the photographing target region, the wide color gamut region in the display image displayed on the LCD 21 is black for a certain period of time. Controls blinking display.

広色域記録制御部29は、色域内外判定部27が撮影対象領域に広色域領域が存在すると判定する場合、RAWデータをカードメモリ20に記録するよう制御する。また、広色域領域が存在いしないと判定する場合には、sYCC色空間のRGBデータに対して画像処理を行い、その後、sRGB色域圧縮によりJPEG形式のファイルでカードメモリ20に保存するよう画像処理部14、圧縮伸長処理部15、及びメディアコントローラ17等を制御する。   The wide color gamut recording control unit 29 controls to record RAW data in the card memory 20 when the color gamut inside / outside determination unit 27 determines that a wide color gamut region exists in the shooting target region. If it is determined that the wide color gamut area does not exist, image processing is performed on the RGB data in the sYCC color space, and then the JPEG format file is stored in the card memory 20 by sRGB color gamut compression. It controls the image processing unit 14, the compression / decompression processing unit 15, the media controller 17, and the like.

操作部は、図2に示すように、LCD21の隣にモード選択操作部が設けられている。モード選択操作部は、モードメニュボタン33、及び十字キー34で構成されている。LCD21には、保存画像や再生画像の表示に加えて、メニュー画面や撮影モードの選択画面等が表示される。なお、符号35はレリーズボタン、36は電源スイッチ、37はファインダ接眼窓である。   As shown in FIG. 2, the operation unit is provided with a mode selection operation unit adjacent to the LCD 21. The mode selection operation unit includes a mode menu button 33 and a cross key 34. The LCD 21 displays a menu screen, a shooting mode selection screen, and the like in addition to displaying a stored image and a reproduced image. Reference numeral 35 denotes a release button, 36 denotes a power switch, and 37 denotes a viewfinder eyepiece window.

次に上記構成の作用を、図3を参照しながら説明する。デジタルカメラ10の電源スイッチ36をオンする(S−1)した後に、撮影モード選択操作部33,34を操作して広色域撮影モードを選択する(S−2)。その後、ファインダ接眼窓37から覗いてフレーミングを行ってからレリーズボタン35を操作してシャッタレリーズを行う(S−3)。   Next, the operation of the above configuration will be described with reference to FIG. After the power switch 36 of the digital camera 10 is turned on (S-1), the wide-gamut shooting mode is selected by operating the shooting mode selection operation units 33 and 34 (S-2). Then, after looking through the finder eyepiece window 37 and performing framing, the shutter release is performed by operating the release button 35 (S-3).

シャッタレリーズに応答してCPU19は、撮像部11からRAWデータを取り込み、SDRAM16に格納する(S−4)。その後、CPU19は、SDRAM16から読み込んだRAWデータを現像処理部12に送る。現像処理部12は、RAWデータをRGBデータに変換し、変換したRGBデータをSDRAM16に保存する(S−5)。   In response to the shutter release, the CPU 19 captures RAW data from the imaging unit 11 and stores it in the SDRAM 16 (S-4). Thereafter, the CPU 19 sends the RAW data read from the SDRAM 16 to the development processing unit 12. The development processing unit 12 converts the RAW data into RGB data, and stores the converted RGB data in the SDRAM 16 (S-5).

その後、CPU19は、保存したRGBデータを色空間変換部13に送ってsYCC色空間に変換してからsRGB色空間に変換し(S−6)、変換したsRGB色空間のデータ(sRGBデータ)を表示制御部18に送る。表示制御部18は、sRGBデータをLCD21の解像度に合うように縮小処理を施し(S−7)、縮小処理を施した表示用画像を保存用の画像としてLCD21に一定時間表示する(S−8)。   Thereafter, the CPU 19 sends the saved RGB data to the color space conversion unit 13 to convert it into the sYCC color space, and then converts it into the sRGB color space (S-6), and the converted sRGB color space data (sRGB data). The data is sent to the display control unit 18. The display control unit 18 reduces the sRGB data so as to match the resolution of the LCD 21 (S-7), and displays the reduced display image on the LCD 21 as a storage image for a certain time (S-8). ).

一方、CPU19は、現像処理済みのRGBデータをSDRAM16から読み出し、RGBデータの撮影対象領域に広色域領域が存在するかを判別する(S−9)。判別は、CPU19の色域変換部26が、RGB画像データを、カラー撮像センサ24の分光特性から求まる3×3マトリクス回路によりXYZ色空間の画像データに変換する。その後、CPU19の色域内外判定部27は、XYZ色空間の画像データの色域と予め決めた色空間の色域とを比較し、XYZ色空間の画像データの色域が予め決めた色空間の色域よりも広いかを判定する。   On the other hand, the CPU 19 reads the developed RGB data from the SDRAM 16 and determines whether a wide color gamut area exists in the shooting target area of the RGB data (S-9). For determination, the color gamut conversion unit 26 of the CPU 19 converts the RGB image data into image data in the XYZ color space by a 3 × 3 matrix circuit obtained from the spectral characteristics of the color image sensor 24. Thereafter, the color gamut inside / outside determination unit 27 of the CPU 19 compares the color gamut of the image data in the XYZ color space with the color gamut of the predetermined color space, and the color space of the image data in the XYZ color space is determined in advance. It is determined whether it is wider than the color gamut.

例えば、RGBデータを図4に示すように、ツツジを写した画像と仮定する。このRGBデータをXYZ色空間に変換し、図5に示すように、変換したXYZ色空間の色域と予め決めた色空間の色域、例えばsRGB色空間の色域とを比較する。図5は、色を平面で表すxy色度図上でsRGBの三原色を図示したものであり、三角形40がsRGB色空間の色域を、また、黒色で塗り潰した部分41がXYZ色空間に変換した画像データの色域をそれぞれ示す。XYZ色空間の色域には、sRGB色空間では表現できない領域41aが青から緑にかけて存在する。これにより、XYZ色空間の色域に変換した画像データには、予め決めた色空間の色域よりも広い広色域領域が存在することが判る。   For example, it is assumed that the RGB data is an image obtained by copying azaleas as shown in FIG. The RGB data is converted into the XYZ color space, and the color gamut of the converted XYZ color space is compared with the color gamut of a predetermined color space, for example, the color gamut of the sRGB color space, as shown in FIG. FIG. 5 illustrates the three primary colors of sRGB on the xy chromaticity diagram representing the color in a plane. The triangle 40 converts the color gamut of the sRGB color space, and the black-filled portion 41 converts to the XYZ color space. The color gamut of the obtained image data is shown respectively. In the color gamut of the XYZ color space, a region 41a that cannot be expressed in the sRGB color space exists from blue to green. Thereby, it can be seen that the image data converted into the color gamut of the XYZ color space has a wide color gamut region wider than the color gamut of the predetermined color space.

CPU19は、色域内外判定部27がXYZ色空間の色域に変換した画像データに広色域領域が存在すると判定する場合、広色域表示制御部28を動作させる。広色域表示制御部28は、図6に示すように、LCD21に表示する表示用画像の撮影対象領域に広色域領域を黒色42で点滅表示する(S−10)。これにより、撮影者は、LCD21を視認することで、広色域領域があることが分かるとともに、その領域が画像の中のどの領域かも一目で分かる。   When the CPU 19 determines that a wide color gamut area exists in the image data converted into the color gamut of the XYZ color space by the color gamut inside / outside determination unit 27, the CPU 19 operates the wide color gamut display control unit 28. As shown in FIG. 6, the wide color gamut display control unit 28 blinks and displays the wide color gamut region in black 42 in the shooting target region of the display image displayed on the LCD 21 (S-10). As a result, the photographer can recognize that there is a wide color gamut region by visually recognizing the LCD 21, and can also recognize at a glance which region in the image the region is.

その後、CPU19は、広色域記録制御部29を動作させる。広色域記録制御部29は、SDRAM16からRAWデータを読み出し、読み出したRAWデータと、RAWデータを撮像した撮像部11の色再現特性情報や撮影情報等の各種パラメータとを含む、例えばTIFF/EP規格に準拠したファイル形式のRAW画像データ(第2フォーマット形式のファイル)を生成して、生成したRAW画像データを、メディアコントローラ17を制御してカードメモリ20に保存する(S−11)。なお、色再現特性情報は、現像処理で適用される現像用色変換マトリックスを求めるための付帯情報であって、デジタルカメラ10の製造時に予め生成され、不揮発性メモリ31に格納されている。   Thereafter, the CPU 19 operates the wide color gamut recording control unit 29. The wide color gamut recording control unit 29 reads RAW data from the SDRAM 16 and includes the read RAW data and various parameters such as color reproduction characteristic information and shooting information of the imaging unit 11 that has captured the RAW data, for example, TIFF / EP. RAW image data in a file format conforming to the standard (second format file) is generated, and the generated RAW image data is stored in the card memory 20 by controlling the media controller 17 (S-11). The color reproduction characteristic information is supplementary information for obtaining a development color conversion matrix to be applied in the development process, and is generated in advance when the digital camera 10 is manufactured and stored in the nonvolatile memory 31.

CPU19は、広色域領域が存在しない場合、画像処理部14、及び圧縮伸長処理部15を制御して、sYCC色空間に変換したデータに対して画像処理を施し(S−12)、その後、画像処理済みのsYCC色空間のデータに対してsRGB色空間にあわせてエンコードしてJPEG画像データ(第1フォーマット形式のファイル)を作成し(S−13)、作成したJPEG画像データをファイルとしてカードメモリ20に保存する(S−14)。この時、保存されるデータは、広色域領域が存在しない画像データであるので、過度な色域圧縮が行われていないため、より自然な画像で保存することができる。   When the wide color gamut area does not exist, the CPU 19 controls the image processing unit 14 and the compression / decompression processing unit 15 to perform image processing on the data converted into the sYCC color space (S-12). The image-processed sYCC color space data is encoded according to the sRGB color space to create JPEG image data (first format file) (S-13), and the created JPEG image data is used as a file as a card. Save in the memory 20 (S-14). At this time, since the data to be stored is image data having no wide color gamut region, excessive color gamut compression is not performed, and therefore, a more natural image can be stored.

上記実施形態では、広色域領域が存在する場合、表示用画像に重ねて広色域領域が存在することを表す黒色42を点滅表示しているが、点滅させなくてもよい。また、これの代わりに、図7に示すように、カメラボディの背面に広色域判定用のLED45を設けて、広色域領域が存在すると判定することに応答してLED45を一定時間点灯してもよい。なお、LED45の代わりにランプでもよい。また、カメラボディにスピーカーを設けて音で一定時間報知してもよい。   In the above embodiment, when there is a wide color gamut area, the black color 42 indicating that the wide color gamut area exists is displayed blinking on the display image, but it may not be blinked. Alternatively, as shown in FIG. 7, an LED 45 for wide color gamut determination is provided on the back of the camera body, and the LED 45 is turned on for a certain time in response to determining that the wide color gamut region exists. May be. A lamp may be used instead of the LED 45. Further, a speaker may be provided on the camera body to notify for a certain period of time with sound.

上記各実施形態では、広色域領域が存在する場合、デモザイク前のRAWデータを保存しているが、このRAWデータに加えて、sRGB、又はadobeRGB色空間に色域圧縮した画像データを一緒に保存してもよい。このとき関連付けして保存してもよい。   In each of the above embodiments, when there is a wide color gamut region, the raw data before demosaicing is saved, but in addition to this raw data, image data that has been color gamut compressed in the sRGB or adobeRGB color space is added together. May be saved. At this time, they may be stored in association with each other.

上記各実施形態では、広色域領域が存在しない場合、JPEG形式の圧縮ファイルで保存しているが、他の圧縮形式のファイルでもよい。また、圧縮でないファイル形式で保存してもよい。   In each of the above-described embodiments, when there is no wide color gamut area, it is saved as a JPEG format compressed file, but other compressed format files may be used. Further, it may be saved in a file format that is not compressed.

上記各実施形態では、広色域領域が存在する場合、デモザイク前のRAWデータをそのままファイル保存しているが、現像後のRGBデータをRAWデータとして保存してもよい。この場合には、カメラに固有のICC(International Color Consortium)プロファイルを予め不揮発性メモリに記憶しておき、ICCプロファイル読み出して、そのプロファイルを埋め込んだ画像データで保存するのが望ましい。   In each of the above embodiments, when a wide color gamut area exists, the raw data before demosaicing is saved as a file as it is, but the developed RGB data may be saved as raw data. In this case, it is desirable to store an ICC (International Color Consortium) profile unique to the camera in a non-volatile memory in advance, read the ICC profile, and save the image data with the embedded profile.

上記各実施形態では、デジタルカメラとして説明しているが、本発明ではデジタルカメラに限らず、ビデオカメラ、カメラ付き携帯電話、及びスマートフォン等の撮像装置に使用することができる。   In each of the above embodiments, the digital camera is described. However, the present invention is not limited to the digital camera, and can be used for an imaging apparatus such as a video camera, a mobile phone with a camera, and a smartphone.

また、本発明は、撮像装置に限らず、例えばカメラ付きのコンピュータに適用しても良い。この場合、本発明を実現するソフトウェアのプログラムコードを記録した記憶媒体をコンピュータに供給し、そのコンピュータが記憶媒体に格納されたプログラムコードを読み出して実行することによって本発明が達成される。この場合、記憶媒体から読み出されたプログラムコード自体が本発明を実現することになり、そのプログラムコードを記憶した記憶媒体は本発明を構成することになる。   Further, the present invention is not limited to the imaging apparatus, and may be applied to a computer with a camera, for example. In this case, the present invention is achieved by supplying a computer with a storage medium storing software program codes for implementing the present invention, and reading and executing the program codes stored in the storage medium. In this case, the program code itself read from the storage medium realizes the present invention, and the storage medium storing the program code constitutes the present invention.

また、カメラ付きでなくてもよい。この場合、画像取得部の代わりに、外部からRAW画像データを入力する入力部と、RAW画像データに含まれる撮影情報等から撮像装置、例えばデジタルカメラの種類を読み出して撮像センサの分光感度特性を特定する特定部と、を備える。なお、予めカメラの種類毎の撮像センサの分光感度特性の情報を予めソフトウェアに記録しておき、インストールすることでハードディスク等の記憶部に前記情報が記憶され、キーボード等の操作部からカメラの種類を指定することで前記情報を参照して撮像センサの分光感度特性を特定するようにしてもよい。   Moreover, it does not need to have a camera. In this case, instead of the image acquisition unit, the input unit for inputting RAW image data from the outside, and the type of the image pickup apparatus, for example, a digital camera, is read from the shooting information included in the RAW image data and the spectral sensitivity characteristics of the image pickup sensor are obtained. A specifying unit for specifying. Note that the information on the spectral sensitivity characteristics of the image sensor for each camera type is recorded in advance in the software, and the information is stored in a storage unit such as a hard disk by installing it. The spectral sensitivity characteristic of the image sensor may be specified by referring to the information.

また、プログラムコードを供給するための記憶媒体としては、例えば、フロッピー(登録商標)ディスク、ハードディスク、光磁気ディスク、CD−ROM、CD−R、CD−RW、DVD−ROM、DVD−RAM、DVD−RW、DVD+RW、磁気テープ、不揮発性のメモリカード、ROM等を用いることができる。さらには、プログラムコードを、ネットワークを介してダウンロードしても良い。   Examples of the storage medium for supplying the program code include a floppy (registered trademark) disk, a hard disk, a magneto-optical disk, a CD-ROM, a CD-R, a CD-RW, a DVD-ROM, a DVD-RAM, and a DVD. -RW, DVD + RW, magnetic tape, nonvolatile memory card, ROM, etc. can be used. Furthermore, the program code may be downloaded via a network.

11 撮像部
21 LCD
26 色域変換部
27 色域内外判定部
28 広色域表示制御部
29 広色域記録制御部
45 LED
11 Imaging unit 21 LCD
26 Color gamut conversion unit 27 Color gamut inside / outside determination unit 28 Wide color gamut display control unit 29 Wide color gamut recording control unit 45 LED

Claims (7)

sRGB色空間の色域よりも広い色域を有する色空間における画像データの色域が、前記sRGB色空間の色域内にすべて存在するか一部だけが存在するかを判定する判定部と、
前記判定部が前記sRGB色空間の色域内にすべて存在すると判定した場合に、前記画像データを前記sRGB色空間にあわせてエンコードしてJPEG画像データを生成する処理を行い、前記判定部が前記sRGB色空間の色域内に一部だけが存在すると判定した場合に、前記画像データに前記sRGB色空間にあわせたエンコードとは異なる処理を行って第1の画像データを生成する処理と、前記画像データを前記sRGB色空間の第2の画像データに変換する処理とを行う画像処理部と
を備える撮像装置。
a determination unit that determines whether the color gamut of the image data in a color space having a color gamut wider than the color gamut of the sRGB color space is all or only part of the color gamut of the sRGB color space;
When the determination unit determines that the image data is all within the color gamut of the sRGB color space, the image data is encoded in accordance with the sRGB color space to generate JPEG image data. when it is determined that only a portion is present in the color gamut of the color space, the encoding tailored to the sRGB color space to the image data and generating a first image data by performing different processing, the image data An image processing unit that performs a process of converting the image data into second image data in the sRGB color space .
請求項1に記載の撮像装置において、
前記判定部が前記sRGB色空間の色域内にすべて存在すると判定した場合に、生成された前記JPEG画像データを記憶媒体に記憶し、前記判定部が前記sRGB色空間の色域内に一部だけが存在する判定した場合に、生成された前記第1の画像データと前記第2の画像データとを記憶媒体に記憶する記憶部を備える撮像装置。
The imaging device according to claim 1,
When the determination unit determines that all are in the color gamut of the sRGB color space, the generated JPEG image data is stored in a storage medium, and the determination unit is only partially in the color gamut of the sRGB color space. An imaging apparatus including a storage unit that stores the generated first image data and the second image data in a storage medium when it is determined that they exist.
請求項1または請求項2に記載の撮像装置において、
前記第1の画像データはRAWデータである撮像装置。
In the imaging device according to claim 1 or 2,
The imaging apparatus, wherein the first image data is RAW data.
sRGB色空間の色域よりも広い色域を有する色空間における画像データの色域が、前記sRGB色空間の色域内にすべて存在するか一部だけが存在するかを判定する判定ステップと、
前記判定ステップにおいて前記sRGB色空間の色域内にすべて存在すると判定した場合に、前記画像データを前記sRGB色空間にあわせてエンコードしてJPEG画像データを生成する処理を行い、前記判定ステップにおいて前記sRGB色空間の色域内に一部だけが存在すると判定した場合に、前記画像データに前記sRGB色空間にあわせたエンコードとは異なる処理を行って第1の画像データを生成する処理と、前記画像データを前記sRGB色空間の第2の画像データに変換する処理とを行う画像処理ステップと
をコンピュータに実行させるためのプログラム。
a determination step of determining whether the color gamut of the image data in a color space having a color gamut wider than the color gamut of the sRGB color space is all or only part of the color gamut of the sRGB color space;
In the determination step, when it is determined that the image data is all within the color gamut of the sRGB color space, the image data is encoded according to the sRGB color space to generate JPEG image data. In the determination step, the sRGB color space is generated. when it is determined that only a portion is present in the color gamut of the color space, the encoding tailored to the sRGB color space to the image data and generating a first image data by performing different processing, the image data A program for causing a computer to execute an image processing step of performing a process of converting the image data into the second image data in the sRGB color space .
請求項4に記載のプログラムにおいて、
前記判定ステップにおいて前記sRGB色空間の色域内にすべて存在すると判定した場合に、生成された前記JPEG画像データを記憶媒体に記憶し、前記判定ステップにおいて前記sRGB色空間の色域内に一部だけが存在する判定した場合に、生成された前記第1の画像データと前記第2の画像データとを記憶媒体に記憶する記憶ステップをさらに実行させるためのプログラム。
The program according to claim 4, wherein
When it is determined in the determination step that the image data is all within the color gamut of the sRGB color space, the generated JPEG image data is stored in a storage medium, and in the determination step, only a part of the color gamut of the sRGB color space is stored. A program for further executing a storing step of storing the generated first image data and the second image data in a storage medium when it is determined that they exist.
請求項4または請求項5に記載のプログラムにおいて、
前記第1の画像データはRAWデータであるプログラム。
In the program according to claim 4 or 5,
The program in which the first image data is RAW data.
請求項4ないし6のいずれか1項に記載のプログラムを実行させるためのプログラムを記録したコンピュータ読み取り可能な記録媒体。   A computer-readable recording medium on which a program for executing the program according to claim 4 is recorded.
JP2011150870A 2011-07-07 2011-07-07 Imaging apparatus, program, and recording medium Active JP5957813B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011150870A JP5957813B2 (en) 2011-07-07 2011-07-07 Imaging apparatus, program, and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011150870A JP5957813B2 (en) 2011-07-07 2011-07-07 Imaging apparatus, program, and recording medium

Publications (2)

Publication Number Publication Date
JP2013021397A JP2013021397A (en) 2013-01-31
JP5957813B2 true JP5957813B2 (en) 2016-07-27

Family

ID=47692432

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011150870A Active JP5957813B2 (en) 2011-07-07 2011-07-07 Imaging apparatus, program, and recording medium

Country Status (1)

Country Link
JP (1) JP5957813B2 (en)

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004080737A (en) * 2002-06-21 2004-03-11 Canon Inc Imaging device, imaging method, computer program and computer readable recording medium
JP2004200902A (en) * 2002-12-17 2004-07-15 Nikon Corp Image processor, electronic camera, and image processing program
JP2004236159A (en) * 2003-01-31 2004-08-19 Canon Inc Image recording method
JP2006203572A (en) * 2005-01-20 2006-08-03 Konica Minolta Photo Imaging Inc Image processing method and image processing system
JP2007097032A (en) * 2005-09-30 2007-04-12 Seiko Epson Corp Image display apparatus, image display method and digital camera
JP5092524B2 (en) * 2007-04-20 2012-12-05 株式会社ニコン Image processing method, image processing program, image processing apparatus, camera
JP2011044803A (en) * 2009-08-19 2011-03-03 Canon Inc Image sensing device and method for controlling the same

Also Published As

Publication number Publication date
JP2013021397A (en) 2013-01-31

Similar Documents

Publication Publication Date Title
JP6335563B2 (en) Imaging apparatus and control method thereof
JP5014099B2 (en) Imaging apparatus and control method thereof
US11750934B2 (en) Imaging apparatus, image processing apparatus, control method of these, and storage medium
US11336836B2 (en) Image capturing apparatus and control method thereof
JP5553230B2 (en) Imaging apparatus and imaging processing method
JP2007067815A (en) Image processing device and image processing method
US11438523B2 (en) Display control apparatus, display control method, and a non-transitory computer-readable medium
US10009588B2 (en) Image processing apparatus and imaging apparatus
JP7020832B2 (en) Digital video camera, video output device, video output method, program
JP4852830B2 (en) Image processing apparatus and image processing method
JP3800102B2 (en) Digital camera
US9413974B2 (en) Information processing apparatus, image sensing apparatus, control method, and recording medium for conversion processing
JP2007097032A (en) Image display apparatus, image display method and digital camera
JP5957813B2 (en) Imaging apparatus, program, and recording medium
JP2010124114A (en) Digital camera and image data processing program
JP2011160183A (en) Imaging device and method
JP2008172653A (en) Imaging apparatus, image management method, and program
US20210385375A1 (en) Image capturing apparatus, method of controlling the same, and non-transitory computer-readable storage medium
JP2009021733A (en) Image file generating device, and image file generation program
JP2007081478A (en) Printing system, imaging apparatus and control method thereof, printer, program and storage medium
JP2005033503A (en) Output image adjustment of image data
JP5028360B2 (en) Face detection method and apparatus, and photographing apparatus
JP2007251746A (en) Camera, and image processing program
KR20070021084A (en) Photographing apparatus
JP2006136026A (en) Reproduction apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140704

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20150518

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150526

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150727

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20151215

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160215

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160606

R150 Certificate of patent or registration of utility model

Ref document number: 5957813

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

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