Restoration filter generation device and image processing device
09865039 ยท 2018-01-09
Assignee
Inventors
Cpc classification
H04N23/55
ELECTRICITY
H04N23/633
ELECTRICITY
International classification
Abstract
A restoration filter generation device according to one embodiment of the present invention includes: an information acquisition unit that acquires information showing a difference that depends on a color of an optical transfer function of an optical system; and a restoration filter generation unit that generates a restoration filter, which weakens restoration strength according to the difference that depends on the color of the optical transfer function on the basis of the information acquired by the information acquisition unit, and makes the restoration strength of the restoration filter weaker than the restoration strength of an ideal filter decided assuming that the difference that depends on the color of the optical transfer function does not exist. As a result, the overcorrection is reduced.
Claims
1. A restoration filter device that generates a restoration filter to perform restoration processing on luminance system image data which is generated based on image data of each color obtained in an image capturing apparatus having an optical system and which is image data related to luminance, comprising: one or more processors configured to perform the functions of: an information acquisition unit that acquires difference information showing a difference that depends on a color of an optical transfer function of the optical system; a restoration filter generation unit that generates the restoration filter; and a restoration processing unit that performs the restoration processing on the luminance system image data based on the restoration filter, wherein the restoration filter generation unit generates the restoration filter which weakens restoration strength according to the difference that depends on the color, based on the difference information acquired by the information acquisition unit, and which makes the restoration strength weaker than restoration strength of an ideal filter decided assuming that the difference that depends on the color does not exist.
2. The restoration filter device according to claim 1, wherein the difference information is dispersion of the optical transfer function calculated assuming that the difference that depends on the color follows normal distribution.
3. The restoration filter device according to claim 1, wherein the information acquisition unit acquires an optical transfer function of each color and calculates the difference that depends on the color based on the optical transfer function of each color.
4. The restoration filter device according to claim 3, wherein: the information acquisition unit calculates an average and dispersion of the optical transfer function, assuming that the difference that depends on the color follows normal distribution; and the restoration filter generation unit generates the restoration filter based on the average and the dispersion of the optical transfer function.
5. The restoration filter device according to claim 4, wherein the restoration filter generation unit generates the restoration filter based on an equation in which members of the average and the dispersion are set to a denominator.
6. The restoration filter device according to claim 4, wherein the restoration filter generation unit calculates the average and the dispersion for each spatial frequency, and generates the restoration filter based on the average and the dispersion of the each spatial frequency.
7. The restoration filter device according to claim 1, wherein the restoration filter generation unit further generates a restoration filter that makes the restoration strength weaker in a spatial frequency in which the difference that depends on the color is larger.
8. The restoration filter device according to claim 1, wherein the information acquisition unit acquires color probability distribution in the luminance system image data obtained in the image capturing apparatus and the optical transfer function of each color, and, based on the acquired color probability distribution in the luminance system image data and the acquired optical transfer function of each color, calculates the difference information assuming that the difference that depends on the color follows normal distribution.
9. The restoration filter device according to claim 1, wherein the restoration filter generation unit generates the restoration filter that performs restoration processing with at least phase restoration.
10. The restoration filter device according to claim 1, wherein the restoration filter generation unit generates the restoration filter that performs restoration processing without phase restoration.
11. The restoration filter device according to claim 1, wherein the restoration filter generation unit generates a Wiener filter as the restoration filter.
12. The restoration filter device according to claim 1, wherein the optical system has a lens unit that modulates a phase and extends a depth of field.
13. An image processing device comprising: an image data acquisition unit that acquires luminance system image data which is generated based on image data of each color obtained in an image capturing apparatus having an optical system and which is image data related to luminance; a restoration filter storage unit that stores a restoration filter generated by the restoration filter device according to claim 1; and the restoration processing unit according to claim 1 that performs restoration processing on the luminance system image data acquired in the image data acquisition unit, using the restoration filter stored in the restoration filter storage unit.
14. An image capturing apparatus comprising: an optical system; an imaging element that outputs image data of each color of multiple colors; and the image processing device according to claim 13.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
(15)
(16)
(17)
(18)
(19)
(20)
(21)
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
(22) Embodiments of the present invention are described with reference to the accompanying drawings.
(23) <System Configuration Example>
(24)
(25) A digital camera 10 (image capturing apparatus) is configured including: an image capturing unit 18 including an optical system 14 and an imaging element 16; a luminance system image data generation unit 22 that generates luminance system image data that is image data related to luminance on the basis of the image data of each color of multiple colors (R, G and B in this example) obtained by the image capturing unit 18; a restoration filter storage unit 24 that stores restoration filter F to perform restoration processing on luminance system image data (or image data of each color); and a restoration processing unit 26 that performs point image restoration processing on luminance system image data (or image data of each color) by using restoration filter F stored in the restoration filter storage unit 24.
(26) A restoration filter generation device 80 is configured including: an information acquisition unit 82 that acquires an optical transfer function corresponding to point image distribution in the optical system 14 of the digital camera 10 and difference information (which may be referred to as OTF difference below) showing a difference in the optical transfer function; a restoration filter generation unit 84 that generates restoration filter F on the basis of the information acquired by the information acquisition unit 82; and a switching unit 86 that switches whether to cause restoration filter F to perform phase correction of luminance system image data (or image data of each color).
(27) As optical transfer function acquired by the information acquisition unit 82, for example, there are a PSF (Point Spread Function: which may be referred to as point image distribution function or point spread function below) and a so-called OTF (Optical Transfer Function: which may be referred to as complex OTF or complex optical transfer function) obtained by Fourier transform of the PSF. The complex OTF includes an MTF (Modulation Transfer Function: which may be referred to as modulation transfer function or amplitude transfer function below) and a PTF (Phase Transfer Function: which may be referred to as phase transfer function below). A case where only the MTF or the PTF is acquired as optical transfer function is also included. Moreover, it may be a case where optical transfer function includes at least one of the modulation component (which may be referred to as amplitude component below) and the phase component and at least one of the MTF and the PTF is calculated from the optical transfer function. That is, optical transfer function includes information that indirectly shows at least one of the MTF and the PTF.
(28) For example, as difference information (which may be referred to as OTF difference) on the optical transfer function acquired by the information acquisition unit 82, there are an OTF difference by a color (a color on a color space of a certain color system) that appears in luminance system image data (or image data of each color), an individual difference by manufacture of the optical system 14, and an OTF difference by imaging conditions at imaging by the digital camera 10 (image capturing apparatus). Here, a difference by the color of the optical transfer function of the optical system is a difference among the optical transfer functions of respective colors in the optical system.
(29) The information acquisition unit 82 of this example may acquire the optical transfer function of each color and calculate a difference by the color of the optical transfer function on the basis of the optical transfer function of each color.
(30) The restoration filter generation unit 84 generates a restoration filter that weakens the restoration strength according to a difference in the optical transfer function, on the basis of information (optical transfer function and difference information) acquired by the information acquisition unit 82. Specifically, the restoration filter generation unit 84 makes the restoration strength of a generated restoration filter weaker than the restoration strength of an ideal filter decided assuming no difference in the optical transfer function, every spatial frequency.
(31) <Restoration Processing>
(32)
(33) As illustrated in
(34) Moreover, since the aberration of an optical system varies according to the wavelength, it is ideally preferable to perform point image restoration processing using a restoration filter that varies every color (for example, R, G and B). However, when the point image restoration processing is performed on the image data of each color of multiple colors (for example, R, G and B), the load of operation processing is large. Therefore, there is a case where the point image restoration processing is performed on luminance system image data with a large visual effect by the restoration processing unit 26 in
(35) <Restoration Processing According to Optical Transfer Function Difference>
(36)
(37) In a case where point image restoration processing is performed on luminance system image data, only the same correction is performed for all colors, unlike a case where individual point image restoration processing is performed on the image data of each color of R, G and B (R image data, G image data and B image data). Therefore, depending on the color, there occurs a harmful problem that the image quality is rather degraded by overcorrection.
(38) In the present invention, it is assumed that the PSF shape stochastically varies depending on the color. That is, a difference in an optical transfer function by the color is treated as probability distribution.
(39)
(40) In
(41) If a difference in the PSF shape is defined as probability distribution, a difference in the PSF shape by the color and a difference in the PSF shape by manufacture can be treated using a similar probability theory. Specifically, when a complex OTF in luminance system image data is assumed to be h.sub.y and the spatial frequency is assumed to be (.sub.x, .sub.y), a difference in the complex OTF by the color and a difference in the complex OTF by manufacture are defined as probability distribution P.sub.y(h.sub.y|.sub.x, .sub.y). That is, an OTF difference by the color and an OTF difference by manufacture are found as dispersion of probability distribution P.sub.y in normal distribution.
(42)
(43) In step S1, the optical transfer function in the optical system 14 is acquired by the information acquisition unit 82 for each color of multiple colors (for example, three colors of R, G and B).
(44) In step S2, the average and the dispersion of the optical transfer functions in normal distribution are calculated by the information acquisition unit 82 every spatial frequency (.sub.x, .sub.y), on the basis of the optical transfer function of each color acquired in step S1. That is, it is assumed that a difference in the optical transfer function follows the normal distribution in the color space of a certain color system, and average (.sub.x, .sub.y) and dispersion .sup.2(.sub.x, .sub.y) of the optical transfer functions in the normal distribution are calculated as parameters to calculate restoration strength. Here, it can be said that dispersion .sup.2(.sub.x, .sub.y) is difference information acquired (calculated) by the information acquisition unit 82 and average (.sub.x, .sub.y) is an optical transfer function representative showing the center of a difference in the optical transfer function.
(45) In step S3, the restoration strength of a restoration filter is calculated by the restoration filter generation unit 84 on the basis of average (.sub.x, .sub.y) and dispersion .sup.2(.sub.x, .sub.y) calculated in step S2.
(46) In step S4, a restoration filter having the restoration strength calculated in step S3 is generated with the restoration filter generation unit 84.
(47) Here, the present invention is not limited to a case where a restoration filter having both of the phase correction function and the amplitude correction function is generated, and a restoration filter having at least one of the phase correction function and the amplitude correction function may be generated.
(48)
(49) The point image restoration processing is processing that creates restored image data from degraded image data by using restoration filter F. For example, the point image restoration processing is performed using a restoration filter on a real space, which includes NM (N and M are integers equal to or greater than 2) taps. By this means, pixel data after the point image restoration processing (restored image data) can be calculated by convoluting the filter coefficient assigned to each tap and corresponding image data (processing target pixel data and adjacent pixel data of degraded image data). By applying this convolution operation using restoration filter F to all pixel data forming the image data while sequentially changing the target pixel, it is possible to perform the point image restoration processing.
(50) Here, the restoration filter on the real space, which includes NM taps, can be derived by performing inverse Fourier transform of a restoration filter on the frequency space (which may be referred to as spatial frequency domain). Therefore, the restoration filter on the real space can be arbitrarily calculated by specifying a restoration filter on a base frequency space and specifying the number of taps of a restoration filter on the real space.
(51) <Switching Processing of Restoration Filter Generation>
(52)
(53) In
(54) In a case where restoration filter F is caused to perform the phase correction (in the case of Yes in step S11), the restoration filter generation unit 84 generates a restoration filter which has a function to perform the phase correction in point image restoration processing with respect to luminance system image data and reduces overcorrection of the phase of the luminance system image data (step S12).
(55) In a case where restoration filter F is not caused to perform the phase correction (in the case of No in step S11), the restoration filter generation unit 84 mixes transfer function information (PSF or MTF) on each color of multiple colors (R, G and B) between multiple colors, and, on the basis of the transfer function information (PSF or MTF) mixed between the multiple colors, generates a restoration filter that performs point image restoration processing that changes only the amplitude component without changing the phase component with respect to the luminance system image data (S13). That is, the restoration filter generation unit 84 generates a restoration filter having a function to perform only amplitude correction without performing phase correction in point image restoration processing with respect to the luminance system image data.
(56) Here, since the amplitude correction is not performed for each color of multiple colors (R, G and B) in the amplitude correction with respect to the luminance system image data, there is a possibility that a lack of correction (MTF is less than 1.0) or overcorrection (MTF is greater than 1.0) occurs by any one or two or more colors of multiple colors (R, G and B). However, an excellent restoration filter that suppresses a lack of correction and overcorrection can be generated by causing the restoration filter generation unit 84 to mix transfer function information (PSF or MTF) between multiple colors (R, G and B) and, on the basis of the mixed transfer function information (PSF or MTF), generate a restoration filter that performs amplitude correction that averagely makes a modulation transfer function MTF close to 1
(57) Next, with an assumption that the optical transfer function acquired by the information acquisition unit 82 is a complex OTF including the MTF and the PTF and difference information on the optical transfer function acquired by the information acquisition unit 82 shows a difference in a complex OTF, restoration filter generation processing is specifically described in respective embodiments. Moreover, in the following embodiments, difference information on the optical transfer function is briefly referred to as OTF difference.
(58) <First Embodiment>
(59) In the first embodiment, a restoration filter of high toughness is generated by generating a restoration filter having restoration strength according to an OTF difference by the color in generation processing of a restoration filter for point image restoration processing with respect to luminance system image data.
(60)
(61) In
(62)
(63) Here, conversion M is a map from the RGB color space to the luminance system space (YCbCr color space). This conversion M depends on only how a restoration filter is applied to a processed signal, which is the definition of a signal processing system in an image processing device. In general, conversion from the RGB space to the luminance system space includes gamma correction and therefore nonlinear conversion is required, but it may be linear conversion depending on the implementation mode of luminance system restoration processing.
(64)
(65) First, probability distribution P.sub.COLOR(Y, Cb, Cr) of Y, Cb and Cr is acquired by the information acquisition unit 82 (step S21).
(66) Here, Y designates the value (input pixel value) of a luminance signal input in restoration filter F in
(67) P.sub.COLOR(Y, Cb, Cr) designates color probability distribution in luminance system image data obtained by the digital camera 10. In other words, P.sub.COLOR(Y, Cb, Cr) designates an input color difference on the color space of a certain color system. For example, this P.sub.COLOR(r, Cb, Cr) is obtained beforehand when the optical system 14 is designed. In a case where an average color is assumed to be white, Cb=0 and Cr=0 are assumed.
(68) Next, the complex OTF (OTF.sub.R, OTF.sub.G and OTF.sub.B) of each color of red (R), green (G) and blue (B) is acquired from P.sub.COLOR (Y, Cb, Cr) by the information acquisition unit 82 (step S22).
(69) Next, joint distribution P.sub.RGB(h.sub.R, h.sub.G, h.sub.B|.sub.x, .sub.y) of the complex OTF of each color of red (R), green (G) and blue (B) is calculated by the information acquisition unit 82 (step S23).
(70) Here, joint distribution P.sub.RGB(h.sub.R, h.sub.G, h.sub.B|.sub.x, .sub.y) shows a probability that the probability variables of complex OTFs of respective colors of R, G and B become values of h.sub.R, h.sub.G and h.sub.B, for each spatial frequency (.sub.x, .sub.y). Joint distribution P.sub.RGB(h.sub.R, h.sub.G, h.sub.B|.sub.x, .sub.y) is calculated as shown in the following equation.
P.sub.RGB(h.sub.R,h.sub.G,h.sub.B|.sub.x,.sub.y)=(h.sub.R/I.sub.ROTF.sub.R(.sub.x,.sub.y))(h.sub.G/I.sub.GOTF.sub.G(.sub.x,.sub.y))h.sub.B/I.sub.BOTF.sub.B(.sub.x,.sub.y))P.sub.COLOR(Y,Cb,Cr)dYdCbdCr[Expression 2]
(71) In the above equation, ( ) designates a Kronecker's delta function. OTF.sub.R(.sub.x, .sub.y), OTF.sub.G(.sub.x, .sub.y) and OTF.sub.B(.sub.x, .sub.y) are complex OTFs as design values that are uniquely decided. On the other hand, h.sub.R, h.sub.G and h.sub.B are the probability variables of complex OTFs in a case where there is an input color difference. Moreover, I.sub.R, I.sub.G and I.sub.B are defined as shown in the following equation.
(72)
(73) Expression 2 shows that P.sub.COLOR(Y, Cb, Cr) is integrated for Y, Cb and Cr only in a case where h.sub.R/I.sub.R=OTF.sub.R(.sub.x, .sub.y), h.sub.G/I.sub.G=OTF.sub.G(.sub.x, .sub.y) and h.sub.B/I.sub.B=OTF.sub.B(.sub.x, .sub.y) are satisfied, and the result of the integration is assumed as joint distribution P.sub.RGB(h.sub.R, h.sub.G, h.sub.B|.sub.x, .sub.y). That is, when Expression 2 and Expression 3 are considered, they mean that, in a case where the probability variables of complex OTFs are h.sub.R, h.sub.G and h.sub.B, regarding all color combinations {I.sub.R, I.sub.G, I.sub.B} that satisfy h.sub.R/I.sub.R=OTF.sub.R(.sub.x, .sub.y), h.sub.G/I.sub.G=OTF.sub.G(.sub.x, .sub.y) and h.sub.B/I.sub.B=OTF.sub.B(.sub.x, .sub.y), joint distribution P.sub.RGB(h.sub.R, h.sub.G, h.sub.B|.sub.x, .sub.y) is shown as a result (integral value) of adding a possibility (probability) that these combinations happen, in all combinations.
(74) As mentioned above, it is possible to obtain joint distribution P.sub.RGB(h.sub.R, h.sub.G, h.sub.B|.sub.x, .sub.y) of complex OTFs of respective colors of red (R), green (G) and blue (B).
(75) Next, average and dispersion .sup.2 of complex OTFs in a population of the complex OTFs in a specific color system are calculated by the information acquisition unit 82 for each spatial frequency (.sub.x, .sub.y) (step S24). Here, the population is sets of complex OTFs in a range of a color difference decided beforehand at the time of design.
(76) In this example, it is assumed that an OTF difference in the population follows complex normal distribution (Circular symmetric complex normal distribution), and joint distribution P.sub.y that follows the normal distribution is shown by the following equation with average (.sub.x, .sub.y) and dispersion .sup.2(.sub.x, .sub.y) as parameters.
(77)
(78) Average (.sub.x, .sub.y) and dispersion .sup.2(.sub.x, .sub.y) which are parameters in the above equation are calculated by the information acquisition unit 82 by maximum likelihood estimation as shown in the following equation.
(79)
(80) By the above-mentioned steps S21 and S22, average (.sub.x, .sub.y) and dispersion .sup.2(.sub.x, .sub.y) are calculated assuming that a difference by the color of an optical transfer function follows normal distribution, on the basis of probability distribution P.sub.COLOR(Y, Cb, Cr) of colors in luminance system image data and optical transfer functions OTF.sub.R(.sub.x, .sub.y), OTF.sub.G(.sub.x, .sub.y) and OTF.sub.B(.sub.x, .sub.y) of respective colors.
(81) Next, the restoration strength of a restoration filter is calculated by the restoration filter generation unit 84 on the basis of average (.sub.x, .sub.y) and dispersion .sup.2(.sub.x, .sub.y) (step S25).
(82) Here, an expression to calculate the restoration strength is obtained as follows. First, a luminance OTF (OTF of a luminance signal) that reflects an OTF difference in a population in a specific color system is expressed as the following equation.
OTF.sub.Y(.sub.x,.sub.y)=(.sub.x,.sub.y)+(.sub.x,.sub.y)[Expression 6]
(83) In the above equation, (.sub.x, .sub.y) designates a probability variable that follows complex normal distribution of average 0 and dispersion .sup.2(.sub.x, .sub.y).
(84) An error criterion in the Wiener filter used for deconvolution in point image restoration processing defines the square error of an original image (an image before degradation by an optical system) and a restoration image as the average (or integral) of an input image (degraded image) and noise. Since an optical transfer function in the error criterion of such a known Wiener filter is defined as a fixed value, if a known deriving equation is used as it is, it is assumed that color toughness is not given to an OTF difference by the color and overcorrection due to luminance correction.
(85) Then, taking into account the OTF difference by the color and the overcorrection due to the luminance correction, an error criterion for the derivation of the Wiener filter, to which the OTF difference by the color is also applied, is derived, instead of using the deriving equation of the known Wiener filter as it is. When the frequency characteristic of a restoration filter is assumed as f(.sub.x, .sub.y), error criterion J[f] averaging signals, noise and OTF difference are expressed as the following equation.
(86)
(87) Here, SY(.sub.x, .sub.y) and NY(.sub.x, .sub.y) are the signal power and noise power of luminance Y respectively. Frequency characteristic f of the Wiener filter to be found minimizes J of the above equation. When the above equation is developed and integration of is performed, it is as shown in the following equation.
(88)
(89) Here, * designates a complex conjugate. When this equation (Expression 8) is partially differentiated by f*(.sub.x, .sub.y) and assumed as 0, complex frequency characteristic f(.sub.x, .sub.y) of the Wiener filter to be found is as shown in the following equation.
(90)
(91) Here, it can be said that complex frequency characteristic f(.sub.x, .sub.y) designates the restoration strength of a restoration filter.
(92) As shown in the above equation, by weakening restoration strength (increasing the denominator of the right side of the above equation) in a spatial frequency with a large difference shown by dispersion .sup.2(.sub.x, .sub.y), it is possible to generate a restoration filter having a toughness characteristic with respect to a difference by the color. The restoration filter generation unit 84 in this example makes the restoration strength weaker in a spatial frequency with a larger OTF difference by the color.
(93) Next, a restoration filter having the restoration strength calculated in step S25 is generated by the restoration filter generation unit 84 (step S26).
(94) With respect to complex frequency characteristic f(.sub.x, .sub.y) found by the processes in steps S21 to S25, a filter coefficient of the restoration filter is calculated so as to approximate the complex frequency characteristic of a real restoration filter within a given tap number.
(95)
(96) As described above, according to the present embodiment, it is possible to accurately suppress an artifact caused because an optical transfer function differs by the input color from what is assumed, in point image restoration processing of luminance system image data.
(97) Here, in a case where phase correction is not performed, restoration filter generation is performed by rejecting the phase characteristic of frequency characteristics of a found restoration filter, approximating only to the amplitude characteristic and calculating the filter coefficient of the restoration filter.
(98) <Second Embodiment>
(99) As a factor of an OTF difference to be considered in restoration filter generation processing, there are a manufacturing difference in the optical system 14 and a difference in imaging conditions at imaging in an image capturing apparatus (for example, a measurement error of an object distance) in addition to colors considered in the first embodiment. In the following, as an example, a high-toughness restoration filter generation processing example taking into account an OTF difference by manufacture of the optical system 14 is described. Moreover, the OTF difference by manufacture or the OTF difference by imaging conditions are phenomena that occur not only in luminance system image data but also in image data of respective colors. Then, in the following, a case where a restoration filter for point image restoration with respect to image data of respective colors of R, G and B is generated is described as an example.
(100) Probability distribution corresponding to the OTF difference by manufacture is used to calculate restoration strength corresponding to the OTF difference by manufacture of the optical system 14.
(101) First, joint distribution P.sub.OTF(h.sub.R, h.sub.G, h.sub.B|.sub.x, .sub.y) showing distribution of an OTF difference in the optical system 14 by manufacture is acquired by the information acquisition unit 82.
(102) P.sub.OTF(h.sub.R, h.sub.G, h.sub.B|.sub.x, .sub.y) designates inherent information obtained by mechanism analysis and mass production sample measurement of difference generation in the manufacture of the optical system 14. When respective complex OTFs of R, G and B in spatial frequency .sub.x, .sub.y are assumed as h.sub.R, h.sub.G and h.sub.B, the OTF difference follows joint distribution P.sub.OTF(h.sub.R, h.sub.G, h.sub.B|.sub.x, .sub.y). Here, in this example, it is assumed that P.sub.OTF(h.sub.R, h.sub.G, h.sub.B|.sub.x, .sub.y) is constructed (calculated) beforehand.
(103) As a note when P.sub.OTF(h.sub.R, h.sub.G, h.sub.B|.sub.x, .sub.y) is constructed, there is the following problems. The parallel displacement of a PSF shape can be expressed by a complex OTF, but, in a case where an OTF difference is assumed including a parallel displacement difference (PSF image formation position difference) and is modeled and an OTF average in the OTF difference is adopted, there may occur a problem that a real average aberration is not appropriately expressed and an MTF is excessively degraded. As measures against the problem, there is a method of constructing P.sub.OTF(h.sub.R, h.sub.G, h.sub.B|.sub.x, .sub.y) on the basis of a PSF sample (or OTF sample) that is aligned beforehand with the PSF barycentric position of a standard color (for example, green) as a center. In this method, the position of the standard color PSF is standardized, but difference information on relative PSF barycentric coordinates between colors is held and an individual difference is reflected to the restoration strength of a restoration filter.
(104) Next, average and dispersion .sup.2 of OTFs in normal distribution are calculated by the information acquisition unit 82 every spatial frequency (.sub.x, .sub.y).
(105) In this example, the OTF difference of each spatial frequency .sub.x, .sub.y of R, G and B image data (image data of respective colors) input in restoration filter F is modeled as complex normal distribution (circular symmetric complex normal distribution) like the following equation. In this example, since it is a signal processing system that can perform correction for each color of R, G and B, an OTF difference is found for each color. When index K showing a color is assumed as K|{R, G, B}, joint distribution P.sub.K showing the OTF difference of each color is expressed as the following equation.
(106)
(107) Here, average .sub.K(.sub.x, .sub.y) and dispersion K2(x, y) which are parameters in the above equation are found by maximum likelihood estimation like the following equation.
.sub.K(.sub.x,.sub.y)=h.sub.KP.sub.RGB(h.sub.R,h.sub.G,h.sub.B|.sub.x,.sub.y)dh.sub.Rdh.sub.Gdh.sub.B
.sub.K.sup.2(.sub.x,.sub.y)=h.sub.KK(.sub.x,.sub.y).sup.2P.sub.RGB(h.sub.R,h.sub.G,h.sub.B|(.sub.x,.sub.y)dh.sub.Rdh.sub.Gdh.sub.B[Expression 11]
(108) Similar to the first embodiment, the frequency characteristic of a restoration filter is found using OTF difference information of each color obtained as above, and a restoration filter having restoration strength corresponding to the frequency characteristic is generated.
(109) According to the present embodiment, in point image restoration processing of RGB image data or luminance system image data, it is possible to accurately suppress an artifact caused because an optical transfer function differs from what is assumed, which is due to a manufacturing difference (or imaging condition difference) of an optical system. Moreover, individual specificity information on each optical system 14 is not required, and it is possible to generate a restoration filter only from stochastic statistical information on an OTF difference.
(110) <Third Embodiment>
(111) In the third embodiment, in generation processing of a restoration filter for point image restoration processing with respect to luminance system image data, a restoration filter of high toughness is generated according to not only an OTF difference by the color but also an OTF difference by manufacture of an optical system. Here, a manufacturing difference of an optical system is enumerated as an example in the present embodiment, but even a difference in imaging conditions such as an object distance can be discussed in the same way as the present embodiment. That is, it only has to generate a restoration filter having restoration strength corresponding to the difference in imaging conditions.
(112) In the following, matters different from the first embodiment are described, and detailed explanation is omitted for matters similar to the first embodiment or the second embodiment.
(113) First, P.sub.COLOR(Y, Cb, Cr) defined in the first embodiment and P.sub.OTF(h.sub.R, h.sub.G, h.sub.B|.sub.x, .sub.y) defined in the second embodiment are acquired by the information acquisition unit 82 (step S41). P.sub.COLOR(Y, Cb, Cr) designates probability distribution showing a difference in colors in luminance system image data. Moreover, P.sub.OTF(h.sub.R, h.sub.G, h.sub.B.sub.x, .sub.y) designates joint distribution showing an OTF difference in the optical system 14 by manufacture.
(114) Next, as shown in the following equation, by performing operation that mixes both of P.sub.COLOR(Y, Cb, Cr) and P.sub.OTF(h.sub.R, h.sub.G, h.sub.B|.sub.x, .sub.y), OTF difference function P.sub.RGB(h.sub.R, h.sub.G, h.sub.B|.sub.x, .sub.y) of each color of R, G and B is calculated (acquired) by the information acquisition unit 82 (step S42). This P.sub.RGB(h.sub.R, h.sub.G, h.sub.B|.sub.x, .sub.y) designates joint distribution showing the OTF difference of each color of R, G and B.
P.sub.RGB(h.sub.R,h.sub.G,h.sub.B|.sub.x,.sub.y)=P.sub.OTF(h.sub.R/I.sub.R,h.sub.G/I.sub.G,h.sub.B|.sub.x,.sub.y)P.sub.COLOR(Y,Cb,Cr)dYdCbdCr[Expression 12]
(115) In the above equation, I.sub.R, I.sub.G and I.sub.B are defined as the following equation.
(116)
(117) As described above, after OTF difference function P.sub.RGB(h.sub.R, h.sub.G, h.sub.B|.sub.x, .sub.y) of each color of R, G and B is acquired, dispersion .sup.2 (or standard deviation ) is calculated assuming that an OTF difference is subjected to normal distribution in the same way as the first embodiment. Next, that dispersion .sup.2 (or standard deviation ) is assumed as a parameter and the frequency characteristic of restoration filter F is calculated. Next, restoration filter F having the calculated frequency characteristic of restoration filter F is generated.
(118) According to the present embodiment, in point image restoration processing of luminance system image data, it is possible to accurately suppress an artifact caused because an optical transfer function differs by the input color from what is assumed, and it is possible to accurately suppress an artifact caused because an optical transfer function (PSF shape) differs from what is assumed, which is due to a manufacturing difference of an optical system. Moreover, individual specificity information on each optical system 14 is not required, and it is possible to generate a restoration filter only from stochastic statistical information on an OTF difference amount.
(119) <Configuration Example of Digital Camera>
(120)
(121) In
(122) In the memory 34 corresponding to the restoration filter storage unit 24 in
(123) The single-plate color imaging element 16 is disposed behind the optical system 14. The optical system 14 is controlled by lens driver 44. Multiple pixels disposed in a matrix manner in a predetermined pattern array (a Bayer array, a G stripe R/G full-checkered pattern, an X-Trans array and a honeycomb array, and so on) are formed on the imaging surface of the imaging element 16. Each pixel includes a microlens, color filters (color filters of R (red), G (green) and B (blue) in this example) and a photodiode. The imaging element 16 and the optical system 14 form an image capturing apparatus (image capturing device) in the present invention, and an object image formed on the imaging surface by the optical system 14 is converted into an electrical output signal and output. Here, various kinds of imaging elements such as a CCD (Charge Coupled Device) color imaging element and a CMOS (Complementary Metal Oxide Semiconductor) color imaging element are used as the imaging element 16. An imaging element driver 45 controls the drive of the imaging element 16 under the control of the CPU 33.
(124) A signal adjustment circuit 48 performs various kinds of signal adjustment processing on the output signal output from the imaging element 16, and generates RGB mosaic image data R1, G1 and B1 according to a color filter array of the imaging element 16. Here, in a case where the imaging element 16 is a CCD type, for example, the signal adjustment circuit 48 includes a CDS/AGC circuit and an A/D conversion circuit, and so on, and, in a case where it is a CMOS type, for example, it includes an amplifier, and so on.
(125) An image processing circuit 49 forms an image processing device of the present invention. This image processing circuit 49 performs black level adjustment processing, white balance correction processing, gamma correction processing, demosaic processing, YC conversion processing and point image restoration processing, and so on, on the mosaic image data of each color of multiple colors R, G and B input from the signal adjustment circuit 48, and generates luminance system image data Y and color difference system image data Cb and Cr. Luminance system image data Y and color difference system image data Cb and Cr are temporarily stored in the VRAM region of the memory 34 (the VRAM can be separately installed).
(126) The VRAM region has a memory area for a live view image that stores two consecutive field images. Luminance system image data Y and color difference system image data Cb and Cr stored in the VRAM region are sequentially output to a display unit 8. By this means, a live view image is displayed on the display unit 8.
(127) When a shutter button 6 of the operation unit 9 is pressed in an imaging mode, a compression extension processing circuit 51 performs compression processing on luminance system image data Y and color difference system image data Cb and Cr stored in the VRAM region. Moreover, the compression extension processing circuit 51 performs extension processing on compressed image data obtained from a memory card 30 through a media I/F 52. The media I/F 52 records and reads the compressed image data for the memory card 30.
(128) As illustrated in
(129) The input unit 49a outputs mosaic image data R1, G1 and B1 of respective colors of RGB input from the signal adjustment circuit 48 to the demosaic processing unit 49b. That is, the input unit 49a functions as an input I/F in which the image data of each color obtained by imaging by the imaging element 16 is input.
(130) The demosaic processing unit 49b performs demosaic processing (which may be referred to as synchronization processing) that calculates color information on all of RGB every pixel (conversion into a synchronous system) on the basis of mosaic image data R1, G1 and B1 of respective colors, and generates RGB image data R2, G2 and B2 including color data of three of RGB. The demosaic processing unit 49b outputs RGB image data R2, G2 and B2 to the conversion unit 49c.
(131) The conversion unit 49c (luminance system image data generation unit 22) performs YC conversion processing on RGB image data R2, G2 and B2, and generates luminance system image data Y and color difference system image data Cb and Cr. For example, luminance system image data Y is generated according to equation [Y=0.3R+0.6G+0.1B]. Since the contribution rate of the G color becomes 60% in this equation, the G color has a higher contribution ratio than the R color (contribution rate of 30%) and the B color (contribution rate of 10%). Therefore, the G color is a color that contributes to a luminance signal most among three primary colors.
(132) Here, explanation is given by exemplifying the value of a luminance signal of a color space shown by Y, Cb, Cr as luminance system image data Y in the present embodiment, but it is not especially limited as long as it is data that contributes to the luminance of an image, and it means various kinds of data having information on the luminance of a taken image. For example, data with the highest contribution rate to obtain a luminance signal and data corresponding to a color filter of a color that contributes to luminance most, and so on, are enumerated.
(133) The restoration processing unit 49d (26 in
(134) A point image (optical image) that penetrates the optical system 14 is formed on the imaging surface of the imaging element 16 as a large point image (blurred image) as shown as degraded image data in
(135) <Configuration Example of Restoration Filter Generation Device>
(136)
(137) A CPU 181 controls each unit of the computer device 180 in
(138) In the computer device 180 in
(139) <Variation of System>
(140) Explanation is given by exemplifying a case where the restoration filter generation device 80 and the digital camera 10 as an image processing device are individually formed as illustrated in
(141) As illustrated in
(142) Moreover, as illustrated in
(143) Here, the system configuration is not limited in the cases described in
(144) Moreover, a mode to which the present invention is applicable is not limited to a digital camera, a computer device and a server device, and it is applicable mobile device equipment including other functions than imaging (a telephone call function, a communication function and other computer functions) in addition to an imaging function, besides cameras in which imaging is assumed to be a main function. As other modes to which the present invention is applicable, for example, there are portable telephones, smart phones, PDAs (Personal Digital Assistants) and portable game machines, and so on, which have a camera function. One example of a smart phone to which the present invention is applicable is described later in detail.
(145) <Application Example to EDoF System>
(146) Point image restoration processing (restoration processing) in the above-mentioned embodiment is image processing that restores an original object image by correcting image degradation due to an aberration of an optical system according to specific imaging conditions (for example, a diaphragm value, an F value, a focal distance and a lens kind, and so on), but restoration processing to which the present invention is applicable is not limited to the restoration processing in the above-mentioned embodiment. For example, the restoration processing according to the present invention is applicable to restoration processing with respect to image data imaged and acquired by an optical system (a lens and a diaphragm, and so on) having EDoF (Extended Depth of Field (Focus)). By performing restoration processing on image data of a blurred image taken and acquired in a state where the depth of field (depth of focus) is extended by an EDoF optical system, it is possible to restore and generate image data of high resolution in a state where focusing is performed in a wide range. In this case, restoration processing is performed using a restoration filter which is based on transfer function information (PSF, OTF, MTF and PTF, and so on) on the EDoF optical system and which has a filter coefficient set such that excellent image restoration becomes possible in the range of the extended depth of field (depth of focus).
(147) In the following, one example of a system (EDoF system) related to the restoration of image data imaged and acquired through the EDoF optical system is described. Here, in the following example, an example of performing restoration processing on luminance system image data obtained from image data (RGB data) after demosaic processing is described.
(148)
(149)
(150) Here, the EDoF optical system 110 includes other components according to the necessity, and, for example, a diaphragm (illustration is omitted) is disposed near the optical filter 111. Moreover, one optical filter 111 may be provided or multiple ones may be combined and provided. Moreover, the optical filter 111 is merely one example of an optical phase modulation device, and the achievement of EDoF of the EDoF optical system 110 (the imaging lens 110A) may be realized by other devices. For example, the achievement of EDoF of the EDoF optical system 110 may be realized by the imaging lens 110A whose lens is designed so as to have a function equal to the optical filter 111 of this example instead of installing the optical filter 111, and various kinds of optical wavefront modulation components may be adopted.
(151) That is, the achievement of EDoF of the EDoF optical system 110 can realized by various kinds of device to change the wavefront of image formation on the light receiving surface of the imaging element 112. For example, an optical element with changed thickness, an optical element with a changed refractive index (a refractive distribution type wavefront modulation lens, and so on), an optical element with changed thickness or refractive index by coding to a lens surface, and so on (a wavefront modulation hybrid lens and an optical element formed on a lens surface as a phase surface) and a liquid crystal element (a liquid crystal spatial phase modulation element, and so on) that can modulate the phase distribution of light can be adopted as an EDoF achievement device of the EDoF optical system 110. Thus, the present invention is applicable to not only a case where image formation that regularly disperses by an optical wavefront modulation element (the optical filter 111 (phase plate)) is possible but also a case where dispersion images similar to the case of using the optical wavefront modulation element can be formed on the imaging lens 110A itself without using the optical wavefront modulation element.
(152) The EDoF optical system 110 of this example can be miniaturized since a focusing adjustment mechanism that mechanically performs focusing adjustment can be omitted, and it can be suitably mounted to a camera-equipped mobile phone and a portable information terminal.
(153) An optical image after passing through the EDoF optical system 110 subjected to EDoF is formed on the imaging surface of the imaging element 112 illustrated in
(154) The imaging element 112 has basically the same configuration as the imaging element (16 in
(155) The AD conversion unit 114 changes an analog RGB image signal output from the imaging element 112 into digital mosaic image data of each color of R, G, and B. The mosaic image data of each color is input in the image processing unit 120.
(156) For example, the image processing unit 120 includes a black level adjustment unit 122, a white balance gain unit 123, a gamma processing unit 124, a demosaic processing unit 125, an RGB/YCrCb conversion unit 126 and a Y signal restoration processing unit 127 (restoration processing unit).
(157) The black level adjustment unit 122 performs black level adjustment on the mosaic image data of each color output from the AD conversion unit 114. A known method can be adopted for black level adjustment. For example, in the case of paying attention to a certain effective photoelectric conversion element, black level adjustment is performed by calculating the average of signals for dark current amount acquisition respectively corresponding to multiple OB photoelectric conversion elements included in a photoelectric conversion element line including the effective photoelectric conversion element and by subtracting the average from a signal for dark current amount acquisition corresponding to the effective photoelectric conversion element.
(158) The white balance gain unit 123 performs gain adjustment corresponding to the white balance gain of each of RGB color signals included in the mosaic image data in which black level data is adjusted.
(159) The gamma processing unit 124 performs gamma correction that performs tone correction of a half tone or the like such that the mosaic image data of each color subjected to white balance adjustment becomes a preferable gamma characteristic.
(160) The demosaic processing unit 125 performs demosaic processing on the mosaic image data of each color after gamma correction, and outputs RGB image data including color data of three of R, G and B.
(161) The RGB/YCrCb conversion unit 126 is basically the same as the luminance system image data generation unit (22 in
(162) The Y signal restoration processing unit 127 performs restoration processing on luminance system image data Y from the RGB/YCrCb conversion unit 126 on the basis of a restoration filter stored beforehand. For example, the restoration filter includes a deconvolution kernel (corresponding to the number of taps of M=7 and N=7, for example) having a kernel size of 77 and an operation coefficient (corresponding to restoration gain data and a filter coefficient) corresponding to the deconvolution kernel, and is used for deconvolution processing (deconvolution operation processing) for the phase modulation of the optical filter 111. Here, as for the restoration filter, what corresponds to the optical filter 111 is stored in an unillustrated memory. Moreover, the kernel size of the deconvolution kernel is not limited to the one of 77.
(163) Next, restoration processing by the image processing unit 120 (restoration processing block) is described using the flowchart illustrated in
(164) The mosaic image data of each color is input from the AD conversion unit 114 into one input of the black level adjustment unit 122 and black level data is input in the other input. The black level adjustment unit 122 subtracts the black level data from the mosaic image data of each color and outputs the mosaic image data of each color after this subtraction processing to the white balance gain unit 123 (step S51). By this means, the black level component is not included in the mosaic image data of each color.
(165) Processing by the white balance gain unit 123 and the gamma processing unit 124 is sequentially performed on the mosaic image data of each color after black level adjustment (steps S52 and S53).
(166) After the mosaic image data of each color subjected to gamma correction is subjected to demosaic processing in the demosaic processing unit 125, it is converted into luminance system image data Y and color difference system image data Cr and Cb in the RGB/YCrCb conversion unit 126 (step S54).
(167) The Y signal restoration processing unit 127 performs restoration processing that performs deconvolution processing for the phase modulation of the optical filter 111 of the EDoF optical system 110 on luminance signal Y (step S55). That is, the Y signal restoration processing unit 127 performs deconvolution processing (deconvolution operation processing) of a luminance signal (here, a luminance signal of 77 pixels) corresponding to a pixel group of a predetermined unit centering on an arbitrary processing target pixel and a restoration filter (a 77 convolution kernel and the operation coefficient) stored beforehand in a memory or the like. The Y signal restoration processing unit 127 performs restoration processing that removes an image blur of the entire image by repeating deconvolution processing every pixel group of this predetermined unit so as to cover the entire area of the imaging surface. The restoration filter is defined according to the position of the center of pixel groups on which the deconvolution processing is performed. That is, a common restoration filter is applied to adjacent pixel groups. Further, it is preferable that a common restoration filter in all pixel groups is applied to simplify the restoration processing.
(168) A point image (optical image) of a luminance signal after passing through the EDoF optical system 110 is formed on the imaging element 112 as a large point image (blurred image), but it is restored to a small point image (image of high resolution) by the deconvolution processing in the Y signal restoration processing unit 127.
(169) As mentioned above, by performing restoration processing on luminance system image data after demosaic processing, it is not necessary to provide parameters of the restoration processing for each of RGB, and it is possible to speed up the restoration processing. Moreover, instead of arranging R, G and B image signals corresponding to R, G and B pixels in scattered positions in one unit respectively and performing deconvolution processing, luminance signals of adjacent pixels are arranged in a predetermined unit and a common restoration filter is applied to the unit to perform deconvolution processing, and therefore the accuracy of restoration processing improves. Here, color difference system image data Cr and Cb are allowed in image quality even if the resolution is not increased by the restoration processing in view of the visual characteristics by person's eyes. Moreover, since color difference system image data Cr and Cb are compressed at higher compressibility than luminance system image data Y in a case where an image is recorded in a compressed format like JPEG, it is less necessary to increase the resolution by the restoration processing. Thus, it is possible to realize both of the improvement of restoration accuracy and the simplification and speeding up of processing.
(170) The point image restoration processing according to each embodiment of the present invention is applicable even to restoration processing in the EDoF system described above. In this case, the restoration filter generation device of each above-mentioned embodiment generates a restoration filter having a filter coefficient which is set such that excellent image restoration is possible within the range of the extended depth of field (depth of focus), on the basis of transfer function information on an EDoF optical system.
(171) <Configuration of Smart Phone>
(172) A digital camera and a computer device are exemplified as the image processing device and the image capturing apparatus of the present invention in each above-mentioned embodiment, but, for example, the present invention is also applicable to a portable telephone, a smart phone, a PDA (Personal Digital Assistants), a tablet terminal and a portable game machine, which have an imaging function. In the following, a smart phone is enumerated as an example and detailed explanation is given with reference to the drawings.
(173)
(174)
(175) The radio communication unit 210 performs radio communication with base station apparatus BS accommodated in mobile communication network NW according to an instruction of the main control unit 200. By using the radio communication, various kinds of file data such as audio data and image data and email data are transmitted and received or web data and streaming data, and so on, are received.
(176) The display input unit 220 is a so-called touch panel that displays images (still image and moving image) and character information, and so on, visually conveys information to the user and detects a user operation with respect to the displayed information according to the control of the main control unit 200, and includes the display panel 221 and the operation panel 222.
(177) Regarding the display panel 221, an LCD (Liquid Crystal Display) or an OELD (Organic Electro-Luminescence Display) is used as a display device. The operation panel 222 is a device which is placed such that an image displayed on the display surface of the display panel 221 is visualized and which detects one or multiple coordinates operated by user's finger or stylus. When the device is operated by user's finger or stylus, a generated detection signal due to the operation is output to the main control unit 200. Next, the main control unit 200 detects the operation position (coordinates) on the display panel 221 on the basis of the received detection signal.
(178) As illustrated in
(179) Here, the size of the display area and the size of the display panel 221 may be completely matched, but both of them do not have to be necessarily matched. Moreover, the operation panel 222 may include two response areas of the outer edge part and the remaining inner side part. In addition, the width of the outer edge part is arbitrarily designed according to the size of the chassis 202, and so on. Furthermore, as a position detection scheme adopted in the operation panel 222, there are a matrix switch scheme, a resistance film scheme, a surface elastic wave scheme, an infrared ray scheme, an electromagnetic induction scheme and an electrostatic capacitance scheme, and so on, and any scheme can be adopted.
(180) The call unit 230 includes the speaker 231 and the microphone 232, converts user's voice input through the microphone 232 into voice data that can be processed in the main control unit 200 and outputs it to the main control unit 200, or decodes voice data received by the radio communication unit 210 or the external input/output unit 260 and outputs it from the speaker 231. Moreover, as illustrated in
(181) The operation unit 240 is a hardware key using a key switch, and so on, and accepts an instruction from the user. For example, as illustrated in
(182) The storage unit 250 stores a control program or control data of the main control unit 200, application software, address data associated with the name or telephone number of a communicating party, data of transmitted and received email, web data downloaded by web browsing and downloaded content data, or temporarily stores streaming data. Moreover, the storage unit 250 includes an internal storage unit 251 incorporated in the smart phone and an external storage unit 252 having a detachable external memory slot. Here, each of the internal storage unit 251 and the external storage unit 252 forming the storage unit 250 is realized using a storage medium (computer-readable non-temporary recording medium) such as a memory of a flash memory type, hard disk type, multimedia card micro type or card type (for example, Micro SD (registered trademark) memory, and so on), a RAM (Random Access Memory) and a ROM (Read Only Memory).
(183) The external input/output unit 260 plays the role of an interface with all external equipment coupled with the smart phone 201, and directly or indirectly connects with other external equipment by communication or the like (for example, a universal serial bus (USB) and IEEE1394, and so on) or a network (such as the Internet, wireless LAN, Bluetooth (registered trademark), RFID (Radio Frequency Identification), infrared communication (infrared data association: IrDA) (registered trademark), UWB (Ultra Wideband) (registered trademark) and ZigBee (registered trademark), and so on).
(184) As external equipment coupled with the smart phone 201, for example, there are a wired/wireless headset, a wired/wireless external battery charger, a wired/wireless data port, a memory card or SIM (Subscriber Identity Module Card)/UIM (User Identity Module Card) card connected through a card socket, external audio/video equipment connected through an audio/video I/O (Input/Output) terminal, external audio/video equipment connected by wireless, a smart phone connected by wire/wireless, a personal computer connected by wire/wireless, a PDA connected by wire/wireless, a personal computer connected by wire/wireless, and earphones, and so on. The external input/output unit 260 may transmit data received from such external equipment, to each component in the smart phone 201, or transmit data in the smart phone 201 to the external equipment.
(185) The GPS reception unit 270 receives GPS signals transmitted from GPS satellites ST1 to STn according to an instruction of the main control unit 200, performs positioning operation processing based on multiple received GPS signals and detects a position formed with the latitude, longitude and altitude of the smart phone 201. The GPS reception unit 270 can detect the position by using position information when the position information can be acquired from the radio communication unit 210 or the external input/output unit 260 (for example, wireless LAN).
(186) The motion sensor unit 280 includes an acceleration sensor of three axes, for example, and detects the physical movement of the smart phone 201 according to an instruction of the main control unit 200. By detecting the physical movement of the smart phone 201, the movement direction and acceleration of the smart phone 201 are detected. The detection result is output to the main control unit 200.
(187) The power source unit 290 supplies power accumulated in a battery (not illustrated) to each part of the smart phone 201 according to an instruction of the main control unit 200.
(188) The main control unit 200 includes a microprocessor, performs operation according to a control program or control data stored in the storage unit 250, and integrally controls each part of the smart phone 201. Moreover, in order to perform voice communication or data communication through the radio communication unit 210, the main control unit 200 includes a mobile communication control function to control each part of a communication system and an application processing function.
(189) The application processing function is realized when the main control unit 200 performs operation according to the application software stored in the storage unit 250. As the application processing function, for example, there are an infrared communication function to control the external input/output unit 260 and perform data communication with facing equipment, an email function to transmit and receive email, and a web browsing function to browse web pages, and so on.
(190) Moreover, the main control unit 200 includes an image processing function to display an image on the display input unit 220, and so on, on the basis of image data (data of a still image or moving image) such as reception data and downloaded streaming data. The image processing function denotes a function that the main control unit 200 decodes the above-mentioned image data, performs image processing on the decoding result and displays an image on the display input unit 220.
(191) In addition, the main control unit 200 performs display control with respect to the display panel 221 and operation detection control to detect a user operation through the operation unit 240 and the operation panel 222.
(192) By the execution of the display control, the main control unit 200 displays an icon to activate application software and a software key such as a scrollbar, or displays a window to create email. Here, the scrollbar denotes a software key to receive an instruction to move a display part of an image, regarding a large image that cannot be settled in the display area of the display panel 221, and so on.
(193) Moreover, by the execution of the operation detection control, the main control unit 200 detects a user operation through the operation unit 240, accepts an operation with respect to the above-mentioned icon or the input of a character string with respect to an input column of the above-mentioned window through the operation panel 222, or accepts a scroll request of a display image through the scrollbar.
(194) In addition, by the execution of the operation detection control, the main control unit 200 includes a touch panel control function to: determine whether the operation position with respect to the operation panel 222 is an overlapping part (display area) that overlaps with the display panel 221 or it is the remaining outer edge part (non-display area) that does not overlap with the display panel 221; and control a reaction area of the operation panel 222 and the display position of the software key.
(195) Moreover, the main control unit 200 can detect a gesture operation with respect to the operation panel 222 and execute a preset function according to the detected gesture operation. The gesture operation is not a conventional simple touch operation and means an operation to draw a trajectory by a finger, and so on, specify multiple positions at the same time or combine these to draw a trajectory of at least one of multiple positions.
(196) The camera unit 241 is a digital camera that takes an electronic image by using an imaging element such as a CMOS (Complementary Metal Oxide Semiconductor) and a CCD (Charge-Coupled Device). Moreover, by the control of the main control unit 200, the camera unit 241 can convert image data acquired by imaging into compressed image data such as JPEG (Joint Photographic coding Experts Group), for example, record it in the storage unit 250 and output it through the external input/output unit 260 or the radio communication unit 210. In the smart phone 201 as illustrated in
(197) Moreover, the camera unit 241 can be used for various kinds of functions of the smart phone 201. For example, it is possible to display an image acquired in the camera unit 241 on the display panel 221 or use the image of the camera unit 241 as one of operation inputs of the operation panel 222. Moreover, when the GPS reception unit 270 detects a position, it is possible to detect the position with reference to the image from the camera unit 241. Furthermore, with reference to the image from the camera unit 241, it is possible to determine the optical axis direction of the camera unit 241 of the smart phone 201 and determine the current usage environment without using the acceleration sensor of three axes or with using the acceleration sensor of three axes together. Naturally, it is possible to use the image from the camera unit 241 in application software.
(198) Additionally, it is possible to attach position information acquired by the GPS reception unit 270, voice information (which may be text information by performing voice text conversion by the main control unit, and so on) acquired by the microphone 232 and attitude information acquired by the motion sensor unit 280, and so on, to image data of a still image or moving image and record it in the storage unit 250, or output it through the external input/output unit 260 or the radio communication unit 210.
(199) In the above-mentioned smart phone 201, for example, each above-mentioned processing unit related to point image restoration processing can be arbitrarily realized by the main control unit 200 and the storage unit 250, and so on.
(200) It is needless to say that the present invention is not limited to the above-mentioned embodiments and various changes can be made without departing from the spirit of the present invention.
(201) Here, the present invention is not limited to the examples described in this specification and the examples illustrated in the drawings, and it is natural that various design changes and improvements can be performed without departing from the scope of the present invention.