[go: up one dir, main page]

CN101668106B - Image processing device, imaging device, and image processing method - Google Patents

Image processing device, imaging device, and image processing method Download PDF

Info

Publication number
CN101668106B
CN101668106B CN200910171069XA CN200910171069A CN101668106B CN 101668106 B CN101668106 B CN 101668106B CN 200910171069X A CN200910171069X A CN 200910171069XA CN 200910171069 A CN200910171069 A CN 200910171069A CN 101668106 B CN101668106 B CN 101668106B
Authority
CN
China
Prior art keywords
image data
processing
image
unit
gradation conversion
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN200910171069XA
Other languages
Chinese (zh)
Other versions
CN101668106A (en
Inventor
豊田哲也
市川学
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Aozhixin Digital Technology Co ltd
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
Priority claimed from JP2008226060A external-priority patent/JP5121636B2/en
Priority claimed from JP2009095626A external-priority patent/JP5191941B2/en
Application filed by Olympus Imaging Corp filed Critical Olympus Imaging Corp
Publication of CN101668106A publication Critical patent/CN101668106A/en
Application granted granted Critical
Publication of CN101668106B publication Critical patent/CN101668106B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)
  • Studio Devices (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

一种图像处理装置、摄像装置以及图像处理方法,其进行下述的同时化处理,根据由摄像装置得到的图像数据,生成每一个像素具有多种颜色的图像数据,所述摄像装置具有配置了多个滤色器的摄像元件。对进行了该同时化处理后的图像数据附加预定的粒状图案。

Figure 200910171069

An image processing device, an imaging device, and an image processing method are provided that perform synchronization processing to generate image data having multiple colors per pixel based on image data obtained by an imaging device having an imaging element equipped with multiple color filters. A predetermined granular pattern is added to the image data after the synchronization processing.

Figure 200910171069

Description

图像处理装置、摄像装置以及图像处理方法Image processing device, imaging device, and image processing method

技术领域 technical field

本发明涉及对利用数字照相机等得到的图像数据附加类似在银盐照片中得到的粒状图案的图像处理装置和图像处理方法。The present invention relates to an image processing device and an image processing method for adding a granular pattern similar to that obtained in a silver halide photograph to image data obtained by a digital camera or the like.

背景技术 Background technique

在利用数字照相机等得到的数字图像上叠加以摄像元件为产生主体的噪声成分,该噪声成分成为导致图像质量下降的一个原因。一般地,利用各种方法降低叠加在图像上的噪声成分,以努力提高图像质量。A noise component mainly generated by an imaging device is superimposed on a digital image obtained by a digital camera or the like, and this noise component is one cause of degradation in image quality. Generally, noise components superimposed on an image are reduced by various methods in an effort to improve image quality.

在银盐照片中也产生以银盐颗粒为主要原因的粒状噪声,与数字图像相同,成为图像质量下降的一个原因,相反,也存在因粒状噪声形成的粒状感作为银盐照片的表现方式具有一定价值的事实。Also in silver salt photographs, grainy noise mainly caused by silver salt grains occurs, which is one of the causes of image quality degradation as in digital images. Conversely, graininess due to grainy noise also exists as an expression of silver salt photographs. Facts of certain value.

在这种背景下,为了获得对数字图像也给出与银盐照片相同的价值的银盐颗粒的视觉效果,提出了在数字图像上叠加与银盐颗粒的粒状感相似的粒状图案的各种技术。例如,在专利文献1(US5641596B1)中,以像素单位产生随机数,进行频率滤波处理和尺寸变更,在图像上叠加预期的粒状程度的粒状。另外,在专利文献2(JP11-85955A)中,从由被均匀曝光的彩色胶片得到的曝光图像中减去平滑后的图像,由此计算粒状图案。In this context, in order to obtain the visual effect of silver salt grains that give digital images the same value as silver salt photographs, various methods of superimposing a grainy pattern similar to the graininess of silver salt grains on digital images have been proposed. technology. For example, in Patent Document 1 (US5641596B1), random numbers are generated in units of pixels, frequency filtering processing and resizing are performed, and graininess of expected graininess is superimposed on the image. In addition, in Patent Document 2 (JP11-85955A), a grainy pattern is calculated by subtracting a smoothed image from an exposure image obtained from a uniformly exposed color film.

但是,在上述专利文献1和2中,虽然涉及了对图像数据叠加的粒状或粒状图案的计算,但没有记载作为最终图像生成预期的粒状感而需要的图像处理装置和图像处理方法。However, the aforementioned Patent Documents 1 and 2 refer to the calculation of graininess or grainy patterns superimposed on image data, but do not describe an image processing device and an image processing method necessary for generating a desired graininess as a final image.

发明内容 Contents of the invention

根据本发明的第一方式提供一种图像处理装置,该图像处理装置具有:同时化处理部,其根据由摄像装置得到的图像数据,生成每一个像素具有多种颜色成分的图像数据,所述摄像装置具有配置了多个滤色器的摄像元件;以及粒状图案附加部,其对由所述同时化处理部生成的图像数据附加预定的粒状图案。According to a first aspect of the present invention, there is provided an image processing device including: a simultaneous processing unit for generating image data having a plurality of color components per pixel based on image data obtained by an imaging device, the The imaging device includes an imaging element on which a plurality of color filters are arranged, and a granular pattern adding unit that adds a predetermined granular pattern to the image data generated by the synchronization processing unit.

根据本发明的第二方式提供一种图像处理装置,该图像处理装置具有:粒状图案附加部,其对被实施了至少包括第1灰度转换处理的预定的图像处理后的图像数据,附加预定的粒状图案;以及第2灰度转换部,其对被附加了所述预定的粒状图案的图像数据,进行与所述第1灰度转换处理不同的第2灰度转换处理。According to a second aspect of the present invention, there is provided an image processing apparatus including: a granular pattern adding unit for adding a predetermined pattern to image data subjected to predetermined image processing including at least a first gradation conversion process. a granular pattern; and 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 predetermined granular pattern is added.

根据本发明的第三方式提供一种图像处理方法,该图像处理方法包括:第1步骤,根据由摄像装置得到的图像数据,生成每一个像素具有多种颜色成分的图像数据,所述摄像装置具有配置了多个滤色器的摄像元件;以及第2步骤,对所生成的所述图像数据附加预定的粒状图案。According to a third aspect of the present invention, there is provided an image processing method, the image processing method comprising: a first step of generating image data having multiple color components for each pixel based on the image data obtained by the imaging device, the imaging device It has an imaging element on which a plurality of color filters are arranged; and in a second step, adding a predetermined granular pattern to the generated image data.

根据本发明的第四方式提供一种摄像装置,该摄像装置具有:摄像部,其拍摄被摄体而得到第1图像数据;图像处理部,其对所述第1图像数据实施图像处理,生成第2图像数据;尺寸设定部,其设定记录时的记录尺寸;缩小图像数据生成部,其根据由所述尺寸设定部设定的记录尺寸和所述第2图像数据的尺寸,缩小所述第2图像数据,生成第3图像数据;粒状图案附加模式设定部,其设定对所述第2或第3图像数据附加预定的粒状图案的粒状图案附加模式;以及粒状图案附加部,在由所述粒状图案附加模式设定部设定了所述粒状图案附加模式的情况下,在由所述尺寸设定部设定的记录尺寸是缩小所述第2图像数据而生成的尺寸时,所述粒状图案附加部对所述第3图像数据附加所述预定的粒状图案,在由所述尺寸设定部设定的记录尺寸是不缩小所述第2图像数据而生成的尺寸时,所述粒状图案附加部对所述第2图像数据附加所述预定的粒状图案。According to a fourth aspect of the present invention, there is provided an imaging device comprising: an imaging unit that captures a subject to obtain first image data; an image processing unit that performs image processing on the first image data to generate 2nd image data; a size setting unit that sets a recording size for recording; a reduced image data generation unit that reduces the size of the second image data based on the recording size set by the size setting unit and the size of the second image data The second image data generates third image data; a granular pattern adding mode setting unit that sets a granular pattern adding mode for adding a predetermined granular pattern to the second or third image data; and a granular pattern adding unit When the granular pattern addition mode is set by the granular pattern addition mode setting unit, the recording size set by the size setting unit is a size generated by reducing the second image data , the granular pattern adding unit adds the predetermined granular pattern to the third image data, and when the recording size set by the size setting unit is a size generated without reducing the second image data The granular pattern adding unit adds the predetermined granular pattern to the second image data.

根据本发明的第五方式提供一种摄像装置,该摄像装置具有:摄像部,其拍摄被摄体而得到第1图像数据;图像处理部,其对所述第1图像数据实施图像处理,生成第2图像数据;尺寸设定部,其设定记录时的记录尺寸;缩小图像数据生成部,其以基于由所述尺寸设定部设定的记录尺寸和所述第2图像数据的尺寸的预定的缩小率,缩小所述第2图像数据,生成第3图像数据;粒状图案放大部,其以对应于所述预定的缩小率的放大率,放大附加到图像数据上的粒状图案;粒状图案附加模式设定部,其设定对所述图像数据附加预定的粒状图案的粒状图案附加模式;以及粒状图案附加部,其对所述图像数据附加粒状图案。在由所述粒状图案附加模式设定部设定了所述粒状图案附加模式的情况下,在由所述尺寸设定部设定的记录尺寸是缩小所述第2图像数据而生成的尺寸时,在由所述粒状图案附加部对所述第2图像数据附加了所述放大后的粒状图案后,由所述缩小图像数据生成部以所述预定的缩小率缩小被附加了所述放大后的粒状图案的第2图像数据。According to a fifth aspect of the present invention, there is provided an imaging device comprising: an imaging unit that captures a subject to obtain first image data; an image processing unit that performs image processing on the first image data to generate 2nd image data; a size setting unit that sets a recording size for recording; a reduced image data generation unit that uses a recording size based on the recording size set by the size setting unit and the size of the second image data A predetermined reduction ratio for reducing the second image data to generate third image data; a granular pattern enlarging unit for enlarging the granular pattern attached to the image data at an enlargement ratio corresponding to the predetermined reduction ratio; the granular pattern an adding mode setting unit that sets a granular pattern adding mode for adding a predetermined granular pattern to the image data; and a granular pattern adding unit that adds a granular pattern to the image data. When the granular pattern addition mode is set by the granular pattern addition mode setting unit, when the recording size set by the size setting unit is a size generated by reducing the second image data After adding the enlarged granular pattern to the second image data by the granular pattern adding unit, the reduced image data generating unit reduces and adds the enlarged image at the predetermined reduction ratio. The second image data of the granular pattern.

根据本发明的第六方式提供一种对所输入的图像数据附加预定的粒状图案的图像处理装置。该图像处理装置具有:第1粒状图案附加部,其对所述输入的图像数据附加所述预定的粒状图案;缩小图像数据生成部,其生成像素数比所述输入的图像数据少的缩小图像数据;以及第2粒状图案附加部,其对所述缩小图像数据附加所述预定的粒状图案。According to a sixth aspect of the present invention, there is provided an image processing device that adds a predetermined grain pattern to input image data. This image processing device includes: a first granular pattern adding unit that adds the predetermined granular pattern to the input image data; and a reduced image data generating unit that generates a reduced image having fewer pixels than the input image data. data; and a second granular pattern adding unit for adding the predetermined granular pattern to the reduced image data.

根据本发明的第七方式提供一种对所输入的图像数据附加预定的粒状图案的图像处理装置。该图像处理装置具有:缩小图像数据生成部,其以预定的缩小率生成像素数比所述输入的图像数据少的缩小图像数据;粒状图案放大部,其以对应于所述预定的缩小率的放大率放大所述预定的粒状图案;以及粒状图案附加部,其对所述输入的图像数据附加所述放大后的粒状图案,所述缩小图像数据生成部以所述预定的缩小率缩小被附加了所述放大后的粒状图案的图像数据。According to a seventh aspect of the present invention, there is provided an image processing device that adds a predetermined grain pattern to input image data. The image processing apparatus includes: a reduced image data generating unit that generates reduced image data having fewer pixels than the input image data at a predetermined reduction ratio; and a granular pattern enlarging unit that generates the reduced image data at a predetermined reduction ratio a magnification factor enlarging the predetermined granular pattern; and a granular pattern adding section which adds the enlarged granular pattern to the input image data, the reduced image data generation section reducing the added granular pattern at the predetermined magnification rate Image data of the magnified granular pattern was obtained.

根据本发明的第八方式提供一种对图像数据附加预定的粒状图案的图像处理方法。该图像处理方法包括:生成像素数比所述图像数据少的缩小图像数据的步骤;以及对所述缩小图像数据附加所述预定的粒状图案的步骤。According to an eighth aspect of the present invention, there is provided an image processing method for adding a predetermined grain pattern to image data. The image processing method includes: a step of generating reduced image data having fewer pixels than the image data; and a step of adding the predetermined grain pattern to the reduced image data.

根据本发明的第九方式提供一种对图像数据附加预定的粒状图案的图像处理方法。该图像处理方法包括:以对应于预定的缩小率的放大率放大所述粒状图案的步骤;对所述图像数据附加所述放大后的粒状图案的步骤;以及以所述预定的缩小率缩小被附加了所述放大后的粒状图案的图像数据的步骤。According to a ninth aspect of the present invention, there is provided an image processing method for adding a predetermined grain pattern to image data. The image processing method includes: a step of enlarging the granular pattern at a magnification rate corresponding to a predetermined reduction rate; adding the enlarged granular pattern to the image data; The step of adding the image data of the enlarged granular pattern.

根据本发明,对进行了同时化处理后的图像数据进行附加粒状图案的处理,所以能够防止由于在附加了粒状图案后进行同时化处理而产生的下述问题,即,银盐颗粒独特的细小的粒状感消失,或者把粒状图案错误识别为图像的构造,导致产生图像本来没有的几何图案。因此,能够适当地再现银盐照片的粒状感。According to the present invention, the processing of adding a granular pattern to the image data after the synchronization processing is performed, so the following problem caused by the synchronization processing after the addition of the granular pattern can be prevented, that is, the unique fineness of the silver salt particles. The graininess of the image disappears, or the grainy pattern is misidentified as the structure of the image, resulting in a geometric pattern that is not originally in the image. Therefore, the graininess of silver halide photographs can be appropriately reproduced.

附图说明 Description of drawings

图1是表示包括第1实施方式的图像处理装置的数字照相机的结构的框图。FIG. 1 is a block diagram showing the configuration of a digital camera including an image processing device according to a first embodiment.

图2是表示图像处理电路的具体结构的框图。FIG. 2 is a block diagram showing a specific configuration of an image processing circuit.

图3A是表示利用包括第1实施方式的图像处理装置的数字照相机摄影时的处理流程的前期部分的流程图。3A is a flowchart showing the early part of the processing flow when shooting with a digital camera including the image processing device according to the first embodiment.

图3B是表示利用包括第1实施方式的图像处理装置的数字照相机摄影时的处理流程的后期部分的流程图。3B is a flowchart showing the latter part of the flow of processing when shooting with a digital camera including the image processing device according to the first embodiment.

图4是表示普通模式下的各种增益、摄像尺寸和图像尺寸的一例的图。FIG. 4 is a diagram showing examples of various gains, imaging sizes, and image sizes in a normal mode.

图5是表示银盐风格模式下的各种增益、摄像尺寸和图像尺寸的一例的图。FIG. 5 is a diagram showing examples of various gains, imaging sizes, and image sizes in the silver salt style mode.

图6是表示JPEG压缩数据编辑时的各种增益、摄像尺寸和图像尺寸的一例的图。FIG. 6 is a diagram showing examples of various gains, camera sizes, and image sizes when editing JPEG compressed data.

图7是表示在合成粒状图案之前进行的灰度转换处理的灰度转换特性的一例的图。FIG. 7 is a diagram showing an example of gradation conversion characteristics of gradation conversion processing performed before synthesizing a granular pattern.

图8是表示进行Y信号的灰度转换处理时的灰度转换特性的一例的图。FIG. 8 is a diagram showing an example of gradation conversion characteristics when gradation conversion processing of a Y signal is performed.

图9是表示进行C信号的灰度转换处理时的灰度转换特性的一例的图。FIG. 9 is a diagram showing an example of gradation conversion characteristics when gradation conversion processing of a C signal is performed.

图10是表示RAW数据的编辑时的处理流程的流程图。FIG. 10 is a flowchart showing the flow of processing at the time of editing RAW data.

图11是表示JPEG压缩数据的编辑时的处理流程的流程图。FIG. 11 is a flowchart showing the flow of processing at the time of editing JPEG compressed data.

图12是表示适用了第2实施方式的图像处理装置的数字照相机的结构的框图。12 is a block diagram showing the configuration of a digital camera to which the image processing device of the second embodiment is applied.

图13是表示利用适用了第2实施方式的图像处理装置的数字照相机进行的主处理流程的流程图。13 is a flowchart showing the flow of main processing performed by a digital camera to which the image processing device of the second embodiment is applied.

图14A是表示在图13所示的流程图的步骤S1302中进行的静态图像的摄影/记录动作的具体处理内容的流程图。FIG. 14A is a flowchart showing specific processing contents of a still image shooting/recording operation performed in step S1302 of the flowchart shown in FIG. 13 .

图14B是表示承接图14A所示的流程图的处理的处理流程的流程图。FIG. 14B is a flowchart showing a flow of processing succeeding the processing of the flowchart shown in FIG. 14A .

图15是表示在图13所示的流程图的步骤S1305中进行的实时取景显示的具体处理内容的流程图。FIG. 15 is a flowchart showing specific processing contents of live view display performed in step S1305 of the flowchart shown in FIG. 13 .

图16是表示在第3实施方式的图像处理装置中进行的静态图像的摄影/记录动作的处理中、在图14A的步骤S1413之后进行的处理内容的流程图。FIG. 16 is a flowchart showing the content of processing performed after step S1413 in FIG. 14A in the still image shooting/recording operation processing performed by the image processing apparatus according to the third embodiment.

图17是表示在第3实施方式的图像处理装置中进行的实时取景显示处理的具体处理内容的流程图。17 is a flowchart showing specific processing contents of live view display processing performed in the image processing device according to the third embodiment.

具体实施方式 Detailed ways

(第1实施方式)(first embodiment)

图1是表示包括第1实施方式的图像处理装置的数字照相机的结构的框图。该数字照相机具有摄像部1、A/D转换部2、微型计算机3(以下称为微机3)、RAM4、ROM5、图像处理电路6、操作部7、显示部8、存储器接口9(以下称为I/F9)、以及记录介质10。FIG. 1 is a block diagram showing the configuration of a digital camera including an image processing device according to a first embodiment. This digital camera has an imaging unit 1, an A/D conversion unit 2, a microcomputer 3 (hereinafter referred to as microcomputer 3), a RAM 4, a ROM 5, an image processing circuit 6, an operation unit 7, a display unit 8, and a memory interface 9 (hereinafter referred to as I/F9), and the recording medium 10.

摄像部1由单板式彩色摄像元件(以下简称为摄像元件)、摄影光学系统、以及它们的驱动部等构成,摄像元件在构成各个像素的光电二极管的前面配置有多个滤色器。滤色器例如以拜耳排列方式排列。拜耳排列构成为具有沿水平方向交替配置了R像素和G(Gr)像素的行、和交替配置了G(Gb)像素和B像素的行,进而沿垂直方向交替配置这两个行。摄像元件利用构成像素的光电二极管接受由未图示的镜头聚光后的光,并进行光电转换,由此把光的量作为电荷量输出给A/D转换部2。另外,摄像元件可以是CMOS方式的元件也可以是CCD方式的元件。并且,滤色器可以构成为除拜耳排列之外的排列,也可以构成为除R、G、B之外的颜色。The imaging unit 1 is composed of a single-plate color imaging device (hereinafter simply referred to as the imaging device), an imaging optical system, and their drive units. The imaging device has a plurality of color filters arranged in front of photodiodes constituting each pixel. The color filters are arranged in a Bayer arrangement, for example. The Bayer array has rows in which R pixels and G (Gr) pixels are alternately arranged in the horizontal direction, rows in which G (Gb) pixels and B pixels are alternately arranged, and these two rows are alternately arranged in the vertical direction. The imaging element receives light collected by a lens not shown by a photodiode constituting a pixel, and performs photoelectric conversion, thereby outputting the amount of light as an amount of charge to the A/D conversion unit 2 . In addition, the imaging element may be a CMOS type element or a CCD type element. In addition, the color filters may be configured in an arrangement other than the Bayer arrangement, or may be configured in colors other than R, G, and B.

A/D转换部2把从摄像部1输出的电信号转换为数字图像信号(以后称为图像数据)。The A/D conversion unit 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 performs focus control of the imaging optical system inside the imaging unit 1, exposure control of the imaging element, recording control when recording image data on the recording medium 10, display control when displaying image data on the display unit 8, and the like.

RAM4是存储部,用于临时存储在A/D转换部2中得到的图像数据、在后面叙述的图像处理电路6中处理后的图像数据等各种数据。在ROM5中存储有数字照相机进行动作所需要的各种参数、与银盐颗粒的粒状感相似的粒状图案的数据等。粒状图案的数据根据已知的方法求出,并被分离成Y(亮度)成分和C(颜色)成分存储在ROM5中。并且,ROM5还存储由微机3执行的各种程序。微机3按照存储在ROM5中的程序,从ROM5读出各种程序所需要的参数并执行各种处理。The RAM 4 is a storage unit for temporarily storing various data such as image data obtained by the A/D conversion unit 2 and image data processed by the image processing circuit 6 described later. The ROM 5 stores various parameters necessary for the operation of the digital camera, data of a granular pattern similar to that of silver salt grains, and the like. The data of the granular pattern is obtained by a known method, and is separated into a Y (brightness) component and a C (color) component and stored in the ROM 5 . In addition, the ROM 5 also stores various programs executed by the microcomputer 3 . The microcomputer 3 reads parameters required for various programs from the ROM 5 and executes various processes according to the programs stored in the ROM 5 .

图像处理电路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. Image data subjected to image processing in the image processing circuit 6 is recorded on the recording medium 10 through the I/F 9 . The recording medium 10 is, for example, a recording medium composed of a memory card that can be inserted and removed from the main body of the digital camera, but is not limited thereto.

操作部7是电源按钮、释放按钮、各种输入键等操作部件。通过由用户操作操作部7的任意一个操作部件,微机3执行对应于用户的操作的各种程序。电源按钮是用于进行该数字照相机的电源的接通/断开指示的操作部件。在电源按钮被按下时,微机3使该数字照相机的电源接通或断开。释放按钮构成为具有第一释放开关和第二释放开关这两档开关。在释放按钮被按下一半、第一释放开关接通时,微机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 the user operates any one of the operating members of the operating unit 7, the microcomputer 3 executes various programs corresponding to the user's operation. The power button is an operation member for instructing on/off the power of the digital camera. When the power button is pressed, the microcomputer 3 turns on or off the power of the digital camera. The release button is configured to have two switches, a first release switch and a second release switch. When the release button is half-pressed and the first release switch is turned on, the microcomputer 3 executes photography preparation programs such as AE processing and AF processing. Then, when the release button is fully pressed and the second release switch is turned on, the microcomputer 3 executes the imaging program to perform imaging. The operation unit 7 can set an image recording mode and a shooting mode.

总线11是将在数字照相机内部产生的各种数据传送给数字照相机内的各个部分的传送路径。总线11与摄像部1、A/D转换部2、微机3、RAM4、ROM5、图像处理电路6、操作部7、显示部8、I/F部9连接。The bus 11 is a transmission path for transmitting various data generated inside the digital camera to various parts in the digital camera. Bus 11 is connected to imaging unit 1 , A/D conversion unit 2 , microcomputer 3 , RAM 4 , ROM 5 , image processing circuit 6 , operation unit 7 , display unit 8 , and I/F unit 9 .

图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 specific configuration of the image processing circuit 6 . The image processing circuit 6 has 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 gradation conversion unit 25, YC conversion section 26, edge extraction section 27, edge emphasis section 28, Y gradation conversion section 29, Y 2nd noise reduction section (Y 2nd NR section in the figure) 30, C gradation conversion section 31, C 2nd noise A reduction section (C 2nd NR section in the figure) 32 , a resizing section 33 , a JPEG compression section 34 , a JPEG decompression section 35 , addition sections 36 and 37 , and multiplication sections 38 and 39 .

第1噪声降低部21对于在A/D转换部2被转换后存储在RAM4中的图像数据,根据后面叙述的噪声降低增益NR1,进行降低噪声的处理。该噪声降低处理指校正摄像元件的像素缺陷的处理、和降低在摄像时产生的随机噪声的处理。其中,也可以进行校正摄像元件的像素缺陷的处理、和降低在摄像时产生的随机噪声的处理中至少一种处理。The first noise reduction unit 21 performs noise reduction processing 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. The noise reduction processing refers to processing for correcting pixel defects of an imaging device and processing for reducing random noise generated during imaging. Here, at least one of processing for correcting pixel defects of the imaging device and processing for reducing random noise generated during imaging may be performed.

白平衡校正部22进行校正噪声降低后的图像数据的白平衡的处理。The white balance correcting unit 22 performs processing of correcting the white balance of the noise-reduced image data.

同时化处理部23进行从基于拜耳排列的图像数据同时化为每一个像素由R、G、B的颜色信息构成的图像数据的处理。对于被同时化后的图像数据,在颜色转换部24中进行预定的颜色转换处理,然后在灰度转换部25中进行灰度转换处理(第1灰度转换处理)。The synchronization processing unit 23 performs processing for simultaneously converting image data based on the Bayer array into image data composed of R, G, and B color information for each pixel. The synchronized image data is subjected to predetermined color conversion processing in the color conversion unit 24 , and then to gradation conversion processing (first gradation conversion processing) in the gradation conversion unit 25 .

YC转换部26把灰度转换处理后的图像数据转换为Y(亮度)信号和C(颜色)信号。被转换后的Y信号输出给加法部36、C信号输出给加法部37。The YC conversion section 26 converts the image data after the gradation conversion process into a Y (brightness) 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 subjected to noise reduction processing by the first noise reduction unit 21 . The edge enhancement unit 28 performs an edge enhancement process of multiplying the edge data extracted by the edge extraction 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 multiplier 38 multiplies the Y component data of the grain pattern stored in the ROM 5 by a gain GRN_Y described later, and outputs the result to the adder 36 . The adder 36 adds the edge data input from the edge enhancement unit 28 and the Y component data of the granular pattern input from the multiplier 38 to the Y signal. The Y signal is input from the YC converter 26 at the time of photography and editing of RAW data, and is input from the RAM 4 at the time of editing of JPEG compressed data. The Y signal output from the adder 36 is subjected to a gradation conversion process (second gradation conversion process) described later in the Y gradation conversion unit 29 , and then is subjected to noise reduction processing in the Y second noise reduction unit 30 .

乘法部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 adder 37 adds the C component data of the granular pattern input from the multiplier 39 to the C signal. The C signal is input from the YC converter 26 at the time of photography and editing of RAW data, and is input from the RAM 4 at the time of editing of JPEG compressed data. The C signal output from the adder 37 is subjected to a gradation conversion process (second gradation conversion process) described later in the C gradation conversion unit 31 , and then is subjected to noise reduction processing in the C second noise reduction unit 32 .

尺寸重设部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 the 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. JPEG-compressed data is recorded on the recording medium 10 through I/F9. The JPEG decompression unit 35 reads out the JPEG compressed data recorded on the recording medium 10, and performs decompression processing to return the data to the state before compression.

=摄影时的处理流程==Flow of processing during photography=

图3A和图3B是表示利用包括第1实施方式的图像处理装置的数字照相机摄影时的处理流程的流程图。在由用户将释放按钮接通后,开始步骤S10的处理。3A and 3B are flowcharts showing the flow of processing when shooting with a digital camera including the image processing device according to the first embodiment. After the user turns on the release button, the process of step S10 starts.

在步骤S10中执行公知的测光处理和测距处理,然后在步骤S20中执行公知的曝光控制和焦点控制。在步骤S30中,由摄像部1执行摄像处理。在步骤S40中,在由摄像部1执行摄像处理后,把通过在A/D转换部2进行A/D转换处理得到的图像数据临时存储在RAM4中。Known photometry processing and ranging processing are performed in step S10, and then known exposure control and focus control are performed in step S20. In step S30 , imaging processing is executed by the imaging unit 1 . In step S40 , after the imaging process is executed by the imaging unit 1 , the image data obtained by performing the A/D conversion process in 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 recording format of the image 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. When it is determined that the recording format of the image is JPEG format, the process proceeds to step S60, and when it is determined that the recording format of the image is RAW format, the process proceeds to step S250 of FIG. 3B.

在步骤S60中,判定图像的记录模式是银盐风格模式还是普通模式。银盐风格模式是指,为了获得与银盐照片相同的视觉效果,把与银盐颗粒的粒状感相似的粒状图案叠加在图像数据上的模式。图像的记录模式可以在摄影之前由用户操作操作部7来设定。在判定为图像的记录模式是普通模式时,转入步骤S70。In step S60, it is determined whether the recording mode of the image is the silver salt style mode or the normal mode. The silver salt style mode is a mode in which a grainy pattern similar to the graininess of silver salt grains is superimposed on image data in order to obtain the same visual effect as a silver salt photograph. The image recording mode can be set by the user operating the operation unit 7 before shooting. When 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 showing examples of various gains, imaging sizes, and image sizes in a normal mode. The various gains include: gain NR1 used when the first noise reduction unit 21 performs noise reduction processing; gain GRN_Y multiplied by the Y component of the granular pattern; gain GRN_C multiplied by the C component of the granular pattern; Gain NR2_Y used when the noise reduction unit 30 performs noise reduction processing; and gain NR2_C used when the second noise reduction unit 32 performs noise reduction processing.

各种增益根据在摄影时设定的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 the ISO sensitivity set during 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 grain pattern is not superimposed on the image data, the columns of the gains GRN_Y and GRN_C are left blank. In addition, the gains GRN_Y and GRN_C may be respectively set to 0 to perform processing of superimposing the grain pattern.

对应于各个ISO灵敏度的摄像噪声是把ISO灵敏度100时的摄像噪声作为基准,值越小,表示噪声越大。即,ISO灵敏度越大,摄像噪声越大。同样,图像噪声也是把ISO灵敏度100时的图像噪声作为基准,值越小,表示噪声越大。因此,ISO灵敏度越大,图像噪声也越大。The imaging noise corresponding to each ISO sensitivity is based on the imaging noise when the ISO sensitivity is 100, and the smaller the value, the greater the noise. That is, the greater the ISO sensitivity, the greater the imaging noise. Similarly, the image noise is based on the image noise when the ISO sensitivity is 100, and the smaller the value, the greater the noise. Therefore, the greater the ISO sensitivity, the greater the image noise.

在ROM5中存储有图4所示的、用于确定对应于各个ISO灵敏度的各种增益的数据表,所以读出该数据表并计算对应于摄影时的ISO灵敏度的增益NR1。另外,增益NR1的值越大,噪声降低处理时的噪声降低效果越大。Since the data table for specifying various gains corresponding to the respective ISO sensitivities shown in FIG. 4 is stored in the ROM 5 , the data table is read out to calculate the gain NR1 corresponding to the ISO sensitivity during shooting. In addition, the larger the value of the gain NR1 is, the larger the noise reduction effect during the noise reduction processing is.

另一方面,在步骤S60中,在判定为图像的记录模式是银盐风格模式时,转入步骤S80。在步骤S80中,计算银盐风格模式下的噪声降低增益NR1。图5是表示银盐风格模式下的各种增益、摄像尺寸和图像尺寸的一例的图。在图5中,各种增益、摄像尺寸和图像尺寸的观察方法与图4相同。On the other hand, when it is determined in step S60 that the image recording mode is the silver salt style mode, the process proceeds to step S80. In step S80, the noise reduction gain NR1 in the silver salt style mode is calculated. FIG. 5 is a diagram showing examples of various gains, imaging sizes, and image sizes in the silver salt style mode. In FIG. 5 , the observation methods of various gains, imaging sizes, and image sizes are the same as those in FIG. 4 .

在银盐风格模式时,与ISO灵敏度无关,为了使最终得到的图像数据上的粒状感保持固定,根据对应于ISO灵敏度的摄像噪声的放大,控制合成的粒状图案的强度(增益GRN_Y、GRN_C)和粒状图案合成后的噪声降低强度(NR2_Y、NR2_C)。在此,ISO灵敏度越高,越减小增益GRN_Y、GRN_C,并越减弱合成到图像数据上的粒状图案的强度。如图5所示,附加粒状图案后的图像数据的图像噪声固定,与ISO灵敏度无关。In the silver salt style mode, regardless of the ISO sensitivity, in order to keep the graininess on the final image data constant, the intensity of the synthesized grainy pattern is controlled according to the amplification of the imaging noise corresponding to the ISO sensitivity (gain GRN_Y, GRN_C) Noise reduction strength (NR2_Y, NR2_C) after compositing with grainy pattern. Here, the higher the ISO sensitivity is, the smaller the gains GRN_Y and GRN_C are, and the more the strength of the grainy pattern synthesized on the image data is weakened. As shown in FIG. 5 , the image noise of the image data after adding the grain pattern is constant regardless of the ISO sensitivity.

并且,为了保持叠加在图像数据上的粒状图案的粒状感,与普通模式相比,把增益NR2_Y、NR2_C设定得比较弱。另外,关于粒状图案的强度,与亮度(Y)相比相对地减弱色差(C),使得不出现不必要的颜色噪声。In addition, in order to maintain the graininess of the grainy pattern superimposed on the image data, the gains NR2_Y and NR2_C are set weaker than those in the normal mode. In addition, regarding the strength of the grain pattern, the chromatic aberration (C) is relatively weakened compared with the luminance (Y), so that unnecessary color noise does not occur.

在ROM5中存储有图5所示的、用于确定对应于ISO灵敏度的各种增益的数据表,所以读出该数据表来计算对应于摄影时的ISO灵敏度的增益NR1。Since a data table for specifying various gains corresponding to ISO sensitivity shown in FIG. 5 is stored in ROM 5 , the data table is read out to calculate gain NR1 corresponding to ISO sensitivity during 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 , in the white balance correcting unit 22 , a process of correcting the white balance is performed on the image data after the noise reduction process. In step S110 , synchronization processing is performed in the synchronization processing unit 23 , and in step S120 , color conversion processing is performed in the color conversion unit 24 .

在步骤S130中,在灰度转换部25中进行灰度转换处理。在此,考虑到显示部8的伽玛特性,进行使暗淡部分伸长并压缩明亮部分的灰度转换处理。图7是表示在步骤S130中进行灰度转换处理时的灰度转换特性的一例的图。在进行灰度转换处理后,转入图3B的步骤S140。In step S130 , the gradation conversion process is performed in the gradation conversion unit 25 . Here, in consideration of the gamma characteristic of the display unit 8 , a gradation conversion process of expanding dark areas and compressing bright areas is performed. FIG. 7 is a diagram showing an example of gradation conversion characteristics when the gradation conversion process is performed in step S130. After the grayscale conversion process is performed, go to step S140 in FIG. 3B .

在步骤S140中,在YC转换部26中,把灰度转换处理后的图像数据转换为Y(亮度)信号和C(颜色)信号。In step S140, in the YC conversion section 26, the image data after the gradation conversion process is converted into a Y (brightness) signal and a C (color) signal.

在步骤S150中,判定图像的记录模式是银盐风格模式还是普通模式。该判定与步骤S60的判定相同。在判定为图像的记录模式是普通模式时转入步骤S210,在判定为是银盐风格模式时转入步骤S160。In step S150, it is determined whether the recording mode of the image is the silver salt style mode or the normal mode. This determination is the same as the determination in step S60. When it is determined that the image recording mode is the normal mode, the process proceeds to step S210, and when it is determined that the image recording mode is the silver salt style mode, the process proceeds to step S160.

在步骤S160中,计算银盐风格模式下的增益GRN_Y、GRN_C。在计算增益GRN_Y、GRN_C时,从ROM5读出上述图5所示的数据表,计算对应于摄影时的ISO灵敏度的增益GRN_Y、GRN_C。In step S160, the gains GRN_Y and GRN_C in the silver salt style mode are calculated. When calculating the gains GRN_Y and GRN_C, the above-mentioned data table shown in FIG. 5 is read from the ROM 5 to calculate the gains GRN_Y and GRN_C corresponding to the ISO sensitivity at the time of shooting.

在步骤S170中,在乘法部38中,从ROM5读出粒状图案的Y成分数据,向所读出的粒状图案的Y成分数据乘以在步骤S160中计算出的增益GRN_Y。并且,在乘法部39中,从ROM5读出粒状图案的C成分数据,向所读出的粒状图案的C成分数据乘以在步骤S160中计算出的增益GRN_C。In step S170, the multiplier 38 reads the Y component data of the granular pattern from the ROM 5, and multiplies the read Y component data of the granular pattern by the gain GRN_Y calculated in step S160. Then, in the multiplication unit 39 , the C component data of the granular pattern are read from the ROM 5 , and the read C component data of the granular pattern are multiplied 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 emphasis unit 28 and the Y component data of the grain pattern input from the multiplication unit 38 to the Y signal converted by the YC conversion unit 26 . Then, in the adder 37 , the C component data of the granular pattern input from the multiplier 39 is added to the C signal converted by the YC converter 26 .

在步骤S190中,在Y灰度转换部29中,从ROM5读出Y信号用的灰度转换表,同时在C灰度转换部31中,从ROM5读出C信号用的灰度转换表。In step S190 , in the Y gradation conversion unit 29 , the gradation conversion table for the Y signal is read from the ROM 5 , and at the same time, the C gradation conversion unit 31 reads the gradation conversion table for the C signal from the ROM 5 .

图8是表示进行Y信号的灰度转换处理时的灰度转换特性的一例的图。该灰度转换特性是指强调图像数据的对比度的特性,即压缩暗淡部分和明亮部分,使中间风格伸长的特性。并且,图9是表示进行C信号的灰度转换处理时的灰度转换特性的一例的图。在ROM5中存储有图8所示的灰度转换特性的灰度转换表和图9所示的灰度转换特性的灰度转换表。在从ROM5读出灰度转换表后,转入步骤S200。FIG. 8 is a diagram showing an example of gradation conversion characteristics when gradation conversion processing of a Y signal is performed. The gradation conversion characteristic is a characteristic of emphasizing the contrast of image data, that is, a characteristic of compressing dark parts and bright parts and stretching the intermediate style. Furthermore, FIG. 9 is a diagram showing an example of the gradation conversion characteristics when the gradation conversion processing of the C signal is performed. A gradation conversion table of the gradation conversion characteristics shown in FIG. 8 and a gradation conversion table of the gradation conversion characteristics shown in FIG. 9 are stored in the ROM 5 . After the grayscale conversion table is read out from the ROM5, the process goes to step S200.

在步骤S200中,在Y灰度转换部29中,使用在步骤S 190中读取的Y信号用的灰度转换表,对从加法部36输入的Y信号进行灰度转换处理,同时在C灰度转换部31中,使用在步骤S190中读取的C信号用的灰度转换表,对从加法部37输入的C信号进行灰度转换处理。In step S200, in the Y gradation converting section 29, the Y signal input from the adding section 36 is subjected to gradation conversion processing using the gradation conversion table for the Y signal read in step S190. In the gradation conversion unit 31 , the gradation conversion process is performed on the C signal input from the addition unit 37 using the gradation conversion table for the C signal read in step S190 .

在步骤S210中,在Y第2噪声降低部30中,对灰度转换处理后的Y信号进行降低噪声的处理,同时在C第2噪声降低部32中,对灰度转换处理后的C信号进行降低噪声的处理。在噪声降低处理中,使用对应于普通模式或银盐风格模式的增益NR2_Y、NR2_C。例如,在步骤S150的判定中,在判定为是普通模式时,从ROM5读出图4所示的数据表,求出对应于摄影时的ISO灵敏度的增益NR2_Y、NR2_C。并且,在步骤S150的判定中,在判定为是银盐风格模式时,从ROM5读出图5所示的数据表,求出对应于摄影时的ISO灵敏度的增益NR2_Y、NR2_C。Y第2噪声降低部30使用增益NR2_Y进行Y信号的噪声降低处理,C第2噪声降低部32使用增益NR2_C进行C信号的噪声降低处理。In step S210, in the Y second noise reduction unit 30, noise reduction processing is performed on the Y signal after the gradation conversion process, and at the same time, in the C second noise reduction unit 32, the C signal after the gradation conversion process Perform noise reduction processing. In the noise reduction processing, gains NR2_Y, NR2_C corresponding to the normal mode or the silver salt style mode are used. For example, in the determination of step S150, when it is determined that it is the normal mode, the data table shown in FIG. 4 is read from the ROM 5, and the gains NR2_Y and NR2_C corresponding to the ISO sensitivity during shooting are obtained. Then, in the judgment of step S150, if it is judged to be the silver salt style mode, the data table shown in FIG. 5 is read from the ROM 5, and the gains NR2_Y and NR2_C corresponding to the ISO sensitivity during shooting are obtained. The Y second noise reduction unit 30 performs noise reduction processing on the Y signal using the gain NR2_Y, and the C second noise reduction unit 32 performs noise reduction processing on 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, in the resizing unit 33, the Y signal and the C signal after the noise reduction process are resized 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 JPEG-compressed Y signal and C signal are stored in RAM4.

在步骤S250中,生成图像的记录模式和曝光条件等摄影信息作为文件标题信息。在步骤S260中,把所生成的文件标题信息附加到被JPEG压缩并临时存储在RAM4中的数据上,并通过I/F9记录在记录介质10中。In step S250, shooting information such as the recording mode and exposure conditions of the image is generated as file header information. In step S260, the generated file header information is added to the data compressed by JPEG and temporarily stored in the RAM 4, and recorded in the recording medium 10 through the I/F9.

=RAW数据编辑时的处理流程==Processing flow when editing RAW data=

在图3A所示的表示摄影时的处理流程的流程图中,当在步骤S50中判定为图像的记录形式是RAW形式时,不进行步骤S60以后的图像处理,而是作为RAW数据记录在记录介质10中。以下,说明读出记录在记录介质10中的RAW数据并进行图像处理时的处理。In the flow chart showing the processing flow at the time of shooting shown in FIG. 3A, when it is determined in step S50 that the image recording format is the RAW format, the image processing after step S60 is not performed, but is recorded as RAW data in the recording format. Medium 10. Hereinafter, the processing when reading the RAW data recorded on the recording medium 10 and performing image processing will be described.

图10是表示RAW数据的编辑时的处理流程的流程图。在图10的流程图中,关于进行与在图3A的流程图中进行的处理相同的处理的步骤,标注相同的步骤序号并省略具体说明。并且,图10的步骤S130以后的处理与图3B所示的流程图的处理相同,所以省略图示和说明。FIG. 10 is a flowchart showing the flow of processing at the time of editing RAW data. In the flowchart of FIG. 10 , steps that perform the same processing as those performed in the flowchart of FIG. 3A are assigned the same step numbers and detailed explanations are omitted. In addition, since the processing after step S130 in FIG. 10 is the same as the processing in the flowchart shown in FIG. 3B , illustration and description thereof will be omitted.

在步骤S1000中,通过I/F9从记录介质10中读出RAW形式的图像数据。在步骤S1010中,从附加到图像数据上的文件标题信息中读出摄影信息。在步骤S40中,把所读出的图像数据和摄影信息存储在RAM4中。In step S1000, image data in RAW format is read from the recording medium 10 through the I/F9. In step S1010, shooting information is read out from the file header information attached to the image data. In step S40, the read image data and imaging information are stored in RAM4.

步骤S60以后的处理与图3A和图3B所示的流程图的处理相同。The processing after step S60 is the same as the processing in the flowchart shown in FIGS. 3A and 3B .

=JPEG压缩数据编辑时的处理== Processing when editing JPEG compressed data =

在图3A和图3B所示的表示摄影时的处理流程的流程图中,通过步骤S60和步骤S150的判定而判定为图像的记录模式是普通模式时,不在图像数据上叠加与银盐颗粒的粒状感相似的粒状图案。以下,说明读出在摄影时以普通模式记录的图像数据,并叠加与银盐颗粒的粒状感相似的粒状图案,并记录在记录介质10中的处理。In the flow chart showing the processing flow at the time of photographing shown in FIGS. 3A and 3B , when it is determined that the recording mode of the image is the normal mode by the determination of step S60 and step S150, the image data is not superimposed with silver salt particles. A grainy pattern with a similar graininess. The following describes the process of reading image data recorded in the normal mode at the time of photography, superimposing a grainy pattern similar to that of silver salt grains, and recording it on the recording medium 10 .

图11是表示JPEG压缩数据的编辑时的处理流程的流程图。在图11的流程图中,关于进行与在图3A、图3B和图10的流程图中进行的处理相同的处理的步骤,标注相同的步骤序号并省略具体说明。FIG. 11 is a flowchart showing the flow of processing at the time of editing JPEG compressed data. In the flowchart of FIG. 11 , steps that perform the same processing as those performed in the flowcharts of FIGS. 3A , 3B, and 10 are given the same step numbers and detailed explanations are omitted.

在步骤S1100中,通过I/F9从记录介质10中读出被JPEG压缩后的图像数据。In step S1100, the JPEG-compressed image data is read from the recording medium 10 through the I/F9.

在步骤S1110中,在JPEG解压缩部35中,进行使在步骤S1100中读出的图像数据恢复为JPEG压缩前的状态的解压缩处理。进行了解压缩处理后的图像数据和在步骤S1010中读出的摄影信息,在步骤S40中被存储在RAM4中。In step S1110, the JPEG decompression unit 35 performs decompression processing for restoring the image data read in step S1100 to the state before JPEG compression. The image data decompressed and the imaging information read in step S1010 are stored in RAM 4 in step S40.

在步骤S1120中,在显示部8显示存储在RAM4中的图像数据。因此,用户能够确认叠加粒状图案的图像。In step S1120 , the image data stored in RAM 4 is displayed on display unit 8 . Therefore, 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 style mode at the time of editing JPEG compressed data are calculated. FIG. 6 is a diagram showing an example of a data table used in processing when editing JPEG compressed data. In FIG. 6 , the observation methods of various gains, imaging sizes, and image sizes are the same as those in FIG. 4 and FIG. 5 .

在JPEG压缩数据编辑时,为了获得与在银盐风格模式下的摄影处理时得到的画质相同的画质,考虑普通模式下的摄影时的ISO灵敏度和增益NR1,控制粒状图案的强度(GRN_Y、GRN_C)和合成后的噪声降低强度(NR2_Y、NR2_C)。When editing JPEG compressed data, in order to obtain the same image quality as that obtained during shooting processing in silver salt style mode, control the strength of the grain pattern (GRN_Y) in consideration of ISO sensitivity and gain NR1 when shooting in normal mode , GRN_C) and the combined noise reduction strength (NR2_Y, NR2_C).

