JP2010062836A - Image processing apparatus, image processing method, and image processing program - Google Patents

Image processing apparatus, image processing method, and image processing program Download PDF

Info

Publication number
JP2010062836A
JP2010062836A JP2008226074A JP2008226074A JP2010062836A JP 2010062836 A JP2010062836 A JP 2010062836A JP 2008226074 A JP2008226074 A JP 2008226074A JP 2008226074 A JP2008226074 A JP 2008226074A JP 2010062836 A JP2010062836 A JP 2010062836A
Authority
JP
Japan
Prior art keywords
image data
unit
image
gradation conversion
granular pattern
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.)
Pending
Application number
JP2008226074A
Other languages
Japanese (ja)
Inventor
Tetsuya Toyoda
哲也 豊田
Manabu Ichikawa
学 市川
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.)
Olympus Imaging Corp
Original Assignee
Olympus Imaging 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 Olympus Imaging Corp filed Critical Olympus Imaging Corp
Priority to JP2008226074A priority Critical patent/JP2010062836A/en
Priority to CN201110284134.7A priority patent/CN102291537B/en
Priority to CN201110284161.4A priority patent/CN102377929B/en
Priority to US12/552,984 priority patent/US8334912B2/en
Priority to CN200910171069XA priority patent/CN101668106B/en
Publication of JP2010062836A publication Critical patent/JP2010062836A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processing apparatus etc., that suitably reproduces sensation of granularity of a silver halide photograph. <P>SOLUTION: A synchronization processing unit 23 performs synchronization processing for generating image data having a plurality of colors for each pixel, on the basis of image data obtained by an imaging device which has an imaging element, having a plurality of color filters arranged. Addition units 36 and 37 add a prescribed granular pattern to the image data, having been subjected to the synchronization processing. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、デジタルカメラ等によって得られる画像データに対して、銀塩写真で得られるような粒状パターンを付加する技術に関する。   The present invention relates to a technique for adding a granular pattern such as that obtained by a silver salt photograph to image data obtained by a digital camera or the like.

デジタルカメラなどで得られたデジタル画像には、撮像素子を発生の主とするノイズ成分が重畳しており、このノイズ成分が画像品質の低下を招く一原因となっている。一般的には、画像に重畳したノイズ成分を様々な手法で低減することで、画像品質を向上させる事に努力が払われている。   A digital image obtained by a digital camera or the like is superimposed with a noise component that mainly generates an image sensor, and this noise component is a cause of deterioration in image quality. In general, efforts are made to improve image quality by reducing noise components superimposed on an image by various methods.

銀塩写真においても、銀塩粒子を主要因とする粒状ノイズが発生し、デジタル画像と同様、画像品質の低下の一原因となっているが、逆に、粒状ノイズによる粒状感が、銀塩写真の表現として一定の価値を持っているという事実もある。   In silver halide photography, granular noise is mainly caused by silver salt particles, which is one of the causes of image quality deterioration as in digital images. Conversely, the graininess due to granular noise is There is also the fact that it has a certain value as an expression of photography.

こうした背景の下、デジタル画像に対しても銀塩写真と同様の価値を与えるべく、銀塩粒子の視覚効果を得るため、銀塩粒子による粒状感に似せた粒状パターンをデジタル画像に重畳する技術が様々提案されている。例えば、特許文献1では、画素単位で乱数を発生させ、周波数フィルタ処理やスケール変更を行って期待する粒状度の粒状を画像に重畳させている。また、特許文献2では、均一露光されたカラーフィルムから得られた露光画像から平滑化した画像を減算することで、粒状パターンを算出している。
米国特許第5,641,596号明細書 特開平11−85955号公報
Under such a background, in order to obtain the visual effect of silver salt particles in order to give a digital image the same value as a silver salt photograph, a technology that superimposes a granular pattern resembling the graininess of silver salt particles on the digital image Various proposals have been made. For example, in Patent Document 1, random numbers are generated in units of pixels, and frequency filtering and scale change are performed to superimpose the expected granularity on the image. In Patent Document 2, a granular pattern is calculated by subtracting a smoothed image from an exposure image obtained from a uniformly exposed color film.
US Pat. No. 5,641,596 Japanese Patent Laid-Open No. 11-85955

しかしながら、上記特許文献1および2では、重畳する粒状もしくは粒状パターンの算出について言及しているものの、最終的な画像として期待する粒状感を生成するために必要な画像処理方法については、全く記載がない。   However, although the above Patent Documents 1 and 2 refer to calculation of the granularity or granular pattern to be superimposed, the image processing method necessary for generating the granular feeling expected as the final image is completely described. Absent.

本発明は、銀塩写真の粒状感を適切に再現するための技術を提供することを目的とする。   An object of this invention is to provide the technique for reproducing the graininess of a silver salt photograph appropriately.

本発明のある態様に係る画像処理装置は、複数のカラーフィルタを配置した撮像素子を有する撮像装置により得られた画像データに基づいて、1画素あたり複数の色を有する画像データを生成する同時化処理部と、前記同時化処理部によって生成された画像データに対して、所定の粒状パターンを付加する粒状パターン付加部と、を備えることを特徴とする。   An image processing apparatus according to an aspect of the present invention is configured to simultaneously generate image data having a plurality of colors per pixel based on image data obtained by an imaging apparatus having an imaging element in which a plurality of color filters are arranged. A processing unit, and a granular pattern adding unit that adds a predetermined granular pattern to the image data generated by the synchronization processing unit.

本発明の別の態様に係る画像処理方法は、複数のカラーフィルタを配置した撮像素子を有する撮像装置により得られた画像データに基づいて、1画素あたり複数の色を有する画像データを生成するステップと、生成された前記画像データに対して、所定の粒状パターンを付加するステップと、を備えることを特徴とする。   An image processing method according to another aspect of the present invention is a step of generating image data having a plurality of colors per pixel based on image data obtained by an imaging device having an imaging device in which a plurality of color filters are arranged. And a step of adding a predetermined granular pattern to the generated image data.

本発明のさらに別の態様に係る画像処理プログラムは、複数のカラーフィルタを配置した撮像素子を有する撮像装置により得られた画像データに基づいて、1画素あたり複数の色を有する画像データを生成するステップと、生成された前記画像データに対して、所定の粒状パターンを付加するステップと、をコンピュータに実行させるためのプログラムである。   An image processing program according to yet another aspect of the present invention generates image data having a plurality of colors per pixel based on image data obtained by an imaging apparatus having an imaging element in which a plurality of color filters are arranged. A program for causing a computer to execute a step and a step of adding a predetermined granular pattern to the generated image data.

本発明によれば、同時化処理を行った後の画像データに粒状パターンを付加する処理を行うので、粒状パターンを付加した後に同時化処理を行うことによって、銀塩粒子独特の細かな粒状感が失われたり、粒状パターンを画像の構造と認識し、本来画像にはない幾何パターンが発生してしまうという問題を防いで、銀塩写真の粒状感を適切に再現することができる。   According to the present invention, since the process of adding a granular pattern to the image data after the synchronization process is performed, the synchronization process is performed after the granular pattern is added. It is possible to appropriately reproduce the graininess of a silver halide photograph by preventing problems such as loss of image quality, or recognizing a granular pattern as the structure of an image and generating a geometric pattern that is not originally present in an image.

図1は、一実施形態に係る画像処理装置を含むデジタルカメラの構成を示すブロック図である。このデジタルカメラは、撮像部1と、A/D変換部2と、マイクロコンピュータ3(以下、マイコン3と呼ぶ)と、RAM4と、ROM5と、画像処理回路6と、操作部7と、表示部8と、メモリインターフェース9(以下、I/F9と呼ぶ)と、記録媒体10とを備える。   FIG. 1 is a block diagram illustrating a configuration of a digital camera including an image processing apparatus according to an embodiment. This digital camera includes an imaging unit 1, an A / D conversion unit 2, a microcomputer 3 (hereinafter referred to as a microcomputer 3), a RAM 4, a ROM 5, an image processing circuit 6, an operation unit 7, and a display unit. 8, a memory interface 9 (hereinafter referred to as I / F 9), and a recording medium 10.

撮像部1は、各画素を構成するフォトダイオードの前面に、複数のカラーフィルタが配置された単板式カラー撮像素子(以下、単に撮像素子と呼ぶ)、撮影光学系、および、これらの駆動部等から構成されている。カラーフィルタは、例えば、ベイヤー配列にて配列される。ベイヤー配列は、水平方向にR画素とG(Gr)画素が交互に配置されたラインと、G(Gb)画素とB画素が交互に配置されたラインとを有し、さらにその2つのラインを垂直方向にも交互に配置することで構成されている。撮像素子は、図示しないレンズにより集光された光を、画素を構成するフォトダイオードで受光して光電変換することで、光の量を電荷量としてA/D変換部2へ出力する。なお、撮像素子は、CMOS方式のものでもCCD方式のものでも良い。また、カラーフィルタは、ベイヤー配列以外の配列で構成されていてもよいし、R,G、B以外の色で構成されていてもよい。   The image pickup unit 1 includes a single-plate color image pickup device (hereinafter simply referred to as an image pickup device) in which a plurality of color filters are arranged in front of a photodiode constituting each pixel, a photographing optical system, and a drive unit thereof. It is composed of For example, the color filters are arranged in a Bayer array. The Bayer array has a line in which R pixels and G (Gr) pixels are alternately arranged in a horizontal direction, and a line in which G (Gb) pixels and B pixels are alternately arranged, and the two lines are further divided. It is configured by alternately arranging in the vertical direction. The image sensor receives light collected by a lens (not shown) by a photodiode that constitutes a pixel and photoelectrically converts the light, and outputs the amount of light to the A / D converter 2 as a charge amount. The image sensor may be either a CMOS type or a CCD type. Further, the color filter may be configured in an array other than the Bayer array, or may be configured in a color other than R, G, and B.

