WO2014155755A1 - 画像処理装置、撮像装置、画像処理方法及びプログラム並びに記録媒体 - Google Patents

画像処理装置、撮像装置、画像処理方法及びプログラム並びに記録媒体 Download PDF

Info

Publication number
WO2014155755A1
WO2014155755A1 PCT/JP2013/062468 JP2013062468W WO2014155755A1 WO 2014155755 A1 WO2014155755 A1 WO 2014155755A1 JP 2013062468 W JP2013062468 W JP 2013062468W WO 2014155755 A1 WO2014155755 A1 WO 2014155755A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
processing
restoration
image data
data
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.)
Ceased
Application number
PCT/JP2013/062468
Other languages
English (en)
French (fr)
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.)
Fujifilm Corp
Original Assignee
Fujifilm Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujifilm Corp filed Critical Fujifilm Corp
Priority to JP2015507926A priority Critical patent/JP5759085B2/ja
Priority to CN201380051298.2A priority patent/CN104704806B/zh
Priority to DE112013004507.9T priority patent/DE112013004507T5/de
Publication of WO2014155755A1 publication Critical patent/WO2014155755A1/ja
Priority to US14/672,877 priority patent/US9357107B2/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • H04N23/81Camera processing pipelines; Components thereof for suppressing or minimising disturbance in the image signal generation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/117Filters, e.g. for pre-processing or post-processing
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • G06T3/4023Scaling of whole images or parts thereof, e.g. expanding or contracting based on decimating pixels or lines of pixels; based on inserting pixels or lines of pixels
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/10Image enhancement or restoration using non-spatial domain filtering
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/20Image enhancement or restoration using local operators
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/70Denoising; Smoothing
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/90Dynamic range modification of images or parts thereof
    • G06T5/92Dynamic range modification of images or parts thereof based on global image properties
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/46Colour picture communication systems
    • H04N1/56Processing of colour picture signals
    • H04N1/60Colour correction or control
    • H04N1/6027Correction or control of colour gradation or colour contrast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/136Incoming video signal characteristics or properties
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/85Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression
    • H04N19/86Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression involving reduction of coding artifacts, e.g. of blockiness
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • H04N23/84Camera processing pipelines; Components thereof for processing colour signals
    • H04N23/843Demosaicing, e.g. interpolating colour pixel values
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20024Filtering details
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20172Image enhancement details
    • G06T2207/20182Noise reduction or smoothing in the temporal domain; Spatio-temporal filtering
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20172Image enhancement details
    • G06T2207/20192Edge enhancement; Edge preservation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/40Picture signal circuits
    • H04N1/409Edge or detail enhancement; Noise or error suppression
    • H04N1/4092Edge or detail enhancement