在ROM5中存储有图6所示的、用于确定对应于ISO灵敏度的各种增益的数据表,所以读出该数据表并计算对应于摄影时的ISO灵敏度的增益GRN_Y、GRN_C。Since a data table for specifying various gains corresponding to ISO sensitivity shown in FIG. 6 is stored in ROM 5 , this data table is read out to calculate gains GRN_Y and GRN_C corresponding to ISO sensitivity during shooting.

在步骤S210A中,在Y第2噪声降低部30中,对灰度转换处理后的Y信号进行降低噪声的处理,同时在C第2噪声降低部32中,对灰度转换处理后的C信号进行降低噪声的处理。在此,从ROM5读出图6所示的数据表,求出对应于摄影时的ISO灵敏度的增益NR2_Y、NR2_C。Y第2噪声降低部30使用所求出的增益NR2_Y进行Y信号的噪声降低处理,C第2噪声降低部32使用所求出的增益NR2_C进行C信号的噪声降低处理。In step S210A, in the Y second noise reduction unit 30, noise reduction processing is performed on the Y signal after the gradation conversion process, and at the same time, in the C second noise reduction unit 32, the C signal after the gradation conversion process is processed. Perform noise reduction processing. Here, the data table shown in FIG. 6 is read from the ROM 5, and the 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 on the Y signal using the obtained gain NR2_Y, and the C second noise reduction unit 32 performs noise reduction processing on the C signal using the obtained gain NR2_C.