A/D変換部2は、撮像部1から出力された電気信号をデジタル画像信号(以後、画像データという)に変換する。   The A / D converter 2 converts the electrical signal output from the imaging unit 1 into a digital image signal (hereinafter referred to as image data).

マイコン3は、デジタルカメラの全体的な制御を行う制御部である。例えば、マイコン3は、撮像部1内部の撮影光学系の焦点制御や撮像素子の露出制御、画像データを記録媒体10に記録する際の記録制御、画像データを表示部8に表示する際の表示制御等を行う。   The microcomputer 3 is a control unit that performs overall control of the digital camera. For example, the microcomputer 3 controls the focus control of the imaging optical system inside the imaging unit 1, the exposure control of the imaging device, the recording control when recording the image data on the recording medium 10, and the display when displaying the image data on the display unit 8. Control and so on.

RAM4は、A/D変換部2において得られた画像データや、後述する画像処理回路6で処理された画像データ等の各種データが一時的に記憶される記憶部である。ROM5には、デジタルカメラの動作に必要な各種パラメータや、銀塩粒子による粒状感に似せた粒状パターンのデータ等が記憶されている。粒状パターンのデータは、既知の方法により求めて、Y(輝度)成分とC(色)成分とに分離して、ROM5に格納しておく。また、ROM5は、マイコン3にて実行する各種プログラムも記憶している。マイコン3は、ROM5に記憶されているプログラムに従い、またROM5から各種シーケンスに必要なパラメータを読み込み、各処理を実行する。   The RAM 4 is a storage unit that temporarily stores various data such as image data obtained by the A / D conversion unit 2 and image data processed by an image processing circuit 6 described later. The ROM 5 stores various parameters necessary for the operation of the digital camera, granular pattern data resembling the granular feeling due to silver salt particles, and the like. The granular pattern data is obtained by a known method, separated into a Y (luminance) component and a C (color) component, and stored in the ROM 5. The ROM 5 also stores various programs executed by the microcomputer 3. The microcomputer 3 reads parameters necessary for various sequences from the ROM 5 in accordance with a program stored in the ROM 5 and executes each process.

画像処理回路6は、RAM4から読み出した画像データに対して様々な画像処理を施す。画像処理回路6で行う画像処理の詳細については後述する。画像処理回路6で画像処理が施された画像データは、I/F9を介して、記録媒体10に記録される。記録媒体10は、例えばデジタルカメラ本体に着脱可能なメモリカードからなる記録媒体であるが、これに限定されるものではない。   The image processing circuit 6 performs various image processing on the image data read from the RAM 4. Details of the image processing performed by the image processing circuit 6 will be described later. The image data that has been subjected to image processing by the image processing circuit 6 is recorded on the recording medium 10 via the I / F 9. The recording medium 10 is, for example, a recording medium composed of a memory card that can be attached to and detached from the digital camera body, but is not limited to this.

操作部7は、電源ボタン、レリーズボタン、各種入力キー等の操作部材である。ユーザによって、操作部7の何れかの操作部材が操作されることにより、マイコン3は、ユーザの操作に応じた各種シーケンスを実行する。電源ボタンは、当該デジタルカメラの電源のオン/オフ指示を行うための操作部材である。電源ボタンが押されたときに、マイコン3は、当該デジタルカメラの電源をオン又はオフする。レリーズボタンは、ファーストレリーズスイッチとセカンドレリーズスイッチの2段スイッチを有して構成されている。レリーズボタンが半押しされて、ファーストレリーズスイッチがオンされた場合に、マイコン3は、AE処理やAF処理等の撮影準備シーケンスを行う。また、レリーズボタンが全押しされて、セカンドレリーズスイッチがオンされた場合に、マイコン3は、撮影シーケンスを実行して撮影を行う。操作部7は、また、画像の記録モードや、撮影モードを設定することができる。   The operation unit 7 is an operation member such as a power button, a release button, and various input keys. When one of the operation members of the operation unit 7 is operated by the user, the microcomputer 3 executes various sequences corresponding to the user's operation. The power button is an operation member for instructing power on / off of the digital camera. When the power button is pressed, the microcomputer 3 turns the digital camera on or off. The release button has a two-stage switch of a first release switch and a second release switch. When the release button is pressed halfway and the first release switch is turned on, the microcomputer 3 performs a shooting preparation sequence such as AE processing and AF processing. In addition, when the release button is fully pressed and the second release switch is turned on, the microcomputer 3 executes the shooting sequence to perform shooting. The operation unit 7 can also set an image recording mode and a shooting mode.

バス11は、デジタルカメラ内部で発生した各種データをデジタルカメラ内の各部に転送するための転送路である。バス11は、撮像部1と、A/D変換部2と、マイコン3と、RAM4と、ROM5と、画像処理回路6と、操作部7と、表示部8と、I/F9に接続されている。   The bus 11 is a transfer path for transferring various data generated in the digital camera to each unit in the digital camera. The bus 11 is connected to the imaging unit 1, the A / D conversion unit 2, the microcomputer 3, the RAM 4, the ROM 5, the image processing circuit 6, the operation unit 7, the display unit 8, and the I / F 9. Yes.

図2は、画像処理回路6の詳細な構成を示すブロック図である。画像処理回路6は、第1ノイズ低減部(図では、第1NR部)21と、ホワイトバランス補正部(図では、WB部)22と、同時化処理部23と、色変換部24と、階調変換部25と、YC変換部26と、エッジ抽出部27と、エッジ強調部28と、Y階調変換部29と、Y第2ノイズ低減部(図では、Y第2NR部)30、C階調変換部31と、C第2ノイズ低減部(図では、C第2NR部)32と、リサイズ部33と、JPEG圧縮部34と、JPEG伸長部35と、加算部36、37と、乗算部38、39とを備える。   FIG. 2 is a block diagram showing a detailed configuration of the image processing circuit 6. The image processing circuit 6 includes a first noise reduction unit (first NR unit in the figure) 21, a white balance correction unit (WB unit in the figure) 22, a synchronization processing unit 23, a color conversion unit 24, a floor, Tone conversion unit 25, YC conversion unit 26, edge extraction unit 27, edge enhancement unit 28, Y gradation conversion unit 29, Y second noise reduction unit (Y second NR unit in the figure) 30, C Tone conversion unit 31, C second noise reduction unit (C second NR unit in the figure) 32, resizing unit 33, JPEG compression unit 34, JPEG decompression unit 35, addition units 36 and 37, multiplication Parts 38 and 39.

第1ノイズ低減部21は、A/D変換部2で変換されて、RAM4に記憶されている画像データに対して、後述するノイズ低減ゲインNR1に基づいて、ノイズを低減する処理を行う。このノイズ低減処理は、撮像素子の画素欠陥を補正する処理、および、撮像時に発生するランダムノイズを低減する処理である。ただし、撮像素子の画素欠陥を補正する処理、および、撮像時に発生するランダムノイズを低減する処理のうちの少なくとも一方の処理を行うようにしてもよい。   The first noise reduction unit 21 performs a process for reducing noise on the image data converted by the A / D conversion unit 2 and stored in the RAM 4 based on a noise reduction gain NR1 described later. This noise reduction process is a process for correcting pixel defects of the image sensor and a process for reducing random noise generated during imaging. However, at least one of a process for correcting pixel defects of the image sensor and a process for reducing random noise generated during imaging may be performed.

ホワイトバランス補正部22は、ノイズ低減後の画像データのホワイトバランスを補正する処理を行う。   The white balance correction unit 22 performs a process of correcting the white balance of the image data after noise reduction.

同時化処理部23は、ベイヤー配列による画像データから、1画素あたりR、G、Bの情報からなる画像データへ同時化する処理を行う。同時化された画像データは、色変換部24で所定の色変換処理が行われた後、階調変換部25で階調変換処理(第1の階調変換処理)が行われる。   The synchronization processing unit 23 performs a process of synchronizing image data based on the Bayer array into image data including R, G, and B information per pixel. The synchronized image data is subjected to predetermined color conversion processing by the color conversion unit 24 and then subjected to gradation conversion processing (first gradation conversion processing) by the gradation conversion unit 25.

