JP2014230128A - Computer program and digital camera - Google Patents

Computer program and digital camera Download PDF

Info

Publication number
JP2014230128A
JP2014230128A JP2013108796A JP2013108796A JP2014230128A JP 2014230128 A JP2014230128 A JP 2014230128A JP 2013108796 A JP2013108796 A JP 2013108796A JP 2013108796 A JP2013108796 A JP 2013108796A JP 2014230128 A JP2014230128 A JP 2014230128A
Authority
JP
Japan
Prior art keywords
data
image
image data
achromatic color
achromatic
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
JP2013108796A
Other languages
Japanese (ja)
Inventor
佐野 央
Hiroshi Sano
央 佐野
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 JP2013108796A priority Critical patent/JP2014230128A/en
Publication of JP2014230128A publication Critical patent/JP2014230128A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To perform adjustment so as to keep color balance in all the areas of an image and to allow identified color to be converted into achromatic color concerning predetermined image conversion.SOLUTION: A program allows a computer to perform the steps for: inputting object image data; inputting achromatic color correspondence information indicating correspondence relation between achromatic output image data being achromatic color among the output image data of image conversion processing and the input image data of image conversion processing corresponding to the achromatic output image data; performing image conversion processing with respect to reference data to be achromatic reference in the object image data and acquiring post-conversion reference data; acquiring achromatic input image data corresponding to the achromatic image data corresponding to the post-conversion reference data on the basis of the achromatic correspondence information concerning the achromatic image data; calculating a data ratio between the reference data and the achromatic input image data for each channel; and performing image conversion processing by multiplying the object image data by each data ratio.

Description

本発明は、コンピュータプログラムおよびデジタルカメラに関する。   The present invention relates to a computer program and a digital camera.

現在、フィルムを使用して撮像を行う従来のフィルムカメラにかわり、撮像素子を使用して画像記録を行うデジタルカメラが普及している。しかしながら、従来のフィルムによる画像再現の見えが望まれる場合もある。これに応えるため、例えば、デジタルカメラで撮影された画像に対して画像変換を施すことにより、フィルム調の画像を得ることができる画像処理装置が提案されている(特許文献1参照)。この画像処理装置は、デジタルカメラで撮影され、ベイヤー補間処理がされた画像に対し、ホワイトバランス変換、色変換マトリクス、階調変換の処理を順に施し、フィルム調の画像を得る。この画像処理装置では、ホワイトバランス変換、色変換マトリクス、階調変換の各処理のパラメータをフィルム調の再現になるように最適化して処理を施すようになっている。   At present, digital cameras that perform image recording using an imaging element are widely used in place of conventional film cameras that perform imaging using film. However, there are cases where the appearance of image reproduction by a conventional film is desired. In order to respond to this, for example, an image processing apparatus that can obtain a film-like image by performing image conversion on an image photographed by a digital camera has been proposed (see Patent Document 1). This image processing apparatus sequentially performs white balance conversion, color conversion matrix, and gradation conversion processing on an image photographed by a digital camera and subjected to Bayer interpolation processing to obtain a film-tone image. In this image processing apparatus, processing is performed by optimizing the parameters of each process of white balance conversion, color conversion matrix, and gradation conversion so as to reproduce film tone.

特開2001−346218号公報JP 2001-346218 A

上記従来技術よりも、さらに高精度にフィルム調の再現を行いたい場合、フィルムカメラでホワイトバランス変換処理を行わないのと同様に、ホワイトバランス変換処理を行わずにフィルム調への画像変換を行うことが考えられる。この場合、変換前の画像内において無彩色の部分が変換後に無彩色になるとは限らない。そのため、画像内のある特定領域を無彩色に調整したい場合に、変換前の画像においてその特定領域を無彩色に調整したとしても、フィルム調への画像変換後には無彩色になるとは限らない。しかしながら、このような変換前に無彩色の部分が変換後に無彩色になるとは限らない画像変換においても、たとえばユーザにより指定された領域の色など特定された色を無彩色に調整できるようにすることが望まれている。   When it is desired to reproduce film tone with higher accuracy than the above-mentioned conventional technology, image conversion to film tone is performed without performing white balance conversion processing in the same manner as when white balance conversion processing is not performed with a film camera. It is possible. In this case, the achromatic portion in the image before conversion does not always become an achromatic color after conversion. For this reason, when it is desired to adjust a specific area in an image to an achromatic color, even if the specific area is adjusted to an achromatic color in an image before conversion, it does not always become an achromatic color after image conversion to film tone. However, even in image conversion in which an achromatic color portion does not always become an achromatic color after conversion, it is possible to adjust a specified color such as a color of an area designated by the user to an achromatic color. It is hoped that.

(1)請求項1に記載の発明によるコンピュータプログラムは、所定の画像変換処理をコンピュータに実行させるためのコンピュータプログラムであって、画像変換処理の対象となる対象画像データを入力する対象画像入力ステップと、画像変換処理の出力画像データのうち無彩色である無彩色出力画像データとこれに対応する画像変換処理の入力画像データとの対応関係を示す無彩色対応情報を入力する無彩色対応情報入力ステップと、対象画像データにおける無彩色の基準となる基準データに対して、画像変換処理を実行し、変換後基準データを取得する変換後基準データ取得ステップと、変換後基準データに対応する無彩色画像データについて、これに対応する無彩色入力画像データを、無彩色対応情報に基づいて取得する無彩色入力画像取得ステップと、基準データと無彩色入力画像データとのチャンネルごとのデータ比を算出するデータ比算出ステップと、データ比を対象画像データに乗算し、さらに画像変換処理を実行する画像変換ステップと、をコンピュータに実行させることを特徴とする。
(2)請求項3に記載の発明によるコンピュータプログラムは、所定の画像変換処理をコンピュータに実行させるためのコンピュータプログラムであって、画像変換処理の対象となる対象画像データを入力する対象画像入力ステップと、対象画像データにおける無彩色の基準となる基準データを入力する基準入力ステップと、基準データに対して画像変換処理を実行して変換後基準データを取得する変換後基準データ取得ステップと、複数の仮想的な入力画像データに対して逐次画像変換処理を実行することにより、画像変換処理の出力画像データのうち無彩色である無彩色出力画像データとこれに対応する画像変換処理の入力画像データとの対応関係を示す無彩色対応情報を求め、変換後基準データに対応する無彩色画像データについて、これに対応する無彩色入力画像データを、無彩色対応情報に基づいて取得する無彩色入力画像取得ステップと、基準データと無彩色入力画像データとのチャンネルごとのデータ比を算出するデータ比算出ステップと、データ比を対象画像データに乗算し、さらに画像変換処理を実行する画像変換ステップと、をコンピュータに実行させることを特徴とする。
(3)請求項6に記載の発明によるコンピュータプログラムは、所定の画像変換処理において、画像変換処理の出力画像データのうち無彩色である無彩色出力画像データとこれに対応する画像変換処理の入力画像データとの対応関係を示す無彩色対応情報を作成する無彩色対応情報作成ステップと、無彩色対応情報を記録媒体に記録する記録ステップと、をコンピュータに実行させることを特徴とする。
(4)請求項9に記載の発明によるデジタルカメラは、被写体像を撮像する撮像手段と、所定の画像変換処理において、画像変換処理の出力画像データのうち無彩色である無彩色出力画像データとこれに対応する画像変換処理の入力画像データとの対応関係を示す無彩色対応情報を記憶する記憶手段と、撮像手段により撮像された撮像画像データのホワイトバランス調整データを取得するホワイトバランス調整データ取得手段と、ホワイトバランス調整データに基づいて、撮像画像データにおける無彩色の基準となる基準データを算出する基準データ算出手段と、基準データに対して画像変換処理を実行して変換後基準データを取得する変換後基準データ取得手段と、変換後基準データに対応する無彩色画像データについて、これに対応する無彩色入力画像データを、無彩色対応情報に基づいて取得する無彩色入力画像取得手段と、基準データと無彩色入力画像データとのチャンネルごとのデータ比を算出するデータ比算出手段と、データ比を撮像画像データに乗算し、さらに画像変換処理を実行する画像変換手段と、を備えることを特徴とする。
(5)請求項10に記載の発明によるデジタルカメラは、被写体像を撮像する撮像手段と、所定の画像変換処理において、画像変換処理の出力画像データのうち無彩色である無彩色出力画像データとこれに対応する画像変換処理の入力画像データとの対応関係を示す無彩色対応情報を記憶する記憶手段と、撮像手段により撮像された撮像画像データのホワイトバランス調整データを取得するホワイトバランス調整データ取得手段と、ホワイトバランス調整データに基づいて、撮像画像データにおける無彩色の基準となる基準データを算出する基準データ算出手段と、基準データに対して画像変換処理を実行して変換後基準データを取得する変換後基準データ取得手段と、変換後基準データに対応する無彩色画像データについて、これに対応する無彩色入力画像データを、無彩色対応情報に基づいて取得する無彩色入力画像取得手段と、基準データと無彩色入力画像データとのチャンネルごとのデータ比を算出するデータ比算出手段と、データ比を撮像画像データと共に記録媒体に記録する記録制御手段と、を備えることを特徴とする。
(1) A computer program according to the first aspect of the present invention is a computer program for causing a computer to execute a predetermined image conversion process, and a target image input step of inputting target image data to be subjected to the image conversion process Achromatic color correspondence information input for inputting the achromatic color correspondence information indicating the correspondence between the achromatic color output image data of the achromatic color in the output image data of the image conversion processing and the input image data of the corresponding image conversion processing A converted reference data acquisition step for performing image conversion processing on the reference data serving as the reference for the achromatic color in the target image data and acquiring the converted reference data; and the achromatic color corresponding to the converted reference data Achromatic color input that acquires achromatic input image data corresponding to the image data based on the achromatic color correspondence information An image acquisition step; a data ratio calculation step for calculating a data ratio for each channel between the reference data and the achromatic input image data; an image conversion step for multiplying the target image data by the data ratio and further executing an image conversion process; Are executed by a computer.
(2) A computer program according to a third aspect of the invention is a computer program for causing a computer to execute a predetermined image conversion process, and a target image input step for inputting target image data to be subjected to the image conversion process A reference input step for inputting reference data serving as a reference for an achromatic color in the target image data, a post-conversion reference data acquisition step for executing image conversion processing on the reference data to obtain post-conversion reference data, By executing sequential image conversion processing on the virtual input image data, achromatic color output image data of the output image data of the image conversion processing and input image data of the image conversion processing corresponding thereto Achromatic color correspondence information indicating the correspondence relationship with the achromatic color image data corresponding to the converted reference data, An achromatic color input image acquisition step for acquiring the achromatic color input image data corresponding thereto based on the achromatic color correspondence information, and a data ratio calculation step for calculating a data ratio for each channel between the reference data and the achromatic color input image data And an image conversion step of multiplying the target image data by the data ratio and further executing an image conversion process.
(3) According to a sixth aspect of the present invention, there is provided a computer program according to a sixth aspect of the present invention, in a predetermined image conversion process, an achromatic color output image data which is an achromatic color among output image data of the image conversion process, and an input of an image conversion process corresponding to the achromatic color An achromatic color correspondence information creating step for creating achromatic color correspondence information indicating a correspondence relationship with image data and a recording step for recording the achromatic color correspondence information on a recording medium are executed by a computer.
(4) A digital camera according to a ninth aspect of the present invention includes an imaging unit that captures a subject image, and achromatic output image data that is an achromatic color among output image data of the image conversion process in a predetermined image conversion process. Storage means for storing achromatic color correspondence information indicating a correspondence relationship with input image data of image conversion processing corresponding to this, and white balance adjustment data acquisition for acquiring white balance adjustment data of captured image data captured by the imaging means Means, reference data calculation means for calculating reference data for achromatic colors in the captured image data based on the white balance adjustment data, and obtaining converted reference data by executing image conversion processing on the reference data Corresponding to the converted reference data acquisition means and the achromatic image data corresponding to the converted reference data Achromatic input image acquisition means for acquiring chromatic color input image data based on achromatic color correspondence information, data ratio calculation means for calculating a data ratio for each channel between reference data and achromatic color input image data, and data ratio And image conversion means for multiplying the captured image data and executing image conversion processing.
(5) A digital camera according to a tenth aspect of the present invention includes an imaging unit that captures a subject image, and achromatic output image data that is an achromatic color among output image data of the image conversion process in a predetermined image conversion process. Storage means for storing achromatic color correspondence information indicating a correspondence relationship with input image data of image conversion processing corresponding to this, and white balance adjustment data acquisition for acquiring white balance adjustment data of captured image data captured by the imaging means Means, reference data calculation means for calculating reference data for achromatic colors in the captured image data based on the white balance adjustment data, and obtaining converted reference data by executing image conversion processing on the reference data The post-conversion reference data acquisition means and the achromatic image data corresponding to the post-conversion reference data correspond to this. Achromatic color input image acquisition means for acquiring achromatic color input image data based on achromatic color correspondence information, a data ratio calculation means for calculating a data ratio for each channel between reference data and achromatic color input image data, and data ratio Recording control means for recording the image data together with the captured image data on a recording medium.

