WO2007032148A1 - Image processor - Google Patents

Image processor Download PDF

Info

Publication number
WO2007032148A1
WO2007032148A1 PCT/JP2006/314596 JP2006314596W WO2007032148A1 WO 2007032148 A1 WO2007032148 A1 WO 2007032148A1 JP 2006314596 W JP2006314596 W JP 2006314596W WO 2007032148 A1 WO2007032148 A1 WO 2007032148A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
image
reduced
original image
processing
Prior art date
Application number
PCT/JP2006/314596
Other languages
French (fr)
Japanese (ja)
Inventor
Fuminori Takahashi
Original Assignee
Nittoh Kogaku K.K
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 Nittoh Kogaku K.K filed Critical Nittoh Kogaku K.K
Priority to CN2006800415164A priority Critical patent/CN101305598B/en
Publication of WO2007032148A1 publication Critical patent/WO2007032148A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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

Definitions

  • the present invention relates to an image processing apparatus.
  • the first method for correcting image degradation due to camera shake is a circuit processing method.
  • This circuit processing method acquires a transfer function that represents the degradation state of a captured image, performs inverse transformation of the acquired transfer function on the captured image, and corrects the captured image (see Patent Document 1). .
  • Patent Document 1 JP-A-11 24122 (refer to abstract)
  • Patent Document 2 JP-A-6-317824 (see abstract)
  • Adopting the first method has the advantage of shortening the time required for correction, but also has the following disadvantages.
  • the transfer function to be acquired is very vulnerable to noise and blur information errors. For this reason, the corrected image obtained by the inverse transformation is far from an image photographed with no camera shake, and cannot be used in practice.
  • a method of estimating the solution by singular value decomposition etc. of the solution of simultaneous equations can be adopted, but the calculated value for the estimation becomes astronomical size, There is a high risk that it will not be solved in practice.
  • Cameras that use the second method require a large amount of hardware, such as a motor, that drives the lens. It will become.
  • such hardware itself and a drive circuit for operating the hardware are necessary, which increases costs.
  • a person who operates a camera or the like may want to check immediately after shooting how a recorded image is recorded on a display unit (motor) of the digital camera or the like immediately after shooting.
  • the reason is that if the image that can be confirmed on the monitor is inferior immediately after photographing, there is a high possibility that the retaking can be performed in consideration of correction of the inferiority.
  • the problem to be solved by the present invention is to display an image that approximates an image that has been completely corrected in a short time after shooting, and to confirm the content of the image that is subsequently processed such as recording.
  • An image processing apparatus configured as described above is provided.
  • the image processing apparatus of the present invention provides an original image power to be processed, an image before a change, an image that should have been originally taken, or a similar image thereof (hereinafter referred to as an image).
  • the processing unit obtains original image reduced data obtained by subtracting the number of pixels from the original image, and based on the original image reduced data.
  • the reduced restoration data approximated to the original reduced image before the change is restored, and the reduced restoration data is displayed on the display unit.
  • the amount of image data to be corrected is reduced by reducing the number of original image power pixels. Therefore, the time required for restoration such as camera shake correction can be shortened, and restoration can be completed in a short time after photographing. Then, by displaying the reduced and restored data after the restoration on the display unit, it is possible to confirm the contents of the image to be processed thereafter such as recording in a short time after the photographing.
  • the display unit is a monitor. This is because the reduced / restored data after restoration displayed on the display unit is smaller than the original image by the number of pixels, and becomes an image.
  • a monitor included in a digital camera, a digital video camera, or the like usually has a display area with a smaller number of pixels than a captured image that is actually recorded. Therefore, it is preferable when checking what kind of image is taken and how it is recorded on the monitor of each kind of camera.
  • the processing unit is obtained when restoring the reduced restoration data.
  • the original data is restored using the obtained data.
  • it is possible to efficiently restore the original image to the original image by using the data obtained in the process of restoring the original image reduced data to the reduced restored data. It will be possible.
  • the processing unit uses the data of the change factor information that causes the image change as a process of restoring the reduced restoration data, and performs predetermined processing.
  • Image data power Comparison data is generated, the comparison data is compared with the original image reduced data, and reduced restoration data is generated using the obtained difference data.
  • Data is used instead of predetermined image data, and thereafter, the obtained reduced / restored data is replaced with the previous reduced / restored data, and the same processing is repeated.
  • the reduced restoration data approximated to the original image is generated only by generating predetermined data using the image change factor information. There is almost no equipment that does not increase in size. Also, comparison data is created from the reduced and restored data, and the comparison data is compared with the original image reduced data to be processed, and the reduced and restored data close to the original image is gradually obtained. Restoration work. For this reason, an image processing apparatus having a realistic circuit processing method can be provided for image restoration.
  • the processing unit may perform a process of stopping if the difference data becomes equal to or smaller than a predetermined value or smaller than a predetermined value during the repeated processing.
  • the processing is stopped even if the difference does not become “0”, so that it is possible to prevent a long processing time.
  • the value is less than the predetermined value, the approximated reduced / restored data is closer to the original reduced image before the change (before deterioration, etc.) that is the original of the original image.
  • there is noise, etc. there is a tendency that a situation where the difference cannot be “0” in reality is likely to occur. Don't be.
  • the processing unit may perform a process of stopping when the number of repetitions reaches a predetermined number during the repetition process.
  • the processing is stopped regardless of whether the difference becomes “0”, so that it is possible to prevent the processing from taking a long time.
  • the processing is continued up to a predetermined number of times! / It becomes closer to the reduced original image before deterioration.
  • the process is terminated a predetermined number of times, so the process is repeated infinitely. It doesn't matter.
  • the processing unit in the case of repeated processing, stops if the difference data when the number of repetitions reaches a predetermined number is less than a predetermined value or smaller than a predetermined value, exceeds the predetermined value or If the value is equal to or greater than the predetermined value, the process may be repeated a predetermined number of times. If this configuration is adopted, the number of processes and the difference value are combined, so the image quality is better than when the number of processes is simply limited or when the difference value is limited. And a process that balances the shortness of the processing time.
  • the processing unit uses data of change factor information that causes an image change as a process of restoring the reduced restoration data, Data power of a predetermined image Comparison data is generated, the comparison data is compared with the original image reduced data, and if the obtained difference data is greater than or equal to a predetermined value, the difference data Reduced restoration data is generated using the data, the reduced restoration data is replaced with a predetermined image, and thereafter, the obtained reduced restoration data is replaced with the previous reduced restoration data and the same process is repeated! ⁇ Processing to generate reduced and restored data that approximates the original reduced image before changing to the original image reduced data, and if the difference data is less than a predetermined value or smaller than a predetermined value, the processing is stopped. To have.
  • the reduced restoration data approximate to the original image is generated only by generating predetermined data using the image change factor information. There is almost no equipment that does not increase in size. Also, comparison data is created from the reduced and restored data, and the comparison data is compared with the original image reduced data to be processed, and the reduced and restored data close to the original image is gradually obtained. Restoration work. For this reason, an image processing apparatus having a realistic circuit processing method can be provided for image restoration. In addition, since the processing is stopped when the difference data becomes small, the processing can be stopped with a certain number of processing times.
  • the processing unit may perform a process of stopping when the number of repetitions reaches a predetermined number during the repetition processing.
  • this configuration is adopted, even if the difference is "0" Since the processing is stopped even if it does not occur, it is possible to prevent the processing from taking a long time. Further, since the processing is continued up to a predetermined number of times! /, The approximated reduced / restored data is closer to the original reduced image that is the original original reduced data. Furthermore, when there is noise, etc., the situation in which the difference does not become “0” tends to occur in reality, but in such a case, the processing is repeated indefinitely, but this configuration is adopted. Then, such a problem does not arise.
  • another invention is based on the above-described invention, and acquires a transfer function indicating the degradation state of the original image when restoring the reduced restoration data, and the acquired transfer function is obtained for the original image. Inverse conversion is performed. According to the present invention, it is possible to speed up restoration of an original image based on an appropriate transfer function. In addition, since iterative processing to obtain reduced restoration data and deconvolution processing using a transfer function are combined, the apparatus does not increase in size and becomes a realistic restoration work. Processing is speeded up.
  • a transfer function is obtained from the original image reduced data and the reduced and restored data, and an original image before changing to the original image is generated using the transfer function. It is carried out.
  • it is possible to speed up the restoration of the original image based on an appropriate transfer function.
  • the apparatus since the iterative process for obtaining the reduced restoration data and the deconvolution process using the transfer function are combined, the apparatus does not increase in size and becomes a realistic restoration work. Is faster.
  • Still another invention is based on the above-described invention, and the original image reduced data is formed by thinning out the data of the original image, and the processing unit uses the transfer function as the original image reduced data.
  • the original image power of the image is reduced to a reciprocal of the reduction ratio, and the enlarged image is interpolated to obtain a new transfer function, and the new transfer function is used to generate restored data that approximates the original image. . If this configuration is adopted, a transfer function corresponding to the whole picture can be obtained.
  • another invention assumes that the original image reduced data is formed by extracting a part of the area from the original image data as it is. If this configuration is adopted, a transfer function corresponding to a partial region and applicable to the entire image can be obtained.
  • the invention further reduces the original image restoration processing to (1) the display unit. In parallel with the process of displaying the restored data, this is done when (2) the imaging power is turned off or (3) after the process of displaying the reduced restored data on the display.
  • the original image restoration processing is executed as soon as possible.
  • the inventions of (2) and (3) described above even if a long time is required for the restoration process of the original image, the original image is copied during a period other than the restoration process period of the original image reduced data.
  • the burden on the image processing apparatus can be reduced.
  • the image displayed on the display unit can be displayed as reduced restoration data in a short time after shooting. There is no inconvenience or harmful effect for those who operate an image processing apparatus having a photographing function.
  • the processing unit displays the reduced / restored data on the display unit according to the value of the change factor information that causes the image change.
  • the processing is divided into the case where the data is displayed as it is.
  • the restored image is displayed on the display unit, and in the case of an image that has no deterioration, the restoration operation is not performed and the reduced image is displayed as it is. The For this reason, restoration work is performed only when necessary, and the processing load can be reduced.
  • an image processing that displays an image that approximates an image that has been completely corrected in a short time after shooting, and that allows the content of an image to be processed thereafter, such as recording, to be confirmed in a short time.
  • a physical device can be obtained.
  • FIG. 1 is a block diagram showing a main configuration of an image processing apparatus according to an embodiment of the present invention.
  • FIG. 2 is an external perspective view showing an outline of the image processing apparatus shown in FIG. 1, and is a view for explaining an arrangement position of angular velocity sensors.
  • n 4 is a diagram for explaining the concept of the processing method shown in FIG.
  • FIG. 5 is a diagram for specifically explaining the processing method shown in FIG. 3 using hand shake as an example, and a table showing energy concentration when there is no hand shake.
  • FIG. 6 is a diagram for specifically explaining the processing method shown in FIG. 3 using camera shake as an example, and is a diagram showing image data when there is no camera shake.
  • FIG. 7 is a diagram for specifically explaining the processing method shown in FIG. 3 with an example of camera shake, and is a diagram showing energy dispersion when camera shake occurs.
  • FIG. 8 is a diagram for specifically explaining the processing method shown in FIG. 3 using camera shake as an example, and is a diagram for explaining a situation in which data for comparison is generated with any image force.
  • FIG. 9 A diagram for specifically explaining the processing method shown in FIG. 3 using camera shake as an example. Comparison data is compared with the blurred original image to be processed, and difference data is obtained. It is a figure for demonstrating the condition to produce
  • FIG. 10 is a diagram for specifically explaining the processing method shown in FIG. 3 by taking an example of camera shake, and explains the situation in which restored data is generated by allocating the difference data and adding it to an arbitrary image.
  • FIG. 10 is a diagram for specifically explaining the processing method shown in FIG. 3 by taking an example of camera shake, and explains the situation in which restored data is generated by allocating the difference data and adding it to an arbitrary image.
  • FIG. 11 A diagram for specifically explaining the processing method shown in FIG. 3 by taking an example of camera shake. New comparison data is generated from the generated restored data, and the data and processing target are generated. It is a figure for demonstrating the condition which compares the blurred original image and produces
  • FIG. 12 A diagram for specifically explaining the processing method shown in Fig. 3 by taking an example of camera shake, and explaining the situation in which newly generated difference data is allocated and new restoration data is generated.
  • FIG. 12 A diagram for specifically explaining the processing method shown in Fig. 3 by taking an example of camera shake, and explaining the situation in which newly generated difference data is allocated and new restoration data is generated.
  • ⁇ 13 This is a diagram for explaining processing using the center of gravity of the change factor, which is the first processing method using the processing method shown in Fig. 3.
  • (A) focuses on one pixel in the correct image data.
  • (B) is a diagram showing a state in which the data of the pixel of interest is expanded in the diagram showing the data of the original image.
  • FIG. 14 is a diagram for specifically explaining the processing using the center of gravity of the change factor, which is the first processing method shown in FIG.
  • FIG. 15 is a diagram for explaining the first of the second processing methods using the processing method shown in FIG. 3 and achieving high speed.
  • FIG. 15 (A) shows the original image data to be processed.
  • (B) is a figure which shows the data which thinned out the data of (A).
  • FIG. 16 is a flowchart of the second processing method shown in FIG.
  • FIG. 17 is a diagram for explaining a second method of speeding up the third processing method using the processing method shown in FIG. 3, and (A) shows data of the original image to be processed. (B) is a figure which shows the data which extracted some data of (A).
  • FIG. 18 is a flowchart of the third processing method shown in FIG.
  • FIG. 19 is a diagram for explaining a modification of the third processing method shown in FIG. 17 and FIG. 18, in which the original image data is divided into four parts, and a part of the areas for iterative processing from each divided area. It is a figure which shows taking out.
  • this image processing apparatus 1 is a consumer camera, it may be a camera for other uses such as a surveillance camera, a television camera, an endoscopic camera, a microscope, binoculars, and NMR imaging.
  • the present invention can also be applied to devices other than cameras, such as diagnostic imaging devices.
  • the image processing apparatus 1 includes a photographing unit 2 that captures images of a person and the like, a control system unit 3 that drives the photographing unit 2, a processing unit 4 that processes images captured by the photographing unit 2, have.
  • the image processing apparatus 1 according to this embodiment further includes a recording unit 5 that records the image processed by the processing unit 4 and an angular velocity sensor, and detects change factor information that causes a change such as image degradation.
  • a display unit 8 serving as a monitor.
  • the detection unit 6 includes a factor information storage unit 7 that stores known change factor information that causes image degradation.
  • the imaging unit 2 includes a photographing optical system having a lens and an imaging element such as a CCD (Charge Coupled Devices) ⁇ C—MOS (Complementary Metal Oxide Beam Semiconductor) that converts light passing through the lens into an electrical signal. It is.
  • the control system unit 3 controls each unit in the image processing apparatus 1 such as the photographing unit 2, the processing unit 4, the recording unit 5, the detection unit 6, the factor information storage unit 7, and the display unit 8.
  • the processing unit 4 is composed of an image processing processor, and is composed of hardware such as an ASIC (Application Specific Integrated Circuit).
  • the processing unit 4 may store an image serving as a base when generating comparison data to be described later.
  • the processing unit 4 may be configured to process with software rather than configured as hardware such as an ASIC.
  • the recording unit 5 is composed of a semiconductor memory, but adopts magnetic recording means such as a hard disk drive, optical recording means using a DVD (Digital Versatile Disk), etc. You may do it.
  • the detection unit 6 includes two angular velocity sensors that detect the speeds around the X and Y axes that are perpendicular to the Z axis that is the optical axis of the image processing apparatus 1. Is provided.
  • camera shake when shooting with the camera is the force that also causes movement in the X, Y, and Z directions and rotation around the Z axis. Rotation and rotation around the X axis.
  • These two variations are only a slight variation, and the captured image is greatly blurred. Therefore, in this embodiment, only two angular velocity sensors around the X axis and the Y axis in FIG. 2 are arranged.
  • an additional angular velocity sensor around the Z axis or a sensor that detects movement in the X or Y direction may be added.
  • the sensor used may be an angular acceleration sensor that is not an angular velocity sensor.
  • the factor information storage unit 7 is a recording unit that stores change factor information such as known deterioration factor information, such as aberrations of the optical system.
  • the factor information storage unit 7 stores information on aberrations of the optical system and lens distortion. The information is used when restoring blurring of camera shake described later.
  • the display unit 8 obtains the reduced / restored data, which is image data after correction (after restoration) of the image obtained by subtracting the number of pixels from the captured image, from the recording unit 5, and displays the reduced / restored data as a reduced original image. To do.
  • the display unit 8 is often disposed on the surface opposite to the image capturing unit 2, but it may be disposed on the same side as the image capturing unit 2 or on the side surface. good.
  • “Io” is an arbitrary initial image and is image data stored in advance in the recording unit of the processing unit 4.
  • ⁇ ' indicates the data of the degraded image of ⁇ ⁇ of the initial image data, and is comparative data for comparison.
  • “Img ′” indicates captured image data, that is, data of a degraded image, and is data of an original image to be processed.
  • is difference data between the original image data Img ′ and the comparison data Io ′.
  • K is a distribution ratio based on data of change factor information.
  • Io + n is restored image data (restored data) newly generated by allocating the difference data ⁇ to the initial image data Io based on the data of the change factor information.
  • rimgj is the original correct image data with no deterioration, which is the basis of the original image data Img ⁇ , which is the deteriorated image taken.
  • the relationship between Img and Img ' is expressed by the following equation (1).
  • the difference data ⁇ may be a simple difference between corresponding pixels, but generally, the difference data ⁇ differs depending on the data G of the change factor information, and is expressed by the following equation (2).
  • the processing routine of the processing unit 4 starts by preparing arbitrary image data Io (step S101).
  • the initial image data Io it is possible to use the image Img 'of the deteriorated image that has been taken, or any image data such as a black solid, a white solid, a gray solid, or a pine pattern.
  • step S102 the data Io of an arbitrary image to be an initial image is input instead of Img in the equation (1), and comparison data Io ′ that is a degraded image is obtained.
  • the data Img ′ of the original image, which is the captured degraded image is compared with the comparison data I, and difference data ⁇ is calculated (step S103).
  • the process is terminated (step S106). Then, the restored data Io + n at the end of the processing is estimated as the correct image, that is, the data Img of the image without deterioration, and the data is recorded in the recording unit 5.
  • the recording unit 5 may record the initial image data Io and the change factor information data G, and pass them to the processing unit 4 as necessary.
  • the original image, the correct image that should have been originally taken, or an approximate image thereof is referred to as an “original image”. Therefore, the data Img and the restored data Io + n are “original image” data.
  • the comparison data ⁇ ⁇ ( ⁇ + ⁇ ') is approximate to the data Img' of the original image that was taken.
  • the initial image data ⁇ or restored data ⁇ + ⁇ which is the original data for the generation, is approximate to the positive U
  • the image data Img which is the original image data I mg '.
  • the angular velocity detection sensor detects the angular velocity every 5 seconds.
  • the value used as the determination criterion for the difference data ⁇ is “6” in this embodiment when each data is represented by 8 bits (0 to 255). That is, when it is less than 6, that is, 5 or less, the processing is finished.
  • the shake data detected by the angular velocity detection sensor does not correspond to actual shake when the sensor itself is not calibrated. Therefore, in order to cope with actual blurring, when the sensor is not calibrated, a correction is required to multiply the raw data detected by the sensor by a predetermined magnification.
  • FIG. 3 Next, the details of the processing method shown in FIGS. 3 and 4 will be described with reference to FIGS. 5, 6, 7, 8, 8, 9, 10, 11 and 12.
  • FIG. 5 is a diagrammatic representation of FIGS. 5, 6, 7, 8, 8, 9, 10, 11 and 12.
  • the data force Img of the correct image data shown as “shooting result” in FIG. 8 becomes the data force Img ′ of the deteriorated image taken as the data force “blurred image”.
  • “120” of the pixel “n ⁇ 3” is determined according to the distribution ratio of “0.5J”, “0.3”, “0.2” in the data G of the change factor information that is the blur information. It is distributed as “60” to n-3 pixels, “36” to “n-2” pixels, and “24” to “n-1” pixels.
  • any image data Io shown in step S101 can be used.
  • “input” corresponds to the data Io of the initial image.
  • This data Io, ie, Img ', is multiplied by the change factor information data G in step S102. That is, for example, “60” of the “n ⁇ 3” pixel of the initial image data Io is “30” for the n ⁇ 3 pixel, “18” for the “n ⁇ 2” pixel, “12” is assigned to each “1” pixel.
  • step S103 the difference data ⁇ in step S103 is as shown in the bottom column of FIG. [0055]
  • step S104 the size of the difference data ⁇ is determined in step S104. Specifically, the power to end the processing when all the difference data ⁇ becomes 5 or less in absolute value. Since the difference data ⁇ shown in FIG. 9 does not meet this condition, the process proceeds to step S105. In other words, the difference data ⁇ is distributed to arbitrary image data ⁇ using the change factor information data G, and the restored data ⁇ + ⁇ shown as “next input” in FIG. 10 is generated. In this case, since this is the first time, Io + l is shown in FIG.
  • the restored data Io + l is the input image data (step S102).
  • step S102 is executed, and the process proceeds to step S103 to obtain new difference data ⁇ .
  • the size of the new difference data ⁇ is determined in step SI 04, and if it is larger than the predetermined value, in step S 105, the new difference data ⁇ is allocated to the previous restoration data Io + l, and the new restoration data Io + 2 (See Figure 12).
  • new comparison data Io + 2 ′ is generated from the restored data Io + 2.
  • steps S102 and S103 are executed, the process goes to step S104, whereupon the process proceeds to step S105 or the process proceeds to step S106. Such a process is repeated.
  • either or both of the number of processes and the determination reference value of the difference data ⁇ can be set in advance.
  • the number of processing can be set to any number such as 20 or 50 times.
  • set the value of the difference data ⁇ to stop processing to “5” in 8 bits (0 to 255). When it becomes 5 or less, the processing is terminated or set to “0.5”. The process can be terminated when the value falls below "0.5". wear.
  • This set value can be set arbitrarily. If both the number of processing times and the criterion value are entered, the processing is stopped when either one is satisfied. When both of these settings are possible, the determination reference value may be prioritized, and if the predetermined number of processes does not fall within the determination reference value, the predetermined number of processes may be repeated.
  • the force that did not use the information stored in the factor information storage unit 7, such as known deterioration factors stored here, such as optical aberrations and lens distortions, etc. Data may be used.
  • correction may be performed using information on optical aberration.
  • the factor information storage unit 7 may not be installed, and the image may be corrected or restored only by dynamic factors during shooting, for example, only blurring.
  • the distribution ratio k is not used, and the difference data ⁇ of the corresponding pixel is directly added to the corresponding pixel of the previous restored data Io + n-1;
  • the data k S (value indicated as “update amount” in FIGS. 10 and 12) after adding the difference data ⁇ of the corresponding pixel after scaling or adding the difference data ⁇ is added. You can zoom in and add it to the previous restored data Io + n— 1. When these processing methods are used well, the processing speed increases.
  • the difference data ⁇ is calculated as the difference between the pixels 43 of the original image data Img ′ and the comparison data Io ′ as shown in FIG.
  • the difference data ⁇ is added to the pixel 33 of the initial image data Io and the restoration data ⁇ + ⁇ .
  • the three centroids of “0.5”, “0.3”, and “0.2” have the largest value “0.
  • each processing method described above can be automatically selected according to the contents of the data G of the change factor information. That is, the processing unit 4 can classify the data G of the change factor information into one of a plurality of types, and perform different processing for each classification. For example, as a processing method, (1) a method of allocating difference data ⁇ using an allocation ratio k as shown in FIGS. 5 to 12 (embodiment method), (2) a corresponding pixel difference, Alternatively, a program that can execute three methods: scaling the difference data ⁇ (corresponding pixel method), (3) detecting the centroid of the deterioration factor, and using the data of the centroid (centroid method).
  • the restored image is displayed on the display unit 8.
  • the processing time becomes long, and it cannot be displayed on the display unit 8 immediately after shooting. Therefore, the restoration process is speeded up.
  • this high speed key will be described.
  • This processing method is advantageous for processing large images.
  • Optical deconvolution refers to restoring the original image by removing the image power that has deteriorated due to distortion, blurring, etc., and removing the distortion.
  • ⁇ ( ⁇ ) ⁇ ou (x) it is considered that jn (x) in ( ⁇ ).
  • the first method is to reduce the data by thinning out the data.
  • This method will be described as a second processing method using the processing method shown in FIG.
  • thinning out data for example, as shown in FIG. 15, the original image data ImgZ force Pixel 1 1-16, 21-26, 31-36, 41-46, 51-56, 6 1-66
  • the original image reduced data ISmg ⁇ with a quarter size consisting of pixels 11, 13, 15, 31, 33, 35, 51, 53, 55 is generated. It is.
  • the original image data Img 'and the change factor information data G are thinned out, the thinned original image reduced data ISmg' and the reduced change factor information data GS are generated, and the original image reduced data is generated.
  • ISmg 'and reduced change factor information data GS is used to perform the iterative processing shown in Fig. 3 and thin out sufficiently satisfactorily to approximate the original image ISmg before changing to the original image reduced data ISmg'.
  • this reduced approximate restored data ISo + n is a reduced original image ISmg before being converted into the original image reduced data ISmg ', that is, a reduced image of the image Img.
  • the original image reduced data ISmg ' is considered to be a convolution integral of the reduced and restored data ISo + n and the transfer function g (x), and the obtained reduced and restored data ISo + n and the known original image reduced data ISmg'
  • An unknown transfer function gl (X) can be obtained.
  • Reduced restoration data ISo + n is a sufficiently satisfactory data and is only an approximation. Therefore, the transfer function g (X) of the original restoration data Io + n and the original image data Img 'is not the transfer function gl (x) obtained by iterative processing with the reduced data. Therefore, the transfer function gl (x) is calculated from the reduced restoration data ISo + n and the original image reduced data ISmg ', which is the reduced original image data. Interpolate and fix The new transfer function g2 (x) obtained by correction is the transfer function g (X) for the original image data Img '.
  • the new transfer function g2 (x) is the inverse of the reduction rate of the original image reduction data with respect to the obtained transfer function gl (X), and then the value between the enlargement is interpolated by linear interpolation, spline interpolation, etc. It is obtained by processing. For example, as shown in Fig. 15, when both vertical and horizontal are thinned to 1Z2, the reduction ratio is 1Z4, so the inverse number is 4 times.
  • step S201 the original image data Img 'and the change factor information data G are reduced to IZM. In the example of Fig. 15, it is reduced to 1Z4.
  • steps S102 to S105 shown in FIG. 3 are repeated.
  • the reduced restoration data ISo + n approximate to the reduced original image I Smg before changing to the original image reduced data ISmg ′ is obtained (step S202).
  • “G, Img ′, ⁇ + ⁇ ” shown in FIG. 3 is replaced with “GS, ISmg ', ISo + n”.
  • the transfer function gl (x) from the original image reduction data ISmg 'to the reduction / restoration data ISo + n is calculated from the obtained reduction / restoration data ISo + n and the known original image reduction data ISmg' (step S203).
  • the obtained transfer function gl (X) is enlarged by M times (4 times in the example of Fig. 15), and the enlarged portion is interpolated by an interpolation method such as linear interpolation.
  • Get the transfer function g2 (x) is estimated as the transfer function g (X) for the original image.
  • the calculated new transfer function g2 (x) and the original image data Img ' are also deconvolved to obtain restored data Io + n.
  • This restored data Io + n is used as the original image (step S205).
  • i) iterative processing and mouth) transfer function gl (X), g2 (x) are obtained, and the process using the obtained new transfer function g2 (x) is used together. Therefore, the restoration process can be speeded up.
  • the reduced restoration data ISo + n obtained by the iterative processing of (i) is displayed on the display unit 8 immediately after shooting, and the subsequent processing using the transfer function is performed by the image processing apparatus 1.
  • the operation is performed, for example, when the photographing unit 2 is turned off, the operation is performed. Then, the restored original image is recorded in the recording unit 5.
  • the obtained normal U ⁇ image and the estimated restored data Io + n are used as the initial image data Io of the process shown in FIG.
  • iterative processing may be further performed, and the data obtained thereby may be stored in the recording unit 5.
  • a second method of using the reduced data is a method for obtaining original image reduced data ISmg 'by taking out data of a partial area of original image data Img'.
  • This method will be described as a third processing method using the processing method shown in FIG.
  • the original image data is composed of Img 'force S, pixels 11-16, 21-26, 31-36, 41-46, 5 1-56, 61-66!
  • This is a method of extracting the area consisting of the pixels 32, 33, 34, 4 2, 43, 44, which is the central area, and generating the original image reduced data ISmg ′.
  • step S301 the original image reduced data ISmg ′ is obtained as described above.
  • step S302 the processing from step S102 to step S105 shown in FIG. 3 is repeated to obtain reduced restoration data ISo + n (step S302).
  • “Img ′” in FIG. 3 can be replaced with “ISmg ′”
  • “Io + n” can be replaced with “ISo + n”.
  • a transfer function g (x) from the reduced restoration data ISo + n to the original image reduction data ISmg ' is calculated from the obtained reduction restoration data ISo + n and the known original image reduction data ISmg' ( Step S303).
  • the reduced and restored data ISo + n obtained by the iterative process of (i) is displayed on the display unit 8 immediately after photographing, and the original is obtained by inverse calculation using a transfer function. Perform the image restoration process in parallel with the display process! The restored original image is stored in the recording unit 5. It should be noted that the process using the transfer function following the repeated process may be performed after the display process, or may be performed when the image processing apparatus 1 is operated!
  • the entire image area is not restored by iterative processing, but a part of the area is iteratively processed to obtain a good restored image, which is used.
  • the transfer function gl '(X) for the part is obtained, and the entire image is restored using the transfer function gl' (X) itself or a modified version (such as enlargement).
  • the area to be extracted must be sufficiently larger than the fluctuation area. In the previous example shown in Fig. 5, etc., it fluctuates over 3 pixels, so it is necessary to extract an area of 3 pixels or more.
  • the original image data I mg ′ is divided into four parts as shown in FIG.
  • iteratively processing each of the four original image reduced data ISmg ' which is a small area, restoring the divided areas divided into four, and combining the four restored divided images into one
  • the original whole image may be used.
  • the method is as follows.
  • a subject with an abrupt change in contrast uses an iterative process of restoration by the processing method shown in Fig. 3, and the number of iterations becomes very large when trying to obtain an approximation of the original image.
  • restored data Io + n that approximates the original subject cannot be generated. Therefore, the original image (blurred image) data Img ' ⁇ , the data B of the change factor information at the time of shooting is generated from the data B of the known image, and the data B' of the blurred image is generated.
  • Overlay B 'to make "Img' + B '".
  • the superimposed image is restored by the process shown in Fig. 3, and the result data C force that becomes the restored data Io + n is removed.
  • the already added field image data B is removed and the desired restored image data Img Take out.
  • This method is applied to the above-described reduced image, and the restored reduced image is displayed on the display unit 8 immediately after shooting even for a subject with a sharp change in contrast.
  • the restoration process is executed by the processing unit 4 using the transfer function obtained from this process after the display process.
  • the restored original image is then stored in the recording unit 5.
  • the correct image data Img includes a sharp contrast change.
  • the obtained positive image is A
  • the captured original image is A ′
  • the image restored from the original image A ′ is A + ⁇
  • the restored data force is generated.
  • the original image " ⁇ '" is added to this " ⁇ ' + ⁇ '" and restored, it becomes ⁇ + y + A + y + ⁇ ”, which is“ 2 ⁇ + 3 ⁇ ” And “2 ( ⁇ + ⁇ ) +”. Since “ ⁇ + ⁇ ” is obtained in the previous restoration process, “2 ( ⁇ + ⁇ ) + ⁇ 2 ( ⁇ + ⁇ ))” can be calculated, and “ ⁇ ” is obtained.
  • the correct image ⁇ ⁇ to be obtained can be obtained.
  • This method is applied to the reduced image in the same manner as described above, the restored original image reduced data is displayed on the display unit 8, the large original image is restored using the obtained transfer function, and stored in the recording unit 5. To do.
  • the control unit 4 executes these controls and processes.
  • the processing performed by the processing unit 4 is configured by software, but each may be configured by a hard- ware composed of parts that are performed by sharing a part of the processing.
  • the original image to be processed may be processed such as color-corrected or Fourier-transformed.
  • comparison data in addition to the data generated using the data G of the change factor information, color correction is added to the data generated using the data G of the change factor information, or Fourier transform is performed. It is also possible to use such data.
  • the change factor information data includes not only the degradation factor information data but also information that simply changes the image, and information that improves the image contrary to degradation.
  • the set number of times may be changed by the data G of the change factor information. For example, when the data of a certain pixel is distributed over many pixels due to blurring, the number of iterations may be increased, and when the variance is small, the number of iterations may be decreased.
  • the process may be stopped.
  • a method can be adopted in which the average value of the difference data ⁇ is observed and if the average value becomes larger than the previous value, it is judged that the force is diverging.
  • the processing may be stopped immediately, but if the divergence occurs twice, the method may be stopped, or the processing may be stopped if the divergence continues for a predetermined number of times. good.
  • the process may be stopped. For example, in the case of 8 bits, the value to be changed exceeds 255 If it is, the process is stopped.
  • that value may be used instead of the normal value. For example, if you try to use more than 255 values as input data in 0 to 255 of 8 bits, it will be processed as 255, which is the maximum value.
  • the restoration data to be an output image depending on the data G of the change factor information, there may occur data that goes out of the area of the image to be restored. In such a case, data that protrudes outside the area is input to the opposite side. Also, if there is data that should come from outside the area, it is preferable to bring that data from the opposite side. For example, if the data assigned to the lower pixel is generated from the data of the pixel XN1 (N rows and 1 column) located at the bottom in the area, the position is outside the area. Therefore, the data is assigned to the pixel XI I (1 row and 1 column) located at the top right above the pixel XN1.
  • each processing method described above that is, (1) a method of allocating difference data ⁇ using the distribution ratio k (example method), (2) corresponding pixel difference, or difference data Method of scaling ⁇ (corresponding pixel method), (3) Method of detecting centroid of deterioration factor and using data of centroid part (centroid method), (4) Thinning out data, combining with inverse problem Method (inverse problem decimation method), (5) Extraction of reduced area and combination with inverse problem (inverse problem area extraction method), (6) Iterates over a predetermined image, then the predetermined image (7) Restored images containing errors
  • the processing method program for removing the calculated error is stored in the processing unit 4 so that the processing method can be automatically selected according to the user's selection or image type.
  • the processing method can be automatically selected according to the user's selection or image type.
  • the original image restoration processing is performed in parallel with the processing for displaying the reduced restoration data on the display unit 8, or when the photographing unit 2 is turned off and no photographing is performed, or the display unit 8 Various methods can be employed, such as after the display processing is performed.
  • the restored original image is stored in the recording unit 5, but may be transmitted to another server or the like using a communication line such as the Internet together with or instead of the storage. good.
  • the processing unit 4 classifies the change factor information data G into one of a plurality of types, and performs different processing for each of the classifications (one of the above methods! Alternatively, the number of repetitions may be different for each classification. Further, in the processing of the processing unit 4, it is preferable to divide whether or not the display image is restored by the value of the data G of the change factor information. For example, only when it is determined that the deterioration is significant, the image displayed on the display unit 8 is restored. When the deterioration is not so much, a simple reduced image is displayed as it is or a slightly corrected image is displayed. It is preferable. This reduces the load on the processing unit 4.
  • any one of (1) to (7) is stored in the processing unit 4 so that the processing method can be automatically selected according to the user's selection or the type of image. Also good. In addition, select any one of these seven methods, and alternately or in sequence for each routine It may be used for the first time or processed in a certain method for the first few times, and then processed in another method. Note that the image processing apparatus 1 may have a different processing method in addition to any one or more of (1) to (7) described above.
  • each processing method mentioned above may be programmed.
  • the program may be stored in a storage medium such as a CD (Compact Disc), a DVD, or a USB (Universal Serial Bus) memory so that it can be read by a computer.
  • the image processing apparatus 1 has reading means for reading the program in the storage medium.
  • the program may be stored in an external server of the image processing apparatus 1, downloaded as necessary, and used.
  • the image processing apparatus 1 has communication means for downloading the program in the storage medium.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)
  • Studio Devices (AREA)
  • Studio Circuits (AREA)