以上,根据第1实施方式的图像处理装置,在对图像数据进行同时化处理后,进行附加预定的粒状图案的处理。因此,能够防止由于在附加了粒状图案后进行同时化处理产生的下述问题,即,银盐颗粒独特的细小的粒状感消失,或者把粒状图案错误识别为图像的构造,导致产生图像本来没有的几何图案,所以能够适当地再现银盐照片的粒状感。As described above, according to the image processing device of the first embodiment, the processing of adding a predetermined grain pattern is performed after the synchronization processing is performed on the image data. Therefore, it is possible to prevent the following problems caused by the synchronizing process after adding the granular pattern, that is, the unique fine graininess of the silver salt particles disappears, or the granular pattern is misidentified as the structure of the image, resulting in an image that is not originally geometric patterns, so the graininess of silver halide photographs can be appropriately reproduced.

另外,根据第1实施方式的图像处理装置,对进行了同时化处理的图像数据进行第1灰度转换处理,对灰度转换处理后的图像数据附加预定的粒状图案。因此,能够防止由于在附加粒状图案后进行灰度转换处理,使得暗淡部分的粒状图案被强调、粒状感被破坏。In addition, according to the image processing device of the first embodiment, the first gradation conversion process is performed on the image data subjected to the synchronization process, and a predetermined grain pattern is added to the image data after the gradation conversion process. Therefore, it is possible to prevent the grainy pattern from being emphasized and the grainy feeling from being destroyed in dark areas due to the gradation conversion process after adding the grainy pattern.