所定の画像変換において、画像の全領域の色のバランスを保ち、且つ、特定された色が無彩色に変換されるように調整することができる。   In the predetermined image conversion, it is possible to adjust so that the color balance of the entire area of the image is maintained and the specified color is converted to an achromatic color.

画像処理システムの構成例を説明する図である。1 is a diagram illustrating a configuration example of an image processing system. パーソナルコンピュータの構成例を説明するブロック図である。And FIG. 11 is a block diagram illustrating a configuration example of a personal computer. デジタルカメラの構成例を説明するブロック図である。It is a block diagram explaining the structural example of a digital camera. (A)はシアン層の分光濃度特性を説明する図であり、(B)はマゼンタ層の分光濃度特性を説明する図であり、(C)はイエロー層の分光濃度特性を説明する図である。(A) is a figure explaining the spectral density characteristic of a cyan layer, (B) is a figure explaining the spectral density characteristic of a magenta layer, (C) is a figure explaining the spectral density characteristic of a yellow layer. . LUT作成処理の流れを説明するフローチャートである。It is a flowchart explaining the flow of a LUT creation process. 画像処理の流れを説明するフローチャートである。It is a flowchart explaining the flow of an image process. 変形例8のPCの構成例を説明する図である。It is a figure explaining the structural example of PC of the modification 8. FIG.

以下、図面を参照して本発明を実施するための一実施の形態について説明する。図1は、本発明の一実施の形態に係る画像処理システムの構成を例示する図である。パーソナルコンピュータ(PC)1は、接続インターフェースを介して、デジタルカメラ2やディスプレイ3、入力装置4などの外部装置と接続される。   Hereinafter, an embodiment for carrying out the present invention will be described with reference to the drawings. FIG. 1 is a diagram illustrating the configuration of an image processing system according to an embodiment of the present invention. A personal computer (PC) 1 is connected to an external device such as a digital camera 2, a display 3, and an input device 4 via a connection interface.

本実施形態においてPC1は、デジタルカメラ2から取得した撮影画像データを、ポジフィルムによって再現される画像に近い見えの画像(すなわちポジフィルム調の画像)に変換する画像処理を行って、ディスプレイ3に出力する。また、この画像処理において、PC1は、ユーザにより、マウスやキーボードなどの入力装置4を介して、画像内の任意の領域が指定された場合に、当該指定された領域を無彩色に調整する処理を行うようになっている。このような画像処理について、詳しくは後述する。   In the present embodiment, the PC 1 performs image processing for converting photographed image data acquired from the digital camera 2 into an image that looks close to an image reproduced by a positive film (that is, a positive film-like image), and displays it on the display 3. Output. In this image processing, when the user designates an arbitrary region in the image via the input device 4 such as a mouse or a keyboard, the PC 1 adjusts the designated region to an achromatic color. Is supposed to do. Details of such image processing will be described later.

−PCの構成−
図2は、PC1の構成例を説明するブロック図である。PC1は、PC制御装置10と、接続インターフェース11と、ハードディスクなどの記録媒体12と、を備える。PC1は、接続インターフェース11を介して、デジタルカメラ2やディスプレイ3、入力装置4などの外部装置と接続される。接続インターフェース11は、たとえば、有線接続を行うUSBインターフェースや、無線接続を行う無線LANモジュールを含む。PC制御装置10は、CPU、メモリ、およびその他の周辺回路により構成され、メモリが記憶するプログラムを実行することによってPC1の動作を制御する。
-PC configuration-
FIG. 2 is a block diagram illustrating a configuration example of the PC 1. The PC 1 includes a PC control device 10, a connection interface 11, and a recording medium 12 such as a hard disk. The PC 1 is connected to an external device such as the digital camera 2, the display 3, and the input device 4 via the connection interface 11. The connection interface 11 includes, for example, a USB interface that performs wired connection and a wireless LAN module that performs wireless connection. The PC control device 10 includes a CPU, a memory, and other peripheral circuits, and controls the operation of the PC 1 by executing a program stored in the memory.

PC制御装置10は、接続インターフェース11を介してデジタルカメラ2に装着されたメモリカード26(図3)から、デジタルカメラ2による撮影画像を取り込む。なお、PC制御装置10は、デジタルカメラ2による撮影画像が記録されたメモリカードがPC1に装着されている場合には、不図示のカードインターフェースを介してデジタルカメラ2による撮影画像を取り込んでもよい。   The PC control device 10 captures an image captured by the digital camera 2 from the memory card 26 (FIG. 3) attached to the digital camera 2 via the connection interface 11. Note that the PC control device 10 may capture an image captured by the digital camera 2 via a card interface (not shown) when a memory card on which an image captured by the digital camera 2 is recorded is attached to the PC 1.

−デジタルカメラの構成−
図3は、デジタルカメラ2の構成例を説明するブロック図である。デジタルカメラ2は、撮像光学系20と、撮像素子21と、カメラ制御装置22と、接続インターフェース23と、カードインターフェース24と、記録媒体25とを備える。カードインターフェース24には、着脱可能な記録媒体であるメモリカード26が装着される。
-Digital camera configuration-
FIG. 3 is a block diagram illustrating a configuration example of the digital camera 2. The digital camera 2 includes an imaging optical system 20, an imaging device 21, a camera control device 22, a connection interface 23, a card interface 24, and a recording medium 25. A memory card 26 that is a removable recording medium is attached to the card interface 24.

デジタルカメラ2は、接続インターフェース23を介して、PC1(図1)などの外部装置と接続される。接続インターフェース23は、たとえば、有線接続を行うUSBインターフェースや、無線接続を行う無線LANモジュールを含む。   The digital camera 2 is connected to an external device such as the PC 1 (FIG. 1) via the connection interface 23. The connection interface 23 includes, for example, a USB interface that performs wired connection and a wireless LAN module that performs wireless connection.

カメラ制御装置22は、CPU、メモリ、およびその他の周辺回路により構成され、メモリが記憶するプログラムを実行することによってデジタルカメラ2の動作を制御する。   The camera control device 22 includes a CPU, a memory, and other peripheral circuits, and controls the operation of the digital camera 2 by executing a program stored in the memory.

撮像光学系20は、ズームレンズやフォーカシングレンズを含む複数のレンズ群で構成され、被写体像を撮像素子21の受光面に結像させる。なお、図3を簡単にするため、撮像光学系20を単レンズとして図示している。   The imaging optical system 20 includes a plurality of lens groups including a zoom lens and a focusing lens, and forms a subject image on the light receiving surface of the imaging element 21. In order to simplify FIG. 3, the imaging optical system 20 is illustrated as a single lens.

撮像素子21は、例えばCMOSイメージセンサなどによって構成される。撮像素子21は、被写体像を光電変換して画像信号を生成する。撮像素子21の受光面には、周知のモザイクカラーフィルターが設けられている。モザイクカラーフィルターは、赤(R)色、青(B)色、および緑(G)色のいずれかの光を通過させる原色フィルタが画素位置に対応してモザイク状の配列(たとえば、ベイヤー配列)で構成された色分解フィルタである。撮像素子21は、このようなカラーフィルターを通して被写体像を撮像することにより、光の3原色ごとのカラー画像信号を出力する。   The image sensor 21 is configured by, for example, a CMOS image sensor. The image sensor 21 photoelectrically converts the subject image to generate an image signal. A well-known mosaic color filter is provided on the light receiving surface of the image sensor 21. The mosaic color filter has a mosaic arrangement (for example, a Bayer arrangement) in which primary color filters that pass light of any one of red (R), blue (B), and green (G) correspond to pixel positions. Is a color separation filter constituted by The imaging element 21 outputs a color image signal for each of the three primary colors of light by capturing a subject image through such a color filter.

撮像素子21で生成された画像信号は、不図示のA/D変換部でデジタル信号に変換され、RAWデータとしてカメラ制御装置22に出力される。カメラ制御装置22は、このRAWデータにたとえばベイヤー補間処理のみを施し、カードインターフェース24を介してメモリカード26に記録する。   An image signal generated by the image sensor 21 is converted into a digital signal by an A / D conversion unit (not shown), and is output to the camera control device 22 as RAW data. The camera control device 22 performs, for example, only Bayer interpolation processing on the RAW data and records it on the memory card 26 via the card interface 24.

−ポジフィルム調の画像に変換する画像処理−
本実施形態において、ポジフィルム調の画像に変換する画像処理は、たとえば、RAWデータ(RGB値)を入力するとポジフィルム調の画像へ変換してデバイスインディペンデントな色空間のL*a*b*値として出力する3次元LUT(Look Up Table)(以下、ポジフィルム変換LUTと呼ぶ)を用いて行われる。PC制御装置10は、ポジフィルム変換LUTを予め作成して、PC2の記録媒体12に記録しておく。
-Image processing to convert to positive film tone image-
In the present embodiment, image processing for conversion into a positive film tone image is performed by, for example, inputting RAW data (RGB values) into a positive film tone image and converting it into a device independent color space L * a * b. * This is performed using a three-dimensional LUT (Look Up Table) (hereinafter referred to as a positive film conversion LUT) output as a value. The PC control device 10 creates a positive film conversion LUT in advance and records it on the recording medium 12 of the PC 2.

ここで、ポジフィルム変換LUTを作成する処理について説明する。PC制御装置10は、まず、ポジフィルム変換LUTの入力値を生成する。入力値は、例えば、デジタルカメラ2の撮像素子21から出力されるRGB値各々のデータレンジを、複数段階で等間隔に区切った格子点とする。例えば、RGBそれぞれ18段階に区切ると、(R,G,B)=(R[0],G[0],B[0])、(R[0],G[0],B[1])、・・・(R[0],G[0],B[17])、(R[0],G[1],B[0])、(R[0],G[1],B[1])、・・・(R[0],G[1],B[17])、・・・(R[17],G[17],B[0])、(R[17],G[17],B[1])、・・・(R[17],G[17],B[17])というように、18×18×18個の入力値が生成される。たとえば、撮像素子21から出力されるRGB値がそれぞれ8bit(最大レベル255)である場合には、(R,G,B)=(0,0,0)に対して(R[0],G[0],B[0])が対応し、(R,G,B)=(255,255,255)に対して(R[17],G[17],B[17])が対応する。   Here, a process for creating a positive film conversion LUT will be described. The PC control device 10 first generates an input value for the positive film conversion LUT. The input value is, for example, a grid point obtained by dividing the data range of each of the RGB values output from the image sensor 21 of the digital camera 2 at equal intervals in a plurality of stages. For example, when each of RGB is divided into 18 stages, (R, G, B) = (R [0], G [0], B [0]), (R [0], G [0], B [1] ), ... (R [0], G [0], B [17]), (R [0], G [1], B [0]), (R [0], G [1], B [1]), ... (R [0], G [1], B [17]), ... (R [17], G [17], B [0]), (R [17 ], G [17], B [1]),... (R [17], G [17], B [17]), 18 × 18 × 18 input values are generated. For example, when the RGB values output from the image sensor 21 are each 8 bits (maximum level 255), (R [0], G) for (R, G, B) = (0, 0, 0). [0], B [0]), (R, G, B) = (255, 255, 255) corresponds to (R [17], G [17], B [17]) .

そして、PC制御装置10は、これら生成した18×18×18個の入力値について、それぞれに対応する出力値を求める。例えば、入力値(R[1],G[2],B[3])に対する出力値を求める場合、この入力値(R[1],G[2],B[3])に対して、ポジフィルム調の画像へ変換するための所定の演算処理を行うことにより、出力値(L[1],a[2],b[3])を算出する。 Then, the PC control device 10 obtains an output value corresponding to each of the generated 18 × 18 × 18 input values. For example, when calculating an output value for an input value (R [1], G [2], B [3]), for this input value (R [1], G [2], B [3]) Output values (L * [1], a * [2], b * [3]) are calculated by performing a predetermined calculation process for converting to a positive film tone image.

ここで、ポジフィルム調の画像へ変換するための演算処理について、具体的に説明する。まず、ポジフィルムの画像再現について考察する。ポジフィルムは、シアン色素の層と、マゼンタ色素の層と、イエロー色素の層と、ベース層とを有している。したがって、ポジフィルムの現像後の色は、大きく、シアン、マゼンタ、イエローの各色素の分光濃度特性に、ベースの分光濃度特性を加えた特性によって決定されると考えることができる。そのため、シアン層の分光濃度特性をDc(λ)、マゼンタ層の分光濃度特性をDm(λ)、イエロー層の分光濃度特性をDy(λ)、ベースの分光濃度特性をDb(λ)と表すと、ポジフィルムの総合的な分光濃度特性D(λ)は、次式(1)で表すことができる。
D(λ)=Dc(λ)+Dm(λ)+Dy(λ)+Db(λ) …(1)
Here, the calculation process for converting to a positive film tone image will be specifically described. First, image reproduction of positive film will be considered. The positive film has a cyan dye layer, a magenta dye layer, a yellow dye layer, and a base layer. Therefore, the color of the positive film after development is large and can be considered to be determined by the characteristics obtained by adding the spectral density characteristics of the base to the spectral density characteristics of the cyan, magenta, and yellow dyes. Therefore, the spectral density characteristic of the cyan layer is represented as Dc (λ), the spectral density characteristic of the magenta layer is represented as Dm (λ), the spectral density characteristic of the yellow layer is represented as Dy (λ), and the spectral density characteristic of the base is represented as Db (λ). The overall spectral density characteristic D (λ) of the positive film can be expressed by the following formula (1).
D (λ) = Dc (λ) + Dm (λ) + Dy (λ) + Db (λ) (1)