YC変換部26は、階調変換処理後の画像データを、Y(輝度)信号とC(色)信号とに変換する。変換されたY信号は加算部36へ出力され、C信号は加算部37へ出力される。   The YC conversion unit 26 converts the image data after the gradation conversion process into a Y (luminance) signal and a C (color) signal. The converted Y signal is output to the adder 36, and the C signal is output to the adder 37.

エッジ抽出部27は、第1ノイズ低減部21でノイズ低減処理が行われた画像データから、エッジを抽出する処理を行う。エッジ強調部28は、エッジ抽出部27で抽出されたエッジのデータに所定のゲインを乗じるエッジ強調処理を行う。   The edge extraction unit 27 performs processing for extracting an edge from the image data on which the noise reduction processing has been performed by the first noise reduction unit 21. The edge emphasizing unit 28 performs edge emphasis processing that multiplies the edge data extracted by the edge extracting unit 27 by a predetermined gain.

乗算部38は、ROM5に格納されている粒状パターンのY成分データに、後述するゲインGRN_Yを乗算して、加算部36に出力する。加算部36は、Y信号に、エッジ強調部28から入力されるエッジデータ、および、乗算部38から入力される粒状パターンのY成分データを加算する。Y信号は、撮影時およびRAWデータ編集時にはYC変換部26から入力され、JPEG圧縮データ編集時には、RAM4から入力される。加算部36から出力されるY信号は、Y階調変換部29で後述する階調変換処理(第2の階調変換処理)が行われた後、Y第2ノイズ低減部30でノイズを低減する処理が行われる。   The multiplication unit 38 multiplies the Y component data of the granular pattern stored in the ROM 5 by a gain GRN_Y described later and outputs the result to the addition unit 36. The addition unit 36 adds the edge data input from the edge enhancement unit 28 and the Y component data of the granular pattern input from the multiplication unit 38 to the Y signal. The Y signal is input from the YC conversion unit 26 during shooting and RAW data editing, and is input from the RAM 4 during JPEG compression data editing. The Y signal output from the adder 36 is subjected to a tone conversion process (second tone conversion process), which will be described later, in the Y tone converter 29 and then reduced in noise by the Y second noise reduction unit 30. Processing is performed.

乗算部39は、ROM5に格納されている粒状パターンのC成分データに、後述するゲインGRN_Cを乗算して、加算部37に出力する。加算部37は、C信号に、乗算部39から入力される粒状パターンのC成分データを加算する。C信号は、撮影時およびRAWデータ編集時にはYC変換部26から入力され、JPEG圧縮データ編集時には、RAM4から入力される。加算部37から出力されるC信号は、C階調変換部31で後述する階調変換処理(第2の階調変換処理)が行われた後、C第2ノイズ低減部32でノイズを低減する処理が行われる。   The multiplier 39 multiplies the C component data of the granular pattern stored in the ROM 5 by a gain GRN_C described later, and outputs the result to the adder 37. The addition unit 37 adds the C component data of the granular pattern input from the multiplication unit 39 to the C signal. The C signal is input from the YC conversion unit 26 during shooting and RAW data editing, and is input from the RAM 4 during JPEG compression data editing. The C signal output from the adding unit 37 is subjected to a tone conversion process (second tone conversion process) described later in the C tone conversion unit 31 and then reduced in noise by the C second noise reduction unit 32. Processing is performed.

リサイズ部33は、ノイズ低減処理後のY信号およびC信号を、記録時の画像サイズに合わせてリサイズする。JPEG圧縮部34は、リサイズされたY信号およびC信号に対してJPEG圧縮を行う。JPEG圧縮後のデータは、I/F9を介して記録媒体10に記録される。JPEG伸長部35は、記録媒体10に記録されているJPEG圧縮データを読み出して、圧縮前の状態に戻す伸長処理を行う。   The resizing unit 33 resizes the Y signal and C signal after the noise reduction processing according to the image size at the time of recording. The JPEG compression unit 34 performs JPEG compression on the resized Y signal and C signal. The data after JPEG compression is recorded on the recording medium 10 via the I / F 9. The JPEG decompression unit 35 performs decompression processing for reading JPEG compressed data recorded on the recording medium 10 and returning it to the state before compression.

=撮影時の処理フロー=
図3Aおよび図3Bは、一実施形態に係る画像処理装置を含むデジタルカメラによる撮影時の処理フローを示すフローチャートである。ユーザによってレリーズボタンがオンされると、ステップS10の処理が開始される。
= Processing flow during shooting =
3A and 3B are flowcharts showing a processing flow at the time of shooting by a digital camera including the image processing apparatus according to the embodiment. When the release button is turned on by the user, the process of step S10 is started.

ステップS10では、周知の測光処理および測距処理が実行され、続くステップS20では、周知の露出制御および焦点制御が実行される。ステップS30では、撮像部1にて撮像処理が実行される。ステップS40では、撮像部1で撮像処理が実行された後、A/D変換部2でA/D変換処理が行われることによって得られた画像データをRAM4に一時的に格納する。   In step S10, known photometry processing and distance measurement processing are executed, and in subsequent step S20, known exposure control and focus control are executed. In step S <b> 30, an imaging process is executed in the imaging unit 1. In step S <b> 40, after the imaging process is executed by the imaging unit 1, the image data obtained by performing the A / D conversion process by the A / D conversion unit 2 is temporarily stored in the RAM 4.

ステップS50では、画像の記録形式がJPEG形式であるか、RAW形式であるかを判定する。画像の記録形式は、撮影前に、ユーザが操作部7を操作することにより、設定することができる。画像の記録形式がJPEG形式であると判定すると、ステップS60に進み、RAW形式であると判定すると、図3BのステップS250に進む。   In step S50, it is determined whether the image recording format is the JPEG format or the RAW format. The image recording format can be set by the user operating the operation unit 7 before shooting. If it is determined that the image recording format is the JPEG format, the process proceeds to step S60. If it is determined that the image recording format is the RAW format, the process proceeds to step S250 in FIG. 3B.

ステップS60では、画像の記録モードが銀塩調モードであるか、通常モードであるかを判定する。銀塩調モードとは、銀塩写真と同様の視覚効果を得るために、銀塩粒子による粒状感に似せた粒状パターンを画像データに重畳するモードである。画像の記録モードは、撮影前に、ユーザが操作部7を操作することにより、設定することができる。画像の記録モードが通常モードであると判定するとステップS70に進む。   In step S60, it is determined whether the image recording mode is the silver salt tone mode or the normal mode. The silver salt tone mode is a mode in which a granular pattern resembling the granular feeling of silver salt particles is superimposed on image data in order to obtain a visual effect similar to that of a silver salt photograph. The image recording mode can be set by the user operating the operation unit 7 before shooting. If it is determined that the image recording mode is the normal mode, the process proceeds to step S70.

ステップS70では、通常モードにおけるノイズ低減ゲインNR1を算出する。図4は、通常モードにおける各種ゲイン、撮像ノイズ、および、画像ノイズの一例を示す図である。各種ゲインには、第1ノイズ低減部21でノイズ低減処理を行う際に用いるゲインNR1、粒状パターンのY成分に乗じるゲインGRN_Y、粒状パターンのC成分に乗じるゲインGRN_C、Y第2ノイズ低減部30でノイズ低減処理を行う際に用いるゲインNR2_Y、および、C第2ノイズ低減部32でノイズ低減処理を行う際に用いるゲインNR2_Cが含まれる。   In step S70, the noise reduction gain NR1 in the normal mode is calculated. FIG. 4 is a diagram illustrating an example of various gains, imaging noise, and image noise in the normal mode. For various gains, the gain NR1 used when the first noise reduction unit 21 performs noise reduction, the gain GRN_Y multiplied by the Y component of the granular pattern, the gain GRN_C multiplied by the C component of the granular pattern, and the Y second noise reduction unit 30 , The gain NR2_Y used when the noise reduction process is performed, and the gain NR2_C used when the C second noise reduction unit 32 performs the noise reduction process.

各種ゲインは、撮影時に設定されるISO感度に応じて決められる。例えば、ISO感度が800の場合には、ゲインNR1は4、ゲインNR2_Yは2、ゲインNR2_Cは2となる。ただし、通常モードでは、画像データに粒状パターンを重畳させる処理を行わないため、ゲインGRN_Y、GRN_Cの欄は、空白となっている。なお、ゲインGRN_Y、GRN_Cをそれぞれ0として、粒状パターンを重畳させる処理を行うようにしてもよい。   Various gains are determined according to ISO sensitivity set at the time of shooting. For example, when the ISO sensitivity is 800, the gain NR1 is 4, the gain NR2_Y is 2, and the gain NR2_C is 2. However, in the normal mode, since the process of superimposing the granular pattern on the image data is not performed, the fields of the gains GRN_Y and GRN_C are blank. Note that the gains GRN_Y and GRN_C may be set to 0, and the process of superimposing the granular pattern may be performed.