另外,根据第1实施方式的图像处理装置,对附加了粒状图案的图像数据进行与第1灰度转换处理不同的第2灰度转换处理,所以能够同时实现图像本来的灰度特性和对应于灰度等级的粒状感的控制。由于把该第2灰度转换处理作为强调图像数据的对比度的灰度转换处理,所以能够抑制图像中最亮处和最暗处的粒状感,强调中间风格的粒状感,表现银盐照片具有的独特的粒状感。In addition, according to the image processing device of the first embodiment, the second gradation conversion processing different from the first gradation conversion processing is performed on the image data to which the granular pattern is added, so that the original gradation characteristics of the image and the corresponding gradation characteristics can be simultaneously realized. Control of the graininess of the gray scale. Since this second gradation conversion process is a gradation conversion process that emphasizes the contrast of the image data, it is possible to suppress the graininess of the brightest and darkest parts of the image, emphasize the graininess of the intermediate style, and express the uniqueness of the silver halide photograph. Unique graininess.

并且,根据第1实施方式的图像处理装置,从被附加预定的粒状图案前的图像数据中提取在边缘强调处理中使用的边缘。如果进行从附加了粒状图案后的图像数据中提取边缘的处理,则有可能把不是边缘的部分错误地作为边缘提取出来,但通过从附加粒状图案前的图像数据中提取边缘,能够防止边缘的错误提取。Furthermore, according to the image processing device of the first embodiment, the edge used in the edge enhancement process is extracted from the image data before the predetermined grain pattern is added. If the edge is extracted from the image data after the granular pattern is added, the part that is not the edge may be mistakenly extracted as the edge, but by extracting the edge from the image data before the granular pattern is added, the edge can be prevented. Error extraction.

并且,根据第1实施方式的图像处理装置,由于调整附加到图像数据上的粒状图案的强度,所以能够附加预期的粒状图案。尤其是根据摄影时的摄影灵敏度来调整粒状图案的强度,所以能够考虑根据摄影灵敏度而产生的噪声成分来附加合适的粒状图案。Furthermore, according to the image processing device of the first embodiment, since the intensity of the grain pattern added to the image data is adjusted, a desired grain pattern can be added. In particular, since the strength of the granular pattern is adjusted according to the imaging sensitivity at the time of imaging, it is possible to add an appropriate granular pattern in consideration of the noise component generated according to the imaging sensitivity.

另外,根据第1实施方式的图像处理装置,对由摄像装置得到的图像数据进行预定的噪声降低处理,对噪声降低处理后的图像数据进行同时化处理,然后附加预定的粒状图案,所述摄像装置具有配置了多个滤色器的摄像元件。因此,能够适当地再现银盐照片的粒状感。In addition, according to the image processing device of the first embodiment, predetermined noise reduction processing is performed on the image data obtained by the imaging device, synchronization processing is performed on the image data after the noise reduction processing, and a predetermined granular pattern is added. The device has an imaging element provided with a plurality of color filters. Therefore, the graininess of silver halide photographs can be appropriately reproduced.

并且,根据第1实施方式的图像处理装置,根据利用摄像装置摄影时的摄影灵敏度,控制噪声降低处理的程度和附加到图像数据上的预定的粒状图案的强度,所以能够考虑根据摄影灵敏度而产生的噪声成分来附加合适的粒状图案。尤其是在摄影时的摄影灵敏度不同时,控制噪声降低处理的程度和预定的粒状图案的强度,以使附加到图像数据上的预定的粒状图案的粒状感大致相同,所以既能保持高分辨率又能获得稳定性良好的粒状感,而且与摄影灵敏度无关。Furthermore, according to the image processing device of the first embodiment, the degree of noise reduction processing and the intensity of the predetermined grain pattern added to the image data are controlled according to the imaging sensitivity when imaging with the imaging device. noise components to attach a suitable grainy pattern. In particular, when the imaging sensitivity at the time of imaging is different, the degree of noise reduction processing and the strength of the predetermined grain pattern are controlled so that the graininess of the predetermined grain pattern added to the image data is substantially the same, so that high resolution can be maintained. Again, a grainy feel with good stability can be obtained regardless of photographic sensitivity.

(第2实施方式)(second embodiment)

图12是表示适用了第2实施方式的图像处理装置的数字照相机的结构的框图。图12所示的数字照相机由照相机主体100和更换式镜头200构成。12 is a block diagram showing the configuration of a digital camera to which the image processing device of the second embodiment is applied. The digital camera shown in FIG. 12 is composed of a camera body 100 and an interchangeable lens 200 .

更换式镜头200具有镜头1010、闪存1011、微机1012、驱动器1013、光圈1014。更换式镜头200通过I/F999与照相机主体100连接并能够通信。The interchangeable lens 200 has a lens 1010 , a flash memory 1011 , a microcomputer 1012 , a driver 1013 , and an aperture 1014 . The interchangeable lens 200 is connected to the camera body 100 via I/F999 and can communicate.

照相机主体100具有机械快门101、摄像元件102、模拟处理部103、模拟/数字转换部104(以下称为A/D转换部104)、总线105、SDRAM106、图像处理部107、AE处理部108、AF处理部109、JPEG处理部110、存储器接口111(以下称为存储器I/F111)、记录介质112、LCD驱动器113、LCD114、微机115、操作部116、闪存117、放大/缩小部118、以及图像加法部119。The camera body 100 has a mechanical shutter 101, an imaging element 102, an analog processing unit 103, an analog/digital conversion unit 104 (hereinafter referred to as an A/D conversion unit 104), a bus 105, an SDRAM 106, an image processing unit 107, an AE processing unit 108, AF processing section 109, JPEG processing section 110, memory interface 111 (hereinafter referred to as memory I/F 111), recording medium 112, LCD driver 113, LCD 114, microcomputer 115, operation section 116, flash memory 117, enlargement/reduction section 118, and Image addition unit 119 .

镜头1010使被摄体的光学像聚光于摄像元件102。镜头1010可以是单焦点镜头,也可以变焦镜头。The lens 1010 focuses the optical image of the subject on the imaging element 102 . The lens 1010 can be a single-focus lens or a zoom lens.

微机1012与I/F999、闪存1011和驱动器1013连接,进行存储在闪存1011中的信息的读取/写入,同时控制驱动器1013。微机1012还能够通过I/F999与微机115通信,向微机115发送各种信息,并从微机115接收光圈值等信息。Microcomputer 1012 is connected to I/F 999 , flash memory 1011 , and drive 1013 , reads/writes information stored in flash memory 1011 , and controls drive 1013 . Microcomputer 1012 can also communicate with microcomputer 115 through I/F999, send various information to microcomputer 115, and receive information such as aperture value from microcomputer 115.

驱动器1013接受微机1012的指示,驱动镜头1010进行焦点距离和聚焦位置的变更,同时驱动光圈1014。光圈1014设置在镜头1010的附近,调节被摄体的光量。The driver 1013 receives instructions from the microcomputer 1012 to drive the lens 1010 to change the focal distance and focus position, and to drive the aperture 1014 at the same time. The aperture 1014 is provided near the lens 1010 and adjusts the amount of light on the subject.

机械快门101接受微机115的指示并驱动,控制摄像元件102将被摄体曝光的时间。The mechanical shutter 101 is driven by an instruction from the microcomputer 115 to control the timing for exposing the subject by the imaging element 102 .

摄像元件102是在构成各个像素的光电二极管的前面配置有拜耳排列的滤色器的摄像元件。拜耳排列构成为具有沿水平方向交替配置了R像素和G(Gr)像素的行、和交替配置了G(Gb)像素和B像素的行,进而沿垂直方向交替配置这两个行。该摄像元件102利用构成像素的光电二极管接受由镜头1010聚光后的光,并进行光电转换,由此把光的量作为电荷量输出给模拟处理部103。另外,摄像元件102可以是CMOS方式的元件也可以是CCD方式的元件。The imaging element 102 is an imaging element in which a color filter in a Bayer arrangement is arranged in front of a photodiode constituting each pixel. The Bayer array has rows in which R pixels and G (Gr) pixels are alternately arranged in the horizontal direction, rows in which G (Gb) pixels and B pixels are alternately arranged, and these two rows are alternately arranged in the vertical direction. The imaging element 102 receives the light condensed by the lens 1010 by photodiodes constituting the pixels, performs photoelectric conversion, and outputs the amount of light to the analog processing unit 103 as an amount of charge. In addition, the imaging element 102 may be a CMOS type element or a CCD type element.

模拟处理部103对于从摄像元件102读出的电信号(模拟图像信号),在降低重设噪声等后进行波形整形,还进行增益提高以达到目标明亮度。A/D转换部104把从模拟处理部103输出的模拟图像信号转换为数字图像信号(以后称为图像数据)。The analog processing unit 103 performs waveform shaping after reducing reset noise and the like on the electric signal (analog image signal) read from the imaging element 102 , and further performs gain enhancement so as to achieve target brightness. The A/D conversion unit 104 converts the analog image signal output from the analog processing unit 103 into a digital image signal (hereinafter referred to as image data).

总线105是将在数字照相机内部产生的各种数据传送给数字照相机内的各个部分的传送路径。总线105与A/D转换部104、SDRAM106、图像处理部107、AE处理部108、AF处理部109、JPEG处理部110、存储器I/F111、LCD驱动器113、微机115、放大/缩小部118以及图像加法部119连接。The bus 105 is a transmission path for transmitting various data generated inside the digital camera to various parts in the digital camera. Bus 105 and A/D conversion section 104, SDRAM 106, image processing section 107, AE processing section 108, AF processing section 109, JPEG processing section 110, memory I/F 111, LCD driver 113, microcomputer 115, enlargement/reduction section 118, and The image addition unit 119 is connected.

从A/D转换部104输出的图像数据通过总线105暂且存储在SDRAM106中。SDRAM106是存储部,用于临时存储在A/D转换部104得到的图像数据、在图像处理部107、JPEG处理部110、放大/缩小部118以及图像加法部119中处理后的图像数据等各种数据。Image data output from the A/D conversion unit 104 is temporarily stored in the SDRAM 106 via the bus 105 . SDRAM 106 is a storage unit for temporarily storing image data obtained by A/D conversion unit 104, image data processed by image processing unit 107, JPEG processing unit 110, enlargement/reduction unit 118, and image addition unit 119, etc. kinds of data.

图像处理部107包括光学黑(optical black)减法部1071(以下称为OB减法部)、白平衡校正部1072(以下称为WB校正部1072)、同时化处理部1073、伽玛/颜色再现处理部1074、彩色矩阵运算部1075、边缘强调处理部1076、以及噪声降低处理部1077(以下称为NR处理部1077),对从SDRAM106读出的图像数据实施各种图像处理。The image processing section 107 includes an optical black (optical black) subtraction section 1071 (hereinafter referred to as OB subtraction section), a white balance correction section 1072 (hereinafter referred to as WB correction section 1072), a synchronization processing section 1073, a gamma/color reproduction processing Section 1074 , color matrix calculation section 1075 , edge enhancement processing section 1076 , and noise reduction processing section 1077 (hereinafter referred to as NR processing section 1077 ) perform various image processing on image data read from SDRAM 106 .

OB减法部1071对图像数据进行光学黑减法处理(以下称为OB减法处理)。OB减法处理是指从构成图像数据的各个像素的像素值中减去起因于摄像元件102的暗电流等的光学黑值(以下称为OB值)的处理。The OB subtraction unit 1071 performs optical black subtraction processing (hereinafter referred to as OB subtraction processing) on the image data. The OB subtraction process is a process of subtracting an optical black value (hereinafter referred to as an OB value) caused by a dark current of the imaging element 102 or the like from the pixel value of each pixel constituting image data.

WB校正部1072进行向图像数据乘以对应于白平衡模式的白平衡增益,并校正白平衡的处理。白平衡模式可以由用户根据晴天、阴天、电灯、荧光灯等光源设定。The WB correction unit 1072 multiplies the image data by a white balance gain corresponding to the white balance mode to correct the white balance. The white balance mode can be set by the user according to light sources such as sunny days, cloudy days, electric lights, and fluorescent lights.

同时化处理部1073进行从基于拜耳排列的图像数据同时化为每一个像素由R、G、B的颜色信息构成的图像数据的处理。伽玛/颜色再现处理部1074进行伽玛校正处理和改变图像的色调的颜色再现处理。The synchronization processing unit 1073 performs processing to simultaneously convert image data based on the Bayer array into image data composed of R, G, and B color information for each pixel. The gamma/color reproduction processing section 1074 performs gamma correction processing and color reproduction processing of changing the color tone of an image.