Definitions

  • the present invention relates to an image processing apparatus, an imaging apparatus, an image processing method, a program, and a recording medium related to a restoration process based on a point spread function.
  • a so-called point spread phenomenon in which the point subject has a minute spread may be seen due to the influence of diffraction or aberration caused by the imaging optical system.
  • a function representing the response of the optical system to a point light source is called a point spread function (PSF) and is known as a parameter that affects resolution degradation (blur) of a captured image.
  • PSF point spread function
  • the captured image whose image quality has deteriorated due to this point spread phenomenon can be restored by receiving a point image restoration process based on PSF.
  • point image restoration processing deterioration characteristics (point image characteristics) caused by aberrations of the lens (optical system) and the like are obtained in advance, and a captured image is obtained by image processing using a restoration filter (recovery filter) corresponding to the point image characteristics. This is a process for canceling the point spread.
  • Patent Document 1 discloses an image processing apparatus that can change the strength of recovery processing for an image that has been subjected to recovery processing. To do.
  • a corrected image is generated by applying a correction filter to a captured image, a difference image between the captured image and the corrected image is generated, and the captured image, the corrected image, and the difference image are stored.
  • Patent Document 2 discloses an image processing apparatus that performs image restoration using blind deconvolution on an image that has been subjected to nonlinear correction.
  • This image processing apparatus includes a correction unit that performs correction for reducing nonlinear tone correction on a captured image that has been subjected to nonlinear tone correction, and a blind deconvolution for a captured image with reduced tone correction.
  • an image recovery unit that performs image recovery by applying the above.
  • Patent Document 3 discloses an image processing apparatus that reduces excessive recovery of image data due to image recovery processing.
  • image restoration processing is performed on color image data in RGB format before gamma processing, the difference in amplification and attenuation of pixel signal values due to gamma correction is absorbed, and the maximum change amount of pixel signal values is increased.
  • the limit value of the change amount is calculated so as to be constant even after the gamma correction.
  • the saturation pixel causes a situation where the degradation state of the image data actually obtained does not match the degradation state of the image data assumed by the image restoration filter as a recovery target”, “ There has been an attempt to solve a technical problem such that image quality degradation such as undershoot and overshoot occurs, and undershoot particularly in a low-luminance portion is amplified by gamma processing after image restoration processing.
  • Patent Document 4 discloses an imaging module that performs image restoration in a short time and with high accuracy.
  • this photographing module by performing restoration processing on the luminance signal after demosaic processing (synchronization processing), it is not necessary to have parameters for restoration processing separately for RGB, and the restoration processing is speeded up.
  • the accuracy of restoration processing is improved by grouping adjacent pixels into a predetermined unit and applying a common restoration processing parameter to the unit and performing deconvolution processing.
  • the point image restoration process described above is a process for restoring an image that has been blurred due to a point spread phenomenon (imaging optical characteristics) by an optical system to an original sharp image, and is a point spread function for original image data with degraded image quality.
  • This is a technique for acquiring a restored image from which image quality deterioration has been removed by applying a restoration filter based on.
  • the image quality degradation caused by the optical system is accurately grasped, and a restoration filter is designed that can remove such image quality degradation strictly, and the image quality degradation (point spread phenomenon) due to the optical system is accurately reflected in the original image data.
  • a restoration filter is designed that can remove such image quality degradation strictly, and the image quality degradation (point spread phenomenon) due to the optical system is accurately reflected in the original image data.
  • the “restoration filter characteristics” and “degradation of the original image data” may not be matched appropriately.
  • the image quality of the original image data varies depending on the imaging capability of the image sensor, and pixel saturation may occur in the image sensor when the subject image is very bright.
  • the saturated pixel data saturated pixel value
  • the obtained original image data does not necessarily reproduce the subject image faithfully.
  • the original image data to be restored is affected not only by the deterioration characteristics derived from the optical system but also by the deterioration characteristics derived from the image sensor, and particularly assumed when the contrast of the subject image is large. Outside image quality degradation may occur.
  • restoration processing is performed under conditions where the characteristics of the restoration filter and the image quality degradation of the original image data do not match properly, the image quality degradation will not be sufficiently removed and a high-quality restored image will not be obtained. In some cases, deterioration of image quality is promoted, and ringing or the like may be conspicuous in the recovered image.
  • the present invention has been made in view of the above-described circumstances, and an object thereof is to provide a technique for suppressing image quality deterioration such as ringing in a recovered image by performing point image restoration processing according to the characteristics of a subject image. .
  • One aspect of the present invention is at least one of image analysis data acquired by analyzing original image data acquired from an image sensor by photographing using an optical system and image acquisition condition data indicating acquisition conditions of the original image data.
  • An image information acquisition unit that acquires image information including either one, a restoration processing unit that performs restoration processing using a restoration filter based on a point spread function of an optical system for original image data, and obtains restored image data;
  • a ringing determination unit that determines whether or not the image information satisfies a condition that causes ringing in the recovered image data by the restoration process, and a processing control unit that controls the image processing based on a determination result of the ringing determination unit.
  • the restoration processing relates to an image processing apparatus that is performed on original image data after gradation correction.
  • the restoration process based on the point spread function of the optical system is performed on the original image data after the gradation correction, and whether or not the image information corresponds to a condition that causes ringing in the restored image data by the restoration process.
  • the image processing is controlled depending on the situation. Therefore, image processing can be controlled flexibly according to the occurrence of ringing in the recovered image data, and occurrence / emphasis of ringing can be effectively prevented.
  • By controlling the restoration process in this way both “improving the resolution of the image (image data) provided to the user” and “suppressing ringing that can occur in the image (image data) by the restoration process” can be achieved. Is possible.
  • image analysis data acquired by analyzing original image data acquired from an image sensor by photographing using an optical system, and image acquisition condition data indicating acquisition conditions of the original image data
  • An image information acquisition unit that acquires image information including at least one of them
  • a restoration processing unit that obtains restored image data by performing restoration processing using a restoration filter based on a point spread function of an optical system on original image data
  • a gradation correction unit that performs gradation correction of the original image data
  • a ringing determination unit that determines whether or not the image information satisfies a condition for causing ringing in the recovered image data by the restoration process, and a determination result of the ringing determination unit
  • the processing control unit controls the restoration processing based on the original image data before gradation correction based on the determination result of the ringing determination unit Restoration process for any of the original image data after the fine gradation correction to an image processing apparatus for determining whether to.
  • either the original image data before the gradation correction or the original image data after the gradation correction depending on whether or not the image information corresponds to a condition in which ringing occurs in the recovered image data by the restoration process. It is determined whether or not the restoration process is performed. If tone correction is performed after the restoration process, side effects (ringing or the like) of the restoration process may be emphasized by the tone correction. Therefore, when the image information corresponds to a condition that causes ringing, side effects (such as ringing) of such restoration processing are emphasized by gradation correction by performing restoration processing on the original image data after gradation correction. Can be prevented.
  • the gradation correction is gradation correction by logarithmic processing
  • the restoration filter is composed of filter coefficients corresponding to image data before logarithmic processing.
  • the original image data after logarithmization processing is intentionally reconstructed by using the restoration filter composed of filter coefficients corresponding to the image data before logarithmization processing, thereby generating the restoration processing.
  • the toughness against image quality degradation due to ringing is improved, and the influence of ringing can be made inconspicuous on an image (image data).
  • the gradation correction is gradation correction by logarithmic processing
  • the restoration filter is composed of filter coefficients corresponding to the image data after logarithmic processing.
  • the original image data after logarithmic processing is subjected to restoration processing using a restoration filter composed of filter coefficients corresponding to the image data after logarithmic processing, thereby causing ringing caused by the restoration processing.
  • the toughness against image quality deterioration is improved, the influence of ringing can be made inconspicuous on the image, and the restoration accuracy can be improved.
  • the restoration processing is processing for restoring only the amplitude component of the original image data to obtain restored image data.
  • the restoration process is performed on the original image data after the gradation correction, and the ringing occurs. It is possible to perform flexible image processing control according to whether or not.
  • the restoration process is a process of restoring the amplitude component and the phase component of the original image data to obtain restored image data.
  • the restoration process is performed on the original image data after gradation correction, and the image toughness (image (Non-destructiveness) can be further improved, and flexible image processing control according to whether or not ringing occurs is possible.
  • the image processing apparatus restores the restored image data by restoring only the amplitude component of the original image data to obtain restored image data, or restoring the amplitude component and the phase component of the original image data.
  • a restoration processing information acquisition unit that acquires restoration processing information about whether the processing is to be obtained, and the processing control unit is based on the restoration processing information acquired by the restoration processing information acquisition unit in addition to the determination result of the ringing determination unit Then, it is determined which of the original image data before gradation correction and the original image data after gradation correction is to be restored.
  • the ringing determination unit determines which of the original image data before gradation correction and the original image data after gradation correction is to be restored. Is done. Therefore, for example, it is possible to determine which of the original image data before gradation correction and the original image data after gradation correction is to be restored, considering whether or not phase component restoration is involved. It is.
  • the image information acquisition unit acquires image information including image analysis data indicating whether pixel data having saturated pixel values or pixel data having a pixel value larger than a threshold value is included in the original image data. .
  • whether or not the condition for causing ringing is determined is based on whether or not pixel data having a pixel value saturated or pixel data having a pixel value larger than the threshold value is included in the original image data.
  • the image acquisition condition data includes information on the optical system used for photographing to acquire the original image data.
  • the condition for causing the ringing is made based on the “optical system information” that may affect the occurrence of the ringing.
  • the optical system information includes at least one of a lens type, an aperture value, and a zoom value of the optical system used for photographing for acquiring the original image data.
  • the lens type of the optical system based on “at least one of the lens type of the optical system, the aperture value, and the zoom value” that can affect the occurrence of ringing, it is determined whether or not the condition for causing ringing is satisfied.
  • the process control unit determines whether or not to execute the restoration process in the restoration processing unit based on the determination result of the ringing determination unit.
  • the restoration process is not performed, so that image quality degradation such as ringing has occurred. It is possible to prevent the image (image data) from being provided to the user.
  • the processing control unit determines a restoration filter to be used in the restoration process based on the determination result of the ringing determination unit.
  • the restoration filter according to the determination result of the ringing determination unit can be used in the restoration processing, and restoration indicating that ringing is prevented when “image information corresponds to a condition that causes ringing” is indicated.
  • the filter it is possible to prevent the user from being provided with an image (image data) in which image quality degradation such as ringing has occurred.
  • the image processing apparatus includes a gradation correction unit that performs gradation correction of the original image data.
  • the processing control unit controls gradation correction in the gradation correction unit based on the determination result of the ringing determination unit.
  • the original image data includes luminance data
  • the restoration processing unit performs restoration processing on the luminance data of the original image data
  • the original image data includes color data
  • the restoration processing unit performs restoration processing on the color data of the original image data
  • the processing control unit determines which of the luminance data and the color data of the original image data is to be restored based on the determination result of the ringing determination unit, and the restoration processing unit A restoration process is performed on the data determined by the processing control unit among the luminance data and the color data.
  • this aspect it is controlled which of the luminance data and the color data of the original image data is to be restored depending on whether or not the image information corresponds to a condition that causes ringing. Therefore, for example, when image information corresponds to a condition that causes ringing, restoration processing may be performed on luminance data of original image data from the viewpoint of preventing problems such as unnecessary coloring. Further, when image information does not correspond to a condition for causing ringing, restoration processing may be performed on color data of original image data from the viewpoint of giving priority to highly accurate color reproducibility.
  • the optical system has a lens unit that modulates the phase and expands the depth of field.
  • image processing / restoration processing is also performed on original image data obtained via a so-called EDoF (Extended Depth of Field (Focus)) optical system depending on whether or not the image information corresponds to a condition that causes ringing.
  • EDoF Extended Depth of Field
  • the method of modulating the phase in the lens unit is not particularly limited, and a phase modulation unit is provided between the lenses, or a phase modulation function is provided on the lens itself (for example, the incident surface / output surface of the lens). It is also possible to have it.
  • the processing control unit controls image processing or restoration processing for each original image data.
  • the processing control unit controls image processing or restoration processing for each pixel data constituting the original image data.
  • Image processing or restoration processing may be controlled for each original image data or may be controlled for each pixel data.
  • image processing or restoration processing is controlled for each original image data, it is possible to simplify the processing.
  • image processing or restoration processing is controlled for each pixel data, processing is performed only on necessary portions in the image. It is possible to apply.
  • Another aspect of the present invention relates to an imaging apparatus including an imaging element that outputs original image data by imaging using an optical system, and the above-described image processing apparatus.
  • image analysis data acquired by analyzing original image data acquired from an image sensor by photographing using an optical system, and image acquisition condition data indicating acquisition conditions of the original image data
  • An image information acquisition step for acquiring image information including at least one of them, and a restoration processing step for performing restoration processing using a restoration filter based on a point spread function of the optical system on the original image data to obtain restored image data
  • a ringing determination step for determining whether or not the image information satisfies a condition for causing ringing in the recovered image data by the restoration process, and the image processing is controlled based on the determination result of the ringing determination step, and the restoration process Relates to an image processing method performed on original image data after gradation correction.
  • image analysis data acquired by analyzing original image data acquired from an image sensor by photographing using an optical system, and image acquisition condition data indicating acquisition conditions of the original image data
  • An image information acquisition step for acquiring image information including at least one of them, and a restoration processing step for performing restoration processing using a restoration filter based on a point spread function of the optical system on the original image data to obtain restored image data
  • a tone correction step for performing tone correction of the original image data, and a ringing determination step for determining whether or not the image information satisfies a condition for causing ringing in the recovered image data by the restoration process.
  • the restoration process is controlled, and based on the determination result of the ringing determination step, the original image before tone correction is performed.
  • An image processing method or the restoration process to any of the original image data after the data and tone correction are determined.
  • image analysis data acquired by analyzing original image data acquired from an image sensor by photographing using an optical system, and image acquisition condition data indicating acquisition conditions of the original image data
  • a procedure for acquiring image information including at least one of the above, a procedure for performing restoration processing using a restoration filter based on a point spread function of an optical system on original image data, and obtaining restored image data
  • the image processing is controlled based on the above, and the restoration processing relates to a program that is performed on the original image data after gradation correction.
  • image analysis data acquired by analyzing original image data acquired from an image sensor by photographing using an optical system, and image acquisition condition data indicating acquisition conditions of the original image data, A procedure for obtaining image information including at least one of them, a procedure for performing restoration processing using a restoration filter based on a point spread function of an optical system on original image data, and obtaining restored image data;
  • the restoration process is controlled based on the determination result of whether or not the image information corresponds to whether or not the image information corresponds to a condition that causes ringing.
  • a program for either performing restoring processing to any of the original image data after the original image data and the gradation correction of the previous tone correction is determined.
  • Non-transitory recording medium on which a computer-readable code of the program according to the above-described aspect is recorded.
  • Such recording media include various magneto-optical recording media and semiconductor recording media such as CD (Compact Disk), DVD (Digital Versatile Disk), HD (Hard Disk), SSD (Solid State Drive), and USB memory. Can be used.
  • image processing is controlled based on whether image information (image analysis data and / or image acquisition condition data) corresponds to a condition in which ringing occurs in the recovered image data. Therefore, restoration processing according to the characteristics of the subject image can be performed, and image quality deterioration in the restored image can be suppressed.
  • the restoration process itself can be controlled based on such image information, and image quality deterioration in the restored image can be effectively removed by performing the restoration process according to the image information. Can do.
  • FIG. 1 is a block diagram showing an outline of a digital camera connected to a computer.
  • FIG. 2 is a block diagram illustrating a functional configuration example of the camera body controller.
  • FIG. 3 is a diagram showing an outline from image shooting to point image restoration processing.
  • FIG. 4 is a block diagram illustrating an outline of an example of the point image restoration process.
  • FIG. 5 is a diagram showing an example of the contrast change of the edge portion in the subject image when ideal point image restoration processing (no pixel value saturation and no clipping) is performed, and (a) shows the subject image.
  • (B) shows the contrast in the original image data before the point image restoration process
  • (c) shows the contrast in the restored image data after the point image restoration process.
  • FIG. 1 is a block diagram showing an outline of a digital camera connected to a computer.
  • FIG. 2 is a block diagram illustrating a functional configuration example of the camera body controller.
  • FIG. 3 is a diagram showing an outline from image shooting to point image restoration processing.
  • FIG. 6 is a diagram showing an example of the contrast change of the edge portion in the subject image in the actual point image restoration processing (with pixel value saturation and clipping).
  • FIG. 6A shows the contrast inherent in the subject image.
  • (B) shows the contrast in the original image data before the point image restoration process, and
  • (c) shows the contrast in the restored image data after the point image restoration process.
  • FIG. 7A is a block diagram illustrating various image processing flows in the image processing unit (camera body controller).
  • FIG. 7B is another block diagram illustrating various image processing flows in the image processing unit (camera body controller).
  • FIG. 7C is another block diagram illustrating various image processing flows in the image processing unit (camera body controller).
  • FIG. 7D is another block diagram illustrating various image processing flows in the image processing unit (camera body controller).
  • FIG. 7A is a block diagram illustrating various image processing flows in the image processing unit (camera body controller).
  • FIG. 7B is another block diagram illustrating various image processing flows in the image processing unit (
  • FIG. 8 is a diagram showing a correlation between “tone correction processing (gamma correction processing)” and “color data / luminance data” with respect to the point image restoration processing.
  • FIG. 9 is a diagram for explaining an overshoot generation mechanism by point image restoration processing.
  • FIG. 10 is a diagram illustrating an example of a relationship between pre-processing data and post-processing data by gamma processing (logarithmization processing).
  • FIG. 11 is a diagram illustrating an image processing block according to the first embodiment.
  • FIG. 12 is a diagram showing a point image restoration processing flow by the image processing block shown in FIG.
  • FIG. 13 is a diagram illustrating an image processing block according to a modification of the first embodiment.
  • FIG. 14 is a diagram illustrating an image processing block according to another modification of the first embodiment.
  • FIG. 15 is a diagram showing an image example (original image data) for explaining an example of determining the presence or absence of the point image restoration process for each pixel data, and the target pixel in the kernel (Km, Kn) and its surroundings An example in which determination is performed based on image analysis data (image information) of pixels will be shown.
  • FIG. 16 is a diagram illustrating an example of a point image restoration processing flow according to the second embodiment.
  • FIG. 17 is a diagram illustrating an example of an image processing block according to the third embodiment.
  • FIG. 18A is a graph illustrating the “spatial frequency-amplitude” relationship of the restoration filter, and shows an example of the characteristics of the filter (filter A) used in normal point image restoration processing.
  • FIG. 18B is a graph illustrating the “spatial frequency-amplitude” relationship of the restoration filter, and shows an example of the characteristics of the anti-ringing restoration filter (filter B).
  • FIG. 19 is a diagram showing a point image restoration processing flow by the image processing block shown in FIG.
  • FIG. 20 is a diagram illustrating an example of an image processing block according to the fourth embodiment.
  • FIG. 21 is a diagram showing a point image restoration processing flow by the image processing block shown in FIG.
  • FIG. 22 is a diagram illustrating a modification of the image processing block according to the fourth embodiment.
  • FIG. 23 is a diagram illustrating an example of an image processing block according to the fifth embodiment.
  • FIG. 24 is a diagram showing a point image restoration processing flow by the image processing block shown in FIG. FIG.
  • FIG. 25 is a block diagram illustrating an embodiment of an imaging module including an EDoF optical system.
  • FIG. 26 is a diagram illustrating an example of an EDoF optical system.
  • FIG. 27 is a diagram showing an example of a restoration processing flow by the restoration processing block shown in FIG.
  • FIG. 28 is a diagram showing an example of restoration of an image acquired via the EDoF optical system, where (a) shows a blurred image before the restoration process, and (b) shows that the blur after the restoration process has been eliminated. An image (point image) is shown.
  • FIG. 29 is an external view of a smartphone.
  • FIG. 30 is a block diagram showing a configuration of the smartphone shown in FIG.
  • FIG. 1 is a block diagram showing an outline of a digital camera connected to a computer.
  • the digital camera 10 includes a replaceable lens unit 12 and a camera body 14 having an image sensor 26, and the lens unit 12 has a lens unit input / output unit 22 and a camera body input / output unit 30 of the camera body 14.
  • the lens unit 12 and the camera body 14 are electrically connected.
  • the lens unit 12 includes an optical system such as a lens 16 and a diaphragm 17 and an optical system operation unit 18 that controls the optical system.
  • the optical system operation unit 18 is a lens connected to the lens unit input / output unit 22.
  • a unit controller 20 and an actuator (not shown) for operating the optical system are included.
  • the lens unit controller 20 controls the optical system via an actuator based on a control signal sent from the camera body 14 via the lens unit input / output unit 22, for example, focus control or zoom control by lens movement, aperture 17 aperture amount control and the like are performed.
  • the imaging device 26 of the camera body 14 includes a condensing microlens, a color filter such as RGB, and an image sensor (photodiode; CMOS (Complementary Metal Oxide Semiconductor), CCD (Charge Coupled Device), etc.), and a lens unit.
  • CMOS Complementary Metal Oxide Semiconductor
  • CCD Charge Coupled Device
  • the light of the subject image irradiated through the twelve optical systems (lens 16, aperture 17, etc.) is converted into an electrical signal, and the image signal (original image data) is sent to the camera body controller 28.
  • the image sensor 26 of this example outputs original image data by photographing a subject image using an optical system, and this original image data is transmitted to the image processing device of the camera body controller 28.
  • the camera body controller 28 controls the camera body 14 in an integrated manner, and includes a device control unit 34 and an image processing unit (image processing device) 35 as shown in FIG.
  • the device control unit 34 controls the output of an image signal (image data) from the image sensor 26 or generates a control signal for controlling the lens unit 12 and the lens via the camera body input / output unit 30.
  • the device control unit 34 appropriately controls various devices included in the digital camera 10 such as a display unit (EVF: Electronic View Finder, rear liquid crystal display unit) (not shown).
  • EMF Electronic View Finder, rear liquid crystal display unit
  • the image processing unit 35 can perform arbitrary image processing on the image signal from the image sensor 26 as necessary. For example, sensor correction processing, demosaicing (synchronization) processing, pixel interpolation processing, color correction processing (offset correction processing, white balance processing, color matrix processing, gamma conversion processing, etc.), RGB image processing (sharpness processing, tone correction processing) , Exposure correction processing, contour correction processing, etc.), RGB / YCrCb conversion processing, image compression processing, and other various types of image processing are appropriately performed in the image processing unit 35.
  • the image processing unit 35 of this example includes a point image restoration processing unit 36 that performs a so-called point image restoration process on the image signal (original image data). Details of the point image restoration process will be described later.
  • the image data processed by the camera body controller 28 is sent to a computer 60 or the like connected to the input / output interface 32.
  • the format of the image data sent from the digital camera 10 (camera body controller 28) to the computer 60 or the like is not particularly limited, and may be any format such as RAW, JPEG, TIFF, and the like. Therefore, the camera main body controller 28, like so-called Exif (Exchangeable Image File Format), includes a plurality of header information (shooting information (shooting date and time, model, number of pixels, aperture value, etc.)), main image data, thumbnail image data, and the like.
  • the related data may be associated with each other to form one image file, and the image file may be transmitted to the computer 60.
  • the computer 60 is connected to the digital camera 10 via the input / output interface 32 and the computer input / output unit 62 of the camera body 14 and receives data such as image data sent from the camera body 14.
  • the computer controller 64 controls the computer 60 in an integrated manner, performs image processing on image data from the digital camera 10, and is connected to the computer input / output unit 62 via a network line such as the Internet 70. Control communication.
  • the computer 60 has a display 66, and the processing contents in the computer controller 64 are displayed on the display 66 as necessary.
  • the user operates the input means (not shown) such as a keyboard while confirming the display on the display 66 to input data and commands to the computer controller 64 to control the computer 60 or connect to the computer 60. And the like (digital camera 10, server 80) can be controlled.
  • the server 80 includes a server input / output unit 82 and a server controller 84.
  • the server input / output unit 82 constitutes a transmission / reception connection unit with external devices such as the computer 60, and is connected to the computer input / output unit 62 of the computer 60 via a network line such as the Internet 70.
  • the server controller 84 cooperates with the computer controller 64 in response to a control instruction signal from the computer 60, transmits and receives data to and from the computer controller 64 as necessary, and downloads data to the computer 60. Then, an arithmetic process is performed and the calculation result is transmitted to the computer 60.
  • Each controller (the lens unit controller 20, the camera body controller 28, the computer controller 64, and the server controller 84) includes circuits necessary for control processing, such as an arithmetic processing circuit (CPU or the like), a memory, or the like.
  • Communication between the digital camera 10, the computer 60, and the server 80 may be wired or wireless.
  • the computer 60 and the server 80 may be configured integrally, and the computer 60 and / or the server 80 may be omitted.
  • the digital camera 10 may be provided with a communication function with the server 80, and data may be directly transmitted and received between the digital camera 10 and the server 80.
  • the program according to the embodiment of the present invention is a non-temporary recording such as various magneto-optical recording media and semiconductor recording media provided in the image processing unit 35, the computer 60, or the storage unit 250 of the smartphone 201 described later. It can be used by recording on a medium.
  • a restoration process using a restoration filter based on the point spread function of the optical system is performed on the original image data acquired from the image sensor 26 by photographing using the optical system (lens 16, aperture 17, etc.). This is a process of performing recovery image data acquisition.
  • FIG. 3 is a diagram showing an outline from image shooting to point image restoration processing.
  • the subject image is received by the image sensor 26 (image sensor) via an optical system (lens 16, aperture 17, etc.), and original image data Do is output from the image sensor 26.
  • the original image data Do is image data in a state where the original subject image is blurred due to the point spread phenomenon derived from the characteristics of the optical system.
  • a point image restoration process P10 using the restoration filter F is performed on the original image data Do, whereby the original subject image ( Recovered image data Dr representing an image (recovered image) closer to the point image) is obtained.
  • the restoration filter F used in the point image restoration processing P10 is obtained by the restoration filter calculation algorithm P20 from the point image information (point spread function) of the optical system according to the photographing conditions at the time of acquiring the original image data Do.
  • the point image information (point spread function) of the optical system can vary depending not only on the type of the lens 16 but also on various photographing conditions such as the aperture amount, focal length, zoom amount, image height, number of recorded pixels, pixel pitch, and the like. When calculating the restoration filter F, these photographing conditions are acquired.
  • FIG. 4 is a block diagram showing an outline of an example of the point image restoration process.
  • the point image restoration process P10 is a process for creating the restored image data Dr from the original image data Do by the filtering process using the restoration filter F.
  • N ⁇ M N and M are integers of 2 or more
  • the restoration filter F in the real space constituted by the taps is applied to the image data to be processed.
  • the weighted average calculation (deconvolution calculation) of the filter coefficient assigned to each tap and the corresponding pixel data (processing target pixel data of the original image data Do and adjacent pixel data) is performed, so that Pixel data (recovered image data Dr) can be calculated.
  • the point image restoration process can be performed by applying the weighted average process using the restoration filter F to all the pixel data constituting the image data by changing the target pixel in order.
  • the restoration filter in the real space constituted by N ⁇ M taps can be derived by performing inverse Fourier transform on the restoration filter in the frequency space. Therefore, the restoration filter in the real space can be appropriately calculated by specifying the restoration filter in the basic frequency space and designating the number of constituent taps of the restoration filter in the real space.
  • FIG. 5 and FIG. 6 are diagrams showing an example of a change in image quality of an edge portion (image boundary portion) in a subject image.
  • FIG. 5 shows an ideal point image restoration process (no pixel value saturation, no clipping).
  • FIG. 6 shows an example of actual point image restoration processing (with pixel value saturation and clipping).
  • FIGS. 5A and 6A show the contrast inherent in the subject image
  • FIGS. 5B and 6B show the contrast in the original image data Do before the point image restoration processing
  • 5 (c) and FIG. 6 (c) show the contrast in the recovered image data Dr after the point image restoration processing.
  • the horizontal direction (X direction) indicates a position (one-dimensional position) in the subject image
  • the vertical direction (Y direction) indicates contrast strength.
  • the “edge portion having a contrast step” in the subject image is a captured image (original image) due to the point spread phenomenon of the optical system at the time of shooting.
  • Image blur occurs in the image data Do (see FIGS. 5B and 6B), and the restored image data Dr is obtained by the point image restoration process (FIG. 5C and FIG. 6B). c)).
  • the original image data including a pixel (saturated pixel) with a saturated pixel value is in a state where it is clipped at the saturated pixel portion (see FIG. 6).
  • the contrast change is relatively clear, resulting in degradation (image blur).
  • deviation from the original image data (subject image) occurs due to clipping of the pixel data.
  • restoration processing using a normal restoration filter is performed on the original image data in which such data deviation occurs, ringing is likely to occur and the generated ringing is likely to be complicated (see FIG. 6C). .
  • high frequency components increase, and aliasing noise tends to be emphasized.
  • FIG. 7A to 7D are block diagrams illustrating various image processing flows in the image processing unit 35 (camera body controller 28).
  • FIG. 7A shows an example in which point image restoration processing is performed on luminance data (Y) after gamma correction processing (tone correction processing)
  • FIG. 7B shows point image restoration on RGB color data after gamma correction processing.
  • An example of processing is shown.
  • 7C shows an example in which point image restoration processing is performed on RGB color data before gamma correction processing
  • FIG. 7D is an example in which point image restoration processing is performed on luminance data (Y) before gamma correction processing. Indicates.
  • the image processing unit 35 “offset correction processing 41 for adjusting image brightness” and “image white balance (WB)”.
  • WB correction processing 42 “ demosaic processing 43 for acquiring color data of each RGB color for all pixels by pixel interpolation processing ”,“ tone correction by logarithmic processing is performed to adjust the gradation of pixel data
  • Gamma correction processing (gradation correction step; gradation correction unit) 44 ”,“ luminance / color difference conversion processing 45 for calculating luminance data (Y) and color difference data (Cb / Cr) from RGB color data ”and“ image data
  • Point image restoration processing (restoration processing step) for performing point image restoration processing using a restoration filter based on the point spread function of the optical system used for photographing Sequentially performed 46 ".
  • the color data corresponds to the color type of the color filter of the image sensor 26 that has acquired and acquired mosaic data (original image data), and the luminance data and the color
  • the processing order of the luminance / color difference conversion processing 45 and the point image restoration processing 46 in the image processing example of FIG. 7A is switched. Therefore, in the example of FIG. 7A, the point image restoration process 46 is performed on the luminance data of the original image data after the gamma correction process (gradation correction) 44, but in the example of FIG. 7B, the gamma correction process (gradation correction) is performed. ) The point image restoration processing 46 for the RGB color data of the original image data 44 is performed by the point image restoration processing unit 36, and thereafter the luminance data and the color difference data are calculated.
  • the processing order of the gamma correction processing 44 and the point image restoration processing 46 in the image processing example of FIG. 7B is switched.
  • the point image restoration process 46 is performed after the gamma correction process 44, whereas the point image restoration process 46 is performed before the gamma correction process 44 in the example shown in FIG. 7C.
  • the offset correction process 41, the WB correction process 42, and the demosaic process 43 are the same as the examples of FIGS. 7A to 7D, but after the demosaic process 43, the luminance / color difference conversion process 45a is performed. After the point image restoration process 46 is performed, a color signal conversion process 47 for calculating RGB color data from the luminance data and the color difference data is performed. Then, the gamma correction process 44 and the brightness / color difference conversion process 45b are sequentially performed on the RGB color data, whereby the brightness data and the color difference data are acquired.
  • FIGS. 7A to 7D is merely an example of a processing flow, and other processing may be performed at an arbitrary stage as necessary, or a part of the processing illustrated in FIGS. 7A to 7D may be performed. It may be omitted.
  • FIG. 8 is a diagram showing the correlation between “tone correction processing (gamma correction processing)” and “color data / luminance data” with respect to the point image restoration processing.
  • the column indicated by “true number (before gradation correction)” in FIG. 8 is an image when point image restoration processing is performed on image data (true number image data) before gradation correction processing (gamma correction processing).
  • the column indicating the characteristics (see FIGS. 7C and 7D) and “logarithm (after gradation correction)” is a point image restoration process for the image data (logarithmic image data) after the gradation correction process (gamma correction process).
  • FIG. 7A and FIG. 7B show image characteristics when performing the above.
  • the column indicated by “color data (RGB)” in FIG. 8 indicates image characteristics when the point image restoration process is performed on the color data (RGB data) (see FIGS. 7B and 7C).
  • the column indicated by (Y) indicates image characteristics when the point image restoration process is performed on the luminance data (see FIGS. 7A and 7D).
  • the ideal system here refers to “the number of filter taps of the restoration filter used in the point image restoration process is sufficiently large”, “the number of calculation bits is sufficiently large”, “actual blur characteristics of the optical system and image processing Appropriate point image restoration processing is performed, such as “the optical system blur characteristic data held by the unit 35 coincides with” or “saturated pixel data with saturated pixel values does not include input image data (original image data)”. It refers to an ideal system in which the conditions are sufficiently satisfied.
  • the point image restoration of logarithmic image data is more efficient than the point image restoration of true number image data (image data before gradation correction).
  • the present inventor confirmed that the appearance of side effects such as ringing in the point image restoration image (recovery image) is small by a plurality of experiments ("Luminance system toughness in a system deviating from the ideal system ( Ringing degree, etc.) ”)).
  • FIG. 9 is a diagram for explaining an overshoot occurrence mechanism by point image restoration processing.
  • the horizontal direction (X direction) indicates a position (one-dimensional position) in the image
  • the vertical direction (Y direction) indicates a pixel value.
  • An image edge portion (see FIG. 9A) whose image quality has deteriorated due to the point spread phenomenon of the optical system (see FIG. 9A) approaches the original image quality (contrast) by the point image restoration process, but is so-called overshoot (undershoot). May occur (see FIG. 9B). If the overshoot caused by the point image restoration process itself is small, it is not particularly noticeable visually, but if the gradation correction process (gamma correction process) is performed thereafter, the overshoot may be emphasized more than necessary. (Refer to “E1” and “E2” in FIG. 9C).
  • the overshoot (undershoot) portion on the shadow side is applied with a large gain (amplification factor) by the subsequent gamma correction processing, and constitutes a portion that is largely biased to the black side in the image edge portion (FIG. 9). (See “E2” in (c)).
  • This phenomenon is not limited to the point image restoration process, and is common even when an overshoot occurs in the edge portion as a result of the contour correction process performed on the image data in the true space.
  • point image restoration processing for color data is a point image of color data (color signal) of each color of RGB as expected (according to retained deterioration information (point spread function information of the optical system)). If input to the restoration processing unit 36, effective color data correction can be performed, and chromatic aberration can be effectively reduced as compared with “point image restoration processing for luminance data (Y data)”. (See “Restorability in an ideal system” and “Color system correction capability” in FIG. 8). However, when the behavior of the actual input signal is not as expected, the point image restoration process for color data (RGB data) may cause side effects such as an increase in the number of places where unnecessary coloring occurs and an unnatural hue. (Refer to “Color system toughness in a system deviated from the ideal system (colored degree, degree of bleeding, etc.)” in FIG. 8).
  • the processing scale (the scale of the processing circuit when the processing system is hardware) is different as shown in FIG. That is, the point image restoration processing of logarithmic image data (image data in logarithmic space) is simpler than arithmetic processing, and the processing scale is smaller than that of true image data (image data in the logarithmic space). Is advantageous. Further, the point image restoration process for color data (RGB data) requires a processing system for three channels (3 ch), but the point image restoration process for luminance data (Y data) requires processing for one channel (1 ch). Since the system is sufficient, the point image restoration process for luminance data is simpler in arithmetic processing, and the processing scale can be made compact.
  • an appropriate system according to the user's needs is constructed based on the above-described various characteristics shown in FIG. For example, “Various types of input image signals (image data) are input”, “Make the processing system as small as possible”, “Actual image degradation information and processing system If the processing conditions deviate from the ideal processing system, such as "There is no guarantee that the stored image degradation information is in perfect agreement", point image restoration processing for logarithmic image data is better for point image restoration for true image data. It is more excellent in image toughness (image non-destructiveness) than processing.
  • the point image restoration process is performed after the gradation correction process (gamma correction process).
  • gradation correction process gamma correction process
  • an image processing system that performs point image restoration processing on luminance data is preferable to color data, but color reproducibility is improved. If importance is attached, an image processing system that performs point image restoration processing on color data is preferable to luminance data.
  • the restoration filter when performing gradation correction by logarithmic processing (gamma correction processing), the restoration filter itself may be composed of filter coefficients corresponding to image data before logarithmic processing, or image data after logarithmic processing. It may consist of filter coefficients corresponding to.
  • FIG. 10 is a diagram (graph) illustrating an example of a relationship between pre-processing data and post-processing data by gamma processing (logarithmization processing).
  • the horizontal axis of FIG. 10 represents pre-processing data (gamma processing input data “IN”), the vertical axis represents post-processing data (gamma processing output data “OUT”), and the solid line in the graph represents the gamma processing gradation curve. Show.
  • point image restoration processing is performed on pixel data (pixel data before gradation correction) whose pixel value is a true number in an area including a saturated pixel in a high contrast area, and then gradation correction (gamma) is performed.
  • gradation correction gamma
  • undershoot / overshoot ringing
  • the point image restoration process is performed on the pixel data after the logarithmization process, high contrast is compressed by the logarithmization process, and the intensity of ringing by the point image restoration process is reduced.
  • the pixel data after logarithmic processing is generally visually recognized by performing restoration processing (point image restoration processing) using a restoration filter composed of filter coefficients corresponding to pixel data having a true pixel value. While it is possible to perform point image restoration processing on the low-contrast region that is likely to be inferior, it is possible to reduce the degree of ringing enhancement in the high-contrast region where ringing is likely to occur due to the point image restoration processing.
  • an image processing apparatus such as an imaging apparatus
  • a plurality of types of gradation correction gamma correction processing
  • Patent Document 3 it is necessary to calculate a limit value for the amount of change in pixel signal value for each of a plurality of types of gradation correction.
  • point image restoration processing is applied to pixel data after gradation correction, switching of processing according to the type of gradation correction becomes unnecessary.
  • PSF point spread function
  • the pixel value (logarithmic pixel data) after gradation correction (logarithmic processing) is restored using a restoration filter composed of filter coefficients corresponding to the pixel value after logarithmic processing (logarithmic pixel data).
  • the point image restoration process itself can be performed accurately.
  • the target image data of the point image restoration process to “original image data after gradation correction”
  • high contrast is compressed by gradation correction (logarithmization processing)
  • ringing generated by the point image restoration process The strength of can be reduced.
  • the restoration filter used in the point image restoration process may be generated in advance, or may be sequentially calculated and generated in accordance with the execution of the point image restoration process. From the viewpoint of reducing the amount of calculation during the point image restoration process, it is preferable to generate a restoration filter in advance. Further, from the viewpoint of using a restoration filter with excellent adaptability, it is preferable to sequentially calculate the restoration filter when the point image restoration process is executed.
  • the filter coefficient of the restoration filter is obtained by performing an operation based on the pixel value obtained by the logarithmic process (gamma correction process) on the input pixel value (input image data).
  • the pixel value used for generating the restoration filter may be a luminance value, or may be a pixel value (for example, G pixel value) related to one channel that is typically selected from the RGB color data.
  • the pixel value used for generating the restoration filter may be a pixel value of the main subject or a pixel value obtained from an average value of the entire screen.
  • the point image restoration processing may be processing that restores only the amplitude component of the original image data to obtain restored image data, or obtains restored image data by restoring the amplitude component and phase component of the original image data. It may be a process. That is, the restoration filter can be calculated based on at least one of the MTF (Modulation Transfer Function) / PTF (Phase Transfer Function) of the optical system.
  • the blur characteristic of the optical system can be expressed by a so-called optical transfer function (OTF), and the function obtained by inverse Fourier transform of the OTF is a point spread function (PSF: Point Spread Function: point spread). It is also called a function.
  • MTF is an absolute value component of OTF
  • PTF represents a phase shift as a function of spatial frequency. Therefore, the restoration filter used for the point image restoration process can be appropriately designed based on the OTF (MTF / PTF) or PSF of the optical system.
  • the target of the point image restoration process is “image data before gradation correction” and “image data after gradation correction”. Which of these may be determined.
  • image unit depends on whether or not “image information related to an image (original image data) to be subjected to point image restoration processing” corresponds to “a condition for causing ringing in the restored image data by point image restoration processing”.
  • the image processing is controlled to determine whether or not to execute the point image restoration processing.
  • FIG. 11 is a diagram showing an image processing block according to the first embodiment.
  • the image processing unit 35 (see FIG. 2) of this embodiment includes an image analysis unit 37, a ringing determination unit 38, and a restoration processing determination unit (processing control unit) in addition to the point image restoration processing unit (restoration processing unit) 36. 39.
  • the image processing blocks in the figure are not necessarily provided separately, and may be realized by hardware / software that integrally configures a plurality of image processing blocks.
  • the image analysis unit 37 analyzes the original image data acquired from the image sensor by photographing using the optical system, and acquires image analysis data (image information). In this example, whether or not saturated pixels are included in the original image data is acquired by analysis of the original image data in the image analysis unit 37.
  • the image analysis result of the image analysis unit 37 is sent to the ringing determination unit 38 as image analysis data.
  • the ringing determination unit 38 determines whether or not the image analysis data sent from the image analysis unit 37 corresponds to “a condition for causing ringing in the recovered image data by the point image restoration process (ringing occurrence condition)”. Specifically, when the image analysis data indicates that the original image data includes saturated pixels, the ringing determination unit 38 determines that “the image analysis data corresponds to the ringing occurrence condition”. On the other hand, when the image analysis data indicates that the original image data does not include saturated pixels, the ringing determination unit 38 determines that “the image analysis data does not correspond to the ringing occurrence condition”. As described above, the ringing determination unit 38 determines the possibility of ringing in the recovered image data.
  • the possibility of ringing may indicate not only “the presence or absence of ringing” but also “whether or not ringing that stands out by visual recognition occurs”. Therefore, for example, when ringing does not occur at all or when ringing that is not noticeable by visual recognition does not occur, “ringing is not likely to occur (low)”, and when ringing occurs or ringing that is noticeable by visual recognition occurs. The possibility of ringing is high.
  • the determination result in the ringing determination unit 38 is sent to the restoration processing determination unit 39 as ringing determination data.
  • the restoration processing determination unit 39 controls image processing based on the determination result of the ringing determination unit 38 and determines whether or not the point image restoration processing in the point image restoration processing unit 36 is performed.
  • the restoration processing determination unit 39 sends the original image data to the point image restoration processing unit 36.
  • the restoration processing determination unit 39 skips the point image restoration processing unit 36 and sends the original image data to the subsequent processing unit.
  • the restoration processing determination unit 39 of this example controls the point image restoration processing (image processing) for each original image data.
  • the point image restoration processing unit 36 performs restoration processing using a restoration filter based on a point spread function of the optical system on the original image data to obtain restored image data.
  • the restoration processing determination unit 39 and the point image restoration processing unit 36 are provided in the subsequent stage of the gamma correction processing unit (see the gamma correction processing 44 in FIGS. 7A to 7D), and the point image restoration processing in the point image restoration processing unit 36 is performed as follows. This is performed on the original image data after the gamma correction processing (after gradation correction) (see FIGS. 7A and 7B).
  • the original image data before the gamma correction process may be input to the image analysis unit 37, or the original image data after the gamma correction process may be input.
  • Image analysis data may be generated.
  • FIG. 12 is a diagram showing a point image restoration processing flow by the image processing block shown in FIG.
  • the original image data is analyzed in the image analysis unit 37, and it is checked whether or not the original image data includes saturated pixels (S1 in FIG. 12; image information acquisition step).
  • the ringing determination unit 38 determines that the possibility of ringing occurring in the recovered image data is not high (low) (N in S2; ringing determination step). In this case, the original image data is sent from the restoration processing determination unit 39 to the point image restoration processing unit 36, and the point image restoration processing unit 36 performs point image restoration processing to obtain restored image data (S3). The image data is sent to the subsequent processing unit.
  • the ringing determination unit 38 determines that ringing is likely to occur in the recovered image data (Y in S2).
  • the image restoration processing unit 36) is skipped (S4), and the original image data is sent to the subsequent processing unit.
  • the execution of the point image restoration process is determined depending on whether or not saturated pixels are included in the original image data, but the present invention is not limited to this.
  • an image indicating whether or not the original image data includes pixel data having a pixel value larger than a threshold value for example, 90% of a saturated pixel value (the maximum pixel value that can be permitted by the constituent pixels of the image sensor 26)
  • Analysis data may be generated in the image analysis unit 37.
  • the ringing determination unit 38 determines that the possibility of ringing is high, and the restoration processing determination unit 39 performs point image restoration processing ( The point image restoration processing unit 36) is skipped, and the original image data is sent to the subsequent processing unit.
  • the ringing determination unit 38 determines that the possibility of ringing is not high (low), and the restoration processing determination unit 39
  • the original image data is sent to the restoration processing unit 36, and the point image restoration processing unit 36 performs point image restoration processing of the original image data.
  • the possibility of ringing is determined based on whether or not pixel data having saturated pixel values or pixel data having a pixel value larger than a threshold is included in the original image data by a predetermined number of pixels or more. May be determined.
  • image analysis data acquired by analyzing original image data is used as image information that is the basis of ringing determination. It is also possible to use “image acquisition condition data” as this image information.
  • FIG. 13 is a diagram illustrating an image processing block according to a modification of the first embodiment.
  • the image processing unit 35 (see FIG. 2) of this modification includes an image acquisition condition acquisition unit 40 instead of the image analysis unit 37 of FIG.
  • the image acquisition condition acquisition unit 40 acquires the acquisition conditions of the original image data, and sends image acquisition condition data indicating the original image data acquisition conditions to the ringing determination unit 38.
  • the ringing determination unit 38 determines whether or not the image acquisition condition data satisfies the ringing occurrence condition in the recovered image data by the restoration process.
  • the “original image data acquisition condition (image acquisition condition data)” acquired by the image acquisition condition acquisition unit 40 of the present modification includes information on the optical system used for capturing the original image data, and is a point image restoration.
  • Various elements that can affect the restoration accuracy of the process and the side effects (ringing, etc.) of the restoration process can be included in the “original image data acquisition condition (image acquisition condition data)”.
  • the optical system information here includes at least one of a lens type, an aperture value, and a zoom value of the optical system used for photographing to acquire original image data.
  • the “image acquisition condition data acquisition method in the image analysis unit 37” and the “ringing determination method in the ringing determination unit 38” are not particularly limited.
  • a “condition that ringing is highly likely to occur in the recovered image data” is determined in advance and held by the ringing determination unit 38, and depending on whether or not the image acquisition condition data satisfies the held condition, The possibility of occurrence may be determined.
  • a “highly likely condition of ringing” is defined for each type of optical system (lens model number, etc.). Also good.
  • the image acquisition condition acquisition unit 40 may acquire the image acquisition condition data together with the original image data.
  • the image acquisition condition acquisition unit 40 may access the memory and acquire the image acquisition condition data.
  • FIG. 14 is a diagram illustrating an image processing block according to another modification of the first embodiment.
  • the image processing unit 35 (see FIG. 2) of the present modification includes an image information acquisition unit 48 including an image analysis unit 37 in FIG. 11 and an image acquisition condition acquisition unit 40 in FIG.
  • the image information acquisition unit 48 including the image analysis unit 37 and the image acquisition condition acquisition unit 40 acquires image information including at least one of the above-described image analysis data and image acquisition condition data.
  • This image information is sent as image information data from the image information acquisition unit 48 to the ringing determination unit 38.
  • the ringing determination unit 38 determines whether the image information satisfies the ringing occurrence condition in the recovered image data by the restoration process.
  • the restoration processing determination unit 39 and the point image restoration processing unit 36 of the present modification are the same as those in the above-described embodiment (see FIGS. 11 and 12) and the modification (see FIG. 13).
  • point image restoration processing is performed on an image (image data) that can be expected to improve image quality by applying point image restoration processing.
  • the point image restoration process is not performed on an image that is predicted to have a high probability that image quality deterioration such as ringing is conspicuous due to the point image restoration process.
  • image data including ringing is prevented from being sent to the subsequent stage, and a captured image (image data) with degraded image quality is obtained by the user. Can be prevented from being offered to.
  • an image is obtained in units of “pixels” depending on whether or not “image information related to an image (original image data) subject to point image restoration processing” corresponds to “a condition for causing ringing in the restored image data by the point image restoration processing”. Processing is controlled.
  • the point image restoration process is controlled for each original image data in “image” units, but in this embodiment, the point image restoration process is performed for each pixel data in “pixel” units. Is controlled.
  • FIG. 15 is a diagram showing an image example (original image data) for explaining an example of determining the presence or absence of the point image restoration process for each pixel data, and the target pixel in the kernel (Km, Kn) and its surroundings An example in which determination is performed based on image analysis data (image information) of pixels will be shown.
  • the image processing unit 35 (see FIG. 2) of the present example has an image processing block similar to the image processing block shown in FIG. 11, and the image analysis unit 37 analyzes the original image data and determines from the saturated pixel data or the threshold value. Image analysis data (image information) indicating whether or not pixel data having a larger pixel value is included in the original image data is acquired.
  • the ringing determination unit 38 determines the possibility of ringing based on the image analysis data sent from the image analysis unit 37, but performs determination for each pixel data of the original image data.
  • the ringing determination unit 38 performs point image restoration for the target pixel for each pixel data constituting the original image data based on the image analysis data (image information) regarding the target pixel in the original image data and the peripheral pixels of the target pixel. It is determined whether or not ringing is likely to occur due to the processing.
  • the target pixel arranged at the center in a kernel of a predetermined size for example, a kernel of about 9 pixels (X direction) ⁇ 9 pixels (Y direction) (see “Km” and “Kn” in FIG. 15)
  • a kernel of about 9 pixels (X direction) ⁇ 9 pixels (Y direction) for example, a kernel of about 9 pixels (X direction) ⁇ 9 pixels (Y direction) (see “Km” and “Kn” in FIG. 15)
  • It is ringing whether or not at least a part of the pixel data of the peripheral pixels arranged around the pixel data is saturated pixel data (saturated pixel data) or pixel data having a pixel value larger than a threshold value.
  • the determination unit 38 determines.
  • the size of the kernel is not particularly limited, but the size of the restoration filter (restoration filter in real space) used for the point image restoration processing (“N tap” of “real space filter” in FIG. 4 and It is desirable that the kernel size is set to be equal to or smaller than the size of the real space filter used for the point image restoration process.
  • the ringing determination unit 38 determines whether the pixel of interest In the image restoration process, it is determined that the possibility of ringing is high. On the other hand, when it is determined that the pixel data in the kernel does not include “saturated pixel data or pixel data having a pixel value larger than the threshold” (see “Km” in FIG. 12), the ringing determination unit 38 In the point image restoration processing of the pixel, it is determined that the possibility of ringing is not high (low).
  • the “ringing occurrence possibility determination result” obtained for each pixel data of the original image data in this way is sent from the ringing determination unit 38 to the restoration processing determination unit 39 as ringing determination data.
  • the restoration processing determination unit (processing control unit) 39 controls the point image restoration processing for each pixel data constituting the original image data. That is, the restoration processing determination unit 39 cooperates with the point image restoration processing unit 36 based on the ringing determination data, and executes / does not execute the point image restoration processing for each pixel data while changing the target pixel in the original image data. Is done. That is, point image restoration processing is performed on “pixel data determined that ringing is not likely (low)”, while “pixel data determined that ringing is highly likely”. On the other hand, the restoration processing determination unit 39 controls the point image restoration processing unit 36 so that the point image restoration processing is not performed.
  • FIG. 16 is a diagram illustrating an example of a point image restoration processing flow according to the second embodiment.
  • FIG. 16 shows an example in which the presence / absence of the point image restoration process (possibility of ringing) is determined based on the presence / absence of saturated pixel data.
  • the original image data is analyzed, and image analysis data (image information) indicating whether the saturated pixel data is included in the original image data is acquired by the image analysis unit 37 (S11 in FIG. 16). Is sent to the ringing determination unit 38. Then, for each pixel data constituting the original image data, the “ringing determination unit 38 determines whether or not there is a high possibility of ringing in the recovered image data due to the point image restoration process”. It is sent to the determination unit 39.
  • the restoration processing determination unit 39 determines whether or not the possibility of occurrence of ringing is high by the point image restoration processing for the I-th pixel (target pixel) (S14).
  • the possibility of ringing is not high (low) (N in S14)
  • the restoration process determination unit 39 determines not to perform the point image restoration process for the I-th pixel (S16).
  • the point image restoration process is executed for all the pixels constituting the original image data. Presence or absence is determined. Therefore, based on this determination result, the point image restoration process by the point image restoration processing unit 36 is executed / not executed for each pixel data of the original image data.
  • point image restoration processing is performed on pixels (pixel data) that can be expected to improve image quality by applying point image restoration processing, and side effects such as ringing are conspicuous.
  • Point image restoration processing is not performed on such pixels (pixel data). In this way, whether or not the point image restoration process is performed in units of pixels is switched, and the point image restoration process can be performed only on pixels (pixel data) that can be expected to improve image quality by the point image restoration process. Image quality can be improved.
  • pixels that are subjected to point image restoration processing and “pixels that are not subjected to point image restoration processing” are mixed in one restoration image (recovery image data). Even in the case where “restored pixels” and “non-point-restored pixels” coexist in the restored image, the restoration reproducibility between both pixels is sufficiently balanced on the user's vision. It has been confirmed by experiments by the present inventors that the image quality is good as a whole.
  • the restoration filter used in the point image restoration process is switched / selected based on at least one of image analysis data and image acquisition condition data.
  • the restoration filter is switched in units of images (original image data) based on information (image analysis data) whether or not the original image data includes saturated pixels.
  • FIG. 17 is a diagram illustrating an example of an image processing block according to the third embodiment.
  • the image processing unit 35 (see FIG. 2) of the present embodiment includes an image analysis unit 37, a ringing determination unit 38, a filter selection unit (processing control unit) 55, and a point image restoration processing unit 36.
  • the image analysis unit 37 and the ringing determination unit 38 are the same as those in the above-described embodiment. That is, the image analysis unit 37 analyzes the original image data to obtain image analysis data, and the ringing determination unit 38 determines the possibility of ringing. In this example, whether or not saturated pixels are included in the original image data is analyzed by the image analysis unit 37, and the possibility of occurrence of ringing is determined for each original image data in units of images by the ringing determination unit 38.
  • the filter selection unit 55 determines a restoration filter to be used in the point image restoration process of the point image restoration processing unit 36 based on the determination result (ringing determination data) of the ringing determination unit 38. That is, a normal restoration filter is selected by the filter selection unit 55 for an image (original image data) determined that the possibility of ringing is not high (low). On the other hand, for an image (original image data) determined to have a high possibility of ringing, it is not a normal restoration filter, but a restoration filter that suppresses the occurrence of ringing / does not emphasize ringing (ringing countermeasure restoration filter). Is selected by the filter selection unit 55.
  • FIGS. 18A and 18B are graphs illustrating the “spatial frequency-amplitude” relationship of the restoration filter.
  • FIG. 18A shows an example of characteristics of a filter (filter A) used in normal point image restoration processing
  • FIG. 18B shows an example of characteristics of a ringing countermeasure restoration filter (filter B).
  • filter A a filter used in normal point image restoration processing
  • filter B a ringing countermeasure restoration filter
  • FIGS. 18A and 18B one-dimensional frequency characteristics are illustrated for easy understanding.
  • the vertical axis of each filter shown in FIGS. 18A and 18B represents the response (amplitude)
  • the horizontal axis represents the frequency
  • the horizontal axis is based on a numerical value normalized by the sampling frequency.
  • the filter selection unit 55 for an image (original image data) determined that the possibility of ringing is not high (low), “response in a high frequency range ( The “normal restoration filter whose amplitude) changes relatively steeply” is selected.
  • the filter selection unit 55 applies an “frequency band where ringing is conspicuous (here, assumed to be a high frequency side) as shown in FIG. 18B for an image (original image data) determined to have a high possibility of ringing. ) Is selected as a countermeasure against ringing that has a small response (amplitude) component and changes relatively slowly.
  • the filter selection unit 55 holds information on the restoration filter stored in the restoration filter storage unit 57, and selects an optimum restoration filter among the restoration filters stored in the restoration filter storage unit 57 based on the ringing determination data.
  • the restoration filter shown in FIGS. 18A and 18B is merely an example, and the filter selection unit 55 can select an arbitrary restoration filter according to the purpose.
  • a plurality of types of correction filters used for contour correction may be used as the basis filters, and a restoration filter configured by a linear sum of these basis filters may be selected as a restoration filter for countermeasures against ringing.
  • the point image restoration processing unit 36 calculates the restored image data by applying the restoration filter storage unit 57 holding a plurality of restoration filters (filter coefficient group) and the restoration filter read from the restoration filter storage unit 57 to the original image data. And an arithmetic processing unit 56.
  • the arithmetic processing unit 56 receives the original image data and the filter selection data from the filter selection unit 55.
  • the arithmetic processing unit 56 reads the restoration filter corresponding to the input filter selection data from the restoration filter storage unit 57 and applies it to the input original image data.
  • FIG. 19 is a diagram showing a point image restoration processing flow by the image processing block shown in FIG.
  • the original image data is analyzed by the image analysis unit 37 to check whether or not the original image data includes saturated pixels (S21 in FIG. 19). Then, the ringing determination unit 38 determines that there is a high possibility of ringing occurring in the recovered image data when the original image data includes saturated pixels, and the recovered image data when the original image data does not include saturated pixels. Therefore, it is determined that the possibility of ringing is not high (low).
  • a normal restoration filter (see FIG. 18A) is selected by the filter selection unit 55, The point image restoration processing unit 36 performs point image restoration processing using the normal restoration filter on the original image data (S23).
  • the filter selection unit 55 selects a ringing countermeasure restoration filter (see FIG. 18B), and the point image restoration process is performed.
  • the point image restoration process using the ringing countermeasure restoration filter is performed on the original image data in the unit 36 (S24).
  • the characteristics of the restoration filter used for the point image restoration process may be changed depending on whether or not saturated pixels are included in the original image data. For example, if the original image data does not contain saturated pixels, a normal restoration filter may be used, and if the original image data contains saturation pixels, a restoration filter with a reduced frequency band component in which ringing is noticeable may be used. Is possible. In this way, the presence or absence of saturated pixels in the image (original image data) is checked, and the characteristics of the restoration filter used in the point image restoration process are changed as appropriate, so that the occurrence and enhancement of ringing in the restored image data is effective. Can be prevented.
  • the restoration filter is selected for each “image (original image data)” based on the “image analysis data” based on the “image analysis data”
  • the present invention is not limited to this.
  • the possibility of ringing may be determined based on “image acquisition condition data” (see FIG. 13), or “image analysis data and image The possibility of ringing may be determined based on “image information including at least one of the acquisition condition data” (see FIG. 14).
  • the restoration filter is selected for each “pixel (pixel data)” / “each divided region” of the image (original image data). An image restoration process may be performed.
  • which of the original image data before gradation correction (gamma correction processing) and the original image data after gradation correction is subjected to the point image restoration processing depends on the image analysis data and the image acquisition condition data. Are determined based on at least one of them.
  • FIG. 20 is a diagram illustrating an example of an image processing block according to the fourth embodiment.
  • the processing system shown in FIG. 7B that performs point image restoration processing after gamma correction processing and the processing shown in FIG. 7C that performs point image restoration processing before gamma correction processing.
  • An optimum processing system among the systems is substantially selected based on the possibility of ringing.
  • the offset correction process 41, the WB correction process 42, and the demosaic process 43 are the same as those in FIGS. 7B and 7C described above. Part) 39 is provided.
  • the restoration processing determination unit 39 of this example controls the point image restoration processing and gradation correction based on the determination result (ringing determination data) of the ringing determination unit 38, and the original image data before gradation correction and after gradation correction. Which of the original image data is to be restored is determined. That is, based on the ringing determination data from the ringing determination unit 38, the restoration process determination unit 39 reads “a point image restoration process 46 a after the“ gamma correction process (gradation correction unit) 44 a that performs gradation correction of original image data ”. "Processing system in which the point image restoration process 46b is performed in the previous stage of the gamma correction process 44b" is selected. Regardless of which processing system is selected, the image data (RGB color data) that has undergone the “gamma correction process” and the “point image restoration process” is processed by the luminance / color difference conversion process 45 in the subsequent stage. The conversion process is received.
  • FIG. 21 is a diagram showing a point image restoration processing flow by the image processing block shown in FIG.
  • the original image data is analyzed by the image analysis unit 37 to check whether or not the original image data includes saturated pixels (S41 in FIG. 21).
  • the ringing determination unit 38 determines that there is a high possibility that ringing will occur in the recovered image data when the original image data includes saturated pixels, and the recovered image data when the original image data does not include saturated pixels. It is determined that the possibility of occurrence of ringing is not high (low).
  • the restoration processing determination unit 39 When it is determined that the possibility of ringing is not high (low) (for example, when there is no saturated pixel in the original image data) (N in S42), the restoration processing determination unit 39 performs RGB color data ( Demosaic data) is sent to “a processing system in which the point image restoration process 46b is performed in the previous stage of the gamma correction process 44b” (S43). On the other hand, when it is determined that there is a high possibility of ringing due to the point image restoration process (for example, when there is a saturated pixel in the original image data) (Y in S42), the restoration process judgment unit 39 performs RGB color data. (Demosaic data) is sent to “a processing system in which the point image restoration process 46a is performed in the subsequent stage of the gamma correction process 44a” (S44).
  • both the processing system that performs point image restoration processing before gamma correction processing and the processing system that performs point image restoration processing after gamma correction processing are image processing units. 35 may be used depending on the situation (depending on the occurrence of ringing).
  • high-accuracy correction point image restoration processing
  • a processing system with excellent toughness for a certain image it is possible to realize both the correction effect and the side effect suppression at a high level.
  • processing systems having different processing orders of the gamma correction process and the point image restoration process are selected based on the ringing determination data, but the processing system is selected according to the restoration component by the point image restoration process. You may do it.
  • FIG. 22 is a view showing a modification of the image processing block according to the fourth embodiment.
  • the image processing unit 35 includes a restoration processing information acquisition unit 86.
  • the restoration processing information acquisition unit 86 restores the amplitude component and the phase component of the original image data, whether the point image restoration processing 46a, 46b is a processing for restoring the amplitude component of the original image data to obtain the restored image data. Then, restoration process information about whether the process is to obtain restored image data is acquired.
  • the restoration processing determination unit (processing control unit) 39 based on the restoration processing information acquired by the restoration processing information acquisition unit 86 in addition to the determination result of the ringing determination unit 38, the original image before the gamma correction processing (tone correction) It is determined which of the data and the original image data after the gamma correction process is to be subjected to the point image restoration process. For example, when the restoration processing information indicates that “the point image restoration processing 46a and 46b is processing for obtaining restored image data by restoring only the amplitude component of the original image data”, “the point processing is performed after the gamma correction processing 44a.
  • the restoration processing determination unit 39 may control the image processing so that the RGB color data (demosaic data) is sent to the “processing system in which the image restoration processing 46a is performed”. Further, when the restoration processing information indicates that “the point image restoration processing 46a and 46b is processing for restoring the amplitude component and the phase component of the original image data to obtain the restored image data”, “the previous stage of the gamma correction processing 44b”. The restoration processing determination unit 39 may control the image processing so that the RGB color data (demosaic data) is sent to the “processing system in which the point image restoration processing 46b is performed”.
  • point image restoration processing 46a, 46b for obtaining restored image data by restoring only the amplitude component of the original image data that is, “point image restoration processing without phase component restoration” is performed.
  • point image restoration processing 46a, 46b for obtaining restored image data by restoring only the amplitude component of the original image data that is, “point image restoration processing without phase component restoration” is performed.
  • the order of the gamma correction process and the point image restoration process may be controlled based on “image acquisition condition data” (see FIG. 13).
  • the order of the gamma correction processing and the point image restoration processing may be controlled based on “image information including at least one of image analysis data and image acquisition condition data” (see FIG. 14).
  • which of the color data (RGB data) and the luminance data (Y) is subjected to the point image restoration process is determined based on at least one of the image analysis data and the image acquisition condition data. Is done.
  • FIG. 23 is a diagram illustrating an example of an image processing block according to the fifth embodiment.
  • the processing system shown in FIG. 7A that performs point image restoration processing after gamma correction processing
  • the processing system shown in FIG. 7B that performs point image restoration processing after gamma correction processing.
  • the optimum processing system is substantially selected based on the possibility of ringing.
  • a restoration processing determination unit (processing control unit) 39 is provided.
  • the restoration processing determination unit 39 of this example determines which of the luminance data and the color data of the original image data is to be restored based on the determination result (ringing determination data) of the ringing determination unit 38.
  • the point image restoration processing 46a and 46b performs point image restoration processing on the data determined by the restoration processing determination unit 39 among the luminance data and color data of the original image data. That is, the restoration processing determination unit 39 is based on the ringing determination data from the ringing determination unit 38, and “a processing system in which the point image restoration processing 46a is performed in the subsequent stage of the luminance / color difference conversion processing 45a” and the “point image restoration processing 46b”. One of the “processing system in which the luminance / color difference conversion processing 45b is performed in the subsequent stage” is selected.
  • the original image data to be subjected to the point image restoration process includes luminance data (Y), and the point image restoration processing unit 36 performs a point image restoration process 46a on the luminance data of the original image data.
  • the original image data to be subjected to the point image restoration process includes color data (RGB data), and the point image The restoration processing unit 36 performs point image restoration processing 46b on the color data of the original image data.
  • the offset correction process 41, the WB correction process 42, the demosaic process 43, and the gamma correction process 44 are performed before the point image restoration process and the luminance / color difference conversion process.
  • the point image restoration processes 46a and 46b are performed on the image data after the gamma correction process (gradation correction process).
  • FIG. 24 is a diagram showing a point image restoration processing flow by the image processing block shown in FIG.
  • the original image data is analyzed by the image analysis unit 37 to check whether or not the original image data includes saturated pixels (S51 in FIG. 24). Then, the ringing determination unit 38 determines that “ringing is likely to occur in the recovered image data” when the original image data includes saturated pixels, and “when the original image data does not include saturated pixels” It is determined that the possibility of ringing occurring in the recovered image data is not high (low).
  • the restoration process judgment unit 39 When it is determined that the possibility of ringing is not high (low) due to the point image restoration process (for example, when there is no saturated pixel in the original image data) (N in S52), the restoration process judgment unit 39 The RGB color data (demosaic data) is sent to “a processing system in which the luminance / color difference conversion processing 45b is performed in the subsequent stage of the point image restoration processing 46b”, and the point image restoration is performed on the color data (RGB data) of the original image data. Processing is performed (S53). On the other hand, when it is determined that there is a high possibility of ringing due to the point image restoration process (for example, when there is a saturated pixel in the original image data) (Y in S42), the restoration process judgment unit 39 performs RGB color data.
  • (Demosaic data) is sent to “a processing system in which the point image restoration process 46a is performed at a later stage of the luminance / color difference conversion process 45a”, and the point image restoration process is performed on the luminance data (Y) of the original image data ( S54).
  • the order of luminance / color difference conversion processing and point image restoration processing is controlled for each image (original image data) based on “image analysis data”
  • image analysis data original image data
  • the order of luminance / color difference conversion processing and point image restoration processing may be controlled based on “image acquisition condition data” (see FIG. 13).
  • image information including at least one of image analysis data and image acquisition condition data see FIG. 14).
  • the above-described digital camera 10 is only an example, and the present invention can be applied to other configurations.
  • Each functional configuration can be appropriately realized by arbitrary hardware, software, or a combination of both. Therefore, for example, a program that causes a computer to execute an image processing method (image processing procedure) in each of the above-described apparatuses and processing units (camera body controller 28, device control unit 34, image processing unit 35, point image restoration processing unit 36, etc.)
  • the present invention can also be applied to a computer-readable recording medium that records such a program, or a computer that can install such a program.
  • the original subject image is recovered by correcting and correcting point spread (point image blur) according to specific shooting conditions (for example, aperture value, F value, focal length, lens type, etc.).
  • point spread point image blur
  • specific shooting conditions for example, aperture value, F value, focal length, lens type, etc.
  • the image restoration process to which the present invention can be applied is not limited to the restoration process in the above-described embodiment.
  • the present invention also applies to restoration processing for image data captured and acquired by an optical system (such as a photographing lens) having an expanded depth of field (focal depth) (EDoF: Extended Depth of Field (Focus)).
  • EDoF Extended Depth of Field
  • High-resolution image data in a wide range of focus by performing restoration processing on the image data of a blurred image captured and acquired with the depth of field (depth of focus) expanded by the EDoF optical system Can be restored.
  • it is a restoration filter based on the point spread function (PSF, OTF, MTF, PTF, etc.) of the EDoF optical system, and good image restoration is possible within the range of the expanded depth of field (depth of focus).
  • a restoration process using a restoration filter having a filter coefficient set so as to be performed is performed.
  • restoration processing is performed on a luminance signal (Y data) obtained from image data (RGB data) after demosaic processing
  • Y data luminance signal
  • RGB data image data
  • restoration processing may be performed on “image data before demosaic processing (mosaic image data)” or “image data after demosaic processing and before luminance signal conversion processing (demosaic image data)”.
  • FIG. 25 is a block diagram illustrating an embodiment of the imaging module 101 including the EDoF optical system.
  • the imaging module (digital camera or the like) 101 of this example includes an EDoF optical system (lens unit; optical system) 110, an imaging element 112, an AD conversion unit 114, and a restoration processing block (image processing unit) 120.
  • FIG. 26 is a diagram illustrating an example of the EDoF optical system 110.
  • the EDoF optical system 110 of this example includes a photographic lens 110A having a fixed focal point and an optical filter 111 disposed at the pupil position.
  • the optical filter 111 modulates the phase, and converts the EDoF optical system 110 (the photographing lens 110A) to EDoF so that an enlarged depth of field (depth of focus) (EDoF) is obtained.
  • the photographing lens 110A and the optical filter 111 constitute a lens unit that modulates the phase and expands the depth of field.
  • the EDoF optical system 110 includes other components as necessary.
  • a diaphragm (not shown) is disposed in the vicinity of the optical filter 111.
  • the optical filter 111 may be one sheet or a combination of a plurality of sheets.
  • the optical filter 111 is merely an example of an optical phase modulation unit, and the EDoF conversion of the EDoF optical system 110 (the photographing lens 110A) may be realized by other units.
  • the EDoF optical system 110 may be realized as EDoF by the photographing lens 110A designed to have a function equivalent to that of the optical filter 111 of this example.
  • the EDoF conversion of the EDoF optical system 110 can be realized by various means for changing the wavefront of the image formed on the light receiving surface of the image sensor 112.
  • an optical element whose thickness changes “an optical element whose refractive index changes (refractive index distributed wavefront modulation lens, etc.)”, “an optical element whose thickness and refractive index change due to coding on the lens surface (wavefront) Modulation hybrid lens, optical element formed as a phase plane on the lens surface, etc.) ”and“ liquid crystal element capable of modulating light phase distribution (liquid crystal spatial phase modulation element, etc.) ”into EDoF optical system 110 of EDoF It can be adopted as a means.
  • the present invention can also be applied to a case that can be formed by the photographic lens 110A itself without using a modulation element.
  • the EDoF optical system 110 shown in FIG. 26 can be reduced in size because a focus adjustment mechanism that performs mechanical focus adjustment can be omitted, and can be suitably mounted on a mobile phone with a camera or a portable information terminal.
  • the optical image after passing through the EDoF-converted EDoF optical system 110 is formed on the image sensor 112 shown in FIG. 25, and is converted into an electrical signal here.
  • the image sensor 112 is composed of a plurality of pixels arranged in a matrix with a pattern arrangement (Bayer arrangement, G stripe R / G complete checkered pattern, X-Trans arrangement, honeycomb arrangement, etc.), and each pixel is a microlens or color filter. (RGB color filter in this example) and a photodiode are included.
  • the optical image incident on the light receiving surface of the image sensor 112 via the EDoF optical system 110 is converted into signal charges in an amount corresponding to the amount of incident light by the photodiodes arranged on the light receiving surface.
  • the R, G, and B signal charges accumulated in each photodiode are sequentially output as a voltage signal (image signal) for each pixel.
  • the AD converter 114 converts an analog R / G / B image signal output from the image sensor 112 for each pixel into a digital RGB image signal.
  • the digital image signal converted into a digital image signal by the AD conversion unit 114 is added to the restoration processing block 120.
  • the restoration processing block 120 includes, for example, 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. Including.
  • the black level adjustment unit 122 performs black level adjustment on the digital image signal output from the AD conversion unit 114.
  • a known method can be adopted for black level adjustment. For example, when attention is paid to a certain effective photoelectric conversion element, an average of dark current amount acquisition signals corresponding to each of a plurality of OB photoelectric conversion elements included in the photoelectric conversion element row including the effective photoelectric conversion element is obtained, and the effective The black level is adjusted by subtracting the average from the dark current amount acquisition signal corresponding to the photoelectric conversion element.
  • the white balance gain unit 123 performs gain adjustment according to the white balance gain of each RGB color signal included in the digital image signal in which the black level data is adjusted.
  • the gamma processing unit 124 performs gamma correction that performs gradation correction such as halftone so that the R, G, and B image signals that have undergone white balance adjustment have desired gamma characteristics.
  • the demosaic processing unit 125 performs demosaic processing on the R, G, and B image signals after the gamma correction. Specifically, the demosaic processing unit 125 performs a color interpolation process on the R, G, and B image signals, thereby generating a set of image signals (R signal, G signal) output from each light receiving pixel of the image sensor 112. , B signal). That is, before the color demosaicing process, the pixel signal from each light receiving pixel is one of the R, G, and B image signals, but after the color demosaicing process, the R, G, B signal corresponding to each light receiving pixel is displayed. A set of three pixel signals is output.
  • the RGB / YCrCb converter 126 converts the demosaic R, G, and B signals for each pixel into a luminance signal Y and color difference signals Cr and Cb, and outputs the luminance signal Y and the color difference signals Cr and Cb for each pixel. To do.
  • the Y signal restoration processing unit 127 performs restoration processing on the luminance signal Y from the RGB / YCrCb conversion unit 126 based on a restoration filter stored in advance.
  • the restoration filter corresponding to the optical filter 111 is stored in a memory (not shown) (for example, a memory provided with the Y signal restoration processing unit 127). Further, the kernel size of the deconvolution kernel is not limited to 7 ⁇ 7.
  • FIG. 27 is a diagram showing an example of a restoration processing flow by the restoration processing block 120 shown in FIG.
  • a digital image signal is added to one input of the black level adjustment unit 122 from the AD conversion unit 114, black level data is added to the other input, and the black level adjustment unit 1 ⁇ BR> Q2 is Then, the black level data is subtracted from the digital image signal, and the digital image signal obtained by subtracting the black level data is output to the white balance gain unit 123 (S61). As a result, the black level component is not included in the digital image signal, and the digital image signal indicating the black level becomes zero.
  • the image data after the black level adjustment is sequentially processed by the white balance gain unit 123 and the gamma processing unit 124 (S62 and S63).
  • the R, G, and B signals subjected to gamma correction are demosaiced by the demosaic processing unit 125 and then converted into the luminance signal Y and the chroma signals Cr and Cb by the RGB / YCrCb conversion unit 126 (S64).
  • the Y signal restoration processing unit 127 performs a restoration process in which the luminance signal Y is subjected to a deconvolution process corresponding to the phase modulation of the optical filter 111 of the EDoF optical system 110 (S65).
  • the Y signal restoration processing unit 127 stores a luminance signal (in this case, a luminance signal of 7 ⁇ 7 pixels) corresponding to a predetermined unit pixel group centered on an arbitrary pixel to be processed, and is stored in a memory or the like in advance.
  • the deconvolution process (deconvolution calculation process) is performed with the restoration filter (7 ⁇ 7 deconvolution kernel and its calculation coefficient).
  • the Y signal restoration processing unit 127 performs restoration processing for removing the image blur of the entire image by repeating the deconvolution processing for each pixel group of a predetermined unit so as to cover the entire area of the imaging surface.
  • the restoration filter is determined according to the position of the center of the pixel group to be subjected to the deconvolution process. That is, a common restoration filter is applied to adjacent pixel groups. Further, in order to simplify the restoration process, it is preferable to apply a common restoration filter to all the pixel groups.
  • the point image (optical image) of the luminance signal after passing through the EDoF optical system 110 is formed on the image sensor 112 as a large point image (blurred image).
  • a small point image (high resolution image) is restored as shown in FIG.
  • the restoration process As described above, by applying the restoration process to the luminance signal after the demosaic process, it is not necessary to have the parameters for the restoration process separately for RGB, and the restoration process can be speeded up. Further, R, G, B image signals corresponding to R, G, B pixels at the jumping positions are not combined into one unit and deconvolved, but the luminance signals of adjacent pixels are set to a predetermined unit. In summary, since the deconvolution process is performed by applying a common restoration filter to the unit, the accuracy of the restoration process is improved. Note that the color difference signals Cr and Cb are acceptable in terms of image quality even if the resolution is not increased by restoration processing due to the visual characteristics of human eyes.
  • the point image restoration processing according to each embodiment of the present invention can also be applied to the restoration processing of the EDoF system as described above, and in particular, the second to fifth embodiments and their modifications.
  • An example is suitable for an EDoF system.
  • a point image restoration processing unit 36 may be provided.
  • the point image restoration processing of the image data may be performed by a point image restoration processing unit provided in the computer 60.
  • the server 80 includes a point image restoration processing unit, for example, image data is transmitted from the digital camera 10 or the computer 60 to the server 80, and the point image restoration processing unit of the server 80 performs point image restoration on the image data. Processing may be performed, and the image data (recovered image data) after the point image restoration processing may be transmitted and provided to the transmission source.
  • the aspect to which the present invention can be applied is not limited to the digital camera 10, the computer 60, and the server 80.
  • functions other than imaging (calling) It is also applicable to mobile devices having a function, a communication function, and other computer functions.
  • Other modes to which the present invention can be applied include, for example, a mobile phone having a camera function, a smartphone, a PDA (Personal Digital Assistants), and a portable game machine.
  • a smartphone to which the present invention can be applied will be described.
  • FIG. 29 shows an appearance of a smartphone 201 that is an embodiment of the photographing apparatus of the present invention.
  • a smartphone 201 illustrated in FIG. 29 includes a flat housing 202, and a display input in which a display panel 221 as a display unit and an operation panel 222 as an input unit are integrated on one surface of the housing 202. Part 220 is provided.
  • the housing 202 includes a speaker 231, a microphone 232, an operation unit 240, and a camera unit 241. Note that the configuration of the housing 202 is not limited to this, and, for example, a configuration in which the display unit and the input unit are independent, or a configuration having a folding structure or a slide mechanism may be employed.
  • FIG. 30 is a block diagram showing a configuration of the smartphone 201 shown in FIG.
  • the main components of the smartphone include a wireless communication unit 210, a display input unit 220, a call unit 230, an operation unit 240, a camera unit 241, a storage unit 250, and an external input / output unit. 260, a GPS (Global Positioning System) receiving unit 270, a motion sensor unit 280, a power supply unit 290, and a main control unit 200.
  • a wireless communication function for performing mobile wireless communication via the base station device BS and the mobile communication network NW is provided as a main function of the smartphone 201.
  • the wireless communication unit 210 performs wireless communication with the base station apparatus BS accommodated in the mobile communication network NW according to an instruction from the main control unit 200. Using such wireless communication, transmission / reception of various file data such as audio data and image data, e-mail data, and reception of Web data, streaming data, and the like are performed.
  • the display input unit 220 displays images (still images and moving images), character information, and the like visually under the control of the main control unit 200, visually transmits information to the user, and detects a user operation on the displayed information.
  • This is a so-called touch panel, and includes a display panel 221 and an operation panel 222.
  • the display panel 221 uses an LCD (Liquid Crystal Display), an OELD (Organic Electro-Luminescence Display), or the like as a display device.
  • the operation panel 222 is a device that is placed so that an image displayed on the display surface of the display panel 221 is visible and detects one or a plurality of coordinates operated by a user's finger or stylus.
  • a detection signal generated due to the operation is output to the main control unit 200.
  • the main control unit 200 detects an operation position (coordinates) on the display panel 221 based on the received detection signal.
  • the display panel 221 and the operation panel 222 of the smartphone 201 exemplified as an embodiment of the photographing apparatus of the present invention integrally constitute a display input unit 220.
  • the arrangement 222 covers the display panel 221 completely.
  • the operation panel 222 may have a function of detecting a user operation even in an area outside the display panel 221.
  • the operation panel 222 includes a detection area (hereinafter referred to as a display area) for an overlapping portion that overlaps the display panel 221 and a detection area (hereinafter, a non-display area) for an outer edge portion that does not overlap the other display panel 221. May be included).
  • the operation panel 222 may include two sensitive regions of the outer edge portion and the other inner portion. Further, the width of the outer edge portion is appropriately designed according to the size of the housing 202 and the like. Furthermore, examples of the position detection method employed in the operation panel 222 include a matrix switch method, a resistive film method, a surface acoustic wave method, an infrared method, an electromagnetic induction method, and a capacitance method. You can also
  • the call unit 230 includes a speaker 231 and a microphone 232, converts user's voice input through the microphone 232 into voice data that can be processed by the main control unit 200, and outputs the voice data to the main control unit 200, or a wireless communication unit
  • the audio data received by 210 or the external input / output unit 260 is decoded and output from the speaker 231.
  • the speaker 231 can be mounted on the same surface as the surface on which the display input unit 220 is provided, and the microphone 232 can be mounted on the side surface of the housing 202.
  • the operation unit 240 is a hardware key using a key switch or the like, and receives an instruction from the user.
  • the operation unit 240 is mounted on the side surface of the housing 202 of the smartphone 201 and is turned on when pressed with a finger or the like, and turned off by a restoring force such as a spring when the finger is released. It is a push button type switch.
  • the storage unit 250 includes a control program and control data of the main control unit 200, application software, address data that associates the name and telephone number of a communication partner, transmitted / received e-mail data, Web data downloaded by Web browsing, The downloaded content data is stored, and streaming data and the like are temporarily stored.
  • the storage unit 250 includes an internal storage unit 251 built in the smartphone and an external storage unit 252 having a removable external memory slot.
  • Each of the internal storage unit 251 and the external storage unit 252 constituting the storage unit 250 includes a flash memory type, a hard disk type, a multimedia card micro type, a multimedia card micro type, This is realized using a storage medium such as a card type memory (for example, MicroSD (registered trademark) memory), a RAM (Random Access Memory), a ROM (Read Only Memory), or the like.
  • a card type memory for example, MicroSD (registered trademark) memory
  • RAM Random Access Memory
  • ROM Read Only Memory
  • the external input / output unit 260 serves as an interface with all external devices connected to the smartphone 201, and communicates with other external devices (for example, universal serial bus (USB), IEEE 1394, etc.) or a network.
  • external devices for example, universal serial bus (USB), IEEE 1394, etc.
  • a network for example, Internet, wireless LAN, Bluetooth (registered trademark), RFID (Radio Frequency Identification), Infrared Data Association (IrDA) (registered trademark), UWB (Ultra Wideband) (registered trademark) ZigBee) (registered trademark, etc.) for direct or indirect connection.
  • an external device connected to the smartphone 201 for example, a wired / wireless headset, a wired / wireless external charger, a wired / wireless data port, a memory card (Memory card) connected via a card socket, or a SIM (Subscriber).
  • Identity Module Card / UIM User Identity Module Card
  • external audio / video equipment connected via audio / video I / O (Input / Output) terminal
  • external audio / video equipment connected wirelessly yes / no
  • the external input / output unit can transmit data received from such an external device to each component inside the smartphone 201 and can transmit data inside the smartphone 201 to the external device.
  • the GPS receiving unit 270 receives GPS signals transmitted from the GPS satellites ST1 to STn according to instructions from the main control unit 200, executes positioning calculation processing based on the received plurality of GPS signals, A position consisting of longitude and altitude is detected.
  • the GPS receiving unit 270 can acquire position information from the wireless communication unit 210 or the external input / output unit 260 (for example, a wireless LAN), the GPS receiving unit 270 can also detect the position using the position information.
  • the motion sensor unit 280 includes, for example, a three-axis acceleration sensor, and detects the physical movement of the smartphone 201 in accordance with an instruction from the main control unit 200. By detecting the physical movement of the smartphone 201, the moving direction and acceleration of the smartphone 201 are detected. The detection result is output to the main control unit 200.
  • the power supply unit 290 supplies power stored in a battery (not shown) to each unit of the smartphone 201 in accordance with an instruction from the main control unit 200.
  • the main control unit 200 includes a microprocessor, operates according to a control program and control data stored in the storage unit 250, and controls each unit of the smartphone 201 in an integrated manner.
  • the main control unit 200 includes a mobile communication control function for controlling each unit of the communication system and an application processing function in order to perform voice communication and data communication through the wireless communication unit 210.
  • the application processing function is realized by the main control unit 200 operating according to the application software stored in the storage unit 250.
  • Application processing functions include, for example, an infrared communication function for controlling external input / output unit 260 to perform data communication with an opposite device, an e-mail function for sending and receiving e-mails, and a web browsing function for browsing web pages. .
  • the main control unit 200 also has an image processing function such as displaying video on the display input unit 220 based on image data (still image or moving image data) such as received data or downloaded streaming data.
  • the image processing function refers to a function in which the main control unit 200 decodes the image data, performs image processing on the decoding result, and displays an image on the display input unit 220.
  • the main control unit 200 executes display control for the display panel 221 and operation detection control for detecting a user operation through the operation unit 240 and the operation panel 222.
  • the main control unit 200 By executing the display control, the main control unit 200 displays an icon for starting application software, a software key such as a scroll bar, or a window for creating an e-mail.
  • a software key such as a scroll bar, or a window for creating an e-mail.
  • the scroll bar refers to a software key for accepting an instruction to move a display portion of an image such as a large image that cannot fit in the display area of the display panel 221.
  • the main control unit 200 detects a user operation through the operation unit 240 or receives an operation on the icon or an input of a character string in the input field of the window through the operation panel 222. Or a display image scroll request through a scroll bar.
  • the main control unit 200 causes the operation position with respect to the operation panel 222 to overlap with the display panel 221 (display area) or other outer edge part (non-display area) that does not overlap with the display panel 221.
  • a touch panel control function for controlling the sensitive area of the operation panel 222 and the display position of the software key.
  • the main control unit 200 can also detect a gesture operation on the operation panel 222 and execute a preset function according to the detected gesture operation.
  • Gesture operation is not a conventional simple touch operation, but an operation that draws a trajectory with a finger or the like, designates a plurality of positions at the same time, or combines these to draw a trajectory for at least one of a plurality of positions. means.
  • the camera unit 241 is a digital camera that performs electronic photography using an imaging element such as a CMOS (Complementary Metal Oxide Semiconductor) or a CCD (Charge-Coupled Device).
  • the camera unit 241 converts image data obtained by imaging into compressed image data such as JPEG (Joint Photographic Coding Experts Group) under the control of the main control unit 200, and records the data in the storage unit 250.
  • the data can be output through the output unit 260 and the wireless communication unit 210.
  • the camera unit 241 is mounted on the same surface as the display input unit 220.
  • the mounting position of the camera unit 241 is not limited to this, and the camera unit 241 may be mounted on the back surface of the display input unit 220. Alternatively, a plurality of camera units 241 may be mounted. Note that when a plurality of camera units 241 are mounted, the camera unit 241 used for shooting can be switched to perform shooting alone, or a plurality of camera units 241 can be used for shooting simultaneously.
  • the camera unit 241 can be used for various functions of the smartphone 201.
  • an image acquired by the camera unit 241 can be displayed on the display panel 221, or the image of the camera unit 241 can be used as one of operation inputs of the operation panel 222.
  • the GPS receiving unit 270 detects the position, the position can also be detected with reference to an image from the camera unit 241.
  • the optical axis direction of the camera unit 241 of the smartphone 201 can be determined without using the triaxial acceleration sensor or in combination with the triaxial acceleration sensor. It is also possible to determine the current usage environment.
  • the image from the camera unit 241 can be used in the application software.
  • the position information acquired by the GPS receiving unit 270 to the image data of the still image or the moving image, the voice information acquired by the microphone 232 (the text information may be converted into voice information by the main control unit or the like), Posture information and the like acquired by the motion sensor unit 280 can be added and recorded in the storage unit 250 or output through the input / output unit 260 and the wireless communication unit 210.
  • the above-described processing units related to the point image restoration process can be appropriately realized by the main control unit 200, the storage unit 250, and the like, for example.
  • DESCRIPTION OF SYMBOLS 10 ... Digital camera, 12 ... Lens unit, 14 ... Camera body, 16 ... Lens, 17 ... Aperture, 18 ... Optical system operation part, 20 ... Lens unit controller, 22 ... Lens unit input / output part, 26 ... Imaging element, 28 ... Camera body controller, 30 ... Camera body input / output unit, 32 ... Input / output interface, 34 ... Device control unit, 35 ... Image processing unit, 36 ... Point image restoration processing unit, 37 ... Image analysis unit, 38 ... Ring determination unit 39 ... Restoration processing determination unit, 40 ... Image acquisition condition acquisition unit, 41 ... Offset correction processing, 42 ... WB correction processing, 43 ... Demosaicing processing, 44 ...

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Studio Devices (AREA)