各ISO感度に対応する撮像ノイズは、ISO感度100の場合の撮像ノイズを基準としたものであり、値が小さくなるほど、ノイズが大きいことを示す。すなわち、ISO感度が大きくなるほど、撮像ノイズは大きくなる。同様に、画像ノイズも、ISO感度100の場合の画像ノイズを基準としており、値が小さくなるほど、ノイズが大きいことを示している。従って、ISO感度が大きくなるほど、画像ノイズも大きくなる。   The imaging noise corresponding to each ISO sensitivity is based on the imaging noise in the case of ISO sensitivity 100, and the smaller the value, the greater the noise. That is, as the ISO sensitivity increases, the imaging noise increases. Similarly, the image noise is based on the image noise when the ISO sensitivity is 100, and the smaller the value, the larger the noise. Accordingly, the image noise increases as the ISO sensitivity increases.

ROM5には、図4に示すような、各ISO感度に応じた各種ゲインを定めたデータテーブルが格納されているので、このデータテーブルを読み出して、撮影時のISO感度に応じたゲインNR1を算出する。なお、ゲインNR1の値が大きいほど、ノイズ低減処理時のノイズ低減効果は大きくなる。   The ROM 5 stores a data table in which various gains corresponding to each ISO sensitivity as shown in FIG. 4 are stored. The data table is read and a gain NR1 corresponding to the ISO sensitivity at the time of shooting is calculated. To do. Note that the greater the value of the gain NR1, the greater the noise reduction effect during the noise reduction process.

一方、ステップS60において、画像の記録モードが銀塩調モードであると判定すると、ステップS80に進む。ステップS80では、銀塩調モードにおけるノイズ低減ゲインNR1を算出する。図5は、銀塩調モードにおける各種ゲイン、撮像ノイズ、および、画像ノイズの一例を示す図である。図5において、各種ゲイン、撮像ノイズ、および、画像ノイズの見方は、図4と同じである。   On the other hand, if it is determined in step S60 that the image recording mode is the silver salt tone mode, the process proceeds to step S80. In step S80, the noise reduction gain NR1 in the silver salt tone mode is calculated. FIG. 5 is a diagram illustrating an example of various gains, imaging noise, and image noise in the silver salt tone mode. In FIG. 5, various gains, imaging noise, and image noise are viewed in the same way as in FIG.

銀塩調モードでは、ISO感度によらず、最終的に得られる画像データ上の粒状感を一定に保つために、ISO感度に応じた撮像ノイズの増幅に合わせて、合成する粒状パターンの強度(ゲインGRN_Y、GRN_C)、および、粒状パターン合成後のノイズ低減強度(ゲインNR2_Y、NR2_C)を制御する。ここでは、ISO感度が高くなるほど、ゲインGRN_Y、GRN_Cを小さくして、画像データに合成する粒状パターンの強度を弱くしている。図5に示すように、粒状パターン付加後の画像データの画像ノイズは、ISO感度によらず一定になっている。   In the silver salt tone mode, in order to keep the granularity on the finally obtained image data constant regardless of the ISO sensitivity, the intensity of the granular pattern to be synthesized (in accordance with the amplification of imaging noise in accordance with the ISO sensitivity) Gain GRN_Y, GRN_C) and noise reduction intensity (gain NR2_Y, NR2_C) after the granular pattern synthesis are controlled. Here, as the ISO sensitivity increases, the gains GRN_Y and GRN_C are reduced to reduce the intensity of the granular pattern to be combined with the image data. As shown in FIG. 5, the image noise of the image data after adding the granular pattern is constant regardless of the ISO sensitivity.

また、画像データに重畳する粒状パターンの粒状感を保つために、通常モードに比べて、ゲインNR2_Y、NR2_Cを弱めに設定している。さらに、粒状パターンの強度は、相対的に輝度(Y)に対して、色差(C)を弱めて、色ノイズが不必要に出ないようにしている。   Further, in order to maintain the granularity of the granular pattern superimposed on the image data, the gains NR2_Y and NR2_C are set weaker than in the normal mode. Furthermore, the intensity of the granular pattern is such that the color difference (C) is weakened relative to the luminance (Y), so that color noise is not unnecessarily generated.

ROM5には、図5に示すような、ISO感度に応じた各種ゲインを定めたデータテーブルが格納されているので、このデータテーブルを読み出して、撮影時のISO感度に応じたゲインNR1を算出する。   The ROM 5 stores a data table in which various gains corresponding to the ISO sensitivity as shown in FIG. 5 are stored. The data table is read to calculate the gain NR1 corresponding to the ISO sensitivity at the time of shooting. .

ステップS90では、第1ノイズ低減部21において、RAM4に格納されている画像データを読み出して、ステップS70またはステップS80で算出したノイズ低減ゲインNR1を用いて、ノイズを低減する処理を行う。   In step S90, the first noise reduction unit 21 reads the image data stored in the RAM 4, and performs noise reduction processing using the noise reduction gain NR1 calculated in step S70 or step S80.

ステップS100では、ホワイトバランス補正部22において、ノイズ低減処理後の画像データに対して、ホワイトバランスを補正する処理を行う。ステップS110では、同時化処理部23において、同時化処理が行われ、ステップS120では、色変換部24において、色変換処理が行われる。   In step S100, the white balance correction unit 22 performs a process of correcting the white balance on the image data after the noise reduction process. In step S110, the synchronization processing unit 23 performs synchronization processing, and in step S120, the color conversion unit 24 performs color conversion processing.

ステップS130では、階調変換部25において、階調変換処理を行う。ここでは、表示部8のガンマ特性を考慮して、暗部を伸長し、明部を圧縮するような階調変換処理を行う。図7は、ステップS130で階調変換処理を行う際の階調変換特性の一例を示す図である。階調変換処理を行うと、図3BのステップS140に進む。   In step S130, the tone conversion unit 25 performs tone conversion processing. Here, in consideration of the gamma characteristic of the display unit 8, gradation conversion processing is performed such that the dark part is expanded and the bright part is compressed. FIG. 7 is a diagram illustrating an example of gradation conversion characteristics when the gradation conversion process is performed in step S130. When the gradation conversion process is performed, the process proceeds to step S140 in FIG. 3B.

ステップS140では、YC変換部26において、階調変換処理後の画像データを、Y(輝度)信号とC(色)信号とに変換する。   In step S140, the YC conversion unit 26 converts the image data after the gradation conversion process into a Y (luminance) signal and a C (color) signal.

ステップS150では、画像の記録モードが銀塩調モードであるか、通常モードであるかを判定する。この判定は、ステップS60の判定と同じである。画像の記録モードが通常モードであると判定するとステップS210に進み、銀塩調モードであると判定すると、ステップS160に進む。   In step S150, it is determined whether the image recording mode is the silver salt tone mode or the normal mode. This determination is the same as the determination in step S60. If it is determined that the image recording mode is the normal mode, the process proceeds to step S210. If it is determined that the image recording mode is the silver salt tone mode, the process proceeds to step S160.

ステップS160では、銀塩調モードにおけるゲインGRN_Y、GRN_Cを算出する。ゲインGRN_Y、GRN_Cの算出では、上述した図5に示すようなデータテーブルをROM5から読み出して、撮影時のISO感度に応じたゲインGRN_Y、GRN_Cを算出する。   In step S160, gains GRN_Y and GRN_C in the silver salt tone mode are calculated. In calculating the gains GRN_Y and GRN_C, the data table as shown in FIG. 5 described above is read from the ROM 5, and the gains GRN_Y and GRN_C corresponding to the ISO sensitivity at the time of shooting are calculated.

ステップS170では、乗算部38において、ROM5から粒状パターンのY成分データを読み出し、読み出した粒状パターンのY成分データに、ステップS160で算出されたゲインGRN_Yを乗算する。また、乗算部39において、ROM5から粒状パターンのC成分データを読み出し、読み出した粒状パターンのC成分データに、ステップS160で算出されたゲインGRN_Cを乗算する。   In step S170, the multiplication unit 38 reads the Y component data of the granular pattern from the ROM 5, and multiplies the read G component data of the granular pattern by the gain GRN_Y calculated in step S160. Further, the multiplication unit 39 reads the granular component C component data from the ROM 5 and multiplies the read granular pattern C component data by the gain GRN_C calculated in step S160.

ステップS180では、加算部36において、YC変換部26で変換されたY信号に、エッジ強調部28から入力されるエッジデータ、および、乗算部38から入力される粒状パターンのY成分データを加算する。また、加算部37において、YC変換部26で変換されたC信号に、乗算部39から入力される粒状パターンのC成分データを加算する。   In step S180, the addition unit 36 adds the edge data input from the edge enhancement unit 28 and the Y component data of the granular pattern input from the multiplication unit 38 to the Y signal converted by the YC conversion unit 26. . Further, the addition unit 37 adds the C component data of the granular pattern input from the multiplication unit 39 to the C signal converted by the YC conversion unit 26.

ステップS190では、Y階調変換部29において、Y信号用の階調変換テーブルをROM5から読み出すとともに、C階調変換部31において、C信号用の階調変換テーブルをROM5から読み出す。   In step S190, the Y gradation conversion unit 29 reads the Y signal gradation conversion table from the ROM 5, and the C gradation conversion unit 31 reads the C signal gradation conversion table from the ROM 5.