彩色矩阵运算部1075进行向图像数据乘以彩色矩阵的线性转换,并校正图像数据的颜色。边缘强调处理部1076从图像数据中提取边缘,向所提取的边缘的数据乘以预定的增益,然后加上到图像数据上,由此进行强调图像数据的边缘的处理。NR处理部1077通过使用了降低高频的滤波器的处理、和核化处理等,来进行降低噪声的处理。The color matrix calculation unit 1075 performs linear conversion of multiplying the image data by the color matrix, and corrects the color of the image data. The edge enhancement processing unit 1076 extracts an edge from the image data, multiplies the extracted edge data by a predetermined gain, and adds it to the image data, thereby performing processing for emphasizing the edge of the image data. The NR processing unit 1077 performs noise reduction processing by processing using a filter for reducing high frequencies, coring processing, and the like.

图像处理部107根据需要选择在其内部设置的各个部分1071~1077来进行各个处理。由图像处理部107进行了各个处理后的图像数据被存储在SDRAM106中。The image processing unit 107 selects each of the sections 1071 to 1077 provided therein as necessary, and performs each process. The image data processed by the image processing unit 107 is stored in the SDRAM 106 .

AE处理部108根据图像数据计算被摄体亮度。用于计算被摄体亮度的数据也可以是专用的测光传感器的输出。AF处理部109从图像数据中取出高频成分的信号,通过AF(Auto Focus:自动聚焦)累计处理,获取对焦评价值。The AE processing unit 108 calculates subject brightness from image data. The data used to calculate the brightness of the subject can also be the output of a dedicated light metering sensor. The AF processing unit 109 extracts a signal of a high-frequency component from image data, and acquires a focus evaluation value through AF (Auto Focus: automatic focus) integration processing.

放大/缩小部118进行把存储在SDRAM106中的图像数据的尺寸缩小或放大为所指定的尺寸的处理。放大/缩小部118在缩小图像数据时,使用低通滤波器进行在降低高频成分后减少图像的像素数的处理,以便不会产生折返畸变。Enlargement/reduction unit 118 performs processing for reducing or enlarging the size of image data stored in SDRAM 106 to a specified size. When reducing image data, the enlargement/reduction unit 118 uses a low-pass filter to reduce the number of pixels of the image after reducing high-frequency components so that foldback distortion does not occur.

图像加法部119将图像处理后的图像数据和与银盐颗粒的粒状感相似的粒状图案的图像数据相加,输出叠加了粒状图案的图像数据。叠加了粒状图案的图像数据被存储在SDRAM106中。另外,在与粒状图案的图像数据相加之前的图像处理后的图像数据中,不仅包含在放大/缩小部118中没有进行缩小处理的图像数据,而且包含进行了缩小处理的图像数据。The image addition unit 119 adds image data after image processing to image data of a granular pattern similar to the graininess of silver salt grains, and outputs image data in which the granular pattern is superimposed. Image data on which the grain pattern is superimposed is stored in SDRAM 106 . In addition, the image data after image processing before being added to the image data of the grain pattern includes not only image data not subjected to reduction processing in the enlarging/reducing unit 118 but also image data subjected to reduction processing.

JPEG处理部110在记录图像数据时,从SDRAM106读出图像数据,按照JPEG压缩方式压缩所读出的图像数据,把压缩后的JPEG图像数据暂且存储在SDRAM106中。微机115对存储在SDRAM106中的JPEG图像数据附加构成JPEG文件所需要的JPEG标题,生成JPEG文件,把所生成的JPEG文件通过存储器I/F111记录在记录介质112中。记录介质112例如是由能够在照相机主体100上插拔的存储卡构成的记录介质,但不限于此。When recording image data, the JPEG processing unit 110 reads the image data from the SDRAM 106 , compresses the read image data according to the JPEG compression method, and temporarily stores the compressed JPEG image data in the SDRAM 106 . The microcomputer 115 adds a JPEG header required to constitute a JPEG file to the JPEG image data stored in the SDRAM 106 to generate a JPEG file, and records the generated JPEG file in the recording medium 112 through the memory I/F 111 . The recording medium 112 is, for example, a recording medium composed of a memory card that can be inserted and removed from the camera body 100 , but is not limited thereto.

LCD驱动器113使LCD114显示图像。图像的显示包括短时间显示刚刚摄影到的图像数据的REC取景(REC View)显示、记录在记录介质112中的JPEG文件的再现显示、和实时取景显示等的动态图像显示。在再现记录在记录介质112中的JPEG文件时,JPEG处理部110读出记录在记录介质112中的JPEG文件并实施解压缩处理,然后把解压缩后的图像数据暂且存储在SDRAM106中。LCD驱动器113从SDRAM106读出被解压缩后的图像数据,把所读出的图像数据转换为影像信号,然后输出给LCD114,进行图像的显示。LCD driver 113 causes LCD 114 to display images. The display of images includes REC view display for short-term display of image data captured just now, playback display of JPEG files recorded in the recording medium 112, and dynamic image display such as live view display. When reproducing the JPEG file recorded on the recording medium 112 , the JPEG processing unit 110 reads out the JPEG file recorded on the recording medium 112 , performs decompression processing, and temporarily stores the decompressed image data in the SDRAM 106 . LCD driver 113 reads the decompressed image data from SDRAM 106 , converts the read image data into video signals, and outputs them to LCD 114 to display images.

具有作为控制部的功能的微机115总括控制数字照相机主体100的各种程序。在微机115上连接有操作部116和闪存117。The microcomputer 115 functioning as a control unit collectively controls various programs of the digital camera body 100 . An operation unit 116 and a flash memory 117 are connected to the microcomputer 115 .

操作部116是电源按钮、释放按钮、各种输入键等操作部件。通过由用户操作操作部116的任意一个操作部件,微机115执行对应于用户操作的各种程序。电源按钮是用于进行该数字照相机的电源的接通/断开指示的操作部件。在电源按钮被按下时,微机115使该数字照相机的电源接通或断开。释放按钮构成为具有第一释放开关和第二释放开关这两档开关。在释放按钮被按下一半、第一释放开关接通时,微机115进行AE处理和AF处理等的摄影准备程序。并且,在释放按钮被彻底按下、第二释放开关接通时,微机115执行摄影程序而进行摄影。The operation unit 116 is an operation member such as a power button, a release button, and various input keys. When the user operates any one of the operation members of the operation unit 116, the microcomputer 115 executes various programs corresponding to the user's operation. The power button is an operation member for instructing on/off the power of the digital camera. When the power button is pressed, the microcomputer 115 turns on or off the power of the digital camera. The release button is configured to have two switches, a first release switch and a second release switch. When the release button is half-pressed and the first release switch is turned on, the microcomputer 115 executes an imaging preparation program such as AE processing and AF processing. Then, when the release button is fully pressed and the second release switch is turned on, the microcomputer 115 executes the imaging program to perform imaging.

闪存117存储对应于白平衡模式的白平衡增益和低通滤波器系数等数字照相机进行动作所需要的各种参数、与银盐颗粒的粒状感相似的粒状图案的图像数据、和用于特定数字照相机的制造编号等。并且,闪存117还存储由微机115执行的各种程序。微机115按照存储在闪存117中的程序,从闪存117读取各种程序所需要的参数,并执行各个处理。The flash memory 117 stores various parameters necessary for the operation of the digital camera such as white balance gain and low-pass filter coefficient corresponding to the white balance mode, image data of a grainy pattern similar to that of silver salt grains, and data for a specific digital camera. The serial number of the camera, etc. Furthermore, the flash memory 117 also stores various programs executed by the microcomputer 115 . Microcomputer 115 reads parameters required for various programs from flash memory 117 in accordance with programs stored in flash memory 117 and executes various processes.

图13是表示利用适用了第2实施方式的图像处理装置的数字照相机进行的主处理流程的流程图。在由用户按下电源按钮、数字照相机的电源接通时,微机115开始步骤S1301的处理。13 is a flowchart showing the flow of main processing performed by a digital camera to which the image processing device of the second embodiment is applied. When the user presses the power button and the digital camera is turned on, the microcomputer 115 starts the process of step S1301.

在步骤S1301中,判定是否进行摄影、即释放按钮是否被按下。在判定为释放按钮被按下时,转入步骤S 1302,进行静态图像的摄影/记录动作。关于静态图像的摄影/记录动作,将在后面使用图14A和图14B所示的流程图说明。In step S1301, it is determined whether or not photography is being performed, that is, whether or not the release button has been pressed. When it is determined that the release button is pressed, proceed to step S1302, and perform still image shooting/recording actions. The still image shooting/recording operation will be described later using the flowcharts shown in FIGS. 14A and 14B .

在步骤S1301中判定为释放按钮没有被按下时,转入步骤S1303。在步骤S1303中,判定是否有图像数据的记录尺寸的变更指示。用户通过操作操作部116的按钮,能够变更(指定)图像数据的记录尺寸。记录尺寸例如可以从4032×3024(完整尺寸)、2560×1920、1280×960、640×480的像素尺寸中选择。在判定为用户进行了记录尺寸的变更指示时,转入步骤S1304。When it is determined in step S1301 that the release button has not been pressed, the process proceeds to step S1303. In step S1303, it is determined whether there is an instruction to change the recording size of image data. The user can change (designate) the recording size of the image data by operating the buttons of the operation unit 116 . The recording size can be selected from, for example, pixel sizes of 4032×3024 (full size), 2560×1920, 1280×960, and 640×480. When it is determined that the user has instructed to change the recording size, the process proceeds to step S1304.

在步骤S1304中,进行向对应于用户指示的记录尺寸的变更/设定。In step S1304, change/setting to a recording size corresponding to the user's instruction is performed.

另一方面,当在步骤S1303中判定为没有记录尺寸的变更指示时,转入步骤S1305。在步骤S1305中进行实时取景显示。关于实时取景显示的具体处理,将在后面使用图15所示的流程图说明。On the other hand, when it is determined in step S1303 that there is no instruction to change the recording size, the process proceeds to step S1305. Live view display is performed in step S1305. The specific processing of the live view display will be described later using the flowchart shown in FIG. 15 .

在步骤S1306中,判定数字照相机的电源是否被断开。在判定为电源没有被断开时,返回步骤S1301。另一方面,在判定为用户按下了电源按钮、电源被断开时,结束流程图的处理。In step S1306, it is determined whether the power of the digital camera is turned off. When it is determined that the power supply has not been turned off, the process returns to step S1301. On the other hand, when it is determined that the user has pressed the power button and the power has been turned off, the processing of the flowchart ends.

另外,在上述图13的流程图中,说明了在电源被接通后,在释放按钮没有被按下、也没有图像数据的记录尺寸的变更指示时,进行实时取景显示的情况,但也可以在用户进行了实时取景显示的指示时进行实时取景显示。In addition, in the above-mentioned flowchart of FIG. 13 , the case where the live view display is performed when the release button is not pressed after the power is turned on, and there is no instruction to change the recording size of the image data, may be The live view display is performed when the user instructs the live view display.

图14A和图14B是表示在图13所示的流程图的步骤S 1302中进行的静态图像的摄影/记录动作的具体处理内容的流程图。从步骤S1401到步骤S1403的处理是利用第一释放开关进行的处理,步骤S1404以后的处理是利用第二释放开关进行的处理。14A and 14B are flowcharts showing specific processing contents of still image shooting/recording operations performed in step S1302 of the flowchart shown in FIG. 13 . The processing from step S1401 to step S1403 is processing performed using the first release switch, and the processing after step S1404 is processing performed using the second release switch.

在步骤S1401中,在AF处理部109中计算对焦评价值。微机115根据对焦评价值,向驱动器1013发出使之驱动镜头1010的指令。In step S1401 , an in-focus evaluation value is calculated in the AF processing unit 109 . The microcomputer 115 issues a command to the driver 1013 to drive the lens 1010 based on the focus evaluation value.

在步骤S1402中,在AE处理部108中计算被摄体亮度。在步骤S1403中,根据被摄体亮度并参照存储在闪存117中的光圈值和快门速度确定表,计算光圈和快门速度。In step S1402 , subject brightness is calculated in the AE processing unit 108 . In step S1403 , the aperture and shutter speed are calculated based on the brightness of the subject and referring to the aperture value and shutter speed determination table stored in the flash memory 117 .

在步骤S1404中,判定用户是否彻底按下释放开关、第二释放开关是否被接通。在判定为第二释放开关没有被接通时,转入步骤S1405。在步骤S1405中,判定释放按钮是否恢复。在判定为释放按钮已从按下一半的状态恢复时,结束摄影/记录动作,在判定为释放按钮没有恢复时,返回步骤S1404。In step S1404, it is determined whether the user presses the release switch fully and whether the second release switch is turned on. When it is determined that the second release switch is not turned on, the process proceeds to step S1405. In step S1405, it is determined whether the release button is restored. When it is determined that the release button has been restored from the half-pressed state, the photographing/recording operation ends, and when it is determined that the release button has not been restored, the process returns to step S1404.

另一方面,当在步骤S1404中判定为第二释放开关被接通时,转入步骤S1406。在步骤S1406中进行摄影。关于摄影,与以往使用的方法相同。驱动器1013根据微机1012的指示,驱动光圈1014使之成为所设定的光圈值。并且,根据计算出的快门速度,控制机械快门101进行摄影,得到图像数据(第1图像数据)。On the other hand, when it is determined in step S1404 that the second release switch is turned on, the process proceeds to step S1406. Photography is performed in step S1406. Regarding photography, it is the same method as used in the past. The driver 1013 drives the aperture 1014 to a set aperture value according to instructions from the microcomputer 1012 . Then, based on the calculated shutter speed, the mechanical shutter 101 is controlled to perform shooting, and image data (first image data) is obtained.

在步骤S1407中,由OB减法部1071实施从通过摄影得到的图像数据中减去在摄像时得到的OB值的OB减法处理。In step S1407 , the OB subtraction unit 1071 performs OB subtraction processing of subtracting the OB value obtained at the time of imaging from the image data obtained by imaging.

在步骤S1408中,由WB校正部1072进行向被实施了OB减法处理的图像数据乘以对应于白平衡模式的白平衡增益,并校正白平衡的处理。另外,白平衡模式可以通过由用户操作操作部116中包含的输入键,每当摄影一次时设定一次。微机115根据用户对操作部116的操作,设定白平衡模式。并且,在数字照相机具有自动调整白平衡的自动白平衡功能时,微机115自动设定与摄影时的光源对应的白平衡模式。In step S1408 , the WB correction unit 1072 multiplies the image data subjected to the OB subtraction process by the white balance gain corresponding to the white balance mode to correct the white balance. In addition, the white balance mode can be set every time a photograph is taken by the user operating an input key included in the operation unit 116 . The microcomputer 115 sets the white balance mode in accordance with the user's operation on the operation unit 116 . Furthermore, when the digital camera has an automatic white balance function for automatically adjusting the white balance, the microcomputer 115 automatically sets a white balance mode corresponding to the light source at the time of shooting.

在步骤S1409中,由同时化处理部1073对被实施了白平衡校正处理的图像数据实施同时化处理。在步骤S1410中,由彩色矩阵运算部1075进行向被实施了同时化处理的图像数据乘以对应于白平衡模式的彩色矩阵的彩色矩阵运算。In step S1409 , the synchronization processing is performed by the synchronization processing unit 1073 on the image data subjected to the white balance correction processing. In step S1410, the color matrix calculation unit 1075 performs a color matrix calculation of multiplying the synchronized image data by a color matrix corresponding to the white balance mode.

在步骤S1411中,由伽玛/颜色再现处理部1074对进行了彩色矩阵运算的图像数据进行伽玛校正处理和改变图像的色调的颜色再现处理。In step S1411 , the gamma/color reproduction processing unit 1074 performs gamma correction processing and color reproduction processing for changing the color tone of the image on the image data subjected to the color matrix calculation.