Abstract

 点像復元処理部36における復元処理が、階調補正(ガンマ補正処理)後の原画像データに対して行われる。「原画像データを解析して取得される画像解析データ及び原画像データの取得条件を示す画像取得条件データのうち少なくともいずれか一方を含む画像情報が、復元処理により回復画像データにリンギングが生じる条件に該当するか否か」がリンギング判定部38において判定される。リンギング判定部38の判定結果に基づいて画像処理がコントロールされ、例えば、回復画像データにおいてリンギングの発生可能性が低い場合には復元処理が行われ、リンギングの発生可能性が高い場合には復元処理がスキップされる。このように被写体像の特性(特徴)に応じた点像復元処理を行うことで、回復画像におけるリンギング等の画質劣化を低減することができる。

Description

画像処理装置、撮像装置、画像処理方法及びプログラム並びに記録媒体
 本発明は、点拡がり関数に基づく復元処理に係る画像処理装置、撮像装置、画像処理方法及びプログラム並びに記録媒体に関する。
 撮像光学系を介して撮影される被写体像には、撮像光学系に起因する回折や収差等の影響により、点被写体が微小な広がりを持つ所謂点拡がり現象が見られることがある。光学系の点光源に対する応答を表す関数は点拡がり関数(PSF:Point Spread Function)と呼ばれ、撮影画像の解像度劣化(ぼけ)を左右するパラメータとして知られている。
 この点拡がり現象のために画質劣化した撮影画像は、PSFに基づく点像復元処理を受けることで画質を回復することができる。点像復元処理は、レンズ(光学系)の収差等に起因する劣化特性(点像特性)を予め求めておき、その点像特性に応じた復元フィルタ(回復フィルタ)を用いる画像処理によって撮影画像の点拡がりをキャンセルする処理である。
 この点像復元処理については様々な手法が提案されており、例えば特許文献1は、一旦回復処理が行われた画像に関し、その後に回復処理の強さを変更することができる画像処理装置を開示する。この画像処理装置では、補正フィルタを撮影画像に適用することで補正画像が生成され、撮影画像と補正画像との差分画像が生成され、撮影画像、補正画像及び差分画像が保存される。
 また特許文献2は、非線形補正が行われた画像に対してブラインドデコンボリューションを用いて画像回復を行う画像処理装置を開示する。この画像処理装置は、非線形な階調補正が施された撮影画像に対して非線形な階調補正を低減する補正を行う補正部と、階調補正が低減された撮影画像に対してブラインドデコンボリューションを適用して画像回復を行う画像回復部とを備える。
 また特許文献3は、画像回復処理による画像データの過回復を低減させる画像処理装置を開示する。この画像処理装置では、ガンマ処理前にRGB形式のカラー画像データに対する画像回復処理が行われ、ガンマ補正による画素信号値の増幅及び減衰の違いが吸収され、画素信号値の変化量の最大値がガンマ補正後でも一定になるように変化量の制限値が算出される。これにより、「飽和画素によって、実際に得られる画像データの劣化状態と、画像回復フィルタが回復対象として想定している画像データの劣化状態とが、一致しない事態が発生する」、「エッジ部分でアンダーシュートやオーバーシュートといった画質劣化が発生し、特に低輝度部でのアンダーシュートが画像回復処理後のガンマ処理によって増幅される」といった技術上の課題の解決が図られている。
 また、光学系の点拡がり関数は、焦点深度が拡大された画像の復元技術でも使われている。例えば特許文献4は、画像復元を短時間かつ精度良く実行する撮像モジュールを開示する。この撮影モジュールでは、デモザイク処理(同時化処理)後の輝度信号に復元処理をかけることで、復元処理のパラメータをRGB別々に持つ必要がなくなり、復元処理が高速化する。また、近接する画素同士を所定の単位にまとめ、その単位には共通の復元処理パラメータを適用してデコンボリューション処理することで、復元処理精度の向上が図られている。