図8は、Y信号の階調変換処理を行う際の階調変換特性の一例を示す図である。この階調変換特性は、画像データのコントラストを強調する特性、すなわち、暗部および明部を圧縮して、中間調を伸長するような特性となっている。また、図9は、C信号の階調変換処理を行う際の階調変換特性の一例を示す図である。ROM5には、図8に示すような階調変換特性の階調変換テーブル、および、図9に示すような階調変換特性の階調変換テーブルが格納されている。ROM5から階調変換テーブルを読み出すと、ステップS200に進む。   FIG. 8 is a diagram illustrating an example of gradation conversion characteristics when performing Y signal gradation conversion processing. This gradation conversion characteristic is a characteristic that enhances the contrast of image data, that is, a characteristic that compresses a dark part and a bright part and expands a halftone. FIG. 9 is a diagram illustrating an example of gradation conversion characteristics when performing gradation conversion processing of the C signal. The ROM 5 stores a gradation conversion table having gradation conversion characteristics as shown in FIG. 8 and a gradation conversion table having gradation conversion characteristics as shown in FIG. When the gradation conversion table is read from the ROM 5, the process proceeds to step S200.

ステップS200では、Y階調変換部29において、加算部36から入力されるY信号に対して、ステップS190で読み込んだY信号用の階調変換テーブルを用いて、階調変換処理を行うとともに、C階調変換部31において、加算部37から入力されるC信号に対して、ステップS190で読み込んだC信号用の階調変換テーブルを用いて、階調変換処理を行う。   In step S200, the Y gradation conversion unit 29 performs gradation conversion processing on the Y signal input from the addition unit 36 using the Y signal gradation conversion table read in step S190. In the C gradation conversion unit 31, gradation conversion processing is performed on the C signal input from the addition unit 37 using the C signal gradation conversion table read in step S 190.

ステップS210では、Y第2ノイズ低減部30において、階調変換処理後のY信号に対して、ノイズを低減する処理を行うとともに、C第2ノイズ低減部32において、階調変換処理後のC信号に対して、ノイズを低減する処理を行う。ノイズ低減処理では、通常モードまたは銀塩調モードに応じたゲインNR2_Y、NR2_Cを用いる。例えば、ステップS150の判定において、通常モードと判定した場合には、図4に示すようなデータテーブルをROM5から読み出して、撮影時のISO感度に応じたゲインNR2_Y、NR2_Cを求める。また、ステップS150の判定において、銀塩調モードと判定した場合には、図5に示すようなデータテーブルをROM5から読み出して、撮影時のISO感度に応じたゲインNR2_Y、NR2_Cを求める。Y第2ノイズ低減部30は、ゲインNR2_Yを用いて、Y信号のノイズ低減処理を行い、C第2ノイズ低減部32は、ゲインNR2_Cを用いて、C信号のノイズ低減処理を行う。   In step S210, the Y second noise reduction unit 30 performs noise reduction processing on the Y signal after the tone conversion processing, and the C second noise reduction unit 32 performs C processing after the tone conversion processing. A process for reducing noise is performed on the signal. In the noise reduction process, gains NR2_Y and NR2_C corresponding to the normal mode or the silver salt tone mode are used. For example, if it is determined in step S150 that the normal mode is selected, a data table as shown in FIG. 4 is read from the ROM 5, and gains NR2_Y and NR2_C corresponding to the ISO sensitivity at the time of shooting are obtained. If it is determined in step S150 that the silver salt tone mode is selected, a data table as shown in FIG. 5 is read from the ROM 5, and gains NR2_Y and NR2_C corresponding to the ISO sensitivity at the time of shooting are obtained. The Y second noise reduction unit 30 performs noise reduction processing of the Y signal using the gain NR2_Y, and the C second noise reduction unit 32 performs noise reduction processing of the C signal using the gain NR2_C.

ステップS220では、リサイズ部33において、ノイズ低減処理後のY信号およびC信号を、記録時の画像サイズに合わせてリサイズする。ステップS230では、JPEG圧縮部34において、リサイズされたY信号およびC信号に対してJPEG圧縮を行う。ステップS240では、JPEG圧縮されたY信号およびC信号をRAM4に格納する。   In step S220, the resizing unit 33 resizes the Y signal and C signal after the noise reduction processing according to the image size at the time of recording. In step S230, the JPEG compression unit 34 performs JPEG compression on the resized Y signal and C signal. In step S240, the Y signal and the C signal compressed with JPEG are stored in the RAM 4.

ステップS250では、画像の記録モードや露出条件などの撮影情報をフィルヘッダ情報として作成し、ステップS260では、作成されたファイルヘッダ情報を、JPEG圧縮されてRAM4に一時的に格納されたデータに付加して、I/F9を介して記録媒体10に記録する。   In step S250, shooting information such as an image recording mode and exposure conditions is created as fill header information. In step S260, the created file header information is JPEG compressed and added to data temporarily stored in RAM4. Then, recording is performed on the recording medium 10 via the I / F 9.

=RAWデータ編集時の処理フロー=
図3Aに示す撮影時の処理フローを示すフローチャートにおいて、ステップS50で画像の記録形式がRAW形式であると判定されると、ステップS60以後の画像処理は行われずに、RAWデータとして、記録媒体10に記録される。以下では、記録媒体10に記録されたRAWデータを読み出して、画像処理を行う場合の処理について説明する。
= Processing flow when editing RAW data =
In the flowchart showing the processing flow at the time of photographing shown in FIG. 3A, if it is determined in step S50 that the image recording format is the RAW format, the image processing after step S60 is not performed, and the recording medium 10 is processed as RAW data. To be recorded. In the following, processing in the case where image processing is performed by reading RAW data recorded on the recording medium 10 will be described.

図10は、RAWデータの編集時の処理フローを示すフローチャートである。図10のフローチャートにおいて、図3Aのフローチャートで行われる処理と同じ処理を行うステップについては、同じステップ番号を付して詳しい説明は省略する。また、図10のステップS130より後の処理は、図3Bに示すフローチャートの処理と同じであるため、図および説明を省略する。   FIG. 10 is a flowchart showing a processing flow when editing RAW data. In the flowchart of FIG. 10, steps that perform the same processes as those in the flowchart of FIG. 3A are assigned the same step numbers, and detailed descriptions thereof are omitted. Moreover, since the process after step S130 of FIG. 10 is the same as the process of the flowchart shown to FIG. 3B, a figure and description are abbreviate | omitted.

ステップS1000では、RAW形式の画像データを、I/F9を介して記録媒体10から読み出す。ステップS1010では、画像データに付加されたファイルヘッダ情報から、撮影情報を読み出す。ステップS40では、読み出した画像データおよび撮影情報をRAM4に格納する。   In step S1000, RAW image data is read from the recording medium 10 via the I / F 9. In step S1010, shooting information is read from the file header information added to the image data. In step S40, the read image data and shooting information are stored in the RAM 4.

ステップS60以後の処理は、図3Aおよび図3Bに示すフローチャートの処理と同じである。   The processing after step S60 is the same as the processing of the flowcharts shown in FIGS. 3A and 3B.

=JPEG圧縮データ編集時の処理=
図3Aおよび図3Bに示す撮影時の処理フローを示すフローチャートにおいて、ステップS60およびステップS150の判定で画像の記録モードが通常モードであると判定された場合、画像データには、銀塩粒子による粒状感に似せた粒状パターンは重畳しない。以下では、撮影時に通常モードで記録された画像データを読み出して、銀塩粒子による粒状感に似せた粒状パターンを重畳して、記録媒体10に記録する処理について説明する。
= Processing when editing JPEG compressed data =
In the flowchart showing the processing flow at the time of photographing shown in FIGS. 3A and 3B, when it is determined that the image recording mode is the normal mode in the determinations in step S60 and step S150, the image data includes granular particles of silver salt particles. Granular patterns that resemble the feeling are not superimposed. Below, the process which reads the image data recorded in normal mode at the time of imaging | photography, superimposes the granular pattern resembling the granular feeling by silver salt particle | grains, and records on the recording medium 10 is demonstrated.

図11は、JPEG圧縮データの編集時の処理フローを示すフローチャートである。図11のフローチャートにおいて、図3A、図3B、および、図10のフローチャートで行われる処理と同じ処理を行うステップについては、同じステップ番号を付して詳しい説明は省略する。   FIG. 11 is a flowchart showing a processing flow when editing JPEG compressed data. In the flowchart of FIG. 11, steps that perform the same processes as the processes performed in the flowcharts of FIGS. 3A, 3 </ b> B, and FIG.

ステップS1100では、JPEG圧縮された画像データを、I/F9を介して記録媒体10から読み出す。   In step S1100, JPEG-compressed image data is read from the recording medium 10 via the I / F 9.

ステップS1110では、JPEG伸長部35において、ステップS1100で読み出した画像データを、JPEG圧縮前の状態に戻す伸長処理を行う。伸長処理が行われた画像データ、および、ステップS1010で読み出された撮影情報は、ステップS40において、RAM4に格納される。   In step S1110, the JPEG decompression unit 35 performs decompression processing for returning the image data read in step S1100 to the state before JPEG compression. The image data subjected to the decompression process and the shooting information read out in step S1010 are stored in the RAM 4 in step S40.