ベースの分光濃度特性Db(λ)は、どのような被写体を撮影しても常に一定の特性となる。一方、シアン層、マゼンタ層、イエロー層の分光濃度特性Dc(λ)、Dm(λ)、Dy(λ)は、被写体によって変化する部分であり、この部分で画像の色を主に構成している。例えば、撮影した被写体の色が、青の要素が強ければ、シアン層の分光濃度特性Dc(λ)が概ね大きい値になり、赤の要素が強ければ、マゼンタ層、イエロー層の分光濃度特性Dm(λ)、Dy(λ)が概ね大きい値になる。   The base spectral density characteristic Db (λ) is always constant regardless of what kind of subject is photographed. On the other hand, the spectral density characteristics Dc (λ), Dm (λ), and Dy (λ) of the cyan layer, magenta layer, and yellow layer are portions that vary depending on the subject, and this portion mainly constitutes the color of the image. Yes. For example, if the color of the photographed subject has a strong blue element, the spectral density characteristic Dc (λ) of the cyan layer has a large value, and if the red element is strong, the spectral density characteristic Dm of the magenta layer and the yellow layer. (λ) and Dy (λ) are generally large values.

したがって、一般にポジフィルムの現像後の色を考えるためには、シアン層、マゼンタ層、イエロー層の分光濃度特性Dc(λ)、Dm(λ)、Dy(λ)がそれぞれ、被写体の色の強さによってどのように変化するかを知ることが重要となる。これを知るためには、一つの色素のみ濃度が変化するようにポジフィルムを露光し、現像してチャートを作成し、これを分光測定すればよい。これにより、各色素の分光濃度特性を知ることができる。   Therefore, in general, in order to consider the developed color of a positive film, the spectral density characteristics Dc (λ), Dm (λ), and Dy (λ) of the cyan layer, magenta layer, and yellow layer are the strong colors of the subject. It is important to know how it changes. In order to know this, a positive film is exposed and developed so that the density of only one dye changes, a chart is created, and this is measured spectroscopically. Thereby, the spectral density characteristic of each pigment | dye can be known.

一例として、図4に、各色10段階の濃度でチャートを作成し、これを分光測定した結果を示す。図4(A)はシアンのチャートの分光測定結果を示し、図4(B)はマゼンタのチャートの分光測定結果を示し、図4(C)はイエローのチャートの分光測定結果を示す。シアン層では、シアンの補色である赤を吸収するため、赤の波長における濃度が高く(すなわち透過率が低く)なっている。マゼンタ層、イエロー層でも同様の原理である。なお、図4に示す結果は、概念を示すものであり、実測値ではない。また図4では、シアン層における各濃度の分光濃度特性をDc[1](λ)〜Dc[10](λ)とし、マゼンタ層における各濃度の分光濃度特性をDm[1](λ)〜Dm[10](λ)とし、イエロー層における各濃度の分光濃度特性をDy[1](λ)〜Dy[10](λ)としている。なお、[1]〜[10]は、図4で示す分光濃度特性の各曲線の番号(インデックス)を示し、値が大きいほど高い濃度に対応している。   As an example, FIG. 4 shows the result of spectroscopic measurement of a chart created with 10 levels of density for each color. 4A shows the spectroscopic measurement result of the cyan chart, FIG. 4B shows the spectroscopic measurement result of the magenta chart, and FIG. 4C shows the spectroscopic measurement result of the yellow chart. Since the cyan layer absorbs red, which is a complementary color of cyan, the density at the red wavelength is high (that is, the transmittance is low). The same principle applies to the magenta layer and the yellow layer. Note that the results shown in FIG. 4 are conceptual, not actual measurement values. In FIG. 4, the spectral density characteristics of each density in the cyan layer are Dc [1] (λ) to Dc [10] (λ), and the spectral density characteristics of each density in the magenta layer are Dm [1] (λ) ˜ Dm [10] (λ) is assumed, and spectral density characteristics of the respective densities in the yellow layer are Dy [1] (λ) to Dy [10] (λ). [1] to [10] indicate the numbers (indexes) of the curves of the spectral density characteristics shown in FIG. 4, and the larger the value, the higher the density.

ここで、シアン層の濃度を示す濃度パラメータCにおけるシアン層の分光濃度特性Dc(C,λ)を求める場合について考える。なお、濃度パラメータCは、ピーク濃度である波長λcでのシアン層の濃度値を示す。例えば、図4で示したDc[9](λ)における波長λcでの濃度値が1.8である(すなわち、Dc[9](λc)=1.8)とすると、濃度パラメータC=1.8における分光濃度特性Dc(1.8,λ)は、Dc[9](λ)そのものとなる。また例えば、図4で示したDc[10](λ)における波長λcでの濃度値が2.0である(Dc[10](λc)=2.0)とすると、濃度パラメータC=2.0における分光濃度特性Dc(2.0,λ)は、Dc[10](λ)そのものとなる。   Here, consider the case of obtaining the spectral density characteristic Dc (C, λ) of the cyan layer with the density parameter C indicating the density of the cyan layer. The density parameter C indicates the density value of the cyan layer at the wavelength λc that is the peak density. For example, assuming that the density value at the wavelength λc in Dc [9] (λ) shown in FIG. 4 is 1.8 (that is, Dc [9] (λc) = 1.8), the spectral density characteristic at the density parameter C = 1.8. Dc (1.8, λ) is Dc [9] (λ) itself. For example, if the density value at the wavelength λc in Dc [10] (λ) shown in FIG. 4 is 2.0 (Dc [10] (λc) = 2.0), the spectral density characteristic Dc at the density parameter C = 2.0. (2.0, λ) is Dc [10] (λ) itself.

また、濃度パラメータCが1.8<C<2.0(すなわち、Dc[9](λc)<C<Dc[10](λc))である場合には、Dc[9](λ)およびDc[10](λ)を用いて、濃度パラメータCにおける分光濃度特性Dc(C,λ)を近似的に求めることができる。例えば、濃度パラメータC=1.9における分光濃度特性Dc(1.9,λ)は、次式により近似的に求めることができる。
Dc(1.9,λ)= Dc[9](λ) + [(1.9−1.8)/(2.0−1.8)]・[Dc[10](λ)−Dc[9](λ)]
When the density parameter C is 1.8 <C <2.0 (that is, Dc [9] (λc) <C <Dc [10] (λc)), Dc [9] (λ) and Dc [10] Using (λ), the spectral density characteristic Dc (C, λ) in the density parameter C can be obtained approximately. For example, the spectral density characteristic Dc (1.9, λ) at the density parameter C = 1.9 can be obtained approximately by the following equation.
Dc (1.9, λ) = Dc [9] (λ) + [(1.9−1.8) / (2.0−1.8)] · [Dc [10] (λ) −Dc [9] (λ)]

このように、任意の濃度パラメータCにおけるシアン層の分光濃度特性Dc(C,λ)は、予め測定した分光濃度特性Dc[1](λ)〜Dc[10](λ)の中から、Dc[i](λc)<C<Dc[i+1](λc)となるようなDc[i](λ)およびDc[i+1](λ)を見つけ、このDc[i](λ)およびDc[i+1](λ)を用いて、次式(2)によって近似的に求めることができる。なお、次式(2)において、Dc[i](λc)=C1とし、Dc[i+1](λc)=C2とする。
Dc(C,λ)=Dc[i](λ)+[(C-C1)/(C2-C1)]・[Dc[i+1](λ)−Dc[i](λ)] …(2)
As described above, the spectral density characteristic Dc (C, λ) of the cyan layer at an arbitrary density parameter C is calculated as Dc from the spectral density characteristics Dc [1] (λ) to Dc [10] (λ) measured in advance. Find Dc [i] (λ) and Dc [i + 1] (λ) such that [i] (λc) <C <Dc [i + 1] (λc), and this Dc [i] (λ) And Dc [i + 1] (λ) can be approximately obtained by the following equation (2). In the following equation (2), Dc [i] (λc) = C1 and Dc [i + 1] (λc) = C2.
Dc (C, λ) = Dc [i] (λ) + [(C-C1) / (C2-C1)] · [Dc [i + 1] (λ) −Dc [i] (λ)] ( 2)

同様にして、マゼンタ層の濃度を示す濃度パラメータMにおけるマゼンタ層の分光濃度特性Dm(M,λ)も、予め測定したDm[1](λ)〜Dm[10](λ)を用いて近似的に求めることができる。なお、濃度パラメータMは、ピーク濃度である波長λmでのマゼンタ層の濃度値を示す。また、同様にして、イエロー層の濃度を示す濃度パラメータYにおけるイエロー層の分光濃度特性Dy(Y,λ)も、予め測定したDy[1](λ)〜Dy[10](λ)を用いて近似的に求めることができる。なお、濃度パラメータYは、ピーク濃度である波長λyでのイエロー層の濃度値を示す。   Similarly, the spectral density characteristic Dm (M, λ) of the magenta layer at the density parameter M indicating the density of the magenta layer is also approximated using Dm [1] (λ) to Dm [10] (λ) measured in advance. Can be obtained. The density parameter M indicates the density value of the magenta layer at the wavelength λm that is the peak density. Similarly, Dy [1] (λ) to Dy [10] (λ) measured in advance are also used for the spectral density characteristic Dy (Y, λ) of the yellow layer in the density parameter Y indicating the density of the yellow layer. Can be obtained approximately. The density parameter Y indicates the density value of the yellow layer at the wavelength λy that is the peak density.

このように、各色(シアン、マゼンタ、イエロー)の濃度を示す濃度パラメータC、M、Yから、各濃度パラメータに対応する各色素の分光濃度特性Dc(λ)、Dm(λ)、Dy(λ)を求めることができ、上述した式(1)を用いてポジフィルムの総合的な分光濃度特性D(λ)を求めることができる。   Thus, from the density parameters C, M, and Y indicating the density of each color (cyan, magenta, yellow), the spectral density characteristics Dc (λ), Dm (λ), and Dy (λ ) And the total spectral density characteristic D (λ) of the positive film can be obtained using the above-described equation (1).

そして、観察光源を決定すれば、観察光源の分光特性I(λ)とポジフィルムの総合的な分光濃度特性D(λ)とに基づいて、見えを示す三刺激値X、Y、Zを次式(3)〜(5)により算出することができる。なお、次式(3)〜(5)において、x(λ)、y(λ)、z(λ)は等色関数を示す。
X=∫{I(λ)・10(-D(λ))・x(λ)}dλ …(3)
Y=∫{I(λ)・10(-D(λ))・y(λ)}dλ …(4)
Z=∫{I(λ)・10(-D(λ))・z(λ)}dλ …(5)
Then, once the observation light source is determined, the tristimulus values X, Y, and Z indicating the appearance are expressed based on the spectral characteristic I (λ) of the observation light source and the overall spectral density characteristic D (λ) of the positive film. It is computable by Formula (3)-(5). In the following formulas (3) to (5), x (λ), y (λ), and z (λ) indicate color matching functions.
X = ∫ {I (λ) · 10 (−D (λ)) · x (λ)} dλ (3)
Y = ∫ {I (λ) · 10 (−D (λ)) · y (λ)} dλ (4)
Z = ∫ {I (λ) · 10 (−D (λ)) · z (λ)} dλ (5)

したがってデジタルカメラ2で撮影された画像をポジフィルム調に変換するためには、デジタルカメラ2で撮影された画像データを、各色(シアン、マゼンタ、イエロー)の濃度を示す濃度パラメータC、M、Yに変換できればよい。各色の濃度パラメータC、M、Yが求まると、各色の分光濃度特性Dc(λ)、Dm(λ)、Dy(λ)が求まり、ポジフィルムの総合的な分光濃度特性D(λ)が求まるので、三刺激値X、Y、Zが求まる。そして、この三刺激値X、Y、Zを公知の変換式を用いてLab値に変換することができる。このようにすれば、ポジフィルムの物理的特性を考慮した上で、デジタルカメラ2で撮影された画像データから、ポジフィルム調の画像を再現することができる。 Therefore, in order to convert an image photographed by the digital camera 2 into a positive film tone, the image data photographed by the digital camera 2 is converted into density parameters C, M, Y indicating the density of each color (cyan, magenta, yellow). It only has to be converted to. When the density parameters C, M, and Y of each color are obtained, the spectral density characteristics Dc (λ), Dm (λ), and Dy (λ) of each color are obtained, and the total spectral density characteristic D (λ) of the positive film is obtained. Therefore, tristimulus values X, Y, and Z are obtained. The tristimulus values X, Y, and Z can be converted into L * a * b * values using a known conversion formula. In this way, a positive film-like image can be reproduced from the image data photographed by the digital camera 2 in consideration of the physical characteristics of the positive film.