特開2011-151627号公報 特開2011-059813号公報 特開2013-020610号公報 特開2012-049759号公報
 上述の点像復元処理は、光学系による点拡がり現象(撮像光学特性)のためにぼけた画像を本来のシャープな画像に復元する処理であり、画質劣化した原画像データに対して点拡がり関数に基づく復元フィルタを適用することで画質劣化が除去された回復画像を取得する技術である。
 したがって、被写体像を忠実に再現した回復画像を得るためには、点像復元処理に使用する「復元フィルタの特性」と「原画像データの画質劣化」とが適切にマッチングしていることが必要とされる。
 すなわち、光学系によってもたらされる画質劣化が正確に把握され、そのような画質劣化を厳密に除去可能な復元フィルタが設計され、光学系による画質劣化(点拡がり現象)が原画像データに的確に反映されていれば、原理的には、「画質劣化した撮影画像」から「被写体像が忠実に再現された高画質な画像」を得ることが可能である。
 しかしながら、被写体像や撮影機器類の特性によっては、「復元フィルタの特性」と「原画像データの画質劣化」とが適切にマッチングしないことがある。
 例えば、原画像データは、撮像素子の撮像能力によって画質が変動し、被写体像が非常に明るい場合には撮像素子において画素飽和現象が生じることがある。このような画素飽和が生じた場合、その飽和画素データ(飽和画素値)がクリッピング等されるため、得られる原画像データは必ずしも被写体像を忠実に再現するものではない。
 このように、復元処理の対象となる原画像データは、光学系に由来する劣化特性の影響だけではなく撮像素子に由来する劣化特性の影響も受け、特に被写体像のコントラストが大きい場合には想定外の画質劣化を生じることがある。
 したがって、光学系の特性を十分に解析して点拡がり現象の影響を抑制可能な復元フィルタが設計されていても、被写体像によっては、「復元フィルタの特性」と「原画像データの画質劣化」とが適切にマッチングしないことがある。
 「復元フィルタの特性」と「原画像データの画質劣化」とが適切にマッチングしていない条件下で復元処理が行われると、画質劣化が十分には取り除かれず良質の回復画像が得られず、場合によっては画質劣化を助長してしまいリンギング等が回復画像において目立ってしまうこともある。
 上述の特許文献1~4では、これらの課題に対する言及は全くなされておらず、「点拡がり関数を利用した復元処理における画像タフネス性に着目し、画像の特性(特徴)に応じて処理を変化させる」観点での提案等はなされていない。
 本発明は上述の事情に鑑みてなされたものであり、被写体像の特性に応じた点像復元処理を行うことで、回復画像におけるリンギング等の画質劣化を抑える技術を提供することを目的とする。
 本発明の一態様は、光学系を用いた撮影により撮像素子から取得される原画像データを解析して取得される画像解析データ及び原画像データの取得条件を示す画像取得条件データのうち、少なくともいずれか一方を含む画像情報を取得する画像情報取得部と、原画像データに対し、光学系の点拡がり関数に基づく復元フィルタを用いた復元処理を行って回復画像データを得る復元処理部と、画像情報が、復元処理により回復画像データにリンギングが生じる条件に該当するか否か判定するリンギング判定部と、リンギング判定部の判定結果に基づいて、画像処理をコントロールする処理制御部と、を備え、復元処理は、階調補正後の原画像データに対して行われる画像処理装置に関する。
 本態様によれば、光学系の点拡がり関数に基づく復元処理が階調補正後の原画像データに対して行われ、復元処理により回復画像データにリンギングが生じる条件に画像情報が該当するか否かによって画像処理がコントロールされる。したがって、回復画像データにおけるリンギングの発生状況に応じて柔軟に画像処理をコントロールすることができ、リンギングの発生/強調を効果的に防ぐことが可能である。このように復元処理をコントロールすることで、「ユーザに提供する画像(画像データ)の解像感の向上」と「復元処理によって画像(画像データ)に生じうるリンギングの抑制」とを両立させることが可能である。
 本発明の他の態様は、光学系を用いた撮影により撮像素子から取得される原画像データを解析して取得される画像解析データ及び原画像データの取得条件を示す画像取得条件データのうち、少なくともいずれか一方を含む画像情報を取得する画像情報取得部と、原画像データに対し、光学系の点拡がり関数に基づく復元フィルタを用いた復元処理を行って回復画像データを得る復元処理部と、原画像データの階調補正を行う階調補正部と、画像情報が、復元処理により回復画像データにリンギングが生じる条件に該当するか否か判定するリンギング判定部と、リンギング判定部の判定結果に基づいて、復元処理をコントロールする処理制御部と、を備え、処理制御部は、リンギング判定部の判定結果に基づいて、階調補正前の原画像データ及び階調補正後の原画像データのうちいずれに対して復元処理を行うか決定する画像処理装置に関する。
 本態様によれば、復元処理により回復画像データにリンギングが生じる条件に画像情報が該当するか否かに応じて、階調補正前の原画像データ及び階調補正後の原画像データのうちいずれに対して復元処理を行うかが決定される。復元処理後に階調補正が行われると、階調補正によって復元処理の副作用(リンギング等)が強調される可能性がある。したがって、リンギングが生じる条件に画像情報が該当する場合、階調補正後の原画像データに対して復元処理を行うことで、そのような復元処理の副作用(リンギング等)が階調補正によって強調されてしまうということを防ぐことができる。
 望ましくは、階調補正は、対数化処理による階調補正であり、復元フィルタは、対数化処理前の画像データに対応したフィルタ係数から成る。
 本態様によれば、対数化処理後の原画像データに対し、敢えて、対数化処理前の画像データに対応したフィルタ係数から成る復元フィルタを用いて復元処理を行うことで、復元処理で発生するリンギングによる画質劣化に対するタフネス性が向上し、リンギングの影響を画像(画像データ)上で目立たせないようにすることができる。
 望ましくは、階調補正は、対数化処理による階調補正であり、復元フィルタは、対数化処理後の画像データに対応したフィルタ係数から成る。
 本態様によれば、対数化処理後の原画像データに対し、対数化処理後の画像データに対応したフィルタ係数から成る復元フィルタを用いて復元処理を行うことで、復元処理で発生するリンギングによる画質劣化に対するタフネス性が向上し、リンギングの影響を画像上で目立たないようにでき、また、復元精度を向上させることが可能である。
 望ましくは、復元処理は、原画像データの振幅成分のみを復元して回復画像データを得る処理である。
 本態様によれば、復元処理が位相成分の復元を伴わずにリンギングが発生し易い場合であっても、階調補正後の原画像データに対して復元処理が行われ、リンギングが発生する状況か否かに応じた柔軟な画像処理コントロールが可能である。
 望ましくは、復元処理は、原画像データの振幅成分及び位相成分を復元して回復画像データを得る処理である。
 本態様によれば、復元処理が位相成分の復元を伴いリンギングを低減することができる場合であっても、階調補正後の原画像データに対して復元処理が行われ、画像タフネス性(画像非破綻性)を更に向上することができ、リンギングが発生する状況か否かに応じた柔軟な画像処理コントロールが可能である。
 望ましくは、画像処理装置は、復元処理が、原画像データの振幅成分のみを復元して回復画像データを得る処理であるか、原画像データの振幅成分及び位相成分を復元して回復画像データを得る処理であるかについての復元処理情報を取得する復元処理情報取得部を更に備え、処理制御部は、リンギング判定部の判定結果に加え、復元処理情報取得部が取得する復元処理情報に基づいて、階調補正前の原画像データ及び階調補正後の原画像データのうちいずれに対して復元処理を行うか決定する。
 本態様によれば、リンギング判定部の判定結果及び復元処理情報に基づいて、階調補正前の原画像データ及び階調補正後の原画像データのうちいずれに対して復元処理を行うかが決定される。したがって、例えば位相成分の復元を伴うか否かを加味し、階調補正前の原画像データ及び階調補正後の原画像データのうちいずれに対して復元処理を行うかを決定することが可能である。
 望ましくは、画像情報取得部は、画素値が飽和した画素データ又は閾値よりも大きな画素値を有する画素データが、原画像データに含まれるか否かを示す画像解析データを含む画像情報を取得する。
 本態様によれば、画素値が飽和した画素データ又は閾値よりも大きな画素値を有する画素データが原画像データに含まれるか否かに基づいて、リンギングが生じる条件か否かが判定される。
 望ましくは、画像取得条件データは、原画像データを取得する撮影に用いられた光学系の情報を含む。
 本態様によれば、リンギングの発生に影響を及ぼしうる「光学系の情報」に基づいて、リンギングが生じる条件か否かが判定される。
 望ましくは、光学系の情報は、原画像データを取得する撮影に用いられた光学系のレンズ種類、絞り値、ズーム値のうち少なくともいずれか1つを含む。
 本態様によれば、リンギングの発生に影響を及ぼしうる「光学系のレンズ種類、絞り値、ズーム値のうち少なくともいずれか1つ」に基づき、リンギングが生じる条件か否かが判定される。
 望ましくは、処理制御部は、リンギング判定部の判定結果に基づいて、復元処理部における復元処理の実行の有無を決定する。
 本態様によれば、リンギング判定部の判定結果が「リンギングが生じる条件に画像情報が該当する」ことを示す場合には復元処理を実行しないこととすることで、リンギング等の画質劣化が生じた画像(画像データ)がユーザに提供されることを防ぐことができる。
 望ましくは、処理制御部は、リンギング判定部の判定結果に基づいて、復元処理で用いる復元フィルタを決定する。
 本態様によれば、リンギング判定部の判定結果に応じた復元フィルタを復元処理で使用することができ、「リンギングが生じる条件に画像情報が該当する」ことを示す場合にはリンギングを防いだ復元フィルタを使用することで、リンギング等の画質劣化が生じた画像(画像データ)がユーザに提供されることを防ぐことができる。
 望ましくは、画像処理装置は、原画像データの階調補正を行う階調補正部を備える。また望ましくは、処理制御部は、リンギング判定部の判定結果に基づいて、階調補正部における階調補正をコントロールする。
 本態様によれば、リンギングが生じる条件に画像情報が該当するか否かによって階調補正をコントロールすることができ、復元処理によって生じたリンギング等の副作用が階調補正によって過度に強調されることを防ぐことができる。
 望ましくは、原画像データは、輝度データを含み、復元処理部は、原画像データの輝度データに対して復元処理を行う。
 望ましくは、原画像データは、色データを含み、復元処理部は、原画像データの色データに対して復元処理を行う。
 望ましくは、処理制御部は、リンギング判定部の判定結果に基づいて、原画像データの輝度データ及び色データのうちいずれに対して復元処理を行うか決定し、復元処理部は、原画像データの輝度データ及び色データのうち処理制御部によって決定されたデータに対して復元処理を行う。
 本態様によれば、リンギングが生じる条件に画像情報が該当するか否かによって、原画像データの輝度データ及び色データのうちいずれに対して復元処理を行うかがコントロールされる。したがって、例えば、リンギングが生じる条件に画像情報が該当する場合、不要な色付き等の不具合が生じることを防ぐ観点から、原画像データの輝度データに対して復元処理が行われるようにしてもよい。また、リンギングが生じる条件に画像情報が該当しない場合、高精度な色再現性を優先させる観点から、原画像データの色データに対して復元処理が行われるようにしてもよい。
 望ましくは、光学系は、位相を変調して被写界深度を拡大させるレンズ部を有する。
 本態様によれば、いわゆるEDoF(Extended Depth of Field(Focus))光学系を介して得られる原画像データに関しても、リンギングが生じる条件に画像情報が該当するか否かによって、画像処理・復元処理をコントロールすることができる。なお、レンズ部における位相を変調させる手法(光学的位相変調手段)は特に限定されず、レンズ間に位相変調部を設けたり、レンズ自体(例えばレンズの入射面/出力面)に位相変調機能を持たせたりすることも可能である。
 望ましくは、処理制御部は、原画像データ毎に、画像処理又は復元処理をコントロールする。
 望ましくは、処理制御部は、原画像データを構成する画素データ毎に、画像処理又は復元処理をコントロールする。
 画像処理又は復元処理は、原画像データ毎にコントロールされてもよいし、画素データ毎にコントロールされてもよい。画像処理又は復元処理を原画像データ毎にコントロールする場合には処理を簡素化することが可能であり、画像処理又は復元処理を画素データ毎にコントロールする場合には画像中の必要箇所にのみ処理を適用することが可能である。
 本発明の他の態様は、光学系を用いた撮影により原画像データを出力する撮像素子と、上記の画像処理装置と、を備える撮像装置に関する。
 本発明の他の態様は、光学系を用いた撮影により撮像素子から取得される原画像データを解析して取得される画像解析データ及び原画像データの取得条件を示す画像取得条件データのうち、少なくともいずれか一方を含む画像情報を取得する画像情報取得ステップと、原画像データに対し、光学系の点拡がり関数に基づく復元フィルタを用いた復元処理を行って回復画像データを得る復元処理ステップと、画像情報が、復元処理により回復画像データにリンギングが生じる条件に該当するか否か判定するリンギング判定ステップと、を含み、リンギング判定ステップの判定結果に基づいて、画像処理がコントロールされ、復元処理は、階調補正後の原画像データに対して行われる画像処理方法に関する。
 本発明の他の態様は、光学系を用いた撮影により撮像素子から取得される原画像データを解析して取得される画像解析データ及び原画像データの取得条件を示す画像取得条件データのうち、少なくともいずれか一方を含む画像情報を取得する画像情報取得ステップと、原画像データに対し、光学系の点拡がり関数に基づく復元フィルタを用いた復元処理を行って回復画像データを得る復元処理ステップと、原画像データの階調補正を行う階調補正ステップと、画像情報が、復元処理により回復画像データにリンギングが生じる条件に該当するか否か判定するリンギング判定ステップと、を含みリンギング判定ステップの判定結果に基づいて、復元処理はコントロールされ、リンギング判定ステップの判定結果に基づいて、階調補正前の原画像データ及び階調補正後の原画像データのうちいずれに対して復元処理を行うかが決定される画像処理方法に関する。
 本発明の他の態様は、光学系を用いた撮影により撮像素子から取得される原画像データを解析して取得される画像解析データ及び原画像データの取得条件を示す画像取得条件データのうち、少なくともいずれか一方を含む画像情報を取得する手順と、原画像データに対し、光学系の点拡がり関数に基づく復元フィルタを用いた復元処理を行って回復画像データを得る手順と、画像情報が、復元処理により回復画像データにリンギングが生じる条件に該当するか否か判定する手順と、をコンピュータに実行させるためのプログラムであって、リンギングが生じる条件に画像情報が該当するか否かの判定結果に基づいて、画像処理がコントロールされ、復元処理は、階調補正後の原画像データに対して行われるプログラムに関する。
 本発明の他の態様は、光学系を用いた撮影により撮像素子から取得される原画像データを解析して取得される画像解析データ及び原画像データの取得条件を示す画像取得条件データのうち、少なくともいずれか一方を含む画像情報を取得する手順と、原画像データに対し、光学系の点拡がり関数に基づく復元フィルタを用いた復元処理を行って回復画像データを得る手順と、原画像データの階調補正を行う手順と、画像情報が、復元処理により回復画像データにリンギングが生じる条件に該当するか否か判定する手順と、をコンピュータに実行させるためのプログラムであって、リンギングが生じる条件に画像情報が該当するか否かの判定結果に基づいて、復元処理はコントロールされ、リンギングが生じる条件に画像情報が該当するか否かの判定結果に基づいて、階調補正前の原画像データ及び階調補正後の原画像データのうちいずれに対して復元処理を行うかが決定されるプログラムに関する。
 本発明の他の態様は、上述した態様のプログラムのコンピュータ読み取り可能なコードが記録された、非一時的記録媒体に関する。そのような記録媒体としては、CD(Compact Disk)、DVD(Digital Versatile Disk)、HD(Hard Disk)、SSD(Solid State Drive)、USBメモリ等の、各種の光磁気記録媒体や半導体記録媒体を用いることができる。
 本発明の一態様によれば、回復画像データにおいてリンギングが生じる条件に画像情報(画像解析データ及び/又は画像取得条件データ)が該当するか否かに基づいて、画像処理がコントロールされる。したがって、被写体像の特性に応じた復元処理を行うことができ、回復画像における画質劣化を抑えることができる。
 本発明の他の態様によれば、そのような画像情報に基づいて復元処理自体をコントロールすることができ、画像情報に応じた復元処理を行うことによって回復画像における画質劣化を効果的に取り除くことができる。