ステップS1120では、RAM4に格納された画像データを表示部8に表示する。これにより、ユーザは、粒状パターンを重畳する画像を確認することができる。   In step S1120, the image data stored in the RAM 4 is displayed on the display unit 8. Thereby, the user can confirm the image on which the granular pattern is superimposed.

ステップS160Aでは、JPEG圧縮データ編集時の銀塩調モードにおけるゲインGRN_Y、GRN_Cを算出する。図6は、JPEG圧縮データ編集時の処理で用いるデータテーブルの一例を示す図である。図6において、各種ゲイン、撮像ノイズ、および、画像ノイズの見方は、図4、図5と同じである。   In step S160A, gains GRN_Y and GRN_C in the silver salt tone mode when editing JPEG compressed data are calculated. FIG. 6 is a diagram illustrating an example of a data table used in the processing when editing JPEG compressed data. In FIG. 6, various gains, imaging noise, and image noise are viewed in the same way as in FIGS. 4 and 5.

JPEG圧縮データ編集時は、銀塩調モードでの撮影処理時に得られる画質と同等の画質を得るため、通常モードでの撮影時のISO感度およびゲインNR1を考慮し、粒状パターンの強度(GRN_Y、GRN_C)と合成後のノイズ低減強度(NR2_Y、NR_C)を制御する。   When editing JPEG compressed data, in order to obtain an image quality equivalent to the image quality obtained during the shooting process in the silver salt tone mode, the intensity of the granular pattern (GRN_Y, GRN_C) and noise reduction strength after synthesis (NR2_Y, NR_C) are controlled.

ROM5には、図6に示すような、ISO感度に応じた各種ゲインを定めたデータテーブルが格納されているので、このデータテーブルを読み出して、撮影時のISO感度に応じたゲインGRN_Y、GRN_Cを算出する。   The ROM 5 stores a data table in which various gains corresponding to the ISO sensitivity as shown in FIG. 6 are stored. The data table is read and gains GRN_Y and GRN_C corresponding to the ISO sensitivity at the time of shooting are stored. calculate.

ステップS210Aでは、Y第2ノイズ低減部30において、階調変換処理後のY信号に対して、ノイズを低減する処理を行うとともに、C第2ノイズ低減部32において、階調変換処理後のC信号に対して、ノイズを低減する処理を行う。ここでは、図6に示すようなデータテーブルをROM5から読み出して、撮影時のISO感度に応じたゲインNR2_Y、NR2_Cを求める。Y第2ノイズ低減部30は、求めたゲインNR2_Yを用いて、Y信号のノイズ低減処理を行い、C第2ノイズ低減部32は、求めたゲインNR2_Cを用いて、C信号のノイズ低減処理を行う。   In step S210A, the Y second noise reduction unit 30 performs noise reduction processing on the Y signal after the tone conversion processing, and the C second noise reduction unit 32 performs C processing after the tone conversion processing. A process for reducing noise is performed on the signal. Here, a data table as shown in FIG. 6 is read from the ROM 5, and gains NR2_Y and NR2_C corresponding to the ISO sensitivity at the time of shooting are obtained. The Y second noise reduction unit 30 performs noise reduction processing of the Y signal using the obtained gain NR2_Y, and the C second noise reduction unit 32 performs noise reduction processing of the C signal using the obtained gain NR2_C. Do.

以上、一実施形態における画像処理装置によれば、画像データに対して同時化処理を行った後に、所定の粒状パターンを付加する処理を行うので、粒状パターンを付加した後に同時化処理を行うことによって、銀塩粒子独特の細かな粒状感が失われたり、粒状パターンを画像の構造と認識し、本来画像にはない幾何パターンが発生してしまうという問題を防いで、銀塩写真の粒状感を適切に再現することができる。   As described above, according to the image processing apparatus in the embodiment, the processing for adding a predetermined granular pattern is performed after the synchronization processing is performed on the image data. Therefore, the synchronization processing is performed after the granular pattern is added. This eliminates the problem of losing the fine granularity unique to silver salt particles, or recognizing the granular pattern as the structure of an image and generating a geometric pattern that is not in the original image. Can be properly reproduced.

また、一実施形態における画像処理装置によれば、同時化処理が行われた画像データに対して第1の階調変換処理を行い、階調変換処理後の画像データに対して所定の粒状パターンを付加する。これにより、粒状パターンを付加した後に階調変換処理を行うことによって、暗部の粒状パターンが強調されて粒状感が損なわれるのを防ぐことができる。   In addition, according to the image processing apparatus in the embodiment, the first gradation conversion process is performed on the image data subjected to the synchronization process, and the predetermined granular pattern is applied to the image data after the gradation conversion process Is added. Thus, by performing the gradation conversion process after adding the granular pattern, it is possible to prevent the granular pattern in the dark portion from being emphasized and the granular feeling to be impaired.

さらに、一実施形態における画像処理装置によれば、粒状パターンを付加した画像データに対して、第1の階調変換処理とは異なる第2の階調変換処理を行うので、画像本来の階調特性と階調レベルに応じた粒状感の制御とを両立させることができる。この第2の階調変換処理を、画像データのコントラストを強調する階調変換処理とするので、ハイライトおよびシャドーの粒状感を抑えつつ、中間調の粒状感を強調して、銀塩写真が持つ独特の粒状感を表現することができる。   Furthermore, according to the image processing apparatus in the embodiment, the second gradation conversion process different from the first gradation conversion process is performed on the image data to which the granular pattern is added. It is possible to achieve both characteristics and graininess control according to the gradation level. Since this second gradation conversion process is a gradation conversion process that enhances the contrast of image data, while suppressing the graininess of highlights and shadows, A unique grainy feel can be expressed.

また、一実施形態における画像処理装置によれば、所定の粒状パターンが付加される前の画像データから、エッジ強調処理で用いるエッジを抽出する。粒状パターン付加後の画像データからエッジを抽出する処理を行うと、エッジではない部分を誤ってエッジとして抽出してしまう可能性があるが、粒状パターン付加前の画像データからエッジを抽出することにより、エッジの誤抽出を防ぐことができる。   In addition, according to the image processing apparatus in one embodiment, an edge used in edge enhancement processing is extracted from image data before a predetermined granular pattern is added. When processing to extract an edge from image data after adding a granular pattern, there is a possibility that a part that is not an edge will be mistakenly extracted as an edge, but by extracting an edge from image data before adding a granular pattern, , It is possible to prevent erroneous extraction of edges.

また、一実施形態における画像処理装置によれば、画像データに付加する粒状パターンの強度を調整するので、所望の粒状パターンを付加することができる。特に、撮影時の撮影感度に応じて、粒状パターンの強度を調整するので、撮影感度に応じて生じるノイズ成分を考慮して、適切な粒状パターンを付加することができる。   Further, according to the image processing apparatus in one embodiment, the intensity of the granular pattern added to the image data is adjusted, so that a desired granular pattern can be added. In particular, since the intensity of the granular pattern is adjusted according to the photographing sensitivity at the time of photographing, an appropriate granular pattern can be added in consideration of a noise component generated according to the photographing sensitivity.

なお、上述した実施形態の説明では、画像処理装置をデジタルスチルカメラに適用した例を挙げて説明したが、実施形態で説明した処理を実現するためのプログラムをコンピュータが実行する構成とすることもできる。すなわち、CPU、RAM等の主記憶装置、実施形態で説明した処理の全て或いは一部を実現させるためのプログラムが記憶されたコンピュータ読み取り可能な記憶媒体を備えたコンピュータにおいて、CPUが上記記憶媒体に記憶されているプログラムを読み出して、情報の加工・演算処理を実行することにより、上述の画像処理装置と同様の処理を実現させる。   In the above description of the embodiment, an example in which the image processing apparatus is applied to a digital still camera has been described. However, a computer may execute a program for realizing the processing described in the embodiment. it can. That is, in a computer having a main storage device such as a CPU and a RAM and a computer-readable storage medium storing a program for realizing all or part of the processing described in the embodiment, the CPU is stored in the storage medium. By reading the stored program and executing information processing / calculation processing, processing similar to that of the above-described image processing apparatus is realized.

ここで、コンピュータ読み取り可能な記録媒体とは、磁気ディスク、光磁気ディスク、CD−ROM、DVD−ROM、半導体メモリ等をいう。また、上述したプログラムを通信回線によってコンピュータに配信し、この配信を受けたコンピュータがプログラムを実行するようにしても良い。   Here, the computer-readable recording medium refers to a magnetic disk, a magneto-optical disk, a CD-ROM, a DVD-ROM, a semiconductor memory, and the like. Further, the above-described program may be distributed to a computer via a communication line, and the computer that has received the distribution may execute the program.