そこで、PC制御装置10は、デジタルカメラ2による撮影画像データ(RAWデータ)を、各色(シアン、マゼンタ、イエロー)の濃度パラメータC、M、Yに変換するための変換マトリックスを予め作成しておく。なお、本実施形態で用いるRAWデータは、ベイヤー補間処理のみが施された画像データであるとし、ホワイトバランス変換、色マトリックス変換、階調変換などの画像処理が施されていない画像データであるとする。   Therefore, the PC control apparatus 10 creates in advance a conversion matrix for converting image data (RAW data) taken by the digital camera 2 into density parameters C, M, and Y for each color (cyan, magenta, yellow). . Note that the RAW data used in the present embodiment is image data that has undergone only Bayer interpolation processing, and is image data that has not undergone image processing such as white balance conversion, color matrix conversion, and gradation conversion. To do.

また、RAWデータとは、光量に対して線形性を有する(リニアである)画像データである。一方、濃度とは、光の反射率(または透過率)の逆数に対して、10を底とする対数変換を行った値である。これをふまえ本実施形態では、次式(6)〜(8)により、RAWデータのRGB値に対して10を底とする対数変換を行うことで、RGB値を濃度と同様の対数空間に変換する。なお、次式(6)〜(8)において、この変換後の値を、R10、G10、B10とする。
R10=Log10R …(6)
G10=Log10G …(7)
B10=Log10B …(8)
The RAW data is image data having linearity with respect to the amount of light (linear). On the other hand, the density is a value obtained by performing logarithmic transformation with 10 as the base with respect to the reciprocal of light reflectance (or transmittance). Based on this, in the present embodiment, the RGB values are converted into a logarithmic space similar to the density by performing logarithmic conversion with 10 as the base of the RGB values of the RAW data by the following equations (6) to (8). To do. In the following formulas (6) to (8), the values after this conversion are R 10 , G 10 , and B 10 .
R 10 = Log 10 R (6)
G 10 = Log 10 G (7)
B 10 = Log 10 B (8)

そして、この変換後の値R10、G10、B10を、各色(シアン、マゼンタ、イエロー)を濃度パラメータC、M、Yに変換するための濃度変換マトリックスを作成する。具体的に、R10、G10、B10から、C、M、Yへの変換は、次式(9)により行われる。次式(9)において、係数m1〜m9は、変換マトリックスのパラメータであり、係数n1〜n3はオフセット量である。なお、オフセット量は、値の正規化に応じた量である。

Figure 2014230128
Then, a density conversion matrix for converting each color (cyan, magenta, yellow) into density parameters C, M, Y using the converted values R 10 , G 10 , B 10 is created. Specifically, the conversion from R 10 , G 10 , B 10 to C, M, Y is performed by the following equation (9). In the following equation (9), coefficients m1 to m9 are transformation matrix parameters, and coefficients n1 to n3 are offset amounts. The offset amount is an amount corresponding to the value normalization.
Figure 2014230128

この係数m1〜m9およびn1〜n3の最適化は、複数の色パッチからなる色票に対して、ポジフィルムを使用した撮影とデジタルカメラ2を使用した撮影との両方を行い、現像後のポジフィルムの分光測色データとデジタルカメラ2による撮影画像データとの両データに基づいて行うことができる。   The optimization of the coefficients m1 to m9 and n1 to n3 is performed by performing both shooting using a positive film and shooting using the digital camera 2 on a color chart composed of a plurality of color patches. This can be performed based on both data of spectral colorimetry data of the film and image data taken by the digital camera 2.

まず、ポジフィルムを使用した撮影について考えてみる。上述したように、ポジフィルムの総合的な分光濃度特性D(λ)は、式(1)で表すことができ、各色の濃度パラメータC、M、Yによって決定される。ここで、色票を、ポジフィルムを使用して撮影し、現像したときの、ある色パッチの部分を分光濃度計で測色した結果をDp(λ)とする。すると、Dp(λ)とD(λ)が最も近くなるようなC、M、Yを求めることで、当該色パッチにおけるC、M、Yを求めることができる。これは、例えば、Dp(λ)とD(λ)の差分をFとすると、次式(10)によって算出されるFが最も小さくなるようなC、M、Yの値として求めることができる。
F=Σ|D(λ)−Dp(λ)| …(10)
First, consider shooting using positive film. As described above, the total spectral density characteristic D (λ) of the positive film can be expressed by Expression (1), and is determined by the density parameters C, M, and Y of each color. Here, when a color chart is photographed using a positive film and developed, a result obtained by measuring the color patch portion with a spectral densitometer is defined as Dp (λ). Then, C, M, and Y in the color patch can be obtained by obtaining C, M, and Y that Dp (λ) and D (λ) are closest to each other. For example, if the difference between Dp (λ) and D (λ) is F, it can be obtained as C, M, and Y values that minimize F calculated by the following equation (10).
F = Σ | D (λ) −Dp (λ) | (10)

またデジタルカメラ2を使用した撮影については、色票をデジタルカメラ2で撮影したときの、ある色パッチの部分のRAWデータ(RGB)を取得して、式(6)〜(8)により対数変換をすることで、当該色パッチにおけるR10、G10、B10を求めることができる。 For shooting using the digital camera 2, RAW data (RGB) of a certain color patch when the color chart is shot with the digital camera 2 is acquired, and logarithmic conversion is performed using equations (6) to (8). By doing, R 10 , G 10 , and B 10 in the color patch can be obtained.

このようにして、一つの色パッチに対し、C、M、YとR10、G10、B10との組を得ることができる。そして、複数の色パッチを撮影することにより、複数のC、M、YとR10、G10、B10との組を得ることができる。したがって、この複数のC、M、YとR10、G10、B10との組に基づいて、式(9)の係数m1〜m9およびn1〜n3を求めることができる。具体的には、色パッチをデジタルカメラ2で撮影して対数変換したR10、G10、B10を式(9)によって変換したC、M、Yと、色パッチをポジフィルムで撮影し測色して求めたC、M、Yとの差異が小さくなるような係数m1〜m9およびn1〜n3を、最小二乗法などを用いて最適化する。 In this way, a set of C, M, Y and R 10 , G 10 , B 10 can be obtained for one color patch. Then, by photographing a plurality of color patches, a set of a plurality of C, M, Y and R 10 , G 10 , B 10 can be obtained. Therefore, the coefficients m1 to m9 and n1 to n3 in the equation (9) can be obtained based on the combination of the plurality of C, M, Y and R 10 , G 10 , B 10 . Specifically, R 10 , G 10 , B 10 obtained by taking a color patch with a digital camera 2 and logarithmically converted by Equation (9), and color patches are taken with a positive film and measured. The coefficients m1 to m9 and n1 to n3 that reduce the difference from C, M, and Y obtained by coloring are optimized using a least square method or the like.

このようにして作成した濃度変換マトリックス(式(9))と、複数段階の濃度パラメータにおける、ポジフィルムの各色素の分光濃度特性Dc(λ)、Dm(λ)、Dy(λ)およびベースの分光濃度特性Db(λ)(以下、分光濃度特性情報と呼ぶ)とを用いて、ポジフィルム調の画像に変換するための演算処理を行うことができる。   The density conversion matrix (Equation (9)) created in this way and the spectral density characteristics Dc (λ), Dm (λ), Dy (λ) and the base of each dye of the positive film in a plurality of density parameters. Using the spectral density characteristic Db (λ) (hereinafter referred to as spectral density characteristic information), it is possible to perform arithmetic processing for conversion into a positive film tone image.

具体的に、PC制御装置10は、入力値(R,G,B)に対する出力値(L,a,b)を求める際、入力値に対して式(6)〜(8)を用いて対数変換を施す。次にPC制御装置10は、対数変換した値(R10,G10,B10)を、式(9)により、濃度パラメータC、M、Yに変換する。次にPC制御装置10は、濃度パラメータC、M、Yと分光濃度特性情報とを用いて、式(2)により、各色の分光濃度特性Dc(λ)、Dm(λ)、Dy(λ)を算出する。次にPC制御装置10は、算出した各色の分光濃度特性Dc(λ)、Dm(λ)、Dy(λ)を式(1)に代入して、ポジフィルムでの総合的な分光濃度特性D(λ)を算出する。次にPC制御装置10は、算出した分光濃度特性D(λ)を用いて、式(3)〜(5)により三刺激値X、Y、Zを算出する。なお、三刺激値X、Y、Zを算出する際に設定する観察光源は、例えばD50などの昼光とすることができる。また、ポジフィルムをプロジェクタによってスクリーンに投影して鑑賞する場合を想定して、観察光源をプロジェクタの光源としてもよいし、プロジェクタの光源とスクリーンの分光反射率とを加味したものであってもよい。そしてPC制御装置10は、三刺激値X、Y、Zを、公知の変換式を用いてLab値に変換する。この結果、入力値(R,G,B)に対する出力値(L,a,b)が求まる。 Specifically, when the PC control device 10 obtains the output values (L * , a * , b * ) for the input values (R, G, B), the equations (6) to (8) are calculated for the input values. To perform logarithmic conversion. Next, the PC control device 10 converts the logarithmically converted values (R 10 , G 10 , B 10 ) into density parameters C, M, and Y using equation (9). Next, the PC control device 10 uses the density parameters C, M, and Y and the spectral density characteristic information, and the spectral density characteristics Dc (λ), Dm (λ), and Dy (λ) of each color according to equation (2). Is calculated. Next, the PC control device 10 substitutes the calculated spectral density characteristics Dc (λ), Dm (λ), and Dy (λ) of each color into the formula (1), thereby obtaining the total spectral density characteristics D on the positive film. Calculate (λ). Next, the PC control apparatus 10 calculates the tristimulus values X, Y, and Z by using the calculated spectral density characteristic D (λ) according to the equations (3) to (5). Incidentally, observation light source to be set in calculating tristimulus values X, Y, and Z may be, for example, a daylight such as D 50. In addition, assuming that a positive film is projected onto a screen by a projector for viewing, the observation light source may be a light source for the projector, or may be a combination of the light source of the projector and the spectral reflectance of the screen. . Then, the PC control device 10 converts the tristimulus values X, Y, and Z into L * a * b * values using a known conversion formula. As a result, output values (L * , a * , b * ) for the input values (R, G, B) are obtained.

PC制御装置10は、全ての入力値(R,G,B)に対して、以上のような演算処理を逐次行って、全ての入力値(R,G,B)に対する出力値(L,a,b)をそれぞれ求める。PC制御装置10は、各入力値(R,G,B)とこれに対する出力値(L,a,b)の組(入出力データセット)により、ポジフィルム変換LUTを作成することができる。 The PC control device 10 sequentially performs the above arithmetic processing on all input values (R, G, B), and outputs values (L * , G, B) for all input values (R, G, B). a * and b * ) are obtained. The PC control device 10 can create a positive film conversion LUT from a set (input / output data set) of each input value (R, G, B) and output value (L * , a * , b * ) corresponding thereto. it can.

なお、上述した演算処理では、入力値(RGB値)の比が1:1:1(無彩色)である場合に、必ずしも出力値(L値)においてa=b=0(無彩色)になるとは限らない。 In the arithmetic processing described above, when the ratio of the input values (RGB values) is 1: 1: 1 (achromatic color), a * = b * = in the output value (L * a * b * value). It is not always 0 (achromatic).

−従来のホワイトバランス調整について
ところで、RAWデータは、デジタルカメラにおいて、ホワイトバランス変換、マトリックス変換、階調変換などの画像処理が施されていない画像処理データである。そのため、例えば、PC上でアプリケーションソフトを用いて、RAWデータに対するホワイトバランス変換が行われる。このような場合、例えば、画像内の幾何的な領域をユーザが指定することにより、ホワイトバランス変換を行う方法が知られている。この方法では、ユーザが無彩色として再現を望む幾何的な領域、例えば、衣服の白い領域や看板の白い領域を指定し、指定した領域が無彩色になるよう画像変換が行われる。具体的には、指定領域の画像データの平均値をチャンネル(RGB)ごとに算出し、その平均値のチャンネル間のデータ比からホワイトバランスゲイン(gainR,gainB)を算出し、画像データに適用する。
-Conventional White Balance Adjustment By the way, RAW data is image processing data that has not been subjected to image processing such as white balance conversion, matrix conversion, and gradation conversion in a digital camera. Therefore, for example, white balance conversion is performed on RAW data using application software on a PC. In such a case, for example, a method of performing white balance conversion by designating a geometric area in an image by a user is known. In this method, a geometric area that the user desires to reproduce as an achromatic color, for example, a white area of clothes or a white area of a signboard is specified, and image conversion is performed so that the specified area becomes an achromatic color. Specifically, the average value of the image data in the designated area is calculated for each channel (RGB), and the white balance gain (gainR, gainB) is calculated from the data ratio between the channels of the average value and applied to the image data. .