図1は、コンピュータに接続されるデジタルカメラの概略を示すブロック図である。 図2は、カメラ本体コントローラの機能構成例を示すブロック図である。 図3は、画像撮影から点像復元処理までの概略を示す図である。 図4は、点像復元処理の一例の概略を示すブロック図である。 図5は、理想的な点像復元処理(画素値の飽和無し、クリッピング無し)が行われる場合における、被写体像中のエッジ部分のコントラスト変化の一例を示す図であり、(a)は被写体像が本来有するコントラストを示し、(b)は点像復元処理前の原画像データにおけるコントラストを示し、(c)は点像復元処理後の回復画像データにおけるコントラストを示す。 図6は、実際の点像復元処理(画素値の飽和有り、クリッピング有り)における、被写体像中のエッジ部分のコントラスト変化の一例を示す図であり、(a)は被写体像が本来有するコントラストを示し、(b)は点像復元処理前の原画像データにおけるコントラストを示し、(c)は点像復元処理後の回復画像データにおけるコントラストを示す。 図7Aは、画像処理部(カメラ本体コントローラ)における各種の画像処理フローを例示するブロック図である。 図7Bは、画像処理部(カメラ本体コントローラ)における各種の画像処理フローを例示する他のブロック図である。 図7Cは、画像処理部(カメラ本体コントローラ)における各種の画像処理フローを例示する他のブロック図である。 図7Dは、画像処理部(カメラ本体コントローラ)における各種の画像処理フローを例示する他のブロック図である。 図8は、点像復元処理に対する「階調補正処理(ガンマ補正処理)」及び「色データ/輝度データ」の相関を示す図である。 図9は、点像復元処理によるオーバーシュートの発生メカニズムを説明するための図である。 図10は、ガンマ処理(対数化処理)による処理前データと処理後データとの間の関係の一例を示す図である。 図11は、第1実施形態に係る画像処理ブロックを示す図である。 図12は、図11に示す画像処理ブロックによる点像復元処理フローを示す図である。 図13は、第1実施形態の一変形例に係る画像処理ブロックを示す図である。 図14は、第1実施形態の他の変形例に係る画像処理ブロックを示す図である。 図15は、画素データ毎に点像復元処理の有無を判定する例を説明するための画像例(原画像データ)を示す図であって、カーネル(Km、Kn)内の注目画素及びその周辺画素の画像解析データ(画像情報)に基づいて判定を行う例を示す。 図16は、第2実施形態に係る点像復元処理フローの一例を示す図である。 図17は、第3実施形態に係る画像処理ブロックの一例を示す図である。 図18Aは、復元フィルタの「空間周波数-振幅」の関係を例示するグラフであり、通常の点像復元処理で用いられるフィルタ(フィルタA)の特性の一例を示す。 図18Bは、復元フィルタの「空間周波数-振幅」の関係を例示するグラフであり、リンギング対策復元フィルタ(フィルタB)の特性の一例を示す。 図19は、図17に示す画像処理ブロックによる点像復元処理フローを示す図である。 図20は、第4実施形態に係る画像処理ブロックの一例を示す図である。 図21は、図20に示す画像処理ブロックによる点像復元処理フローを示す図である。 図22は、第4実施形態に係る画像処理ブロックの一変形例を示す図である。 図23は、第5実施形態に係る画像処理ブロックの一例を示す図である。 図24は、図23に示す画像処理ブロックによる点像復元処理フローを示す図である。 図25は、EDoF光学系を備える撮像モジュールの一形態を示すブロック図である。 図26は、EDoF光学系の一例を示す図である。 図27は、図25に示す復元処理ブロックによる復元処理フローの一例を示す図である。 図28は、EDoF光学系を介して取得された画像の復元例を示す図であり、(a)は復元処理前のぼけた画像を示し、(b)は復元処理後のぼけが解消された画像(点像)を示す。 図29は、スマートフォンの外観図である。 図30は、図29に示すスマートフォンの構成を示すブロック図である。
 添付図面を参照して本発明の実施形態について説明する。以下の説明では、一例として、コンピュータ(PC:パーソナルコンピュータ)に接続可能なデジタルカメラ(撮像装置)に本発明を適用する例について説明する。
 図1は、コンピュータに接続されるデジタルカメラの概略を示すブロック図である。
 デジタルカメラ10は、交換可能なレンズユニット12と、撮像素子26を具備するカメラ本体14とを備え、レンズユニット12のレンズユニット入出力部22とカメラ本体14のカメラ本体入出力部30とを介して、レンズユニット12とカメラ本体14とは電気的に接続される。
 レンズユニット12は、レンズ16や絞り17等の光学系と、この光学系を制御する光学系操作部18とを具備し、光学系操作部18は、レンズユニット入出力部22に接続されるレンズユニットコントローラ20と、光学系を操作するアクチュエータ(図示省略)とを含む。レンズユニットコントローラ20は、レンズユニット入出力部22を介してカメラ本体14から送られてくる制御信号に基づき、アクチュエータを介して光学系を制御し、例えば、レンズ移動によるフォーカス制御やズーム制御、絞り17の絞り量制御、等を行う。
 カメラ本体14の撮像素子26は、集光用マイクロレンズ、RGB等のカラーフィルタ、及びイメージセンサ(フォトダイオード;CMOS(Complementary Metal Oxide Semiconductor)、CCD(Charge Coupled Device)等)を有し、レンズユニット12の光学系(レンズ16、絞り17等)を介して照射される被写体像の光を電気信号に変換し、画像信号(原画像データ)をカメラ本体コントローラ28に送る。
 このように、本例の撮像素子26は、光学系を用いた被写体像の撮影により原画像データを出力し、この原画像データはカメラ本体コントローラ28の画像処理装置に送信される。
 カメラ本体コントローラ28は、カメラ本体14を統括的に制御し、図2に示すようにデバイス制御部34と画像処理部(画像処理装置)35とを有する。デバイス制御部34は、例えば、撮像素子26からの画像信号(画像データ)の出力を制御したり、レンズユニット12を制御するための制御信号を生成してカメラ本体入出力部30を介してレンズユニット12(レンズユニットコントローラ20)に送信したり、入出力インターフェース32を介して接続される外部機器類(コンピュータ60等)に画像処理前後の画像データ(RAWデータ、JPEGデータ等)を送信したりする。また、デバイス制御部34は、図示しない表示部(EVF:Electronic View Finder、背面液晶表示部)等、デジタルカメラ10が具備する各種デバイス類を適宜制御する。
 一方、画像処理部35は、撮像素子26からの画像信号に対し、必要に応じた任意の画像処理を行うことができる。例えば、センサ補正処理、デモザイク(同時化)処理、画素補間処理、色補正処理(オフセット補正処理、ホワイトバランス処理、カラーマトリック処理、ガンマ変換処理、等)、RGB画像処理(シャープネス処理、トーン補正処理、露出補正処理、輪郭補正処理、等)、RGB/YCrCb変換処理及び画像圧縮処理、等の各種の画像処理が、画像処理部35において適宜行われる。加えて、本例の画像処理部35は、いわゆる点像復元処理を画像信号(原画像データ)に対して施す点像復元処理部36を含む。点像復元処理の詳細については後述する。
 図1に示すように、カメラ本体コントローラ28において画像処理された画像データは、入出力インターフェース32に接続されるコンピュータ60等に送られる。デジタルカメラ10(カメラ本体コントローラ28)からコンピュータ60等に送られる画像データのフォーマットは特に限定されず、RAW、JPEG、TIFF等の任意のフォーマットとしうる。したがってカメラ本体コントローラ28は、いわゆるExif(Exchangeable Image File Format)のように、ヘッダ情報(撮影情報(撮影日時、機種、画素数、絞り値等)等)、主画像データ及びサムネイル画像データ等の複数の関連データを相互に対応づけて1つの画像ファイルとして構成し、この画像ファイルをコンピュータ60に送信してもよい。
 コンピュータ60は、カメラ本体14の入出力インターフェース32及びコンピュータ入出力部62を介してデジタルカメラ10に接続され、カメラ本体14から送られてくる画像データ等のデータ類を受信する。コンピュータコントローラ64は、コンピュータ60を統括的に制御し、デジタルカメラ10からの画像データを画像処理したり、インターネット70等のネットワーク回線を介してコンピュータ入出力部62に接続されるサーバ80等との通信制御をしたりする。コンピュータ60はディスプレイ66を有し、コンピュータコントローラ64における処理内容等がディスプレイ66に必要に応じて表示される。ユーザは、ディスプレイ66の表示を確認しながらキーボード等の入力手段(図示省略)を操作することで、コンピュータコントローラ64に対してデータやコマンドを入力し、コンピュータ60を制御したり、コンピュータ60に接続される機器類(デジタルカメラ10、サーバ80)を制御したりすることができる。
 サーバ80は、サーバ入出力部82及びサーバコントローラ84を有する。サーバ入出力部82は、コンピュータ60等の外部機器類との送受信接続部を構成し、インターネット70等のネットワーク回線を介してコンピュータ60のコンピュータ入出力部62に接続される。サーバコントローラ84は、コンピュータ60からの制御指示信号に応じ、コンピュータコントローラ64と協働し、コンピュータコントローラ64との間で必要に応じてデータ類の送受信を行い、データ類をコンピュータ60にダウンロードしたり、演算処理を行ってその演算結果をコンピュータ60に送信したりする。
 なお、各コントローラ(レンズユニットコントローラ20、カメラ本体コントローラ28、コンピュータコントローラ64、サーバコントローラ84)は、制御処理に必要な回路類を備え、例えば演算処理回路(CPU等)やメモリ等を具備する。また、デジタルカメラ10、コンピュータ60及びサーバ80間の通信は有線であってもよいし無線であってもよい。また、コンピュータ60及びサーバ80を一体的に構成してもよく、またコンピュータ60及び/又はサーバ80が省略されてもよい。また、デジタルカメラ10にサーバ80との通信機能を持たせ、デジタルカメラ10とサーバ80との間で直接的にデータ類の送受信が行われるようにしてもよい。
 なお本発明の一実施形態に係るプログラムは、画像処理部35やコンピュータ60,あるいは後述するスマートフォン201の記憶部250に備えられた各種の光磁気記録媒体や半導体記録媒体のような非一時的記録媒体に記録して用いることができる。
 次に、撮像素子26を介して得られる被写体像の撮像データ(画像データ)の点像復元処理について説明する。
 本例では、カメラ本体14(カメラ本体コントローラ28)において点像復元処理が実施される例について説明するが、点像復元処理の全部又は一部を他のコントローラ(レンズユニットコントローラ20、コンピュータコントローラ64、サーバコントローラ84等)において実施することも可能である。
 点像復元処理は、光学系(レンズ16、絞り17等)を用いた撮影により撮像素子26から取得される原画像データに対し、光学系の点拡がり関数に基づく復元フィルタを用いた復元処理を行って回復画像データを取得する処理である。
 図3は、画像撮影から点像復元処理までの概略を示す図である。点像を被写体として撮影を行う場合、被写体像は光学系(レンズ16、絞り17等)を介して撮像素子26(イメージセンサ)により受光され、撮像素子26から原画像データDoが出力される。この原画像データDoは、光学系の特性に由来する点拡がり現象によって、本来の被写体像がぼけた状態の画像データとなる。
 このぼけ画像の原画像データDoから本来の被写体像(点像)を復元するため、原画像データDoに対して復元フィルタFを用いた点像復元処理P10を行うことで、本来の被写体像(点像)により近い像(回復画像)を表す回復画像データDrが得られる。
 点像復元処理P10で用いられる復元フィルタFは、原画像データDo取得時の撮影条件に応じた光学系の点像情報(点拡がり関数)から、復元フィルタ算出アルゴリズムP20によって得られる。光学系の点像情報(点拡がり関数)は、レンズ16の種類だけではなく、絞り量、焦点距離、ズーム量、像高、記録画素数、画素ピッチ等の各種の撮影条件によって変動しうるため、復元フィルタFを算出する際には、これらの撮影条件が取得される。
 図4は、点像復元処理の一例の概略を示すブロック図である。
 上述のように点像復元処理P10は、復元フィルタFを用いたフィルタリング処理によって原画像データDoから回復画像データDrを作成する処理であり、例えばN×M(N及びMは2以上の整数)のタップによって構成される実空間上の復元フィルタFが処理対象の画像データに適用される。これにより、各タップに割り当てられるフィルタ係数と対応の画素データ(原画像データDoの処理対象画素データ及び隣接画素データ)とを加重平均演算(デコンボリューション演算)することで、点像復元処理後の画素データ(回復画像データDr)を算出することができる。この復元フィルタFを用いた加重平均処理を、対象画素を順番に代え、画像データを構成する全画素データに適用することで、点像復元処理を行うことができる。
 なお、N×Mのタップによって構成される実空間上の復元フィルタは、周波数空間上の復元フィルタを逆フーリエ変換することによって導出可能である。したがって、実空間上の復元フィルタは、基礎となる周波数空間上の復元フィルタを特定し、実空間上の復元フィルタの構成タップ数を指定することによって、適宜算出可能である。
 次に、点像復元処理によって生じうる画質上の弊害について説明する。
 図5及び図6は、被写体像中のエッジ部分(画像境界部分)の画質変化の一例を示す図であり、図5は理想的な点像復元処理(画素値の飽和無し、クリッピング無し)が行われる場合を示し、図6は実際の点像復元処理(画素値の飽和有り、クリッピング有り)の一例を示す。
 図5の(a)及び図6の(a)は、被写体像が本来有するコントラストを示し、図5の(b)及び図6の(b)は点像復元処理前の原画像データDoにおけるコントラストを示し、図5の(c)及び図6の(c)は点像復元処理後の回復画像データDrにおけるコントラストを示す。なお、図5及び図6の横方向(X方向)は被写体像中における位置(1次元位置)を示し、縦方向(Y方向)はコントラストの強弱を示す。
 被写体像中における「コントラストの段差を持つエッジ部分」(図5の(a)、図6の(a)参照)は、上述したように、撮影時の光学系の点拡がり現象によって撮影画像(原画像データDo)では画像ぼけが生じ(図5の(b)、図6の(b)参照)、点像復元処理によって回復画像データDrが得られる(図5の(c)、図6の(c)参照)。
 この点像復元処理において、「実際の画像劣化特性(画像ぼけ特性)」と「使用する復元フィルタの基礎となる点拡がり関数(PSF等)」とがマッチングしている場合、画像が適切に復元され、エッジ部分等が適切に復元された回復画像データDrを得ることができる(図5参照)。
 しかしながら、画素値が飽和した画素(飽和画素)を含む原画像データでは、飽和画素部分でクリップされたような状態となる(図6参照)。とりわけ飽和画素を含むエッジ部分の原画像データは、ステップ信号に近い波形を有するため(図6の(b)参照)、コントラスト変化が比較的はっきりしており、結果的には劣化(画像ぼけ)が比較的小さいデータとなる。このように、飽和画素を含む原画像データでは、画素データのクリッピングにより、本来の画像データ(被写体像)からのズレが生じてしまう。このようなデータズレが生じている原画像データに対して、通常の復元フィルタを用いた復元処理を行うと、リンギングが生じやすく、発生するリンギングも複雑化しやすい(図6の(c)参照)。また、高周波成分が増え、折り返しノイズが強調されやすい。
 そこで、「画像情報が、復元処理により回復画像データにリンギングが生じる条件に該当するか否か」によって、画像処理・復元処理をコントロールすることで、回復画像データにおけるリンギングを効果的に抑えることが可能である。
 なお、点像復元処理を画像処理フローの一部として実際に設計する場合、様々なバリエーションの画像処理フローが想定しうる。
 図7A~7Dは、画像処理部35(カメラ本体コントローラ28)における各種の画像処理フローを例示するブロック図である。図7Aは、ガンマ補正処理(階調補正処理)後に輝度データ(Y)に対して点像復元処理を行う例を示し、図7Bは、ガンマ補正処理後にRGBの色データに対して点像復元処理を行う例を示す。また図7Cは、ガンマ補正処理前にRGB色データに対して点像復元処理を行う例を示し、図7Dは、ガンマ補正処理前に輝度データ(Y)に対して点像復元処理を行う例を示す。
 図7Aの例において、画像処理部35は、モザイクデータ(RAW画像データ;原画像データ)が入力されると、「画像の明るさを調整するオフセット補正処理41」、「画像のホワイトバランス(WB)を調整するWB補正処理42」、「画素補間処理によって全画素に関してRGB各色の色データを取得するデモザイク処理43」、「対数化処理による階調補正を行って画素データの階調を調整するガンマ補正処理(階調補正ステップ;階調補正部)44」、「RGB色データから輝度データ(Y)及び色差データ(Cb/Cr)を算出する輝度・色差変換処理45」及び「画像データ(輝度データ)に対し、撮影に用いられた光学系の点拡がり関数に基づく復元フィルタを用いた点像復元処理を行う点像復元処理(復元処理ステップ)46」を順次行う。なお、色データは、モザイクデータ(原画像データ)を撮影取得した撮像素子26が有するカラーフィルタの色種類に対応し、輝度データ及び色差データは、公知の算出式によって色データから算出可能である。
 一方、図7Bの例では、図7Aの画像処理例における輝度・色差変換処理45と点像復元処理46との処理順序が入れ替わっている。したがって、図7Aの例ではガンマ補正処理(階調補正)44後の原画像データの輝度データに対して点像復元処理46が行われるが、図7Bの例では、ガンマ補正処理(階調補正)44された原画像データのRGB色データに対する点像復元処理46が点像復元処理部36で行われ、その後に輝度データ及び色差データが算出される。
 また、図7Cの例では、図7Bの画像処理例におけるガンマ補正処理44と点像復元処理46との処理順序が入れ替わっている。したがって、図7Bに示す例ではガンマ補正処理44後に点像復元処理46が行われるが、図7Cに示す例ではガンマ補正処理44前に点像復元処理46が行われる。
 また図7Dの例では、オフセット補正処理41、WB補正処理42及びデモザイク処理43は図7A~7Dの例と同じあるが、デモザイク処理43後に輝度・色差変換処理45aが行われ、輝度データに対して点像復元処理46が行われた後に輝度データ及び色差データからRGB色データを算出する色信号変換処理47が行われる。そして、このRGB色データに対してガンマ補正処理44及び輝度・色差変換処理45bが順次行われることで、輝度データ及び色差データが取得される。
 なお、図7A~7Dの各々は処理フローの一例を示すものに過ぎず、他の処理が必要に応じて任意の段階で行われてもよいし、図7A~7Dに示す処理の一部が省略されてもよい。
 このように一連の画像処理フローには様々なバリエーションがあり、例えば「点像復元処理の順番として階調補正(ガンマ補正処理)の前後のうちどちらが好ましいか」、「RGB等の色データに対する点像復元処理とした方が好ましいか、輝度データ(Y)に対する点像復元処理とした方が好ましいか」等の観点で、各種の画像処理フロー間で点像復元処理の効果にどのような違いが見られるかについての考察は、従来なされていなかった。
 本件発明者は、各種の画像処理フロー間における点像復元処理効果の相違に着目して鋭意研究を重ねた結果、「階調補正処理(ガンマ補正処理)、リンギング現象、点像復元処理、等」の相関について新たな知見を得た。
 図8は、点像復元処理に対する「階調補正処理(ガンマ補正処理)」及び「色データ/輝度データ」の相関を示す図である。
 図8の「真数(階調補正前)」が示す欄は、階調補正処理(ガンマ補正処理)前の画像データ(真数画像データ)に対して点像復元処理を行った場合の画像特性を示し(図7C及び7D参照)、「対数(階調補正後)」が示す欄は、階調補正処理(ガンマ補正処理)後の画像データ(対数画像データ)に対して点像復元処理を行った場合の画像特性を示す(図7A及び7B参照)。また、図8の「色データ(RGB)」が示す欄は、色データ(RGBデータ)に対して点像復元処理を行った場合の画像特性を示し(図7B及び7C参照)、「輝度データ(Y)」が示す欄は、輝度データに対して点像復元処理を行った場合の画像特性を示す(図7A及び7D参照)。
 真数の画像データと対数の画像データとを比較すると、理想系においては、真数画像データ(階調補正前画像データ)の点像復元の方が、対数画像データ(階調補正後画像データ)の点像復元よりも、画像復元性に優れている(図8の「理想系における復元性」参照)。
 ここで言う理想系とは、「点像復元処理で使用する復元フィルタのフィルタタップ数が十分に大きく」、「計算ビット数が十分に大きく」、「光学系の実際のぼけ特性と、画像処理部35が保持する光学系ぼけ特性データとが一致している」、「画素値が飽和した飽和画素データを入力画像データ(原画像データ)が含まない」など、適切な点像復元処理を行うための条件が十分に満たされている理想的な系を指す。
 一方、理想系からずれた実際の処理系では、対数画像データ(階調補正後画像データ)の点像復元の方が、真数画像データ(階調補正前画像データ)の点像復元よりも、点像復元画像(回復画像)におけるリンギングなどの副作用の出現程度が小さいことを、本件発明者は複数回の実験により確認した(図8の「理想系からずれた系における輝度系タフネス性(リンギング程度、等)」参照)。
 理想系とは異なる現実の処理系において「真数画像データ(真数空間上の画像データ)に対する点像復元処理」よりも「対数画像データ(対数空間上の画像データ)に対する点像復元処理」の方がリンギングなどの副作用の出方が小さいのは、ガンマ補正処理(対数化処理)後の画素データ(画像データ)では、低輝度部の階調が強調され(エンハンスされ)、高輝度部の階調が非強調とされることが一因である。また、点像復元処理によって画像のエッジ(境界部)にオーバーシュート(アンダーシュート)が発生し、そのようなオーバーシュート(アンダーシュート)が階調補正によって強調されることもリンギングなどの画像劣化を目立たせる一因である。
 図9は、点像復元処理によるオーバーシュートの発生メカニズムを説明するための図である。図9において横方向(X方向)は画像中の位置(一次元位置)を示し、縦方向(Y方向)は画素値を示す。
 光学系の点拡がり現象によって画質劣化した(ぼけた)画像エッジ部(図9の(a)参照)は、点像復元処理によって本来の画質(コントラスト)に近づくが、いわゆるオーバーシュート(アンダーシュート)が生じることがある(図9の(b)参照)。点像復元処理によって生じるオーバーシュート自体が小さい場合には視覚上特に目立つものではないが、その後に階調補正処理(ガンマ補正処理)が行われるとオーバーシュートが必要以上に強調されることがある(図9の(c)の「E1」及び「E2」参照)。特にシャドウ側のオーバーシュート(アンダーシュート)部分は、その後のガンマ補正処理によって大きなゲイン(増幅率)が適用され、画像エッジ部において黒側に大きく偏った部分を構成することとなる(図9の(c)の「E2」参照)。なお、この現象は、点像復元処理に限ったものではなく、真数空間の画像データに対する輪郭補正処理を行った結果、エッジ部分にオーバーシュートが発生した場合にも共通する。
 また、「色データ(RGBデータ)に対する点像復元処理」は、想定通り(保持している劣化情報(光学系の点拡がり関数情報)通り)にRGB各色の色データ(色信号)が点像復元処理部36に入力されれば、効果的な色データ補正が可能であり、「輝度データ(Yデータ)に対する点像復元処理」と比較して、色収差などを効果的に軽減することができる(図8の「理想系における復元性」、「色系補正能力」参照)。しかしながら、実際の入力信号の挙動が想定通りではない場合、色データ(RGBデータ)に対する点像復元処理では、不要な色付きを生じる箇所が増えて不自然な色合いが目立つなどの副作用が起きることがある(図8の「理想系からずれた系における色系タフネス性(色付き程度、滲み程度、等)」参照)。
 また、処理規模(処理系をハード化する場合は処理回路の規模)についても図8に示すような違いがある。すなわち、真数画像データ(真数空間上の画像データ)よりも対数画像データ(対数空間上の画像データ)の点像復元処理の方が、演算処理が簡単であるため、処理規模が小さくなり、有利である。また、色データ(RGBデータ)に対する点像復元処理では3チャンネル(3ch)分の処理系が必要とされるが、輝度データ(Yデータ)に対する点像復元処理では1チャンネル(1ch)分の処理系で済むため、輝度データに対する点像復元処理の方が、演算処理が簡単になり処理規模をコンパクト化することが可能である。
 したがって、実際の画像処理系では、図8に示す上述の各種特性を踏まえ、ユーザのニーズに応じた適切な系が構築されることが好ましい。例えば、「入力される画像信号(画像データ)として様々なタイプのものが入力される」、「処理系をハード化する際にできるだけ小規模にする」、「実際の画像劣化情報と処理系で保持する画像劣化情報とが完全一致している保証がない」など、理想処理系から処理条件が外れる場合、対数の画像データに対する点像復元処理の方が、真数の画像データに対する点像復元処理よりも、画像タフネス性(画像非破綻性)に優れる。したがって、実際の画像処理系では、画像タフネス性を向上させる観点からは、点像復元処理を階調補正処理(ガンマ補正処理)の後段で実施することが好ましい。また、画像処理による副作用の抑制や処理系の小規模化を重視するのであれば、色データよりも輝度データに対して点像復元処理を施す画像処理系の方が好ましいが、色再現性を重視するのであれば、輝度データよりも色データに対して点像復元処理を施す画像処理系の方が好ましい。
 また、対数化処理(ガンマ補正処理)による階調補正を行う場合、復元フィルタ自体は、対数化処理前の画像データに対応したフィルタ係数から成っていてもよいし、対数化処理後の画像データに対応したフィルタ係数から成っていてもよい。
 「階調補正後(対数化処理後)の画像データの画素値(対数の画素データ)」に対し、敢えて、「階調補正前(対数化処理前)の画素値(真数の画素データ)に対応したフィルタ係数から成る復元フィルタ」を適用して回復処理(点像復元処理)を行う場合、回復画像(復元画像)で生じた画質劣化(リンギング等)に対するタフネス性が向上し、回復画像上でリンギングを目立たせないようにできる。これは、対数化処理後の画素データ(画像データ)では、低輝度部の階調が強調され(エンハンスされ)、高輝度部の階調が非強調とされるからである。
 図10は、ガンマ処理(対数化処理)による処理前データと処理後データとの間の関係の一例を示す図(グラフ)である。図10の横軸は処理前データ(ガンマ処理入力データ「IN」)を示し、縦軸は処理後データ(ガンマ処理出力データ「OUT」)を示し、グラフ中の実線がガンマ処理階調カーブを示す。
 一般的な画像データに対する点像復元処理において、点像復元処理による効果が視覚的に認識され易いのは、コントラストの低い領域であり、ガンマ処理階調カーブにおいて直線で近似できる「画素値のレベル差の比較的小さい領域」である(図10の「A」参照)。一方、コントラストの高い領域、つまりガンマ処理階調カーブにおいて曲線部を構成する「画素値のレベル差が比較的大きい領域」では、元々のコントラストが高くぼけも認識されにくい(図10の「B」参照)。
 さらに、コントラストの高い領域のうち飽和画素を含む領域で、画素値が真数である画素データ(階調補正前の画素データ)に対して点像復元処理を行い、その後に階調補正(ガンマ補正処理、対数化処理)を行うと、アンダーシュート/オーバーシュート(リンギング)が目立ちやすい。これに対し、対数化処理後の画素データに対して点像復元処理を行う場合、対数化処理により高いコントラストが圧縮され、点像復元処理によるリンギングの強度が低減される。
 つまり、対数化処理後の画素データに対し、画素値が真数の画素データに対応したフィルタ係数から成る復元フィルタを使って回復処理(点像復元処理)を行うことで、一般的に視認されやすい低コントラスト領域に対しては遜色なく点像復元処理を施すことができる一方で、点像復元処理によってリンギングが生じ易い高コントラスト領域ではリンギングの強調度合いを低減することが可能である。
 特に、画像処理装置(撮像装置等)が複数種類の階調補正(ガンマ補正処理)を実行可能であり複数種類のガンマ処理階調カーブのデータを保持する場合、従来技術(特許文献3参照)では複数種類の階調補正毎に画素信号値の変化量の制限値を算出する必要がある。しかしながら、本方式によれば、階調補正後の画素データに点像復元処理をかけるため、階調補正の種類に応じた処理の切り替えも不要になる。
 また、一般的にPSF(点拡がり関数)は入力が線形であることが前提とされており、この前提に基づく復元フィルタは、「線形の係数」つまり「真数の画素データに対応したフィルタ係数」から成る方が生成も容易である。
 このように、本方式は実用上非常に有益且つ効果的である。
 一方、階調補正後(対数化処理後)の画素値(対数の画素データ)に対し、対数化処理後の画素値(対数の画素データ)に対応したフィルタ係数から成る復元フィルタを使って回復処理(点像復元処理)を行うことで、点像復元処理で発生するリンギングによる画質劣化に対してタフネス性を向上でき、発生するリンギングを画像上で目立たせないようにできる。
 すなわち、画素データが階調補正(対数化処理)後の画素値(対数の画素データ)である場合、対数化処理後の画素値(対数の画素データ)に対応したフィルタ係数から成る復元フィルタを使って点像復元処理を行うことで、点像復元処理自体を正確に行うことが可能である。この場合、点像復元処理の対象画像データを「階調補正後の原画像データ」とすることで、階調補正(対数化処理)により高いコントラストが圧縮され、点像復元処理により発生するリンギングの強度を低減することができる。
 なお、点像復元処理で使用する復元フィルタは、予め生成されていてもよいし、点像復元処理の実行に合わせて逐次算出生成されてもよい。点像復元処理時の演算量を低減化する観点からは、復元フィルタを予め生成しておくことが好ましい。また、適応性に優れた復元フィルタを使用する観点からは、点像復元処理の実行時に復元フィルタを逐次算出することが好ましい。
 復元フィルタを予め生成しておく場合、入力画素値(入力画像データ)に対する対数化処理(ガンマ補正処理)によって求められる画素値に基づいて演算を行うことで、復元フィルタのフィルタ係数を求めるようにするとよい。復元フィルタの生成に用いられる画素値は、輝度値であってもよいし、RGB色データのうちの代表的に選択された1つのチャネルに関する画素値(例えばGの画素値)でもよい。また、復元フィルタの生成に用いられる画素値は、主要被写体の画素値であってもよいし、画面全体の平均値から求められる画素値であってもよい。
 なお、点像復元処理は、原画像データの振幅成分のみを復元して回復画像データを得る処理であってもよいし、原画像データの振幅成分及び位相成分を復元して回復画像データを得る処理であってもよい。すなわち、光学系のMTF(Modulation Transfer Function)/PTF(Phase Transfer Function)のうち少なくともいずれか一方に基づいて復元フィルタを算出することができる。なお、光学系のぼけ特性は、いわゆる光学伝達関数(OTF:Optical Transfer Function)によって表現可能であり、OTFを逆フーリエ変換して得られる関数は点像分布関数(PSF:Point Spread Function:点拡がり関数)とも呼ばれる。MTFはOTFの絶対値成分であり、PTFは位相のズレを空間周波数の関数として表したものである。したがって、点像復元処理に用いられる復元フィルタは、光学系のOTF(MTF/PTF)やPSFに基づいて、適宜設計可能である。
 「位相成分の復元を伴わない点像復元処理」の場合は回復画像データにおいてリンギングが発生し易いので、階調補正後の画像データ(原画像データ)に対してそのような「位相成分の復元を伴わない点像復元処理」が施されることが望ましい。また、位相成分の復元を伴わない点像復元処理を階調補正後の画像データ(原画像データ)に対して行う場合であっても、リンギングが発生する状況か否かを判断した上で、画像処理(点像復元処理等)を制御することが望ましい。
 一方、「位相成分の復元を伴う点像復元処理」の場合は回復画像データにおいてリンギングを低減できるが、階調補正後の画像データ(原画像データ)に対してそのような「位相成分の復元を伴う点像復元処理」を行うことで、画像タフネス性をより向上させることができる。そして、位相成分の復元を伴う点像復元処理を階調補正後の画像データ(原画像データ)に対して行う場合であっても、リンギングが発生する状況か否かを判断した上で、画像処理(点像復元処理等)を制御することが望ましい。
 なお、点像復元処理が位相成分の復元を伴うか伴わないかを加味して、点像復元処理を施す対象を「階調補正前の画像データ」及び「階調補正後の画像データ」のうちいずれにするかが決定されてもよい。
 上述の新たな知見を踏まえ、以下に、本発明の好ましい実施形態を例示する。
 <第1実施形態>
 本実施形態では、「点像復元処理対象の画像(原画像データ)に関する画像情報」が「点像復元処理により回復画像データにリンギングが生じる条件」に該当するか否かによって、「画像」単位で画像処理がコントロールされ、点像復元処理の実行の有無が決められる。
 図11は、第1実施形態に係る画像処理ブロックを示す図である。
 本実施形態の画像処理部35(図2参照)は、点像復元処理部(復元処理部)36に加え、画像解析部37と、リンギング判定部38と、復元処理判定部(処理制御部)39とを有する。なお、図中の画像処理ブロックは、必ずしも別体として設けられる必要はなく、複数の画像処理ブロックを一体的に構成されるハードウェア/ソフトウェアによって実現してもよい。
 画像解析部37は、光学系を用いた撮影により撮像素子から取得される原画像データを解析して画像解析データ(画像情報)を取得する。本例では、原画像データに飽和画素が含まれるか否かが、画像解析部37における原画像データの解析により取得される。画像解析部37の画像解析結果は、画像解析データとしてリンギング判定部38に送られる。
 リンギング判定部38は、画像解析部37から送られてくる画像解析データが、「点像復元処理により回復画像データにリンギングが生じる条件(リンギング発生条件)」に該当するか否かを判定する。具体的には、原画像データが飽和画素を含むことを画像解析データが示す場合、「リンギング発生条件に画像解析データが該当する」とリンギング判定部38は判定する。一方、原画像データが飽和画素を含まないことを画像解析データが示す場合、「リンギング発生条件に画像解析データが該当しない」とリンギング判定部38は判定する。このように、リンギング判定部38では回復画像データにおけるリンギングの発生可能性が判定されており、「リンギング発生条件に画像解析データが該当する」場合は「回復画像データにおけるリンギングの発生可能性が高い」場合であり、「リンギング発生条件に画像解析データが該当しない」場合は「回復画像データにおけるリンギングの発生可能性が高くない(低い)」場合である。ここでいうリンギングの発生可能性は、「リンギングの有無」だけではなく、「視認によって目立つリンギングが生じるか否か」を示すようにしてもよい。したがって、例えば、リンギングが全く発生しない場合や視認によって目立つリンギングが生じない場合を「リンギングの発生可能性が高くない(低い)」とし、リンギングが発生する場合や視認によって目立つリンギングが生じる場合を「リンギングの発生可能性が高い」としてもよい。このリンギング判定部38における判定結果は、リンギング判定データとして復元処理判定部39に送られる。
 復元処理判定部39は、リンギング判定部38の判定結果に基づいて、画像処理をコントロールし、点像復元処理部36における点像復元処理の実行の有無を決定する。
 具体的には、リンギング判定データから「回復画像データにおいてリンギングが発生する可能性が高くない(低い)(すなわち、「リンギング発生条件に画像解析データが該当しない」、「原画像データが飽和画素を含まない」)」と判定される場合、復元処理判定部39は原画像データを点像復元処理部36に送る。一方、リンギング判定データから「回復画像データにおいてリンギングが発生する可能性が高い(すなわち、「リンギング発生条件に画像解析データが該当する」、「原画像データが飽和画素を含む」)」と判定される場合、復元処理判定部39は点像復元処理部36をスキップして後段の処理部に原画像データを送る。このように、本例の復元処理判定部39は、原画像データ毎に、点像復元処理(画像処理)をコントロールする。
 点像復元処理部36は、原画像データに対し、光学系の点拡がり関数に基づく復元フィルタを用いた復元処理を行って回復画像データを得る。
 なお、復元処理判定部39及び点像復元処理部36は、ガンマ補正処理部(図7A~7Dのガンマ補正処理44参照)の後段に設けられ、点像復元処理部36における点像復元処理は、ガンマ補正処理後(階調補正後)の原画像データに対して行われる(図7A及び7B参照)。
 一方、画像解析部37には、ガンマ補正処理前の原画像データが入力されてもよいし、ガンマ補正処理後の原画像データが入力されてもよく、ガンマ補正処理前後いずれの原画像データから画像解析データが生成されてもよい。
 図12は、図11に示す画像処理ブロックによる点像復元処理フローを示す図である。
 まず、画像解析部37において原画像データが解析され、原画像データが飽和画素を含むか否かが調べられる(図12のS1;画像情報取得ステップ)。
 原画像データが飽和画素を含まない場合、回復画像データにおいてリンギングが発生する可能性が高くない(低い)とリンギング判定部38において判定される(S2のN;リンギング判定ステップ)。この場合、原画像データが復元処理判定部39から点像復元処理部36に送られ、点像復元処理部36で点像復元処理が行われて回復画像データが取得され(S3)、この回復画像データが後段の処理部に送られる。
 一方、原画像データが飽和画素を含む場合、回復画像データにおいてリンギングが発生する可能性が高いとリンギング判定部38において判定され(S2のY)、復元処理判定部39によって点像復元処理(点像復元処理部36)がスキップされ(S4)、後段の処理部に原画像データが送られる。
 このように、画像(原画像データ)内における飽和画素の有無をチェックして、飽和画素が存在する場合、その画像に対しては点像復元処理を行わないようにする。これにより、画像データにおけるリンギングの発生及び強調を防ぎ、後段に送られる画像データ(画像)においてリンギング等による画像劣化が目立たないようにすることができる。
 なお、上述の例では原画像データに飽和画素が含まれているか否かによって点像復元処理の実行が決められるが、これに限定されるものではない。例えば、閾値(例えば飽和画素値(撮像素子26の構成画素が許容可能な最大の画素値)の90%)よりも大きな画素値を有する画素データが原画像データに含まれるか否かを示す画像解析データが、画像解析部37において作られるようにしてもよい。このケースでは、原画像データが「閾値よりも大きな画素値を持つ画素データ」を含む場合、リンギングの可能性が高いとリンギング判定部38で判定され、復元処理判定部39は点像復元処理(点像復元処理部36)をスキップして後段の処理部に原画像データを送る。一方、原画像データが「閾値よりも大きな画素値を持つ画素データ」を含まない場合、リンギングの可能性が高くない(低い)とリンギング判定部38で判定され、復元処理判定部39は点像復元処理部36に原画像データを送り、点像復元処理部36において原画像データの点像復元処理が行われる。
 また、画素値が飽和した画素データ又は閾値よりも大きな画素値を有する画素データが、所定画素数以上、原画像データに含まれるか否かに基づいて、リンギングの発生可能性がリンギング判定部38で判定されてもよい。
 なお、上述の図11に示す例では「原画像データを解析して取得される画像解析データ」をリンギング判定の基礎となる画像情報として使用しているが、「原画像データの取得条件を示す画像取得条件データ」をこの画像情報として使用することも可能である。
 図13は、第1実施形態の一変形例に係る画像処理ブロックを示す図である。本変形例の画像処理部35(図2参照)は、図11の画像解析部37に代え、画像取得条件取得部40を有する。
 画像取得条件取得部40は、原画像データの取得条件を取得し、この原画像データ取得条件を示す画像取得条件データをリンギング判定部38に送る。リンギング判定部38は、この画像取得条件データが、復元処理により回復画像データにリンギング発生条件に該当するか否かを判定する。
 なお、リンギング判定部38における判定結果に基づいて点像復元処理の実行の有無を決定する点(復元処理判定部39、点像復元処理部36)は、図11に示す例と同様である。
 本変形例の画像取得条件取得部40が取得する「原画像データの取得条件(画像取得条件データ)」は、原画像データを取得する撮影に用いられた光学系の情報を含み、点像復元処理の復元精度や復元処理の副作用(リンギング等)に影響を及ぼしうる各種要素が「原画像データの取得条件(画像取得条件データ)」に含まれうる。例えば、ここでいう光学系の情報は、原画像データを取得する撮影に用いられた光学系のレンズ種類、絞り値、ズーム値のうち少なくともいずれか1つを含む。
 本変形例では、「回復画像データでリンギングが発生する可能性が高い条件」の下で原画像データが取得された場合(条件該当の場合)には、点像復元処理をスキップするようにすることで、リンギングが発生/目立つ画像データ(回復画像データ)が後段に送られることを防ぐことが可能である。
 なお、「画像解析部37における画像取得条件データの取得手法」や「リンギング判定部38におけるリンギングの判定手法」は、特に限定されない。
 例えば、「回復画像データにおいてリンギングの発生可能性が高い条件」を予め定めてリンギング判定部38が保持しておき、画像取得条件データがその保持された条件に該当するか否かによって、リンギングの発生の可能性が判定されてもよい。また、実際に使用される光学系(レンズ等)によってリンギングの発生可能性は変動しうるため、光学系の種類(レンズ型番等)毎に「リンギングの発生可能性の高い条件」が定められてもよい。また、画像取得条件データが原画像データに付加されている場合(例えばExif等)、画像取得条件取得部40は、原画像データとともに画像取得条件データを取得するようにしてもよい。また、処理対象の原画像データの画像取得条件データがメモリ等に記憶されている場合、画像取得条件取得部40は、そのメモリにアクセスして画像取得条件データを取得するようにしてもよい。
 図14は、第1実施形態の他の変形例に係る画像処理ブロックを示す図である。本変形例の画像処理部35(図2参照)は、図11の画像解析部37及び図13の画像取得条件取得部40を含む画像情報取得部48を有する。
 画像解析部37及び画像取得条件取得部40を含む画像情報取得部48は、上述の画像解析データ及び画像取得条件データのうち少なくともいずれか一方を含む画像情報を取得する。この画像情報は、画像情報取得部48からリンギング判定部38に画像情報データとして送られる。リンギング判定部38は、この画像情報データに基づいて、画像情報が、復元処理により回復画像データにリンギング発生条件に該当するか否かを判定する。なお、本変形例の復元処理判定部39及び点像復元処理部36は、上述の実施形態(図11及び図12参照)及び変形例(図13参照)と同様である。
 本変形例では、画像解析データ及び画像取得条件データに基づく総合的な判定により、リンギングの発生可能性を精度良く推測することが可能である。また、画像情報取得部48が画像解析データ及び画像取得条件データのうちいずれか一方を取得することができない場合であっても、取得可能なデータに基づいて、リンギングの発生可能性を推測することも可能である。
 以上説明したように、上述の実施形態及び変形例によれば、点像復元が必要な画像のみに対して点像復元処理を行うことができる。すなわち、点像復元処理を適用することで画質向上を期待することができる画像(画像データ)に対しては、点像復元処理が行われる。一方、点像復元処理によってリンギングなどの画質劣化が目立つ蓋然性が高いと予測される画像に対しては、点像復元処理が行われない。このように、被写体像の特性(特徴)に応じた点像復元処理を行うことで、リンギング等の含む画像データが後段に送られることを回避し、画質劣化した撮影画像(画像データ)がユーザに提供されることを防ぐことができる。
 <第2実施形態>
 本実施形態において、上述の第1実施形態と同様の構成及び作用については、説明を省略する。
 本実施形態では、「点像復元処理対象の画像(原画像データ)に関する画像情報」が「点像復元処理により回復画像データにリンギング発生条件」に該当するか否かによって「画素」単位で画像処理がコントロールされる。
 すなわち、第1実施形態では「画像」単位で原画像データ毎に点像復元処理がコントロールされる例が示されているが、本実施形態では「画素」単位で画素データ毎に点像復元処理がコントロールされる。
 図15は、画素データ毎に点像復元処理の有無を判定する例を説明するための画像例(原画像データ)を示す図であって、カーネル(Km、Kn)内の注目画素及びその周辺画素の画像解析データ(画像情報)に基づいて判定を行う例を示す。
 本例の画像処理部35(図2参照)は、図11に示す画像処理ブロックと同様の画像処理ブロックを有し、画像解析部37は、原画像データを解析し、飽和画素データ又は閾値よりも大きな画素値を有する画素データが原画像データに含まれるか否かを示す画像解析データ(画像情報)を取得する。
 リンギング判定部38は、画像解析部37から送られてくる画像解析データに基づいてリンギングの発生可能性を判定するが、原画像データの画素データ毎に判定を行う。リンギング判定部38は、原画像データのうちの注目画素及びこの注目画素の周辺画素に関する画像解析データ(画像情報)に基づいて、原画像データを構成する画素データ毎に、注目画素に対する点像復元処理によってリンギングが発生する可能性が高いか否かを判定する。
 本例では、所定サイズのカーネル(例えば9画素(X方向)×9画素(Y方向)程度のカーネル(図15の「Km」及び「Kn」参照))内の中央に配置される注目画素及びその周辺に配置される周辺画素のうちの少なくとも一部の画素データが、画素値が飽和した画素データ(飽和画素データ)又は閾値よりも大きな画素値を有する画素データであるか否かが、リンギング判定部38において判定される。
 なお、カーネルのサイズは特に限定されるものではないが、点像復元処理に使用される復元フィルタ(実空間上の復元フィルタ)のサイズ(図4の「実空間フィルタ」の「Nタップ」及び「Mタップ」参照)に基づいて定められることが望ましく、点像復元処理に使用される実空間フィルタのサイズと一致又はそれ以下のサイズにカーネルサイズを設定することが望ましい。
 カーネル内の画素データに「飽和画素データ又は閾値よりも大きな画素値を有する画素データ」が含まれると判定される場合(図12の「Kn」参照)、リンギング判定部38は、注目画素の点像復元処理ではリンギングの発生可能性が高いと判定する。一方、カーネル内の画素データに「飽和画素データ又は閾値よりも大きな画素値を有する画素データ」が含まれないと判定される場合(図12の「Km」参照)、リンギング判定部38は、注目画素の点像復元処理ではリンギングの発生可能性が高くない(低い)と判定する。
 このようにして原画像データの画素データ毎に得られる「リンギングの発生可能性の判定結果」は、リンギング判定データとして、リンギング判定部38から復元処理判定部39に送られる。
 復元処理判定部(処理制御部)39は、原画像データを構成する画素データ毎に、点像復元処理をコントロールする。すなわち、復元処理判定部39は、リンギング判定データに基づいて点像復元処理部36と協働し、注目画素を原画像データ内で変えながら、画素データ毎に点像復元処理が実行/不実行される。すなわち、「リンギングの発生可能性が高くない(低い)と判定された画素データ」に対しては点像復元処理を行う一方で、「リンギングの発生可能性が高いと判定された画素データ」に対しては点像復元処理を行わないように、復元処理判定部39は点像復元処理部36をコントロールする。
 図16は、第2実施形態に係る点像復元処理フローの一例を示す図である。なお、図16では、飽和画素データの有無に基づいて点像復元処理の実行の有無(リンギングの発生可能性)が判定される例が示されている。
 まず、原画像データが解析されて、飽和画素データが原画像データに含まれるか否かを示す画像解析データ(画像情報)が画像解析部37によって取得され(図16のS11)、画像解析データがリンギング判定部38に送られる。そして、原画像データを構成する画素データ毎に「点像復元処理によって回復画像データにリンギングが発生する可能性が高いか否か」がリンギング判定部38において判定され、このリンギング判定データが復元処理判定部39に送られる。
 そして、復元処理判定部39において原画像データの画素データ毎に点像復元処理の実行の有無が決められる。すなわち、まず対象画素をリセットするために「I=0」とされ(S12)、その後、対象画素を順次変えるために「I=I+1」とされる(S13)。
 そして、I番目の画素(注目画素)に対する点像復元処理によってリンギングの発生可能性が高いか否かが、リンギング判定データに基づいて復元処理判定部39により判定される(S14)。リンギングの発生可能性が高くない(低い)と判定される場合(S14のN)、そのI番目の画素の点像復元処理を行うことが復元処理判定部39において決定される(S15)。一方、リンギングの発生可能性が高いと判定される場合(S14のY)、そのI番目の画素の点像復元処理を行わないことが復元処理判定部39において決定される(S16)。
 そして、注目画素(I番目の画素)は原画像データを構成する最終画素(N番目の画素)か否かが、復元処理判定部39において判定される。すなわち、「I<N」を満たすか否かによって、対象画素(注目画素)が原画像データの最終画素に達したか否かが判定される(S17)。「I<N」を満たす場合(S17のY)、対象画素(注目画素)は最終画素に達していないため、上述のステップS13に処理が戻され、「I=I+1」によって対象画素(注目画素)を次の画素に変えて、上述のステップS14~S17が繰り返される。
 一方、「I<N」を満たさない場合(S17のN)、対象画素(注目画素)は最終画素に達しており、原画像データを構成する全ての画素に対して点像復元処理の実行の有無が決定された状態にある。したがって、この決定結果に基づいて、原画像データの画素データ毎に、点像復元処理部36による点像復元処理が実行/不実行される。
 以上説明したように、本実施形態によれば、点像復元処理を適用することで画質向上が期待できる画素(画素データ)に対しては点像復元処理が施され、リンギングなどの副作用が目立ちそうな画素(画素データ)に対しては点像復元処理が施されない。このように、画素単位で点像復元処理の実行の有無が切り替えられ、点像復元処理によって画質向上が期待できる画素(画素データ)のみに点像復元処理を施すことができ、画素単位での画質向上が可能である。
 なお、本実施形態によれば、一つの回復画像(回復画像データ)内において、「点像復元処理が施される画素」と「点像復元処理が施されない画素」とが混在する。回復画像において「点像復元された画素」及び「点像復元されない画素」が混在する場合であっても、ユーザの視覚上において、両画素間の復元再現性において十分にバランスがとられ、画像全体としても良好な画質を有することは、本件発明者によって実験により確認されている。
 上述では「画像解析データ」に基づいて点像復元処理の実行の有無が判定される例について説明したが、上述の第1実施形態と同様に、本実施形態においても「画像取得条件データ」に基づいて画素データ毎に点像復元処理の実行の有無が判定されてもよく(図13)、また「画像解析データ及び画像取得条件データのうち少なくともいずれか一方を含む画像情報」に基づいて画素データ毎に点像復元処理の実行の有無が判定されてもよい(図14)。また、上述では「画素データ」毎に点像復元処理の実行の有無が判定される例について説明したが、原画像データ(被写体像)を複数の分割領域に区分して「分割領域」毎に点像復元処理の実行の有無が判定されてもよい。
 <第3実施形態>
 本実施形態において、上述の実施形態と同様の構成及び作用については、説明を省略する。
 本実施形態では、点像復元処理で使用する復元フィルタが、画像解析データ及び画像取得条件データのうち少なくともいずれか一方に基づいて切り替え/選択される。
 以下では、原画像データが飽和画素を含むか否かの情報(画像解析データ)に基づいて、画像(原画像データ)単位で復元フィルタが切り替えられる例について説明する。
 図17は、第3実施形態に係る画像処理ブロックの一例を示す図である。
 本実施形態の画像処理部35(図2参照)は、画像解析部37、リンギング判定部38、フィルタ選択部(処理制御部)55及び点像復元処理部36を有する。
 画像解析部37及びリンギング判定部38は、上述の実施形態と同様である。すなわち、画像解析部37において原画像データが解析されて画像解析データが取得され、リンギング判定部38においてリンギングの発生可能性が判定される。なお、本例では、原画像データに飽和画素が含まれるか否かが画像解析部37において解析され、画像単位で原画像データ毎にリンギングの発生可能性がリンギング判定部38において判定される。
 フィルタ選択部55は、リンギング判定部38の判定結果(リンギング判定データ)に基づいて、点像復元処理部36の点像復元処理で用いる復元フィルタを決定する。すなわち、リンギングの発生可能性が高くない(低い)と判定される画像(原画像データ)に対しては、通常の復元フィルタがフィルタ選択部55によって選択される。一方、リンギングの発生可能性が高いと判定される画像(原画像データ)に対しては、通常の復元フィルタではなく、リンギングの発生を抑制する/リンギングを強調しない復元フィルタ(リンギング対策復元フィルタ)がフィルタ選択部55によって選択される。
 図18A,18Bは、復元フィルタの「空間周波数-振幅」の関係を例示するグラフである。図18Aは通常の点像復元処理で用いられるフィルタ(フィルタA)の特性の一例を示し、図18Bはリンギング対策復元フィルタ(フィルタB)の特性の一例を示す。なお、図18A,18Bでは、理解を容易にするため1次元の周波数特性が例示されている。また図18A,18Bに示される各フィルタの縦軸はレスポンス(振幅)を表し、横軸は周波数を表しており、横軸はサンプリング周波数で正規化された数値を基準としている。
 フィルタ選択部55(図17参照)は、リンギングの発生可能性が高くない(低い)と判定される画像(原画像データ)に対しては、図18Aに示されるような「高周波域におけるレスポンス(振幅)が比較的急峻に変化する通常の復元フィルタ」を選択する。また、フィルタ選択部55は、リンギングの発生可能性が高いと判定される画像(原画像データ)に対しては、図18Bに示されるような「リンギングの目立つ周波数帯域(ここでは高周波側と仮定)のレスポンス(振幅)成分が小さく比較的緩やかに変化するリンギング対策用の復元フィルタ」を選択する。
 フィルタ選択部55は、復元フィルタ記憶部57が記憶する復元フィルタの情報を保持しており、復元フィルタ記憶部57が記憶する復元フィルタのうち最適な復元フィルタをリンギング判定データに基づいて選択する。なお、図18A,18Bに示される復元フィルタは一例に過ぎず、目的に応じた任意の復元フィルタをフィルタ選択部55は選択可能である。例えば、輪郭補正に使用される複数種類の補正フィルタを基底フィルタとして、これらの基底フィルタの線形和によって構成される復元フィルタを、リンギング対策用の復元フィルタとして選択してもよい。
 フィルタ選択部55で画像(原画像データ)毎に選択された復元フィルタの情報は、フィルタ選択データとして点像復元処理部36に送られる。
 点像復元処理部36は、複数の復元フィルタ(フィルタ係数群)を保持する復元フィルタ記憶部57と、復元フィルタ記憶部57から読み出される復元フィルタを原画像データに適用して回復画像データを算出する演算処理部56とを有する。演算処理部56には、原画像データ及びフィルタ選択部55からのフィルタ選択データが入力される。演算処理部56は、入力されたフィルタ選択データに対応する復元フィルタを、復元フィルタ記憶部57から読み出して、入力される原画像データに適用する。
 図19は、図17に示す画像処理ブロックによる点像復元処理フローを示す図である。
 まず、画像解析部37において原画像データが解析されて原画像データが飽和画素を含むか否かが調べられる(図19のS21)。そして、リンギング判定部38において、原画像データが飽和画素を含む場合には回復画像データでリンギングが発生する可能性が高いと判定され、原画像データが飽和画素を含まない場合には回復画像データでリンギングが発生する可能性が高くない(低い)と判定される。
 そして、点像復元処理によってリンギングが発生する可能性が高くない(低い)と判定される場合には(S22のN)、フィルタ選択部55において通常の復元フィルタ(図18A参照)が選択され、点像復元処理部36においてこの通常の復元フィルタを用いた点像復元処理が原画像データに対して行われる(S23)。一方、点像復元処理によってリンギングが発生する可能性が高いと判定される場合には(S22のY)、フィルタ選択部55においてリンギング対策復元フィルタ(図18B参照)が選択され、点像復元処理部36においてこのリンギング対策復元フィルタを用いた点像復元処理が原画像データに対して行われる(S24)。
 このように、原画像データに飽和画素が含まれているか否かに応じて、点像復元処理に使用する復元フィルタの特性を変更してもよい。例えば、原画像データに飽和画素が含まれなければ通常の復元フィルタを使用し、原画像データに飽和画素が含まれていればリンギングの目立つ周波数帯域の成分を小さくした復元フィルタを使用することが可能である。このように、画像(原画像データ)内で飽和画素の有無をチェックして、点像復元処理で使用する復元フィルタの特性を適宜変更することで、回復画像データにおけるリンギングの発生や強調を効果的に防ぐことができる。
 なお、上述では「画像解析データ」に基づいて「画像(原画像データ)毎」に復元フィルタが選択される例について説明したが、これに限定されるものではない。例えば、上述の第1実施形態と同様に、本実施形態においても「画像取得条件データ」に基づいてリンギングの発生可能性が判定されてもよいし(図13参照)、「画像解析データ及び画像取得条件データのうち少なくともいずれか一方を含む画像情報」に基づいてリンギングの発生可能性が判定されてもよい(図14参照)。また、上述の第2実施形態のように(図15及び図16参照)、画像(原画像データ)の「画素(画素データ)毎」/「分割領域毎」に、復元フィルタが選択されて点像復元処理が行われてもよい。
 <第4実施形態>
 本実施形態において、上述の実施形態と同様の構成及び作用については、説明を省略する。
 本実施形態では、階調補正(ガンマ補正処理)前の原画像データ及び階調補正後の原画像データのうちいずれに対して点像復元処理を行うかが、画像解析データ及び画像取得条件データのうち少なくともいずれか一方に基づいて決定される。
 以下では、原画像データが飽和画素を含むか否かの情報(画像解析データ)に基づいて、画像(原画像データ)単位で、点像復元処理がコントロールされる例について説明する。
 図20は、第4実施形態に係る画像処理ブロックの一例を示す図である。
 本実施形態に係る画像処理部35(図2参照)では、ガンマ補正処理後に点像復元処理を行う図7Bに示す処理系と、ガンマ補正処理前に点像復元処理を行う図7Cに示す処理系とのうち最適な処理系が、リンギングの発生可能性に基づいて、実質的に選択されるようになっている。
 図20に示す本例の処理系では、オフセット補正処理41、WB補正処理42及びデモザイク処理43は上述の図7B及び7Cと同じであるが、デモザイク処理43の後段に復元処理判定部(処理制御部)39が設けられている。
 本例の復元処理判定部39は、リンギング判定部38の判定結果(リンギング判定データ)に基づいて点像復元処理及び階調補正をコントロールし、階調補正前の原画像データ及び階調補正後の原画像データのうちいずれに対して復元処理を行うかを決定する。すなわち、復元処理判定部39は、リンギング判定部38からのリンギング判定データに基づいて、「原画像データの階調補正を行うガンマ補正処理(階調補正部)44aの後段で点像復元処理46aが行われる処理系」と「ガンマ補正処理44bの前段で点像復元処理46bが行われる処理系」とのうちいずれか一方を選択する。なお、いずれの処理系が選択されても、「ガンマ補正処理」及び「点像復元処理」を受けた画像データ(RGB色データ)は、後段の輝度・色差変換処理45において輝度データ及び色差データへの変換処理を受ける。
 図21は、図20に示す画像処理ブロックによる点像復元処理フローを示す図である。
 本例では、画像解析部37において原画像データが解析されて原画像データが飽和画素を含むか否かが調べられる(図21のS41)。そして、リンギング判定部38において、原画像データが飽和画素を含む場合には回復画像データにおいてリンギングが発生する可能性が高いと判定され、原画像データが飽和画素を含まない場合には回復画像データにおいてリンギングが発生する可能性が高くない(低い)と判定される。
 そして、リンギングが発生する可能性が高くない(低い)と判定される場合(例えば原画像データ内に飽和画素が無い場合)には(S42のN)、復元処理判定部39によってRGB色データ(デモザイクデータ)が「ガンマ補正処理44bの前段で点像復元処理46bが行われる処理系」に送られる(S43)。一方、点像復元処理によってリンギングが発生する可能性が高いと判定される場合(例えば原画像データ内に飽和画素が有る場合)には(S42のY)、復元処理判定部39によってRGB色データ(デモザイクデータ)が「ガンマ補正処理44aの後段で点像復元処理46aが行われる処理系」に送られる(S44)。
 ハード構成の制約が無い処理環境下では、本実施形態のように、ガンマ補正処理前に点像復元処理を行う処理系とガンマ補正処理後に点像復元処理を行う処理系の両方を画像処理部35が持ち、状況に応じて(リンギングの発生状況に応じて)両処理系を使い分けるようにしてもよい。これにより、点像復元処理によってもたらされうるリンギング等の副作用が目立たないと思われる画像に対しては精度の高い補正(点像復元処理)を積極的に実施し、副作用が目立つ可能性がある画像に対してはタフネス性に優れた処理系を利用することで、補正効果と副作用抑制の両立を高い次元で実現することが可能である。
 なお、上述の例では、リンギング判定データに基づいて、ガンマ補正処理及び点像復元処理の処理順序が異なる処理系が選択されるが、点像復元処理による復元成分に応じて処理系を選択するようにしてもよい。
 図22は、第4実施形態に係る画像処理ブロックの一変形例を示す図である。
 本変形例に係る画像処理部35(図2参照)は、復元処理情報取得部86を有する。この復元処理情報取得部86は、点像復元処理46a、46bが、原画像データの振幅成分のみを復元して回復画像データを得る処理であるか、原画像データの振幅成分及び位相成分を復元して回復画像データを得る処理であるかについての復元処理情報を取得する。
 復元処理判定部(処理制御部)39は、リンギング判定部38の判定結果に加え、復元処理情報取得部86が取得する復元処理情報に基づいて、ガンマ補正処理(階調補正)前の原画像データ及びガンマ補正処理後の原画像データのうちいずれに対して点像復元処理を行うか決定する。例えば、復元処理情報が「点像復元処理46a、46bが、原画像データの振幅成分のみを復元して回復画像データを得る処理である」ことを示す場合、「ガンマ補正処理44aの後段で点像復元処理46aが行われる処理系」にRGB色データ(デモザイクデータ)が送られるように、復元処理判定部39は画像処理をコントロールしてもよい。また、復元処理情報が「点像復元処理46a、46bが、原画像データの振幅成分及び位相成分を復元して回復画像データを得る処理である」ことを示す場合、「ガンマ補正処理44bの前段で点像復元処理46bが行われる処理系」にRGB色データ(デモザイクデータ)が送られるように、復元処理判定部39は画像処理をコントロールしてもよい。
 一般に、「位相成分の復元を伴わない点像復元処理」の場合は回復画像データにおいてリンギングが発生し易く、「位相成分の復元を伴う点像復元処理」の場合は回復画像データにおいてリンギングを低減できる。したがって、本実施形態のように「原画像データの振幅成分のみを復元して回復画像データを得る点像復元処理46a、46b」すなわち「位相成分の復元を伴わない点像復元処理」が行われる場合には「ガンマ補正処理後」に点像復元処理を行うことで、「点像復元処理で生じたリンギングをガンマ補正処理によって強調する」という弊害を効果的に防ぐことができる。
 なお、上述では「画像解析データ」に基づいて画像(原画像データ)毎にガンマ補正処理及び点像復元処理の順序がコントロールされる例について説明したが、これに限定されるものではない。例えば、上述の第1実施形態と同様に、本実施形態においても「画像取得条件データ」に基づいてガンマ補正処理及び点像復元処理の順序がコントロールされてもよいし(図13参照)、「画像解析データ及び画像取得条件データのうち少なくともいずれか一方を含む画像情報」に基づいてガンマ補正処理及び点像復元処理の順序がコントロールされてもよい(図14参照)。
 また、上述の例では、RGB色データに対して「ガンマ補正処理」及び「点像復元処理」が行われているが、輝度データ(Y)に対して「ガンマ補正処理」及び「点像復元処理」が行われる画像処理系においても、本実施形態及びその変形例は適用可能である。
 <第5実施形態>
 本実施形態において、上述の実施形態と同様の構成及び作用については、説明を省略する。
 本実施形態では、色データ(RGBデータ)及び輝度データ(Y)のうちいずれに対して点像復元処理を行うかが、画像解析データ及び画像取得条件データのうち少なくともいずれか一方に基づいて決定される。
 以下では、原画像データが飽和画素を含むか否かの情報(画像解析データ)に基づいて、画像(原画像データ)単位で、点像復元処理がコントロールされる例について説明する。
 図23は、第5実施形態に係る画像処理ブロックの一例を示す図である。
 本実施形態に係る画像処理部35(図2参照)では、ガンマ補正処理後に点像復元処理を行う図7Aに示す処理系と、ガンマ補正処理後に点像復元処理を行う図7Bに示す処理系とのうち最適な処理系が、リンギングの発生可能性に基づいて、実質的に選択されるようになっている。
 図23に示す本例の処理系では、オフセット補正処理41、WB補正処理42、デモザイク処理43及びガンマ補正処理44は上述の図7A及び図7Bと同じであるが、ガンマ補正処理44の後段に復元処理判定部(処理制御部)39が設けられている。
 本例の復元処理判定部39は、リンギング判定部38の判定結果(リンギング判定データ)に基づいて、原画像データの輝度データ及び色データのうちいずれに対して復元処理を行うか決定する。そして、点像復元処理46a、46bは、原画像データの輝度データ及び色データのうち、復元処理判定部39によって決定されたデータに対して点像復元処理を行う。すなわち、復元処理判定部39は、リンギング判定部38からのリンギング判定データに基づいて、「輝度・色差変換処理45aの後段で点像復元処理46aが行われる処理系」と「点像復元処理46bの後段で輝度・色差変換処理45bが行われる処理系」とのうちいずれか一方を選択する。
 「輝度・色差変換処理45aの後段で点像復元処理46aが行われる処理系」が選択される場合、点像復元処理対象の原画像データは輝度データ(Y)を含み、点像復元処理部36は、原画像データの輝度データに対して点像復元処理46aを行う。一方、「点像復元処理46bの後段で輝度・色差変換処理45bが行われる処理系」が選択される場合、点像復元処理対象の原画像データは色データ(RGBデータ)を含み、点像復元処理部36は、原画像データの色データに対して点像復元処理46bを行う。
 なお、いずれの処理系が選択されても、点像復元処理及び輝度・色差変換処理の前に、オフセット補正処理41、WB補正処理42、デモザイク処理43及びガンマ補正処理44が行われているため、ガンマ補正処理(階調補正処理)後の画像データに対して点像復元処理46a、46bが行われる。
 図24は、図23に示す画像処理ブロックによる点像復元処理フローを示す図である。
 本例では、画像解析部37において原画像データが解析されて原画像データが飽和画素を含むか否かが調べられる(図24のS51)。そして、リンギング判定部38において、原画像データが飽和画素を含む場合には「回復画像データにおいてリンギングが発生する可能性が高い」と判定され、原画像データが飽和画素を含まない場合には「回復画像データにおいてリンギングが発生する可能性が高くない(低い)」と判定される。
 そして、点像復元処理によってリンギングが発生する可能性が高くない(低い)と判定される場合(例えば原画像データ内に飽和画素が無い場合)には(S52のN)、復元処理判定部39によってRGB色データ(デモザイクデータ)が「点像復元処理46bの後段で輝度・色差変換処理45bが行われる処理系」に送られ、原画像データの色データ(RGBデータ)に対して点像復元処理が行われる(S53)。一方、点像復元処理によってリンギングが発生する可能性が高いと判定される場合(例えば原画像データ内に飽和画素が有る場合)には(S42のY)、復元処理判定部39によってRGB色データ(デモザイクデータ)が「輝度・色差変換処理45aの後段で点像復元処理46aが行われる処理系」に送られ、原画像データの輝度データ(Y)に対して点像復元処理が行われる(S54)。
 なお、上述では「画像解析データ」に基づいて画像(原画像データ)毎に輝度・色差変換処理及び点像復元処理の順序がコントロールされる例について説明したが、これに限定されるものではない。例えば、上述の第1実施形態と同様に、本実施形態においても「画像取得条件データ」に基づいて輝度・色差変換処理及び点像復元処理の順序がコントロールされてもよいし(図13参照)、「画像解析データ及び画像取得条件データのうち少なくともいずれか一方を含む画像情報」に基づいて輝度・色差変換処理及び点像復元処理の順序がコントロールされてもよい(図14参照)。
 <他の変形例>
 上述のデジタルカメラ10は例示に過ぎず、他の構成に対しても本発明を適用することが可能である。各機能構成は、任意のハードウェア、ソフトウェア、或いは両者の組み合わせによって適宜実現可能である。したがって、例えば、上述の各装置及び処理部(カメラ本体コントローラ28、デバイス制御部34、画像処理部35、点像復元処理部36等)における画像処理方法(画像処理手順)をコンピュータに実行させるプログラム、そのようなプログラムを記録したコンピュータ読み取り可能な記録媒体、或いはそのようなプログラムをインストール可能なコンピュータに対しても本発明を適用することができる。
 <EDoFシステムへの適用例>
 上述の実施形態における復元処理は、特定の撮影条件(例えば、絞り値、F値、焦点距離、レンズ種類、など)に応じて点拡がり(点像ぼけ)を回復修正することで本来の被写体像を復元する画像処理であるが、本発明を適用可能な画像復元処理は上述の実施形態における復元処理に限定されるものではない。例えば、拡大された被写界(焦点)深度(EDoF:Extended Depth of Field(Focus))を有する光学系(撮影レンズ等)によって撮影取得された画像データに対する復元処理に対しても、本発明に係る復元処理を適用することが可能である。EDoF光学系によって被写界深度(焦点深度)が拡大された状態で撮影取得されるぼけ画像の画像データに対して復元処理を行うことで、広範囲でピントが合った状態の高解像度の画像データを復元生成することができる。この場合、EDoF光学系の点拡がり関数(PSF、OTF、MTF、PTF、等)に基づく復元フィルタであって、拡大された被写界深度(焦点深度)の範囲内において良好な画像復元が可能となるように設定されたフィルタ係数を有する復元フィルタを用いた復元処理が行われる。
 以下に、EDoF光学系を介して撮影取得された画像データの復元に関するシステム(EDoFシステム)の一例について説明する。なお、以下に示す例では、デモザイク処理後の画像データ(RGBデータ)から得られる輝度信号(Yデータ)に対して復元処理を行う例について説明するが、復元処理を行うタイミングは特に限定されず、例えば「デモザイク処理前の画像データ(モザイク画像データ)」や「デモザイク処理後であって輝度信号変換処理前の画像データ(デモザイク画像データ)」に対して復元処理が行われてもよい。
 図25は、EDoF光学系を備える撮像モジュール101の一形態を示すブロック図である。本例の撮像モジュール(デジタルカメラ等)101は、EDoF光学系(レンズユニット;光学系)110と、撮像素子112と、AD変換部114と、復元処理ブロック(画像処理部)120とを含む。
 図26は、EDoF光学系110の一例を示す図である。本例のEDoF光学系110は、単焦点の固定された撮影レンズ110Aと、瞳位置に配置される光学フィルタ111とを有する。光学フィルタ111は、位相を変調させるもので、拡大された被写界深度(焦点深度)(EDoF)が得られるようにEDoF光学系110(撮影レンズ110A)をEDoF化する。このように、撮影レンズ110A及び光学フィルタ111は、位相を変調して被写界深度を拡大させるレンズ部を構成する。
 なお、EDoF光学系110は必要に応じて他の構成要素を含み、例えば光学フィルタ111の近傍には絞り(図示省略)が配設されている。また、光学フィルタ111は、1枚でもよいし、複数枚を組み合わせたものでもよい。また、光学フィルタ111は、光学的位相変調手段の一例に過ぎず、EDoF光学系110(撮影レンズ110A)のEDoF化は他の手段によって実現されてもよい。例えば、光学フィルタ111を設ける代わりに、本例の光学フィルタ111と同等の機能を有するようにレンズ設計された撮影レンズ110AによってEDoF光学系110のEDoF化を実現してもよい。
 すなわち、撮像素子112の受光面への結像の波面を変化させる各種の手段によって、EDoF光学系110のEDoF化を実現することが可能である。例えば、「厚みが変化する光学素子」、「屈折率が変化する光学素子(屈折率分布型波面変調レンズ等)」、「レンズ表面へのコーディング等により厚みや屈折率が変化する光学素子(波面変調ハイブリッドレンズ、レンズ面上に位相面として形成される光学素子、等)」、「光の位相分布を変調可能な液晶素子(液晶空間位相変調素子等)」を、EDoF光学系110のEDoF化手段として採用しうる。このように、光波面変調素子(光学フィルタ111(位相板))によって規則的に分散した画像形成が可能なケースだけではなく、光波面変調素子を用いた場合と同様の分散画像を、光波面変調素子を用いずに撮影レンズ110A自体によって形成可能なケースに対しても、本発明は応用可能である。
 図26に示すEDoF光学系110は、メカ的に焦点調節を行う焦点調節機構を省略することができるため小型化が可能であり、カメラ付き携帯電話や携帯情報端末に好適に搭載可能である。
 EDoF化されたEDoF光学系110を通過後の光学像は、図25に示す撮像素子112に結像され、ここで電気信号に変換される。
 撮像素子112は、パターン配列(ベイヤー配列、GストライプR/G完全市松、X-Trans配列、ハニカム配列、等)でマトリクス状に配置された複数画素によって構成され、各画素はマイクロレンズ、カラーフィルタ(本例ではRGBカラーフィルタ)及びフォトダイオードを含んで構成される。EDoF光学系110を介して撮像素子112の受光面に入射した光学像は、その受光面に配列された各フォトダイオードにより入射光量に応じた量の信号電荷に変換される。そして、各フォトダイオードに蓄積されたR・G・Bの信号電荷は、画素毎の電圧信号(画像信号)として順次出力される。
 AD変換部114は、撮像素子112から画素毎に出力されるアナログのR・G・B画像信号をデジタルのRGB画像信号に変換する。AD変換部114によりデジタルの画像信号に変換されたデジタル画像信号は、復元処理ブロック120に加えられる。
 復元処理ブロック120は、例えば、黒レベル調整部122と、ホワイトバランスゲイン部123と、ガンマ処理部124と、デモザイク処理部125と、RGB/YCrCb変換部126と、Y信号復元処理部127とを含む。
 黒レベル調整部122は、AD変換部114から出力されたデジタル画像信号に黒レベル調整を施す。黒レベル調整には、公知の方法が採用されうる。例えば、ある有効光電変換素子に着目した場合、その有効光電変換素子を含む光電変換素子行に含まれる複数のOB光電変換素子の各々に対応する暗電流量取得用信号の平均を求め、その有効光電変換素子に対応する暗電流量取得用信号から該平均を減算することで、黒レベル調整が行われる。
 ホワイトバランスゲイン部123は、黒レベルデータが調整されたデジタル画像信号に含まれるRGB各色信号のホワイトバランスゲインに応じたゲイン調整を行う。
 ガンマ処理部124は、ホワイトバランス調整されたR、G、B画像信号が所望のガンマ特性となるように中間調等の階調補正を行うガンマ補正を行う。
 デモザイク処理部125は、ガンマ補正後のR、G、B画像信号にデモザイク処理を施す。具体的には、デモザイク処理部125は、R、G、Bの画像信号に色補間処理を施すことにより、撮像素子112の各受光画素から出力される一組の画像信号(R信号、G信号、B信号)を生成する。すなわち、色デモザイク処理前は、各受光画素からの画素信号はR、G、Bの画像信号のいずれかであるが、色デモザイク処理後は、各受光画素に対応するR、G、B信号の3つの画素信号の組が出力されることとなる。
 RGB/YCrCb変換部126は、デモザイク処理された画素毎のR、G、B信号を、輝度信号Yと色差信号Cr、Cbに変換し、画素毎の輝度信号Y及び色差信号Cr、Cbを出力する。
 Y信号復元処理部127は、予め記憶された復元フィルタに基づいて、RGB/YCrCb変換部126からの輝度信号Yに復元処理を行う。復元フィルタは、例えば、7×7のカーネルサイズを有するデコンボリューションカーネル(M=7、N=7のタップ数に対応)と、そのデコンボリューションカーネルに対応する演算係数(復元ゲインデータ、フィルタ係数に対応)とからなり、光学フィルタ111の位相変調分のデコンボリューション処理(逆畳み込み演算処理)に使用される。なお、復元フィルタは、光学フィルタ111に対応するものが図示しないメモリ(例えばY信号復元処理部127が付随的に設けられるメモリ)に記憶される。また、デコンボリューションカーネルのカーネルサイズは、7×7のものに限らない。
 次に、復元処理ブロック120による復元処理について説明する。図27は、図25に示す復元処理ブロック120による復元処理フローの一例を示す図である。
 黒レベル調整部122の一方の入力には、AD変換部114からデジタル画像信号が加えられており、他の入力には黒レベルデータが加えられており、黒レベル調整部1・BR>Q2は、デジタル画像信号から黒レベルデータを減算し、黒レベルデータが減算されたデジタル画像信号をホワイトバランスゲイン部123に出力する(S61)。これにより、デジタル画像信号には黒レベル成分が含まれなくなり、黒レベルを示すデジタル画像信号は0になる。
 黒レベル調整後の画像データに対し、順次、ホワイトバランスゲイン部123、ガンマ処理部124による処理が施される(S62及びS63)。
 ガンマ補正されたR、G、B信号は、デモザイク処理部125でデモザイク処理された後に、RGB/YCrCb変換部126において輝度信号Yとクロマ信号Cr、Cbに変換される(S64)。
 Y信号復元処理部127は、輝度信号Yに、EDoF光学系110の光学フィルタ111の位相変調分のデコンボリューション処理を掛ける復元処理を行う(S65)。すなわち、Y信号復元処理部127は、任意の処理対象の画素を中心とする所定単位の画素群に対応する輝度信号(ここでは7×7画素の輝度信号)と、予めメモリなどに記憶されている復元フィルタ(7×7のデコンボリューションカーネルとその演算係数)とのデコンボリューション処理(逆畳み込み演算処理)を行う。Y信号復元処理部127は、この所定単位の画素群ごとのデコンボリューション処理を撮像面の全領域をカバーするよう繰り返すことにより画像全体の像ぼけを取り除く復元処理を行う。復元フィルタは、デコンボリューション処理を施す画素群の中心の位置に応じて定められている。すなわち、近接する画素群には、共通の復元フィルタが適用される。さらに復元処理を簡略化するためには、全ての画素群に共通の復元フィルタが適用されることが好ましい。
 図28の(a)に示すように、EDoF光学系110を通過後の輝度信号の点像(光学像)は、大きな点像(ぼけた画像)として撮像素子112に結像されるが、Y信号復元処理部127でのデコンボリューション処理により、図28の(b)に示すように小さな点像(高解像度の画像)に復元される。
 上述のようにデモザイク処理後の輝度信号に復元処理をかけることで、復元処理のパラメータをRGB別々に持つ必要がなくなり、復元処理を高速化することができる。また、飛び飛びの位置にあるR・G・Bの画素に対応するR・G・Bの画像信号をそれぞれ1単位にまとめてデコンボリューション処理するのでなく、近接する画素の輝度信号同士を所定の単位にまとめ、その単位には共通の復元フィルタを適用してデコンボリューション処理するため、復元処理の精度が向上する。なお、色差信号Cr・Cbについては、人の目による視覚の特性上、復元処理で解像度を上げなくても画質的には許容される。また、JPEGのような圧縮形式で画像を記録する場合、色差信号は輝度信号よりも高い圧縮率で圧縮されるので、復元処理で解像度を上げる必要性が乏しい。こうして、復元精度の向上と処理の簡易化及び高速化を両立できる。
 以上説明したようなEDoFシステムの復元処理に対しても、本発明の各実施形態に係る点像復元処理を適用することが可能であり、特に第2実施形態~第5実施形態及びそれらの変形例がEDoFシステムに対して好適である。
 なお、上述の各実施形態では、点像復元処理部36が、デジタルカメラ10のカメラ本体14(カメラ本体コントローラ28)に設けられる態様について説明したが、コンピュータ60やサーバ80等の他の装置に点像復元処理部36が設けられてもよい。
 例えば、コンピュータ60において画像データを加工する際に、コンピュータ60に設けられる点像復元処理部によってこの画像データの点像復元処理が行われてもよい。また、サーバ80が点像復元処理部を備える場合、例えば、デジタルカメラ10やコンピュータ60からサーバ80に画像データが送信され、サーバ80の点像復元処理部においてこの画像データに対して点像復元処理が行われ、点像復元処理後の画像データ(回復画像データ)が送信元に送信・提供されるようにしてもよい。
 また、本発明を適用可能な態様はデジタルカメラ10、コンピュータ60及びサーバ80には限定されず、撮像を主たる機能とするカメラ類の他に、撮像機能に加えて撮像以外の他の機能(通話機能、通信機能、その他のコンピュータ機能)を備えるモバイル機器類に対しても適用可能である。本発明を適用可能な他の態様としては、例えば、カメラ機能を有する携帯電話機やスマートフォン、PDA(Personal Digital Assistants)、携帯型ゲーム機が挙げられる。以下、本発明を適用可能なスマートフォンの一例について説明する。
 <スマートフォンの構成>
 図29は、本発明の撮影装置の一実施形態であるスマートフォン201の外観を示すものである。図29に示すスマートフォン201は、平板状の筐体202を有し、筐体202の一方の面に表示部としての表示パネル221と、入力部としての操作パネル222とが一体となった表示入力部220を備えている。また、係る筐体202は、スピーカ231と、マイクロホン232、操作部240と、カメラ部241とを備えている。なお、筐体202の構成はこれに限定されず、例えば、表示部と入力部とが独立した構成を採用したり、折り畳み構造やスライド機構を有する構成を採用することもできる。
 図30は、図29に示すスマートフォン201の構成を示すブロック図である。図30に示すように、スマートフォンの主たる構成要素として、無線通信部210と、表示入力部220と、通話部230と、操作部240と、カメラ部241と、記憶部250と、外部入出力部260と、GPS(Global Positioning System)受信部270と、モーションセンサ部280と、電源部290と、主制御部200とを備える。また、スマートフォン201の主たる機能として、基地局装置BSと移動通信網NWとを介した移動無線通信を行う無線通信機能を備える。
 無線通信部210は、主制御部200の指示にしたがって、移動通信網NWに収容された基地局装置BSに対し無線通信を行うものである。係る無線通信を使用して、音声データ、画像データ等の各種ファイルデータ、電子メールデータなどの送受信や、Webデータやストリーミングデータなどの受信を行う。
 表示入力部220は、主制御部200の制御により、画像(静止画像及び動画像)や文字情報などを表示して視覚的にユーザに情報を伝達し、表示した情報に対するユーザ操作を検出する、いわゆるタッチパネルであって、表示パネル221と、操作パネル222とを備える。
 表示パネル221は、LCD(Liquid Crystal Display)、OELD(Organic Electro-Luminescence Display)などを表示デバイスとして用いたものである。操作パネル222は、表示パネル221の表示面上に表示される画像を視認可能に載置され、ユーザの指や尖筆によって操作される一又は複数の座標を検出するデバイスである。係るデバイスをユーザの指や尖筆によって操作すると、操作に起因して発生する検出信号を主制御部200に出力する。次いで、主制御部200は、受信した検出信号に基づいて、表示パネル221上の操作位置(座標)を検出する。
 図29に示すように、本発明の撮影装置の一実施形態として例示しているスマートフォン201の表示パネル221と操作パネル222とは一体となって表示入力部220を構成しているが、操作パネル222が表示パネル221を完全に覆うような配置となっている。係る配置を採用した場合、操作パネル222は、表示パネル221外の領域についても、ユーザ操作を検出する機能を備えてもよい。換言すると、操作パネル222は、表示パネル221に重なる重畳部分についての検出領域(以下、表示領域と称する)と、それ以外の表示パネル221に重ならない外縁部分についての検出領域(以下、非表示領域と称する)とを備えていてもよい。
 なお、表示領域の大きさと表示パネル221の大きさとを完全に一致させても良いが、両者を必ずしも一致させる必要は無い。また、操作パネル222が、外縁部分と、それ以外の内側部分の2つの感応領域を備えていてもよい。更に、外縁部分の幅は、筐体202の大きさなどに応じて適宜設計されるものである。更にまた、操作パネル222で採用される位置検出方式としては、マトリクススイッチ方式、抵抗膜方式、表面弾性波方式、赤外線方式、電磁誘導方式、静電容量方式などが挙げられ、いずれの方式を採用することもできる。
 通話部230は、スピーカ231やマイクロホン232を備え、マイクロホン232を通じて入力されたユーザの音声を主制御部200にて処理可能な音声データに変換して主制御部200に出力したり、無線通信部210あるいは外部入出力部260により受信された音声データを復号してスピーカ231から出力するものである。また、図29に示すように、例えば、スピーカ231を表示入力部220が設けられた面と同じ面に搭載し、マイクロホン232を筐体202の側面に搭載することができる。
 操作部240は、キースイッチなどを用いたハードウェアキーであって、ユーザからの指示を受け付けるものである。例えば、図29に示すように、操作部240は、スマートフォン201の筐体202の側面に搭載され、指などで押下されるとオンとなり、指を離すとバネなどの復元力によってオフ状態となる押しボタン式のスイッチである。
 記憶部250は、主制御部200の制御プログラムや制御データ、アプリケーションソフトウェア、通信相手の名称や電話番号などを対応づけたアドレスデータ、送受信した電子メールのデータ、WebブラウジングによりダウンロードしたWebデータや、ダウンロードしたコンテンツデータを記憶し、またストリーミングデータなどを一時的に記憶するものである。また、記憶部250は、スマートフォン内蔵の内部記憶部251と着脱自在な外部メモリスロットを有する外部記憶部252により構成される。なお、記憶部250を構成するそれぞれの内部記憶部251と外部記憶部252は、フラッシュメモリタイプ(flash memory type)、ハードディスクタイプ(hard disk type)、マルチメディアカードマイクロタイプ(multimedia card micro type)、カードタイプのメモリ(例えば、MicroSD(登録商標)メモリ等)、RAM(Random Access Memory)、ROM(Read Only Memory)などの格納媒体を用いて実現される。
 外部入出力部260は、スマートフォン201に連結される全ての外部機器とのインターフェースの役割を果たすものであり、他の外部機器に通信等(例えば、ユニバーサルシリアルバス(USB)、IEEE1394など)又はネットワーク(例えば、インターネット、無線LAN、ブルートゥース(Bluetooth)(登録商標)、RFID(Radio Frequency Identification)、赤外線通信(Infrared Data Association:IrDA)(登録商標)、UWB(Ultra Wideband)(登録商標)、ジグビー(ZigBee)(登録商標)など)により直接的又は間接的に接続するためのものである。
 スマートフォン201に連結される外部機器としては、例えば、有/無線ヘッドセット、有/無線外部充電器、有/無線データポート、カードソケットを介して接続されるメモリカード(Memory card)やSIM(Subscriber Identity Module Card)/UIM(User Identity Module Card)カード、オーディオ・ビデオI/O(Input/Output)端子を介して接続される外部オーディオ・ビデオ機器、無線接続される外部オーディオ・ビデオ機器、有/無線接続されるスマートフォン、有/無線接続されるパーソナルコンピュータ、有/無線接続されるPDA、有/無線接続されるパーソナルコンピュータ、イヤホンなどがある。外部入出力部は、このような外部機器から伝送を受けたデータをスマートフォン201の内部の各構成要素に伝達することや、スマートフォン201の内部のデータを外部機器に伝送することが可能である。
 GPS受信部270は、主制御部200の指示にしたがって、GPS衛星ST1~STnから送信されるGPS信号を受信し、受信した複数のGPS信号に基づく測位演算処理を実行し、スマートフォン201の緯度、経度、高度からなる位置を検出する。GPS受信部270は、無線通信部210や外部入出力部260(例えば、無線LAN)から位置情報を取得できる時には、その位置情報を用いて位置を検出することもできる。
 モーションセンサ部280は、例えば、3軸の加速度センサなどを備え、主制御部200の指示にしたがって、スマートフォン201の物理的な動きを検出する。スマートフォン201の物理的な動きを検出することにより、スマートフォン201の動く方向や加速度が検出される。係る検出結果は、主制御部200に出力されるものである。
 電源部290は、主制御部200の指示にしたがって、スマートフォン201の各部に、バッテリ(図示しない)に蓄えられる電力を供給するものである。
 主制御部200は、マイクロプロセッサを備え、記憶部250が記憶する制御プログラムや制御データにしたがって動作し、スマートフォン201の各部を統括して制御するものである。また、主制御部200は、無線通信部210を通じて、音声通信やデータ通信を行うために、通信系の各部を制御する移動通信制御機能と、アプリケーション処理機能を備える。
 アプリケーション処理機能は、記憶部250が記憶するアプリケーションソフトウェアにしたがって主制御部200が動作することにより実現するものである。アプリケーション処理機能としては、例えば、外部入出力部260を制御して対向機器とデータ通信を行う赤外線通信機能や、電子メールの送受信を行う電子メール機能、Webページを閲覧するWebブラウジング機能などがある。
 また、主制御部200は、受信データやダウンロードしたストリーミングデータなどの画像データ(静止画像や動画像のデータ)に基づいて、映像を表示入力部220に表示する等の画像処理機能を備える。画像処理機能とは、主制御部200が、上記画像データを復号し、係る復号結果に画像処理を施して、画像を表示入力部220に表示する機能のことをいう。
 更に、主制御部200は、表示パネル221に対する表示制御と、操作部240、操作パネル222を通じたユーザ操作を検出する操作検出制御を実行する。
 表示制御の実行により、主制御部200は、アプリケーションソフトウェアを起動するためのアイコンや、スクロールバーなどのソフトウェアキーを表示したり、あるいは電子メールを作成するためのウィンドウを表示する。なお、スクロールバーとは、表示パネル221の表示領域に収まりきれない大きな画像などについて、画像の表示部分を移動する指示を受け付けるためのソフトウェアキーのことをいう。
 また、操作検出制御の実行により、主制御部200は、操作部240を通じたユーザ操作を検出したり、操作パネル222を通じて、上記アイコンに対する操作や、上記ウィンドウの入力欄に対する文字列の入力を受け付けたり、あるいは、スクロールバーを通じた表示画像のスクロール要求を受け付ける。
 更に、操作検出制御の実行により主制御部200は、操作パネル222に対する操作位置が、表示パネル221に重なる重畳部分(表示領域)か、それ以外の表示パネル221に重ならない外縁部分(非表示領域)かを判定し、操作パネル222の感応領域や、ソフトウェアキーの表示位置を制御するタッチパネル制御機能を備える。
 また、主制御部200は、操作パネル222に対するジェスチャ操作を検出し、検出したジェスチャ操作に応じて、予め設定された機能を実行することもできる。ジェスチャ操作とは、従来の単純なタッチ操作ではなく、指などによって軌跡を描いたり、複数の位置を同時に指定したり、あるいはこれらを組み合わせて、複数の位置から少なくとも1つについて軌跡を描く操作を意味する。
 カメラ部241は、CMOS(Complementary Metal Oxide Semiconductor)やCCD(Charge-Coupled Device)などの撮像素子を用いて電子撮影するデジタルカメラである。また、カメラ部241は、主制御部200の制御により、撮像によって得た画像データを例えばJPEG(Joint Photographic coding Experts Group)などの圧縮した画像データに変換し、記憶部250に記録したり、入出力部260や無線通信部210を通じて出力することができる。図29に示すにスマートフォン201において、カメラ部241は表示入力部220と同じ面に搭載されているが、カメラ部241の搭載位置はこれに限らず、表示入力部220の背面に搭載されてもよいし、あるいは、複数のカメラ部241が搭載されてもよい。なお、複数のカメラ部241が搭載されている場合、撮影に供するカメラ部241を切り替えて単独にて撮影したり、あるいは、複数のカメラ部241を同時に使用して撮影することもできる。
 また、カメラ部241はスマートフォン201の各種機能に利用することができる。例えば、表示パネル221にカメラ部241で取得した画像を表示することや、操作パネル222の操作入力のひとつとして、カメラ部241の画像を利用することができる。また、GPS受信部270が位置を検出する際に、カメラ部241からの画像を参照して位置を検出することもできる。更には、カメラ部241からの画像を参照して、3軸の加速度センサを用いずに、或いは、3軸の加速度センサと併用して、スマートフォン201のカメラ部241の光軸方向を判断することや、現在の使用環境を判断することもできる。勿論、カメラ部241からの画像をアプリケーションソフトウェア内で利用することもできる。
 その他、静止画又は動画の画像データにGPS受信部270により取得した位置情報、マイクロホン232により取得した音声情報(主制御部等により、音声テキスト変換を行ってテキスト情報となっていてもよい)、モーションセンサ部280により取得した姿勢情報等などを付加して記憶部250に記録したり、入出力部260や無線通信部210を通じて出力することもできる。
 上述のスマートフォン201において、点像復元処理に関連する上述の各処理部は、例えば主制御部200、記憶部250等によって適宜実現可能である。
 本発明は上述した実施形態に限定されず、本発明の精神を逸脱しない範囲で種々の変形が可能であることは言うまでもない。