Abstract

An image resembling a completely restored image is displayed in a short time after the imaging, and the contents of the image to be processed, e.g., recorded are confirmed in a short time. An image processor comprises a processing section for restoring an image before a change, or an image to be intentionally captured, or a resembling image (base image) resembling them. The processor executes the steps of acquiring an original image reduction data by reducing the number of pixels of the original image (step S201), restoring reduction restoration data reassembling the reduced base image before a change from the original image reduction data (step S202), and displaying the reduction restoration data on the display unit. It is preferable that the steps (step S203, step S204, step S205) of restoring the base image by using the data acquired by the restoration. The display section is e.g., a monitor of a camera.

Description

明 細 書  Specification
画像処理装置  Image processing device
技術分野  Technical field
[0001] 本発明は、画像処理装置に関する。  [0001] The present invention relates to an image processing apparatus.
背景技術  Background art
[0002] 従来から、カメラ等の画像処理装置で被写体を撮影すると、記録される画像には時 々劣化が生ずることが知られている。画像劣化の要因としては撮影時の手ぶれ等が ある。手ぶれによる画像の劣化を補正する第 1の方式には、回路処理方式がある。こ の回路処理方式は、撮影画像の劣化状態を表す伝達関数を取得し、撮影画像に対 し、取得した伝達関数の逆変換を行い、撮影画像を補正するものである (特許文献 1 参照)。  Conventionally, it is known that when a subject is photographed by an image processing apparatus such as a camera, the recorded image sometimes deteriorates. The cause of image degradation is camera shake during shooting. The first method for correcting image degradation due to camera shake is a circuit processing method. This circuit processing method acquires a transfer function that represents the degradation state of a captured image, performs inverse transformation of the acquired transfer function on the captured image, and corrects the captured image (see Patent Document 1). .
[0003] また手ぶれによる画像の劣化を補正する第 2の方式には、レンズを動かす方式があ る。たとえば、レンズを動かす方式としては、カメラの手ぶれを検出し、所定のレンズ を、その検出した手ぶれに合わせて動かすことで補正する方式が知られている(特許 文献 2参照)。  [0003] As a second method for correcting image deterioration due to camera shake, there is a method of moving a lens. For example, as a method of moving a lens, there is known a method in which camera shake is detected and corrected by moving a predetermined lens in accordance with the detected camera shake (see Patent Document 2).
[0004] 特許文献 1:特開平 11 24122号公報 (要約書参照)  [0004] Patent Document 1: JP-A-11 24122 (refer to abstract)
特許文献 2:特開平 6— 317824号公報 (要約書参照)  Patent Document 2: JP-A-6-317824 (see abstract)
発明の開示  Disclosure of the invention
発明が解決しょうとする課題  Problems to be solved by the invention
[0005] 第 1の方式を採用すると、補正に要する時間が短くて済む利点があるが、次の不利 な点もある。すなわち取得する伝達関数は、ノイズゃブレ情報誤差等に非常に弱ぐ これらのわず力な変動により、値が大きく変動する。このため、逆変換で得られる補正 画像は、手ぶれがない状態で撮影した画像とはほど遠いものとなり、実際上は利用 できない。また、ノイズ等を考慮した逆変換を行う場合、連立方程式の解の特異値分 解等で解を推定する方法も採用できるが、その推定のための計算値が天文学的な 大きさになり、実際的には解くことができなくなるリスクが高い。また第 2の方式を採用 したカメラは、モータ等、レンズを駆動するハードウェアのスペースが必要となり大型 化してしまう。また、そのようなハードウェア自体やそのハードウェアを動かす駆動回 路が必要となり、コストアップとなってしまう。 [0005] Adopting the first method has the advantage of shortening the time required for correction, but also has the following disadvantages. In other words, the transfer function to be acquired is very vulnerable to noise and blur information errors. For this reason, the corrected image obtained by the inverse transformation is far from an image photographed with no camera shake, and cannot be used in practice. In addition, when performing inverse transformation considering noise etc., a method of estimating the solution by singular value decomposition etc. of the solution of simultaneous equations can be adopted, but the calculated value for the estimation becomes astronomical size, There is a high risk that it will not be solved in practice. Cameras that use the second method require a large amount of hardware, such as a motor, that drives the lens. It will become. In addition, such hardware itself and a drive circuit for operating the hardware are necessary, which increases costs.
[0006] 一方、カメラ等を操作する者は、撮影直後にデジタルカメラ等が有する表示部 (モ- タ)にて、どのように撮影画像が記録されているかを撮影直後に確認したい場合があ る。その理由は、撮影直後であれば、そのモニタで確認できる画像が劣悪な場合に は、その劣悪さの修正を考慮した撮り直しができる可能性が高いためである。  [0006] On the other hand, a person who operates a camera or the like may want to check immediately after shooting how a recorded image is recorded on a display unit (motor) of the digital camera or the like immediately after shooting. The The reason is that if the image that can be confirmed on the monitor is inferior immediately after photographing, there is a high possibility that the retaking can be performed in consideration of correction of the inferiority.
[0007] そこで本発明が解決しょうとする課題は、撮影後、短時間で完全に補正された画像 に近似する画像を表示し、記録等その後に処理される画像の内容を短時間で確認 できるようにした画像処理装置を提供することである。  Therefore, the problem to be solved by the present invention is to display an image that approximates an image that has been completely corrected in a short time after shooting, and to confirm the content of the image that is subsequently processed such as recording. An image processing apparatus configured as described above is provided.
課題を解決するための手段  Means for solving the problem
[0008] 上述した課題を解決するために、本発明の画像処理装置は、処理対象となる原画 像力 変化する前の画像もしくは本来撮影されるべきであった画像またはそれらの近 似画像 (以下、元画像と ヽぅ)を復元する処理を行う処理部を有する画像処理装置に おいて、処理部は、原画像から画素数を減じた原画像縮小データを得、その原画像 縮小データに基づいて変化する前の縮小元画像に近似する縮小復元データを復元 し、表示部に当該縮小復元データを表示する処理を行うものとして 、る。  [0008] In order to solve the above-described problem, the image processing apparatus of the present invention provides an original image power to be processed, an image before a change, an image that should have been originally taken, or a similar image thereof (hereinafter referred to as an image). In the image processing apparatus having a processing unit for performing processing for restoring the original image and i), the processing unit obtains original image reduced data obtained by subtracting the number of pixels from the original image, and based on the original image reduced data. The reduced restoration data approximated to the original reduced image before the change is restored, and the reduced restoration data is displayed on the display unit.
[0009] この発明によれば、原画像力 画素数を減じることにより、補正すべき画像データ量 が少なくなる。よって、手ぶれ補正等復元に要する時間を短縮でき、撮影後短時間 で復元を終了させることができる。そしてその復元後の縮小復元データを表示部へ 表示することにより、撮影後短時間で、記録等その後に処理される画像の内容を確 認できる。  According to the present invention, the amount of image data to be corrected is reduced by reducing the number of original image power pixels. Therefore, the time required for restoration such as camera shake correction can be shortened, and restoration can be completed in a short time after photographing. Then, by displaying the reduced and restored data after the restoration on the display unit, it is possible to confirm the contents of the image to be processed thereafter such as recording in a short time after the photographing.
[0010] なお、表示部がモニタであると、非常に好適となる。これは、表示部に表示される復 元後の縮小復元データは、画素数を減じた分だけ元画像に比べると小さ 、画像とな る。しかし、たとえばデジタルカメラやデジタルビデオカメラ等が有するモニタは、通常 、実際に記録される撮影画像よりも画素数が少なぐ表示部面積も小さい。よって、各 種のカメラのモニタにて、撮影した画像がどのようなもので、どのように記録されている かを確認するときに好ましいものとなる。  [0010] It is very preferable that the display unit is a monitor. This is because the reduced / restored data after restoration displayed on the display unit is smaller than the original image by the number of pixels, and becomes an image. However, for example, a monitor included in a digital camera, a digital video camera, or the like usually has a display area with a smaller number of pixels than a captured image that is actually recorded. Therefore, it is preferable when checking what kind of image is taken and how it is recorded on the monitor of each kind of camera.
[0011] 他の発明は、上述の発明に加え、処理部は、縮小復元データを復元する際に得ら れたデータを利用して、元画像を復元する処理を行うこととしている。原画像から元画 像への復元の過程にぉ 、て、原画像縮小データから縮小復元データへの復元の過 程で得られたデータを利用すると、原画像から元画像への復元が効率的に行えるこ ととなる。 In another invention, in addition to the above-described invention, the processing unit is obtained when restoring the reduced restoration data. The original data is restored using the obtained data. In the process of restoring from the original image to the original image, it is possible to efficiently restore the original image to the original image by using the data obtained in the process of restoring the original image reduced data to the reduced restored data. It will be possible.
[0012] さらに、他の発明は、上述の発明にカ卩え、処理部は、縮小復元データを復元する処 理として、画像変化の要因となる変化要因情報のデータを利用して、所定の画像の データ力 比較用データを生成し、この比較用データと、原画像縮小データと、を比 較し、得られた差分のデータを利用して縮小復元データを生成し、この縮小復元デ ータを所定の画像のデータの代わりに使用し、以後、得られた縮小復元データを前 回の縮小復元データに置き換えて同様の処理を繰り返す処理を行うこととしている。  [0012] Further, another invention is based on the above-described invention, and the processing unit uses the data of the change factor information that causes the image change as a process of restoring the reduced restoration data, and performs predetermined processing. Image data power Comparison data is generated, the comparison data is compared with the original image reduced data, and reduced restoration data is generated using the obtained difference data. Data is used instead of predetermined image data, and thereafter, the obtained reduced / restored data is replaced with the previous reduced / restored data, and the same processing is repeated.
[0013] この発明によれば、画像変化の要因情報を利用して、所定のデータを生成すること だけで元画像に近似する縮小復元データを生成して 、るので、ハードウェア的な増 加はほとんど無ぐ装置が大型化しない。また、縮小復元データから比較用データを 作り、その比較用データと処理対象の原画像縮小データを比較するという処理を繰り 返し、徐々に縮小元画像に近い縮小復元データを得るので、現実的な復元作業とな る。このため、画像の復元に当たって、現実性のある回路処理方式を有する画像処 理装置とすることができる。  [0013] According to the present invention, the reduced restoration data approximated to the original image is generated only by generating predetermined data using the image change factor information. There is almost no equipment that does not increase in size. Also, comparison data is created from the reduced and restored data, and the comparison data is compared with the original image reduced data to be processed, and the reduced and restored data close to the original image is gradually obtained. Restoration work. For this reason, an image processing apparatus having a realistic circuit processing method can be provided for image restoration.
[0014] なお、処理部は、繰り返しの処理の際、差分のデータが所定値以下または所定値 より小さくなつたら、停止させる処理を行なうようにしても良い。この構成を採用した場 合、差分が「0」にならなくても処理を停止させるので、処理の長時間化を防止するこ とができる。また、所定値以下としているので、近似する縮小復元データは原画像の 元となる変化前 (劣化等する前)の縮小元画像により近いものとなる。さらに、ノイズな どがあった場合、差分が「0」になることが現実的にはあり得ない状況が生じがちであ る力 そのような場合であっても無限に処理を繰り返すことにはならない。  [0014] Note that the processing unit may perform a process of stopping if the difference data becomes equal to or smaller than a predetermined value or smaller than a predetermined value during the repeated processing. When this configuration is adopted, the processing is stopped even if the difference does not become “0”, so that it is possible to prevent a long processing time. In addition, since the value is less than the predetermined value, the approximated reduced / restored data is closer to the original reduced image before the change (before deterioration, etc.) that is the original of the original image. In addition, when there is noise, etc., there is a tendency that a situation where the difference cannot be “0” in reality is likely to occur. Don't be.
[0015] さらに、処理部は、繰り返しの処理の際、繰り返しの回数が所定回数となったら停止 させる処理を行うようにしても良い。この構成を採用した場合、差分が「0」になっても ならなくても処理を停止させるので、処理の長時間化を防止することができる。また、 所定回数まで処理を継続させて!/、るので、近似する縮小復元データは原画像の元と なる劣化等する前の縮小元画像により近いものとなる。さらに、ノイズなどがあった場 合、差分が「0」にならない状況が現実的には生じがちである力 そのような場合であ つても所定回数で終了させているので、無限に処理を繰り返すことにはならない。 [0015] Furthermore, the processing unit may perform a process of stopping when the number of repetitions reaches a predetermined number during the repetition process. When this configuration is adopted, the processing is stopped regardless of whether the difference becomes “0”, so that it is possible to prevent the processing from taking a long time. In addition, since the processing is continued up to a predetermined number of times! / It becomes closer to the reduced original image before deterioration. In addition, when there is noise, etc., a force that tends to cause a situation where the difference does not become “0” in reality. Even in such a case, the process is terminated a predetermined number of times, so the process is repeated infinitely. It doesn't matter.
[0016] さらに、処理部は、繰り返しの処理の際、繰り返しの回数が所定回数に到達したとき の差分のデータが所定値以下または所定値より小さ 、場合は停止し、所定値より超 えるまたは所定値以上の場合は、さらに所定回数繰り返す処理を行うようにしても良 い。この構成を採用すると、処理の回数と、差分の値とを組み合わせて行うようにして いるので、単に処理回数に制限を加える場合や差分の値に制限を行う場合に比較し て、画像の良さと処理時間の短さのバランスが取れた処理とすることができる。  [0016] Further, the processing unit, in the case of repeated processing, stops if the difference data when the number of repetitions reaches a predetermined number is less than a predetermined value or smaller than a predetermined value, exceeds the predetermined value or If the value is equal to or greater than the predetermined value, the process may be repeated a predetermined number of times. If this configuration is adopted, the number of processes and the difference value are combined, so the image quality is better than when the number of processes is simply limited or when the difference value is limited. And a process that balances the shortness of the processing time.
[0017] また、他の発明は、上述の発明の画像処理装置に加え、処理部は、縮小復元デー タを復元する処理として、画像変化の要因となる変化要因情報のデータを利用して、 所定の画像のデータ力 比較用データを生成し、この比較用データと、原画像縮小 データと、を比較し、得られた差分のデータが所定値より大きいまたは所定値以上の 場合は、差分のデータを利用して縮小復元データを生成し、この縮小復元データを 所定の画像に置き換え、以後、得られた縮小復元データを前回の縮小復元データに 置き換えて同様の処理を繰り返す処理を行!ヽ、原画像縮小データへ変化する前の 縮小元画像に近似する縮小復元データを生成する処理を行 、、差分のデータが所 定値以下または所定値より小さい場合は処理を停止する処理を行うこととしている。  [0017] Further, in another invention, in addition to the image processing apparatus of the above invention, the processing unit uses data of change factor information that causes an image change as a process of restoring the reduced restoration data, Data power of a predetermined image Comparison data is generated, the comparison data is compared with the original image reduced data, and if the obtained difference data is greater than or equal to a predetermined value, the difference data Reduced restoration data is generated using the data, the reduced restoration data is replaced with a predetermined image, and thereafter, the obtained reduced restoration data is replaced with the previous reduced restoration data and the same process is repeated! ヽProcessing to generate reduced and restored data that approximates the original reduced image before changing to the original image reduced data, and if the difference data is less than a predetermined value or smaller than a predetermined value, the processing is stopped. To have.
[0018] この発明によれば、画像変化の要因情報を利用して、所定のデータを生成すること だけで元画像に近似する縮小復元データを生成して 、るので、ハードウェア的な増 加はほとんど無ぐ装置が大型化しない。また、縮小復元データから比較用データを 作り、その比較用データと処理対象の原画像縮小データを比較するという処理を繰り 返し、徐々に縮小元画像に近い縮小復元データを得るので、現実的な復元作業とな る。このため、画像の復元に当たって、現実性のある回路処理方式を有する画像処 理装置とすることができる。また、差分のデータが小さくなつたら処理を停止している ので、ある程度の処理回数で処理を停止させることが可能となる。  [0018] According to the present invention, the reduced restoration data approximate to the original image is generated only by generating predetermined data using the image change factor information. There is almost no equipment that does not increase in size. Also, comparison data is created from the reduced and restored data, and the comparison data is compared with the original image reduced data to be processed, and the reduced and restored data close to the original image is gradually obtained. Restoration work. For this reason, an image processing apparatus having a realistic circuit processing method can be provided for image restoration. In addition, since the processing is stopped when the difference data becomes small, the processing can be stopped with a certain number of processing times.
[0019] なお、処理部は、繰り返しの処理の際、繰り返しの回数が所定回数となったら停止 させる処理を行うようにしても良い。この構成を採用した場合、差分が「0」になっても ならなくても処理を停止させるので、処理の長時間化を防止することができる。また、 所定回数まで処理を継続させて!/、るので、近似する縮小復元データは原画像縮小 データの元となる変化前の縮小元画像により近いものとなる。さらに、ノイズなどがあ つた場合、差分が「0」にならない状況が現実的には生じがちであるが、そのような場 合、無限に処理を繰り返すことになつてしまうが、この構成を採用すると、そのような問 題が生じない。 [0019] Note that the processing unit may perform a process of stopping when the number of repetitions reaches a predetermined number during the repetition processing. When this configuration is adopted, even if the difference is "0" Since the processing is stopped even if it does not occur, it is possible to prevent the processing from taking a long time. Further, since the processing is continued up to a predetermined number of times! /, The approximated reduced / restored data is closer to the original reduced image that is the original original reduced data. Furthermore, when there is noise, etc., the situation in which the difference does not become “0” tends to occur in reality, but in such a case, the processing is repeated indefinitely, but this configuration is adopted. Then, such a problem does not arise.
[0020] さらに、他の発明は、上述の発明にカ卩え、縮小復元データの復元の際に、原画像 の劣化状態を表す伝達関数を取得し、原画像に対し、取得した伝達関数の逆変換 を行っている。この発明によれば、妥当な伝達関数に基づいた元画像の復元の迅速 化が可能となる。また、縮小復元データを得るための繰り返し処理と、伝達関数を利 用したデコンボリューシヨン処理とを組み合わせることとなるため、装置が大型化せず 、また現実的な復元作業となるのに加え、処理が高速化される。  [0020] Further, another invention is based on the above-described invention, and acquires a transfer function indicating the degradation state of the original image when restoring the reduced restoration data, and the acquired transfer function is obtained for the original image. Inverse conversion is performed. According to the present invention, it is possible to speed up restoration of an original image based on an appropriate transfer function. In addition, since iterative processing to obtain reduced restoration data and deconvolution processing using a transfer function are combined, the apparatus does not increase in size and becomes a realistic restoration work. Processing is speeded up.
[0021] 他の発明は、上述の発明に加え、原画像縮小データと縮小復元データとから伝達 関数を求め、その伝達関数を利用して原画像へ変化する前の元画像を生成する処 理を行っている。この構成を採用することにより、適正な伝達関数に基づいた元画像 の復元の迅速化が可能となる。また、縮小復元データを得るための繰り返し処理と、 伝達関数を利用したデコンボリューシヨン処理とを組み合わせることとなるため、装置 が大型化せず、また現実的な復元作業となるのに加え、処理が高速化される。  In another invention, in addition to the above-described invention, a transfer function is obtained from the original image reduced data and the reduced and restored data, and an original image before changing to the original image is generated using the transfer function. It is carried out. By adopting this configuration, it is possible to speed up the restoration of the original image based on an appropriate transfer function. In addition, since the iterative process for obtaining the reduced restoration data and the deconvolution process using the transfer function are combined, the apparatus does not increase in size and becomes a realistic restoration work. Is faster.
[0022] さらに他の発明は、上述の発明にカ卩え、原画像縮小データは、原画像のデータを 間引くことで形成されたものであり、処理部は、伝達関数を、原画像縮小データの原 画像力 の縮小率の逆数倍にし、かつ拡大された間を補間して新伝達関数を得、そ の新伝達関数を使用して元画像に近似する復元データを生成して ヽる。この構成を 採用すると、全体像に対応した伝達関数を得られることとなる。  [0022] Still another invention is based on the above-described invention, and the original image reduced data is formed by thinning out the data of the original image, and the processing unit uses the transfer function as the original image reduced data. The original image power of the image is reduced to a reciprocal of the reduction ratio, and the enlarged image is interpolated to obtain a new transfer function, and the new transfer function is used to generate restored data that approximates the original image. . If this configuration is adopted, a transfer function corresponding to the whole picture can be obtained.
[0023] また、他の発明は、上述の発明に加え、原画像縮小データは、原画像のデータから 一部の領域をそのまま取り出すことで形成されたものとして 、る。この構成を採用する と、部分的な領域に対応し、かつ全体画像にも適用できる伝達関数が得られることと なる。  [0023] In addition to the above-described invention, another invention assumes that the original image reduced data is formed by extracting a part of the area from the original image data as it is. If this configuration is adopted, a transfer function corresponding to a partial region and applicable to the entire image can be obtained.
[0024] さらに他の発明は、上述の発明に加え、元画像の復元処理を、(1)表示部に縮小 復元データを表示する処理と並行して、(2)撮影用の電源がオフされている時に、ま たは(3)表示部に縮小復元データを表示する処理を行った後に、行っている。 [0024] In addition to the above-mentioned inventions, the invention further reduces the original image restoration processing to (1) the display unit. In parallel with the process of displaying the restored data, this is done when (2) the imaging power is turned off or (3) after the process of displaying the reduced restored data on the display.
[0025] 上述の(1)の発明によれば、できる限り早く元画像の復元処理を実行した場合に好 ましいものとなる。また、上述の(2)、(3)の発明によれば、元画像の復元処理に長時 間を要する場合であっても、原画像縮小データの復元処理期間以外の期間に元画 像の復元処理を実行することによって、画像処理装置の負担を軽減することができる 。なお、このように元画像の復元処理の実行時期を遅らせる処理をしたとしても、表示 部に表示される画像は、撮影後短時間で縮小復元データとして表示できるため、画 像処理装置、特にカメラ等の撮影機能を有する画像処理装置を操作する者にとって 不都合や弊害はない。 [0025] According to the above invention (1), it is preferable when the original image restoration processing is executed as soon as possible. In addition, according to the inventions of (2) and (3) described above, even if a long time is required for the restoration process of the original image, the original image is copied during a period other than the restoration process period of the original image reduced data. By executing the restoration process, the burden on the image processing apparatus can be reduced. Even if processing for delaying the execution time of restoration processing of the original image is performed in this way, the image displayed on the display unit can be displayed as reduced restoration data in a short time after shooting. There is no inconvenience or harmful effect for those who operate an image processing apparatus having a photographing function.
[0026] さらに他の発明は、上述の発明に加え、処理部は、画像変化の要因となる変化要 因情報の値によって、表示部に、縮小復元データを表示する場合と、原画像縮小デ ータをそのまま表示する場合とに分ける処理を行っている。この発明によれば、劣化 等変化が著しい画像の場合は、復元作業を行った画像を表示部に表示し、劣化等 が無い画像の場合は、復元作業がなされず、縮小画像そのままが表示される。この ため、必要なときのみ復元作業が行われることとなり、処理負荷を軽減することができ る。  [0026] Further, in addition to the above-described invention, in another aspect of the invention, the processing unit displays the reduced / restored data on the display unit according to the value of the change factor information that causes the image change. The processing is divided into the case where the data is displayed as it is. According to the present invention, in the case of an image that has undergone remarkable changes such as deterioration, the restored image is displayed on the display unit, and in the case of an image that has no deterioration, the restoration operation is not performed and the reduced image is displayed as it is. The For this reason, restoration work is performed only when necessary, and the processing load can be reduced.
発明の効果  The invention's effect
[0027] 本発明によれば、撮影後、短時間で完全に補正された画像に近似する画像を表示 し、記録等その後に処理される画像の内容を短時間で確認できるようにした画像処 理装置を得ることができる。  [0027] According to the present invention, an image processing that displays an image that approximates an image that has been completely corrected in a short time after shooting, and that allows the content of an image to be processed thereafter, such as recording, to be confirmed in a short time. A physical device can be obtained.
図面の簡単な説明  Brief Description of Drawings
[0028] [図 1]本発明の実施の形態に係る画像処理装置の主要構成を示すブロック図である  FIG. 1 is a block diagram showing a main configuration of an image processing apparatus according to an embodiment of the present invention.
[図 2]図 1に示す画像処理装置の概要を示す外観斜視図で、角速度センサの配置位 置を説明するための図である。 FIG. 2 is an external perspective view showing an outline of the image processing apparatus shown in FIG. 1, and is a view for explaining an arrangement position of angular velocity sensors.
[図 3]図 1に示す画像処理装置の処理部で行う処理方法 (処理ルーチン)を説明する ための処理フロー図である n [図 4]図 3に示す処理方法の概念を説明するための図である。 3 is a process flow diagram for illustrating a processing method performed in the processing unit in the image processing apparatus (processing routine) shown in FIG. 1 n 4 is a diagram for explaining the concept of the processing method shown in FIG.
[図 5]図 3に示す処理方法を、手ぶれを例にして具体的に説明するための図で、手ぶ れのないときのエネルギーの集中を示す表である。  FIG. 5 is a diagram for specifically explaining the processing method shown in FIG. 3 using hand shake as an example, and a table showing energy concentration when there is no hand shake.
[図 6]図 3に示す処理方法を、手ぶれを例にして具体的に説明するための図で、手ぶ れのな 、ときの画像データを示す図である。  FIG. 6 is a diagram for specifically explaining the processing method shown in FIG. 3 using camera shake as an example, and is a diagram showing image data when there is no camera shake.
[図 7]図 3に示す処理方法を、手ぶれを例にして具体的に説明するための図で、手ぶ れが生じたときのエネルギーの分散を示す図である。  FIG. 7 is a diagram for specifically explaining the processing method shown in FIG. 3 with an example of camera shake, and is a diagram showing energy dispersion when camera shake occurs.
[図 8]図 3に示す処理方法を、手ぶれを例にして具体的に説明するための図で、任意 の画像力も比較用データを生成する状況を説明するための図である。  FIG. 8 is a diagram for specifically explaining the processing method shown in FIG. 3 using camera shake as an example, and is a diagram for explaining a situation in which data for comparison is generated with any image force.
[図 9]図 3に示す処理方法を、手ぶれを例にして具体的に説明するための図で、比較 用データと、処理対象となるぶれた原画像とを比較して、差分のデータを生成する状 況を説明するための図である。 [FIG. 9] A diagram for specifically explaining the processing method shown in FIG. 3 using camera shake as an example. Comparison data is compared with the blurred original image to be processed, and difference data is obtained. It is a figure for demonstrating the condition to produce | generate.
[図 10]図 3に示す処理方法を、手ぶれを例にして具体的に説明するための図で、差 分のデータを配分し任意の画像に加えることで復元データを生成する状況を説明す るための図である。  FIG. 10 is a diagram for specifically explaining the processing method shown in FIG. 3 by taking an example of camera shake, and explains the situation in which restored data is generated by allocating the difference data and adding it to an arbitrary image. FIG.
[図 11]図 3に示す処理方法を、手ぶれを例にして具体的に説明するための図で、生 成された復元データから新たな比較用データを生成し、そのデータと処理対象となる ぶれた原画像とを比較して差分のデータを生成する状況を説明するための図である  [FIG. 11] A diagram for specifically explaining the processing method shown in FIG. 3 by taking an example of camera shake. New comparison data is generated from the generated restored data, and the data and processing target are generated. It is a figure for demonstrating the condition which compares the blurred original image and produces | generates the data of a difference
[図 12]図 3に示す処理方法を、手ぶれを例にして具体的に説明するための図で、新 たに生成された差分のデータを配分し、新たな復元データを生成する状況を説明す るための図である。 [Fig. 12] A diagram for specifically explaining the processing method shown in Fig. 3 by taking an example of camera shake, and explaining the situation in which newly generated difference data is allocated and new restoration data is generated. FIG.
圆 13]図 3に示す処理方法を利用した第 1の処理方法である変化要因の重心を利用 した処理を説明するための図で、(A)は正しい画像のデータ中の 1つの画素に注目 する状態を示す図で、(B)は原画像のデータを示す図中で、注目した画素のデータ が拡がる状態を示す図である。 圆 13] This is a diagram for explaining processing using the center of gravity of the change factor, which is the first processing method using the processing method shown in Fig. 3. (A) focuses on one pixel in the correct image data. (B) is a diagram showing a state in which the data of the pixel of interest is expanded in the diagram showing the data of the original image.
圆 14]図 13に示す第 1の処理方法である変化要因の重心を利用した処理を、具体 的に説明するための図である。 [図 15]図 3に示す処理方法を利用した第 2の処理方法で、高速化を図る方法の第 1 を説明するための図で、(A)は処理対象となる原画像のデータを示し、 (B)は (A)の データを間引いたデータを示す図である。 [14] FIG. 14 is a diagram for specifically explaining the processing using the center of gravity of the change factor, which is the first processing method shown in FIG. FIG. 15 is a diagram for explaining the first of the second processing methods using the processing method shown in FIG. 3 and achieving high speed. FIG. 15 (A) shows the original image data to be processed. (B) is a figure which shows the data which thinned out the data of (A).
[図 16]図 15に示す第 2の処理方法のフローチャート図である。 FIG. 16 is a flowchart of the second processing method shown in FIG.
[図 17]図 3に示す処理方法を利用した第 3の処理方法で、高速化を図る方法の第 2 を説明するための図で、(A)は処理対象となる原画像のデータを示し、 (B)は (A)の データの一部を取り出したデータを示す図である。 FIG. 17 is a diagram for explaining a second method of speeding up the third processing method using the processing method shown in FIG. 3, and (A) shows data of the original image to be processed. (B) is a figure which shows the data which extracted some data of (A).
[図 18]図 17に示す第 3の処理方法のフローチャート図である。 FIG. 18 is a flowchart of the third processing method shown in FIG.
[図 19]図 17、図 18に示す第 3の処理方法の変形例を説明するための図で、原画像 のデータを 4分割し、各分割領域から、反復処理するための一部の領域を取り出すこ とを示す図である。 FIG. 19 is a diagram for explaining a modification of the third processing method shown in FIG. 17 and FIG. 18, in which the original image data is divided into four parts, and a part of the areas for iterative processing from each divided area. It is a figure which shows taking out.
符号の説明 Explanation of symbols
1 画像処理装置  1 Image processing device
2 撮影部  2 Shooting section
3 制御系部  3 Control system
4 処理部  4 Processing section
5 記録部  5 Recording section
6 検出部  6 Detector
7 要因情報保存部  7 Factor information storage
8 表示部  8 Display section
Io 初期画像のデータ (任意の画像のデータ)  Io Initial image data (any image data)
Ιο' 比較用データ  Ιο 'Comparison data
G 変化要因情報のデータ (劣化要因情報のデータ)  G Change factor information data (degradation factor information data)
GS 縮小された変化要因情報のデータ  GS Reduced change factor information data
Img' 原画像のデータ (撮影された画像)  Img 'Original image data (captured image)
ISmg' 原画像縮小データ  ISmg 'original image reduction data
δ 差分のデータ  δ Difference data
k 配分比 Io+n 復元データ (復元画像のデータ) k Allocation ratio Io + n Restored data (Restored image data)
ISo+n 縮小復元データ  ISo + n reduced restoration data
Img 劣化のな!、本来の正し!/、画像のデータ(元画像)  Img No deterioration! Original correctness! / Image data (original image)
ISmg 縮小元画像  ISmg Reduced original image
g (x) , g' (x) , g2 (x) 伝達関数 (大きい画像を復元するための伝達関数) gl (x) , gl' (x) 伝達関数 (縮小されたデータから得られた伝達関数) 発明を実施するための最良の形態  g (x), g '(x), g2 (x) transfer function (transfer function to restore a large image) gl (x), gl' (x) transfer function (transfer obtained from reduced data) Function) BEST MODE FOR CARRYING OUT THE INVENTION
[0030] 以下、本発明の第 1の実施の形態に係る画像処理装置 1について図を参照しなが ら説明する。なお、この画像処理装置 1は、民生用のカメラとしているが、監視用カメ ラ、テレビ用カメラ、内視鏡カメラ、等他の用途のカメラとしたり、顕微鏡、双眼鏡、さら には NMR撮影等の画像診断装置等、カメラ以外の機器にも適用できる。  Hereinafter, the image processing apparatus 1 according to the first embodiment of the present invention will be described with reference to the drawings. Although this image processing apparatus 1 is a consumer camera, it may be a camera for other uses such as a surveillance camera, a television camera, an endoscopic camera, a microscope, binoculars, and NMR imaging. The present invention can also be applied to devices other than cameras, such as diagnostic imaging devices.
[0031] 画像処理装置 1は、人物等の映像を撮影する撮影部 2と、その撮影部 2を駆動する 制御系部 3と、撮影部 2で撮影された画像を処理する処理部 4と、を有している。また 、この実施の形態に係る画像処理装置 1は、さらに処理部 4で処理された画像を記録 する記録部 5と、角速度センサ等からなり、画像劣化など変化の要因となる変化要因 情報を検知する検出部 6と、画像劣化などを生じさせる既知の変化要因情報を保存 する要因情報保存部 7と、モニタとなる表示部 8を有する。  [0031] The image processing apparatus 1 includes a photographing unit 2 that captures images of a person and the like, a control system unit 3 that drives the photographing unit 2, a processing unit 4 that processes images captured by the photographing unit 2, have. The image processing apparatus 1 according to this embodiment further includes a recording unit 5 that records the image processed by the processing unit 4 and an angular velocity sensor, and detects change factor information that causes a change such as image degradation. And a display unit 8 serving as a monitor. The detection unit 6 includes a factor information storage unit 7 that stores known change factor information that causes image degradation.
[0032] 撮像部 2は、レンズを有する撮影光学系やレンズを通過した光を電気信号に変換 する CCD (Charge Coupled Devices) ^C— MOS (complementary Metal Oxide bem iconductor)等の撮像素子を備える部分である。制御系部 3は、撮影部 2,処理部 4, 記録部 5、検出部 6,要因情報保存部 7、および表示部 8等、画像処理装置 1内の各 部を制御するものである。  [0032] The imaging unit 2 includes a photographing optical system having a lens and an imaging element such as a CCD (Charge Coupled Devices) ^ C—MOS (Complementary Metal Oxide Beam Semiconductor) that converts light passing through the lens into an electrical signal. It is. The control system unit 3 controls each unit in the image processing apparatus 1 such as the photographing unit 2, the processing unit 4, the recording unit 5, the detection unit 6, the factor information storage unit 7, and the display unit 8.
[0033] 処理部 4は、画像処理プロセサで構成されており、 ASIC(Application Specific Integ rated Circuit)のようなハードウェアで構成されている。この処理部 4には、後述する比 較用データを生成する際の元となる画像が保管されることもある。処理部 4は、 ASIC のようなハードウェアとして構成されたものではなぐソフトウェアで処理する構成とし ても良い。記録部 5は、半導体メモリで構成されているが、ハードディスクドライブ等の 磁気記録手段や、 DVD (Digital Versatile Disk)等を使用する光記録手段等を採用 しても良い。 The processing unit 4 is composed of an image processing processor, and is composed of hardware such as an ASIC (Application Specific Integrated Circuit). The processing unit 4 may store an image serving as a base when generating comparison data to be described later. The processing unit 4 may be configured to process with software rather than configured as hardware such as an ASIC. The recording unit 5 is composed of a semiconductor memory, but adopts magnetic recording means such as a hard disk drive, optical recording means using a DVD (Digital Versatile Disk), etc. You may do it.
[0034] 検出部 6は、図 2に示すように、画像処理装置 1の光軸である Z軸に対して垂直方 向となる X軸、 Y軸の回りの速度を検出する 2つの角速度センサを備えるものである。 ところで、カメラで撮影する際の手ぶれは、 X方向、 Y方向、 Z方向の各方向への移動 や Z軸回りの回動も生ずる力 各変動により最も大きな影響を受けるのは、 Y軸回りの 回転と X軸回りの回転である。これら 2つの変動は、ほんのわずかに変動しただけで、 その撮影された画像は大きくぼける。このため、この実施の形態では、図 2の X軸回り と Y軸回りの 2つの角速度センサのみを配置している。し力し、より完全を期すため Z 軸回りの角速度センサをさらに付加したり、 X方向や Y方向への移動を検出するセン サを付加しても良い。また、使用するセンサとしては、角速度センサではなぐ角加速 度センサとしても良い。  As shown in FIG. 2, the detection unit 6 includes two angular velocity sensors that detect the speeds around the X and Y axes that are perpendicular to the Z axis that is the optical axis of the image processing apparatus 1. Is provided. By the way, camera shake when shooting with the camera is the force that also causes movement in the X, Y, and Z directions and rotation around the Z axis. Rotation and rotation around the X axis. These two variations are only a slight variation, and the captured image is greatly blurred. Therefore, in this embodiment, only two angular velocity sensors around the X axis and the Y axis in FIG. 2 are arranged. For the sake of completeness, an additional angular velocity sensor around the Z axis or a sensor that detects movement in the X or Y direction may be added. In addition, the sensor used may be an angular acceleration sensor that is not an angular velocity sensor.
[0035] 要因情報保存部 7は、既知の劣化要因情報などの変化要因情報、たとえば光学系 の収差等を保存しておく記録部である。なお、この実施の形態では、要因情報保存 部 7には、光学系の収差やレンズのひずみの情報が保存されている力 後述する手 ぶれのぼけの復元の際にはそれらの情報は、利用していない。表示部 8は、撮影さ れた画像から画素数を減じた画像の補正後 (復元後)の画像データである縮小復元 データを記録部 5より取得し、その縮小復元データを縮小元画像として表示する。こ の表示部 8は、図 2に示すように撮影部 2の反対側の面に配置されることが多いが、 撮影部 2と同一側の面や、側方側の面に配置しても良い。  The factor information storage unit 7 is a recording unit that stores change factor information such as known deterioration factor information, such as aberrations of the optical system. In this embodiment, the factor information storage unit 7 stores information on aberrations of the optical system and lens distortion. The information is used when restoring blurring of camera shake described later. Not done. The display unit 8 obtains the reduced / restored data, which is image data after correction (after restoration) of the image obtained by subtracting the number of pixels from the captured image, from the recording unit 5, and displays the reduced / restored data as a reduced original image. To do. As shown in FIG. 2, the display unit 8 is often disposed on the surface opposite to the image capturing unit 2, but it may be disposed on the same side as the image capturing unit 2 or on the side surface. good.
[0036] 次に、以上のように構成された画像処理装置 1の処理部 4の処理方法の概要を、図 3に基づいて説明する。  Next, an outline of the processing method of the processing unit 4 of the image processing apparatus 1 configured as described above will be described with reference to FIG.
[0037] 図 3中、「Io」は、任意の初期画像であって、処理部 4の記録部に予め保存されてい る画像のデータである。 Γΐο' 」は、その初期画像のデータの Ιοの劣化画像のデータ を示し、比較のための比較用データである。「G」は、検出部 6で検出された変化要因 情報(=劣化要因情報 (点像関数) )のデータで、処理部 4の記録部に保存されるも のである。「Img' 」は、撮影された画像、すなわち劣化画像のデータを指し、この処 、て処理対象となる原画像のデータである。  In FIG. 3, “Io” is an arbitrary initial image and is image data stored in advance in the recording unit of the processing unit 4. “Γΐο '” indicates the data of the degraded image of 初期 ο of the initial image data, and is comparative data for comparison. “G” is data of change factor information (= deterioration factor information (point spread function)) detected by the detection unit 6, and is stored in the recording unit of the processing unit 4. “Img ′” indicates captured image data, that is, data of a degraded image, and is data of an original image to be processed.
[0038] 「 δ」は、原画像のデータ Img' と、比較用データ Io' との差分のデータである。「k 」は、変化要因情報のデータに基づく配分比である。「Io+n」は、初期画像のデータ Ioに、差分のデータ δを変化要因情報のデータに基づいて配分して新たに生成した 復元画像のデータ (復元データ)である。 rimgjは、撮影された劣化画像である原画 像のデータ Img^ の基となった、劣化のない本来の正しい画像のデータである。ここ で、 Imgと Img' の関係は、次の(1)式で現されるとする。 “Δ” is difference data between the original image data Img ′ and the comparison data Io ′. "K "Is a distribution ratio based on data of change factor information. “Io + n” is restored image data (restored data) newly generated by allocating the difference data δ to the initial image data Io based on the data of the change factor information. rimgj is the original correct image data with no deterioration, which is the basis of the original image data Img ^, which is the deteriorated image taken. Here, the relationship between Img and Img 'is expressed by the following equation (1).
[0039] Img' =Img X G …ひ) [0039] Img '= Img X G ... hi)
[0040] なお、差分のデータ δは、対応する画素の単純な差分でも良い場合もあるが、一般 的には、変化要因情報のデータ Gにより異なり、次の(2)式で現される。  [0040] Note that the difference data δ may be a simple difference between corresponding pixels, but generally, the difference data δ differs depending on the data G of the change factor information, and is expressed by the following equation (2).
[0041] δ =f (Img' , Img, G) --- (2) [0041] δ = f (Img ', Img, G) --- (2)
[0042] 処理部 4の処理ルーチンは、まず、任意の画像のデータ Ioを用意する(ステップ S1 01)ことから始まる。この初期画像のデータ Ioとしては、撮影された劣化画像のデータ Img' を用いても良ぐまた、黒ベタ、白ベタ、灰色ベタ、巿松模様等どのような画像 のデータを用いても良い。ステップ S102で、(1)式の Imgの代わりに初期画像となる 任意の画像のデータ Ioを入れ、劣化画像である比較用データ Io'を求める。次に、撮 影された劣化画像である原画像のデータ Img' と比較用データ I と比較し、差分の データ δを算出する (ステップ S 103)。  [0042] The processing routine of the processing unit 4 starts by preparing arbitrary image data Io (step S101). As the initial image data Io, it is possible to use the image Img 'of the deteriorated image that has been taken, or any image data such as a black solid, a white solid, a gray solid, or a pine pattern. . In step S102, the data Io of an arbitrary image to be an initial image is input instead of Img in the equation (1), and comparison data Io ′ that is a degraded image is obtained. Next, the data Img ′ of the original image, which is the captured degraded image, is compared with the comparison data I, and difference data δ is calculated (step S103).
[0043] 次に、ステップ S 104で、この差分のデータ δが所定値以上であるか否かを判断し 、所定値以上であれば、ステップ S 105で新たな復元画像のデータ(=復元データ) を生成する処理を行う。すなわち、差分のデータ δを変化要因情報のデータ Gに基 づいて、任意の画像のデータ Ioに配分し、新たな復元データ Io+nを生成する。その 後、ステップ S102, S103, S104を繰り返す。  Next, in step S 104, it is determined whether or not the difference data δ is equal to or greater than a predetermined value. If the difference data δ is equal to or greater than the predetermined value, a new restored image data (= restored data) is determined in step S 105. ) Process to generate. That is, the difference data δ is distributed to arbitrary image data Io based on the change factor information data G to generate new restored data Io + n. Thereafter, steps S102, S103, and S104 are repeated.
[0044] ステップ S104において、差分のデータ δが所定値より小さい場合、処理を終了す る(ステップ S106)。そして、処理を終了した時点での復元データ Io+nを正しい画 像、すなわち劣化のない画像のデータ Imgと推定し、そのデータを記録部 5に記録 する。なお、記録部 5には、初期画像のデータ Ioや変化要因情報のデータ Gを記録 しておき、必要により処理部 4に渡すようにしても良い。ここで、原画像もしくは本来撮 影されるべきであった正しい画像またはそれらの近似画像を「元画像」と呼ぶこととす る。よってデータ Imgや復元データ Io+nは、「元画像」のデータとなる。 [0045] 以上の処理方法の考え方をまとめると以下のようになる。すなわち、この処理方法 においては、処理の解を逆問題としては解かず、合理的な解を求める最適化問題と して解くのである。逆問題として解く場合、特許文献 2の記載にもあるように、理論上 は可能であるが、現実問題としては困難である。 If the difference data δ is smaller than the predetermined value in step S104, the process is terminated (step S106). Then, the restored data Io + n at the end of the processing is estimated as the correct image, that is, the data Img of the image without deterioration, and the data is recorded in the recording unit 5. The recording unit 5 may record the initial image data Io and the change factor information data G, and pass them to the processing unit 4 as necessary. Here, the original image, the correct image that should have been originally taken, or an approximate image thereof is referred to as an “original image”. Therefore, the data Img and the restored data Io + n are “original image” data. [0045] The concept of the above processing method is summarized as follows. In other words, in this processing method, the processing solution is not solved as an inverse problem, but as an optimization problem for obtaining a rational solution. When solving as an inverse problem, it is theoretically possible as described in Patent Document 2, but it is difficult as a real problem.
[0046] 最適化問題として解くということは、次の条件を前提としている。  [0046] Solving as an optimization problem is based on the following conditions.
すなわち、  That is,
(1)入力に対する出力は、一意に決まる。  (1) The output corresponding to the input is uniquely determined.
(2)出力が同じであれば、入力は同じである。  (2) If the output is the same, the input is the same.
(3)出力が同じになるように、入力を更新しながら反復処理することにより、解を収束 させていく。  (3) The solution is converged by iteratively updating the input so that the output is the same.
[0047] このことを換言すれば、図 4 (A) (B)に示すように、撮影された画像である原画像の データ Img' と近似である比較用データ Ιο^ (Ιο+η' )を生成できれば、その生成 の元データとなる初期画像のデータ Ιοまたは復元データ Ιο+ηは、原画像のデータ I mg' の元となる正 U、画像のデータ Imgに近似したものとなる。  In other words, as shown in FIGS. 4 (A) and 4 (B), the comparison data Ιο ^ (Ιο + η ') is approximate to the data Img' of the original image that was taken. Can be generated, the initial image data Ιο or restored data Ιο + η, which is the original data for the generation, is approximate to the positive U, the image data Img, which is the original image data I mg '.
[0048] なお、この実施の形態では、角速度検出センサは 5 sec毎に角速度を検出してい る。また、差分のデータ δの判定基準となる値は、各データを 8ビット(0〜255)で現 した場合に、この実施の形態では「6」としている。すなわち、 6より小さい、つまり 5以 下の時は、処理を終了している。また、角速度検出センサで検出したブレの生データ は、センサ自体の校正が不十分なときは、実際のブレとは対応しない。よって実際の ブレに対応させるため、センサが校正されていないときは、センサで検出した生デー タに所定の倍率をかけたりする補正が必要とされる。  [0048] In this embodiment, the angular velocity detection sensor detects the angular velocity every 5 seconds. Also, the value used as the determination criterion for the difference data δ is “6” in this embodiment when each data is represented by 8 bits (0 to 255). That is, when it is less than 6, that is, 5 or less, the processing is finished. In addition, the shake data detected by the angular velocity detection sensor does not correspond to actual shake when the sensor itself is not calibrated. Therefore, in order to cope with actual blurring, when the sensor is not calibrated, a correction is required to multiply the raw data detected by the sensor by a predetermined magnification.
[0049] 次に、図 3および図 4に示す処理方法の詳細を、図 5,図 6,図 7,図 8,図 9,図 10 ,図 11および図 12に基づいて説明する。  Next, the details of the processing method shown in FIGS. 3 and 4 will be described with reference to FIGS. 5, 6, 7, 8, 8, 9, 10, 11 and 12. FIG.
[0050] (手ぶれの復元アルゴリズム)  [0050] (Image restoration algorithm)
手ぶれが無いとき、所定の画素に対応する光エネルギーは、露光時間中、その画 素に集中する。また、手ぶれがある場合、光エネルギーは、露光時間中にぶれた画 素に分散する。さらに、露光時間中のブレがわかれば、露光時間中のエネルギーの 分散の仕方がわ力るため、ぶれた画像力 ブレの無い画像を作ることが可能となる。 [0051] 以下、簡単のため、横一次元で説明する。画素を左から順に、 n-1, n, n+1, n+2, n +3, ···,とし、ある画素 nに注目する。ブレが無いとき、露光時間中のエネルギーは、 その画素に集中するため、エネルギーの集中度は「1. 0」である。この状態を図 5に 示す。このときの撮影結果を、図 6の表に示す。図 6に示すもの力 劣化しなカゝつた場 合の正しい画像データ Imgとなる。なお、各データは、 8ビット(0〜255)のデータで 現している。 When there is no camera shake, the light energy corresponding to a given pixel is concentrated on that pixel during the exposure time. In addition, when there is camera shake, light energy is dispersed in the blurred pixels during the exposure time. Furthermore, if the blur during the exposure time is known, the manner in which the energy is dispersed during the exposure time can be clearly understood, so that it is possible to produce an image with no blurring of image blur. [0051] Hereinafter, for simplicity, the description will be made in one horizontal dimension. From the left, the pixels are n-1, n, n + 1, n + 2, n + 3,. When there is no blur, the energy during the exposure time is concentrated on the pixel, so the energy concentration is “1.0”. This state is shown in Fig. 5. The table of Fig. 6 shows the shooting results at this time. The power shown in Fig. 6 is the correct image data Img when there is no deterioration. Each data is expressed as 8-bit (0 to 255) data.
[0052] 露光時間中にブレがあり、露光時間中の 50%の時間は n番目の画素に、 30%の 時間は n+ 1番目の画素に、 20%の時間は n+ 2番目の画素に、それぞれぶれてい たとする。エネルギーの分散の仕方は、図 7に示す表のとおりとなる。これが変化要因 情報のデータ Gとなる。  [0052] There is a blur during the exposure time, 50% of the exposure time is at the nth pixel, 30% is at the n + 1st pixel, 20% is at the n + 2th pixel, Suppose that each was blurred. The way of energy distribution is shown in the table shown in Fig. 7. This becomes the data G of the change factor information.
[0053] ブレは、全ての画素で一様であるので、上ぶれ(縦ぶれ)が無!、とすると、ブレの状 況は、図 8に示す表のとおりとなる。図 8中の「撮影結果」として示されるデータ力 元 の正しい画像のデータ Imgで、「ブレ画像」として示されるデータ力 撮影された劣化 画像のデータ Img' となる。具体的には、たとえば「n— 3」の画素の「120」は、ぶれ 情報である変化要因情報のデータ Gの「0. 5J「0. 3」「0. 2」の配分比に従い、「n— 3」の画素に「60」、「n— 2」の画素に「36」、「n— 1」の画素に「24」というように分散 する。同様に、「n— 2」の画素のデータである「60」は、「n— 2」に「30」、「n— 1」に「1 8」、「n」に「12」として分散する。この劣化画像のデータ Im と、図 7に示す変化要 因情報のデータ G力 ぶれの無い撮影結果を算出することとなる。  [0053] Since blurring is uniform for all pixels, assuming that there is no top blur (vertical blurring), the blurring situation is as shown in the table in FIG. The data force Img of the correct image data shown as “shooting result” in FIG. 8 becomes the data force Img ′ of the deteriorated image taken as the data force “blurred image”. Specifically, for example, “120” of the pixel “n−3” is determined according to the distribution ratio of “0.5J”, “0.3”, “0.2” in the data G of the change factor information that is the blur information. It is distributed as “60” to n-3 pixels, “36” to “n-2” pixels, and “24” to “n-1” pixels. Similarly, “60”, which is pixel data of “n−2”, is distributed as “30” in “n−2”, “1 8” in “n−1”, and “12” in “n”. . This deteriorated image data Im and the change factor information data G shown in FIG. 7 are calculated.
[0054] ステップ S101に示す任意の画像のデータ Ioとしては、どのようなものでも採用でき る力 この説明に当たっては、撮影した原画像のデータ Img' を用いる。すなわち、 I o=Img' として処理を開始する。図 9の表中に「入力」とされたものが初期画像のデ ータ Ioに相当する。このデータ Ioすなわち Img' に、ステップ S102で変化要因情報 のデータ Gをかける。すなわち、たとえば、初期画像のデータ Ioの「n— 3」の画素の「 60」は、 n— 3の画素に「30」が、「n— 2」の画素に「18」が、「n— 1」の画素に「12」が それぞれ割り振られる。他の画素についても同様に配分され、「出力 Io' 」として示さ れる比較用データ Io' が生成される。このため、ステップ S103の差分のデータ δは 、図 9の最下欄に示すようになる。 [0055] この後、ステップ S104にて差分のデータ δの大きさを判断する。具体的には、差分 のデータ δが全て絶対値で 5以下となった場合に処理を終了する力 図 9に示す差 分のデータ δは、この条件に合わないため、ステップ S105に進む。すなわち、差分 のデータ δを変化要因情報のデータ Gを使用して、任意の画像のデータ Ιοに配分し て、図 10中の「次回入力」として示される復元データ Ιο+ηを生成する。この場合、第 1回目であるため、図 10では、 Io + lと現している。 [0054] Any image data Io shown in step S101 can be used. For this description, the photographed original image data Img 'is used. That is, the process is started as I o = Img ′. In the table in Fig. 9, “input” corresponds to the data Io of the initial image. This data Io, ie, Img ', is multiplied by the change factor information data G in step S102. That is, for example, “60” of the “n−3” pixel of the initial image data Io is “30” for the n−3 pixel, “18” for the “n−2” pixel, “12” is assigned to each “1” pixel. The other pixels are similarly allocated to generate comparison data Io ′ shown as “output Io ′”. Therefore, the difference data δ in step S103 is as shown in the bottom column of FIG. [0055] Thereafter, the size of the difference data δ is determined in step S104. Specifically, the power to end the processing when all the difference data δ becomes 5 or less in absolute value. Since the difference data δ shown in FIG. 9 does not meet this condition, the process proceeds to step S105. In other words, the difference data δ is distributed to arbitrary image data Ιο using the change factor information data G, and the restored data Ιο + η shown as “next input” in FIG. 10 is generated. In this case, since this is the first time, Io + l is shown in FIG.
[0056] 差分のデータ δの配分は、たとえば「η— 3」の画素のデータ「30」に自分の所( =「 η— 3」の画素)の配分比である 0. 5をかけた「15」を「η— 3」の画素に配分し、また「η 2」の画素のデータ「15」にその「η— 2」の画素にきているはずの配分比である 0. 3 を力けた「4. 5」を配分し、さらに、「η—1」の画素のデータ「9. 2」に、その「η—1」の 画素にきているはずの配分比である 0. 2をかけた「1. 84」を配分する。「η— 3」の画 素に配分された総量は、「21. 34」となり、この値を初期画像のデータ Ιο (ここでは撮 影された原画像のデータ Img' を使用)にプラスして、復元データ Io + 1を生成して いる。  For example, the difference data δ is distributed by multiplying the data “30” of the pixel “η−3” by 0.5, which is the distribution ratio of its place (= the pixel “η−3”). 15 ”is distributed to the pixel“ η−3 ”, and the data“ 15 ”of the pixel“ η 2 ”is assigned the distribution ratio 0.3 that should have come to the pixel“ η−2 ”. “4.5” is distributed, and the data “9.2” of the pixel “η−1” is allocated to the distribution ratio 0.2 that should have come to the pixel “η−1”. Allocate “1.84”. The total amount allocated to the “η-3” pixel is “21. 34”, and this value is added to the initial image data Ιο (here, the original image data Img 'was used). The restoration data Io + 1 is generated.
[0057] 図 11に示すように、この復元データ Io + lがステップ S 102の入力画像のデータ(  [0057] As shown in FIG. 11, the restored data Io + l is the input image data (step S102).
=初期画像のデータ Io)になり、ステップ S 102が実行され、ステップ S 103へと移行 し、新しい差分のデータ δを得る。その新しい差分のデータ δの大きさをステップ SI 04で判断し、所定値より大きい場合、ステップ S 105で新しい差分のデータ δを前回 の復元データ Io + lに配分し、新しい復元データ Io + 2を生成する(図 12参照)。そ の後、ステップ S102の遂行により、復元データ Io + 2から新しい比較用データ Io + 2 ' が生成される。このように、ステップ S102, S103が実行された後、ステップ S104 へ行き、そこでの判断によりステップ S 105へ移行したり、ステップ S 106へ移行する。 このような処理を繰り返す。  = Initial image data Io), step S102 is executed, and the process proceeds to step S103 to obtain new difference data δ. The size of the new difference data δ is determined in step SI 04, and if it is larger than the predetermined value, in step S 105, the new difference data δ is allocated to the previous restoration data Io + l, and the new restoration data Io + 2 (See Figure 12). After that, by performing step S102, new comparison data Io + 2 ′ is generated from the restored data Io + 2. As described above, after steps S102 and S103 are executed, the process goes to step S104, whereupon the process proceeds to step S105 or the process proceeds to step S106. Such a process is repeated.
[0058] この画像処理装置 1では、処理するに当たり、ステップ S104において、事前に処理 回数と、差分のデータ δの判断基準値のいずれか一方または両者を設定できる。た とえば処理回数として 20回、 50回等任意の回数を設定できる。また、処理を停止さ せる差分のデータ δの値を 8ビット(0〜255)中の「5」と設定し、 5以下になったら処 理を終了させたり、「0. 5」と設定し「0. 5」以下になったら処理を終了させることがで きる。この設定値を任意に設定できる。処理回数と判断基準値の両者を入力した場 合、いずれか一方が満足されたとき処理は停止される。なお、両者の設定を可能とし たとき、判断基準値を優先し、所定の回数の処理では判断基準値内に入らな力つた 場合、さらに所定回数の処理を繰り返すようにしても良い。 In this image processing apparatus 1, before processing, in step S 104, either or both of the number of processes and the determination reference value of the difference data δ can be set in advance. For example, the number of processing can be set to any number such as 20 or 50 times. Also, set the value of the difference data δ to stop processing to “5” in 8 bits (0 to 255). When it becomes 5 or less, the processing is terminated or set to “0.5”. The process can be terminated when the value falls below "0.5". wear. This set value can be set arbitrarily. If both the number of processing times and the criterion value are entered, the processing is stopped when either one is satisfied. When both of these settings are possible, the determination reference value may be prioritized, and if the predetermined number of processes does not fall within the determination reference value, the predetermined number of processes may be repeated.
[0059] この実施の形態の説明の中では、要因情報保存部 7に保存されている情報を利用 しなかった力 ここに保存されている既知の劣化要因、たとえば光学収差やレンズの ひずみなどのデータを使用するようにしても良い。その場合、たとえば、先の例(図 3) の処理方法では、ブレの情報と光学収差の情報を合わせて 1つの劣化要因として捉 えて処理を行うのが好まし!/、が、ブレの情報での処理を終了した後に光学収差の情 報での補正を行うようにしても良い。また、この要因情報保存部 7を設置しないように して、撮影時の動的要因、たとえばブレのみで画像を修正したり復元したりしても良 い。  In the description of this embodiment, the force that did not use the information stored in the factor information storage unit 7, such as known deterioration factors stored here, such as optical aberrations and lens distortions, etc. Data may be used. In this case, for example, in the processing method in the previous example (Fig. 3), it is preferable to perform processing by combining blur information and optical aberration information as one deterioration factor! After the processing in step S5 is completed, correction may be performed using information on optical aberration. Further, the factor information storage unit 7 may not be installed, and the image may be corrected or restored only by dynamic factors during shooting, for example, only blurring.
[0060] 以上、本発明の実施の形態に係る画像処理装置 1の基本構成と復元処理の基本 ルーチンについて説明した力 以下では、この画像処理装置 1を使用した例または 変形例について説明する。  [0060] As described above, the basic configuration of the image processing apparatus 1 according to the embodiment of the present invention and the power that explains the basic routine of the restoration process. In the following, an example or a modification using the image processing apparatus 1 will be described.
[0061] たとえば、復元データ Io+nを生成するとき、配分比 kを使用せず、対応する画素の 差分のデータ δをそのまま前回の復元データ Io+n— 1の対応する画素に加えたり、 対応する画素の差分のデータ δを変倍した後に加えたり、また差分のデータ δが割 り振られた後のデータ k S (図 10、図 12中の「更新量」として示される値)を変倍して、 前回の復元データ Io +n— 1に加えるようにしても良 ヽ。これらの処理方法をうまく活 用すると、処理速度が速くなる。  [0061] For example, when generating the restored data Io + n, the distribution ratio k is not used, and the difference data δ of the corresponding pixel is directly added to the corresponding pixel of the previous restored data Io + n-1; The data k S (value indicated as “update amount” in FIGS. 10 and 12) after adding the difference data δ of the corresponding pixel after scaling or adding the difference data δ is added. You can zoom in and add it to the previous restored data Io + n— 1. When these processing methods are used well, the processing speed increases.
[0062] また、復元データ Io+nを生成するとき、劣化等の変化要因の重心を算出し、その 重心のみの差分、またはその差分の変倍を前回の復元データ Io+n— 1に加えるよう にしても良い。この考え方、すなわち、変化要因の重心を利用した処理方法を、図 3 に示す処理方法を利用した第 1の処理方法として、図 13および図 14に基づいて以 下に説明する。  [0062] When the restoration data Io + n is generated, the center of gravity of the change factor such as deterioration is calculated, and the difference of only the center of gravity or the scaling of the difference is added to the previous restoration data Io + n-1. You may do it. This concept, that is, the processing method using the center of gravity of the change factor will be described below as the first processing method using the processing method shown in FIG. 3 with reference to FIGS.
[0063] 図 13に示すように、正しい画像のデータ Imgが画素 11〜15, 21〜25, 31〜35, 41〜45, 51〜55で構成されているとき、図 13 (A)に示すように、画素 33に注目す る。手ブレなどにより画素 33力画素 33, 43, 53, 52の位置へと動いていくと、劣ィ匕し た画像である原画像のデータ Img' では、図 13 (B)に示すように、画素 33, 43, 52 , 53に初めの画素 33の影響が出る。 As shown in FIG. 13, when the correct image data Img is composed of pixels 11 to 15, 21 to 25, 31 to 35, 41 to 45, 51 to 55, it is shown in FIG. As you look at pixel 33 The When moving to the position of pixel 33 force pixel 33, 43, 53, 52 due to camera shake etc., the original image data Img 'which is a poor image, as shown in Fig. 13 (B), The pixels 33, 43, 52 and 53 are affected by the first pixel 33.
[0064] このような劣化の場合、画素 33が移動する際、画素 43の位置に最も長時間位置し ていたとすると、劣化、すなわち変化の要因の重心は、正しい画像のデータ Img中の 画素 33に関しては原画像のデータ Img' では画素 43の位置にくる。これにより、差 分のデータ δは、図 14に示すように、原画像のデータ Img' と比較用データ Io' の それぞれの画素 43の差として計算する。その差分のデータ δは、初期画像のデータ Ioや復元データ Ιο+ηの画素 33に加えられる。  [0064] In the case of such deterioration, if the pixel 33 moves and is located at the position of the pixel 43 for the longest time, the center of deterioration, that is, the cause of the change is the pixel 33 in the correct image data Img. In the original image data Img ', pixel 43 is located. As a result, the difference data δ is calculated as the difference between the pixels 43 of the original image data Img ′ and the comparison data Io ′ as shown in FIG. The difference data δ is added to the pixel 33 of the initial image data Io and the restoration data Ιο + η.
[0065] また、先の例で言えば、「0. 5」「0. 3」「0. 2」の 3つの重心は、最も値が大きい「0.  Further, in the above example, the three centroids of “0.5”, “0.3”, and “0.2” have the largest value “0.
5」の位置であり、自分の位置となる。よって「0. 3」や「0. 2」の割り振りを考慮せず、 差分のデータ δの「0. 5」または 0. 5の変倍分のみ自己の位置に割り振るようにする こととなる。このような処理は、ブレのエネルギーが集中している場合に好適となる。  5 ”position and will be my position. Therefore, the allocation of “0.5” or “0.5” of the difference data δ is allocated to its own position without considering the allocation of “0.3” or “0.2”. Such a process is suitable when the blur energy is concentrated.
[0066] さらに、変化要因情報のデータ Gの内容によって自動的に上述した各処理方法を 選択させるようにすることもできる。すなわち、処理部 4は、変化要因情報のデータ G を複数の種類の内のいずれか〖こ分類付けし、その分類毎に違う処理を行わせること ができる。たとえば、処理方法として、(1)図 5〜図 12に示したように、配分比 kを使用 して差分のデータ δを配分する方法 (実施例方式)、(2)対応する画素の差分、また は差分のデータ δを変倍する方法 (対応画素方式)、(3)劣化要因の重心を検出し てその重心部分のデータを利用する方法 (重心方法)の 3方法を実行できるプロダラ ムを処理部 4内に保存しておき、劣化要因の状況を分析し、その分析結果に基づき、 その 3つの方法のいずれ力 1つを選択するようにする。また、 3つの方法のうちいずれ か複数を選択し、 1ルーチンの度に交互に利用したり、最初の数回はある方式で処 理し、その後は他の方式で処理するようにしても良い。  [0066] Furthermore, each processing method described above can be automatically selected according to the contents of the data G of the change factor information. That is, the processing unit 4 can classify the data G of the change factor information into one of a plurality of types, and perform different processing for each classification. For example, as a processing method, (1) a method of allocating difference data δ using an allocation ratio k as shown in FIGS. 5 to 12 (embodiment method), (2) a corresponding pixel difference, Alternatively, a program that can execute three methods: scaling the difference data δ (corresponding pixel method), (3) detecting the centroid of the deterioration factor, and using the data of the centroid (centroid method). Save it in the processing unit 4, analyze the situation of the deterioration factor, and select one of the three methods based on the analysis result. Also, you can select any one of the three methods and use them alternately for each routine, or process the first few times using a certain method and then use another method. .
[0067] この画像処理装置 1では、表示部 8に復元された画像を表示するようにしている。し かし、撮影した劣化画像をそのまま復元しょうとすると、処理時間が長くなり、表示部 8 に撮影直後に表示することができなくなる。そこで、復元処理の高速化を図っている 。以下、この高速ィ匕について説明する。 [0068] 復元処理の高速化を図る意味で、逆問題と組み合わせる方法が存在する。すなわ ち、縮小データで反復処理を行い、縮小した原画像から縮小した復元データへの伝 達関数を算出する。そして算出された伝達関数を拡大、補間し、その拡大、補間され た伝達関数を使って原画像の復元データを得る。この処理方法は大きな画像の処理 に有利となる。 In this image processing apparatus 1, the restored image is displayed on the display unit 8. However, if the captured degraded image is restored as it is, the processing time becomes long, and it cannot be displayed on the display unit 8 immediately after shooting. Therefore, the restoration process is speeded up. Hereinafter, this high speed key will be described. There is a method combined with the inverse problem in order to increase the speed of the restoration process. In other words, iterative processing is performed on the reduced data, and a transfer function from the reduced original image to the reduced restored data is calculated. Then, the calculated transfer function is enlarged and interpolated, and the restored data of the original image is obtained using the enlarged and interpolated transfer function. This processing method is advantageous for processing large images.
[0069] 以下に、大きな画像の復元に有利な高速処理ィ匕の基本的な考え方について説明 する。  [0069] The basic concept of high-speed processing that is advantageous for restoring a large image will be described below.
[0070] 反復処理だけでは、どうしても収束に時間が力かってしまう。この欠点は、大きな画 像の場合、顕著となる。一方、周波数空間でのデコンボリューシヨンは、高速フーリエ 変換(Fast Fourier Transform:FFT)を利用して高速計算ができるため、非常に魅力 的である。ここでいう光学的なデコンボリューシヨンとは、歪みやぼけなどにより劣化等 した画像力もその歪みなどを除去して、劣化等して 、な 、元画像を復元することを ヽ  [0070] With only iterative processing, it takes time to converge. This disadvantage is noticeable for large images. On the other hand, deconvolution in the frequency space is very attractive because it can perform high-speed calculations using Fast Fourier Transform (FFT). Optical deconvolution as used herein refers to restoring the original image by removing the image power that has deteriorated due to distortion, blurring, etc., and removing the distortion.
[0071] 画像の場合、入力を in(x)、出力を ou(x)、伝達関数を g(x)としたとき、理想状態 では、出力 ou(x)はコンボリューシヨン積分となり、 [0071] In the case of an image, when the input is in (x), the output is ou (x), and the transfer function is g (x), in the ideal state, the output ou (x) is convolution integration,
ou(x)= J in(t)g(x-t) dt---(3)  ou (x) = J in (t) g (x-t) dt --- (3)
となる。なお、「 ί」は積分の記号である。この式(3)は、周波数空間で、 0(u)=l(u)G(u)-(4)  It becomes. Note that “ί” is an integration symbol. This equation (3) is 0 (u) = l (u) G (u)-(4)
となる。この既知の出力 ou(x)から、伝達関数 g(x)または未知の入力 in (X)を求め るのがデコンボリューシヨンであり、この目的のため、周波数空間で、 I(u) =0(u)/G (u)が求められれば、これを実空間に戻すことで、未知の入力 in (X)を求めることがで きる。  It becomes. From this known output ou (x), the transfer function g (x) or unknown input in (X) is deconvolution, and for this purpose, in frequency space, I (u) = 0 If (u) / G (u) is obtained, the unknown input in (X) can be obtained by returning it to the real space.
[0072] しかし、実際はノイズ等より、式(3)は、「ou(x) + a (x) = J in(t)g(x— t)dt+ a ( x)」となる。ここで、「ou(x) + a (x) Jは既知だが、 ou(x)と a (x)のそれぞれは未知 である。これを、たとえ近似的に逆問題として解いたとしても、充分満足できる解を得 ることは現実的には難しい。そこで、 ou(x) + a (x) = J in(t)g(x— t)dt+ a (x) ^ J jn (t) g (x-t) dtとなる、 jn (x)を、反復法を用いて収束させて!/、き、得るのが上述 した図 3の処理フローである。 ここで、「α (χ)《ou(x)」であれば、 jn (x) in (χ)と考えられる。 However, in actuality, due to noise or the like, Equation (3) becomes “ou (x) + a (x) = J in (t) g (x−t) dt + a (x)”. Here, “ou (x) + a (x) J is known, but each of ou (x) and a (x) is unknown. Even if this is solved approximately as an inverse problem, it is sufficient. It is practically difficult to obtain a satisfactory solution, so ou (x) + a (x) = J in (t) g (x—t) dt + a (x) ^ J jn (t) g ( xt) dt, jn (x) is converged using an iterative method! /, and the process flow of FIG. 3 described above is obtained. Here, if “α (χ) << ou (x)”, it is considered that jn (x) in (χ).
[0073] し力しながら、この方法は全データ領域内での計算を反復、収束させるため、充分 満足な解は得られるが、データ数が多くなると時間が力かるのが欠点である。一方、 ノイズの無い理想的状態では、周波数空間でのデコンボリューシヨン計算で高速に 解を求めることができる。そこで、この 2つの処理を組み合わせることで、充分満足な 解を高速で得ることができる。 However, since this method repeatedly and converges the calculation in the entire data area, a sufficiently satisfactory solution can be obtained, but the disadvantage is that time increases as the number of data increases. On the other hand, in an ideal state without noise, a solution can be obtained at high speed by deconvolution calculation in the frequency space. Therefore, by combining these two processes, a sufficiently satisfactory solution can be obtained at high speed.
[0074] このような処理方法としては、 2つの方法が考えられる。第 1は、データを間引くこと で縮小されたデータとする方法である。この方法を、図 3に示す処理方法を利用した 第 2の処理方法として説明する。データを間引く場合、たとえば、図 15に示すように、 原画像のデータ ImgZ 力 画素 1 1〜16, 21〜26, 31〜36, 41〜46, 51〜56, 6 1〜66で構成されているとき、 1つおきに画素を間引き、画素 11, 13, 15, 31, 33, 35, 51, 53, 55からなる 4分の 1の大きさの原画像縮小データ ISmg^ を生成する方 法である。 [0074] As such a processing method, two methods are conceivable. The first method is to reduce the data by thinning out the data. This method will be described as a second processing method using the processing method shown in FIG. When thinning out data, for example, as shown in FIG. 15, the original image data ImgZ force Pixel 1 1-16, 21-26, 31-36, 41-46, 51-56, 6 1-66 When every other pixel is thinned out, the original image reduced data ISmg ^ with a quarter size consisting of pixels 11, 13, 15, 31, 33, 35, 51, 53, 55 is generated. It is.
[0075] このように、原画像のデータ Img' と変化要因情報データ Gを間引き、間引かれた 原画像縮小データ ISmg' と縮小された変化要因情報のデータ GSを生成し、原画 像縮小データ ISmg' と縮小された変化要因情報のデータ GSを用いて、図 3に示す 反復処理を行い、原画像縮小データ ISmg' へ変化する前の縮小元画像 ISmgに近 似する充分満足な間引かれた近似した縮小復元データ ISo+nを得る。  [0075] In this way, the original image data Img 'and the change factor information data G are thinned out, the thinned original image reduced data ISmg' and the reduced change factor information data GS are generated, and the original image reduced data is generated. ISmg 'and reduced change factor information data GS is used to perform the iterative processing shown in Fig. 3 and thin out sufficiently satisfactorily to approximate the original image ISmg before changing to the original image reduced data ISmg'. Obtain approximate reduced restoration data ISo + n.
[0076] この縮小された近似する縮小復元データ ISo+nを原画像縮小データ ISmg' へ変 化する前の縮小元画像 ISmg、すなわち正 、画像 Imgの縮小した画像と推定する。 そして、原画像縮小データ ISmg' は、縮小復元データ ISo+nと伝達関数 g (x)のコ ンポリューション積分と考え、得られた縮小復元データ ISo+nと既知の原画像縮小 データ ISmg' 力も未知の伝達関数 g l (X)を得ることができる。  [0076] It is estimated that this reduced approximate restored data ISo + n is a reduced original image ISmg before being converted into the original image reduced data ISmg ', that is, a reduced image of the image Img. The original image reduced data ISmg 'is considered to be a convolution integral of the reduced and restored data ISo + n and the transfer function g (x), and the obtained reduced and restored data ISo + n and the known original image reduced data ISmg' An unknown transfer function gl (X) can be obtained.
[0077] 縮小復元データ ISo+nは充分満足なデータではある力 あくまで近似である。した がって、本来の復元データ Io+nと原画像のデータ Img' の伝達関数 g (X)は、縮小 されたデータでの反復処理で得られた伝達関数 gl (x)ではない。そこで、縮小復元 データ ISo +nと縮小した原画像のデータである原画像縮小データ ISmg' から伝達 関数 gl (x)を算出し、算出した伝達関数 gl (x)を拡大し、拡大した間を補間して、修 正することで得られた新伝達関数 g2 (x)を、元データとなる原画像のデータ Img' に 対する伝達関数 g (X)とする。新伝達関数 g2 (x)は、得られた伝達関数 g l (X)に対し て原画像縮小データの縮小率の逆数倍にし、その後、拡大した間の値を線形補間 やスプライン補間等の補間処理をすることで得られる。たとえば、図 15のように縦横 共に 1Z2に間引いた場合、 1Z4の縮小率となるため、逆数倍としては 4倍となる。 [0077] Reduced restoration data ISo + n is a sufficiently satisfactory data and is only an approximation. Therefore, the transfer function g (X) of the original restoration data Io + n and the original image data Img 'is not the transfer function gl (x) obtained by iterative processing with the reduced data. Therefore, the transfer function gl (x) is calculated from the reduced restoration data ISo + n and the original image reduced data ISmg ', which is the reduced original image data. Interpolate and fix The new transfer function g2 (x) obtained by correction is the transfer function g (X) for the original image data Img '. The new transfer function g2 (x) is the inverse of the reduction rate of the original image reduction data with respect to the obtained transfer function gl (X), and then the value between the enlargement is interpolated by linear interpolation, spline interpolation, etc. It is obtained by processing. For example, as shown in Fig. 15, when both vertical and horizontal are thinned to 1Z2, the reduction ratio is 1Z4, so the inverse number is 4 times.
[0078] そして、その修正した新伝達関数 g2 (X) ( = g (X) )を使用し、周波数空間でデコン ポリューション計算 (ボケを含む画像群力 計算によってボケを除去する計算)を行い 、全体画像の完全な復元データ Io+nを得て、それを劣化していない元の正しい画 像 Img (元画像)と推定する。  [0078] Then, using the modified new transfer function g2 (X) (= g (X)), perform deconvolution calculation in frequency space (calculation to remove blur by image group force calculation including blur), The complete restoration data Io + n of the entire image is obtained, and it is estimated as the original correct image Img (original image) that has not deteriorated.
[0079] 以上の処理の流れを、図 16に示すフローチャート図で示す。  The flow of the above processing is shown in the flowchart diagram shown in FIG.
[0080] ステップ S201では、原画像のデータ Img' と変化要因情報のデータ Gを IZMに 縮小する。図 15の例では 1Z4に縮小される。得られた原画像縮小データ ISmg' と 、縮小変化要因情報のデータ GSと、任意の画像 (所定の画像)のデータ Ioとを使用 し、図 3に示すステップ S102〜ステップ S105を繰り返す。そして、差分のデータ δ が小さくなる画像、すなわち原画像縮小データ ISmg' へ変化する前の縮小元画像 I Smgに近似する縮小復元データ ISo+nを得る(ステップ S202)。このとき、図 3に示 す「G, Img' , Ιο+η」は、「GS, ISmg' , ISo+n」に置き換えられる。  [0080] In step S201, the original image data Img 'and the change factor information data G are reduced to IZM. In the example of Fig. 15, it is reduced to 1Z4. Using the obtained original image reduction data ISmg ′, reduction change factor information data GS, and arbitrary image (predetermined image) data Io, steps S102 to S105 shown in FIG. 3 are repeated. Then, the reduced restoration data ISo + n approximate to the reduced original image I Smg before changing to the original image reduced data ISmg ′ is obtained (step S202). At this time, “G, Img ′, Ιο + η” shown in FIG. 3 is replaced with “GS, ISmg ', ISo + n”.
[0081] 得られた縮小復元データ ISo+nと既知の原画像縮小データ ISmg' とから、原画 像縮小データ ISmg' から縮小復元データ ISo+nへの伝達関数 gl (x)を算出する( ステップ S203)。その後、ステップ S204では、得られた伝達関数 gl (X)を M倍(図 1 5の例では 4倍)して拡大し、拡大されたその間を線形補間等の補間手法にて補間し 、新伝達関数 g2 (x)を得る。この新伝達関数 g2 (x)を元画像に対しての伝達関数 g ( X)と推定する。  [0081] The transfer function gl (x) from the original image reduction data ISmg 'to the reduction / restoration data ISo + n is calculated from the obtained reduction / restoration data ISo + n and the known original image reduction data ISmg' (step S203). After that, in step S204, the obtained transfer function gl (X) is enlarged by M times (4 times in the example of Fig. 15), and the enlarged portion is interpolated by an interpolation method such as linear interpolation. Get the transfer function g2 (x). This new transfer function g2 (x) is estimated as the transfer function g (X) for the original image.
[0082] 次に、算出した新伝達関数 g2 (x)と原画像のデータ Img' カもデコンボリューショ ンを行い、復元データ Io+nを求める。この復元データ Io+nを元画像とする(ステツ プ S205)。以上のように、ィ)繰り返し処理と、口)伝達関数 gl (X) , g2 (x)を求め、そ の求められた新伝達関数 g2 (x)を使用した処理と、を併用することで、復元処理の高 速化が図れる。 [0083] 画像処理装置 1では、ィ)の繰り返し処理で得られた縮小復元データ ISo+nを表 示部 8に撮影直後に表示し、伝達関数を利用したその後の処理を画像処理装置 1が 操作されて 、な 、時、たとえば撮影部 2の電源がオフされて 、る時に実行して 、る。 そして、復元された元画像を記録部 5に記録して 、る。 [0082] Next, the calculated new transfer function g2 (x) and the original image data Img 'are also deconvolved to obtain restored data Io + n. This restored data Io + n is used as the original image (step S205). As described above, i) iterative processing and mouth) transfer function gl (X), g2 (x) are obtained, and the process using the obtained new transfer function g2 (x) is used together. Therefore, the restoration process can be speeded up. [0083] In the image processing apparatus 1, the reduced restoration data ISo + n obtained by the iterative processing of (i) is displayed on the display unit 8 immediately after shooting, and the subsequent processing using the transfer function is performed by the image processing apparatus 1. When the operation is performed, for example, when the photographing unit 2 is turned off, the operation is performed. Then, the restored original image is recorded in the recording unit 5.
[0084] なお、この処理の場合、得られた正 Uヽ画像と推定された復元データ Io+nを図 3 に示す処理の初期画像のデータ Ioとして使用し、変化要因情報のデータ Gと劣化し た原画像のデータ Img' とを用い、さらに繰り返し処理を実行し、それによつて得られ たデータを記録部 5に保存するようにしても良 ヽ。  In this process, the obtained normal U 正 image and the estimated restored data Io + n are used as the initial image data Io of the process shown in FIG. Using the original image data Img ′, iterative processing may be further performed, and the data obtained thereby may be stored in the recording unit 5.
[0085] 縮小されたデータを利用する方法の第 2は、原画像のデータ Img' の一部の領域 のデータを取り出すことで原画像縮小データ ISmg' とする方法である。この方法を、 図 3に示す処理方法を利用した第 3の処理方法として説明する。たとえば、図 17に示 すように、原画像のデータ Img' 力 S、画素 11〜16, 21〜26, 31〜36, 41〜46, 5 1〜56, 61〜66で構成されて!ヽるとき、その中央の領域である、画素 32, 33, 34, 4 2, 43, 44からなる領域を取り出し、原画像縮小データ ISmg' を生成する方法であ る。  [0085] A second method of using the reduced data is a method for obtaining original image reduced data ISmg 'by taking out data of a partial area of original image data Img'. This method will be described as a third processing method using the processing method shown in FIG. For example, as shown in Fig. 17, the original image data is composed of Img 'force S, pixels 11-16, 21-26, 31-36, 41-46, 5 1-56, 61-66! This is a method of extracting the area consisting of the pixels 32, 33, 34, 4 2, 43, 44, which is the central area, and generating the original image reduced data ISmg ′.
[0086] この第 2の方法を図 18のフローチャートを用いて詳細に説明する。  This second method will be described in detail with reference to the flowchart of FIG.
[0087] 第 2の方法では、まずステップ S301で上述のように原画像縮小データ ISmg' を得 る。次に、この原画像縮小データ ISmg' と、変化要因情報データ Gと、任意の画像 データで原画像縮小データ ISmg' と同じ大きさ (=同じ画素数)の初期画像のデー タ Ioを使用し、図 3に示すステップ S102〜ステップ S105の処理を繰り返し、縮小復 元データ ISo+nを得る(ステップ S302)。この処理では、図 3中の「Img' 」を「ISmg ' 」に、「Io+n」を「ISo+n」にそれぞれ置き換えられる。 In the second method, first, in step S301, the original image reduced data ISmg ′ is obtained as described above. Next, the original image reduction data ISmg ', the change factor information data G, and the initial image data Io of the same size (= the same number of pixels) as the original image reduction data ISmg' are used. Then, the processing from step S102 to step S105 shown in FIG. 3 is repeated to obtain reduced restoration data ISo + n (step S302). In this process, “Img ′” in FIG. 3 can be replaced with “ISmg ′”, and “Io + n” can be replaced with “ISo + n”.
[0088] 得られた縮小復元データ ISo+nと既知の原画像縮小データ ISmg' とから、縮小 復元データ ISo+nから原画像縮小データ ISmg' への伝達関数 g (x)を算出す る (ステップ S303)。次に、算出された伝達関数 gl' (X)を元画像 Imgに対する伝達 関数 g' (X)とし、この伝達関数 gl (x) (=g' (x) )と既知の原画像のデータ Img ' を用いて、元画像 Imgを逆計算により求める。なお、求められたものは、実際は、元 画像 Imgに近似する元画像のデータとなる。 [0089] 以上のように、ィ)繰り返し処理と、口)伝達関数 g (X)を求め、その求められた伝 達関数 (X)を使用した処理と、を併用することで、復元処理の高速ィ匕が図れる。 なお、求められた伝達関数 g l' (X)をそのまま全体の伝達関数 g' (X)とせず、変化 要因情報データ Gを利用して修正するようにしても良 、。 [0088] A transfer function g (x) from the reduced restoration data ISo + n to the original image reduction data ISmg 'is calculated from the obtained reduction restoration data ISo + n and the known original image reduction data ISmg' ( Step S303). Next, the calculated transfer function gl '(X) is the transfer function g' (X) for the original image Img, and this transfer function gl (x) (= g '(x)) and the known original image data Img Use 'to find the original image Img by inverse calculation. Note that the obtained data is actually the original image data that approximates the original image Img. [0089] As described above, i) iterative processing and mouth) transfer function g (X) is obtained, and the process using the obtained transfer function (X) is used in combination. High speed can be achieved. The obtained transfer function gl ′ (X) may be corrected using the change factor information data G instead of the entire transfer function g ′ (X) as it is.
[0090] この画像処理装置 1の処理部 4では、ィ)の繰り返し処理で得られた縮小復元デー タ ISo + nを表示部 8に撮影直後に表示し、伝達関数を使用した逆計算で元画像を 復元する処理を表示処理と並行して行って!/ゝる。そして復元された元画像を記録部 5 に保存している。なお、繰り返しの処理に続く伝達関数を利用した処理を、表示処理 後におこなったり、画像処理装置 1が操作されて!、な 、時におこなうにしても良!、。  [0090] In the processing unit 4 of the image processing apparatus 1, the reduced and restored data ISo + n obtained by the iterative process of (i) is displayed on the display unit 8 immediately after photographing, and the original is obtained by inverse calculation using a transfer function. Perform the image restoration process in parallel with the display process! The restored original image is stored in the recording unit 5. It should be noted that the process using the transfer function following the repeated process may be performed after the display process, or may be performed when the image processing apparatus 1 is operated!
[0091] このように、上述した高速ィ匕のための第 2の方法では、画像領域全体を反復処理で 復元せず、領域の一部分を反復処理し良好な復元画像を求め、それを使ってその 部分に対する伝達関数 gl' (X)を求め、その伝達関数 g l' (X)自体またはそれを 修正 (拡大など)したものを用いて画像全体の復元を行うものである。ただし、取り出 してくる領域は、変動領域よりも充分大きな領域とする必要がある。図 5等に示した先 の例では、 3画素に渡って変動しているので、 3画素以上の領域を取り出してくる必 要がある。  As described above, in the second method for high-speed processing described above, the entire image area is not restored by iterative processing, but a part of the area is iteratively processed to obtain a good restored image, which is used. The transfer function gl '(X) for the part is obtained, and the entire image is restored using the transfer function gl' (X) itself or a modified version (such as enlargement). However, the area to be extracted must be sufficiently larger than the fluctuation area. In the previous example shown in Fig. 5, etc., it fluctuates over 3 pixels, so it is necessary to extract an area of 3 pixels or more.
[0092] なお、図 17、図 18に示す縮小領域を取り出してくる方法の場合、原画像のデータ I mg' を、たとえば図 19に示すように、 4分割し、各分割領域から一部の領域を取り出 し、小さい領域である 4つの原画像縮小データ ISmg' をそれぞれ反復処理し、 4分 割された分割区域をそれぞれ復元し、復元された 4つの分割画像を一つにすること で元の全体画像としても良い。なお、複数に分割する際、必ず複数領域に渡って重 なる領域 (オーバーラップ領域)を持つようにするのが好ましい。また、各復元された 画像のオーバーラップ領域は、平均値を使ったり、オーバーラップ領域で滑らかにつ なぐなどの処理を行うようにするのが好ま U、。  [0092] Note that in the case of the method of extracting the reduced area shown in FIGS. 17 and 18, the original image data I mg ′ is divided into four parts as shown in FIG. By extracting the area, iteratively processing each of the four original image reduced data ISmg ', which is a small area, restoring the divided areas divided into four, and combining the four restored divided images into one The original whole image may be used. In addition, when dividing into a plurality of areas, it is preferable to always have an overlapping area (overlapping area) over a plurality of areas. In addition, it is preferable to use an average value for the overlap area of each restored image, or to perform processing such as smooth connection in the overlap area.
[0093] さらに、実際に図 3の処理方法を採用した場合、コントラストの急激な変化のある画 像等については、良好な近似の復元画像への収束が遅いことが判明した。このように 、元の画像である被写体の性質によっては、反復処理の収束スピードが遅ぐ反復回 数を多くしなければならない場合がある。このような被写体の場合、次のような処理方 法を採用すると、この問題を解決できると推定される。 [0093] Further, when the processing method of Fig. 3 is actually adopted, it has been found that an image with a sharp contrast change converges slowly to a good approximate restored image. Thus, depending on the nature of the subject that is the original image, it may be necessary to increase the number of iterations at which the convergence speed of the iteration process is slow. For these subjects, the following processing method It is presumed that this problem can be solved by adopting the law.
[0094] その方法とは以下のとおりである。すなわち、コントラストの急激な変化のある被写 体は、図 3に示す処理方法による復元の反復処理を使用し、元の画像に近似したも のを得ようとすると、反復数が非常に多くなると共に多くの回数の処理を行った後も、 元の被写体に近似する復元データ Io+nを生成できない。そこで、撮影された原画 像 (ブレ画像)のデータ Img' 〖こ、既知の画像のデータ Bから撮影時の変化要因情 報のデータ Gを用いてブレ画像のデータ B'を生成し、そのデータ B'を重ね合わせ、 「Img' +B'」を作る。その後、重ね合わせた画像を図 3に示す処理にて復元処理し 、その復元データ Io+nとなる結果データ C力 既知の加えた場像のデータ Bを取り 去り、求めたい復元画像のデータ Imgを取り出す。  [0094] The method is as follows. In other words, a subject with an abrupt change in contrast uses an iterative process of restoration by the processing method shown in Fig. 3, and the number of iterations becomes very large when trying to obtain an approximation of the original image. In addition, even after many processes, restored data Io + n that approximates the original subject cannot be generated. Therefore, the original image (blurred image) data Img '〖こ, the data B of the change factor information at the time of shooting is generated from the data B of the known image, and the data B' of the blurred image is generated. Overlay B 'to make "Img' + B '". After that, the superimposed image is restored by the process shown in Fig. 3, and the result data C force that becomes the restored data Io + n is removed. The already added field image data B is removed and the desired restored image data Img Take out.
[0095] この方法を、前述した縮小画像に適用し、コントラストの急激な変化のある被写体に 際しても、撮影直後に表示部 8に復元された縮小画像を表示する。一方、大きな原画 像の処理は、表示処理がなされた後に処理部 4によってこの処理から求められた伝 達関数を利用して復元処理が実行される。復元された元画像は、その後、記録部 5 に保存される。なお、この方法では、正しい画像のデータ Imgは急激なコントラスト変 化を含んでいる力 既知の画像のデータ Bをカ卩えることで、この急激なコントラスト変 化を軽減することができ、復元処理の反復数を低減する事ができる。  [0095] This method is applied to the above-described reduced image, and the restored reduced image is displayed on the display unit 8 immediately after shooting even for a subject with a sharp change in contrast. On the other hand, in the process of a large original image, the restoration process is executed by the processing unit 4 using the transfer function obtained from this process after the display process. The restored original image is then stored in the recording unit 5. In this method, the correct image data Img includes a sharp contrast change. By capturing the known image data B, this rapid contrast change can be reduced, and restoration processing can be performed. The number of iterations can be reduced.
[0096] また、復元の困難な被写体の処理方法および高速な処理方法として、他の処理方 法も採用できる。たとえば、復元処理の反復数を多くすれば良好な復元画像により近 づけることができる力 処理に時間がかかる。そこで、ある程度の反復処理数で得ら れた画像を用いて、そこに含まれる誤差成分を算出し、誤差を含む復元画像から、 算出した誤差を取り去ることで良好な復元画像すなわち復元データ Io+nを得ること ができる。  [0096] Also, other processing methods can be adopted as a processing method for a subject that is difficult to restore and a high-speed processing method. For example, if the number of iterations of restoration processing is increased, it takes time to perform force processing that can be brought closer to a good restored image. Therefore, by using the image obtained with a certain number of iterations, the error component included in the image is calculated, and the restored error including the error is removed from the restored image. n can be obtained.
[0097] この方法を具体的に以下に説明する。求めた 、正 、画像を Aとし、撮影した原画 像を A'とし、原画像 A'から復元した画像を A+ γとし、その復元データ力 生成した ブレた比較用データを A' + y,とする。この「Α' + γ '」に、撮影した原画像「Α'」を 付カロし、それを復元処理すると、 ΓΑ+ y +A+ y + γ」となり、これは「2Α+ 3 γ」で あり、また、「2 (Α+ γ ) +」である。「Α+ γ」は前回の復元処理で求まっているので、 「2 (Α+ γ ) + γ— 2 (Α+ γ )」が計算でき、「γ」が求まる。よって「Α+ γ」から「 γ」 を取り去ることで、求めたい正しい画像 Αが得られる。この方法を上述と同様に縮小 画像に適用し、復元された原画像縮小データを表示部 8に表示し、得られた伝達関 数を利用して大きな元画像を復元し、記録部 5に保存する。これらの制御や処理は 処理部 4が実行する。 [0097] This method will be specifically described below. The obtained positive image is A, the captured original image is A ′, the image restored from the original image A ′ is A + γ, and the restored data force is generated. To do. If the original image "Α '" is added to this "Α' + γ '" and restored, it becomes ΓΑ + y + A + y + γ ”, which is“ 2Α + 3γ ” And “2 (Α + γ) +”. Since “Α + γ” is obtained in the previous restoration process, “2 (Α + γ) + γ−2 (Α + γ))” can be calculated, and “γ” is obtained. Therefore, by removing “γ” from “Α + γ”, the correct image た い to be obtained can be obtained. This method is applied to the reduced image in the same manner as described above, the restored original image reduced data is displayed on the display unit 8, the large original image is restored using the obtained transfer function, and stored in the recording unit 5. To do. The control unit 4 executes these controls and processes.
[0098] 以上、本発明の好適な実施の形態について説明した力 本発明はその要旨を変更 しない限り種々変更できる。たとえば、処理部 4で行った処理は、ソフトウェアで構成 しているが、それぞれ、一部の処理を分担して行うようにした部品からなるハードゥエ ァで構成しても良い。  [0098] The power described in the preferred embodiments of the present invention has been described above. The present invention can be variously modified without changing the gist thereof. For example, the processing performed by the processing unit 4 is configured by software, but each may be configured by a hard- ware composed of parts that are performed by sharing a part of the processing.
[0099] また、処理対象となる原画像としては撮影画像の他に、その撮影画像を色補正した り、フーリエ変換したり等、加工を施したものとしても良い。さらに、比較用データとし ては、変化要因情報のデータ Gを使用して生成したデータ以外に、変化要因情報の データ Gを使用して生成したものに色補正をカ卩えたり、フーリエ変換したりしたデータ としても良い。また、変化要因情報のデータとしては、劣化要因情報のデータのみで はなぐ単に画像を変化させる情報や、劣化とは逆に、画像を良くする情報を含むも のとする。  In addition to the captured image, the original image to be processed may be processed such as color-corrected or Fourier-transformed. Furthermore, as comparison data, in addition to the data generated using the data G of the change factor information, color correction is added to the data generated using the data G of the change factor information, or Fourier transform is performed. It is also possible to use such data. In addition, the change factor information data includes not only the degradation factor information data but also information that simply changes the image, and information that improves the image contrary to degradation.
[0100] また、処理の反復回数が画像処理装置 1側で自動的にまたは固定的に設定されて いる場合、その設定された回数を変化要因情報のデータ Gによって変更するようにし ても良い。たとえば、ある画素のデータがブレにより多数の画素に分散している場合 は、反復回数を多くし、分散が少ない場合は反復回数を少なくするようにしても良い。  [0100] When the number of processing iterations is automatically or fixedly set on the image processing apparatus 1, the set number of times may be changed by the data G of the change factor information. For example, when the data of a certain pixel is distributed over many pixels due to blurring, the number of iterations may be increased, and when the variance is small, the number of iterations may be decreased.
[0101] さらに、反復処理中に、差分のデータ δが発散してきたら、すなわち大きくなつてい つたら処理を中止させるようにても良い。発散している力否かは、たとえば差分のデー タ δの平均値を見てその平均値が前回より大きくなつたら発散していると判断する方 法を採用できる。また、発散が 1回生じたら、処理を即中止させても良いが、発散が 2 回続けて生じたら中止させる方法としたり、発散が所定回数続いたら処理を中止させ る方法を採用しても良い。  [0101] Furthermore, during the iterative process, if the difference data δ diverges, that is, if it becomes larger, the process may be stopped. To determine whether or not the force is diverging, for example, a method can be adopted in which the average value of the difference data δ is observed and if the average value becomes larger than the previous value, it is judged that the force is diverging. In addition, if the divergence occurs once, the processing may be stopped immediately, but if the divergence occurs twice, the method may be stopped, or the processing may be stopped if the divergence continues for a predetermined number of times. good.
[0102] また、反復処理中に、入力を異常な値に変更しょうとしたときには、処理を中止させ るようにしても良い。たとえば 8ビットの場合、変更されるようとする値が 255を超える値 であるときには、処理を中止させる。また、反復処理中、新たなデータである入力を異 常な値に変更しょうとしたとき、その値を使用せず、正常な値とするようにしても良い。 たとえば、 8ビットの 0〜255の中で、 255を超える値を入力データとしょうとした際は、 マックスの値である 255として処理するようにする。すなわち、復元データ中に許容さ れる数値 (上述の例では、 0〜255)以外の異常数値 (上述の例では、 255を超える 値)が含まれるときは、その処理を中止したり、復元データ中に許容される数値以外 の異常数値が含まれるときは、その異常数値を許容される数値に変更して処理を継 続させたりすることができる。 [0102] Also, during an iterative process, if an attempt is made to change the input to an abnormal value, the process may be stopped. For example, in the case of 8 bits, the value to be changed exceeds 255 If it is, the process is stopped. In addition, during an iterative process, when an attempt is made to change the input, which is new data, to an abnormal value, that value may be used instead of the normal value. For example, if you try to use more than 255 values as input data in 0 to 255 of 8 bits, it will be processed as 255, which is the maximum value. In other words, if an abnormal value (value exceeding 255 in the above example) other than the allowable value (0 to 255 in the above example) is included in the restored data, the processing is stopped or the restored data If an abnormal numerical value other than the allowable numerical value is included, the abnormal numerical value can be changed to an allowable numerical value and the processing can be continued.
[0103] また、出力画像となる復元データを生成する際、変化要因情報のデータ Gによって は、復元させようとする画像の領域外へ出てしまうようなデータが発生する場合がある 。このような場合、領域外へはみ出るデータは反対側へ入れる。また、領域外から入 つてくるべきデータがある場合は、そのデータは反対側から持ってくるようにするのが 好ましい。たとえば、領域内の最も下に位置する画素 XN1 (N行 1列)のデータから、 さらに下の画素に割り振られるデータが発生した場合、その位置は領域外になる。そ こで、そのデータは画素 XN1の真上で最も上に位置する画素 XI I (1行 1列)に割り 振られる処理をする。画素 XN1の隣の画素 XN2 (N行 2列)についても同様に真上 で最上欄の画素 X12 ( =画素 XI Iの隣りで 1行 2列))に割り振ることとなる。このよう に、復元データを生成する際、復元対象領域外となるデータが発生するときは、その データの発生位置の縦、横、または斜めのいずれか 1つの方向の反対側の位置の復 元対象領域内に配置するようにすると、復元しょうとする対象領域について、確実な 復元が可能となる。 [0103] Further, when generating the restoration data to be an output image, depending on the data G of the change factor information, there may occur data that goes out of the area of the image to be restored. In such a case, data that protrudes outside the area is input to the opposite side. Also, if there is data that should come from outside the area, it is preferable to bring that data from the opposite side. For example, if the data assigned to the lower pixel is generated from the data of the pixel XN1 (N rows and 1 column) located at the bottom in the area, the position is outside the area. Therefore, the data is assigned to the pixel XI I (1 row and 1 column) located at the top right above the pixel XN1. Similarly, the pixel XN2 (N rows and 2 columns) adjacent to the pixel XN1 is allocated to the pixel X12 in the uppermost column directly above (= 1 row and 2 columns adjacent to the pixel XI I). In this way, when data that is outside the restoration target area is generated when the restoration data is generated, restoration of the position on the opposite side of one of the vertical, horizontal, and diagonal directions of the data generation position is performed. If it is arranged within the target area, it is possible to reliably restore the target area to be restored.
[0104] また以上説明した各処理方法、すなわち、(1)配分比 kを使用して差分のデータ δ を配分する方法 (実施例方式)、(2)対応する画素の差分、または差分のデータ δを 変倍する方法 (対応画素方式)、(3)劣化要因の重心を検出してその重心部分のデ ータを利用する方法 (重心方法)、(4)データを間引き、逆問題と組み合わせる方法( 逆問題間引き方法)、(5)縮小領域を取り出し、逆問題と組み合わせる方法 (逆題間 領域取り出し方法)、(6)所定の画像を重ね合わせて反復処理し、その後、その所定 の画像を取り去る方法 (苦手画像対策重ね合わせ方法)、 (7)誤差を含む復元画像 から、算出した誤差を取り去る方法 (誤差取り出し方法)の各処理方法のプログラムを 処理部 4に保存しておき、使用者の選択または画像の種類に応じて自動的に、処理 方法を選択できるようにしても良 、。 In addition, each processing method described above, that is, (1) a method of allocating difference data δ using the distribution ratio k (example method), (2) corresponding pixel difference, or difference data Method of scaling δ (corresponding pixel method), (3) Method of detecting centroid of deterioration factor and using data of centroid part (centroid method), (4) Thinning out data, combining with inverse problem Method (inverse problem decimation method), (5) Extraction of reduced area and combination with inverse problem (inverse problem area extraction method), (6) Iterates over a predetermined image, then the predetermined image (7) Restored images containing errors The processing method program for removing the calculated error (error extraction method) is stored in the processing unit 4 so that the processing method can be automatically selected according to the user's selection or image type. Anyway, okay.
[0105] たとえば、縮小画像の繰り返し処理にあっては、(4) (5) ( (1)を利用)のみならず、( 2) (3) (6) (7)を利用してすばやく復元し、表示部 8に表示し、原画像から元画像へ の復元処理に、(4) (5)の伝達関数処理や、 (2) (3) (6) (7)で得られた縮小画像か ら伝達関数を得て、その伝達関数を利用しての処理や、その伝達関数を利用して得 られた画像を再度繰り返し処理する方法が採用され得る。また、原画像から元画像 への復元は、伝達関数を利用しつつ、もしくは利用しないで、復元処理をゆっくり実 行するようにしても良い。すなわち表示処理とは別に、元画像の復元は、上述の(1) ( 2) (3) (6) (7)のいずれかを利用して、原画像から直接元画像を得るようにしても良 い。 [0105] For example, in the iterative processing of reduced images, not only (4) (5) (use (1)) but also (2) (3) (6) (7) Then, it is displayed on the display unit 8, and the transfer function processing in (4) (5) and the reduced image obtained in (2) (3) (6) (7) are used for the restoration process from the original image to the original image. A method can be employed in which a transfer function is obtained from the image and processing using the transfer function or an image obtained using the transfer function is repeatedly processed again. In addition, the restoration from the original image to the original image may be performed slowly with or without using the transfer function. In other words, apart from the display process, the original image is restored by directly obtaining the original image from the original image using any of the above (1) (2) (3) (6) (7). Good.
[0106] なお、元画像の復元処理は、表示部 8に縮小復元データを表示する処理を並行し て行ったり、撮影部 2の電源がオフされ、撮影がなされない時に行ったり、表示部 8へ の表示処理が行われた後に行う等、種々の方法を採用することができる。また復元さ れた元画像は、記録部 5に保存されるが、この保存と共に、または保存に代えてイン ターネット等の通信回線を利用して、他のサーバ等に送信するようにしても良い。  It should be noted that the original image restoration processing is performed in parallel with the processing for displaying the reduced restoration data on the display unit 8, or when the photographing unit 2 is turned off and no photographing is performed, or the display unit 8 Various methods can be employed, such as after the display processing is performed. The restored original image is stored in the recording unit 5, but may be transmitted to another server or the like using a communication line such as the Internet together with or instead of the storage. good.
[0107] また、処理部 4は、変化要因情報のデータ Gを複数の種類の内のいずれかに分類 付けし、その分類毎に違う処理 (上述した各方法の!ヽずれか 1つ)を行うようにしたり、 また、その分類毎に、繰り返しの回数を異ならせるようにしても良い。また、処理部 4の 処理において、変化要因情報のデータ Gの値によって、表示画像を復元処理したも のにする力否かを分けるようにするのが好ましい。たとえば、劣化が著しいと判断され るときのみ表示部 8へ表示する画像の復元処理を行い、劣化がそれほど無いときは、 単なる縮小画像をそのまま、または若干の補正をした画像を表示するようにするのが 好ましい。これによつて、処理部 4の負荷が軽減される。  [0107] In addition, the processing unit 4 classifies the change factor information data G into one of a plurality of types, and performs different processing for each of the classifications (one of the above methods! Alternatively, the number of repetitions may be different for each classification. Further, in the processing of the processing unit 4, it is preferable to divide whether or not the display image is restored by the value of the data G of the change factor information. For example, only when it is determined that the deterioration is significant, the image displayed on the display unit 8 is restored. When the deterioration is not so much, a simple reduced image is displayed as it is or a slightly corrected image is displayed. It is preferable. This reduces the load on the processing unit 4.
[0108] また、これら(1)〜(7)のいずれか複数を処理部 4に保存しておき、使用者の選択 または画像の種類に応じて自動的に、処理方法を選択できるようにしても良い。また 、これら 7つの方法のうちいずれ力複数を選択し、 1ルーチンの度に交互または順番 に利用したり、最初の数回はある方式で処理し、その後は他の方式で処理するように しても良い。なお、画像処理装置 1は、上述した(1)〜(7)のいずれか 1つまたは複数 の他に、それらとは異なる処理方法をも有するようにしても良 ヽ。 [0108] Further, any one of (1) to (7) is stored in the processing unit 4 so that the processing method can be automatically selected according to the user's selection or the type of image. Also good. In addition, select any one of these seven methods, and alternately or in sequence for each routine It may be used for the first time or processed in a certain method for the first few times, and then processed in another method. Note that the image processing apparatus 1 may have a different processing method in addition to any one or more of (1) to (7) described above.
また、上述した各処理方法は、プログラム化されても良い。また、プログラム化された ものが記憶媒体、たとえば CD (Compact Disc)、 DVD、 USB (Universal Serial Bus) メモリに入れられ、コンピュータによって読みとり可能とされても良い。この場合、画像 処理装置 1は、その記憶媒体内のプログラムを読み込む読み込み手段を持つことと なる。さらには、そのプログラム化されたものが画像処理装置 1の外部のサーバに入 れられ、必要によりダウンロードされ、使用されるようにしても良い。この場合、画像処 理装置 1は、その記憶媒体内のプログラムをダウンロードする通信手段を持つこととな る。  Moreover, each processing method mentioned above may be programmed. The program may be stored in a storage medium such as a CD (Compact Disc), a DVD, or a USB (Universal Serial Bus) memory so that it can be read by a computer. In this case, the image processing apparatus 1 has reading means for reading the program in the storage medium. Further, the program may be stored in an external server of the image processing apparatus 1, downloaded as necessary, and used. In this case, the image processing apparatus 1 has communication means for downloading the program in the storage medium.

Claims

請求の範囲 The scope of the claims
[1] 処理対象となる原画像から変化する前の画像もしくは本来撮影されるべきであった 画像またはそれらの近似画像 (以下、元画像と!/ヽぅ)を復元する処理を行う処理部を 有する画像処理装置において、  [1] A processing unit that performs processing to restore the image before the change from the original image to be processed, the image that should have been taken, or the approximate image (hereinafter referred to as the original image!) In an image processing apparatus having
上記処理部は、上記原画像から画素数を減じた原画像縮小データを得、その原画 像縮小データに基づいて変化する前の縮小元画像に近似する縮小復元データを復 元し、表示部に当該縮小復元データを表示する処理を行うことを特徴とする画像処 理装置。  The processing unit obtains original image reduced data obtained by subtracting the number of pixels from the original image, restores the reduced / restored data approximated to the original reduced image before the change based on the original image reduced data, and displays it on the display unit. An image processing apparatus that performs processing for displaying the reduced and restored data.
[2] 前記処理部は、前記縮小復元データを復元する際に得られたデータを利用して、 前記元画像を復元する処理を行うことを特徴とする請求項 1記載の画像処理装置。  2. The image processing apparatus according to claim 1, wherein the processing unit performs a process of restoring the original image using data obtained when the reduced restoration data is restored.
[3] 前記処理部は、前記縮小復元データを復元する処理として、画像変化の要因とな る変化要因情報のデータを利用して、所定の画像のデータ力 比較用データを生成 し、この比較用データと、前記原画像縮小データと、を比較し、得られた差分のデー タを利用して縮小復元データを生成し、この縮小復元データを上記所定の画像のデ ータの代わりに使用し、以後、得られた上記縮小復元データを前回の縮小復元デー タに置き換えて同様の処理を繰り返す処理を行うことを特徴とする請求項 1または 2 記載の画像処理装置。  [3] As the process of restoring the reduced restoration data, the processing unit generates data for comparing the data force of a predetermined image using data of change factor information that causes an image change, and compares the data. Data is compared with the original image reduced data, and reduced restoration data is generated using the obtained difference data, and the reduced restoration data is used in place of the predetermined image data. 3. The image processing apparatus according to claim 1, wherein thereafter, the obtained reduced / restored data is replaced with the previous reduced / restored data and the same processing is repeated.
[4] 前記処理部は、前記縮小復元データを復元する処理として、画像変化の要因とな る変化要因情報のデータを利用して、所定の画像のデータ力 比較用データを生成 し、この比較用データと、前記原画像縮小データと、を比較し、得られた差分のデー タが所定値より大きいまたは所定値以上の場合は、上記差分のデータを利用して縮 小復元データを生成し、この縮小復元データを上記所定の画像に置き換え、以後、 得られた上記縮小復元データを前回の縮小復元データに置き換えて同様の処理を 繰り返す処理を行!、、前記原画像縮小データへ変化する前の前記縮小元画像に近 似する前記縮小復元データを生成する処理を行 、、上記差分のデータが所定値以 下または所定値より小さい場合は処理を停止する処理を行うことを特徴とする請求項 1または 2記載の画像処理装置。  [4] As the process of restoring the reduced restoration data, the processing unit uses the data of the change factor information that causes the image change to generate data force comparison data of a predetermined image, and this comparison If the obtained difference data is greater than or equal to a predetermined value, the reduced data is generated using the difference data. The reduced and restored data is replaced with the predetermined image, and then the obtained reduced and restored data is replaced with the previous reduced and restored data, and the same processing is repeated! Performing the process of generating the reduced and restored data similar to the previous reduced original image, and performing the process of stopping the process when the difference data is less than or equal to a predetermined value Contract The image processing apparatus of claim 1 or 2 wherein.
[5] 前記縮小復元データの復元の際に、前記原画像の劣化状態を表す伝達関数を取 得し、前記原画像に対し、取得した伝達関数の逆変換を行うことを特徴とする請求項[5] When restoring the reduced restoration data, a transfer function representing a degradation state of the original image is obtained. The obtained transfer function is inversely transformed with respect to the original image.
3または 4記載の画像処理装置。 The image processing apparatus according to 3 or 4.
[6] 前記原画像縮小データと前記縮小復元データとから伝達関数を求め、その伝達関 数を利用して前記原画像へ変化する前の前記元画像を生成する処理を行うことを特 徴とする請求項 3または 4記載の画像処理装置。 [6] It is characterized in that a transfer function is obtained from the original image reduced data and the reduced / restored data, and processing for generating the original image before changing to the original image is performed using the transfer function. The image processing apparatus according to claim 3 or 4.
[7] 前記原画像縮小データは、前記原画像のデータを間引くことで形成されたものであ り、前記処理部は、前記伝達関数を、前記原画像縮小データの前記原画像からの縮 小率の逆数倍にし、かつ拡大された間を補間して新伝達関数を得、その新伝達関数 を使用して前記元画像を生成することを特徴とする請求項 5または 6記載の画像処理 装置。 [7] The original image reduced data is formed by thinning out the data of the original image, and the processing unit reduces the transfer function to reduce the original image reduced data from the original image. 7. The image processing according to claim 5 or 6, wherein a new transfer function is obtained by interpolating between the reciprocal of the rate and the enlargement, and the original image is generated using the new transfer function. apparatus.
[8] 前記原画像縮小データは、前記原画像のデータから一部の領域をそのまま取り出 すことで形成されたものであることを特徴とする請求項 5または 6記載の画像処理装 置。  8. The image processing apparatus according to claim 5, wherein the original image reduced data is formed by extracting a partial area from the original image data as it is.
[9] 前記元画像の復元処理は、前記表示部に前記縮小復元データを表示する処理と 並行して行うことを特徴とする請求項 1から 8のいずれ力 1項記載の画像処理装置。  9. The image processing apparatus according to any one of claims 1 to 8, wherein the restoration process of the original image is performed in parallel with a process of displaying the reduced restoration data on the display unit.
[10] 前記元画像の復元処理は、撮影用の電源がオフされている時に行うことを特徴とす る請求項 1から 8のいずれか 1項記載の画像処理装置。  10. The image processing apparatus according to claim 1, wherein the original image restoration process is performed when a photographing power is turned off.
[11] 前記元画像の復元処理は、前記表示部に前記縮小復元データを表示する処理を 行った後に行うことを特徴とする請求項 1から 8のいずれか 1項記載の画像処理装置  11. The image processing device according to claim 1, wherein the restoration process of the original image is performed after a process of displaying the reduced restoration data on the display unit.
[12] 前記処理部は、画像変化の要因となる変化要因情報の値によって、前記表示部に 、前記縮小復元データを表示する場合と、前記原画像縮小データをそのまま表示す る場合とに分ける処理を行うことを特徴とする請求項 1から 11のいずれか 1項記載の 画像処理装置。 [12] The processing unit is divided into a case where the reduced / restored data is displayed on the display unit and a case where the original image reduced data is displayed as it is, depending on the value of change factor information which causes an image change. The image processing device according to claim 1, wherein the image processing device performs processing.
PCT/JP2006/314596 2005-09-15 2006-07-24 Image processor WO2007032148A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2006800415164A CN101305598B (en) 2005-09-15 2006-07-24 Image processing apparatus and method

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2005267906A JP2007081905A (en) 2005-09-15 2005-09-15 Image processing apparatus
JP2005-267906 2005-09-15

Publications (1)

Publication Number Publication Date
WO2007032148A1 true WO2007032148A1 (en) 2007-03-22

Family

ID=37864748

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2006/314596 WO2007032148A1 (en) 2005-09-15 2006-07-24 Image processor

Country Status (3)

Country Link
JP (1) JP2007081905A (en)
CN (1) CN101305598B (en)
WO (1) WO2007032148A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011130061A (en) * 2009-12-16 2011-06-30 Fujifilm Corp Method and device for adjusting positional relation between photographic lens and imaging device, and method and device for manufacturing camera module
JP5522068B2 (en) * 2011-01-25 2014-06-18 カシオ計算機株式会社 Image display device, image display method, and program

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004343483A (en) * 2003-05-16 2004-12-02 Acutelogic Corp Device and method for correcting camera-shake and device for detecting camera shake
JP2006186764A (en) * 2004-12-28 2006-07-13 Seiko Epson Corp Imaging apparatus, and mobile apparatus and mobile phone provided with the same
JP2006186763A (en) * 2004-12-28 2006-07-13 Seiko Epson Corp Imaging apparatus, and mobile apparatus and mobile phone provided with the same

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020014456A (en) * 2000-08-18 2002-02-25 윤병이 A method and system of revision for 3-dimensional image
JP2002290811A (en) * 2001-03-23 2002-10-04 Minolta Co Ltd Imaging device, method and program for image processing, and information recording medium
JP2002300459A (en) * 2001-03-30 2002-10-11 Minolta Co Ltd Image restoring device through iteration method, image restoring method and its program, and recording medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004343483A (en) * 2003-05-16 2004-12-02 Acutelogic Corp Device and method for correcting camera-shake and device for detecting camera shake
JP2006186764A (en) * 2004-12-28 2006-07-13 Seiko Epson Corp Imaging apparatus, and mobile apparatus and mobile phone provided with the same
JP2006186763A (en) * 2004-12-28 2006-07-13 Seiko Epson Corp Imaging apparatus, and mobile apparatus and mobile phone provided with the same

Also Published As

Publication number Publication date
CN101305598A (en) 2008-11-12
CN101305598B (en) 2011-04-06
JP2007081905A (en) 2007-03-29

Similar Documents

Publication Publication Date Title
JP5007241B2 (en) Image processing device
CN103971331A (en) Image processing apparatus, image pickup apparatus, image processing method
JP5765893B2 (en) Image processing apparatus, imaging apparatus, and image processing program
JP3895357B2 (en) Signal processing device
JP4885150B2 (en) Image processing device
US7903897B2 (en) Image processing apparatus
WO2007032148A1 (en) Image processor
JP4602860B2 (en) Image processing device
JP5133070B2 (en) Signal processing device
JP4598623B2 (en) Image processing device
JP2007129354A (en) Image processing apparatus
JP4606976B2 (en) Image processing device
JP4975644B2 (en) Image processing device
JP4763419B2 (en) Image processing device
JP4763415B2 (en) Image processing device
JP4629537B2 (en) Image processing device
JP5007234B2 (en) Image processing device
JP4629622B2 (en) Image processing device
JP2002288652A (en) Image processing device, method, program and recording medium
JP4982484B2 (en) Signal processing device
JP4869971B2 (en) Image processing apparatus and image processing method
WO2006137309A1 (en) Image processing apparatus
JP5057665B2 (en) Image processing device
JPWO2008090858A1 (en) Image processing apparatus and image processing method

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 200680041516.4

Country of ref document: CN

121 Ep: the epo has been informed by wipo that ep was designated in this application
NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 06781508

Country of ref document: EP

Kind code of ref document: A1