このようなホワイトバランス変換処理の一例を示す。ここでは、画像変換は、ベイヤー補間、ホワイトバランス変換、マトリックス変換、γ変換の順に行われるものとする。例えば、ユーザにより指定された領域のベイヤー補間処理後のRGBチャンネルの平均値が(R,G,B)=(100,200,160)であるとする。この場合、RGBチャンネルの平均値において、Rチャンネルに対するGチャンネルのデータ比gainR、およびBチャンネルに対するGチャンネルのデータ比gainBは、それぞれ、gainR=200/100=2.00、gainB=200/160=1.25と算出される。ベイヤー補間後の画像データにおいて、Rチャンネル、Bチャンネルの画像データにそれぞれgainR、gainBを乗算することにより、ホワイトバランス変換が行われる(Gチャンネルには何も乗算されないとする)。このホワイトバランス変換により、上記RGBチャンネルの平均値(R,G,B)=(100,200,160)は、R:100×2.00=200、G:200、B:160×1.25=200と変換される。その後のマトリックス変換、γ変換では、RGBチャンネルのデータ比が1:1:1である画像データはその比を保持するように変換される。このように変換することにより、最終的に、ユーザにより指定された領域の画像データをRGBチャンネルのデータ比を1:1:1として、無彩色にすることができる。   An example of such white balance conversion processing will be shown. Here, it is assumed that the image conversion is performed in the order of Bayer interpolation, white balance conversion, matrix conversion, and γ conversion. For example, it is assumed that the average value of RGB channels after Bayer interpolation processing in an area designated by the user is (R, G, B) = (100, 200, 160). In this case, in the average value of the RGB channels, the data ratio gainR of the G channel to the R channel and the data ratio gainB of the G channel to the B channel are gainR = 200/100 = 2.00 and gainB = 200/160 = 1.25, respectively. Calculated. In the image data after Bayer interpolation, white balance conversion is performed by multiplying the R channel and B channel image data by gainR and gainB, respectively (assuming nothing is multiplied on the G channel). By this white balance conversion, the average values (R, G, B) of the above RGB channels (100, 200, 160) are converted to R: 100 x 2.00 = 200, G: 200, B: 160 x 1.25 = 200 Is done. In the subsequent matrix conversion and γ conversion, image data having a RGB channel data ratio of 1: 1: 1 is converted so as to maintain the ratio. By converting in this way, the image data of the area specified by the user can be finally rendered achromatic with the RGB channel data ratio of 1: 1: 1.

ここで、上述したポジフィルム調への画像変換処理のように、ホワイトバランスゲインを用いずに画像変換を行う際において、その画像再現特性を概ね保持しながら、ユーザにより指定された領域を無彩色に調整する処理を実現することを考えてみる。例えば、上述したように、画像データに対し、ユーザにより指定された領域のRGBチャンネルごとの平均値からRGBチャンネル間のデータ比を算出してホワイトバランス変換を行ったとする。この場合、その後の画像データに対してポジフィルム調への画像変換を行ったとしても、ユーザにより指定された領域が最終的に無彩色になるとは限らない。従来の画像変換では、ホワイトバランス変換処理後の、マトリックス変換、およびγ変換において、RGBチャンネル間のデータ比が1:1:1である画像データはその比を保持するように変換するため、最終的にユーザにより指定された領域の画像データを無彩色とすることができる。しかし、ポジフィルム調への画像変換処理では、RGBチャンネル間のデータ比が1:1:1である画像データがその比を保持するように変換されるとは限らない。そのため、ホワイトバランス変換処理を行った後に、ポジフィルム調への画像変換処理を行っても、ユーザにより指定された領域が無彩色になるとは限らない。   Here, when performing image conversion without using the white balance gain as in the above-described image conversion processing to positive film tone, the region designated by the user is achromatic while generally retaining the image reproduction characteristics. Let's consider implementing a process that adjusts to For example, as described above, it is assumed that the white balance conversion is performed on the image data by calculating the data ratio between the RGB channels from the average value for each RGB channel in the region designated by the user. In this case, even if the subsequent image data is converted into a positive film tone, the area designated by the user is not always achromatic. In the conventional image conversion, in the matrix conversion and the γ conversion after the white balance conversion process, the image data having a data ratio between the RGB channels of 1: 1: 1 is converted so as to maintain the ratio. In particular, the image data of the area designated by the user can be achromatic. However, in the image conversion process to the positive film tone, the image data in which the data ratio between the RGB channels is 1: 1: 1 is not always converted so as to maintain the ratio. For this reason, even if the image conversion processing to positive film tone is performed after the white balance conversion processing, the region designated by the user is not necessarily achromatic.

そこで、本実施形態では、上述した点をふまえ、ポジフィルム調への画像変換処理を行う際に、ユーザにより指定された領域が無彩色に調整できるように構成されている。次に、この無彩色に調整するための処理について詳しく説明する。   Therefore, in the present embodiment, the area designated by the user can be adjusted to an achromatic color when performing image conversion processing to positive film tone based on the above-described points. Next, the process for adjusting the achromatic color will be described in detail.

−LUT作成処理−
まず、図5に示すフローチャートを用いて、本実施形態で用いるLUTを作成するLUT作成処理の流れについて説明する。なお、このLUT作成処理をPC制御装置10に実行させるためのコンピュータプログラム(LUT作成プログラム)は、例えば、PC制御装置10内のメモリ(不図示)に記憶されているとする。
-LUT creation process-
First, the flow of LUT creation processing for creating an LUT used in the present embodiment will be described using the flowchart shown in FIG. It is assumed that a computer program (LUT creation program) for causing the PC control device 10 to execute this LUT creation processing is stored in, for example, a memory (not shown) in the PC control device 10.

ステップS1において、PC制御装置10は、上述したようにポジフィルム変換LUTを作成する。ここで作成するポジフィルム変換LUTの入力値は、撮像素子21から出力されるRGB値各々のデータレンジを、それぞれ18段階で等間隔に区切った格子点とする。したがって、ここで作成するポジフィルム変換LUTは、18×18×18個の入力値と出力値の組を有する。   In step S1, the PC control device 10 creates a positive film conversion LUT as described above. The input value of the positive film conversion LUT created here is a grid point obtained by dividing the data range of each of the RGB values output from the image sensor 21 at equal intervals in 18 steps. Therefore, the positive film conversion LUT created here has a set of 18 × 18 × 18 input values and output values.

ステップS2において、PC制御装置10は、複数の仮想的な入力値、たとえば(R,G,B)=(0,0,0)〜(255,255,255)までの入力値(すなわち256×256×256個の入力値)、のそれぞれについて、上述したポジフィルム調の画像へ変換するための演算処理を逐次行い、出力値Lab値を求める。なお、ここではデジタルカメラ2の撮像素子21から出力されるRGB値がそれぞれ8bit(最大レベル255)であるものとする。この結果、PC制御装置10は、256×256×256個の入力値(RGB値)と出力値(Lab値)の組を求める。すなわち、ステップS2では、PC制御装置10は、ステップS1よりも高精細のポジフィルム変換LUT(高精細LUTと呼ぶ)を作成する。 In step S2, the PC control apparatus 10 determines a plurality of virtual input values, for example, input values from (R, G, B) = (0, 0, 0) to (255, 255, 255) (that is, 256 × 256 × 256 input values), the arithmetic processing for converting into the above-described positive film tone image is sequentially performed to obtain the output value L * a * b * value. Here, it is assumed that the RGB values output from the image sensor 21 of the digital camera 2 are each 8 bits (maximum level 255). As a result, the PC control apparatus 10 obtains a set of 256 × 256 × 256 input values (RGB values) and output values (L * a * b * values). That is, in step S2, the PC control device 10 creates a positive film conversion LUT (referred to as a high-definition LUT) with higher definition than in step S1.

ステップS1で作成するポジフィルム変換LUTは、記録媒体12に記憶されるので、データ容量を節約するため、RGBのデータレンジを等間隔で区切って入力値の個数を減らしている。一方、ステップS2で作成する高精細LUTは、後述するステップS3の無彩色LUTの作成に利用される(記録媒体12への記憶は行わない)ので、無彩色LUTの精度を高めるよう、入力値の個数をステップS1よりも増やしている。なお、ステップS1およびS2において、入力値の個数は上述した数に限らない。   Since the positive film conversion LUT created in step S1 is stored in the recording medium 12, the number of input values is reduced by dividing the RGB data range at equal intervals in order to save data capacity. On the other hand, since the high-definition LUT created in step S2 is used for creating an achromatic color LUT in step S3 described later (not stored in the recording medium 12), the input value is set to increase the accuracy of the achromatic color LUT. Is increased from step S1. In steps S1 and S2, the number of input values is not limited to the number described above.

ステップS3において、PC制御装置10は、ステップS2で作成した高精細LUTの入力値(RGB値)と出力値(Lab値)の組のうち、(L,a,b)が(iL,0,0)に最も近い(すなわち最も無彩色に近い)組を抽出する。また、iLは、0〜100まで1ステップずつ変化させるものである。すなわちPC制御装置100は、iL=0〜100までの101個のiLのそれぞれについて、Lab値が最も無彩色に近い、入力値(RGB値)と出力値(Lab値)との組を抽出する。そして、PC制御装置10は、各iLとこれに対して抽出された入力値(RGB値)との組(すなわち101個の組)により、無彩色の調整に用いるLUT(無彩色LUTと呼ぶ)を作成する。 In step S3, the PC control device 10 selects (L * , a * , b) out of a set of input values (RGB values) and output values (L * a * b * values) of the high-definition LUT created in step S2. * ) A pair that is closest to (iL, 0, 0) (ie, closest to an achromatic color) is extracted. IL is changed step by step from 0 to 100. In other words, the PC control apparatus 100 determines the input value (RGB value) and the output value (L * a * ) with the L * a * b * value closest to an achromatic color for each of 101 iLs with iL = 0 to 100 . b) * Value) and a pair are extracted. Then, the PC control apparatus 10 uses a set (namely, 101 sets) of each iL and the input values (RGB values) extracted from the iL to use an LUT (referred to as an achromatic color LUT) used for achromatic color adjustment. Create

ステップS4において、PC制御装置10は、ステップS1で作成したポジフィルム変換LUTとステップS3で作成した無彩色LUTとを同一ファイルに含めて記録媒体12に記録する。   In step S4, the PC control device 10 records the positive film conversion LUT created in step S1 and the achromatic color LUT created in step S3 in the same file and records them on the recording medium 12.

−画像処理−
次に、図6に示すフローチャートを用いて、ポジフィルム調への画像変換および無彩色の調整を行う画像処理の流れについて説明する。なお、この画像処理をPC制御装置10に実行させるためのコンピュータプログラム(画像処理プログラム)は、例えば、PC制御装置10内のメモリ(不図示)に記憶されているとする。
-Image processing-
Next, the flow of image processing for performing image conversion to positive film tone and achromatic color adjustment will be described using the flowchart shown in FIG. It is assumed that a computer program (image processing program) for causing the PC control device 10 to execute this image processing is stored in, for example, a memory (not shown) in the PC control device 10.

ステップS11において、PC制御装置10は、記録媒体12において同一ファイルに記録されているポジフィルム変換LUTと無彩色LUTとを入力する。   In step S11, the PC control apparatus 10 inputs the positive film conversion LUT and the achromatic color LUT recorded in the same file on the recording medium 12.

ステップS12において、PC制御装置10は、デジタルカメラ2により撮影されたRAWデータを入力する。   In step S <b> 12, the PC control device 10 inputs RAW data captured by the digital camera 2.

ステップS13において、PC制御装置10は、ステップS12で入力したRAWデータ(入力画像データ)に対して、ポジフィルム変換LUTを用いて画像変換を行い、この画像変換後の画像データをディスプレイ3に表示する。なお、この画像変換では、RAWデータを(RGB値)を、ポジフィルム変換LUTを用いてLab値へ変換し、さらに、この変換後のLab値を、ディスプレイ3に依存する色空間(RGB値)に変換する。PC制御装置10は、LabからディスプレイRGBへの変換を、例えば、ディスプレイ3に依存しない色空間Labと、ディスプレイ3に依存する色空間RGBとの関係が記述されたカラープロファイルに基づいて行う。これにより、ディスプレイ3には、入力画像(RAWデータ)がポジフィルム調の画像に変換されて表示される。 In step S13, the PC control device 10 performs image conversion on the RAW data (input image data) input in step S12 using a positive film conversion LUT, and displays the image data after the image conversion on the display 3. To do. In this image conversion, RAW data (RGB values) are converted to L * a * b * values using a positive film conversion LUT, and the converted L * a * b * values are displayed on the display. 3 is converted into a color space (RGB value) that depends on 3. The PC control device 10 describes the relationship between the color space L * a * b * that does not depend on the display 3 and the color space RGB that depends on the display 3 for conversion from L * a * b * to the display RGB, for example. Based on the specified color profile. As a result, the input image (RAW data) is converted into a positive film tone image and displayed on the display 3.

ステップS14において、PC制御装置10は、ユーザにより、無彩色に変換する領域が指定されたか否かを判定する。ユーザは、ディスプレイ3に表示された画像を確認し、この画像内において無彩色で再現されることが望ましい領域がある場合、その領域を、入力装置4を介して指定する。PC制御装置10は、ユーザにより無彩色に変換する領域が指定されるまでステップS14の判定処理を繰り返し、当該領域が指定されるとステップS14を肯定判定してステップS15に進む。   In step S <b> 14, the PC control device 10 determines whether or not an area to be converted to an achromatic color is designated by the user. The user confirms the image displayed on the display 3, and if there is a region that is desired to be reproduced with an achromatic color in the image, the user designates the region via the input device 4. The PC control device 10 repeats the determination process of step S14 until the user designates an area to be converted to an achromatic color. When the area is designated, the determination in step S14 is affirmative and the process proceeds to step S15.