10…デジタルカメラ、12…レンズユニット、14…カメラ本体、16…レンズ、17…絞り、18…光学系操作部、20…レンズユニットコントローラ、22…レンズユニット入出力部、26…撮像素子、28…カメラ本体コントローラ、30…カメラ本体入出力部、32…入出力インターフェース、34…デバイス制御部、35…画像処理部、36…点像復元処理部、37…画像解析部、38…リンギング判定部、39…復元処理判定部、40…画像取得条件取得部、41…オフセット補正処理、42…WB補正処理、43…デモザイク処理、44…ガンマ補正処理、45…色差変換処理、46…点像復元処理、47…色信号変換処理、48…画像情報取得部、55…フィルタ選択部、56…演算処理部、57…復元フィルタ記憶部、60…コンピュータ、62…コンピュータ入出力部、64…コンピュータコントローラ、66…ディスプレイ、70…インターネット、80…サーバ、82…サーバ入出力部、84…サーバコントローラ、86…復元処理情報取得部、101…撮像モジュール、110…EDoF光学系、110A…撮影レンズ、111…光学フィルタ、112…撮像素子、114…AD変換部、120…復元処理ブロック、122…黒レベル調整部、123…ホワイトバランスゲイン部、124…ガンマ処理部、125…デモザイク処理部、126…変換部、127…Y信号復元処理部、200…主制御部、201…スマートフォン、202…筐体、210…無線通信部、220…表示入力部、221…表示パネル、222…操作パネル、230…通話部、231…スピーカ、232…マイクロホン、240…操作部、241…カメラ部、250…記憶部、251…内部記憶部、252…外部記憶部、260…外部入出力部、270…GPS受信部、280…モーションセンサ部、290…電源部