本発明は、上述した一実施形態に限定されるものではなく、本発明の要旨を逸脱しない範囲内で様々な変形や応用が可能である。例えば、画像データに付加する粒状パターンの強度を決定するためのゲインGRN_Y、GRN_Cは、撮影時のISO感度に応じて求めるようにしたが、操作部7の操作により、ユーザが任意の値に設定できるようにしてもよい。この方法によれば、ユーザの希望する強度の粒状パターンを画像データに付加することができる。また、画像上のノイズの程度に応じて、粒状パターンの強度を決定するためのゲインGRN_Y、GRN_Cを設定するようにしてもよい。   The present invention is not limited to the above-described embodiment, and various modifications and applications can be made without departing from the gist of the present invention. For example, the gains GRN_Y and GRN_C for determining the intensity of the granular pattern to be added to the image data are obtained according to the ISO sensitivity at the time of shooting. However, the user can set an arbitrary value by operating the operation unit 7. You may be able to do it. According to this method, a granular pattern having the intensity desired by the user can be added to the image data. Further, gains GRN_Y and GRN_C for determining the intensity of the granular pattern may be set according to the degree of noise on the image.

上述した実施形態では、画像データをJPEG圧縮するものとして説明したが、画像データの圧縮方式は、JPEG形式に限定されることはない。   In the above-described embodiment, the image data is described as being JPEG-compressed. However, the image data compression method is not limited to the JPEG format.

一実施形態に係る画像処理装置を含むデジタルカメラの構成を示すブロック図である。1 is a block diagram illustrating a configuration of a digital camera including an image processing apparatus according to an embodiment. 画像処理回路の詳細な構成を示すブロック図である。It is a block diagram which shows the detailed structure of an image processing circuit. 一実施形態に係る画像処理装置を含むデジタルカメラによる撮影時の処理フローの前段を示すフローチャートである。It is a flowchart which shows the front | former stage of the processing flow at the time of imaging | photography with the digital camera containing the image processing apparatus which concerns on one Embodiment. 一実施形態に係る画像処理装置を含むデジタルカメラによる撮影時の処理フローの後段を示すフローチャートである。It is a flowchart which shows the back | latter stage of the processing flow at the time of imaging | photography with the digital camera containing the image processing apparatus which concerns on one Embodiment. 通常モードにおける各種ゲイン、撮像ノイズ、および、画像ノイズの一例を示す図である。It is a figure which shows an example of the various gains, imaging noise, and image noise in normal mode. 銀塩調モードにおける各種ゲイン、撮像ノイズ、および、画像ノイズの一例を示す図である。It is a figure which shows an example of the various gains, imaging noise, and image noise in a silver salt tone mode. JPEG圧縮データ編集時における各種ゲイン、撮像ノイズ、および、画像ノイズの一例を示す図である。It is a figure which shows an example of the various gains at the time of JPEG compression data editing, imaging noise, and image noise. 粒状パターンを合成する前に行う階調変換処理の階調変換特性の一例を示す図である。It is a figure which shows an example of the gradation conversion characteristic of the gradation conversion process performed before synthesize | combining a granular pattern. Y信号の階調変換処理を行う際の階調変換特性の一例を示す図である。It is a figure which shows an example of the gradation conversion characteristic at the time of performing the gradation conversion process of Y signal. C信号の階調変換処理を行う際の階調変換特性の一例を示す図である。It is a figure which shows an example of the gradation conversion characteristic at the time of performing the gradation conversion process of C signal. RAWデータの編集時の処理フローを示すフローチャートである。It is a flowchart which shows the processing flow at the time of editing of RAW data. JPEG圧縮データの編集時の処理フローを示すフローチャートである。It is a flowchart which shows the processing flow at the time of edit of JPEG compression data.

符号の説明Explanation of symbols

1…撮像部、2…A/D変換部、3…マイコン、4…RAM、5…ROM、6…画像処理回路、7…操作部、8…表示部、9…I/F、10…記録媒体、21…第1ノイズ低減部、22…ホワイトバランス補正部、23…同時化処理部、24…色変換部、25…階調変換部、26…YC変換部、27…エッジ抽出部、28…エッジ強調部、29…Y階調変換部、30…Y第2ノイズ低減部、31…C階調変換部、32…C第2ノイズ低減部、33…リサイズ部、34…JPEG圧縮部、35…JPEG伸長部、36…加算部、37…加算部、38…乗算部、39…乗算部 DESCRIPTION OF SYMBOLS 1 ... Imaging part, 2 ... A / D conversion part, 3 ... Microcomputer, 4 ... RAM, 5 ... ROM, 6 ... Image processing circuit, 7 ... Operation part, 8 ... Display part, 9 ... I / F, 10 ... Recording Medium 21. First noise reducing unit 22 White balance correcting unit 23 Synchronizing unit 24 Color converting unit 25 Tone converting unit 26 YC converting unit 27 Edge extracting unit 28 ... Edge emphasis part, 29 ... Y gradation conversion part, 30 ... Y second noise reduction part, 31 ... C gradation conversion part, 32 ... C second noise reduction part, 33 ... Resize part, 34 ... JPEG compression part, 35 ... JPEG decompression unit, 36 ... addition unit, 37 ... addition unit, 38 ... multiplication unit, 39 ... multiplication unit

Claims (12)