ステップS15において、PC制御装置10は、ステップS14で指定された領域に含まれる画素のRAWデータにおける各チャンネル(RGB)の平均値を算出する。ここで算出した平均値を(Ra,Ga,Ba)とする。本画像処理では、この平均値(Ra,Ga,Ba)を無彩色とすべきRGBデータ(無彩色の基準となる基準データ)とし、この(Ra,Ga,Ba)がポジフィルム調への画像変換後に無彩色となるように処理が行われる。   In step S15, the PC control apparatus 10 calculates the average value of each channel (RGB) in the RAW data of the pixels included in the region specified in step S14. The average value calculated here is (Ra, Ga, Ba). In this image processing, this average value (Ra, Ga, Ba) is used as RGB data (reference data that serves as a reference for the achromatic color) that should be achromatic, and this (Ra, Ga, Ba) is an image for a positive film tone. Processing is performed so that an achromatic color is obtained after conversion.

ステップS16において、PC制御装置10は、ステップS15で算出した平均値(Ra,Ga,Ba)を、ポジフィルム変換LUTを用いてLab値へ変換する。ここで変換されたLab値を(L 0,a 0,b 0)とする。 In step S16, the PC control apparatus 10 converts the average values (Ra, Ga, Ba) calculated in step S15 into L * a * b * values using a positive film conversion LUT. The L * a * b * value converted here is (L * 0 , a * 0 , b * 0 ).

ステップS17において、PC制御装置10は、無彩色LUTを参照して、ステップS16で求めたLab値と同じ明度である(すなわちiL=L 0である)iLとRGB値の組を探索する。探索された組のRGB値を(Rs,Gs,Bs)とする。すなわち、ステップS17では、上記指定された領域のRAWデータにおける平均値(RGB値)をポジフィルム変換LUTにより変換したLab値と明度が同じであり且つ無彩色であるLab値について、これに対応するRGB値を無彩色LUTに基づいて求める。 In step S17, the PC control device 10 refers to the achromatic color LUT and has the same brightness as the L * a * b * value obtained in step S16 (that is, iL = L * 0 ). Search for a pair. Let the RGB value of the searched set be (Rs, Gs, Bs). That is, in step S17, the L * a * b * value obtained by converting the average value (RGB value) in the RAW data of the designated area by the positive film conversion LUT has the same brightness and is achromatic L * a For the * b * value, the corresponding RGB value is obtained based on the achromatic LUT.

ステップS18において、PC制御装置10は、ステップS15で算出した上記指定された領域のRAWデータにおけるRGB平均値(Ra,Ga,Ba)に対する、ステップ17で無彩色LUTに基づいて算出したRGB値(Rs,Gs,Bs)のチャンネルごとのデータ比(GainR,GainG,GainB)を、次式(11)〜(13)より算出する。
GainR = Rs/Ra …(11)
GainG = Gs/Ga …(12)
GainB = Bs/Ba …(13)
In step S18, the PC control device 10 calculates the RGB value calculated based on the achromatic color LUT in step 17 with respect to the RGB average value (Ra, Ga, Ba) in the RAW data of the designated area calculated in step S15. The data ratio (GainR, GainG, GainB) for each channel of Rs, Gs, Bs) is calculated from the following equations (11) to (13).
GainR = Rs / Ra (11)
GainG = Gs / Ga (12)
GainB = Bs / Ba (13)

ステップS19において、PC制御装置10は、RAWデータに、ステップS18で得られたデータ比(GainR,GainG,GainB)を乗算する。   In step S19, the PC control apparatus 10 multiplies the RAW data by the data ratio (GainR, GainG, GainB) obtained in step S18.

ステップS20において、PC制御装置10は、ステップS19で得られた画像データに対し、再度ポジフィルム変換LUTを用いて画像変換を行い、この画像変換後の画像データをディスプレイ3に表示する。なお、この画像変換は、ステップS13と同様の画像変換であるとする。   In step S20, the PC control apparatus 10 performs image conversion again on the image data obtained in step S19 using the positive film conversion LUT, and displays the image data after the image conversion on the display 3. Note that this image conversion is the same image conversion as in step S13.

以上の処理において、ステップS19では、RAWデータにおいて、ステップS14で指定された領域の平均値(Ra,Ga,Ba)がステップS17で求めた(Rs,Gs,Bs)に変換される。この(Rs,Gs,Bs)は、ステップS20のポジフィルム変換LUTを用いた画像変換により、無彩色に変換される。これは、ステップS17において、無彩色のLab値に対応するRGB値が記述された無彩色LUTを用いて、(Rs,Gs,Bs)が求められているためである。 In the above processing, in step S19, the average value (Ra, Ga, Ba) of the area specified in step S14 is converted into (Rs, Gs, Bs) obtained in step S17 in the RAW data. This (Rs, Gs, Bs) is converted to an achromatic color by image conversion using the positive film conversion LUT in step S20. This is because in step S17, (Rs, Gs, Bs) is obtained using the achromatic LUT in which the RGB values corresponding to the achromatic L * a * b * values are described.

したがって、以上の処理により、ポジフィルム変換LUTを用いた画像処理の再現傾向を残しながら、ユーザが指定した領域を無彩色に再現することができる。   Therefore, by the above processing, it is possible to reproduce the region designated by the user in an achromatic color while leaving the reproduction tendency of the image processing using the positive film conversion LUT.

以上説明した実施形態によれば、次の作用効果が得られる。
(1)PC制御装置10は、上記LUT作成プログラムに従って、ポジフィルム調への画像変換処理において、当該画像変換処理の出力画像データのうち無彩色である無彩色出力画像データ(a=b=0であるLab値)とこれに対応する画像変換処理の入力画像データ(RGB値)との対応関係を示す無彩色LUTを作成する。またPC制御装置10は、上記画像変換処理の入力画像データ(RGB値)と出力画像データ(Lab値)との対応関係を示すポジフィルム変換LUTを作成する。そしてPC制御装置10は、無彩色LUTとポジフィルム変換LUTとを同一ファイルに記録するようにした。また、PC制御装置10は、上記画像処理プログラムに従って、RAWデータ、無彩色LUTおよびポジフィルム変換LUTを入力する。そしてPC制御装置10は、RAWデータにおける無彩色の基準となる基準データ(平均値(Ra,Ga,Ba))に対して、上記画像変換処理を実行し、変換後基準データ(L 0,a 0,b 0)を取得する。そしてPC制御装置10は、変換後基準データ(L 0,a 0,b 0)に対応する無彩色画像データ(変換後基準データと明度が同じであり且つ無彩色であるLab値)について、これに対応する無彩色入力画像データ(Rs,Gs,Bs)を、無彩色LUTに基づいて取得する。そしてPC制御装置10は、基準データ(Ra,Ga,Ba)と無彩色入力画像データ(Rs,Gs,Bs)とのチャンネルごとのデータ比(GainR,GainG,GainB)を算出する。そしてPC制御装置10は、上記データ比(GainR,GainG,GainB)をRAWデータに乗算し、さらに上記画像変換処理を実行するようにした。これにより、ポジフィルム調への画像変換において、画像の全領域の色のバランスを保ち、且つ、基準データに対応する色を無彩色に調整することができる。
According to the embodiment described above, the following operational effects can be obtained.
(1) In accordance with the LUT creation program, the PC control device 10 performs achromatic output image data (a * = b *) that is achromatic among output image data of the image conversion process in the image conversion process to positive film tone . Achromatic color LUT indicating a correspondence relationship between L * a * b * value ( = 0) and input image data (RGB value) of image conversion processing corresponding to this is created. Further, the PC control device 10 creates a positive film conversion LUT indicating the correspondence between the input image data (RGB values) and the output image data (L * a * b * values) of the image conversion process. The PC control device 10 records the achromatic color LUT and the positive film conversion LUT in the same file. Further, the PC control device 10 inputs RAW data, an achromatic color LUT, and a positive film conversion LUT according to the image processing program. Then, the PC control device 10 executes the image conversion process on the reference data (average values (Ra, Ga, Ba)) serving as the reference for the achromatic color in the RAW data, and the converted reference data (L * 0 , a * 0 , b * 0 ). The PC control device 10 then outputs achromatic image data corresponding to the converted reference data (L * 0 , a * 0 , b * 0 ) (L * a having the same lightness and achromatic color as the converted reference data). As for * b * value, corresponding achromatic color input image data (Rs, Gs, Bs) is acquired based on the achromatic color LUT. Then, the PC control device 10 calculates a data ratio (GainR, GainG, GainB) for each channel between the reference data (Ra, Ga, Ba) and the achromatic color input image data (Rs, Gs, Bs). Then, the PC control apparatus 10 multiplies the data ratio (GainR, GainG, GainB) by the RAW data, and further executes the image conversion process. Thereby, in the image conversion to the positive film tone, the color balance of the entire area of the image can be maintained, and the color corresponding to the reference data can be adjusted to an achromatic color.

(2)PC制御装置10は、上記画像処理プログラムに従って、ユーザ操作により画像データ内の任意の領域が指定された場合、当該指定された領域におけるRAWデータの各チャンネル(RGB)の平均値を算出し、この平均値を、上記基準データとするようにした。これにより、ポジフィルム調への画像変換において、ユーザにより指定された領域を無彩色に調整することができる。 (2) When an arbitrary area in the image data is designated by the user operation according to the image processing program, the PC control apparatus 10 calculates an average value of each channel (RGB) of the RAW data in the designated area. The average value was used as the reference data. Thereby, in the image conversion to a positive film tone, the area designated by the user can be adjusted to an achromatic color.

(変形例1)
上述した実施の形態では、LUT生成処理において、ポジフィルム変換LUTと無彩色LUTとを同一ファイルに記録する例について説明したが、別々のファイルであってもよく、その場合、ポジフィルム変換LUTと無彩色LUTとを関連付けて記録すればよい。
(Modification 1)
In the above-described embodiment, an example in which the positive film conversion LUT and the achromatic color LUT are recorded in the same file in the LUT generation processing has been described. However, separate files may be used. The achromatic color LUT may be recorded in association with each other.

(変形例2)
上述した実施の形態では、LUT生成処理において、ポジフィルム変換LUTと無彩色LUTとを作成するようにしたが、例えば既にポジフィルム変換LUTが記録媒体12に記録されている場合などには、無彩色LUTのみを作成するようにしてもよい。
(Modification 2)
In the above-described embodiment, the positive film conversion LUT and the achromatic color LUT are created in the LUT generation process. However, for example, when the positive film conversion LUT has already been recorded on the recording medium 12, there is no need to do so. Only the color LUT may be created.

また、PC制御装置10は、既に作成されているポジフィルム変換LUTを外部装置から入力するようにしてもよい。この場合、PC制御装置10は、上記ステップS3で無彩色LUTを作成する際、当該入力したポジフィルム変換LUTを用いるようにする。そして、PC制御装置10は、上記ステップS3で作成した無彩色LUTを、当該入力したポジフィルム変換LUTに付加して記録媒体12に記録する。   Further, the PC control device 10 may input a positive film conversion LUT that has already been created from an external device. In this case, the PC control apparatus 10 uses the input positive film conversion LUT when creating the achromatic color LUT in step S3. Then, the PC control apparatus 10 adds the achromatic color LUT created in step S3 to the input positive film conversion LUT and records it on the recording medium 12.

(変形例3)
上述した実施の形態では、図6に示した画像処理において、予め作成された無彩色LUTを用いる例について説明したが、この画像処理の中で無彩色LUTを作成するようにしてもよい。この場合、PC制御装置10は、図6のステップS17において、図5に示したLUT生成処理のステップS2およびS3を行い、無彩色LUTを作成する。
(Modification 3)
In the above-described embodiment, the example in which the achromatic color LUT created in advance is used in the image processing shown in FIG. 6, but the achromatic color LUT may be created during the image processing. In this case, the PC control device 10 performs steps S2 and S3 of the LUT generation process shown in FIG. 5 in step S17 of FIG. 6 to create an achromatic color LUT.

(変形例4)
上述した実施の形態では、図6に示した画像処理において、予め作成されたポジフィルム変換LUTを用いてポジフィルム調への画像変換を行う例について説明したが、上述した演算処理(対数変換やマトリクス変換を用いた演算処理)によってポジフィルム調への画像変換を行うようにしてもよい。また、ポジフィルム調への画像変換は、上述した処理に限らず、この他の演算処理によるものであってもよい。
(Modification 4)
In the above-described embodiment, the example of performing image conversion to positive film tone using the positive film conversion LUT created in advance in the image processing shown in FIG. 6 has been described. Image conversion to positive film tone may be performed by calculation processing using matrix conversion. Further, the image conversion to the positive film tone is not limited to the processing described above, and may be performed by other arithmetic processing.

(変形例5)
上述した実施の形態では、ユーザに画像内において無彩色としたい領域を指定させ、ユーザにより指定された領域のRAWデータの平均値を、画像変換後に無彩色とすべきRGBデータ(Ra,Ga,Ba)として決定する例について説明した。しかしながら、画像変換後に無彩色とすべきRGBデータを、RAWデータのホワイトバランス調整データ(ホワイトバランスゲイン値)を用いて算出するようにしてもよい。
(Modification 5)
In the embodiment described above, the user designates an area desired to be achromatic in the image, and the average value of the RAW data in the area designated by the user is converted to RGB data (Ra, Ga, The example determined as Ba) has been described. However, RGB data that should be achromatic after image conversion may be calculated using white balance adjustment data (white balance gain value) of RAW data.