Claims (25)

  1.  光学系を用いた撮影により撮像素子から取得される原画像データを解析して取得される画像解析データ及び前記原画像データの取得条件を示す画像取得条件データのうち、少なくともいずれか一方を含む画像情報を取得する画像情報取得部と、
     前記原画像データに対し、前記光学系の点拡がり関数に基づく復元フィルタを用いた復元処理を行って回復画像データを得る復元処理部と、
     前記画像情報が、前記復元処理により前記回復画像データにリンギングが生じる条件に該当するか否か判定するリンギング判定部と、
     前記リンギング判定部の判定結果に基づいて、画像処理をコントロールする処理制御部と、を備え、
     前記復元処理は、階調補正後の前記原画像データに対して行われる画像処理装置。
  2.  光学系を用いた撮影により撮像素子から取得される原画像データを解析して取得される画像解析データ及び前記原画像データの取得条件を示す画像取得条件データのうち、少なくともいずれか一方を含む画像情報を取得する画像情報取得部と、
     前記原画像データに対し、前記光学系の点拡がり関数に基づく復元フィルタを用いた復元処理を行って回復画像データを得る復元処理部と、
     前記原画像データの階調補正を行う階調補正部と、
     前記画像情報が、前記復元処理により前記回復画像データにリンギングが生じる条件に該当するか否か判定するリンギング判定部と、
     前記リンギング判定部の判定結果に基づいて、前記復元処理をコントロールする処理制御部と、を備え、
     前記処理制御部は、前記リンギング判定部の判定結果に基づいて、前記階調補正前の前記原画像データ及び前記階調補正後の前記原画像データのうちいずれに対して前記復元処理を行うか決定する画像処理装置。
  3.  前記階調補正は、対数化処理による階調補正であり、
     前記復元フィルタは、前記対数化処理前の画像データに対応したフィルタ係数から成る請求項1又は2に記載の画像処理装置。
  4.  前記階調補正は、対数化処理による階調補正であり、
     前記復元フィルタは、前記対数化処理後の画像データに対応したフィルタ係数から成る請求項1又は2に記載の画像処理装置。
  5.  前記復元処理は、前記原画像データの振幅成分のみを復元して前記回復画像データを得る処理である請求項1から4のいずれか1項に記載の画像処理装置。
  6.  前記復元処理は、前記原画像データの振幅成分及び位相成分を復元して前記回復画像データを得る処理である請求項1から4のいずれか1項に記載の画像処理装置。
  7.  前記復元処理が、前記原画像データの振幅成分のみを復元して前記回復画像データを得る処理であるか、前記原画像データの振幅成分及び位相成分を復元して前記回復画像データを得る処理であるかについての復元処理情報を取得する復元処理情報取得部を更に備え、
     前記処理制御部は、前記リンギング判定部の判定結果に加え、前記復元処理情報取得部が取得する前記復元処理情報に基づいて、前記階調補正前の前記原画像データ及び前記階調補正後の前記原画像データのうちいずれに対して前記復元処理を行うか決定する請求項2に記載の画像処理装置。
  8.  前記画像情報取得部は、画素値が飽和した画素データ又は閾値よりも大きな画素値を有する画素データが、前記原画像データに含まれるか否かを示す前記画像解析データを含む前記画像情報を取得する請求項1から7のいずれか1項に記載の画像処理装置。
  9.  前記画像取得条件データは、前記原画像データを取得する撮影に用いられた前記光学系の情報を含む請求項1から8のいずれか1項に記載の画像処理装置。
  10.  前記光学系の情報は、前記原画像データを取得する撮影に用いられた前記光学系のレンズ種類、絞り値、ズーム値のうち少なくともいずれか1つを含む請求項9に記載の画像処理装置。
  11.  前記処理制御部は、前記リンギング判定部の判定結果に基づいて、前記復元処理部における前記復元処理の実行の有無を決定する請求項1から10のいずれか1項に記載の画像処理装置。
  12.  前記処理制御部は、前記リンギング判定部の判定結果に基づいて、前記復元処理で用いる前記復元フィルタを決定する請求項1から11のいずれか1項に記載の画像処理装置。
  13.  前記原画像データの階調補正を行う階調補正部を備え、
     前記処理制御部は、前記リンギング判定部の判定結果に基づいて、前記階調補正部における前記階調補正をコントロールする請求項1から12のいずれか1項に記載の画像処理装置。
  14.  前記原画像データは、輝度データを含み、
     前記復元処理部は、前記原画像データの前記輝度データに対して前記復元処理を行う請求項1から13のいずれか1項に記載の画像処理装置。
  15.  前記原画像データは、色データを含み、
     前記復元処理部は、前記原画像データの前記色データに対して前記復元処理を行う請求項1から13のいずれか1項に記載の画像処理装置。
  16.  前記処理制御部は、前記リンギング判定部の判定結果に基づいて、前記原画像データの輝度データ及び色データのうちいずれに対して前記復元処理を行うか決定し、
     前記復元処理部は、前記原画像データの輝度データ及び色データのうち前記処理制御部によって決定されたデータに対して前記復元処理を行う請求項1から13のいずれか1項に記載の画像処理装置。
  17.  前記光学系は、位相を変調して被写界深度を拡大させるレンズ部を有する請求項1から16のいずれか1項に記載の画像処理装置。
  18.  前記処理制御部は、前記原画像データ毎に、前記画像処理又は前記復元処理をコントロールする請求項1から17のいずれか1項に記載の画像処理装置。
  19.  前記処理制御部は、前記原画像データを構成する画素データ毎に、前記画像処理又は前記復元処理をコントロールする請求項1から17のいずれか1項に記載の画像処理装置。
  20.  光学系を用いた撮影により原画像データを出力する撮像素子と、
     請求項1から19のいずれか1項に記載の画像処理装置と、を備える撮像装置。
  21.  光学系を用いた撮影により撮像素子から取得される原画像データを解析して取得される画像解析データ及び前記原画像データの取得条件を示す画像取得条件データのうち、少なくともいずれか一方を含む画像情報を取得する画像情報取得ステップと、
     前記原画像データに対し、前記光学系の点拡がり関数に基づく復元フィルタを用いた復元処理を行って回復画像データを得る復元処理ステップと、
     前記画像情報が、前記復元処理により前記回復画像データにリンギングが生じる条件に該当するか否か判定するリンギング判定ステップと、を含み、
     前記リンギング判定ステップの判定結果に基づいて、画像処理がコントロールされ、
     前記復元処理は、階調補正後の前記原画像データに対して行われる画像処理方法。
  22.  光学系を用いた撮影により撮像素子から取得される原画像データを解析して取得される画像解析データ及び前記原画像データの取得条件を示す画像取得条件データのうち、少なくともいずれか一方を含む画像情報を取得する画像情報取得ステップと、
     前記原画像データに対し、前記光学系の点拡がり関数に基づく復元フィルタを用いた復元処理を行って回復画像データを得る復元処理ステップと、
     前記原画像データの階調補正を行う階調補正ステップと、
     前記画像情報が、前記復元処理により前記回復画像データにリンギングが生じる条件に該当するか否か判定するリンギング判定ステップと、を含み
     前記リンギング判定ステップの判定結果に基づいて、前記復元処理はコントロールされ、
     前記リンギング判定ステップの判定結果に基づいて、前記階調補正前の前記原画像データ及び前記階調補正後の前記原画像データのうちいずれに対して前記復元処理を行うかが決定される画像処理方法。
  23.  光学系を用いた撮影により撮像素子から取得される原画像データを解析して取得される画像解析データ及び前記原画像データの取得条件を示す画像取得条件データのうち、少なくともいずれか一方を含む画像情報を取得する手順と、
     前記原画像データに対し、前記光学系の点拡がり関数に基づく復元フィルタを用いた復元処理を行って回復画像データを得る手順と、
     前記画像情報が、前記復元処理により前記回復画像データにリンギングが生じる条件に該当するか否か判定する手順と、をコンピュータに実行させるためのプログラムであって、
     リンギングが生じる条件に前記画像情報が該当するか否かの判定結果に基づいて、画像処理がコントロールされ、
     前記復元処理は、階調補正後の前記原画像データに対して行われるプログラム。
  24.  光学系を用いた撮影により撮像素子から取得される原画像データを解析して取得される画像解析データ及び前記原画像データの取得条件を示す画像取得条件データのうち、少なくともいずれか一方を含む画像情報を取得する手順と、
     前記原画像データに対し、前記光学系の点拡がり関数に基づく復元フィルタを用いた復元処理を行って回復画像データを得る手順と、
     前記原画像データの階調補正を行う手順と、
     前記画像情報が、前記復元処理により前記回復画像データにリンギングが生じる条件に該当するか否か判定する手順と、をコンピュータに実行させるためのプログラムであって、
     リンギングが生じる条件に前記画像情報が該当するか否かの判定結果に基づいて、前記復元処理はコントロールされ、
     リンギングが生じる条件に前記画像情報が該当するか否かの判定結果に基づいて、前記階調補正前の前記原画像データ及び前記階調補正後の前記原画像データのうちいずれに対して前記復元処理を行うかが決定されるプログラム。
  25.  請求項23又は24のいずれかに係るプログラムのコンピュータ読み取り可能なコードが記録された、非一時的記録媒体。
