This application claims priority to Japanese Patent Application No. 2007-192978 filed on Jul. 25, 2007, which is incorporated herein by reference in its entirety.
The present invention relates to an image processing system, an imaging device used in the system, and an output device, and more particularly to an image restoration technique.
A digital camera is recently equipped with a camera shake compensation mechanism for reducing blurring caused by hand movement (hereinafter often called “camera shake”) during image-capturing operation. Compensation techniques, which are available for the camera shake compensation mechanism, include an electronic camera shake compensation technique. The electronic camera shake compensation technique includes narrowing a photographable area to a given size and reading an image into buffer memory during image-capturing operation, computing the amount of deviation by comparing a first-captured image with a subsequently-captured image, and capturing an image by means of automatically shifting the photographable area and recording the captured image. The technique also includes an optical camera shake compensation technique including incorporating into a lens a correction lens with a built-in vibration gyroscopic mechanism and shifting the correction lens in the direction toward canceling camera shake. Another technique is an image sensor shift camera shake compensation technique including detecting camera shake by means of a vibration gyroscopic mechanism and shifting an image sensor, such as a CCD, CMOS, and the like, in accordance with camera shake, to thus compensate for an optical axis. Further, a technique for compensating for camera shake by means of processing a captured image to restore an original image has also been proposed. A technique using a PSF (Point-Spread Function) showing the amount of camera shake has been known in connection with processing performed after an image-capturing operation.
However, as the number of pixels increases in a digital camera, restoration of an image having a large number of pixels entails a heavy load on a CPU and consumes a great deal of time. Further, using a high-performance CPU leads to an increase in cost and an increase in power consumption.
The present invention provides a system and an apparatus which enable a reduction in processing load imposed on a CPU of an imaging device. The present invention also provides high-speed restoration and output of an original image even when an image having an arbitrary number of pixels is captured by means of image-capturing operation of an image capture device, such as a digital camera.
Specifically, the present invention provides an image processing system including an imaging device and an output device. More particularly, the imaging device has a recording section for capturing an image of a subject; and recording the image as first image data and associating blurring occurred during image-capturing operation with the first image data as first movement locus data or recording the first movement locus data in a header of the first image data; and
the system further comprises
an image conversion section which converts a resolution of the first image data in accordance with a resolution of the output device, to thus generate second image data;
a movement locus conversion section which converts a resolution of the first movement locus data in accordance with the resolution of the output device, thereby generating second movement locus data;
image restoration means which generates restored image data by means of compensating for the blurring of the second image data through use of the second movement locus data; and
an output section for outputting the restored image data.
The present invention also provides an imaging device used in an image processing system including an output device, comprising:
a recording section for capturing an image of a subject; and recording the image as first image data and associating blurring occurred during image-capturing operation with the first image data as first movement locus data or recording the first movement locus data in a header of the first image data;
an image conversion section which converts a resolution of the first image data in accordance with a resolution of the output device, to thus generate second image data;
a movement locus conversion section which converts a resolution of the first movement locus data in accordance with the resolution of the output device, thereby generating second movement locus data; and
a section for outputting the second image data and the second movement locus data to the output device, wherein generation of the second image data, generation of the second movement locus data, and processing for supplying the second image data and the second movement locus data are performed in accordance with a request for selecting the first image data and a request for outputting the first image data to the output device.
Moreover, the present invention provides an output device used in an image processing system including an imaging device, comprising:
a section for inputting first image data supplied from the imaging device and first movement locus data corresponding to blurring occurred during image-capturing operation;
an image conversion section which converts a resolution of the first image data in accordance with an output resolution, thereby generating second image data;
a movement locus conversion section which converts a resolution of the first movement locus data in accordance with the output resolution, to thus generate second movement locus data;
an image restoration section which generates restored image data by means of compensating for the blurring of the second image data through use of the second movement locus data; and
an output section for outputting the restored image data.
According to the present invention, an image can be output by means of compensating for camera shake occurred during image-capturing operation while lessening processing load imposed on an imaging device.
The invention will be more clearly comprehended by reference to the embodiments provided below. However, the scope of the invention is not limited to those embodiments.
Preferred embodiments of the present invention will be described in detail by reference to the following figures, wherein:
An embodiment of the present invention will be described hereunder by reference to the drawings.
In
The digital camera 100 has a CCD 10, an analogue front-end (AFE) processor 12 for converting an analogue signal to a digital signal, an image processing IC 14, a gyroscopic sensor 24, a recording medium 26, an input key 28, and an LCD 29.
The CCD 10 converts light from the subject into an electric signal and outputs an analogue image signal. An imaging element is not limited to the CCD 10, and CMOS may also be used. The analogue front-end (AFE) 12 subjects an analogue image signal to correlation double sampling, thereby converting an analogue image signal into a digital image signal. The digital image signal is supplied to an image processing IC 14 having, as functional blocks, a control section 16, a camera shake detection section 18, a storage section 20, and an image processing section 22. Operation timing of the CCD 10 and operation timing of the AFE 12 are controlled in accordance with a timing signal from a timing generator.
The image processing section 22 subjects a digital image signal from the AFE 12 to YC separation, and further subjects the YC-separated signal to known image processing, that is, edge enhancement processing, white balance adjustment, color correction processing, and γ correction processing. The image data having undergone image processing are subjected to, e.g., JPEG compression, and stored in the storage section 20. Further, the image data are recorded in an external recording medium 26, such as flash memory. The image data recorded in the recording medium 26 are decoded and displayed on an LCD 29.
The camera shake detection section 18 detects, from an angular velocity detected by the gyroscopic sensor 24, the amount of camera shake arose during image-capturing operation, and computes a PSF used for image restoration from the amount of camera shake. The PSF is an expression of movement locus of a point light source caused by hand movement as a brightness distribution function for each of pixels of the CCD 10 and is computed from the amount of movement of an image that is derived from angular velocity detected by the gyroscopic sensor 24 and image magnifying power of an imaging system. Specifically, provided that an output from the gyroscopic sensor 24 is ω, a focal length is “f”, a sampling period is Δts, and the movement locus of the point light source on the CCD 10 is (X, Y), an angle of change in a locus X achieved in a minute time Δt is expressed as ω×Δt, and the amount of displacement Δx is expressed as fΔθ. Hence the locus X achieved during an exposure time is computed as X=ΣfΔθ. The same also applies to a locus Y. The movement locus (X, Y) of the point light source can be expressed as a two-dimensional matrix. Values of respective components of the matrix show brightness values (intensity levels) of pixels. When a period of time during which the point light source is present becomes longer, a larger value is shown.
After capturing of a subject image, the user selects an image to be printed by use of an input key 28 of the digital camera 100. Selected image data 300 and PSF data 302 associated therewith are transmitted to a printer 200 by means of wired or wireless communication. It should be noted that the PSF data associated with the image data are also automatically transmitted to the printer 200 regardless of the user having selected only the image data.
The printer 200 has an image conversion section 30, a PSF conversion section 32, an image restoration section 34, a control section 36, and a print section 38. In accordance with a difference between the resolution of the digital camera 100 and the resolution of the printer 200, the image conversion section 30 and the PSF conversion section 32 convert the resolution of the image data 300 and the resolution of the PSF data 302 into resolutions conforming to the resolution of the printer 200. Specifically, the image conversion section 30 converts the resolution of the image data 300 into a resolution conforming to the resolution of the print section 38, and the PSF conversion section 32 converts the resolution of the PSF data 302 into a resolution conforming to the resolution of the print section 38.
The image restoration section 34 restores an original image by means of subjecting the image data converted by the image conversion section 30 to camera shake compensation through use of the PSF data converted by the PSF conversion section 32. Camera shake compensation using a PSF includes; for example, a known steepest-descent technique, and the overview of the technique is as follows. Specifically, ∇ J of a captured image is computed, where J denotes the amount of evaluation of a common inverted filter. Provided that a deteriorated image corresponding to a captured image is taken as G, that a restored image is taken as F, and a deterioration function is taken as H, J=∥G−HF∥2. The expression means that the amount of evaluation J is given as the magnitude of a difference between an image HF obtained by application of the deterioration function H to the restored image F and an actual deteriorated image G. So long as the restored image is restored properly, HF=G is theoretically attained, and the amount of evaluation comes to zero. The smaller the amount of evaluation J, the better is restored the restored image F. According to the steepest-descent technique, repeated calculation is iterated until the magnitude of ∇J which is a gradient of the amount of evaluation J; namely, a square of norm of ∇J, comes to a threshold value or less, and repeated calculation is terminated at a point in time when the threshold value or less is acquired, whereby the restored image F is obtained. The amount of evaluation J is computed by use of the captured image (the deteriorated image G) and the restored image F as well as use of the PSF; namely, the deterioration function H. A square of norm of the computed ∇J is compared with a threshold value, to thus determine whether or not the square is equal to or less than the threshold value. When the square is equal to or less than the threshold value, the norm of ∇J is deemed to have converged at an optimum solution, and repeated calculation is completed. In the meantime, when the square of norm of ∇J exceeds the threshold value, restoration is considered to be insufficient, and repeated calculation is continued. As a matter of course, the camera shake compensation technique using the PSF is not limited to the steepest-descent technique, and another technique may also be used. The restored original image data are supplied to the print section 38, where the data are printed out. The control section 36 controls operations of individual sections of the printer 200. Consequently, although the image data 300 recorded in the recording medium 26 of the digital camera 100 are blurred image data, an image printed out by the printer 200 is an image undergone camera shake compensation.
When the user prints out the image data, the captured image data are displayed on the LCD 29 (S105), and an image to be printed is selected by use of the input key 28 (S106). Printing is commanded by operation of the input key 28. The image data selected and commanded to be printed are transmitted to the printer 200 by way of a communications interface of the digital camera 100. Further, the PSF data associated with the selected image area also transmitted to the printer 200 (S107). The digital camera 100 may also transmit the PSF data simultaneously with the image data or transmit associated PSF data to the printer 200 in accordance with a request signal transmitted from the printer 200 having received the image data after transmitting the image data. The printer 200 receives the image data and the PSF data transmitted from the digital camera 100, and performs print processing.
Prior to print processing, the printer 200 first converts (resizes) the resolution of the received image data so as to conform to the resolution of the print section 38, thereby generating second image data (S108). Provided that the image size of the first image data is taken as Hin×Vin and the resolution of the print section 38 is taken as Hout×Vout, an image size Hin′ and Vin′ of converted (resized) second image are defined as Hin′=Hout and Vin′=Vout. After the second image data have been generated from the first image data by means of conversion of resolution of the image data, the resolution of the received PSF data is converted (resized) so as to conform to the resolution of the print section 38; in other words, the resolution of the second image data, to thus generate the second PSF data (S109).
Turning back to
As mentioned above, according to the present embodiment, the printer 200 performs all operations; that is, image data conversion, PSF data conversion, and original image conversion. Hence, processing load imposed on the CPU of the digital camera 100 is lessened. Although the user visually ascertains an image blurred by hand movement on the LCD of the digital camera 100, a picture undergone camera shake compensation can be obtained when the image is printed out by the printer 200.
In the present embodiment, as shown in
Although the printer 200 is illustrated as an output device in the present embodiment, the output device may also be embodied by a display. In this case, the display is equipped with the image conversion section 30, the PSF conversion section 32, and the image restoration section 34. When the user selects image data to be displayed, the selected image data and PSF data are transmitted from the digital camera 100 to the display. The display received the image data and the PSF data converts the resolution of the image data and the resolution of the PSF data so as to conform to an output resolution, to thus generate second image data and second PSF data. An original image is restored by use of these sets of data, and the restored image is displayed. The display is equipped with the image restoration section 34, and the digital camera 100 may also be equipped with the conversion section 30 and the PSF conversion section 32.
Number | Date | Country | Kind |
---|---|---|---|
2007-192978 | Jul 2007 | JP | national |