複数のカラーフィルタを配置した撮像素子を有する撮像装置により得られた画像データに基づいて、1画素あたり複数の色を有する画像データを生成する同時化処理部と、
前記同時化処理部によって生成された画像データに対して、所定の粒状パターンを付加する粒状パターン付加部と、
を備えることを特徴とする画像処理装置。
A synchronization processing unit for generating image data having a plurality of colors per pixel based on image data obtained by an image pickup apparatus having an image pickup element in which a plurality of color filters are arranged;
A granular pattern addition unit for adding a predetermined granular pattern to the image data generated by the synchronization processing unit;
An image processing apparatus comprising:
前記同時化処理部によって生成された画像データに対して第1の階調変換処理を施す第1階調変換部をさらに備え、
前記粒状パターン付加部は、前記第1の階調変換処理が行われた画像データに対して、前記所定の粒状パターンを付加することを特徴とする請求項1に記載の画像処理装置。
A first gradation conversion unit that performs a first gradation conversion process on the image data generated by the synchronization processing unit;
The image processing apparatus according to claim 1, wherein the granular pattern adding unit adds the predetermined granular pattern to the image data on which the first gradation conversion processing has been performed.
前記粒状パターンを付加された画像データに対して、前記第1の階調変換処理とは異なる第2の階調変換処理を行う第2階調変換部をさらに備えることを特徴とする請求項2に記載の画像処理装置。   3. The image processing apparatus according to claim 2, further comprising a second gradation conversion unit that performs a second gradation conversion process different from the first gradation conversion process on the image data to which the granular pattern is added. An image processing apparatus according to 1. 前記第2階調変換部は、前記第2の階調変換処理として、画像データのコントラストを強調する階調変換処理を行うことを特徴とする請求項3に記載の画像処理装置。   The image processing apparatus according to claim 3, wherein the second gradation conversion unit performs gradation conversion processing for enhancing contrast of image data as the second gradation conversion processing. 前記所定の粒状パターンが付加される前の画像データから、エッジ強調処理で用いるエッジを抽出するエッジ抽出部をさらに備えることを特徴とする請求項1に記載の画像処理装置。   The image processing apparatus according to claim 1, further comprising an edge extraction unit that extracts an edge used in edge enhancement processing from image data before the predetermined granular pattern is added. 画像データに付加する前記所定の粒状パターンの強度を調整する強度調整部をさらに備えることを特徴とする請求項1から請求項5のいずれか一項に記載の画像処理装置。   The image processing apparatus according to claim 1, further comprising an intensity adjusting unit that adjusts the intensity of the predetermined granular pattern added to the image data. 前記強度調整部は、前記撮像装置による撮影時の撮影感度に応じて、前記所定の粒状パターンの強度を調整することを特徴とする請求項6に記載の画像処理装置。   The image processing apparatus according to claim 6, wherein the intensity adjustment unit adjusts the intensity of the predetermined granular pattern according to imaging sensitivity at the time of imaging by the imaging apparatus. 画像データに付加する前記所定の粒状パターンの強度を設定するための設定部をさらに備え、
前記強度調整部は、ユーザによる前記設定部の操作に基づいて、前記所定の粒状パターンの強度を調整することを特徴とする請求項6に記載の画像処理装置。
A setting unit for setting the intensity of the predetermined granular pattern to be added to the image data;
The image processing apparatus according to claim 6, wherein the intensity adjustment unit adjusts the intensity of the predetermined granular pattern based on an operation of the setting unit by a user.
少なくとも第1の階調変換処理を含む所定の画像処理が施された画像データに対して、所定の粒状パターンを付加する粒状パターン付加部と、
前記粒状パターンを付加された画像データに対して、前記第1の階調変換処理とは異なる第2の階調変換処理を行う第2階調変換部と、
を備えることを特徴とする画像処理装置。
A granular pattern addition unit for adding a predetermined granular pattern to image data subjected to predetermined image processing including at least a first gradation conversion process;
A second gradation conversion unit that performs a second gradation conversion process different from the first gradation conversion process on the image data to which the granular pattern is added;
An image processing apparatus comprising:
前記第2階調変換部は、前記第2の階調変換処理として、画像データのコントラストを強調する階調変換処理を行うことを特徴とする請求項9に記載の画像処理装置。   The image processing apparatus according to claim 9, wherein the second gradation conversion unit performs gradation conversion processing for enhancing contrast of image data as the second gradation conversion processing. 複数のカラーフィルタを配置した撮像素子を有する撮像装置により得られた画像データに基づいて、1画素あたり複数の色を有する画像データを生成するステップと、
生成された前記画像データに対して、所定の粒状パターンを付加するステップと、
を備えることを特徴とする画像処理方法。
Generating image data having a plurality of colors per pixel based on image data obtained by an image pickup apparatus having an image pickup element in which a plurality of color filters are arranged;
Adding a predetermined granular pattern to the generated image data;
An image processing method comprising:
複数のカラーフィルタを配置した撮像素子を有する撮像装置により得られた画像データに基づいて、1画素あたり複数の色を有する画像データを生成するステップと、
生成された前記画像データに対して、所定の粒状パターンを付加するステップと、
をコンピュータに実行させるための画像処理プログラム。
Generating image data having a plurality of colors per pixel based on image data obtained by an image pickup apparatus having an image pickup element in which a plurality of color filters are arranged;
Adding a predetermined granular pattern to the generated image data;
An image processing program for causing a computer to execute.
JP2008226074A 2008-09-03 2008-09-03 Image processing apparatus, image processing method, and image processing program Pending JP2010062836A (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP2008226074A JP2010062836A (en) 2008-09-03 2008-09-03 Image processing apparatus, image processing method, and image processing program
CN201110284134.7A CN102291537B (en) 2008-09-03 2009-09-02 Image processing apparatus, imaging apparatus, image processing method
CN201110284161.4A CN102377929B (en) 2008-09-03 2009-09-02 Image processing apparatus, imaging apparatus, and image processing method
US12/552,984 US8334912B2 (en) 2008-09-03 2009-09-02 Image processing apparatus, imaging apparatus, image processing method, and computer readable recording medium storing image processing program
CN200910171069XA CN101668106B (en) 2008-09-03 2009-09-02 Image processing apparatus, imaging apparatus and image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008226074A JP2010062836A (en) 2008-09-03 2008-09-03 Image processing apparatus, image processing method, and image processing program

Publications (1)

Publication Number Publication Date
JP2010062836A true JP2010062836A (en) 2010-03-18

Family

ID=41804534

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008226074A Pending JP2010062836A (en) 2008-09-03 2008-09-03 Image processing apparatus, image processing method, and image processing program

Country Status (2)

Country Link
JP (1) JP2010062836A (en)
CN (1) CN101668106B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012150680A1 (en) * 2011-05-03 2012-11-08 オリンパスイメージング株式会社 Three-dimensional image processing apparatus and three-dimensional image processing method
CN102811313A (en) * 2011-05-31 2012-12-05 奥林巴斯映像株式会社 Imaging apparatus and imaging method
US8957982B2 (en) 2011-10-04 2015-02-17 Olympus Imaging Corp. Imaging device and imaging method
US9019400B2 (en) 2011-05-31 2015-04-28 Olympus Imaging Corp. Imaging apparatus, imaging method and computer-readable storage medium
US9402037B2 (en) 2013-04-26 2016-07-26 Olympus Corporation Imaging apparatus, image processing apparatus, and image processing method for generating random special effects

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013020021A (en) * 2011-07-08 2013-01-31 Pentax Ricoh Imaging Co Ltd Shutter controller
JP5957357B2 (en) * 2012-10-15 2016-07-27 株式会社日立ハイテクノロジーズ Pattern inspection / measurement apparatus and program
JP6613554B2 (en) * 2014-09-30 2019-12-04 株式会社ニコン Image processing apparatus and program
CN110386401B (en) * 2019-07-01 2020-09-25 广州大学 Contrast enhancement device applied to conveyor belt

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03214973A (en) * 1990-01-19 1991-09-20 Fujitsu General Ltd Aperture compensation circuit
JPH1185955A (en) * 1997-09-10 1999-03-30 Fuji Photo Film Co Ltd Method and device for image processing
JP2004260858A (en) * 2004-05-12 2004-09-16 Nec Corp Chrominance signal processing apparatus and chrominance signal processing method
JP2006324808A (en) * 2005-05-17 2006-11-30 Canon Inc Image processing apparatus and image processing method
JP2007019617A (en) * 2005-07-05 2007-01-25 Fujifilm Holdings Corp Photographing apparatus
JP2008092052A (en) * 2006-09-29 2008-04-17 Matsushita Electric Ind Co Ltd Gradation correcting device and imaging apparatus

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5641596A (en) * 1995-12-05 1997-06-24 Eastman Kodak Company Adjusting film grain properties in digital images
JP4455110B2 (en) * 2004-03-18 2010-04-21 オリンパス株式会社 Image processing apparatus, image processing system, and image processing method
WO2006044260A1 (en) * 2004-10-18 2006-04-27 Thomson Licensing Film grain simulation method
AU2005309719B2 (en) * 2004-11-24 2010-07-01 Interdigital Vc Holdings, Inc. Film grain simulation technique for use in media playback devices
US7664337B2 (en) * 2005-12-20 2010-02-16 Marvell International Ltd. Film grain generation and addition

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03214973A (en) * 1990-01-19 1991-09-20 Fujitsu General Ltd Aperture compensation circuit
JPH1185955A (en) * 1997-09-10 1999-03-30 Fuji Photo Film Co Ltd Method and device for image processing
JP2004260858A (en) * 2004-05-12 2004-09-16 Nec Corp Chrominance signal processing apparatus and chrominance signal processing method
JP2006324808A (en) * 2005-05-17 2006-11-30 Canon Inc Image processing apparatus and image processing method
JP2007019617A (en) * 2005-07-05 2007-01-25 Fujifilm Holdings Corp Photographing apparatus
JP2008092052A (en) * 2006-09-29 2008-04-17 Matsushita Electric Ind Co Ltd Gradation correcting device and imaging apparatus

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012150680A1 (en) * 2011-05-03 2012-11-08 オリンパスイメージング株式会社 Three-dimensional image processing apparatus and three-dimensional image processing method
US9317900B2 (en) 2011-05-03 2016-04-19 Olympus Corporation Three-dimensional image processing device, and three-dimensional image processing method
CN102811313A (en) * 2011-05-31 2012-12-05 奥林巴斯映像株式会社 Imaging apparatus and imaging method
US9019400B2 (en) 2011-05-31 2015-04-28 Olympus Imaging Corp. Imaging apparatus, imaging method and computer-readable storage medium
US8957982B2 (en) 2011-10-04 2015-02-17 Olympus Imaging Corp. Imaging device and imaging method
US9402037B2 (en) 2013-04-26 2016-07-26 Olympus Corporation Imaging apparatus, image processing apparatus, and image processing method for generating random special effects

Also Published As

Publication number Publication date
CN101668106B (en) 2011-12-14
CN101668106A (en) 2010-03-10

Similar Documents

Publication Publication Date Title
US8605171B2 (en) Image processing apparatus, imaging apparatus, image processing method and storage medium storing image processing program
JP2010062836A (en) Image processing apparatus, image processing method, and image processing program
JP4398969B2 (en) Multi-view photographing apparatus, exposure setting method and program in multi-view photographing apparatus
JP4750854B2 (en) Image processing method and apparatus and program thereof
CN102131056B (en) Image-capturing device and image-capturing method
JP5761946B2 (en) Image processing apparatus, image processing method, and storage medium
JP4973719B2 (en) Imaging apparatus, imaging method, and imaging program
JP4803284B2 (en) Image processing apparatus and image processing program
US8872936B2 (en) Image processing device, white balance correction method, and imaging device
JP2011041089A (en) Method, device and program for processing image, and imaging device
JP4217041B2 (en) Filtering
JP2011228807A (en) Image processing program, image processing apparatus, and image processing method
US9294685B2 (en) Image processing apparatus, electronic camera, and medium storing image processing program
JP2003244620A (en) Image processing method and apparatus, and program
JP6929711B2 (en) Image processing device, image processing method, image processing program
US8334912B2 (en) Image processing apparatus, imaging apparatus, image processing method, and computer readable recording medium storing image processing program
JP2004287794A (en) Image processor
JP2010283504A (en) Imaging device, imaging method, and imaging program
JP5121636B2 (en) Image processing apparatus, image processing method, and image processing program
JP2009194728A (en) Imaging system, image processing method and image processing program
JP6592293B2 (en) Image processing apparatus, image processing method, and imaging apparatus
JP5836109B2 (en) Image processing apparatus, imaging apparatus including the same, image processing method, and image processing program
JP3997090B2 (en) Image processing apparatus, program, and method
JP5191941B2 (en) Imaging apparatus, image processing apparatus, image processing method, and image processing program
JP2009044235A (en) Camera

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110802

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120618

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120626

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20121023