在步骤S1412中,由边缘强调处理部1076对进行了伽玛校正处理和颜色再现处理的图像数据进行边缘强调处理。In step S1412 , edge emphasis processing is performed by the edge emphasis processing unit 1076 on the image data subjected to gamma correction processing and color reproduction processing.

在步骤S1413中,由NR处理部1077对进行了边缘强调处理的图像数据进行降低噪声的处理。噪声降低处理是基于核化参数的核化处理、或者使用根据噪声降低参数(以下称为NR参数)降低高频的滤波器的处理。In step S1413 , the NR processing unit 1077 performs noise reduction processing on the image data subjected to the edge enhancement processing. The noise reduction process is a coring process based on a coring parameter, or a process using a filter that reduces high frequencies according to a noise reduction parameter (hereinafter referred to as NR parameter).

在进行步骤S1413的处理后,转入图14B的步骤S1414。在步骤S1414中,由放大/缩小部118从SDRAM106读出噪声降低处理后的图像数据(第2图像数据),进行把所读出的图像数据(完整尺寸)的数据尺寸缩小为REC取景显示尺寸的处理。REC取景显示尺寸例如是640×480的像素尺寸。After performing the processing of step S1413, the process goes to step S1414 of FIG. 14B. In step S1414, the image data after the noise reduction processing (second image data) is read out from the SDRAM 106 by the enlargement/reduction unit 118, and the data size of the read image data (full size) is reduced to the REC finder display size. processing. The REC finder display size is, for example, a pixel size of 640×480.

在步骤S1415中,判定是否已设定为对图像数据附加粒状图案的图像数据的粒状图案附加模式。用户能够根据操作部116的操作预先进行粒状图案附加模式的设定。在判定为没有设定为粒状图案附加模式时,转入步骤S1417,在判定为已设定为粒状图案附加模式时,转入步骤S1416。In step S1415, it is determined whether or not the grain pattern adding mode of image data for adding a grain pattern to image data has been set. The user can perform the setting of the granular pattern adding mode in advance according to the operation of the operation unit 116 . When it is determined that the granular pattern adding mode is not set, the process proceeds to step S1417, and when it is determined that the granular pattern adding mode is set, the process proceeds to step S1416.

在步骤S1416中,由图像加法部119进行以下处理,即向在步骤S1414中被缩小的图像数据加上存储在闪存117中的粒状图案的图像数据。然后,由伽玛/颜色再现处理部1074进行对相加后的图像数据强调图像数据的对比度的灰度转换处理。通过该灰度转换处理,能够抑制图像中最亮处和最暗处的粒状感,同时强调中间风格的粒状感,表现银盐照片具有的独特的粒状感。In step S1416, the image adding unit 119 performs processing of adding the image data of the grain pattern stored in the flash memory 117 to the image data reduced in step S1414. Then, the gamma/color reproduction processing unit 1074 performs gradation conversion processing for emphasizing the contrast of the image data on the added image data. This gradation conversion process suppresses the graininess of the brightest and darkest parts of the image while emphasizing the graininess of the intermediate style, expressing the graininess unique to silver halide photographs.

在步骤S1417中,进行将图像数据在LCD114上显示极短时间的REC取景显示。进行REC取景显示的图像数据在进行了步骤S1416的处理时是加上了粒状图案的图像数据,在没有进行步骤S1416的处理时是没有加上粒状图案的图像数据。In step S1417, REC finder display for displaying image data on LCD 114 for a very short time is performed. The image data for REC viewfinder display is image data with a grain pattern added when the process of step S1416 is performed, and image data without a grain pattern added when the process of step S1416 is not performed.

在步骤S1418中,判定所设定的记录尺寸是否是缩小尺寸。在此,如果所设定的记录尺寸是完整尺寸,则判定为不是缩小尺寸,在设定了除此之外的记录尺寸时,判定为是缩小尺寸。在判定为所设定的记录尺寸不是缩小尺寸时,转入步骤S1420,在判定为是缩小尺寸时,转入步骤S1419。In step S1418, it is determined whether or not the set recording size is a reduced size. Here, if the set recording size is the full size, it is determined that it is not a reduced size, and when other recording sizes are set, it is determined that it is a reduced size. If it is determined that the set recording size is not a reduced size, the process proceeds to step S1420, and if it is determined to be a reduced size, the process proceeds to step S1419.

在步骤S1419中,由放大/缩小部118进行以下处理,即读出在步骤S1413中进行了噪声降低处理后被存储在SDRAM106中的完整尺寸的图像数据,把图像数据的数据尺寸缩小为记录尺寸。记录尺寸是在图13所示的流程图的步骤S1304中变更后的数据尺寸。In step S1419, the enlarging/reducing section 118 performs the process of reading out the full-size image data stored in the SDRAM 106 after the noise reduction process in step S1413, and reducing the data size of the image data to the recording size. . The record size is the data size changed in step S1304 of the flowchart shown in FIG. 13 .

在步骤S1420中,判定是否被设定为粒状图案附加模式。在判定为没有设定为粒状图案附加模式时,转入步骤S1422,在判定为已设定为粒状图案附加模式时,转入步骤S1421。In step S1420, it is determined whether the granular pattern adding mode is set. When it is determined that the granular pattern adding mode is not set, the process goes to step S1422, and when it is determined that the granular pattern adding mode is set, the process goes to step S1421.

在步骤S 1421中,由图像加法部119进行以下处理,即向在步骤S1419中被缩小为记录尺寸的图像数据(第3图像数据)加上存储在闪存117中的粒状图案的图像数据。然后,由伽玛/颜色再现处理部1074对相加后的图像数据进行强调图像数据的对比度的灰度转换处理。通过该灰度转换处理,能够抑制图像中最亮处和最暗处的粒状感,同时强调中间风格的粒状感,表现银盐照片具有的独特的粒状感。In step S1421, the image adding unit 119 performs processing of adding the image data of the grain pattern stored in the flash memory 117 to the image data (third image data) reduced to the recording size in step S1419. Then, the added image data is subjected to gradation conversion processing for emphasizing the contrast of the image data by the gamma/color reproduction processing unit 1074 . This gradation conversion process suppresses the graininess of the brightest and darkest parts of the image while emphasizing the graininess of the intermediate style, expressing the graininess unique to silver halide photographs.

另外,在步骤S1418中,在判定为所设定的记录尺寸不是缩小尺寸后转入步骤S1421时,向在步骤S1413中进行了噪声降低处理的图像数据加上粒状图案的图像数据。该情况时,相加到没有缩小的图像数据上的粒状图案的图像数据、和相加到缩小后的图像数据上的粒状图案的图像数据是相同的数据。In addition, when it is determined in step S1418 that the set recording size is not a reduced size and the process proceeds to step S1421, image data of a grainy pattern is added to the image data subjected to noise reduction processing in step S1413. In this case, the image data of the grain pattern added to the image data not reduced and the image data of the grain pattern added to the image data after reduction are the same data.

在步骤S1422中,在JPEG处理部110中对图像数据进行JPEG压缩。进行JPEG压缩的图像数据在进行了步骤S1421的处理时是被加上了粒状图案的图像数据,在没有进行步骤S1421的处理时是没有被加上粒状图案的图像数据。在步骤S1423中,生成图像的记录模式和曝光条件等的摄影信息作为文件标题信息,把所生成的文件标题信息附加到被JPEG压缩后的图像数据上,并通过存储器I/F111记录在记录介质112中。In step S1422 , JPEG compression is performed on the image data in the JPEG processing unit 110 . The image data subject to JPEG compression is image data to which a grainy pattern has been added when the process of step S1421 has been performed, and image data to which a grainy pattern has not been added when the process of step S1421 has not been performed. In step S1423, photography information such as the recording mode and exposure conditions of the image is generated as file header information, the generated file header information is added to the image data compressed by JPEG, and recorded on the recording medium through the memory I/F 111 112 in.

图15是表示在图13所示的流程图的步骤S1305中进行的实时取景显示的具体处理内容的流程图。FIG. 15 is a flowchart showing specific processing contents of live view display performed in step S1305 of the flowchart shown in FIG. 13 .

在步骤S1501中,在AE处理部108中计算被摄体亮度。在步骤S1502中,根据被摄体亮度并参照存储在闪存117中的光圈值和快门速度确定表,计算光圈和快门速度。In step S1501 , subject brightness is calculated in the AE processing unit 108 . In step S1502 , the aperture and shutter speed are calculated based on the brightness of the subject and referring to the aperture value and shutter speed determination table stored in the flash memory 117 .

在步骤S1503中进行摄影。该摄影是用于进行实时取景显示的摄影,即所谓利用电子快门的摄影。用于进行实时取景显示的摄影与以往使用的方法相同,所以此处省略具体说明。Photography is performed in step S1503. This photography is photography for live view display, that is, photography using an electronic shutter. The imaging for live view display is the same as the conventionally used method, so detailed description is omitted here.

在步骤S1504中,由OB减法部1071实施从通过摄影得到的图像数据中减去在摄像时得到的OB值的OB减法处理。在步骤S1505中,由WB校正部1072进行向被实施了OB减法处理的图像数据乘以对应于白平衡模式的白平衡增益,并校正白平衡的处理。In step S1504 , the OB subtraction unit 1071 performs OB subtraction processing of subtracting the OB value obtained at the time of imaging from the image data obtained by imaging. In step S1505 , the WB correcting unit 1072 multiplies the image data subjected to the OB subtraction process by the white balance gain corresponding to the white balance mode to correct the white balance.

在步骤S1506中,由同时化处理部1073对被实施了白平衡校正处理的图像数据实施同时化处理。在步骤S1507中,由彩色矩阵运算部1075进行向被实施了同时化处理的图像数据乘以对应于白平衡模式的彩色矩阵的彩色矩阵运算。In step S1506 , the synchronization processing is performed on the image data subjected to the white balance correction processing by the synchronization processing unit 1073 . In step S1507, the color matrix calculation unit 1075 performs a color matrix calculation of multiplying the synchronized image data by a color matrix corresponding to the white balance mode.

在步骤S1508中,由伽玛/颜色再现处理部1074对进行了彩色矩阵运算的图像数据进行伽玛校正处理、和改变图像的色调的颜色再现处理。在步骤S1509中,由边缘强调处理部1076对进行了伽玛校正处理和颜色再现处理的图像数据进行边缘强调处理。In step S1508, the gamma/color reproduction processing unit 1074 performs gamma correction processing and color reproduction processing for changing the color tone of the image on the image data subjected to the color matrix calculation. In step S1509 , edge emphasis processing is performed on the image data subjected to gamma correction processing and color reproduction processing by the edge emphasis processing unit 1076 .

在步骤S1510中,由NR处理部1077对进行了边缘强调处理的图像数据进行降低噪声的处理。噪声降低处理是基于核化参数的核化处理、或者使用根据噪声降低参数(以下称为NR参数)降低高频的滤波器的处理。In step S1510 , the NR processing unit 1077 performs noise reduction processing on the image data subjected to the edge enhancement processing. The noise reduction process is a coring process based on a coring parameter, or a process using a filter that reduces high frequencies according to a noise reduction parameter (hereinafter referred to as NR parameter).

在步骤S1511中,由放大/缩小部118进行以下处理,即读出在步骤S1510中进行了噪声降低处理后被存储在SDRAM106中的图像数据,把图像数据的数据尺寸缩小为实时取景显示图像尺寸。实时取景显示图像尺寸例如是640×480的像素尺寸。In step S1511, the enlarging/reducing unit 118 performs the process of reading out the image data stored in the SDRAM 106 after performing the noise reduction processing in step S1510, and reducing the data size of the image data to the live view display image size. . The live view display image size is, for example, a pixel size of 640×480.

在步骤S1512中,判定是否被设定为粒状图案附加模式。在判定为没有设定为粒状图案附加模式时,转入步骤S1514,在判定为已设定为粒状图案附加模式时,转入步骤S1513。In step S1512, it is determined whether the grain pattern adding mode is set. When it is determined that the granular pattern adding mode is not set, the process goes to step S1514, and when it is determined that the granular pattern adding mode is set, the process goes to step S1513.

在步骤S1513中,由图像加法部119进行以下处理,即向在步骤S1511中被缩小的图像数据加上存储在闪存117中的粒状图案的图像数据。然后,由伽玛/颜色再现处理部1074对相加后的图像数据进行强调图像数据的对比度的灰度转换处理。通过该灰度转换处理,能够抑制图像中最亮处和最暗处的粒状感,同时强调中间风格的粒状感,表现银盐照片具有的独特的粒状感。In step S1513, the image adding unit 119 performs a process of adding the image data of the grain pattern stored in the flash memory 117 to the image data reduced in step S1511. Then, the added image data is subjected to gradation conversion processing for emphasizing the contrast of the image data by the gamma/color reproduction processing unit 1074 . This gradation conversion process suppresses the graininess of the brightest and darkest parts of the image while emphasizing the graininess of the intermediate style, expressing the graininess unique to silver halide photographs.

在步骤S1514中,由LCD驱动器113将图像数据显示在LCD114上。在此,在进行了步骤S1513的处理时,进行被加上了粒状图案的图像数据的显示,在没有进行步骤S1513的处理时,进行没有被加上粒状图案的图像数据的显示。通过反复进行从步骤S1501到步骤S1514的处理,能够持续进行实时取景显示。In step S1514 , the image data is displayed on LCD 114 by LCD driver 113 . Here, when the process of step S1513 is performed, the image data with the grain pattern added is displayed, and when the process of step S1513 is not performed, the image data without the grain pattern is displayed. By repeating the processing from step S1501 to step S1514, live view display can be continuously performed.

以上,根据第2实施方式的图像处理装置,提供一种对图像数据附加预定的粒状图案的图像处理装置,在生成像素数比较少的缩小图像数据时,对缩小图像数据附加预定的粒状图案,所以能够获得被叠加了充分具有粒状感的粒状图案的缩小图像数据。即,像现有技术那样在缩小附加了粒状图案的图像数据来生成缩小图像数据时,在缩小时有时会导致粒状图案被破坏,但根据第2实施方式的图像处理装置,不存在粒状图案被破坏那样的情况。As described above, according to the image processing device of the second embodiment, there is provided an image processing device that adds a predetermined granular pattern to image data, and when generating reduced image data with a relatively small number of pixels, adds a predetermined granular pattern to the reduced image data, Therefore, it is possible to obtain reduced image data on which a grainy pattern having a sufficiently grainy feeling is superimposed. That is, when image data with a grain pattern added is reduced to generate reduced image data as in the prior art, the grain pattern may be destroyed during reduction, but according to the image processing device of the second embodiment, there is no grain pattern being destroyed. destroy that situation.

(第3实施方式)(third embodiment)

在第2实施方式的图像处理装置中,在将图像数据缩小后附加预定的粒状图案,由此生成保持粒状感的缩小图像数据。在第3实施方式的图像处理装置中,以与缩小图像时的缩小率对应的放大率将粒状图案放大,将缩小前的图像数据和放大后的粒状图案相加,然后缩小图像数据,由此生成附加了粒状图案的缩小图像数据。In the image processing device according to the second embodiment, image data is reduced and then a predetermined grainy pattern is added, thereby generating reduced image data that maintains a grainy feel. In the image processing device according to the third embodiment, the granular pattern is enlarged at a magnification rate corresponding to the reduction rate at the time of image reduction, the image data before reduction and the enlarged granular pattern are added, and the image data is reduced, thereby Reduced image data to which a grainy pattern is added is generated.

利用适用了第3实施方式的图像处理装置的数字照相机进行的主处理流程与图13所示的处理流程相同。其中,在步骤S1302中进行的静态图像的摄影/记录处理、和在步骤S1305中进行的实时取景显示处理的内容不同,以下说明这些处理内容。The main processing flow performed by the digital camera to which the image processing device of the third embodiment is applied is the same as the processing flow shown in FIG. 13 . However, the still image shooting/recording processing performed in step S1302 is different from the live view display processing performed in step S1305, and these processing contents will be described below.