PCT/JP2013/062468 2013-03-28 2013-04-26 画像処理装置、撮像装置、画像処理方法及びプログラム並びに記録媒体 Ceased WO2014155755A1 (ja)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP2015507926A JP5759085B2 (ja) 2013-03-28 2013-04-26 画像処理装置、撮像装置、画像処理方法及びプログラム並びに記録媒体
CN201380051298.2A CN104704806B (zh) 2013-03-28 2013-04-26 图像处理装置、摄像装置以及图像处理方法
DE112013004507.9T DE112013004507T5 (de) 2013-03-28 2013-04-26 Bildverarbeitungsvorrichtung, Bilderfassungsvorrichtung, Bildverarbeitungsverfahren, Programm und Aufzeichnungsmedium
US14/672,877 US9357107B2 (en) 2013-03-28 2015-03-30 Image-processing device, image-capturing device, image-processing method, and recording medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2013-069688 2013-03-28
JP2013069688 2013-03-28

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/672,877 Continuation US9357107B2 (en) 2013-03-28 2015-03-30 Image-processing device, image-capturing device, image-processing method, and recording medium

Publications (1)

Publication Number Publication Date
WO2014155755A1 true WO2014155755A1 (ja) 2014-10-02

Family

ID=51622798

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2013/062468 Ceased WO2014155755A1 (ja) 2013-03-28 2013-04-26 画像処理装置、撮像装置、画像処理方法及びプログラム並びに記録媒体

Country Status (5)

Country Link
US (1) US9357107B2 (ja)
JP (1) JP5759085B2 (ja)
CN (1) CN104704806B (ja)
DE (1) DE112013004507T5 (ja)
WO (1) WO2014155755A1 (ja)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016184888A (ja) * 2015-03-26 2016-10-20 キヤノン株式会社 画像処理装置、撮像装置、画像処理方法及びコンピュータプログラム
WO2016171091A1 (ja) * 2015-04-23 2016-10-27 富士フイルム株式会社 画像処理装置、撮像装置、画像処理方法、及びプログラム
WO2016171089A1 (ja) * 2015-04-23 2016-10-27 富士フイルム株式会社 画像処理装置、撮像装置、画像処理方法、及びプログラム
US10395347B2 (en) 2015-04-23 2019-08-27 Fujifilm Corporation Image processing device, imaging device, image processing method, and image processing program
JP2025019235A (ja) * 2020-04-10 2025-02-06 キヤノン株式会社 画像処理方法、画像処理装置、画像処理システム、およびプログラム

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014136322A1 (ja) * 2013-03-04 2014-09-12 富士フイルム株式会社 復元フィルタ生成装置及び方法、画像処理装置及び方法、撮像装置、プログラム並びに記録媒体
JP2015154307A (ja) * 2014-02-17 2015-08-24 ソニー株式会社 画像処理装置、画像処理方法、およびプログラム
WO2015151608A1 (ja) * 2014-03-31 2015-10-08 富士フイルム株式会社 画像処理装置、撮影装置、画像処理方法及び画像処理プログラム
US9554121B2 (en) * 2015-01-30 2017-01-24 Electronics And Telecommunications Research Institute 3D scanning apparatus and method using lighting based on smart phone
US10250782B2 (en) * 2015-10-08 2019-04-02 Samsung Electro-Mechanics Co., Ltd. Camera module, electronic device, and method of operating the same using pre-estimated lens-customized point spread function (PSF)
JP6790384B2 (ja) * 2016-03-10 2020-11-25 富士ゼロックス株式会社 画像処理装置及びプログラム
US11602265B2 (en) * 2016-03-31 2023-03-14 Sony Corporation Control device, endoscopic imaging device, control method, program, and endoscopic system
US10638060B2 (en) * 2016-06-28 2020-04-28 Intel Corporation Color correction of RGBIR sensor stream based on resolution recovery of RGB and IR channels
JP6241576B1 (ja) * 2016-12-06 2017-12-06 三菱電機株式会社 検査装置及び検査方法
TWI639135B (zh) 2017-11-16 2018-10-21 國立高雄科技大學 模糊影像之復原方法
US11575865B2 (en) 2019-07-26 2023-02-07 Samsung Electronics Co., Ltd. Processing images captured by a camera behind a display
US11721001B2 (en) * 2021-02-16 2023-08-08 Samsung Electronics Co., Ltd. Multiple point spread function based image reconstruction for a camera behind a display
US11722796B2 (en) 2021-02-26 2023-08-08 Samsung Electronics Co., Ltd. Self-regularizing inverse filter for image deblurring
US12393765B2 (en) 2021-08-06 2025-08-19 Samsung Electronics Co., Ltd. Automating search for improved display structure for under-display camera systems
US12216277B2 (en) 2021-10-14 2025-02-04 Samsung Electronics Co., Ltd. Optical element for deconvolution
US12482075B2 (en) 2022-06-08 2025-11-25 Samsung Electronics Co., Ltd. Restoring images using deconvolution
CN116485786B (zh) * 2023-06-15 2023-09-01 贵州医科大学附属医院 一种内分泌试纸智能分析方法

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008160547A (ja) * 2006-12-25 2008-07-10 Sanyo Electric Co Ltd 動き検出装置及び方法並びに撮像装置
JP2012049759A (ja) * 2010-08-26 2012-03-08 Fujifilm Corp 撮像モジュールおよび画像信号処理方法
JP2013051599A (ja) * 2011-08-31 2013-03-14 Canon Inc 画像処理装置及び画像処理方法
JP2013084247A (ja) * 2011-09-26 2013-05-09 Canon Inc 画像処理装置及び方法

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002300461A (ja) * 2001-03-30 2002-10-11 Minolta Co Ltd 画像復元装置、画像復元方法、プログラム及び記録媒体
JP2006129236A (ja) * 2004-10-29 2006-05-18 Sanyo Electric Co Ltd リンギング除去装置およびリンギング除去プログラムを記録したコンピュータ読み取り可能な記録媒体
JP2007189481A (ja) * 2006-01-13 2007-07-26 Olympus Imaging Corp デジタル一眼レフカメラ
JP2011059813A (ja) 2009-09-07 2011-03-24 Nikon Corp 画像処理装置、撮影装置及びプログラム
JP5534832B2 (ja) 2010-01-21 2014-07-02 キヤノン株式会社 画像処理装置、画像処理方法、及びプログラム
JP5188651B2 (ja) * 2010-03-31 2013-04-24 キヤノン株式会社 画像処理装置、およびそれを用いた撮像装置
JP6045185B2 (ja) 2011-06-14 2016-12-14 キヤノン株式会社 画像処理装置、画像処理方法及びプログラム

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008160547A (ja) * 2006-12-25 2008-07-10 Sanyo Electric Co Ltd 動き検出装置及び方法並びに撮像装置
JP2012049759A (ja) * 2010-08-26 2012-03-08 Fujifilm Corp 撮像モジュールおよび画像信号処理方法
JP2013051599A (ja) * 2011-08-31 2013-03-14 Canon Inc 画像処理装置及び画像処理方法
JP2013084247A (ja) * 2011-09-26 2013-05-09 Canon Inc 画像処理装置及び方法

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016184888A (ja) * 2015-03-26 2016-10-20 キヤノン株式会社 画像処理装置、撮像装置、画像処理方法及びコンピュータプログラム
WO2016171091A1 (ja) * 2015-04-23 2016-10-27 富士フイルム株式会社 画像処理装置、撮像装置、画像処理方法、及びプログラム
WO2016171089A1 (ja) * 2015-04-23 2016-10-27 富士フイルム株式会社 画像処理装置、撮像装置、画像処理方法、及びプログラム
JPWO2016171091A1 (ja) * 2015-04-23 2018-01-11 富士フイルム株式会社 画像処理装置、撮像装置、画像処理方法、及びプログラム
JPWO2016171089A1 (ja) * 2015-04-23 2018-01-18 富士フイルム株式会社 画像処理装置、撮像装置、画像処理方法、及びプログラム
US10326947B2 (en) 2015-04-23 2019-06-18 Fujifilm Corporation Image processing device, imaging device, image processing method, and program
US10395347B2 (en) 2015-04-23 2019-08-27 Fujifilm Corporation Image processing device, imaging device, image processing method, and image processing program
JP2025019235A (ja) * 2020-04-10 2025-02-06 キヤノン株式会社 画像処理方法、画像処理装置、画像処理システム、およびプログラム

Also Published As

Publication number Publication date
DE112013004507T5 (de) 2015-12-31
US20150207962A1 (en) 2015-07-23
US9357107B2 (en) 2016-05-31
JP5759085B2 (ja) 2015-08-05
JPWO2014155755A1 (ja) 2017-02-16
CN104704806A (zh) 2015-06-10
CN104704806B (zh) 2017-08-29

Similar Documents

Publication Publication Date Title
JP5759085B2 (ja) 画像処理装置、撮像装置、画像処理方法及びプログラム並びに記録媒体
JP5752866B2 (ja) 画像処理装置、撮像装置、画像処理方法及びプログラム並びに記録媒体
US9898807B2 (en) Image processing device, imaging device, image processing method, and program
JP5933105B2 (ja) 画像処理装置、撮像装置、フィルタ生成装置、画像復元方法及びプログラム
US9710895B2 (en) Image processing device, image capture device, image processing method, and program
JP5933129B2 (ja) 画像処理装置、撮像装置、画像処理方法、及びプログラム
US9866750B2 (en) Image processing device, imaging device, image processing method, and image processing program
US9892495B2 (en) Image processing device, imaging device, image processing method, and image processing program
WO2015015944A1 (ja) 画像処理装置、撮像装置、画像処理方法及びプログラム
WO2015015949A1 (ja) 撮像装置、撮像方法及び画像処理装置
CN105453534B (zh) 图像处理装置及方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13879736

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2015507926

Country of ref document: JP

Kind code of ref document: A

WWE Wipo information: entry into national phase

Ref document number: 112013004507

Country of ref document: DE

Ref document number: 1120130045079

Country of ref document: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13879736

Country of ref document: EP

Kind code of ref document: A1