ホワイトバランスゲイン値は、撮影時にデジタルカメラ2で設定されているホワイトバランス設定に応じて、RAWデータと共に(たとえば同一ファイル内に)記録されている。たとえば、プリセットホワイトバランスが設定されている場合は、デジタルカメラ2のユーザが撮影より前にグレーカードなどの無彩色の被写体の仮撮影を行い、その撮影データからホワイトバランスゲイン値が決定され記録されている。グレーカードが仮に本撮影で被写体として写っていたとすると、グレーカード部分の撮影画像データに、記録されているホワイトバランスゲイン値を乗算すれば、RGBチャンネル間のデータ比が1:1:1になる。仮に、その後の画像処理がRGBチャンネル間のデータ比1:1:1を保持する変換であれば、再現画像で無彩色になる。   The white balance gain value is recorded together with the RAW data (for example, in the same file) according to the white balance setting set by the digital camera 2 at the time of shooting. For example, when the preset white balance is set, the user of the digital camera 2 performs temporary shooting of an achromatic object such as a gray card before shooting, and the white balance gain value is determined and recorded from the shooting data. ing. Assuming that the gray card is captured as a subject in actual shooting, the data ratio between the RGB channels is 1: 1: 1 by multiplying the captured image data of the gray card portion by the recorded white balance gain value. . If the subsequent image processing is conversion that maintains a data ratio of 1: 1: 1 between the RGB channels, the reproduced image will be achromatic.

しかし、記録されているホワイトバランスゲイン値を撮影画像データに乗算した後の画像処理が上記ポジフィルム変換LUTを利用した画像変換である場合には、グレーカード部分の撮影画像データが無彩色になることが保証されない。   However, when the image processing after multiplying the recorded white balance gain value by the photographed image data is image conversion using the positive film conversion LUT, the photographed image data of the gray card portion is achromatic. It is not guaranteed.

そこで、変形例5において、PC制御装置10は、無彩色とすべきRGBデータ(Ra,Ga,Ba)を、RAWデータとともに記録されているホワイトバランスゲイン値(gainPr,gainPb)から決定する。たとえば、次式(14)〜(16)により、ホワイトバランスゲイン値から無彩色とすべきRGBデータ(Ra,Ga,Ba)を算出することができる。なお、次式(14)〜(16)において、Grefは予め決定しておく所定の値である。
Ra = Gref ×( 1 / gainPr) …(14)
Ga = Gref …(15)
Ba = Gref ×( 1 / gainPb) …(16)
Therefore, in the fifth modification, the PC control device 10 determines RGB data (Ra, Ga, Ba) to be achromatic from the white balance gain values (gainPr, gainPb) recorded together with the RAW data. For example, RGB data (Ra, Ga, Ba) to be achromatic can be calculated from the white balance gain value by the following equations (14) to (16). In the following formulas (14) to (16), Gref is a predetermined value determined in advance.
Ra = Gref x (1 / gainPr) (14)
Ga = Gref (15)
Ba = Gref x (1 / gainPb) (16)

このようにして、PC制御装置10は、無彩色とすべきRGBデータ(Ra,Ga,Ba)を決定した後、図6のステップS16以降の処理を行う。これにより、無彩色とすべきRGBデータ(Ra,Ga,Ba)を、ポジフィルム調への画像変換後に無彩色にするような処理を行うことができる。   In this way, after determining the RGB data (Ra, Ga, Ba) to be achromatic color, the PC control device 10 performs the processing after step S16 in FIG. Thereby, the RGB data (Ra, Ga, Ba) to be achromatic can be processed to be achromatic after image conversion to positive film tone.

また、図6に示した画像処理を実行するための画像処理プログラムにおいて、ユーザ操作によりホワイトバランス設定を行えるようにし、その設定に応じて、無彩色とすべきRGBデータ(Ra,Ga,Ba)を決定するようにしてもよい。この場合、たとえば、ホワイトバランス設定として、晴天、日陰、電球のような選択肢を設け、その選択肢に対応するホワイトバランスゲイン値を予めコンピュータプログラム内部に記憶しておく。そして、PC制御装置10は、ユーザ操作により選択されたホワイトバランス設定の選択肢に対応するホワイトバランスゲイン値から、上記式(14)〜(16)を用いて無彩色とすべきRGBデータ(Ra,Ga,Ba)を算出する。   Further, in the image processing program for executing the image processing shown in FIG. 6, white balance setting can be performed by a user operation, and RGB data (Ra, Ga, Ba) to be achromatic color according to the setting. May be determined. In this case, for example, options such as clear sky, shade, and light bulb are provided as white balance settings, and white balance gain values corresponding to the options are stored in advance in the computer program. Then, the PC control device 10 uses the above formulas (14) to (16) to calculate RGB data (Ra, Ga, Ba) is calculated.

このように処理することにより、通常の画像変換モード(ホワイトバランスゲインによりRGBチャンネル間のデータ比が1:1:1になった画像データがその後の処理でもRGBチャンネル間のデータ比が1:1:1となるように変換される画像変換モード)とホワイトバランスに関する互換性を保つことができる。   By processing in this way, a normal image conversion mode (image data in which the data ratio between the RGB channels becomes 1: 1: 1 due to the white balance gain becomes 1: 1 in the data ratio between the RGB channels even in subsequent processing. 1) and the white balance compatibility can be maintained.

(変形例6)
上述した実施の形態では、PC制御装置10がメモリに記憶された画像処理プログラムに従って上記図6に示した画像処理を実行する例について説明した。しかしながら、デジタルカメラ2において上記図6に示した画像処理を実行するようにしてもよい。この場合、たとえば、デジタルカメラ2の記録媒体25などに、上記図6に示した画像処理を実行するコンピュータプログラムと、ポジフィルム変換LUTおよび無彩色LUTとを記憶しておく。そして、デジタルカメラ2のカメラ制御装置22が当該コンピュータプログラムにしたがって、デジタルカメラ2の撮像素子21により撮像されたRAWデータに対し、上記図6に示した画像処理を実行する。そしてカメラ制御装置22は、この画像処理後の画像データを、たとえばJPEG形式などでメモリカード26に記録する。
(Modification 6)
In the embodiment described above, the example in which the PC control device 10 executes the image processing shown in FIG. 6 according to the image processing program stored in the memory has been described. However, the digital camera 2 may execute the image processing shown in FIG. In this case, for example, the computer program for executing the image processing shown in FIG. 6, the positive film conversion LUT, and the achromatic color LUT are stored in the recording medium 25 of the digital camera 2 or the like. Then, the camera control device 22 of the digital camera 2 executes the image processing shown in FIG. 6 on the RAW data imaged by the imaging device 21 of the digital camera 2 according to the computer program. Then, the camera control device 22 records the image data after the image processing on the memory card 26 in the JPEG format, for example.

さらにデジタルカメラ2のカメラ制御装置22は、上記変形例5で説明したように、RAWデータのホワイトバランスゲイン値を取得して、当該ホワイトバランスゲイン値に基づいて無彩色とすべきRGBデータ(Ra,Ga,Ba)を決定するようにしてもよい。また、デジタルカメラ2のカメラ制御装置22は、このようにホワイトバランスゲイン値に基づいて無彩色とすべきRGBデータ(Ra,Ga,Ba)を決定した後、図6のステップS16〜ステップS18の処理を行ってデータ比(GainR,GainG,GainB)を算出し、このデータ比を、撮像素子21により撮像されたRAWデータと共にメモリカード26に記録するようにしてもよい。この場合、PC1で実行するコンピュータプログラムにおいて、メモリカード26からRAWデータと上記データ比を取得し、図6のステップS19およびS20を実行すれば、上記実施の形態と同様の効果を得ることができる。   Further, as described in the fifth modification, the camera control device 22 of the digital camera 2 acquires the white balance gain value of the RAW data, and based on the white balance gain value, the RGB data (Ra , Ga, Ba) may be determined. Further, the camera control device 22 of the digital camera 2 determines RGB data (Ra, Ga, Ba) to be achromatic based on the white balance gain value as described above, and then performs steps S16 to S18 in FIG. Processing may be performed to calculate a data ratio (GainR, GainG, GainB), and this data ratio may be recorded in the memory card 26 together with the RAW data imaged by the imaging device 21. In this case, if the computer program executed on the PC 1 acquires the RAW data and the data ratio from the memory card 26 and executes steps S19 and S20 in FIG. 6, the same effects as in the above embodiment can be obtained. .

(変形例7)
上述した実施の形態では、ポジフィルム変換LUTを用いてポジフィルム調への画像変換を行う場合において、無彩色の調整を行う際に本発明を適用する例について説明した。しかしながら、ポジフィルム調への画像変換に限らなくてよく、この他種々の画像変換に本発明を適用するようにしてもよい。特に、変換前に無彩色の部分が変換後に無彩色になるとは限らないような画像変換において本発明を適用することにより、ユーザにより指定された領域を無彩色に調整することなどができる。
(Modification 7)
In the above-described embodiment, the example in which the present invention is applied when adjusting the achromatic color in the case of performing the image conversion to the positive film tone using the positive film conversion LUT has been described. However, the present invention is not limited to image conversion to positive film tone, and the present invention may be applied to various other image conversions. In particular, by applying the present invention to image conversion in which an achromatic portion before conversion does not always become an achromatic color after conversion, an area designated by the user can be adjusted to an achromatic color.

(変形例8)
上述した実施の形態では、PC制御装置10が各処理を実行するためのプログラムがPC制御装置10のメモリに格納されている場合について説明した。しかしながら、PC1に対するプログラムのローディングは、図7に示すように、プログラムを格納したCD−ROMなどの記録媒体40をPC1にセットして行ってもよいし、ネットワークなどの通信回線41を経由する方法でPC1へローディングしてもよい。通信回線41を経由する場合は、通信回線41に接続されたサーバー(コンピュータ)42のハードディスク装置43などにプログラムを格納しておく。プログラムは、記録媒体40や通信回線41を介する提供など、種々の形態のコンピュータプログラム製品として供給することができる。
(Modification 8)
In the above-described embodiment, the case where the program for the PC control device 10 to execute each process is stored in the memory of the PC control device 10 has been described. However, the loading of the program to the PC 1 may be performed by setting a recording medium 40 such as a CD-ROM storing the program in the PC 1 as shown in FIG. 7, or via a communication line 41 such as a network. It may be loaded into PC1. When going through the communication line 41, the program is stored in the hard disk device 43 of the server (computer) 42 connected to the communication line 41. The program can be supplied as various types of computer program products such as provision via the recording medium 40 or the communication line 41.

以上の説明はあくまで一例であり、上記実施形態の構成に何ら限定されるものではない。また、上記実施形態に各変形例の構成を適宜組み合わせたり、各変形例同士の構成を適宜組み合わせたりしてもかまわない。たとえば、変形例3と変形例6をと組み合わせるようにしてもよい。この場合、デジタルカメラ2のカメラ制御装置22が、図6に示した画像処理を実行する際に、この画像処理の中で、図5に示したLUT生成処理のステップS2およびS3を行い、無彩色LUTを作成する。   The above description is merely an example, and is not limited to the configuration of the above embodiment. Further, the configuration of each modification example may be appropriately combined with the above-described embodiment, or the structure of each modification example may be appropriately combined. For example, modification 3 and modification 6 may be combined. In this case, when the camera control device 22 of the digital camera 2 executes the image processing shown in FIG. 6, steps S2 and S3 of the LUT generation processing shown in FIG. Create a coloring LUT.

1…PC、2…デジタルカメラ、3…ディスプレイ、10…PC制御装置、12、25…記録媒体、21…撮像素子、22…カメラ制御装置、26…メモリカード DESCRIPTION OF SYMBOLS 1 ... PC, 2 ... Digital camera, 3 ... Display, 10 ... PC control apparatus, 12, 25 ... Recording medium, 21 ... Image sensor, 22 ... Camera control apparatus, 26 ... Memory card

Claims (10)