首先,说明在第3实施方式的图像处理装置中进行的静态图像的摄影/记录处理。在由第3实施方式的图像处理装置进行的静态图像的摄影/记录处理中,相对于第2实施方式,从图14A所示的步骤S1401到步骤S1413的处理相同,在步骤S1413以后进行的处理不同。因此,下面说明在步骤S1413以后进行的处理。First, still image shooting/recording processing performed in the image processing device of the third embodiment will be described. In the still image shooting/recording processing performed by the image processing device of the third embodiment, the processing from step S1401 to step S1413 shown in FIG. 14A is the same as that of the second embodiment, and the processing performed after step S1413 different. Therefore, the processing performed after step S1413 will be described below.

图16是表示在第3实施方式的图像处理装置中进行的静态图像的摄影/记录动作的处理中、在图14A的步骤S1413之后进行的处理内容的流程图。在进行了步骤S1413的处理之后转入的步骤S1601中,判定是否被设定为粒状图案附加模式。在判定为没有设定为粒状图案附加模式时,转入步骤S1604,在判定为已设定为粒状图案附加模式时,转入步骤S1602。FIG. 16 is a flowchart showing the content of processing performed after step S1413 in FIG. 14A in the still image shooting/recording operation processing performed by the image processing apparatus according to the third embodiment. In step S1601, which proceeds after the processing of step S1413, it is determined whether or not the grain pattern adding mode is set. When it is determined that the granular pattern adding mode is not set, the process goes to step S1604, and when it is determined that the granular pattern adding mode is set, the process goes to step S1602.

在步骤S1602中,首先,把将摄影得到的完整尺寸的图像数据缩小为记录尺寸的图像数据时的缩小率的倒数设定为放大率。并且,以所设定的放大率将存储在闪存117中的粒状图案的图像数据放大,由此生成放大粒状图案图像数据。例如,在缩小率为1/2时,把放大率设定为2倍,把存储在闪存117中的粒状图案的图像数据放大为2倍。该处理可以由微机115进行,也可以另外设置放大粒状图案数据生成部,由放大粒状图案数据生成部进行。In step S1602, first, the reciprocal of the reduction ratio when the captured full-size image data is reduced to the record-size image data is set as the enlargement ratio. Then, the image data of the granular pattern stored in the flash memory 117 is magnified at a set magnification factor to generate enlarged granular pattern image data. For example, when the reduction ratio is 1/2, the enlargement ratio is set to 2 times, and the image data of the grain pattern stored in the flash memory 117 is enlarged by 2 times. This processing may be performed by the microcomputer 115, or may be performed by an enlarged granular pattern data generating unit provided separately.

在步骤S1603中,由放大/缩小部118进行以下处理,即读出在步骤S1413中进行了噪声降低处理后被存储在SDRAM106中的完整尺寸的图像数据,并与在步骤S1602中生成的放大粒状图案图像数据相加。然后,由伽玛/颜色再现处理部1074对相加后的图像数据进行强调图像数据的对比度的灰度转换处理。通过该灰度转换处理,能够抑制图像中最亮处和最暗处的粒状感,同时强调中间风格的粒状感,表现银盐照片具有的独特的粒状感。In step S1603, the enlargement/reduction unit 118 performs a process of reading out the full-size image data stored in the SDRAM 106 after performing the noise reduction process in step S1413, and comparing them with the enlarged granular image data generated in step S1602. The pattern image data is added. Then, the added image data is subjected to gradation conversion processing for emphasizing the contrast of the image data by the gamma/color reproduction processing unit 1074 . This gradation conversion process suppresses the graininess of the brightest and darkest parts of the image while emphasizing the graininess of the intermediate style, expressing the graininess unique to silver halide photographs.

在步骤S1604中,由放大/缩小部118进行以下处理,即从SDRAM106中读出与放大粒状图案图像数据相加后的图像数据,把所读出的图像数据(完整尺寸)的数据尺寸缩小为REC取景显示尺寸。其中,在没有进行步骤S1602和S1603的处理时,从SDRAM106中读出没有被加上放大粒状图案图像数据的图像数据,把所读出的图像数据的数据尺寸缩小为REC取景显示尺寸。In step S1604, the enlarging/reducing section 118 performs the process of reading the image data added to the enlarged grain pattern image data from the SDRAM 106, and reducing the data size of the read image data (full size) to REC viewfinder display size. Wherein, when the processing of steps S1602 and S1603 is not performed, the image data to which the enlarged granular pattern image data is not added is read from SDRAM 106, and the data size of the read image data is reduced to the REC finder display size.

在步骤S1605中,进行将在步骤S1604中被缩小的图像数据在LCD114上显示极短时间的REC取景显示。In step S1605, a REC finder display is performed for displaying the image data reduced in step S1604 on LCD 114 for a very short time.

在步骤S1606中,判定所设定的记录尺寸是否是缩小尺寸。在判定为所设定的记录尺寸不是缩小尺寸时,转入步骤S1608,在判定为是缩小尺寸时,转入步骤S1607。In step S1606, it is determined whether the set recording size is a reduced size. If it is determined that the set recording size is not a reduced size, the process goes to step S1608, and if it is determined to be a reduced size, the process goes to step S1607.

在步骤S1607中,由放大/缩小部118进行以下处理,即读出存储在SDRAM106中的完整尺寸的图像数据,把数据尺寸缩小为记录尺寸。缩小对象的图像数据在进行了步骤S1603的处理时是与放大粒状图案图像数据相加后的图像数据,在没有进行步骤S1603的处理时是没有与放大粒状图案图像数据相加的图像数据。In step S1607, the enlargement/reduction unit 118 performs a process of reading out the full-size image data stored in the SDRAM 106 and reducing the data size to a recording size. The image data to be reduced is image data added to the enlarged granular pattern image data when the processing of step S1603 is performed, and image data not added to the enlarged granular pattern image data when the processing of step S1603 is not performed.

在步骤S1608中,在JPEG处理部110中对图像数据进行JPEG压缩。进行JPEG压缩的图像数据在进行了步骤S1607的处理时是被缩小的图像数据,在没有进行步骤S1607的处理时是没有被缩小的图像数据。在步骤S1609中,生成图像的记录模式和曝光条件等的摄影信息作为文件标题信息,把所生成的文件标题信息附加到被JPEG压缩后的图像数据上,并通过存储器I/F111记录在记录介质112中。In step S1608 , JPEG compression is performed on the image data in the JPEG processing unit 110 . The image data subject to JPEG compression is image data that has been reduced when the process of step S1607 is performed, and image data that has not been reduced when the process of step S1607 has not been performed. In step S1609, photographing information such as the recording mode and exposure conditions of the image is generated as file header information, the generated file header information is added to the image data compressed by JPEG, and recorded on the recording medium through the memory I/F 111 112 in.

下面,说明在第3实施方式的图像处理装置中进行的实时取景显示处理。Next, live view display processing performed in the image processing device according to the third embodiment will be described.

图17是表示在第3实施方式的图像处理装置中进行的实时取景显示处理的具体处理内容的流程图。对于进行和图15所示的流程图的处理相同的处理的步骤标注相同的标号,并省略具体说明。17 is a flowchart showing specific processing contents of live view display processing performed in the image processing device according to the third embodiment. Steps that perform the same processing as those in the flowchart shown in FIG. 15 are denoted by the same reference numerals, and detailed description thereof will be omitted.

从步骤S1501到步骤S1510的处理与图15所示的流程图的处理相同。在承接步骤S1510的步骤S1701中,判定是否被设定为粒状图案附加模式。在判定为没有设定为粒状图案附加模式时,转入步骤S1704,在判定为已设定为粒状图案附加模式时,转入步骤S1702。The processing from step S1501 to step S1510 is the same as that of the flowchart shown in FIG. 15 . In step S1701 succeeding step S1510, it is determined whether or not the granular pattern adding mode is set. When it is determined that the granular pattern adding mode is not set, the process goes to step S1704, and when it is determined that the granular pattern adding mode is set, the process goes to step S1702.

在步骤S1702中,把将摄影得到的完整尺寸的图像数据缩小为记录尺寸的图像数据时的缩小率的倒数设定为放大率,以所设定的放大率将存储在闪存117中的粒状图案的图像数据放大,由此生成放大粒状图案图像数据。该处理可以由微机115进行,也可以另外设置放大粒状图案数据生成部,由放大粒状图案数据生成部进行。In step S1702, the reciprocal of the reduction ratio when reducing the full-size image data obtained by photography to the image data of the recording size is set as the enlargement ratio, and the granular pattern stored in the flash memory 117 is converted into The image data of the image is enlarged, thereby generating enlarged grain pattern image data. This processing may be performed by the microcomputer 115, or may be performed by an enlarged granular pattern data generating unit provided separately.

在步骤S1703中,由放大/缩小部118进行以下处理,即读出在步骤S1510中进行了噪声降低处理后被存储在SDRAM106中的完整尺寸的图像数据,并与在步骤S1702中生成的放大粒状图案图像数据相加。然后,由伽玛/颜色再现处理部1074对相加后的图像数据进行强调图像数据的对比度的灰度转换处理。通过该灰度转换处理,能够抑制图像中最亮处和最暗处的粒状感,同时强调中间风格的粒状感,表现银盐照片具有的独特的粒状感。In step S1703, the enlargement/reduction unit 118 performs a process of reading out the full-size image data stored in the SDRAM 106 after the noise reduction process in step S1510, and comparing them with the enlarged granular image data generated in step S1702. The pattern image data is added. Then, the added image data is subjected to gradation conversion processing for emphasizing the contrast of the image data by the gamma/color reproduction processing unit 1074 . This gradation conversion process suppresses the graininess of the brightest and darkest parts of the image while emphasizing the graininess of the intermediate style, expressing the graininess unique to silver halide photographs.

在步骤S1704中,由放大/缩小部118进行以下处理,即从SDRAM106中读出与放大粒状图案图像数据相加后的图像数据,把所读出的图像数据的数据尺寸缩小为实时取景显示图像尺寸。其中,在没有进行步骤S1702和S1703的处理时,从SDRAM106中读出没有被加上放大粒状图案图像数据的图像数据,把所读出的图像数据的数据尺寸缩小为实时取景显示图像尺寸。In step S1704, the enlarging/reducing unit 118 performs processing of reading the image data added to the enlarged grain pattern image data from the SDRAM 106, and reducing the data size of the read image data into a live view display image. size. Wherein, when the processing of steps S1702 and S1703 is not performed, the image data to which the enlarged granular pattern image data is not added is read from SDRAM 106, and the data size of the read image data is reduced to the live view display image size.

在步骤S1514中,将在步骤S1704中缩小后的图像数据显示在LCD114上。通过反复进行从步骤S1501到步骤S1514的处理,能够持续进行实时取景显示。In step S1514 , the image data reduced in step S1704 is displayed on LCD 114 . By repeating the processing from step S1501 to step S1514, live view display can be continuously performed.

以上,根据第3实施方式的图像处理装置,提供一种以预定的缩小率生成像素数比图像数据少的缩小图像数据的图像处理装置,以与预定的缩小率对应的放大率将粒状图案放大,在向图像数据附加被放大后的粒状图案后,以预定的缩小率缩小。因此,能够获得被叠加了充分具有粒状感的粒状图案的缩小图像数据。As described above, according to the image processing apparatus of the third embodiment, there is provided an image processing apparatus that generates reduced image data having fewer pixels than the image data at a predetermined reduction ratio, and enlarges the grain pattern at an enlargement ratio corresponding to the predetermined reduction ratio. , after adding the enlarged grainy pattern to the image data, it is reduced at a predetermined reduction rate. Therefore, it is possible to obtain reduced image data on which a grainy pattern having a sufficiently grainy feeling is superimposed.

另外,在第2实施方式中,在进行静态图像的摄影/记录处理时,如图14B所示,进行两次加上粒状图案的图像数据的处理,但在第3实施方式中,如图16所示,只进行一次即可,所以能够缩短处理时间。另外,在步骤S1603中,将以缩小为记录尺寸的图像数据时的缩小率的倒数的值即放大率放大后的粒状图案图像数据相加,然后进行REC取景显示。在REC取景显示尺寸与记录尺寸不同时,放大粒状图案图像数据不会成为与REC取景显示尺寸对应的数据尺寸,但由于REC取景显示只进行极短时间,所以在显示时成为问题的可能性比较小。In addition, in the second embodiment, when performing still image shooting/recording processing, as shown in FIG. As shown, only one time is sufficient, so the processing time can be shortened. In addition, in step S1603, the granular pattern image data enlarged by the reciprocal value of the reduction ratio when the image data is reduced to the recording size, that is, the magnification ratio is added, and the REC viewfinder display is performed. When the REC viewfinder display size is different from the recording size, the enlarged granular pattern image data will not become the data size corresponding to the REC viewfinder display size, but since the REC viewfinder display is only performed for a very short time, it is more likely to cause problems when displaying Small.

另外,在上述的各个实施方式的说明中,列举说明了把图像处理装置适用于数字照相机的示例,但也可以构成为由计算机执行用于实现在实施方式中说明的处理的程序。该情况时,计算机具有CPU、RAM等主存储装置、存储了用于实现在各个实施方式中说明的处理的全部或一部分的程序的计算机可读的存储介质。在此,把该程序称为图像处理程序。并且,CPU读出存储在上述存储介质中的图像处理程序,并执行信息的加工/运算处理,由此实现与上述的图像处理装置相同的处理。In addition, in the description of each of the above-mentioned embodiments, an example in which an image processing device is applied to a digital camera has been cited and described, but it may be configured such that a computer executes a program for realizing the processing described in the embodiments. In this case, the computer has 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 each embodiment. Here, this program is called an image processing program. Further, the CPU reads out the image processing program stored in the storage medium, and executes information processing/calculation processing, thereby realizing the same processing as that of the above-mentioned image processing device.

其中,计算机可读的存储介质是指磁盘、光磁盘、CD-ROM、DVD-ROM、半导体存储器等。并且,也可以将上述程序通过通信线路发布给计算机,由接收到该发布的计算机执行程序。Wherein, the computer-readable storage medium refers to a magnetic disk, a magneto-optical disk, a CD-ROM, a DVD-ROM, a semiconductor memory, and the like. Furthermore, the above-mentioned program may be distributed to computers via a communication line, and the computer that receives the distribution may execute the program.

本发明不限于上述的第1~第3实施方式,可以在不脱离本发明宗旨的范围内实现各种变形和应用。例如,作为相加到图像数据上的预定的粒状图案,列举了与银盐颗粒的粒状感相似的粒状图案的一例,但不限于该粒状图案。The present invention is not limited to the first to third embodiments described above, and various modifications and applications are possible within a range not departing from the gist of the present invention. For example, an example of a grainy pattern similar to the graininess of silver salt grains is given as a predetermined grainy pattern to be added to image data, but the grainy pattern is not limited to this grainy pattern.

在第1实施方式中,用于确定附加到图像数据上的粒状图案的强度的增益GRN_Y、GRN_C根据摄影时的ISO灵敏度求出,但也可以根据操作部7的操作,由用户设定为任意的值。根据该方法,能够把用户期望的强度的粒状图案附加到图像数据上。并且,也可以根据图像上的噪声的程度,设定用于确定粒状图案的强度的增益GRN_Y、GRN_C。In the first embodiment, the gains GRN_Y and GRN_C for determining the intensity of the grain pattern added to the image data are obtained from the ISO sensitivity at the time of shooting, but they may be set to any value by the user according to the operation of the operation unit 7. value. According to this method, a granular pattern of intensity desired by the user can be added to image data. In addition, the gains GRN_Y and GRN_C for determining the intensity of the grain pattern may be set according to the degree of noise on the image.