所定の画像変換処理をコンピュータに実行させるためのコンピュータプログラムであって、
前記画像変換処理の対象となる対象画像データを入力する対象画像入力ステップと、
前記画像変換処理の出力画像データのうち無彩色である無彩色出力画像データとこれに対応する前記画像変換処理の入力画像データとの対応関係を示す無彩色対応情報を入力する無彩色対応情報入力ステップと、
前記対象画像データにおける無彩色の基準となる基準データに対して、前記画像変換処理を実行し、変換後基準データを取得する変換後基準データ取得ステップと、
前記変換後基準データに対応する無彩色画像データについて、これに対応する無彩色入力画像データを、前記無彩色対応情報に基づいて取得する無彩色入力画像取得ステップと、
前記基準データと前記無彩色入力画像データとのチャンネルごとのデータ比を算出するデータ比算出ステップと、
前記データ比を前記対象画像データに乗算し、さらに前記画像変換処理を実行する画像変換ステップと、
をコンピュータに実行させることを特徴とするコンピュータプログラム。
A computer program for causing a computer to execute predetermined image conversion processing,
A target image input step of inputting target image data to be subjected to the image conversion processing;
Achromatic color correspondence information input for inputting the achromatic color correspondence information indicating the correspondence between the achromatic color output image data of the achromatic color in the output image data of the image conversion processing and the corresponding input image data of the image conversion processing. Steps,
A post-conversion reference data acquisition step that executes the image conversion process on reference data that is a reference for an achromatic color in the target image data, and acquires post-conversion reference data;
For the achromatic color image data corresponding to the converted reference data, the achromatic color input image acquisition step for acquiring the achromatic color input image data corresponding thereto based on the achromatic color correspondence information;
A data ratio calculating step for calculating a data ratio for each channel between the reference data and the achromatic input image data;
An image conversion step of multiplying the target image data by the data ratio and further executing the image conversion process;
A computer program for causing a computer to execute.
請求項1に記載のコンピュータプログラムにおいて、
前記画像変換処理の入力画像データと出力画像データとの対応関係を示す画像変換ルックアップテーブルを入力するルックアップテーブル入力ステップをさらにコンピュータに実行させ、
前記画像変換処理は、前記画像変換ルックアップテーブルに基づいて行われることを特徴とするコンピュータプログラム。
The computer program according to claim 1,
Causing the computer to further execute a lookup table input step of inputting an image conversion lookup table indicating a correspondence relationship between the input image data and the output image data of the image conversion processing;
The computer program according to claim 1, wherein the image conversion process is performed based on the image conversion lookup table.
所定の画像変換処理をコンピュータに実行させるためのコンピュータプログラムであって、
前記画像変換処理の対象となる対象画像データを入力する対象画像入力ステップと、
前記対象画像データにおける無彩色の基準となる基準データを入力する基準入力ステップと、
前記基準データに対して前記画像変換処理を実行して変換後基準データを取得する変換後基準データ取得ステップと、
複数の仮想的な入力画像データに対して逐次前記画像変換処理を実行することにより、前記画像変換処理の出力画像データのうち無彩色である無彩色出力画像データとこれに対応する前記画像変換処理の入力画像データとの対応関係を示す無彩色対応情報を求め、前記変換後基準データに対応する無彩色画像データについて、これに対応する無彩色入力画像データを、前記無彩色対応情報に基づいて取得する無彩色入力画像取得ステップと、
前記基準データと前記無彩色入力画像データとのチャンネルごとのデータ比を算出するデータ比算出ステップと、
前記データ比を前記対象画像データに乗算し、さらに前記画像変換処理を実行する画像変換ステップと、
をコンピュータに実行させることを特徴とするコンピュータプログラム。
A computer program for causing a computer to execute predetermined image conversion processing,
A target image input step of inputting target image data to be subjected to the image conversion processing;
A reference input step of inputting reference data serving as a reference for an achromatic color in the target image data;
A post-conversion reference data acquisition step of performing the image conversion process on the reference data to acquire post-conversion reference data;
By executing the image conversion process sequentially on a plurality of virtual input image data, the achromatic color output image data that is an achromatic color among the output image data of the image conversion process and the image conversion process corresponding thereto Achromatic color correspondence information indicating a correspondence relationship with the input image data, and for the achromatic color image data corresponding to the converted reference data, the achromatic color input image data corresponding thereto is determined based on the achromatic color correspondence information. An achromatic color input image acquisition step to be acquired;
A data ratio calculating step for calculating a data ratio for each channel between the reference data and the achromatic input image data;
An image conversion step of multiplying the target image data by the data ratio and further executing the image conversion process;
A computer program for causing a computer to execute.
請求項1〜3のいずれか一項に記載のコンピュータプログラムにおいて、
ユーザ操作により前記対象画像データ内の任意の領域が指定された場合、前記指定された領域における前記対象画像データの各チャンネルの平均値を算出する平均値算出ステップをさらにコンピュータに実行させ、
前記平均値を、前記基準データとすることを特徴とするコンピュータプログラム。
In the computer program as described in any one of Claims 1-3,
When an arbitrary area in the target image data is specified by a user operation, the computer further executes an average value calculating step of calculating an average value of each channel of the target image data in the specified area,
A computer program characterized in that the average value is used as the reference data.
請求項1〜3のいずれか一項に記載のコンピュータプログラムにおいて、
前記対象画像データのホワイトバランス調整データを入力するホワイトバランス調整データ入力ステップと、
前記ホワイトバランス調整データに基づいて前記基準データを決定する基準データ決定ステップと、
をさらにコンピュータに実行させることを特徴とするコンピュータプログラム。
In the computer program as described in any one of Claims 1-3,
A white balance adjustment data input step for inputting white balance adjustment data of the target image data;
A reference data determination step for determining the reference data based on the white balance adjustment data;
Is further executed by a computer.
所定の画像変換処理において、前記画像変換処理の出力画像データのうち無彩色である無彩色出力画像データとこれに対応する前記画像変換処理の入力画像データとの対応関係を示す無彩色対応情報を作成する無彩色対応情報作成ステップと、
前記無彩色対応情報を記録媒体に記録する記録ステップと、
をコンピュータに実行させることを特徴とするコンピュータプログラム。
In predetermined image conversion processing, achromatic color correspondence information indicating a correspondence relationship between the achromatic color output image data of the achromatic color in the output image data of the image conversion processing and the corresponding input image data of the image conversion processing is displayed. Achromatic color correspondence information creation step to create,
A recording step of recording the achromatic color correspondence information on a recording medium;
A computer program for causing a computer to execute.
請求項6に記載のコンピュータプログラムにおいて、
前記画像変換処理の入力画像データと出力画像データとの対応関係を示す画像変換ルックアップテーブルを作成するルックアップテーブル作成ステップをさらにコンピュータに実行させ、
前記記録ステップでは、前記無彩色対応情報と前記画像変換ルックアップテーブルとを同一ファイルに記録することを特徴とするコンピュータプログラム。
The computer program according to claim 6,
Causing the computer to further execute a lookup table creation step of creating an image conversion lookup table indicating a correspondence relationship between the input image data and the output image data of the image conversion process;
In the recording step, the achromatic color correspondence information and the image conversion lookup table are recorded in the same file.
請求項6に記載のコンピュータプログラムにおいて、
前記画像変換処理の入力画像データと出力画像データとの対応関係を示す画像変換ルックアップテーブルを入力するルックアップテーブル入力ステップをさらにコンピュータに実行させ、
前記記録ステップでは、前記無彩色対応情報を、前記画像変換ルックアップテーブルに付加して記録することを特徴とするコンピュータプログラム。
The computer program according to claim 6,
Causing the computer to further execute a lookup table input step of inputting an image conversion lookup table indicating a correspondence relationship between the input image data and the output image data of the image conversion processing;
In the recording step, the achromatic color correspondence information is added to the image conversion lookup table and recorded.
被写体像を撮像する撮像手段と、
所定の画像変換処理において、前記画像変換処理の出力画像データのうち無彩色である無彩色出力画像データとこれに対応する前記画像変換処理の入力画像データとの対応関係を示す無彩色対応情報を記憶する記憶手段と、
前記撮像手段により撮像された撮像画像データのホワイトバランス調整データを取得するホワイトバランス調整データ取得手段と、
前記ホワイトバランス調整データに基づいて、前記撮像画像データにおける無彩色の基準となる基準データを算出する基準データ算出手段と、
前記基準データに対して前記画像変換処理を実行して変換後基準データを取得する変換後基準データ取得手段と、
前記変換後基準データに対応する無彩色画像データについて、これに対応する無彩色入力画像データを、前記無彩色対応情報に基づいて取得する無彩色入力画像取得手段と、
前記基準データと前記無彩色入力画像データとのチャンネルごとのデータ比を算出するデータ比算出手段と、
前記データ比を前記撮像画像データに乗算し、さらに前記画像変換処理を実行する画像変換手段と、
を備えることを特徴とするデジタルカメラ。
Imaging means for capturing a subject image;
In predetermined image conversion processing, achromatic color correspondence information indicating a correspondence relationship between the achromatic color output image data of the achromatic color in the output image data of the image conversion processing and the corresponding input image data of the image conversion processing is displayed. Storage means for storing;
White balance adjustment data acquisition means for acquiring white balance adjustment data of imaged image data imaged by the imaging means;
Based on the white balance adjustment data, reference data calculation means for calculating reference data serving as a reference for an achromatic color in the captured image data;
A post-conversion reference data acquisition unit that executes the image conversion process on the reference data to acquire post-conversion reference data;
Achromatic color input image acquisition means for acquiring achromatic color input image data corresponding to the achromatic color image data corresponding to the converted reference data based on the achromatic color correspondence information;
Data ratio calculating means for calculating a data ratio for each channel between the reference data and the achromatic input image data;
Image conversion means for multiplying the captured image data by the data ratio and further executing the image conversion processing;
A digital camera comprising:
被写体像を撮像する撮像手段と、
所定の画像変換処理において、前記画像変換処理の出力画像データのうち無彩色である無彩色出力画像データとこれに対応する前記画像変換処理の入力画像データとの対応関係を示す無彩色対応情報を記憶する記憶手段と、
前記撮像手段により撮像された撮像画像データのホワイトバランス調整データを取得するホワイトバランス調整データ取得手段と、
前記ホワイトバランス調整データに基づいて、前記撮像画像データにおける無彩色の基準となる基準データを算出する基準データ算出手段と、
前記基準データに対して前記画像変換処理を実行して変換後基準データを取得する変換後基準データ取得手段と、
前記変換後基準データに対応する無彩色画像データについて、これに対応する無彩色入力画像データを、前記無彩色対応情報に基づいて取得する無彩色入力画像取得手段と、
前記基準データと前記無彩色入力画像データとのチャンネルごとのデータ比を算出するデータ比算出手段と、
前記データ比を前記撮像画像データと共に記録媒体に記録する記録制御手段と、
を備えることを特徴とするデジタルカメラ。
Imaging means for capturing a subject image;
In predetermined image conversion processing, achromatic color correspondence information indicating a correspondence relationship between the achromatic color output image data of the achromatic color in the output image data of the image conversion processing and the corresponding input image data of the image conversion processing is displayed. Storage means for storing;
White balance adjustment data acquisition means for acquiring white balance adjustment data of imaged image data imaged by the imaging means;
Based on the white balance adjustment data, reference data calculation means for calculating reference data serving as a reference for an achromatic color in the captured image data;
A post-conversion reference data acquisition unit that executes the image conversion process on the reference data to acquire post-conversion reference data;
Achromatic color input image acquisition means for acquiring achromatic color input image data corresponding to the achromatic color image data corresponding to the converted reference data based on the achromatic color correspondence information;
Data ratio calculating means for calculating a data ratio for each channel between the reference data and the achromatic input image data;
Recording control means for recording the data ratio together with the captured image data on a recording medium;
A digital camera comprising:
JP2013108796A 2013-05-23 2013-05-23 Computer program and digital camera Withdrawn JP2014230128A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013108796A JP2014230128A (en) 2013-05-23 2013-05-23 Computer program and digital camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013108796A JP2014230128A (en) 2013-05-23 2013-05-23 Computer program and digital camera

Publications (1)

Publication Number Publication Date
JP2014230128A true JP2014230128A (en) 2014-12-08

Family

ID=52129594

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013108796A Withdrawn JP2014230128A (en) 2013-05-23 2013-05-23 Computer program and digital camera

Country Status (1)

Country Link
JP (1) JP2014230128A (en)

Similar Documents

Publication Publication Date Title
US7636473B2 (en) Image color adjustment
EP2426928B1 (en) Image processing apparatus, image processing method and program
EP3888345B1 (en) Method for generating image data for machine learning based imaging algorithms
US9342872B2 (en) Color correction parameter computation method, color correction parameter computation device, and image output system
JP5195430B2 (en) Image processing method, image processing program, image processing apparatus, camera
JP5407600B2 (en) Image processing apparatus, image processing method, and electronic camera
JP2005210526A (en) Image processing apparatus, method, and program, image pickup device, and image data outputting method and program
JP2004200902A (en) Image processor, electronic camera, and image processing program
US10764469B2 (en) Image processing apparatus, image processing method, and storage medium that convert an input luminance signal included in image data into an output signal for printing by using a conversion parameter
JP2003134351A (en) Spectrum/color reproduction system
JP2005210495A (en) Image processing apparatus, method, and program
JP7327957B2 (en) Image display system, method and program
JP2021182672A (en) Image processing device, image processing method, and program
JP2002271638A (en) White balance correction method and device, and recording medium recorded with program for executing the method
JP2018074607A (en) Image processing apparatus and camera
JP5031442B2 (en) Color processing method and apparatus
JP2012195760A (en) Shooting setting adjustment system, information processing unit, and control method and control program therefor
JP2014230128A (en) Computer program and digital camera
JP2013225802A (en) Digital camera, color conversion information generating program, color conversion program, and recording control program
JP5295022B2 (en) Color correction apparatus and color correction method
JP2015162870A (en) digital camera and image processing program
JP2010251940A (en) Image processor, image processing method, and program
JP5627252B2 (en) Imaging apparatus and control method thereof
JP5104452B2 (en) Image processing apparatus, image processing method, and image processing program
JP2004023207A (en) Device and method for preparing color conversion table, recording medium recorded with color conversion table preparation program and profile preparing device for preparing profile on the basis of color conversion table prepared by the device or method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160517

A761 Written withdrawal of application

Free format text: JAPANESE INTERMEDIATE CODE: A761

Effective date: 20160523