在第1实施方式中,说明了对图像数据进行JPEG压缩的情况,但图像数据的压缩方式不限于JPEG形式。In the first embodiment, the case where JPEG compression is performed on image data is described, but the compression method of image data is not limited to the JPEG format.

在第3实施方式中,在进行REC取景显示时,将以缩小为记录尺寸的图像数据时的缩小率的倒数的值即放大率放大后的粒状图案相加。但是,也可以以缩小为REC取景显示尺寸的图像数据时的缩小率的倒数的值即放大率,将粒状图案放大,并相加到图像数据上,然后以缩小为REC取景显示尺寸的缩小率缩小,并进行REC取景显示。In the third embodiment, when the REC finder display is performed, the granular pattern enlarged by the reciprocal of the reduction ratio when the image data is reduced to the recording size, that is, the magnification is added. However, the granular pattern may be enlarged and added to the image data at a magnification ratio that is the reciprocal of the reduction ratio when the image data is reduced to the REC viewfinder display size, and then reduced to the REC viewfinder display size at the reduction ratio. Zoom out and display the REC viewfinder.

2008年9月3日递交的日本专利申请特愿2008-226060号、2008年9月3日递交的日本专利申请特愿2008-226074号、和2009年4月10日递交的日本专利申请特愿2009-95626号的内容,以引证的方式结合于本申请中。Japanese Patent Application No. 2008-226060 filed on September 3, 2008, Japanese Patent Application No. 2008-226074 filed on September 3, 2008, and Japanese Patent Application No. 2009 filed on April 10, 2009 The content of No. 2009-95626 is incorporated in this application by reference.

Claims (14)

1.一种图像处理装置,所述图像处理装置具有:1. An image processing device, the image processing device has: 同时化处理部,其根据由摄像装置得到的图像数据,生成每一个像素具有多种颜色成分的图像数据,所述摄像装置具有配置了多个滤色器的摄像元件;a simultaneous processing section that generates image data having a plurality of color components per pixel based on image data obtained by an image pickup device having an image pickup element provided with a plurality of color filters; 第1灰度转换部,其对由所述同时化处理部生成的图像数据实施第1灰度转换处理,以及a first gradation conversion unit that performs a first gradation conversion process on the image data generated by the synchronization processing unit, and 粒状图案附加部,其对由所述第1灰度转换部实施了第1灰度转换处理的图像数据附加预定的粒状图案,a granular pattern adding unit for adding a predetermined granular pattern to the image data subjected to the first gradation conversion process by the first gradation conversion unit, 第2灰度转换部,其对被附加了所述预定的粒状图案的图像数据进行与所述第1灰度转换处理不同的第2灰度转换处理。The second gradation conversion unit performs a second gradation conversion process different from the first gradation conversion process on the image data to which the predetermined granular pattern is added. 2.根据权利要求1所述的图像处理装置,所述第2灰度转换部进行强调图像数据的对比度的灰度转换处理,作为所述第2灰度转换处理。2. The image processing device according to claim 1, wherein the second gradation conversion unit performs gradation conversion processing for emphasizing the contrast of image data as the second gradation conversion processing. 3.根据权利要求1所述的图像处理装置,所述图像处理装置还具有边缘提取部,所述边缘提取部从被附加所述预定的粒状图案之前的图像数据中提取在边缘强调处理中使用的边缘。3. The image processing device according to claim 1 , further comprising an edge extraction unit for extracting an edge used in edge emphasis processing from image data before the predetermined granular pattern is added. the edge of. 4.根据权利要求1~3中的任意一项所述的图像处理装置,所述图像处理装置还具有强度调整部,所述强度调整部调整附加到图像数据上的所述预定的粒状图案的强度。4. The image processing device according to any one of claims 1 to 3, further comprising an intensity adjustment unit that adjusts the intensity of the predetermined grain pattern added to the image data. strength. 5.根据权利要求4所述的图像处理装置,所述强度调整部根据利用所述摄像装置摄影时的摄影灵敏度,调整所述预定的粒状图案的强度。5 . The image processing device according to claim 4 , wherein the intensity adjustment unit adjusts the intensity of the predetermined granular pattern according to an imaging sensitivity when the imaging device is used for imaging. 6 . 6.根据权利要求4所述的图像处理装置,6. The image processing device according to claim 4, 所述图像处理装置还具有设定部,所述设定部用于设定附加到图像数据上的所述预定的粒状图案的强度,The image processing device further includes a setting unit for setting the intensity of the predetermined granular pattern added to the image data, 所述强度调整部根据用户对所述设定部的操作,调整所述预定的粒状图案的强度。The intensity adjustment unit adjusts the intensity of the predetermined granular pattern according to a user's operation on the setting unit. 7.根据权利要求1所述的图像处理装置,7. The image processing device according to claim 1, 所述图像处理装置还具有噪声降低处理部,所述噪声降低处理部对由摄像装置得到的图像数据进行预定的噪声降低处理,所述摄像装置具有配置了多个滤色器的摄像元件,The image processing device further includes a noise reduction processing unit that performs predetermined noise reduction processing on image data obtained by an image pickup device having an image pickup element provided with a plurality of color filters, 所述同时化处理部根据进行了所述预定的噪声降低处理后的图像数据,生成每一个像素具有多种颜色成分的图像数据。The synchronization processing unit generates image data having a plurality of color components per pixel, based on the image data subjected to the predetermined noise reduction processing. 8.根据权利要求7所述的图像处理装置,所述噪声降低处理部进行校正所述摄像元件的像素缺陷的处理、和降低在利用所述摄像装置摄影时产生的随机噪声的处理中至少一种处理,作为所述预定的噪声降低处理。8. The image processing device according to claim 7, wherein the noise reduction processing unit performs at least one of processing for correcting pixel defects of the imaging device and processing for reducing random noise generated when taking pictures with the imaging device. processing as the predetermined noise reduction processing. 9.根据权利要求7或8所述的图像处理装置,所述图像处理装置还具有控制部,所述控制部根据利用所述摄像装置摄影时的摄影灵敏度,控制所述噪声降低处理的程度、和在由所述同时化处理部生成的图像数据上附加的所述预定的粒状图案的强度。9. The image processing device according to claim 7 or 8, further comprising a control unit configured to control the degree of noise reduction processing, and the intensity of the predetermined granular pattern added to the image data generated by the synchronization processing unit. 10.根据权利要求9所述的图像处理装置,在利用所述摄像装置摄影时的摄影灵敏度不同时,所述控制部控制所述噪声降低处理的程度和所述预定的粒状图案的强度,以使被附加到图像数据上的所述预定的粒状图案的粒状感相同。10. The image processing device according to claim 9, wherein the control unit controls the degree of the noise reduction processing and the intensity of the predetermined granular pattern so that when the photographing sensitivity of the photographing by the imaging device is different. The graininess of the predetermined grain pattern added to the image data is made the same. 11.一种图像处理装置,所述图像处理装置具有:11. An image processing device, the image processing device having: 粒状图案附加部,其对被实施了至少包括第1灰度转换处理的预定的图像处理后的图像数据,附加预定的粒状图案;以及a granular pattern adding unit for adding a predetermined granular pattern to image data subjected to predetermined image processing including at least a first gradation conversion process; and 灰度转换部,其对被附加了所述预定的粒状图案的图像数据,进行与所述第1灰度转换处理不同的第2灰度转换处理。The gradation conversion unit performs a second gradation conversion process different from the first gradation conversion process on the image data to which the predetermined granular pattern is added. 12.根据权利要求11所述的图像处理装置,所述灰度转换部进行强调图像数据的对比度的灰度转换处理,作为所述第2灰度转换处理。12. The image processing device according to claim 11, wherein the gradation conversion unit performs gradation conversion processing for emphasizing contrast of image data as the second gradation conversion processing. 13.一种图像处理方法,所述图像处理方法包括:13. An image processing method, the image processing method comprising: 第1步骤,根据由摄像装置得到的图像数据,生成每一个像素具有多种颜色成分的图像数据,所述摄像装置具有配置了多个滤色器的摄像元件;In a first step, image data having multiple color components per pixel is generated based on image data obtained by an imaging device having an imaging element provided with a plurality of color filters; 第2步骤,对所述每一个像素具有多种颜色成分的图像数据实施第1灰度转换处理,The second step is to implement the first grayscale conversion process on the image data having multiple color components for each pixel, 第3步骤,对实施了所述第1灰度转换处理的图像数据附加预定的粒状图案;以及In a third step, adding a predetermined grain pattern to the image data subjected to the first gradation conversion process; and 第4步骤,对被附加了所述预定的粒状图案的图像数据进行与所述第1灰度转换处理不同的第2灰度转换处理。In a fourth step, a second gradation conversion process different from the first gradation conversion process is performed on the image data to which the predetermined grain pattern is added. 14.根据权利要求13所述的图像处理方法,14. The image processing method according to claim 13, 所述图像处理方法还包括对由摄像装置得到的图像数据进行预定的噪声降低处理的步骤,所述摄像装置具有配置了多个滤色器的摄像元件,The image processing method further includes the step of performing predetermined noise reduction processing on image data obtained by an image pickup device having an image pickup element provided with a plurality of color filters, 在所述第1步骤中,根据进行了所述预定的噪声降低处理后的图像数据,生成每一个像素具有多种颜色成分的图像数据。In the first step, image data having a plurality of color components per pixel is generated based on the image data subjected to the predetermined noise reduction processing.
CN200910171069XA 2008-09-03 2009-09-02 Image processing device, imaging device, and image processing method Expired - Fee Related CN101668106B (en)

Applications Claiming Priority (9)

Application Number Priority Date Filing Date Title
JP2008226060A JP5121636B2 (en) 2008-09-03 2008-09-03 Image processing apparatus, image processing method, and image processing program
JP2008226060 2008-09-03
JP2008-226060 2008-09-03
JP2008226074 2008-09-03
JP2008-226074 2008-09-03
JP2008226074A JP2010062836A (en) 2008-09-03 2008-09-03 Image processing apparatus, image processing method, and image processing program
JP2009095626 2009-04-10
JP2009-095626 2009-04-10
JP2009095626A JP5191941B2 (en) 2009-04-10 2009-04-10 Imaging apparatus, image processing apparatus, image processing method, and image processing program

Related Child Applications (2)

Application Number Title Priority Date Filing Date
CN201110284134.7A Division CN102291537B (en) 2008-09-03 2009-09-02 Image processing apparatus, imaging apparatus, image processing method
CN201110284161.4A Division CN102377929B (en) 2008-09-03 2009-09-02 Image processing apparatus, imaging apparatus, and image processing method

Publications (2)

Publication Number Publication Date
CN101668106A CN101668106A (en) 2010-03-10
CN101668106B true CN101668106B (en) 2011-12-14

Family

ID=41804534

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910171069XA Expired - Fee Related CN101668106B (en) 2008-09-03 2009-09-02 Image processing device, imaging device, and image processing method

Country Status (2)

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

Families Citing this family (9)

* 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
JP5806512B2 (en) * 2011-05-31 2015-11-10 オリンパス株式会社 Imaging apparatus, imaging method, and imaging program
US9019400B2 (en) 2011-05-31 2015-04-28 Olympus Imaging Corp. Imaging apparatus, imaging method and computer-readable storage medium
JP2013020021A (en) * 2011-07-08 2013-01-31 Pentax Ricoh Imaging Co Ltd Shutter controller
US8957982B2 (en) 2011-10-04 2015-02-17 Olympus Imaging Corp. Imaging device and imaging method
JP5957357B2 (en) * 2012-10-15 2016-07-27 株式会社日立ハイテクノロジーズ Pattern inspection / measurement apparatus and program
JP6120665B2 (en) 2013-04-26 2017-04-26 オリンパス株式会社 Imaging apparatus, image processing apparatus, image processing method, and image processing program
JP6613554B2 (en) * 2014-09-30 2019-12-04 株式会社ニコン Image processing apparatus and program
CN110386401B (en) * 2019-07-01 2020-09-25 广州大学 A Contrast Enhancement Device Applied on a Conveyor Belt

Citations (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
CN1671201A (en) * 2004-03-18 2005-09-21 奥林巴斯株式会社 Image processing apparatus, image processing system and image processing method
CN101044510A (en) * 2004-10-18 2007-09-26 汤姆森特许公司 Film grain simulation method
CN101065971A (en) * 2004-11-24 2007-10-31 汤姆森许可贸易公司 Film grain simulation technique for use in media playback devices
CN101072333A (en) * 2005-12-20 2007-11-14 马维尔国际贸易有限公司 Film grain generation and addition

Family Cites Families (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
JP3910267B2 (en) * 1997-09-10 2007-04-25 富士フイルム株式会社 Image processing method and apparatus
JP2004260858A (en) * 2004-05-12 2004-09-16 Nec Corp Chrominance signal processing apparatus and chrominance signal processing method
JP4914026B2 (en) * 2005-05-17 2012-04-11 キヤノン株式会社 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 correction apparatus and imaging apparatus

Patent Citations (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
CN1671201A (en) * 2004-03-18 2005-09-21 奥林巴斯株式会社 Image processing apparatus, image processing system and image processing method
CN101044510A (en) * 2004-10-18 2007-09-26 汤姆森特许公司 Film grain simulation method
CN101065971A (en) * 2004-11-24 2007-10-31 汤姆森许可贸易公司 Film grain simulation technique for use in media playback devices
CN101072333A (en) * 2005-12-20 2007-11-14 马维尔国际贸易有限公司 Film grain generation and addition

Also Published As

Publication number Publication date
JP2010062836A (en) 2010-03-18
CN101668106A (en) 2010-03-10

Similar Documents

Publication Publication Date Title
CN101668106B (en) Image processing device, imaging device, and image processing method
CN103813097B (en) Camera device and image capture method
US8872936B2 (en) Image processing device, white balance correction method, and imaging device
CN100461828C (en) Device and method for processing images
JP5642344B2 (en) Image processing apparatus, image processing method, and image processing program
JP6521776B2 (en) Image processing apparatus, image processing method
JP5660341B2 (en) Imaging apparatus and imaging method
WO2016117137A1 (en) Image-capturing device, image-capturing method, and image display device
JP2013090095A (en) Imaging device, imaging method, and program
JP2008109305A (en) Image processing apparatus and image processing apparatus control method
US11367229B2 (en) Image processing apparatus, image processing method, and storage medium
US8760527B2 (en) Extending a digital camera focus range
JP5310331B2 (en) Imaging apparatus and imaging method
CN102291537B (en) Image processing apparatus, imaging apparatus, image processing method
US8754953B2 (en) Digital camera providing an extended focus range
JP2010283504A (en) Imaging device, imaging method, and imaging program
JP6592293B2 (en) Image processing apparatus, image processing method, and imaging apparatus
JP2010021908A (en) Image processing apparatus, image processing method and image processing program
JP2019068342A (en) Image processing apparatus, imaging apparatus, image processing method, program, and storage medium
JP5191941B2 (en) Imaging apparatus, image processing apparatus, image processing method, and image processing program
JP5121636B2 (en) Image processing apparatus, image processing method, and image processing program
JP6592292B2 (en) Image processing apparatus, image processing method, and imaging apparatus
JP2005223370A (en) Solid-state image pickup device, image recording method thereof and image reproducing method thereof
WO2012177495A1 (en) Digital camera providing an extended focus range
JP2009303111A (en) Image processing apparatus and method, and program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20151118

Address after: Tokyo, Japan

Patentee after: OLYMPUS Corp.

Address before: Tokyo, Japan

Patentee before: Olympus Imaging Corp.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20211220

Address after: Tokyo, Japan

Patentee after: Aozhixin Digital Technology Co.,Ltd.

Address before: Tokyo, Japan

Patentee before: OLYMPUS Corp.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20111214