WO2004062275A1 - 画像処理装置および画像処理プログラム - Google Patents

画像処理装置および画像処理プログラム Download PDF

Info

Publication number
WO2004062275A1
WO2004062275A1 PCT/JP2003/016797 JP0316797W WO2004062275A1 WO 2004062275 A1 WO2004062275 A1 WO 2004062275A1 JP 0316797 W JP0316797 W JP 0316797W WO 2004062275 A1 WO2004062275 A1 WO 2004062275A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
defect information
image processing
processing apparatus
unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/JP2003/016797
Other languages
English (en)
French (fr)
Inventor
Kenichi Ishiga
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nikon Corp
Original Assignee
Nikon Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from JP2003307357A external-priority patent/JP4466017B2/ja
Priority claimed from JP2003307355A external-priority patent/JP4466015B2/ja
Priority claimed from JP2003307356A external-priority patent/JP4466016B2/ja
Application filed by Nikon Corp filed Critical Nikon Corp
Priority to EP03768277.0A priority Critical patent/EP1583356B1/en
Priority to CN200380107791.8A priority patent/CN1732682B/zh
Priority to US10/540,972 priority patent/US7853097B2/en
Publication of WO2004062275A1 publication Critical patent/WO2004062275A1/ja
Anticipated expiration legal-status Critical
Priority to US12/640,603 priority patent/US8031968B2/en
Priority to US13/222,842 priority patent/US8369651B2/en
Ceased legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/40Picture signal circuits
    • H04N1/409Edge or detail enhancement; Noise or error suppression
    • H04N1/4097Removing errors due external factors, e.g. dust, scratches
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N25/00Circuitry of solid-state image sensors [SSIS]; Control thereof
    • H04N25/60Noise processing, e.g. detecting, correcting, reducing or removing noise
    • H04N25/68Noise processing, e.g. detecting, correcting, reducing or removing noise applied to defects
    • H04N25/683Noise processing, e.g. detecting, correcting, reducing or removing noise applied to defects by defect estimation performed on the scene signal, e.g. real time or on the fly detection

Definitions

  • Japanese Patent Application No. 200, No. 37, 977, 19 (filed on Feb. 27, 2000) Japanese Patent Application, No. 379, 1982 (No. 2) Japanese patent application filed on February 27, 2002) Japanese patent application file No. 37,972, 1991 (filed on February 27, 2002) Japanese patent application filed No. 3 0 7 3 5 5 in the 3rd year (filed on Aug. 29, 2003) Applied in Japan Patent No. 3 in the 2003 No. 3 0 7 3 5 6 Japanese patent application No. 3 0 7 3 5 7 in 2003 (filed on Aug. 29, 2003)
  • the present invention relates to an image processing apparatus that removes the influence of dust and the like in image data captured by an electronic camera or the like.
  • an infrared light sensor is provided as a substitute for this white reference data, and the transmittance data is obtained simultaneously with the visible light data, and the attenuation signal of the transmittance due to a film defect is obtained.
  • a method of obtaining is disclosed in US Pat. No. 6,195,161. Disclosure of the invention
  • copiers and scanners are basically fixed optical systems, and there is no need to consider that dust changes due to changes in the optical system.
  • conventional video cameras do not respond to changes in optical conditions other than the aperture value.
  • the present invention provides an image processing apparatus and an image processing program capable of appropriately removing the influence of dust and the like from image data captured by an electronic camera or the like.
  • an image processing apparatus includes: an image acquisition unit configured to acquire an image captured by an imaging device; and a predetermined value including a value of a pixel of interest and the pixel of interest in the acquired image.
  • a defect information creating section for creating defect information in an image based on an average value of a plurality of pixels in the range.
  • the defect information creation unit includes a value of a pixel of interest and an average value of a plurality of pixels within a predetermined range including the pixel of interest. It is preferable to provide a relative ratio calculating unit for calculating the relative ratio of the defect information, and to generate the defect information based on the calculated relative ratio.
  • the defect information creation unit may include a defect information generating unit for the area in the image that satisfies a predetermined condition. It is preferable to create
  • the image processing apparatus further includes a correction unit that corrects a defect in the image based on the defect information. Is preferred.
  • the image processing apparatus further includes a correction unit configured to correct a defect in the image based on the defect information, wherein the correction unit includes a reciprocal value of a relative ratio. Is preferably multiplied by the value of the corresponding pixel.
  • the image acquisition unit acquires a plurality of images photographed by the image sensor
  • the defect information creation unit acquires the acquired plurality of images. It is preferable to create defect information in any one of the plurality of images using the image data.
  • the image acquisition unit acquires a plurality of images photographed by the imaging device
  • the defect information creation unit acquires the acquired plurality of images.
  • the defect information corresponding to the entire image of the plurality of images is created using the image data.
  • an image processing apparatus includes: an image acquisition unit configured to acquire a reference image captured through an optical system; and a value of a pixel of interest and the pixel of interest in the acquired reference image.
  • a defect information creation unit that creates defect information in the reference image based on an average value of a plurality of pixels in a predetermined range.
  • the defect information creation unit includes a value of the pixel of interest and an average value of a plurality of pixels within a predetermined range including the pixel of interest. It is preferable to provide a relative ratio calculating unit for calculating the relative ratio of the defect information, and to generate the defect information based on the calculated relative ratio.
  • the image acquisition unit acquires the correction target image captured through the optical system, and includes: It is preferable to further include a correction unit that corrects a defect in the correction target image based on the defect information.
  • the correction unit is configured such that the reference image and the correction target image have optical conditions under substantially the same aperture value and pupil position.
  • the image is taken through an optical system, it is preferable to correct the values of the pixels constituting the correction target image using the generated defect information as it is.
  • a defect information conversion unit that converts defect information according to at least one of the aperture value and the pupil position, which are optical conditions of the system, is further provided.
  • the pupil positions is photographed through an optical system with different optical conditions, it is preferable to correct the values of the pixels constituting the correction target image using the converted defect information.
  • the correction unit that corrects by multiplying a reciprocal value of the relative ratio of the reference image by a value of a corresponding pixel of the correction target image. It is preferable to further have
  • the relative ratio calculation unit may determine whether the calculated relative ratio is within a predetermined range across 1. , It is preferable to set the calculated relative ratio to 1.
  • the relative ratio calculation unit sets a predetermined range in which the calculated relative ratio is set to 1 to a standard deviation value of the calculated relative ratio. It is preferable to associate
  • the predetermined range including the pixel of interest is wider than a defect area generated in the image or the reference image. It is preferred that
  • the image acquisition unit acquires the reference image captured within a predetermined time before and after the correction target image is captured. preferable.
  • the image acquisition unit acquires the reference image captured at a time that is within the second of the imaging time of the correction target image. Is preferred.
  • an image processing apparatus includes: an image acquisition unit configured to acquire an image captured using an imaging device capable of spectrally dividing into a plurality of colors; A luminance signal generating unit that generates a signal, and a defect information generating unit that generates defect information in the image based on the generated luminance signal of the image.
  • the image processing apparatus further includes a correction unit that corrects a value of each color component of a defective pixel in the image using the defect information.
  • a correction unit that corrects a value of each color component of a defective pixel in the image using the defect information.
  • the image processing apparatus in the acquired image, a value of the luminance signal generated by the target pixel and a plurality of values within a predetermined range including the target pixel are included. It is preferable that the image processing apparatus further includes a defect information creating unit that creates defect information in an image based on the average value of the luminance signal generated by the pixel.
  • the defect information creation unit includes a value of a luminance signal generated by the target pixel and a plurality of values within a predetermined range including the target pixel. It is preferable to include a relative ratio calculation unit that calculates a relative ratio of the luminance signal generated by the pixel to the average value, and to generate the defect information based on the calculated relative ratio.
  • the image processing apparatus in the image processing device of the twenty-second aspect, further includes a correction unit configured to multiply a reciprocal value of the relative ratio for each color component value of a corresponding pixel to correct the value.
  • a correction unit configured to multiply a reciprocal value of the relative ratio for each color component value of a corresponding pixel to correct the value.
  • it is provided.
  • the image acquisition unit acquires a plurality of images photographed by the imaging device
  • the luminance signal generation unit acquires the acquired plurality of images. It is preferable that a luminance signal is generated for one of the plurality of images, and the defect information generating unit generates defect information in any one of the plurality of images using the generated luminance signals of the plurality of images.
  • the image acquisition unit acquires a plurality of images photographed by the imaging device
  • the luminance signal generation unit acquires the acquired plurality of images. It is preferable that a luminance signal is generated for one of the images, and the defect information creating unit creates defect information corresponding to the whole of the plurality of images using the plurality of acquired images.
  • the imaging element captures an image through an optical system
  • the defect information includes information on a defect in the optical path generated in the image.
  • it is information of a projected image.
  • the defect information creation unit simultaneously creates and records information on the position and intensity of the projected image of the defect in the middle of the optical path. Is preferred.
  • the correction unit obtains the correction value by using an original signal value of the position of the pixel to be corrected.
  • the defect information is information of a projected image of a defect on the optical path generated in the image.
  • the defect information creating unit simultaneously creates and records information on the position and intensity of the projected image of the defect on the optical path. Is preferred.
  • the defect information creating unit moves a predetermined range for calculating an average value for each pixel of interest to project a defect in the middle of the optical path.
  • information regarding the intensity of the image is created continuously.
  • the correction unit obtains the correction value by using an original signal value at the position of the pixel to be corrected.
  • the relative ratio calculation unit sets the predetermined range in which the calculated relative ratio is set to 1 to plus or minus (3 X standard deviation value) ) Is preferably set in the range.
  • the predetermined range including the pixel of interest is wider than a spread of a projected image of a defect on the optical path generated in the image. Preferably it is.
  • the predetermined range including the target pixel is wider than a spread of a projected image of a defect in the optical path generated in the reference image. Preferably, it is in the range.
  • an image processing device acquires a first image captured through an optical system and a second image captured under optical conditions different from the first image.
  • An image acquisition unit, and a defect information creation unit that creates defect information included in the first image or the second image using the first image and the second image.
  • a correction unit for correcting a defect in the first image or the second image using the defect information.
  • a correction unit for correcting a defect in the first image or the second image using the defect information.
  • At least one of the optical conditions of the aperture value and the pupil position is provided between the first image and the second image. are preferably different.
  • the defect information creation unit is configured to determine whether the optical conditions of the first image and the second image are different. In order to eliminate the coincidence, it is preferable to include an optical condition conversion unit that performs conversion so that at least one of the first image and the second image meets a certain optical condition.
  • the optical condition conversion unit outputs the first image or the second image when the aperture value of the optical condition is different. It is preferable to perform a one-pass filter process on a pixel signal based on the pixel value to convert the pixel signal into a defect state assumed to be at the same aperture value.
  • the optical condition conversion unit performs conversion using a mouth-pass filter having substantially uniform weight.
  • the optical condition conversion unit when the pupil position of the optical condition is different, the optical condition conversion unit outputs the first image or the second image. It is preferable to perform a displacement process for shifting the pixel signal based on the radial direction from the optical axis center of the optical system to convert the pixel signal into a defect state assumed to be at the same pupil position.
  • the optical condition conversion unit performs a displacement process for increasing an amount of displacement in the radial direction as the distance from the optical axis center increases. It is preferred to do so.
  • the optical condition conversion unit may be configured such that the foreign matter causing the defect includes an imaging surface in the optical system. It is preferable to perform a displacement prediction process by assuming that the displacement is at a predetermined distance along the optical axis.
  • one of the first image and the second image is a correction target image to be corrected.
  • One is preferably a reference image for creating defect information.
  • both the first image and the second image are correction target images to be corrected, and the defect information It is preferable that the creating unit creates, using the first image and the second image, defect information common to the first image and the second image.
  • the defect information creating unit removes the first image from the first image in order to eliminate a mismatch between optical conditions of the second image and the first image. It is preferable to include an optical condition conversion unit that performs conversion such that at least one of the first image and the second image meets a certain optical condition.
  • the image acquisition unit is configured to capture an image with an aperture value in the most narrowed state among variable aperture values of the optical system.
  • a reference image is obtained.
  • the defect information creating unit includes: in the acquired image, a value of a target pixel and a plurality of pixels within a predetermined range including the target pixel. It is preferable to create defect information in an image based on the average value of the pixel values.
  • the image acquisition unit includes a reference image taken within a predetermined time before and after the image of the correction target image is taken. Preferably, an image is obtained.
  • an image processing apparatus acquires a first image captured through an optical system and a second image captured under optical conditions different from the first image.
  • At least one optical condition of an aperture value and a pupil position is provided between the first image and the second image.
  • an image processing apparatus comprises: an image acquisition unit configured to acquire a captured image captured by an imaging element; and a flat part extraction unit configured to extract a flat region in the captured image.
  • a defect information creation unit that creates defect information for the extracted flat area; Prepare.
  • the image processing apparatus further includes a correction unit that corrects an image of the flat region based on the defect information.
  • the value of the target pixel and the predetermined range including the target pixel it is preferable to create defect information of the flat region based on the average value of the plurality of pixels.
  • the defect information creation unit includes a value of a target pixel and an average value of a plurality of pixels within a predetermined range including the target pixel. It is preferable that a relative ratio calculation unit that calculates the relative ratio of the flat portion is provided, and the defect information of the flat portion region is created based on the calculated relative ratio.
  • a relative ratio calculating unit that calculates a relative ratio to an average value of a plurality of pixels within a predetermined range.
  • the defect information creation unit creates the defect information of the flat area based on the calculated relative ratio, and the correction unit calculates the reciprocal value of the relative ratio corresponding to the pixel of the image of the flat area, It is preferable to correct by multiplying the value of the corresponding pixel of the image.
  • the correction unit performs a low-pass process on the relative ratio as the created defect information, and applies the low-pass process to the pixels of the image in the flat region. It is preferable that the reciprocal value of the relative ratio after the corresponding low-pass processing be multiplied by the value of the corresponding pixel of the image of the flat region to correct.
  • the flat portion extraction section performs edge extraction in the captured image to extract the edge. It is preferable to extract the missing region as a flat region.
  • the flat part extraction unit includes a gradation conversion unit that performs gradation conversion on the captured image, and performs the gradation conversion. It is preferable to extract the flat portion region from the captured image after that.
  • the gradation conversion unit performs conversion for enlarging the gradation on the low luminance side and compressing the gradation on the high luminance side. It is preferred to do so.
  • the gradation conversion unit performs the conversion using a power function.
  • the power function is preferably a square root function.
  • the edge extraction comprises a plurality of distances between the pixel of interest and the peripheral pixels. It is preferable to extract by performing the difference operation in a plurality of directions.
  • a level determination unit is provided, and the correction unit corrects the luminance level of the brightness level or higher and the flat region.
  • a reference image acquiring unit that acquires a reference image captured by an imaging element, and a reference that creates defect information of the reference image. It is preferable that the defect information creating unit further includes an image defect information creating unit, and the defect information creating unit creates the defect information of the flat region by using the region information based on the defect information of the reference image and the region information of the flat region.
  • the flat portion extraction section is configured to detect the defect indicated by the defect information of the reference image even in a region that is not extracted as a flat portion region. In the case of a region, it is preferable to extract the defect region as a flat region.
  • the defect information creation unit includes a defect area and a flat area indicated by the defect information of the reference image. It is preferable to create defect information for an area that satisfies both conditions.
  • the correction unit when optical conditions at the time of photographing the captured image and the reference image are different, defect information of the reference image is compared with the captured image. Defect information equivalent to the defect information of the reference image taken under the same optical conditions It is preferable that the correction unit further includes a defect information conversion unit that converts the defect information into information, and the correction unit uses the defect information of the converted reference image.
  • the defect of the reference image A defect information conversion unit that converts the information into defect information equivalent to defect information of a reference image photographed under the same optical conditions as the photographed image, wherein the flat part extraction unit and the correction unit It is preferable to use the defect information of the reference image.
  • the correction unit considers a defect information conversion error of the defect information conversion unit, and It is preferable to use the defect area indicated by the defect information of the image at least by the defect information conversion error.
  • the image acquisition unit acquires a plurality of captured images captured by the imaging device
  • the flat part extraction unit includes a plurality of In the captured image
  • the flat region is extracted
  • the defect information creating unit uses the extracted images of the flat regions of the plurality of images to extract the defect information of the flat region of any of the plurality of images. It is preferable to create one.
  • the image obtaining unit obtains a plurality of captured images captured by the imaging device
  • the flat part extracting unit includes a plurality of In a captured image, a flat region is extracted
  • the defect information creating unit creates defect information corresponding to the entire image of a plurality of images using the extracted images of the flat region of the plurality of images. preferable.
  • the value of the target pixel and the predetermined range including the target pixel are included in the image of the flat portion area. It is preferable to create defect information of the flat region based on the average value of the plurality of pixels.
  • the defect information creating unit includes a value of a pixel of interest and an average value of a plurality of pixels within a predetermined range including the pixel of interest. It is preferable that a relative ratio calculation unit that calculates the relative ratio of the flat portion is provided, and the defect information of the flat portion region is created based on the calculated relative ratio.
  • the flat part extraction unit is configured to detect a defect area indicated by the defect information of the reference image, the number of which is greater than or equal to a predetermined amount around the defect area. When there is an extracted pixel, it is preferable not to extract the defective area as a flat area.
  • the flat part extraction unit has a majority of pixels whose edges are extracted among pixels in a fixed area around pixels in the defect area. In this case, it is preferable not to extract the pixels in the defective area as the pixels in the flat area.
  • a computer readable computer program product has an image processing program for causing a computer to execute the functions of the image processing device according to any one of the above aspects.
  • FIG. 1 is a diagram showing a configuration of an electronic camera of an interchangeable lens type.
  • FIG. 2 is a block diagram of an electronic camera, showing a personal computer (PC) and peripheral devices.
  • PC personal computer
  • FIG. 3 is a diagram illustrating a shooting procedure on the electronic camera side according to the first embodiment.
  • FIG. 4 is a diagram showing a state where local normalization processing is performed on a luminance plane.
  • FIG. 5 is a diagram showing a histogram of the transmittance map.
  • FIG. 6 is a flowchart illustrating a flow of a process performed by the PC according to the first embodiment.
  • FIG. 7 is a diagram illustrating a shooting procedure on the electronic camera side according to the second embodiment.
  • FIG. 8 is a diagram showing how the position of the dust shadow changes when the pupil position changes.
  • FIG. 9 is a diagram illustrating a state in which the size of the dust shadow changes when the F value that is the aperture value changes.
  • FIG. 10 is a diagram showing one-dimensional filter coefficients for each aperture value.
  • Figure 11 shows a two-dimensional image of a filter that is converted to a transmittance map at an aperture value of F16.
  • FIG. 12 is a flowchart showing the flow of a process performed by the PC in the second embodiment.
  • FIG. 13 is a diagram showing a state in which the transmittance is converted by F-number conversion for medium-sized dust.
  • FIG. 14 is a diagram illustrating a shooting procedure on the electronic camera side according to the third embodiment.
  • FIG. 15 is a diagram illustrating a flowchart of the process performed by the PC according to the third embodiment.
  • FIG. 16 is a diagram showing an edge extraction filter.
  • FIG. 17 is a diagram illustrating a flowchart of the process performed by the PC according to the fourth embodiment.
  • FIG. 18 is a diagram showing how a program is provided through a recording medium such as a CD-ROM or a data signal such as the Internet.
  • FIG. 19 is a diagram showing a state of the edge assimilation processing of the edge map.
  • FIG. 1 is a diagram showing a configuration of an interchangeable lens type single-lens reflex electronic still camera (hereinafter, referred to as an electronic camera).
  • the electronic camera 1 has a variable optical system 3 including a camera body 2 and a mountable interchangeable lens.
  • the variable optical system 3 has a lens 4 and an aperture 5 inside.
  • the lens 4 is composed of a plurality of optical lens groups, it is typically represented by one lens in the figure, and the position of the lens 4 is referred to as a main pupil position (hereinafter, simply referred to as a pupil position).
  • the variable optical system 3 may be a zoom lens.
  • the pupil position is a value determined by the lens type and the zoom position of the zoom lens. It may change depending on the focal length.
  • the main body 2 includes a shutter 6, optical components 7 such as an optical filter and a cover glass, and an image sensor 8.
  • the variable optical system 3 corresponds to the mount 9 of the camera body 2. It is removable.
  • the variable optical system 3 transmits optical parameters such as information about the pupil position and information about the aperture value to the control unit 17 (FIG. 2) of the electronic camera 1 via the mount unit 9.
  • the aperture value changes, for example, from F2.8 to F22.
  • Reference numeral 10 denotes dust adhering to the surface of the optical component 7 in front of the image sensor 8.
  • c diagram 2 below a technique to eliminate the effect of the dust is a block diagram of the electronic camera 1 and the shed PC, ° one coarsely braided computer) shows a 3 1 Contact and peripherals FIG.
  • the PC 31 functions as an image processing device, acquires image data from the electronic camera 1, and performs a dust influence removal process described later.
  • the electronic camera 1 has a variable optical system 3, an optical component 7, a shutter 6 (not shown in FIG. 2), an image sensor 8, an analog signal processor 12, an A / D converter 13, and a timing controller 14. , Image processing unit 15, operation unit 16, control unit 17, memory 18, compression / expansion unit 19, display image generation unit 20, monitor 21, memory card interface unit 22, external interface unit 23 Is provided.
  • the image sensor 8 captures an image of a subject through the variable optical system 3 and outputs an image signal (imaging signal) corresponding to the captured subject image.
  • the imaging device 8 has a rectangular imaging region composed of a plurality of pixels, and sequentially converts an image signal, which is an analog signal corresponding to the electric charge accumulated in each pixel, in pixel units into an analog signal processing unit 12.
  • Output to The image pickup device 8 is composed of, for example, a single-plate color CCD.
  • the analog signal processing unit 12 includes a CDS (correlation double sampling) circuit, an AGC (auto gain control) circuit, and the like, and performs predetermined analog processing on an input image signal.
  • the A / D converter 13 converts the analog signal processed by the analog signal processor 12 into a digital signal.
  • the timing control unit 14 is controlled by the control unit 17, and includes an image sensor 8, an analog signal processing unit 12, an AZD conversion unit 13, and an image processing unit. The timing of each operation of the unit 15 is controlled.
  • the memory card interface section 22 interfaces with a memory card (card-shaped removable memory) 30.
  • the external interface unit 23 interfaces with an external device such as a PC 31 via a predetermined cable or a wireless transmission path.
  • the operation unit 16 corresponds to a release button, a selection button for mode switching, and the like.
  • the monitor 21 displays various menus, and displays a reproduced image based on a subject image picked up by the image sensor 8 and image data stored in a memory card.
  • the output of the operation unit 16 is connected to the control unit 17, and the output of the display image generation unit 20 is connected to the monitor 21.
  • the image processing unit 15 is composed of, for example, a one-chip microprocessor dedicated to image processing.
  • AZD conversion unit 13 image processing unit 15, control unit 17, memory 18, compression / decompression unit 19, display image generation unit 20, memory card interface unit 22, external interface unit 23 are interconnected via bus 24.
  • a monitor 32, a printer 33, and the like are connected to the PC 31 and an application program recorded on a CD-ROM 34 is installed in advance.
  • the PC 31 is connected to a memory card interface (not shown) for interfacing with the memory card 30, a predetermined cable, and a wireless transmission path. It has an external interface (not shown) that interfaces with external devices such as the electronic camera 1.
  • the control unit 17 sets the evening imaging control unit 1 4, the timing of the image sensor 8, the analog signal processor 12, and the A / D converter 13 is controlled.
  • the imaging element 8 generates an image signal corresponding to the optical image formed on the imaging area by the variable optical system 3.
  • the image signal is subjected to predetermined analog signal processing in an analog signal processing unit 12, and is output to the A / D conversion unit 13 as an image signal after analog processing.
  • the A / D converter 13 digitizes the image signal after the analog processing and supplies it to the image processor 15 as image data.
  • the most typical R (red), G (green), and B (blue) color filters of the single-chip color image pickup device are arranged in a Bays array.
  • the image data supplied to the image processing unit 15 is represented by the RGB color system.
  • Each pixel constituting the image data has color information of one of RGB color components.
  • one photoelectric conversion element constituting the imaging element 8 is called a pixel, and one unit of image data corresponding to this pixel is also called a pixel.
  • An image is also a concept composed of a plurality of pixels.
  • the image processing unit 15 performs image processing such as interpolation, gradation conversion, and edge enhancement on such image data.
  • the image data on which such image processing has been completed is subjected to a predetermined compression process as necessary by a compression / expansion unit 19, and passed through a memory card interface 22 to the memory card 3. Recorded in 0. After the image processing is completed, the image data may be recorded on the memory card 30 without performing the compression processing.
  • the image data on which the image processing has been completed is provided to the PC 31 via the memory card 30. It may be provided to the PC 31 via the external interface 23 and a predetermined cable or wireless transmission path. It is assumed that the image data for which the image processing has been completed has been subjected to the interpolation processing, and that each pixel has color information of all the RGB components.
  • the reference image is not completely uniform white reference data, but shall be taken by shooting a blue sky, a nearly uniform wall surface, a gray chart, plain paper, etc.
  • the reference data may include the peripheral dimming of the lens, the gradation of the subject, the shading of the image sensor, and the like. It is assumed that the reference data can be acquired in a situation where it can be easily photographed in a familiar place.It does not require strict uniformity, and is converted to a uniform one by the algorithm on the image processing side. .
  • FIG. 3 is a diagram illustrating a photographing procedure on the electronic camera 1 side in the first embodiment.
  • 1) Perform normal shooting 101 with pupil position P 1 aperture value A 1 and output image data 1 to be corrected.
  • uniform surface shooting 102 is performed at the same pupil position P 1 and aperture value A 1, and reference image data 1 is output.
  • different pupil positions P2, aperture The normal shooting 103 is performed with the threshold value A2, and the correction target image data 2 is output.
  • uniform surface shooting 104 is performed with the same pupil position P 2 aperture value A 2 as normal shooting 103, and the reference image data 2 is output.
  • the electronic camera 1 shoots at an object to be shot (normal shooting), and immediately thereafter, the electronic camera 1 turns to the sky or a wall to shoot a uniform surface (uniform surface shooting). .
  • the camera may be in the same state as during normal shooting, with white paper or uniformly colored paper placed just a few cm to 10 cm in front of the lens. In this way, a shooting operation is performed in which the normal shooting and the uniform surface shooting are paired.
  • outputting image data means recording on the memory card 30 or outputting directly to the PC 31 via the external interface 23.
  • the image taken by the electronic camera 1 is provided to the PC 31 after a predetermined image processing.
  • the influence of dust is removed using the pair of correction target image data and the reference image data.
  • the PC 31 may be referred to as an image processing device that performs a dust removal process.
  • Both the reference image data and the image data to be corrected are input to the PC 31 after RGB interpolation processing of the Bayer array is completed.
  • the reference image data and the correction target image data described below are data captured under the same optical conditions of the same pupil position and aperture value.
  • FIG. 6 is a flowchart showing the flow of processing performed in PC31.
  • a luminance plane is generated. For each pixel [i, j] of the reference image data, a luminance signal is generated from the RGB signal using the following equation (1). [i, j] indicates the position of the pixel.
  • step S12 a transmittance map is generated (gain map extraction) comprising the following processing.
  • the reference image data is not always completely uniform as described above. Therefore, the generated luminance plane is not completely uniform.
  • the transmittance signal T [i, j] of each pixel is calculated by the following equation.
  • the transmittance of the entire image obtained in this way is called a transmittance map (gain map).
  • the transmittance map indicates defect information of the reference image.
  • the pixel value is a value of a color signal (color information) and a luminance signal (luminance information) of a color component in each pixel. For example, when represented by 1 byte, it takes a value from 0 to 255.
  • the range 7. (2a + l) ⁇ (2b + l) pixels for which the local average is taken is set to be larger than the dust diameter.
  • a indicates the number of pixels extending right and left around the pixel of interest [i, j]
  • b indicates the number of pixels extending vertically around the pixel of interest [i, j].
  • the aperture value is F22
  • the diameter of the huge dust is about 15 pixels
  • the aperture value is At F4
  • Dust shadows greatly depend on the aperture value, and small dusts disappear as soon as the aperture is opened. Large dust can occupy a large area even when the aperture is open, while the shadows are thinner. Depending on the pixel pitch width of the image sensor, a round dust shadow may be formed over several tens of pixels on the open side, in which case it is necessary to take a local average over a very wide range. Therefore, when speeding up the processing, there is no problem even if the processing is performed on behalf of the thinned pixels.
  • FIG. 4 is a diagram illustrating a state in which local normalization processing is performed on the luminance plane.
  • FIG. 4 (a) is a diagram showing luminance signals of pixels arranged in a certain horizontal direction in the luminance plane. Reference numerals 41 and 42 indicate that the luminance signal is reduced due to dust.
  • FIG. 4 (b) is a diagram obtained by performing the above-described local normalization processing on the luminance signal of FIG. 4 (a).
  • Symbols 43 and 44 are the symbols in Fig. 4 (a). Corresponds to Nos. 41 and 42, and shows the transmittance at places where dust is present. In this way, non-uniformities such as gradation and shading included in the uniform surface data are eliminated, and only a decrease in transmittance due to dust shadows can be extracted. Thereby, the position of the dust and the degree of the transmittance can be simultaneously determined.
  • the low-pass processing of the transmittance map may be selectable, but it is preferable to include this processing because it is effective in most cases. Since the transmittance signal T [i, j] contains random noise due to the quantum fluctuation of the luminance signal, the effect of dust shadows remains at a level close to 1 for the transmittance. Due to its randomness, the following 2-4) threshold judgment may extract dust shadows on spots. In order to prevent this, grouping dust shadows with a low-pass filter by the following equation (3) improves the appearance a little.
  • Nx and Ny represent the total number of pixels in the X and y directions.
  • the area ratio of the dust signal in the transmittance map is very small, and the result of statistical analysis in 2 ⁇ 3) shows that the random noise associated with the quantum fluctuation
  • FIG. 5 is a diagram showing a histogram of the transmittance map. Since it is considered that the fluctuation range is not affected by the change in the transmittance due to the dust shadow, the transmittance may be forcibly set to 1. That is, the following condition (6)
  • the threshold is determined by (7).
  • Normally distributed random data is 99.7% if the range of ⁇ 3 ⁇ is collected, so the effect of random noise can be almost exactly excluded.
  • the transmittance outside of ⁇ 3 ⁇ is an abnormal signal that can hardly be explained by statistical errors, and is considered to represent a phenomenon caused by a decrease in transmittance due to dust shadows.
  • This abnormal part usually has a value smaller than 1 in the case of a rub shadow.
  • the average value M used for judgment always takes a value close to.
  • the transmittance map described above may be referred to as a gain map because it represents a local relative gain.
  • step S13 gain correction is performed.
  • the correction target image data is corrected using the transmittance map obtained as described above.
  • the gain is corrected by multiplying each of the R, G, and B values of the image data to be corrected by the reciprocal of the transmittance signal as shown in equations (11), (12), and (13).
  • the transmittance map is judged as a threshold, so that unnecessary correction can be avoided. In other words, since the influence of random noise has been removed from the transmittance T of a portion where there is no dust, there is no concern that the noise of the RGB signal is amplified.
  • an image captured at an arbitrary time can be appropriately corrected even with a normal electronic camera that does not have a special mechanism for dealing with dust. Since it is not required to have strict uniformity when shooting a uniform surface of the reference image, it is relatively easy It is possible to realize it. In addition, detection and correction can be performed with much higher sensitivity than the conventional dust detection method.
  • a method is described in which a reference image for obtaining dust information is captured only once, and dust is removed from a plurality of images having different optical imaging conditions using the reference image.
  • the configurations of the electronic camera 1 and the PC 31 as the image processing device are the same as those of the first embodiment, and thus description thereof will be omitted.
  • FIG. 7 is a diagram illustrating a shooting procedure on the electronic camera 1 side according to the second embodiment.
  • the aperture value A O of the reference image is photographed with the aperture value being the smallest in a variable range prepared in the variable optical system 3.
  • the smallest aperture value is about F22 for a standard lens, for example.
  • the aperture value of the correction target image is the same as the reference image or is on the open side.
  • Uniform surface photography can be omitted as long as the state of dust attachment does not change. Although the number of insertions of a uniform image has never been greater, it is usually possible to obtain valid garbage data if it is only once a day. It is up to the photographer to decide whether or not to take a uniform image. However, if the previously performed uniform plane imaging is too far apart in time, the reference data obtained by the uniform plane imaging may lack reliability. Therefore, only the reference image data of the uniform surface photographing within a predetermined time from the normal photographing may be used. In addition, it is not always necessary to perform uniform surface photographing first. It is also possible to use the reference image data of the uniform plane photographing performed later.
  • reference image data and correction target image data input to the PC 31 which is an image processing device have data embedded therein for identifying a pupil position and an aperture value.
  • the pupil position data may be calculated using a conversion table from recorded data of the type of lens, zoom position, and focal position embedded in the image data.
  • FIG. 12 is a flowchart showing the flow of the process performed in PC 31. ⁇ Process on reference image>
  • the generation of the luminance plane in step S21 and the generation of the transmittance map in step S22 are performed in the same manner as in the first embodiment.
  • step S23 pupil position conversion of the transmittance map is performed.
  • the pupil position of the reference image is converted into the pupil position predicted to appear when viewed from the pupil position of the correction target image.
  • FIG. 8 is a diagram showing how the position of the dust shadow changes when the pupil position changes. Fig. 8
  • (b) is a diagram illustrating a state in which a dust shadow moves on the imaging surface with a change in the pupil position.
  • the distance 1 is a value obtained by converting the thickness of the optical component into the optical path length in the air.
  • the transmittance map T [i, j] of the reference image is displaced to [ ⁇ ', S] on the polar coordinates [r, ⁇ ] by the following equation (15), and the transmittance map on the coordinates [i, j] is obtained. Convert to T '[i, j].
  • the shift amount ⁇ increases as the distance from the optical axis 51 increases. In the periphery of the actual image, it may reach several tens of pixels depending on the value of the pupil position.
  • step S24 F value conversion of the transmittance map is performed.
  • the dust diameter and transmittance of the reference image are converted to the F value by the dust diameter and transmittance of the correction target image at the more open aperture value.
  • FIG. 9 is a diagram illustrating a state in which the size of the dust shadow changes when the F value that is the aperture value changes.
  • FIG. 9A shows the case where the F value is large
  • FIG. 9B shows the case where the F value is small.
  • (16)
  • the dust diameter can be expressed by the number of pixels. In this way, when the aperture is at the F-number, it can be predicted that dust in the point image spreads to the size of the width ⁇ .
  • the distribution function of the point image is considered to spread the dust shadow by uniformly illuminating the point image dust from each incident angle of the lens that is open within the aperture value. It may be assumed that the function has a spread. Therefore, by applying a uniform low-pass filter process represented by filter width / pixel to F value conversion, it becomes possible to perform F value conversion that accurately predicts the dust diameter and transmittance.
  • a low-pass filter is generally considered to be a circular non-separable filter with a diameter of ⁇ , but a square ⁇ and a horizontal ⁇ -separated filter can be used without any problem in order to speed up processing.
  • the one-dimensional filter coefficient of the square separation type filter is expressed in a form as shown in FIG.
  • the one-dimensional filter coefficients in Fig. 10 filtering is performed vertically and horizontally.
  • the one-dimensional filter coefficient of the aperture value F 16 has a coefficient of 0.5 at both ends and has seven coefficients. This is to filter the spread of the even number width in the range of the odd number width which spreads horizontally, vertically and evenly around the pixel of interest.
  • FIG. 11 is a diagram in which the aperture value F 16 filter is represented by a two-dimensional filter.
  • the transmittance map of the reference image is converted into a transmittance map of the pupil position and the F value of the correction target image. That is, as the transmittance map of the reference image, a transmittance map equivalent to the transmittance map generated under the optical conditions under which the image to be corrected is captured is generated.
  • step S25 gain correction is performed using the transmittance map converted above.
  • the pupil position and the F value are calculated for each of the R, G, and B values of the image data to be corrected as shown in equations (17), (18), and (19). Multiplied by the reciprocal of the converted transmittance signal to perform gain correction.
  • FIG. 13 is a diagram showing a state in which the transmittance is converted by F-number conversion for medium-sized dust.
  • the horizontal axis indicates the pixel position, and the vertical axis indicates the transmittance.
  • the third embodiment a method will be described in which dust is detected and removed from a correction target image in a state where there is no reference image of a uniform surface.
  • the basic principle is that if a flat area (area where the image is partially uniform) in the correction target image is found, the dust transmittance map generation processing (gain Map extraction) can be applied in the same way.
  • the configurations of the electronic camera 1 and the PC 31 as the image processing device are the same as those of the first embodiment, and thus description thereof will be omitted.
  • FIG. 14 is a diagram for explaining a shooting procedure on the electronic camera 1 side according to the third embodiment.
  • 2) Perform normal shooting 30 2 with pupil position P 2 and aperture value A 2 and output correction target image data 2.
  • 3) Perform normal shooting 30 3 with pupil position P 3 and aperture value A 3 and output image data 3 to be corrected.
  • Eye position P 4, Aperture A4 Performs normal shooting 304 and outputs correction target image data 3. That is, in the third embodiment, the uniform plane imaging, which is performed in the first embodiment and the second embodiment, is not performed.
  • FIG. 15 is a diagram showing a flowchart of a process performed by the PC 31 which is an image processing device.
  • a luminance plane is generated.
  • an edge map is generated by gamma correction of the luminance plane, edge extraction filter processing, and threshold value determination.
  • a process of adding a dark area to the edge map is performed.
  • enlargement processing of the edge map is performed.
  • conversion to a flat map is performed.
  • step S36 a self-gain extraction process is performed.
  • step S37 a self-gain correction process is performed. The details of each step are described below.
  • the RGB signal is converted to the luminance signal Y for each pixel [i, j] of the image to be corrected.
  • the conversion method is the same as the method performed on the reference image of the first embodiment.
  • the edge extraction filter is applied to the luminance plane to separate the flat part and the edge part in the image to be corrected. Dust included in the optical path in the image appears as a very low-contrast dust shadow, and is often not detected by an edge extraction filter as in the conventional technology. If this fact is used in reverse, it can be assumed in many places that the edge part extracted by the edge extraction filter is not a dust but basically an edge in the image. To further distinguish the edges and dust in the image, a gradation correction process is first performed on the luminance plane.
  • the gamma-corrected luminance plane is subjected to the edge extraction filter shown in Fig. 16 and the following equation (21).
  • the edge extraction component of each pixel be YH [i, j].
  • the filter is designed to collect absolute value differences having a plurality of correlation distances from all directions without omission so that all the original edges of the image are extracted as much as possible.
  • the threshold value of the edge extraction component YH is determined, and the edge portion or the flat portion is classified, and the result is output to the edge map EDGE [i, j].
  • the threshold value Thl takes a value of about 1 to 5 for 255 gradations.
  • the dust shadow existing on the edge part is basically an area where dust removal is unnecessary because the dust shadow is buried in the vibrating signal of the edge part and is not conspicuous.
  • the weight conversion between the gray scales is changed by performing the gray scale conversion in 2-1), and the threshold determination is performed with the fixed threshold Thl over all the gray scales in 2-3).
  • the threshold determination is performed with the fixed threshold Thl over all the gray scales in 2-3.
  • almost the same effect can be obtained by performing edge extraction while keeping the linear gradation, setting a threshold value according to the luminance level, and performing threshold value determination.
  • the edge map represents an area where the gain map must not be extracted.
  • the area that is dangerous to extract the gain map is the dark area ( ⁇ ⁇ ).
  • the dark part has low reliability even if the relative gain is extracted because the S / N is poor. Furthermore, there is no need to remove dust because the dust shadows existing on the dark areas are almost inconspicuous. Therefore, the dark area is also added to the edge map by the following equation (24).
  • a transmittance map is generated by comparing the relative ratio between the center value and the average value of (2a + l) ⁇ (2b + l) pixels in the flat portion. Therefore, in order to prevent the edge portion from entering this kernel in advance, (2a + l) x (2b + l) pixel enlargement processing of the edge portion is performed by the following equation (25).
  • the edge map EDGE [i, j] is converted to the flat map FLAT [i, j] by the following equations (26) and (27). Achieved by bit inversion.
  • the flat area indicated by the flat map represents an area in which the gain map extraction kernel composed of (2 a + l) ⁇ (2b + l) pixels may be self-extracted in the image to be corrected.
  • the R, G, and B values of the image to be corrected are multiplied by the reciprocal of the self-extracted transmittance signal T [i, j] to perform self-self gain correction. .
  • T [i, j] the transmittance signal
  • the transmittance map is not obtained from the reference image, but is used in the third embodiment.
  • a method of self-extraction from the correction target image itself is adopted.
  • the pupil position conversion of the transmittance map is performed.
  • the pupil position value is an approximate value and is not accurate, an error may occur in the pupil position conversion.
  • the edge map extraction large dust is extracted as an edge, and correction may not be performed. The fourth embodiment addresses such disadvantages of the second embodiment and the third embodiment.
  • the shooting procedure is the same as in the second embodiment.
  • FIG. 17 is a diagram showing a flowchart of a process performed by the PC 31 which is an image processing device.
  • the generation of the luminance plane in step S41 is the same as in the first embodiment and the second embodiment.
  • the generation of the transmittance map (extraction of the gain map) in step S42 is the same as in the first embodiment and the second embodiment.
  • the pupil position conversion of the transmittance map in step S43 is the same as in the second embodiment.
  • the F value conversion of the transmittance map in step S44 is the same as in the second embodiment.
  • step S45 the threshold of the transmittance map is determined.
  • the F value conversion of the transmittance map is performed, a number of pixels close to transmittance 1 where many dust shadows have almost disappeared due to the one-pass filter processing are generated.
  • threshold determination is performed again using the following equations (28) and (29).
  • the standard deviation ⁇ calculated in the process of 2) “Generation of transmittance map” is used again.
  • the pupil position and the transmittance map after F value conversion are denoted by T '[i, j].
  • step S46 the transmittance map is binarized by the following equation (30) (31) and converted into a garbage map dmap [i, j].
  • Equation (30) may be made with a little extra margin such that T '[i, j] ⁇ 0.95.
  • step S47 the dust map is enlarged by the error assumed in the pupil position conversion by the following equation (32), so that the dust map is such that the area within the allowable error includes dust.
  • an error of ⁇ 3 pixels is expected.
  • step S51 The generation of the luminance plane in step S51 is the same as in the third embodiment. 2)
  • the generation of the edge map in step S52 is the same as in the third embodiment.
  • Exclude dust area from edge map In step S54 dust regions are excluded from the edge map. Many dust shadows have low contrast and are not edge-extracted, but some of them are large dust and have high contrast, and edges may be extracted. In particular, some dust shadows occur in the correction target image captured with the aperture stopped down.
  • the dust position is forcibly determined by the following equation (33) using the dust map information obtained in step S46. Perform processing to exclude from the edge part.
  • peripheral assimilation processing in the edge map is performed.
  • the background is a uniform image such as a blue sky
  • the background is an image with a pattern or structure
  • the surrounding pattern and the actual pattern and structure around it will Therefore, an unnatural correction process is performed due to the relationship. Therefore, if it is determined that there are a large number of edge pixels in the peripheral pixels of a pixel determined not to be an edge portion, the pixel is set as an edge portion again.
  • step S55 The process of enlarging the edge map in step S55 is the same as in the third embodiment. 6) The conversion to the flat map in step S56 is the same as in the third embodiment.
  • the self-gain extraction in step S58 performs only local standardization processing (gain extraction processing). Subsequent statistical analysis of the transmittance map and dust area limitation processing by threshold processing are unnecessary since they are already limited to the vicinity of dust by the processing of 7).
  • the local normalization processing is the same as in the third embodiment. As described above, by performing the processing of step S47 to search for dust by expanding the gain extraction area around the dust by the error of the pupil position conversion accuracy, dust can be extracted without omission. Here, one-pass processing is performed on the transmittance map extracted by itself.
  • the self-extracted entire region of T [i, j] is subjected to the same low-pass processing as in the first embodiment to remove the fluctuation component of the pixel [i, j] included in T [i, j]. I do.
  • the self-gain correction by self-gain extraction is performed only in the local area of the dust position and not through threshold processing by statistical analysis, so this low-pass processing is an important processing. . That is, since the pixel value and the transmittance value T [i, j] fluctuate in the same direction before the low-pass processing, if the self-gain correction described later is performed without performing the low-pass processing, the image only includes the local region as a whole. It is easy to get stiff.
  • the single-pass filter may be designed to be a little stronger than in the first embodiment, and a large dust portion (T [i, j] whose value is 1 compared to 1) which is easily affected by the low-pass filter. Only in very small places), the low-pass filter processing may be omitted.
  • the self-gain correction in step S59 is the same as in the third embodiment. Even if the pupil position conversion accuracy of the transmittance map of the reference image is poor, since the transmittance information of the dust is extracted from the correction target image itself, it is possible to perform a clean correction without any displacement. Note that the self-gain is extracted only in the self-gain extraction region specified in step S57. Therefore, the correction processing is also performed only within this range, and the processing load is reduced.
  • the fourth embodiment by effectively using the dust map information of the reference image, it is possible to self-extract all kinds of dust from large to small dust in the correction target image without omission. It becomes. Further, when the pupil position conversion accuracy of the transmittance map of the reference image is poor, it can be used as an alternative to the second embodiment. Further, as in the second embodiment, the load on the photographer for photographing the reference image can be extremely small.
  • the photographer shoots a reference image that the photographer considers to be close to uniform, and localizes the photographed reference image.
  • the transmittance map was created by performing standard processing and the like.
  • the reference image that the photographer considers to be close to uniform has a small pattern or the like. This can basically be addressed by blurring the subject.
  • the paper may be photographed at a position closer than the shortest photographing distance of the lens. Even if there is a small pattern, a uniform extraction criterion that can sufficiently achieve the objective can be achieved if an image that changes slowly in a wider range than the (2a + l) x (2b + l) size gain extraction kernel is sufficient. Can be an image.
  • the self gain extraction area is specified in step S57, and correction is performed in a limited range in step S58.
  • the method of limiting the correction range to the peripheral range (neighboring region) including the dust region as described above can also be applied in the first to third embodiments.
  • dust may be specified from the obtained transmittance map, and the surrounding area may be obtained.
  • the process of acquiring one captured image, extracting a flat portion from one captured image, and generating a dust map has been described.
  • that part may not be extracted as a flat part.
  • an example has been described in which this problem is dealt with by acquiring a reference image.However, even if a reference image is not acquired, such a large dust portion can be obtained by using a correlation between a plurality of images. It can be recognized as a flat part for which defect information is to be created. For example, if there is always an image detected by edge extraction at the same position in a plurality of captured images of different subjects, it may be an image due to dust.
  • the ANDed portion is excluded from the edge map.
  • the ANDed part can be added to the flat part, and a transmittance map can be created even for large dust.
  • the AND operation need not be limited to the edge map.
  • Data generated from captured images any data may be used as long as the data on the photographing optical path can be recognized by ANDing a plurality of photographed images.
  • the transmittance map based on the gain extraction power is forcibly calculated for the entire image regardless of whether it is a flat part or not, and there is an image that is extracted with the same transmittance at the same position among multiple images. In such a case, it is possible to use an AND method that leaves the defect information as a transmittance map and excludes others from the defect information.
  • the transmittance map of the entire captured screen can be obtained.
  • the position of the flat portion on the shooting screen is different for each different subject. If you take the OR of these flat parts, the whole shooting screen may be obtained. Therefore, the transmittance map of the entire photographic screen can be obtained from a plurality of captured images, that is, a plurality of correction target images, without capturing a reference image for obtaining dust information. This transmittance map of the entire shooting screen can be used in common for a plurality of correction target images.
  • the pupil position and F value may differ for each captured image.
  • pupil position conversion or F-value conversion may be performed in the state of an image signal as it is or in the state of a transmittance map.
  • the present invention is not necessarily limited to this content.
  • the present invention can be applied to a non-interchangeable lens camera.
  • the pupil position and the aperture value may be appropriately obtained by a known method.
  • the present invention is not necessarily limited to this.
  • the present invention It can also be applied to image data taken with a video camera that handles. It can also be applied to image data taken with a mobile phone equipped with a camera. Furthermore, it can be applied to a copying machine, a scanner, and the like. That is, the present invention can be applied to any image data captured using the image sensor.
  • the program executed by the PC 31 can be provided through a data signal such as a recording medium internet such as a CD-ROM.
  • Fig. 18 is a diagram showing this situation.
  • PC 31 is provided with the program via CD-ROM 34.
  • the PC 31 has a function of connecting to the communication line 401.
  • the computer 402 is a server computer that provides the program, and stores the program on a recording medium such as a hard disk 403.
  • the communication line 401 is a communication line such as the Internet or personal computer communication, or a dedicated communication line.
  • the computer 402 reads the program using the hard disk 403, and transmits the program to the PC 31 via the communication line 401. That is, the program is placed on a carrier wave as a data signal and transmitted via the communication line 401. In this way, the program can be supplied as a computer-readable computer program product in various forms such as a recording medium and a carrier wave.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Image Processing (AREA)
  • Studio Devices (AREA)
  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)
  • Transforming Light Signals Into Electric Signals (AREA)

Abstract

 画像処理装置は、撮像素子により撮影された画像を取得する画像取得部と、取得した画像内において、着目画素の値と該着目画素を含む所定範囲内の複数の画素の値の平均値とに基づいて、画像内の欠陥情報を作成する欠陥情報作成部とを備える。

Description

明細書 画像処理装置および画像処理プログラム 次の優先権基礎出願の開示内容は引用文としてここに組み込まれる。
日本国特許出願 2 0 0 2年第 3 7 9 7 1 9号 (2 0 0 2年 1 2月 2 7 日出願) 日本国特許出願 2 0 0 2年第 3 7 9 7 2 0号 (2 0 0 2年 1 2月 2 7 日出願) 日本国特許出願 2 0 0 2年第 3 7 9 7 2 1号 (2 0 0 2年 1 2月 2 7 日出願) 日本国特許出願 2 0 0 3年第 3 0 7 3 5 5号 (2 0 0 3年 0 8月 2 9 日出願) 日本国特許出願 2 0 0 3年第 3 0 7 3 5 6号 (2 0 0 3年 0 8月 2 9 日出願) 日本国特許出願 2 0 0 3年第 3 0 7 3 5 7号 (2 0 0 3年 0 8月 2 9 日出願) 技術分野
本発明は、 電子カメラ等で撮影した画像データにおいて、 ゴミ等の影響を除去 する画像処理装置に関する。 背景技術
従来、 ビデオカメラの製造時に光学系に混入したゴミの影響を補正するため、 事前に各絞り値毎の白パターンを撮影して補正情報を記録しておく技術が、 特開 平 9一 5 1 4 5 9号公報に開示されている。 また、 コピー機の分野では常に変化 する可能性のあるゴミ対策として、 原稿読み取り前に均一な反射面を有する白基 準データを取り込んで、 ゴミ検出する技術が、 特開平 1 0— 2 9 48 7 0号公報 ゃ特開平 1 1— 2 7 4 7 5号公報に開示されている。 さらに、 スキャナー分野で は、 この白基準データの代わりの役割を果たすものとして、 赤外光センサーを備 え、 可視光データと同時に透過率データを得て、 フィルム欠陥による透過率の減 衰信号を得る方法が、 US P 6 , 1 9 5 , 1 6 1号に開示されている。 発明の開示
しかし、 従来のカメラでは、 製造時に光学部品に付着した固定ゴミを対象とし ていたに過ぎず、 使用頻度や時間の経過に伴って変化するゴミは考慮されてこな つかった。 今日普及し始めた交換レンズ方式の一眼レフカメラでは、 特に撮像素 子前部の光学部品がむき出しのため、 時間的に変化するゴミの写り込みが大きな 問題となりやすい。
他方、 コピ一機やスキャナーでは本スキャンの前あるいは同時にゴミデ一夕を 取得して時間的に変化のあるゴミに対応している。 しかし、 カメラとは構造が異 なって、 固定距離にある原稿やフィルム面に対して一様な照明手段を有しており、 更に完全に均一な反射面を備えたり、 新たに赤外線照明手段を設けたりすること によって透過率データを得るのは比較的容易にできる。 しかしながら、 電子カメ ラでは製造時検査以外はそのような完全な一様面の透過率データを得にくいのが 普通である。
また、 コピー機、 スキャナ一は基本的に固定光学系であり、 光学系の変化によ りゴミが変化することを考慮する必要性がない。 一方、 従来のビデオカメラでは 絞り値以外の光学的条件が変化することには対応していない。
本発明は、 電子カメラ等で撮影された画像データから、 ゴミの影響等を適切に 除去することが可能な画像処理装置および画像処理プログラムを提供する。
本発明の第 1の態様によれば、 画像処理装置は、 撮像素子により撮影された画 像を取得する画像取得部と、 取得した画像内において、 着目画素の値と該着目画 素を含む所定範囲内の複数の画素の値の平均値とに基づいて、 画像内の欠陥情報 を作成する欠陥情報作成部とを備える。
本発明の第 2の態様によれば、 第 1の態様の画像処理装置において、 欠陥情報 作成部は、 着目画素の値と該着目画素を含む所定範囲内の複数の画素の値の平均 値との相対比を算出する相対比算出部を備え、 算出した相対比に基づいて、 欠陥 情報を作成するのが好ましい。
本発明の第 3の態様によれば、 第 1の態様から第 2の態様のいずれかの画像処 理装置において、 欠陥情報作成部は、 画像内で所定の条件を満たす領域に対して 欠陥情報を作成するのが好ましい。
本発明の第 4の態様によれば、 第 1から 3のいずれかの態様の画像処理装置に おいて、 欠陥情報に基づいて、 画像内の欠陥を補正する補正部とを更に有するの が好ましい。
本発明の第 5の態様によれば、 第 2の態様の画像処理装置において、 欠陥情報 に基づいて、 画像内の欠陥を補正する補正部を更に有し、 補正部は、 相対比の逆 数値を、 対応する画素の値に掛け算して補正するのが好ましい。
本発明の第 6の態様によれば、 第 1の態様の画像処理装置において、 画像取得 部は、 撮像素子により撮影された複数の画像を取得し、 欠陥情報作成部は、 取得 した複数の画像を使用して、 複数の画像のいずれかの画像内の欠陥情報を作成す るのが好ましい。
本発明の第 7の態様によれば、 第 1の態様の画像処理装置において、 画像取得 部は、 撮像素子により撮影された複数の画像を取得し、 欠陥情報作成部は、 取得 した複数の画像を使用して、 複数の画像の画像全体に対応する欠陥情報を作成す るのが好ましい。
本発明の第 8の態様によれば、 画像処理装置は、 光学系を通して撮影された基 準画像を取得する画像取得部と、 取得した基準画像内において、 着目画素の値と 該着目画素を含む所定範囲内の複数の画素の値の平均値とに基づいて、 基準画像 内の欠陥情報を作成する欠陥情報作成部とを備える。
本発明の第 9の態様によれば、 第 8の態様の画像処理装置において、 欠陥情報 作成部は、 着目画素の値と該着目画素を含む所定範囲内の複数の画素の値の平均 値との相対比を算出する相対比算出部を備え、 算出した相対比に基づいて、 欠陥 情報を作成するのが好ましい。
本発明の第 1 0の態様によれば、 第 8から 9のいずれかの態様の画像処理装置 において、 画像取得部は、 光学系を通して撮影された補正対象画像を取得し、 基 準画像内の欠陥情報に基づいて、 補正対象画像内の欠陥を補正する補正部を更に 有するのが好ましい。
本発明の第 1 1の態様によれば、 第 1 0の態様の画像処理装置において、 補正 部は、 基準画像と補正対象画像とが、 絞り値および瞳位置が実質的に同じ光学的 条件の光学系を通して撮影されている場合、 生成された欠陥情報をそのまま使用 して、 補正対象画像を構成する画素の値を補正するのが好ましい。
本発明の第 1 2の態様によれば、 第 1 0の態様の画像処理装置において、 光学 系の光学的条件である絞り値および瞳位置の少なく とも 1つに応じて、 欠陥情報 を変換する欠陥情報変換部をさらに備え、 補正部は、 基準画像と補正対象画像と が、 絞り値および瞳位置の少なくとも 1つが異なる光学的条件の光学系を通して 撮影されている場合、 変換された欠陥情報を使用して、 補正対象画像を構成する 画素の値を補正するのが好ましい。
本発明の第 1 3の態様によれば、 第 9の態様の画像処理装置において、 基準画 像の相対比の逆数値を、 補正対象画像の対応する画素の値に掛け算して補正する 補正部をさらに有するのが好ましい。
本発明の第 1 4の態様によれば、 第 2、 9のいずれかの態様の画像処理装置に おいて、 相対比算出部は、 算出した相対比が 1を挟んだ所定範囲に含まれるとき, 算出した相対比を 1に設定するのが好ましい。
本発明の第 1 5の態様によれば、 第 1 4の態様の画像処理装置において、 相対 比算出部は、 算出した相対比を 1に設定する所定範囲を、 算出した相対比の標準 偏差値と関連づけるのが好ましい。
本発明の第 1 6の態様によれば、 第 1、 8のいずれかの態様の画像処理装置に おいて、 着目画素を含む所定範囲は、 画像あるいは基準画像内で生じる欠陥領域 よりも広い範囲であるのが好ましい。
本発明の第 1 7の態様によれば、 第 1 0の態様の画像処理装置において、 画像 取得部は、 補正対象画像の撮影前後の所定時間内に撮影された基準画像を取得す るのが好ましい。
本発明の第 1 8の態様によれば、 第 1 7の態様の画像処理装置において、 画像 取得部は、 補正対象画像の撮影時間に 2番目以内に近い時間に撮影された基準画 像を取得するのが好ましい。
本発明の第 1 8の態様によれば、 画像処理装置は、 複数色に分光可能な撮像素 子を使用して撮影された画像を取得する画像取得部と、 画像の複数色の信号から 輝度信号を生成する輝度信号生成部と、 生成された画像の輝度信号に基づき、 画 像内の欠陥情報を作成する欠陥情報作成部とを備える。
本発明の第 2 0の態様によれば、 第 1 9の態様の画像処理装置において、 欠陥 情報を用いて、 画像内の欠陥画素の各色成分の値を補正する補正部をさらに備え るのが好ましい。
本発明の第 2 1の態様によれば、 第 1 9の態様の画像処理装置において、 取得 した画像内において、 着目画素の生成した輝度信号の値と該着目画素を含む所定 範囲内の複数の画素の生成した輝度信号の平均値に基づいて、 画像内の欠陥情報 を作成する欠陥情報作成部とを備えるのが好ましい。
本発明の第 2 2の態様によれば、 第 2 1の態様の画像処理装置において、 欠陥 情報作成部は、 着目画素の生成した輝度信号の値と該着目画素を含む所定範囲内 の複数の画素の生成した輝度信号の平均値との相対比を算出する相対比算出部を 備え、 算出した相対比に基づいて、 欠陥情報を作成するのが好ましい。
本発明の第 2 3の態様によれば、 第 2 2の態様の画像処理装置において、 相対 比の逆数値を、 対応する画素の各色成分の値毎に掛け算して補正する補正部を更 に備えるのが好ましい。
本発明の第 2 4の態様によれば、 第 1 9の態様の画像処理装置において、 画像 取得部は、 撮像素子により撮影された複数の画像を取得し、 輝度信号生成部は、 取得した複数の画像について輝度信号を生成し、 欠陥情報作成部は、 生成された 複数の画像の輝度信号を使用して、 複数の画像のいずれかの画像内の欠陥情報を 作成するのが好ましい。
本発明の第 2 5の態様によれば、 第 1 9の態様の画像処理装置において、 画像 取得部は、 撮像素子により撮影された複数の画像を取得し、 輝度信号生成部は、 取得した複数の画像について輝度信号を生成し、 欠陥情報作成部は、 取得した複 数の画像を使用して、 複数の画像の画像全体に対応する欠陥情報を作成するのが 好ましい。
本発明の第 2 6の態様によれば、 第 1の態様の画像処理装置において、 撮像素 子は、 光学系を通して画像を撮影し、 欠陥情報は、 画像内に生じた光路途中の欠 陥の投影像の情報であるのが好ましい。
本発明の第 2 7の態様によれば、 第 2 6の態様の画像処理装置において、 欠陥 情報作成部は、 光路途中の欠陥の投影像の位置と強度に関する情報を同時に作成 して記録するのが好ましい。
本発明の第 2 8の態様によれば、 第 2 7の態様の画像処理装置において、 欠陥 情報作成部は、 着目画素ごとに平均値を算出する所定範囲を移動させ、 光路途中 の欠陥の投影像の強度に関する情報を連続的に作成するのが好ましい。
本発明の第 2 9の態様によれば、 第 4の態様の画像処理装置において、 補正部 は、 補正対象画素位置の元の信号値を利用して補正値を求めるのが好ましい。 本発明の第 3 0の態様によれば、 第 8の態様の画像処理装置において、 欠陥情 報は、 画像内に生じた光路途中の欠陥の投影像の情報であるのが好ましい。 本発明の第 3 1の態様によれば、 第 3 0の態様の画像処理装置において、 欠陥 情報作成部は、 光路途中の欠陥の投影像の位置と強度に関する情報を同時に作成 して記録するのが好ましい。
本発明の第 3 2の態様によれば、 第 3 1の態様の画像処理装置において、 欠陥 情報作成部は、 着目画素ごとに平均値を算出する所定範囲を移動させ、 光路途中 の欠陥の投影像の強度に関する情報を連続的に作成するのが好ましい。
本発明の第 3 3の態様によれば、 第 1 0の態様の画像処理装置において、 補正 部は、 補正対象画素位置の元の信号値を利用して補正値を求めるのが好ましい。 本発明の第 3 4の態様によれば、 第 1 5の態様の画像処理装置において、 相対 比算出部は、 算出した相対比を 1に設定する所定範囲を、 プラスマイナス ( 3 X 標準偏差値) の範囲に設定するのが好ましい。
本発明の第 3 5の態様によれば、 第 2 6の態様の画像処理装置において、 着目 画素を含む所定範囲は、 画像内に生じた光路途中の欠陥の投影像の広がりよりも 広い範囲であるのが好ましい。
本発明の第 3 6の態様によれば、 第 3 0の態様の画像処理装置において、 着目 画素を含む所定範囲は、 基準画像内に生じた光路途中の欠陥の投影像の広がりよ りも広い範囲であるのが好ましい。
本発明の第 3 7の態様によれば、 画像処理装置は、 光学系を通して撮影された 第 1の画像と、 第 1の画像とは異なる光学的条件で撮影された第 2の画像を取得 する画像取得部と、 第 1の画像と第 2の画像を用いて、 第 1の画像もしくは第 2 の画像内に含まれる欠陥情報を作成する欠陥情報作成部とを備える。
本発明の第 3 8の態様によれば、 第 3 7の態様の画像処理装置において、 欠陥 情報を用いて、 第 1の画像もしくは第 2の画像内の欠陥を補正する補正部を備え るのが好ましい。
本発明の第 3 9の態様によれば、 第 3 7の態様の画像処理装置において、 第 1 の画像と第 2の画像との間で、 絞り値および瞳位置の少なくとも 1つの光学的条 件が異なるのが好ましい。
本発明の第 4 0の態様によれば、 第 3 7から 3 9のいずれかの態様の画像処理 装置において、 欠陥情報作成部は、 第 1の画像と第 2の画像の光学的条件の不一 致をなくすため、 第 1の画像と第 2の画像の少なくとも一方の画像を、 一定の光 学的条件に合致するような変換を行う光学的条件変換部を備えるのが好ましい。 本発明の第 4 1の態様によれば、 第 4 0の態様の画像処理装置において、 光学 的条件変換部は、 光学的条件の絞り値が異なるとき、 第 1の画像もしくは第 2の 画像に基づく画素信号に対して口一パスフィルタ処理を行って、 同じ絞り値のと きにあると想定される欠陥の状態に変換するのが好ましい。
本発明の第 4 2の態様によれば、 第 4 1の態様の画像処理装置において、 光学 的条件変換部は、 実質的に均等な重みづけの口一パスフィルタを用いて変換する のが好ましい。
本発明の第 4 3の態様によれば、 第 4 0の態様の画像処理装置において、 光学 的条件変換部は、 光学的条件の瞳位置が異なるとき、 第 1の画像もしくは第 2の 画像に基づく画素信号に対して光学系の光軸中心から動径方向にずらす変位処理 を行って、 同じ瞳位置のときにあると想定される欠陥の状態に変換するのが好ま しい。
本発明の第 4 4の態様によれば、 第 4 3の態様の画像処理装置において、 光学 的条件変換部は、 光軸中心から遠くになるに従い、 動径方向にずらす量を増やす 変位処理を行うのが好ましい。
本発明の第 4 5の態様によれば、 第 4 3から 4 4のいずれかの態様の画像処理 装置において、 光学的条件変換部は、 欠陥の原因となる異物が、 光学系内の撮像 面から光軸に沿って所定の距離にあると仮定して変位量を予測する演算を行い、 変位処理を行うのが好ましい。
本発明の第 4 6の態様によれば、 第 3 7の態様の画像処理装置において、 第 1 の画像と第 2の画像のどちらか一方は補正の対象となる補正対象画像であり、 他 方は欠陥情報を作成するための基準画像であるのが好ましい。
本発明の第 4 7の態様によれば、 第 3 7の態様の画像処理装置において、 第 1 の画像と第 2の画像は、 どちらも補正の対象となる補正対象画像であり、 欠陥情 報作成部は、 第 1の画像と第 2の画像を用いて、 第 1の画像と第 2の画像に共通 な欠陥情報を作成するのが好ましい。
本発明の第 4 8の態様によれば、 第 4 7の態様の画像処理装置において、 欠陥 情報作成部は、 第 1の画像と第 2の画像の光学的条件の不一致をなくすため、 第 1の画像と第 2の画像の少なくとも一方の画像を、 一定の光学的条件に合致する ような変換を行う光学的条件変換部を備えるのが好ましい。
本発明の第 4 9の態様によれば、 第 4 6の態様の画像処理装置において、 画像 取得部は、 光学系の可変な絞り値の中で、 最も絞り込んだ状態の絞り値で撮影さ れた基準画像を取得するのが好ましい。
本発明の第 5 0の態様によれば、 第 3 7の態様の画像処理装置において、 欠陥 情報作成部は、 取得した画像内において、 着目画素の値と該着目画素を含む所定 範囲内の複数の画素の値の平均値に基づき、 画像内の欠陥情報を作成するのが好 ましい。
本発明の第 5 1の態様によれば、 第 4 6、 4 9のいずれかの態様の画像処理装 置において、 画像取得部は、 補正対象画像の撮影前後の所定時間内に撮影された 基準画像を取得するのが好ましい。
本発明の第 5 2の態様によれば、 画像処理装置は、 光学系を通して撮影された 第 1の画像と、 第 1の画像とは異なる光学的条件で撮影された第 2の画像を取得 する画像取得部と、 第 1の画像と第 2の画像を用いて、 第 1の画像もしくは第 2 の画像内に含まれる欠陥を補正する補正部とを備える。
本発明の第 5 3の態様によれば、 第 5 2の態様の画像処理装置において、 第 1 の画像と第 2の画像との間で、 絞り値および瞳位置の少なくとも 1つの光学的条 件が異なるのが好ましい。
本発明の第 5 4の態様によれば、 画像処理装置は、 撮像素子により撮影された 撮影画像を取得する画像取得部と、 取得した撮影画像内で平坦部領域を抽出する 平坦部抽出部と、 抽出した平坦部領域の欠陥情報を作成する欠陥情報作成部とを 備える。
本発明の第 5 5の態様によれば、 第 5 4の態様の画像処理装置において、 欠陥 情報に基づいて、 平坦部領域の画像を補正する補正部をさらに備えるのが好まし い。
本発明の第 5 6の態様によれば、 第 5 4〜 5 5のいずれかの態様の画像処理装 置において、 平坦部領域の画像において、 着目画素の値と該着目画素を含む所定 範囲内の複数の画素の平均値とに基づいて、 平坦部領域の欠陥情報を作成するの が好ましい。
本発明の第 5 7の態様によれば、 第 5 6の態様の画像処理装置において、 欠陥 情報作成部は、 着目画素の値と該着目画素を含む所定範囲内の複数の画素の平均 値との相対比を算出する相対比算出部を備え、 算出した相対比に基づいて、 平坦 部領域の欠陥情報を作成するのが好ましい。
本発明の第 5 8の態様によれば、 第 5 5の態様の画像処理装置において、 含む 所定範囲内の複数の画素の平均値との相対比を算出する相対比算出部をさらに備 え、 欠陥情報作成部は、 算出した相対比に基づいて、 平坦部領域の欠陥情報を作 成し、 補正部は、 平坦部領域の画像の画素に対応する相対比の逆数値を、 平坦部 領域の画像の対応する画素の値に掛け算して補正するのが好ましい。
本発明の第 5 9の態様によれば、 第 5 8の態様の画像処理装置において、 補正 部は、 作成された欠陥情報としての相対比にローパス処理を行い、 平坦部領域の 画像の画素に対応するローパス処理後の相対比の逆数値を、 平坦部領域の画像の 対応する画素の値に掛け算して補正するのが好ましい。
本発明の第 6 0の態様によれば、 第 5 4〜 5 9のいずれかの態様の画像処理装 置において、 平坦部抽出部は、 撮影画像内でエッジ抽出を行い、 エッジが抽出さ れなかった領域を平坦部領域として抽出するのが好ましい。
本発明の第 6 1の態様によれば、 第 5 4の態様の画像処理装置において、 平坦 部抽出部は、 撮影画像に対し階調変換を行う階調変換部を有し、 階調変換された 後の撮影画像に対して平坦部領域の抽出を行うのが好ましい。
本発明の第 6 2の態様によれば、 第 6 1の態様の画像処理装置において、 階調 変換部は、 撮影画像の階調が線形信号の時、 非線形信号に変換するのが好ましい, 本発明の第 6 3の態様によれば、 第 6 2の態様の画像処理装置において、 階調 変換部は、 低輝度側の階調を拡大し、 高輝度側の階調を圧縮する変換を行うのが 好ましい。
本発明の第 6 4の態様によれば、 第 6 2 ~ 6 3のいずれかの態様の画像処理装 置において、 階調変換部は、 べき乗関数により変換を行うのが好ましい。
本発明の第 6 5の態様によれば、 第 6 4の態様の画像処理装置において、 べき 乗関数は平方根関数であるのが好ましい。
本発明の第 6 6の態様によれば、 第 6 0〜 6 5のいずれかの態様の画像処理装 置において、 エッジ抽出は、 着目画素と周辺画素との間において、 複数の距離か らなる差分演算を複数の方向について行うことにより抽出するのが好ましい。 本発明の第 6 7の態様によれば、 第 5 5、 5 8、 5 9のいずれかの態様の画像 処理装置において、 撮影画像の輝度レベルが所定の明るさ以上か否かを判定する 輝度レベル判定部を備え、 補正部は、 輝度レベルが所定の明るさ以上でかつ平坦 部領域の領域に対して、 補正するのが好ましい。
本発明の第 6 8の態様によれば、 第 5 4の態様の画像処理装置において、 撮像 素子により撮影された基準画像を取得する基準画像取得部と、 基準画像の欠陥情 報を作成する基準画像欠陥情報作成部とをさらに備え、 欠陥情報作成部は、 基準 画像の欠陥情報による領域情報と平坦部領域の領域情報とを合わせて用いて平坦 部領域の欠陥情報を作成するのが好ましい。
本発明の第 6 9の態様によれば、 第 6 8の態様の画像処理装置において、 平坦 部抽出部は、 平坦部領域として抽出されない領域であっても、 基準画像の欠陥情 報が示す欠陥領域である場合、 該欠陥領域を平坦部領域として抽出するのが好ま しい。
本発明の第 7 0の態様によれば、 第 6 8 ~ 6 9のいずれかの態様の画像処理装 置において、 欠陥情報作成部は、 基準画像の欠陥情報が示す欠陥領域と平坦部領 域の双方を満足する領域に対して、 欠陥情報を作成するのが好ましい。
本発明の第 7 1の態様によれば、 第 6 8の態様の画像処理装置において、 撮影 画像と基準画像の撮影時の光学的条件が異なるとき、 基準画像の欠陥情報を、 撮 影画像と同じ光学的条件において撮影された基準画像の欠陥情報と等価な欠陥情 報に変換する欠陥情報変換部をさらに備え、 補正部は、 変換された基準画像の欠 陥情報を用いるのが好ましい。
本発明の第 7 2の態様によれば、 第 6 9〜 7 0のいずれかの態様の画像処理装 置において、 撮影画像と基準画像の撮影時の光学的条件が異なるとき、 基準画像 の欠陥情報を、 撮影画像と同じ光学的条件において撮影された基準画像の欠陥情 報と等価な欠陥情報に変換する欠陥情報変換部をさらに備え、 平坦部抽出部およ び補正部は、 変換された基準画像の欠陥情報を用いるのが好ましい。
本発明の第 7 3の態様によれば、 第 7 1〜 7 2のいずれかの態様の画像処理装 置において、 補正部は、 欠陥情報変換部の欠陥情報変換誤差を考慮して、 基準画 像の欠陥情報が示す欠陥領域を、 少なくとも欠陥情報変換誤差分広く して用いる のが好ましい。
本発明の第 7 4の態様によれば、 第 5 4の態様の画像処理装置において、 画像 取得部は、 撮像素子により撮影された複数の撮影画像を取得し、 平坦部抽出部は、 複数の撮影画像において、 平坦部領域を抽出し、 欠陥情報作成部は、 抽出した複 数の画像の平坦部領域の画像を使用して、 複数の画像のいずれかの画像の平坦部 領域の欠陥情報を作成するのが好ましい。
本発明の第 7 5の態様によれば、 第 5 4の態様の画像処理装置において、 画像 取得部は、 撮像素子により撮影された複数の撮影画像を取得し、 平坦部抽出部は、 複数の撮影画像において、 平坦部領域を抽出し、 欠陥情報作成部は、 抽出した複 数の画像の平坦部領域の画像を使用して、 複数の画像の画像全体に対応する欠陥 情報を作成するのが好ましい。
本発明の第 7 6の態様によれば、 第 7 4、 7 5のいずれかの態様の画像処理装 置において、 平坦部領域の画像において、 着目画素の値と該着目画素を含む所定 範囲内の複数の画素の平均値とに基づいて、 平坦部領域の欠陥情報を作成するの が好ましい。
本発明の第 7 7の態様によれば、 第 7 6の態様の画像処理装置において、 欠陥 情報作成部は、 着目画素の値と該着目画素を含む所定範囲内の複数の画素の平均 値との相対比を算出する相対比算出部を備え、 算出した相対比に基づいて、 平坦 部領域の欠陥情報を作成するのが好ましい。 本発明の第 7 8の態様によれば、 第 6 9の態様の画像処理装置において、 平坦 部抽出部は、 基準画像の欠陥情報が示す欠陥領域について、 欠陥領域の周辺に所 定量以上のエツジ抽出された画素がある場合、 該欠陥領域を平坦部領域として抽 出しないのが好ましい。
本発明の第 7 9の態様によれば、 第 7 8の態様の画像処理装置において、 平坦 部抽出部は、 欠陥領域の画素周辺に一定領域の画素の中でエッジ抽出された画素 が過半数ある場合、 該欠陥領域の画素を平坦部領域の画素として抽出しないのが 好ましい。
本発明の第 8 0の態様によれば、 コンピュータ読み込み可能なコンピュータプ ログラム製品は、 上記のいずれかの態様の画像処理装置の機能をコンピュータに 実行させるための画像処理プログラムを有する。 図面の簡単な説明
図 1は、 交換レンズ方式の電子カメラの構成を示す図である。
図 2は、 電子カメラのブロック図とパーソナルコンピュータ (P C ) および周 辺装置を示す図である。
図 3は、 第 1の実施の形態における、 電子カメラ側の撮影手順について説明す る図である。
図 4は、 輝度面に対して局所的規格化処理を施した様子を示す図である。 図 5は、 透過率マップのヒストグラムを示す図である。
図 6は、 第 1の実施の形態における、 P Cで行う処理の流れを示すフローチヤ ートである。
図 7は、 第 2の実施の形態における、 電子カメラ側の撮影手順について説明す る図である。
図 8は、 瞳位置が変化するとゴミ影の位置が変化する様子を示す図である。 図 9は、 絞り値である F値が変化するとゴミ影の大きさが変化する様子を示す 図である。
図 1 0は、 各絞り値に対する一次元フィルタ係数を示す図である。
図 1 1は、 絞り値 F 1 6における透過率マップに変換するフィル夕を 2次元フ ィル夕で表した図である。
図 1 2は、 第 2の実施の形態における、 P Cで行う処理の流れを示すフローチ ャ一卜である。
図 1 3は、 中く らい程度のゴミについて、 F値変換により透過率が変換される 様子を示す図である。
図 1 4は、 第 3の実施の形態における、 電子カメラ側の撮影手順について説明 する図である。
図 1 5は、 第 3の実施の形態における、 P Cで行う処理のフローチャートを示 す図である。
図 1 6は、 エッジ抽出フィルタを示す図である。
図 1 7は、 第 4の実施の形態における、 P Cで行う処理のフローチャートを示 す図である。
図 1 8は、 プログラムを、 C D— R O Mなどの記録媒体やインターネッ トなど のデータ信号を通じて提供する様子を示す図である。
図 1 9は、 エッジマップの周辺同化処理の様子を示す図である。 発明を実施するための最良の形態
一第 1の実施の形態一
(電子カメラおよびパーソナルコンピュータの構成)
図 1は、 交換レンズ方式の一眼レフ電子スチルカメラ (以下、 電子カメラと言 う) の構成を示す図である。 電子カメラ 1は、 カメラ本体 2とマウント式交換レ ンズからなる可変光学系 3を有する。 可変光学系 3は、 内部にレンズ 4と絞り 5 を有する。 レンズ 4は複数の光学レンズ群から構成されるが、 図では代表して 1 枚のレンズで表し、 そのレンズ 4の位置を主瞳位置と言う (以下、 単に瞳位置と 言う) 。 可変光学系 3は、 ズームレンズであってもよい。 瞳位置は、 レンズ種や ズームレンズのズーム位置によって決まる値である。 焦点距離によって変わるこ ともある。
力メラ本体 2は、 シャッター 6、 光学フィルタ一やカバ一ガラスなどの光学部 品 7、 撮像素子 8を有する。 可変光学系 3は、 カメラ本体 2のマウント部 9に対 して着脱可能である。 また、 可変光学系 3は、 マウント部 9を介して、 瞳位置に 関する情報、 絞り値に関する情報等の光学的パラメータを電子カメラ 1の制御部 1 7 (図 2) に送信する。 絞り値は、 例えば F 2. 8〜F 22まで変化する。 符号 1 0は、 撮像素子 8前部の光学部品 7の表面に付着したゴミを示す。 可変 光学系 3の絞り値や瞳位置を変化させて、 撮影画像に写り込んだゴミ影の変化を 評価する実験を行った結果、 以下の 2つの事実が判った。
( 1 ) 絞り値によってゴミ影の大きさと光の透過率が変わる。
(2) レンズの瞳位置によってゴミ位置がずれる。
この 2つの実験事実から固定位置に付着したゴミであっても、 レンズの撮影条件 (絞り値と瞳位置) が変化する度にゴミの写り込み方が変化していることがわか る。 このような可変な光学系に対して、 ゴミの影響を除去する手法を以下に示す c 図 2は、 電子カメラ 1のブロック図と P C ひ、 °一ソナルコンピュータ) 3 1お よび周辺装置を示す図である。 P C 3 1は、 画像処理装置として機能し、 電子力 メラ 1から画像データを取得し後述するゴミの影響除去処理をする。
電子カメラ 1は、 可変光学系 3、 光学部品 7、 シャッター 6 (図 2では図示省 略) 、 撮像素子 8、 アナログ信号処理部 1 2、 A/D変換部 1 3、 タイミング制 御部 1 4、 画像処理部 1 5、 操作部 1 6、 制御部 1 7、 メモリ 1 8、 圧縮/伸長 部 1 9、 表示画像生成部 20、 モニタ 2 1、 メモリカード用インタフェース部 2 2、 外部インタフェース部 23を備える。
撮像素子 8は、 可変光学系 3を通して被写体を撮像し、 撮像された被写体像に 対応する画像信号 (撮像信号) を出力する。 撮像素子 8は、 複数の画素から構成 される矩形形状の撮像領域を有し、 各画素に蓄積された電荷に対応するアナログ 信号である画像信号を、 画素単位で順次、 アナログ信号処理部 1 2に出力する。 撮像素子 8は、 例えば単板式カラ一 C CDなどで構成される。 アナログ信号処理 部 1 2は、 内部に CD S (相関 2重サンプリング) 回路や、 AGC (オートゲイ ンコントロール) 回路などを有し、 入力された画像信号に対して所定のアナログ 処理を行う。 A/D変換部 1 3は、 アナログ信号処理部 1 2で処理されたアナ口 グ信号をデジタル信号に変換する。 タイミング制御部 14は、 制御部 1 7により 制御され、 撮像素子 8、 アナログ信号処理部 1 2、 AZD変換部 1 3、 画像処理 部 1 5の各動作のタイミングを制御する。
メモリカード用インタフェース部 2 2は、 メモリカード (カード状のリムーバ ブルメモリ) 3 0 とのインタフェースをとる。 外部インタフェース部 2 3は、 所 定のケ一ブルや無線伝送路を介して P C 3 1等の外部装置とのィンタフェースを とる。 操作部 1 6は、 レリーズボタンやモード切り換え用の選択ボタン等に相当 する。 モニタ 2 1は、 各種メニューを表示したり、 撮像素子 8で撮像した被写体 像やメモリカードに格納された画像データに基づく再生画像を表示したりする。 操作部 1 6の出力は制御部 1 7に接続され、 モニタ 2 1には表示画像生成部 2 0 の出力が接続される。 画像処理部 1 5は、 例えば、 画像処理専用の 1チップ ' マ ィクロプロセッサで構成される。
AZD変換部 1 3、 画像処理部 1 5、 制御部 1 7、 メモリ 1 8、 圧縮/伸長部 1 9、 表示画像生成部 2 0、 メモリカード用インタフェース部 2 2、 外部インタ フェース部 2 3は、 バス 2 4を介して相互に接続されている。
P C 3 1には、 モニタ 3 2やプリンタ 3 3等が接続されており、 CD— ROM 3 4に記録されたアプリケ一ションプログラムが予めィンストールされている。 また、 P C 3 1は、 不図示の C PU、 メモリ、 ハードディスクの他に、 メモリ力 —ド 3 0とのインタフェースをとるメモリカード用インタフェース部 (不図示) や所定のケーブルや無線伝送路を介して電子カメラ 1等の外部装置とのィン夕フ エースをとる外部インタフェース部 (不図示) を備える。
図 1のような構成の電子カメラ 1において、 操作部 1 6を介し、 操作者によつ て撮影モードが選択されてレリーズポタンが押されると、 制御部 1 7は、 夕イミ ング制御部 1 4を介して、 撮像素子 8、 アナログ信号処理部 1 2、 A/D変換部 1 3に対するタイミング制御を行う。 撮像素子 8は、 可変光学系 3により撮像領 域に結像された光学像に対応する画像信号を生成する。 その画像信号は、 アナ口 グ信号処理部 1 2で所定のアナログ信号処理が行われ、 アナログ処理後画像信号 として A/D変換部 1 3へ出力される。 A/D変換部 1 3では、 アナログ処理後 の画像信号をディジタル化し、 画像データとして、 画像処理部 1 5に供給する。 本実施の形態の電子カメラ 1では、 撮像素子 8において、 単板式カラー撮像素 子の最も代表的な R (赤) 、 G (緑) 、 B (青) のカラーフィルタがべィァ配列 されている場合を例にとり、 画像処理部 1 5に供給される画像データは R G B表 色系で示されるものとする。 画像データを構成する各々の画素には、 R G Bの何 れか 1つの色成分の色情報が存在する。 ここで、 撮像素子 8を構成する 1つの光 電変換素子を画素と言うが、 この画素に対応した画像データの 1単位も画素と言 う。 また、 画像も複数の画素から構成される概念である。
画像処理部 1 5は、 このような画像データに対し、 補間、 階調変換や輪郭強調 などの画像処理を行う。 このような画像処理が完了した画像データは、 必要に応 じて、 圧縮/伸長部 1 9で所定の圧縮処理が施され、 メモリカード用イン夕フエ ース部 2 2を介してメモリカード 3 0に記録される。 画像処理が完了した画像デ 一夕は、 圧縮処理を施さずにメ.モリカード 3 0に記録してもよい。
画像処理が完了した画像データは、 メモリカード 3 0を介して P C 3 1に提供 される。 外部ィンタ一フェース 2 3および所定のケーブルや無線伝送路を介して P C 3 1に提供してもよい。 画像処理が完了した画像データは、 補間処理が完了 し、 各画素には R G Bのすベての色成分の色情報が存在するものとする。
(ゴミの影響除去処理)
次に、 撮影した各画像データにおいて、 ゴミの影響を除去する処理について説 明する。 第 1の実施の形態では、 各光学的撮影条件毎にゴミ情報を得るための基 準画像を、 毎回、 電子カメラ 1で撮影する場合を想定する。 ただし、 基準画像は、 完全に一様な白基準データではなく、 青空、 一様に近い壁面、 グレーチャート、 無地の紙面などを撮影して代用するものとする。 この場合の基準データは、 レン ズの周辺減光や被写体のグラデ一ション、 撮像素子のシエーディングなどが含ま れていてもよい。 基準データは、 実際に身近な場所で容易に撮影できる状況で取 得できる場合を想定しており、 厳密な一様性は要求せず、 画像処理側のアルゴリ ズムで一様なものに変換する。
(電子カメラ側の動作)
図 3は、 第 1の実施の形態における、 電子カメラ 1側の撮影手順について説明 する図である。 1 ) 瞳位置 P 1絞り値 A 1で通常撮影 1 0 1を行い、 補正対象画 像データ 1を出力する。 2 ) 引き続き、 同じ瞳位置 P 1絞り値 A 1で一様面撮影 1 0 2を行い、 基準画像データ 1を出力する。 3 ) 次に、 異なる瞳位置 P 2、 絞 り値 A 2で通常撮影 1 0 3を行い、 補正対象画像データ 2を出力する。 4 ) 引き 続き、 通常撮影 1 0 3と同じ瞳位置 P 2絞り値 A 2で一様面撮影 1 0 4を行い、 基準画像デ一夕 2を出力する。 すなわち、 まず、 電子カメラ 1を撮影したい被写 体に向けた撮影を行い (通常撮影) 、 直後に電子カメラ 1を空や壁面に向けて一 様な面の撮影を行う (一様面撮影) 。 あるいは、 カメラは通常撮影のときと同じ 状態で、 レンズの前数 c m〜 1 0 c m程度のところに白い紙あるいは一様な色の 紙をかざすだけでもよい。 このようにして、 通常撮影と一様面撮影とを一対とし た撮影動作を行う。 ここで、 画像データを出力するとは、 メモリカード 3 0に記 録したり、 外部ィン夕一フェース 2 3を介して P C 3 1に直接出力したりするこ とを言う。
電子カメラではゴミの状態が変化する可能性があるので、 本実施の形態では、 一様面の撮影を補正対象画像の撮影の直後の同一光学的条件のままで行っている。 しかし、 実際にはこれほど厳密に時間的に直後でなくてもよい。 光学的に瞳位置 と絞り値について同じ撮影条件が再現できる場合は、 一日程度経って撮影した一 様面データでも、 かなりのゴミは大きく変化せずに使えることが多い。 したがつ て、 一様面データは、 同一の光学的条件を再現し、 通常撮影時のゴミ情報を十分 反映できる程度の時間差内に撮影したものであれば、 代用することは可能である。 なお、 通常撮影と一様面撮影の順序を入れ換えて、 先に一様面撮影をし引き続き 通常撮影をするようにしてもよい。
(画像処理装置側動作)
電子カメラ 1で撮影された画像デ一夕は、 所定の画像処理がなされた後 P C 3 1に提供される。 P C 3 1では、 一対の補正対象画像データと基準画像データと を使用して、 ゴミの影響除去処理を行う。 P C 3 1は、 ゴミの影響除去処理を行 う画像処理装置と言ってもよい。 基準画像データ、 補正対象画像データともにベ ィャ配列の R G B補間処理は済んだ状態で P C 3 1に入力される。 以下で説明す る基準画像データと補正対象画像データは、 同一の瞳位置と絞り値の光学的条件 下で撮影されたデータである。 図 6は、 P C 3 1で行う処理の流れを示すフロー チヤ一トである。
<基準画像データに対する処理 > 1 ) 輝度面の生成
図 6のステップ S 1 1では、 輝度面の生成を行う。 基準画像データの各画素 [i, j]について、 次の式 ( 1 ) を使用して、 R GB信号から輝度信号を生成する。 [i, j]は画素の位置を示す。
Y[i, j] = (R[i, j]+2*G[i, j]+B[i, j])/4 ... (1)
R G B各面で個別に解析することも可能であるが、 基本的にゴミ影の影響は信号 の減衰を生じるのみで、 色成分に関係ない。 従って、 ここでは全ての情報を有効 に使いつつ、 ランダムノイズの影響を低減させることが可能な輝度成分への変換 を行っている。 また、 そうすることにより、 RGB 3面から輝度成分単面だけの 解析で済み、 高速化が図れる。 輝度成分生成比率は上記に限らず、 R:G:B=0.3:0. 6:0.1等であってもよい。
2) 透過率マップの生成 (ゲインマップ抽出)
ステップ S 1 2では、 以下の処理からなる透過率マップの生成 (ゲインマップ 抽出) を行う。
2— 1 ) 局所的規格化処理 (ゲイン抽出処理)
基準画像データは、 上述したように必ずしも完全に一様なものでない。 従って、 生成した輝度面も完全に一様ではない。 このような輝度面に対して、 局所的な画 素値の規格化 (正規化) 処理を行って、 各画素の透過率信号 T[i, j]を、 次式
(2) を使用して算出する。 すなわち、 着目画素 [i, j]の値とこの画素を含む局所 範囲の画素平均値との相対比を各々の画素についてとる。 これにより一様面デー 夕に含まれるグラデ一ション、 シエーディング等の不均一性はアルゴリズム的に 問題なく排除され、 肝心のゴミ影による透過率の低下のみを抽出することができ る。 このようにして求めた画像全面の透過率を透過率マップ (ゲインマップ) と 言う。 透過率マップは、 基準画像の欠陥情報を示すものである。 なお、 画素値と は、 各画素における色成分の色信号 (色情報) や輝度信号 (輝度情報) の値であ る。 例えば、 1バイ トで表される場合、 0〜2 5 5の値を取る。 (2)
∑ ∑ Y[i + m, j + n] |/(2a + l)(2b + 1)
ここで、 局所平均を取る範7 .囲(2a+l)x(2b+l)画素は、 ゴミ径より大きめにとる。 理想的には面積的にゴミ影よりも 3倍程度以上の広さを取れば、 正確な透過率デー 夕が得れらる。 aは着目画素 [i, j]を中心に左右に広がる画素数、 bは着目画素 [i, j]を中心に上下に広がる画素数を示す。 例えば、 撮像素子 8の画素ピッチを 1 2 umとし、 撮像面とゴミ付着面との距離を 1. 5mmとすると、 絞り値 F 22 のとき、 巨大なゴミの直径は 1 5画素程度、 絞り値 F 4のとき、 巨大なゴミの直 径は 40画素程度となる。 従って、 a = 40、 b = 40とし、 局所平均を取る範 囲は 8 1 X 8 1画素範囲のように設定するとよい。 これは、 一例であり、 他の画 素数による画素範囲であってもよい。
ゴミ影は絞り値に大きく依存し、 小さなゴミは絞りを開けるとすぐに消滅する 力 大きなゴミは絞りを開放側にしても影は薄くなりながらも大きな面積を占め ることがある。 撮像素子の画素ピッチ幅にもよるが、 開放側で数十画素に渡って 丸いゴミ影ができる場合があり、 そのときは非常に広い範囲で局所平均をとる必 要性が出る。 そのため、 処理を高速化する場合は、 間引いた画素で代表して処理 しても問題ない。
この(2a+l)x(2b+l)画素の範囲で相対比を演算する処理を、 局所的規格化処理 (ゲイン抽出処理) と呼ぶ。 (2a+l)x(2b+l)画素の範囲で相対化演算するフィルタ のことを、 ゲイン抽出力一ネルと呼んでもよい。 図 4は、 輝度面に対して局所的 規格化処理を施した様子を示す図である。 図 4 (a) は、 輝度面内のある横方向 に並ぶ画素の輝度信号を示す図である。 符号 4 1と符号 42は、 ゴミにより輝度 信号が低下していることを示す。 図 4 (b) は、 図 4 (a) の輝度信号に対して、 上述した局所的規格化処理を施して得られた図である。 すなわち、 局所的な範囲 で画素値の規格化処理を行ったものである。 符号 43、 44は、 図 4 (a) の符 号 41、 42に対応し、 ゴミが存在する個所の透過率を示す。 このように、 一様 面データに含まれるグラデーション、 シエーディング等の不均一性は排除され、 ゴミ影による透過率の低下のみを抽出することができる。 これにより、 ゴミの位 置と透過率の程度が同時に分かる。
2— 2) 透過率マップの口一パス処理
透過率マップのローパス処理は選択可能としてもよいが、 大部分で効果がある のでこの処理を入れておくのが好ましい。 透過率信号 T[i, j]には、 輝度信号の量 子論的揺らぎに伴うランダムノイズが含まれているため、 透過率が 1に近いレべ ルで微妙にゴミ影の影響が残っている領域は、 そのランダム性のため以下に続く 2 -4) の閾値判定を行うと、 斑にゴミ影を抽出することがある。 それを防ぐた め、 次式 (3) によるローパスフィルタによりゴミ影の集団化を行うとやや見栄 えがよくなる。
T[i, j] = (4*T[i, j]
+ 2* (T[i-1, j]+T[i + l, j]+T[i, j-l]+T[i, j + 1])
+ l*(T[i-l, j-l]+T[i-l, j + l]+T[i + l, j-l]+T[i + l, j + l])]/16 ... (3) 2— 3) 透過率マップの統計解析
前述の局所的規格化処理により得られた透過率マップの画像全面について、 平 均値 Mを次式 (4) により求め、 標準偏差 σを次式 (5) により求める統計解析 を行う。 なお、 Nx,Nyは、 X方向、 y方向の総画素数を表す。
1
= ∑T[i,j] (4)
NxNy J
2
び = ∑(T[i ]-M) (5)
NXNy i 2 -4) 閾値判定
基本的に透過率マップに占めるゴミ信号の面積的な割合は非常に小さく、 2— 3) で統計解析した結果は、 透過率信号の量子論的揺らぎに伴うランダムノイズ
(ショッ トノイズ) を評価していることになる。 図 4における符号 45部分を拡 大した符号 46は、 この細かいランダムノイズがある様子を示している。 透過率 マップのヒストグラムをとると、 平均値 M (Mはほぼ 1に近い値) を中心に標準 偏差 σの正規分布した形となる。 図 5は、 透過率マップのヒストグラムを示す図 である。 この揺らぎの範囲はゴミ影による透過率の変化を受けていないと考えら れるため、 強制的に透過率を 1に設定してよい。 すなわち、 次の条件 (6)
(7) により閾値判定を行う。
if |T[i, j]-M|≤3a then T[i, j]=l ... (6)
else T[i, j]=T[i, j] ... (7)
正規分布するランダムデータは、 ± 3 σの範囲を集めれば 99. 7 %になるの で、 ほぼ正確にランダムノイズの影響を除外することができる。 ± 3 σから外れ る透過率は、 ほとんど統計的な誤差では説明できない異常な信号であり、 ゴミ影 による透過率の低下による現象を表していると考えられる。 この異常部分は、 ゴ ミ影の場合、 通常 1より小さな値となる。
'しかし、 割合は少ないが 1より大きな値を示すものもある。 これはゴミ影の影 響ではなく、 オプティカルローパスフィルタ等の脈理 (屈折率の不均一) で生じ た欠陥が入射光を強めあったり弱めあったりする干渉縞を起こした場合などに見 られる現象である。 これにより、 光路途中に含まれるゴミ以外の光学部材の欠陥 検出にもこの方法は利用することができる。 また、 撮像素子内の画素欠陥の影響 もこの手法で判別可能である。 ゴミは、 撮像素子 8に近い方がボケずに残りやす いが、 撮影レンズ上のゴミが相当ボケて写り込んだ場合でも精度よく判別可能で ある。
なお、 ゴミ影の影響のみを取り除く場合は、 以下の条件 (8) (9) ( 1 0) により閾値判定するとよい。
if |T[i, j]-M|≤3a then T[i, j]=l ... (8) else if T [i, j] >1 T[i, j]=l . (9)
else T[i,〗]=T[i, j] . (10)
判定に使う平均値 Mは常に .近い値をとるため、 に置き換えてもよい。
このようにして、 欠陥の画素位置を表すマップ情報 (T= lか否かで判断) と、 欠陥の度合いを表す透過率情報の 2種類の欠陥情報が同時に得られることになる。 なお、 上述の透過率マツプは局所的な相対ゲインを表していることからゲインマ ップと呼んでもよい。
通常、 ゴミ等の欠陥検出は、 エッジ検出用の微分フィルタで行う。 しかし、 光 路途中のゴミを対象とする場合、 光学的にぼけるため非常に周辺とのコントラス 卜が低いゴミ影となって現れる。 このような場合、 微分フィルタでは非常に感度 が悪くほとんど検知できないことが多い。 しかし、 上記説明したように、 透過率 の統計的性質を用いた判定法を用いると、 非常に高感度のゴミ検出が可能となり、 目的の光路途中の異物による影響補正が可能となる。
<補正対象画像に対する処理 >
3) ゲイン補正
ステップ S 1 3では、 ゲイン補正を行う。 上記のように求めた透過率マップを 使用して補正対象画像データの補正を行う。 補正対象画像データの R, G, B値 各々に対して、 式 (1 1) (1 2) ( 1 3 ) で示すように、 透過率信号の逆数を 掛け算してゲイン補正を行う。
[i, j]=R[i. j]/T[i, j] ... (11)
G[i, j]=G[i. j]/T[i, j] ... (12)
B[i, j]=B[i. j]/T[i, j] ... (13)
これにより、 ゴミ影による輝度の低下をきれいに補正できる。 加えて、 補正の 必要性のない所は透過率マップが閾値判定されているため、 余計な補正を行わな いようにできる。 すなわち、 ゴミのない箇所の透過率 Tにはランダムノイズの影 響が取り除かれているので、 R G B信号のノィズが増幅される心配がない。
以上のように、 第 1の実施の形態では、 ゴミ対策用の特別な機構を備えていな い普通の電子力メラでも、 任意の時刻に撮影した画像を適切に補正することがで きる。 基準画像の一様面の撮影には厳密な均一性が要求しないので、 比較的手軽 に実現することが可能となる。 更に、 従来のゴミ検出法に比べ、 格段に感度のよ い検出及び補正が可能となる。
一第 2の実施の形態一
第 2の実施の形態では、 ゴミ情報を得るための基準画像を一度だけ撮影し、 光 学的撮影条件の異なる複数の画像に対してもこの基準画像を利用してゴミ除去す る方法を示す。 電子カメラ 1および画像処理装置としての P C 3 1の構成は、 第 1の実施の形態と同様であるので、 その説明を省略する。
(電子カメラ側の動作)
図 7は、 第 2の実施の形態における、 電子カメラ 1側の撮影手順について説明 する図である。 1 ) 瞳位置 P 0、 絞り値 A 0で一様面撮影 2 0 1を行い、 基準画 像データ 0を出力する。 2 ) 瞳位置 P l、 絞り値 A 1で通常撮影 2 0 2を行い、 補正対象画像データ 1を出力する。 3 ) 瞳位置 P 2、 絞り値 A 2で通常撮影 2 0 3を行い、 補正対象画像データ 2を出力する。 4 ) 瞳位置 P 3、 絞り値 A 3で通 常撮影 2 0 4を行い、 補正対象画像データ 3を出力する。 すなわち、 まず、 電子 カメラ 1を空や壁面に向けて一様な面の撮影を行い (一様面撮影) 、 その後、 電 子カメラ 1を撮影したい被写体に向けて随時撮影する (通常撮影) 。
ここで、 基準画像の絞り値 A Oは、 可変光学系 3に用意された可変な範囲の中 で最も絞り込んだ状態で撮影するものとする。 最も絞り込んだ絞り値は、 標準的 なレンズでは例えば F 2 2程度である。 一方、 補正対象画像の絞り値は、 基準画 像と同じか、 それより開放側であるものとする。
一様面撮影は、 ゴミの付着状態が変化しないかぎり省くことができる。 一様面 撮影の挿入回数が多いに越したことはないが、 通常は一日一回程度のデ一夕でも あれば、 有効なゴミデータになりうる。 一様面撮影を行うか否かの判断は、 撮影 者に委ねられる。 しかし、 先に行った一様面撮影があまりにも時間的に離れてい る場合は、 その一様面撮影による基準データは信頼性に欠ける場合も生じる。 従 つて、 通常撮影から所定時間内の一様面撮影の基準画像データのみを使用するよ うにしてもよい。 また、 必ずしも一様面撮影を先に行う必要はない。 後に行った 一様面撮影の基準画像データを使用してもよい。 一様面撮影が、 通常撮影の前後 に複数ある場合は、 時間的に最も近い一様面撮影の基準画像データを使用するよ うにしてもよい。 あるいは、 新規付着ゴミの可能性を気にするのであれば、 撮影 前後の 2番目に近いものまでの中からどちらかを選択するようにしてもよい。 (画像処理装置側動作)
第 2の実施の形態において、 画像処理装置である P C 3 1に入力される基準画 像データと補正対象画像データには、 瞳位置と絞り値が識別できるデータが埋め 込まれているものとする。 瞳位置データは、 撮影デ一夕に埋め込まれたレンズの 種類、 ズーム位置、 焦点位置の記録データから換算テーブルを使って算出しても よい。 図 1 2は、 P C 3 1で行う処理の流れを示すフローチャートである。 <基準画像に対する処理 >
1 ) 輝度面生成、 透過率マップの生成
ステップ S 2 1の輝度面生成、 ステップ S 2 2の透過率マップの生成は、 第 1 の実施の形態と同様に行う。
2 ) 透過率マップの瞳位置変換
ステップ S 2 3では、 透過率マップの瞳位置変換を行う。 基準画像と補正対処 画像の瞳位置が相互に異なっているとき、 基準画像のゴミ位置を、 補正対象画像 の瞳位置から見たときに出現すると予測されるゴミ位置に瞳位置変換する。 図 8 は、 瞳位置が変化するとゴミ影の位置が変化する様子を示す図である。 図 8
( a ) は、 瞳位置とゴミと撮像素子 8の撮像面との関係を示す図である。 図 8
( b ) は、 瞳位置の変化に伴い撮像面上でゴミ影が移動している様子を示す図で ある。
図 8から明らかなように、 瞳位置が異なると画像内に写り込むゴミの位置は、 光軸 5 1すなわち画像の中心から動径方向にずれる。 ここで、 画像内の光軸 5 1 から距離 rの位置にあるゴミが、 動径方向にずれる量 Δ Γを見積もる。 基準画像の 瞳位置を Ρ 0、 補正対象画像の瞳位置を P 0 '、 撮像面から距離 1の位置にゴミが付着 しているとすると、 Δ Γは、 次式 ( 1 4 ) により計算することができる。 ρ -ρ'
Δτ = (14)
ただし、 距離 1は光学部品の厚みを空気中の光路長に換算した値である。
基準画像の透過率マップ T[i, j]を、 極座標 [r, Θ]上で次式 ( 1 5) により [Γ', S]に変位させ、 座標 [i, j]上の透過率マップ T' [i, j]に変換する。
Figure imgf000027_0001
ずれ量 ΔΓは、 光軸 5 1から距離が遠くになるに従い大きくなる。 実際の画像の周 辺部では、 瞳位置の値によっては数十画素に及ぶこともある。
3 ) 透過率マップの F値変換
ステップ S 24では、 透過率マップの F値変換を行う。 基準画像と補正対処画 像の絞り値が相互に異なっているとき、 基準画像のゴミ径と透過率を、 補正対象 画像のより開放側絞り値でのゴミ径と透過率に F値変換する。 図 9は、 絞り値で ある F値が変化するとゴミ影の大きさが変化する様子を示す図である。 図 9 (a) は、 F値が大きい場合、 図 9 (b) は、 F値が小さい場合を示す。 図 9か ら明らかなように、 F値の定義式 (F=焦点距離 Zレンズの有効口径) を、 相似 関係にある撮像面からゴミ付着位置までの距離 1とゴミ広がり Γに当てはめると次 式 ( 1 6) が成立する。 Γ = (16)
F
1を撮像素子の画素ピッチ a [mmZp i X e 1 ] で割り算すると、 ゴミ径は 画素数で表記できる。 このようにして、 絞りが F値のとき、 点像のゴミは幅 Γの 大きさに広がることが予測できる。
—方、 その点像の分布関数は、 絞り値内で開口したレンズの各入射角度から均 等に点像ゴミに光を当ててゴミ影を広げていると考えられるので、 完全に一様な 広がりを持つ関数と想定してよい。 したがって、 F値変換には、 フィルタ幅 Γ画 素で表される一様なローパスフィルタ処理を掛けることによって、 ゴミ径と透過 率を正確に予測する F値変換が可能となる。 ローパスフィルタは直径が Γの円形 状の非分離型フィルタが普通と考えられるが、 処理の高速化を念頭に、 縦 Γ、 横 Γの正方状の分離型フィルタでも問題ない。
例えば、 1 = 0. 5 mm, a = 5 m/ p i x e 1の場合に F 22の透過率マ ップを、 F 1 6、 F l l、 F 8、 F 5. 6、 F 4に変換する場合に当てはめると、 正方状の分離型フィルタの一次元フィル夕係数は図 1 0ような形式に表される。 図 1 0の一次元フィルタ係数を使用して、 縦横それぞれフィルタリングをする。 なお、 絞り値 F 1 6の一次元フィルタ係数は、 両端に 0. 5の係数を持ち、 7つ の係数を有する。 これは、 偶数幅の広がりを着目画素を中心に左右上下に均等に 広がる奇数幅の範囲でフィルタリングをするためである。 図 1 1は、 絞り値 F 1 6フィルタを 2次元フィル夕で表した図である。
上記の変換処理を行うことにより、 基準画像の透過率マップは、 補正対象画像 の瞳位置、 F値の状態の透過率マップに変換される。 すなわち、 基準画像の透過 率マツプは、 補正対象画像が撮影される光学的条件下で生成される透過率マツプ と等価な透過率マップが生成される。
<補正対象画像に対する処理 > 3) ゲイン補正
ステップ S 2 5では、 上記変換処理した透過率マップを使用してゲイン補正を 行う。 第 1の実施の形態と同様に、 補正対象画像データの R, G, B値各々に対 して、 式 ( 1 7) (1 8) (1 9) で示すように、 瞳位置、 F値変換後の透過率 信号の逆数を掛け算して、 ゲイン補正を行う。
R[i, j]=R[i. j]/T' [i, j] ... (17)
G[i, j]=G[i. j]/T' [i, j] ... (18)
B[i, j]=B[i. j]/T' [i, j] ... (19)
図 1 3は、 中く らい程度のゴミについて、 F値変換により透過率が変換される 様子を示す図である。 横軸は画素位置を示し、 縦軸は透過率を示す。
このようにして、 可変な光学系において、 最小絞り値で基準画像を一枚撮影す るだけで、 他の光学的条件における基準画像の撮影を不要とすることができる。 すなわち、 1枚の基準画像と相互にゴミデータを変換することにより、 有効な補 正を達成することができる。 したが.つて、 電子カメラのユーザーの負担は大幅に 低減される。 また、 第 1の実施の形態と同様に、 一様画像撮影の厳密性は要求せ ずに、 極めて高感度なゴミ検出性能も維持することが可能である。
一第 3の実施の形態一
第 3の実施の形態では、 一様面の基準画像が全くない状態で、 補正対象画像内 でゴミ検出し、 除去する方法を示す。 基本的原理は、 補正対象画像中の平坦部 (画像が部分的に一様な領域) を見つければ、 第 1の実施の基準画像に対して行 つていたゴミの透過率マップ生成処理 (ゲインマップ抽出) が、 そのまま同じよ うに適用できる。 電子カメラ 1および画像処理装置としての P C 3 1の構成は、 第 1の実施の形態と同様であるので、 その説明を省略する。
(電子カメラ側の動作)
図 14は、 第 3の実施の形態における、 電子カメラ 1側の撮影手順について説 明する図である。 1) 瞳位置 P l、 絞り値 A 1で通常撮影 30 1を行い、 補正対 象画像データ 1を出力する。 2) 瞳位置 P 2、 絞り値 A 2で通常撮影 30 2を行 レ 補正対象画像データ 2を出力する。 3) 瞳位置 P 3、 絞り値 A 3で通常撮影 30 3を行い、 補正対象画像データ 3を出力する。 4) 瞳位置 P 4、 絞り値 A4 で通常撮影 3 0 4を行い、 補正対象画像データ 3を出力する。 すなわち、 第 3の 実施の形態では、 第 1の実施の形態や第 2の実施の形態で行っていた、 一様面撮 影を行わない。
(画像処理装置側動作)
<補正対象画像に対する処理 >
図 1 5は、 画像処理装置である P C 3 1で行う処理のフローチヤ一トを示す図 である。 ステップ S 3 1では、 輝度面の生成を行う。 ステップ S 3 2では、 輝度 面のガンマ補正、 エッジ抽出フィルタ処理、 閾値判定により、 エッジマップの生 成を行う。 ステップ S 3 3では、 エッジマップに暗黒部を追加処理をする。 ステ ップ S 3 4では、 エッジマップの拡大処理をする。 ステップ S 3 5では、 平坦マ ップへの変換を行う。 ステップ S 3 6では、 自己ゲイン抽出処理を行う。 ステツ プ S 3 7では、 自己ゲイン補正処理を行う。 以下、 各ステップの詳細について説 明する。
1 ) 輝度面の生成 (ステップ S 3 1 )
補正対象画像デ一夕の各画素 [i, j ]について、 R G B信号を輝度信号 Yへの変換 を行う。 変換方法は、 第 1の実施の形態の基準画像に対して行った方法と同様で ある。
2 ) エツジマツプの生成 (ステップ S 3 2 )
エツジ抽出フィル夕を輝度面に掛けて、 補正対象画像内の平坦部とエツジ部の 分離を行う。 光路途中に含まれるゴミの画像内への写り込みは非常にコントラス トの低いゴミ影となって現れるため、 従来技術のようなエツジ抽出フィルタで検 出されない場合が多い。 この事実を逆に利用すると、 エッジ抽出フィルタで抽出 されるエッジ部は、 ゴミではなく基本的に画像内のエッジであると多くの箇所で 仮定できる。 この画像内のエツジとゴミとの区別を更によくするために初めに輝 度面に対する階調補正処理を行う。
2— 1 ) 輝度面のガンマ補正
補正対象画像が線形階調のまま入力されて、 上述の輝度面が生成されているも のとする。 このとき、 入力信号を Y (0≤Y≤Ymax)、 出力信号を Υ' (0≤Υ'≤Y' max)と し、 例えば次式 ( 2 0 ) のような階調変換を施す。 なお、 ァ =0. 4, 0. 5, 0. 6等であ る。
Figure imgf000031_0001
この変換は、 低輝度側の中間調のコントラストを上げ、 高輝度側のコントラス 卜を下げる処理である。 すなわち、 ゴミ影は喑いところでは目立ちにくく明るい ところで目立っため、 ゴミ影のコントラストはこの変換によって下がり、 一方の 通常の画像エッジは主に中間調に分布するため相対的にコントラストを上げてい る。 したがって、 ゴミ影と通常エッジのコントラストの分離度が良くなる。 さら に Y'の量子ゆらぎに起因するショッ トノイズを全階調にわたって均一に极ぇるよ うに変換するには、 誤差伝播則から考えてァ =0.5にとるのが最もよい。 なお、 上 記式 (2 0 ) はべき乗関数になっている。 また、 r=0.5は、 べき乗関数が平方根 関数となっている。
入力画像に最終出力用のガンマ補正処理が掛かっているとき、 上記変換に近い ガンマ補正処理がなされている場合はこの処理を飛ばしてもよい。 また、 逆ガン マ補正を行って線形階調に戻してから、 上記処理を行えば、 より分離機能が得ら れる。
2— 2) エッジ抽出フィルタ処理
次に、 ガンマ補正のなされた輝度面に対して、 図 1 6および次式 (2 1) によ るエッジ抽出フィルタを掛ける。 各画素のエッジ抽出成分を YH[i, j]とする。
YH[i, j] = l|Y' [i- 1, j]-Y' [i, j] I + IY' [i+1,〗]— Y' [i, j] I
+ ir [i, j-i]-r [i, j] I + IY' u, j+i]- r [i, j] I
+ ir [i-i, j-i]-r [i, j] I + IY' [i+i, j+i]-r [ , j]
+ |Y' [i— 1, j + 1]- Y' [i, j] I + IY' [i + 1, j- 1]- Y' [ , j]
+ |Y' [i-2, j - 1] - Y' [i, j] I + IY' [i + 2, j + l]-Y' [ , j]
+ |Y' [i-2, j + 1] - Y' [i, j] I + IY' [i + 2, j - 1] - Y' [ , j] + IY' [i-1, j-2]-Y' [i, j] I + IY' [i + l, j+2]-Y' [i, j] I
+ ir [i-i, j+2]-r [i, j] l + lr [i+i, j-2]-r [i, j] I
+ |r [i-3, j]-y [i, j] | + ir [i+3, j] - r [i, j] I
+ ir [i, j-3]-r [i, j] i+ir [i,〗+3] - Y' [i, j] ι
+ |Y' [i-3, j-3]-Y' [i, j] | + |Y' [i+3, j+3]-Y' [i, j] |
+ |Y' [i-3, j + 3]-Y' [i, j] I + IY' [i+3, j-3]-Y' [i, j] ||/24 ... (21) ここで、 上記フィルタは、 画像本来のエッジ部ができるだけ全て抽出されるよ うに、 複数の相関距離をもつ絶対値差分をあらゆる方向から漏れなく集めるよう に設計されている。
2— 3 ) 閾値判定
次式 ( 2 2 ) ( 2 3 ) により、 エッジ抽出成分 YHを閾値判定して、 エッジ部か 平坦部かの分類を行い、 結果をエッジマップ EDGE[i, j]に出力する。 閾値 Thlは 25 5階調に対して 1〜5程度の値をとる。 エッジ部の上に存在するゴミ影は、 基本的に ゴミ影がエッジ部の振動する信号に埋もれてしまって目立たないためゴミ除去の 不要な領域である。
if YH[i, j] >T l EDGE[i, j]=l (エッジ部) ... (22)
else EDGEti, j]=0 (平坦部) ... (23)
上記のように、 2— 1 ) で階調変換を行って階調間の重み付けを変え、 2— 3) で全階調にわたって一定の閾値 Thlで閾値判定を行っている。 しかし、 ほぼ同 等な効果は、 線形階調のままでエッジ抽出を行い、 輝度レベルに応じた閾値を設 定して、 閾値判定を行うようにしても可能である。
3) エッジマップに喑黒部を追加 (ステップ S 3 3)
エッジマップは、 ゲインマップ抽出してはいけない領域を表す。 エッジ領域の 他に、 ゲインマップ抽出するのが危険な領域が暗い領域 (喑黑部) である。 暗黒 部は、 S/Nが悪いため相対ゲインを抽出しても信頼性が低い。 更に暗黒部上に存在 するゴミ影はほとんど目立たないのでゴミ除去する必要性がない。 したがって、 暗い領域も、 次式 (24) によりエッジマップに追加する。 閾値 Th2は、 255線形階 調に対しておよそ 20以下の値に設定するものとする。 模式的にこの操作を 「EDGE '=EDGE+DARK」 と記述すると分かりやすい。 if Y[i, j]≤Th2 EDGE[i, j]=l ... (24)
4) エッジマップの拡大処理 (ステップ S 34)
第 1の実施の形態と同様に、 平坦部内で(2a+l)x(2b+l)画素の中心値と平均値の 相対比を比較して透過率マップを生成する。 従って、 事前にエッジ部がこのカー ネル内に入らないように、 次式 (2 5) により、 エッジ部の(2a+l)x(2b+l)画素拡 大処理を行う。 m=l, 2 a、 n=l, 2, .. · , bである。
if EDGE[i, j]=l EDGE [i ±m, j ±n] =1 ... (25)
5) 平坦マップへの変換 (ステップ S 3 5)
次式 ( 2 6 ) ( 27 ) により、 エッジマップ EDGE [i, j]を平坦マップ FLAT [i, j] に変換する。 ビッ ト反転によって達成される。 平坦マップが示す平坦領域は、 (2 a+l)x (2b+l)画素で構成されるゲインマツプ抽出カーネルが捕正対象画像内で自己 抽出してよい領域を表す。
if EDGEti, j]=0 FLAT [i, j] =1 (平坦部) ... (26)
else FLAT[i, j]=0 (エッジ部) ... (27)
6) 自己ゲイン抽出 (ステップ S 36)
第 1の実施の形態において基準画像データから透過率マップを生成した処理手 順を、 FLAT[i, j]=lの領域に対してのみ行う。
6 - 1 ) 局所的規格化処理 (ゲイン抽出処理)
FLAT [i, j]=lの領域の T[i, j]を (2a+l) x (2b+l)画素内の相対比から生成する。 FL AT[i, j]=0の領域は全て T[i, j]=lに設定する。
6— 2) 透過率マップの統計解析
FLAT[i, j]=lの領域内の T[i, j]を、 第 1の実施の形態と同様に統計解析して、 平 均値 mと標準偏差 σを算出する。
6— 3 ) 閾値判定
FLAT[i, j]=lの領域内の T[i, j]を、 第 1の実施の形態と同様に閾値判定して、 m ±3σの値をとるものは T[i, j]=lに設定する。
7 ) 自己ゲイン補正 (ステップ S 3 7 )
第 1の実施の形態と同様に、 補正対象画像の R, G, B値各々に対して自己抽出した 透過率信号 T[i, j]の逆数を掛け算して、 自'己ゲイン補正を行う。 このようにして、 一様面の基準画像データがなくても、 補正対象画像自身のゴ ミを自己抽出して補正することができる。 すなわち、 1つの撮影画像内で上記し たように平坦性が保証できる所定の条件を満たす領域を抽出する。 抽出した同一 の領域を基準画像としかつ補正対象画像とする。 また、 第 3の実施の形態では、 可変光学系の影響を全く加味する必要性がない。 特に、 膨大な数を占める小さな ゴミ影の除去に威力を発揮する。
一第 4の実施の形態一
第 4の実施の形態では、 第 2の実施の形態と同様に一枚だけ基準画像を撮影し、 ゴミ位置に関する情報を利用しながらも、 透過率マツプは基準画像からではなく、 第 3の実施の形態のように補正対象画像自身から自己抽出する方式を採用したも のである。 第 2の実施の形態では、 透過率マップの瞳位置変換を行っているが、 瞳位置の値が近似値で正確でない場合に、 瞳位置変換に誤差が生じる場合が生じ る。 一方、 第 3の実施の形態では、 エッジマップ抽出において大きなゴミはエツ ジとして抽出されてしまい、 補正がなされない場合が生じる。 第 4の実施の形態 は、 このような第 2の実施の形態と第 3の実施の形態の不具合にも対処するもの である。 すなわち、 第 3の実施の形態による信頼性の高い透過率マップの生成方 法を利用しながら、 第 2の実施の形態と同様な方法で取得する信頼性の高いゴミ の位置情報で補うものである。 なお、 電子カメラ 1および画像処理装置としての P C 3 1の構成は、 第 1の実施の形態と同様であるので、 その説明を省略する。 (電子カメラ側動作)
撮影手順は、 第 2の実施の形態と同様である。
(画像処理装置側動作)
図 1 7は、 画像処理装置である P C 3 1で行う処理のフローチヤ一トを示す図 である。
<基準画像に対する処理 >
1 ) ステップ S 4 1の輝度面の生成は、 第 1の実施の形態および第 2の実施の形 態と同様である。 2 ) ステップ S 4 2の透過率マップの生成 (ゲインマップ抽 出) は、 第 1の実施の形態および第 2の実施の形態と同様である。 3 ) ステップ S 4 3の透過率マップの瞳位置変換は、 第 2の実施の形態と同様である。 4 ) ス テツプ S 44の透過率マップの F値変換は、 第 2の実施の形態と同様である。
5) 透過率マップの閾値判定
ステップ S 45では、 透過率マップの閾値判定を行う。 透過率マップの F値変 換が行われた場合は、 口一パスフィルタ処理によりほとんどゴミ影が消滅しかか つている透過率 1に近い画素が多数発生する。 これらを鮮明なゴミ影と区別する ため、 次式 ( 28 ) ( 29 ) により再度閾値判定を行う。 ここで、 2) の 「透過 率マツプの生成」 過程で算出した標準偏差値 σを再度利用する。 瞳位置、 F値変 換された透過率マップを T' [i, j]で表す。
if IT' [i, j]-l|≤3a then T' [i, j]=l ... (28)
else T' [i, j]=T' [i, j] ... (29)
6) ゴミマップへの変換
ステップ S 46では、 次式 (30) ( 3 1 ) により透過率マツプを 2値化して ゴミマツプ dmap [i, j]に変換する。
if T' [i, j] <1 dmap[i, j]=l ... (30)
else dmap [i, j]=0 ... (31)
ここで式 (30) の判定は、 もう少し余裕をもたせて T' [i, j]<0.95のように判定 してもよい。
7) ゴミマップの拡大処理
ステップ S 47では、 次式 (32) により瞳位置変換で想定される誤差分だけ ゴミマップを拡大しておくことにより、 許容誤差内の領域にはゴミが含まれるよ うなゴミマップにする。 ここでは、 例えば ± 3画素の誤差を見込む。 m=l, 2, 3、 n =1, , 3である。
if dmap [i, j] =1 dmap [i ±m, j ±n] =1 ... (32)
<補正対象画像に対する処理 >
1) ステップ S 5 1の輝度面の生成は、 第 3の実施の形態と同様である。 2) ス テツプ S 52のエッジマップの生成は、 第 3の実施の形態と同様である。 3) ス テツプ S 53のエッジマップに暗黒部を追加する処理は、 第 3の実施の形態と同 様である。 模式的にこの操作を 「EDGE' =EDGE+DARK」 と記述すると分かりやすい。 4) エッジマップからゴミ領域を除外 ステップ S 5 4では、 エッジマップからゴミ領域を除外する。 ゴミ影の多くは コントラストが低いためエッジ抽出されないが、 中には大きなゴミでコントラス 卜の高いものがあり、 エッジ抽出されてしまうことがある。 特に絞り込んで撮影 された補正対象画像内で幾つかのゴミ影に発生する。 これらのゴミ影がェッジ領 域としてゲイン抽出領域の指定から外れることを防ぐため、 ステップ S 4 6で求 めたゴミマップ情報を利用して、 次式 ( 3 3 ) によりゴミ位置を強制的にエッジ 部から除外する処理を行う。 ここで、 あまり大きくエッジ領域を削ることを防ぐ ため、 ステップ S 4 7のゴミマップの拡大処理を行う前のゴミマップを利用する ことにする。 模式的にこの操作を 「EDGE' ' =EDGE+DARK-DUST」 と記述すると分かり やすい。
i f dmap [ i , j ] = l EDGE [ i, j ] =0 . . . (33)
4 ' ) エッジマップの周辺同化処理 (ゴミく りぬき部の補正) (S 6 0 )
エッジマップがいびつにゴミ部のみく りぬかれた (除外された) 状態は不自然 なので、 エッジマップ内での周辺同化処理を行う。 例えば、 背景が青空のような 一様な画像であれば、 ステップ S 4 6のゴミマップ情報を使用して、 エッジマツ プから大きなゴミによるエッジ部をく りぬいてもなんら問題が生じない。 むしろ、 く りぬく必要がある。 しかし、 背景が模様や構造のある画像である塲合に、 ステ ップ S 4 6のゴミマップ情報によりゴミがあるとしてその部分をエッジマップか らく りぬく と、 周辺の実際の模様や構造との関係から不自然な補正処理を行うこ とになる。 従って、 エッジ部でないと判断された画素が、 その周辺の画素にエツ ジ画素が多数あると判断される場合は、 その画素を再度エッジ部とするようにす る。
エッジマップの周辺同化処理は、 次に示す処理により行う。 具体的には、 例え ば図 1 9に示すような着目画素に対する周辺 8画素 (図 1 9の黒丸の画素、 図 1 9は着目画素 [ i , j ] = [0, 0]に対して第 4象限のみを示す) のうち 4個を超える画素 がエッジの場合、 着目画素もエッジとする。 4個を超えるとは周辺 8画素のうち エッジである画素が過半数あることを意味する。 すなわち、 周辺画素にエッジの 画素が過半数存在する場合は、 着目画素もエッジとする。 なお、 以下の処理の例 では、 水平方向垂直方向の 8画素目の画素を見ているが、 必ずしも 8画素目に限 定する必要はない。 数画素から十数画素先の画素を見ればよい。 また、 以下の処 理は全画素について行ってもよいし、 dmap=lでエッジく り抜きした画素のみに限 定してもよい。
データコピー
tmp[i, j]=EDGE[i, j] すべての画素 [i, j]に対して
周辺同化処理
if tmp [i, j] =0 I
sum = tmp [i-8, j] +tmp [i+8, j]+tip [i, j-8] +t即 [i, j+8]
+ tmp [i-8, j-8] +tmp [i + 8, j + 8] +tmp [i-8, j+8] +tip [i + 8, j-8] if sum>4 EDGE[i, j]=l
5) ステップ S 5 5のエッジマップの拡大処理は、 第 3の実施の形態と同様で ある。 6) ステップ S 5 6の平坦マップへの変換は、 第 3の実施の形態と同様で ある。
7) 自己ゲイン抽出領域の特定
ステップ S 57では、 自己ゲイン抽出領域の特定をする。 平坦部でかつゴミ領 域と特定されている領域に限定して、 ゴミ除去を行うのが補正対象画像の誤った 補正を防ぐ観点から最も合理的である。 したがって、 この両条件を満たす領域情 報を次式 (34) により求め平坦マップに代入する。 すなわち、 FLATと dmapに両 方に 1のフラグが立っている場合のみ FLAT=1となり、 それ以外は FLAT= 0となる。
FLAT[i, j]=FLAT[i, j] *diap [i, j] ... (34)
8) 自己ゲイン抽出
ステップ S 58の自己ゲイン抽出は、 第 3の実施の形態とは異なり、 局所的規 格化処理 (ゲイン抽出処理) のみ行う。 それ以降の透過率マップの統計解析と閾 値処理によるゴミ領域限定処理は、 7) の処理により既にゴミ近傍に限定されて いるので不要である。 局所的規格化処理 (ゲイン抽出処理) は、 第 3の実施の形 態と同様である。 このように、 ステップ S 47の処理によって瞳位置変換精度の 誤差分だけゴミ周辺にゲイン抽出領域を広げてゴミ探索することにより、 漏れな くゴミ抽出することが可能となる。 ここで自己抽出した透過率マップに対して口一パス処理を行う。 T [i, j ]の自己 抽出した全領域に、 第 1の実施の形態と同様なローパス処理をして、 T [i, j ]に含 まれる画素 [i, j ]のゆらぎ成分を除去する。 本実施の形態では、 ゴミ位置の局所領 域のみに限定して、 統計解析による閾値処理を介さないで、 自己ゲイン抽出によ る自己ゲイン補正を行うので、 このローパス処理は重要な処理となる。 すなわち、 ローパス処理前は画素値と透過率値 T [i, j ]が同じ方向にゆらいでいるため、 ロー パス処理をしないで後述の自己ゲイン補正すると、 画像はその局所領域のみ全体 的にのつぺりとなりやすい。 そこで、 T [i, j ]のゆらぎ成分を取り除いてやれば、 画素値が持つゆらぎ成分を失わずに済み、 周辺部との粒状性の連続性が保てるよ うになる。 これは、 特に高感度画像のような乱雑性が多い場合に威力を発揮する。 ここで、 口一パスフィルタは、 第 1の実施の形態よりももう少し強めに設計して もかまわないし、 ローパスフィルタの影響を受けやすい大きなゴミ部分 (T [i, j ] の値が 1に比べかなり小さい所) だけはローパスフィルタ処理を外すようにして も構わない。
9 ) 自己ゲイン補正
ステップ S 5 9の自己ゲイン補正は、 第 3の実施の形態と同様である。 基準画 像の透過率マップの瞳位置変換精度が悪くても、 補正対象画像自身からゴミの透 過率情報を抽出するので、 全くずれのないきれいな補正が可能となる。 なお、 自 己ゲインの抽出は、 ステップ S 5 7で特定された自己ゲイン抽出領域に限って行 われる。 従って、 補正処理もこの範囲に限ってのみ行われ、 処理の負荷が軽減さ れる。
以上のように、 第 4の実施の形態では、 基準画像のゴミマップ情報を有効に利 用することによって、 補正対象画像内の大きなゴミから小さなゴミまであらゆる ゴミを漏れなく自己抽出することが可能となる。 また、 基準画像の透過率マップ の瞳位置変換精度が悪い場合、 第 2の実施の形態の代替手段として用いることが できる。 さらに、 第 2の実施の形態と同様に基準画像撮影の撮影者の負荷は非常 に小さくて済む。
上記説明した第 1の実施の形態〜第 4の実施の形態の画像処理装置では、 電子 カメラで任意の使用時刻、 任意の使用条件で撮影した画像おいて生じたゴミ等の 影響による黒染み等の欠陥を、 適切に補正し、 高品質な画像を再現することがで さる。
なお、 上記第 1、 第 2、 第 4の実施の形態では、 透過率マップを作成するのに、 撮影者が一様に近いと考える基準画像を撮影して、 その撮影した基準画像に局所 的規格処理等を施して透過率マップを作成していた。 しかし、 撮影者が一様に近 いと考える基準画像に小さな模様等がある場合もある。 これは、 基本的に被写体 をボカして撮影することで対処できる。 例えば、 紙をレンズの最短撮影距離より も至近位置において撮影したりすればよい。 たとえ、 小さな模様があっても(2a+ l) x (2b+ l)サイズのゲイン抽出カーネルより広い範囲でゆるやかに変化する像にポ ケれば十分に目的を達成することのできる一様に近い基準画像になり得る。
また、 上記第 4の実施の形態では、 ステップ S 5 7で自己ゲイン抽出領域の特 定をし、 ステップ S 5 8では限定された範囲で補正を行うようにした。 このよう に補正範囲をゴミ領域を含む周辺範囲 (近傍領域) に限定する手法は、 上記第 1 〜第 3の実施の形態において適用することも可能である。 第 1〜第 3の実施の形 態では、 求められた透過率マップからゴミを特定し、 その周辺領域を求めればよ い。
また、 上記第 3の実施の形態では、 1枚の撮影画像を取得し、 1枚の撮影画像 の中で平坦部を抽出してゴミマップを生成する処理について説明した。 しかし、 平坦部に大きなゴミがある場合には、 その部分が平坦部として抽出されないこと がある。 第 4の実施の形態では基準画像を取得することによりこれに対処する例 を示したが、 基準画像を取得しなくても複数の画像の相関を利用することにより そのような大きなゴミの部分も欠陥情報作成対象の平坦部として認識することが 可能である。 例えば、 異なる被写体の複数の撮影画像において、 常に同じ位置に エッジ抽出で検出される像があった場合、 それはゴミによる像である可能性があ る。 従って、 第 3の実施の形態で処理されるエッジマップについて複数の撮影画 像で A N Dを取ったとき、 A N Dが取れた部分をエッジマップから除外する。 こ のようにすることにより、 A N Dが取れた部分を平坦部に追加することができ、 大きなゴミについても透過率マップを作成することができる。 なお、 A N Dを取 るのはエッジマップに限定しなくてもよい。 撮影画像から生成されるデータであ つて、 複数の撮影画像間で A N Dを取って撮影光路上のゴミが認識できるデータ であればどのようなデータでもよい。 例えば、 ゲイン抽出力一ネルによる透過率 マップを平坦部か否かにかかわらず、 強制的に画像全面について算出し、 複数の 画像間で同じ位置に同じような透過率で抽出される像があった場合、 欠陥情報の 透過率マツプとして残し、 他は欠陥情報から除外するような A N Dの取り方も考 えられる。
また、 第 3の実施の形態で得られた平坦部における透過率マップについて、 複 数の撮影画像の〇 Rを取れば、 撮影画面全体の透過率マツプを得ることができる。 第 3の実施の形態で得られる平坦部は、 被写体が異なるごとに撮影画面における 平坦部の位置も異なる。 これらの平坦部の O Rを取れば、 撮影画面全体になるこ ともある。 従って、 ゴミ情報を得るための基準画像を撮影しなくても、 複数の撮 影画像すなわち複数の補正対象画像から撮影画面全体の透過率マツプを得ること ができる。 この撮影画面全体の透過率マップは、 複数の補正対象画像に共通に使 用することができる。
なお、 上述したように複数の撮影画像についてエツジマップの A N Dを取った り透過率マップの O Rを取ったりする場合、 撮影画像ごとに瞳位置や F値 (絞り 値) が異なることもある。 この場合は、 第 2の実施の形態で説明したのと同様に、 瞳位置変換や F値変換を画像信号のままの状態や透過率マップの状態で施すなど して活用すればよい。
また、 上記実施の形態では、 べィァ配列の R G B表色系の例を説明したが、 最 終的に補間処理がなされるものであれば、 カラーフィルタの配置方法には全く依 存しないことは言うまでもない。 また、 他の表色系 (例えば補色表色系) であつ ても同様である。
また、 上記実施の形態では、 交換レンズ方式の一眼レフ電子スチルカメラの例 を説明したが、 必ずしもこの内容に限定する必要はない。 非交換レンズ方式の力 メラにも本発明は適用できる。 瞳位置や絞り値は、 適宜公知な手法で取得すれば よい。
また、 上記実施の形態では、 電子スチルカメラ 1で撮影した画像データを処理 する例を説明したが、 必ずしもこの内容に限定する必要はない。 本発明は、 動画 を扱うビデオカメラで撮影した画像データにも適用できる。 また、 カメラつき携 帯電話などで撮影した画像データにも適用できる。 さらに、 コピ一機やスキャナ —等にも適用できる。 すなわち、 撮像素子を使用して撮像したあらゆる画像デー 夕に対して、 本発明を適用することができる。
また、 上記実施の形態では、 電子カメラ 1で撮影した画像データを P C (パソ コン) 3 1で処理してゴミの影響を除去する例を説明したが、 必ずしもこの内容 に限定する必要はない。 電子カメラ 1上で、 そのようなプログラムを備えてもよ い。 また、 プリンタ一や投影装置などにそのようなプログラムを備えてもよい。 すなわち、 画像データを扱うあらゆる装置に、 本発明は適用することができる。
P C 3 1で実行するプログラムは、 C D— R O Mなどの記録媒体ゃィンターネ ッ トなどのデータ信号を通じて提供することができる。 図 1 8はその様子を示す 図である。 P C 3 1は、 C D— R O M 3 4を介してプログラムの提供を受ける。 また、 P C 3 1は通信回線 4 0 1 との接続機能を有する。 コンピュータ 4 0 2は 上記プログラムを提供するサーバ一コンピュータであり、 ハードディスク 4 0 3 などの記録媒体にプログラムを格納する。 通信回線 4 0 1は、 インターネッ ト、 パソコン通信などの通信回線、 あるいは専用通信回線などである。 コンピュータ 4 0 2はハ一ドディスク 4 0 3を使用してプログラムを読み出し、 通信回線 4 0 1を介してプログラムを P C 3 1に送信する。 すなわち、 プログラムをデータ信 号として搬送波にのせて、 通信回線 4 0 1を介して送信する。 このように、 プロ グラムは、 記録媒体や搬送波などの種々の形態のコンピュータ読み込み可能なコ ンピュー夕プログラム製品として供給できる。
上記では、 種々の実施の形態および変形例を説明したが、 本発明はこれらの内 容に限定されるものではない。 本発明の技術的思想の範囲内で考えられるその他 の態様も本発明の範囲内に含まれる。

Claims

請求の範囲
1 . 画像処理装置であって、
撮像素子により撮影された画像を取得する画像取得部と、
前記取得した画像内において、 着目画素の値と該着目画素を含む所定範囲内の 複数の画素の値の平均値とに基づいて、 前記画像内の欠陥情報を作成する欠陥情 報作成部とを備える。
2 . 請求項 1に記載の画像処理装置において、
前記欠陥情報作成部は、 前記着目画素の値と該着目画素を含む所定範囲内の複 数の画素の値の平均値との相対比を算出する相対比算出部を備え、 前記算出した 相対比に基づいて、 前記欠陥情報を作成する。
3 . 請求項 1から 2のいずれかに記載の画像処理装置において、
前記欠陥情報作成部は、 前記画像内で所定の条件を満たす領域に対して欠陥情 報を作成する。
4 . 請求項 1から 3のいずれかに記載の画像処理装置において、
前記欠陥情報に基づいて、 前記画像内の欠陥を補正する補正部とを更に有する c
5 . 請求項 2に記載の画像処理装置において、
前記欠陥情報に基づいて、 前記画像内の欠陥を補正する補正部を更に有し、 前記補正部は、 前記相対比の逆数値を、 対応する画素の値に掛け算して補正す る。
6 . 請求項 1に記載の画像処理装置において、
前記画像取得部は、 前記撮像素子により撮影された複数の画像を取得し、 前記欠陥情報作成部は、 前記取得した複数の画像を使用して、 前記複数の画像 のいずれかの画像内の欠陥情報を作成する。
7 . 請求項 1に記載の画像処理装置において、
前記画像取得部は、 前記撮像素子により撮影された複数の画像を取得し、 前記欠陥情報作成部は、 前記取得した複数の画像を使用して、 前記複数の画像 の画像全体に対応する欠陥情報を作成する。
8 . 画像処理装置であって、
光学系を通して撮影された基準画像を取得する画像取得部と、
前記取得した基準画像内において、 着目画素の値と該着目画素を含む所定範囲 内の複数の画素の値の平均値とに基づいて、 前記基準画像内の欠陥情報を作成す る欠陥情報作成部とを備える。
9 . 請求項 8に記載の画像処理装置において、
前記欠陥情報作成部は、 前記着目画素の値と該着目画素を含む所定範囲内の複 数の画素の値の平均値との相対比を算出する相対比算出部を備え、 前記算出した 相対比に基づいて、 前記欠陥情報を作成する。
1 0 . 請求項 8から 9のいずれかに記載の画像処理装置において、
前記画像取得部は、 前記光学系を通して撮影された補正対象画像を取得し、 前記基準画像内の欠陥情報に基づいて、 前記補正対象画像内の欠陥を補正する 補正部を更に有する。
1 1 . 請求項 1 0に記載の画像処理装置において、
前記補正部は、 前記基準画像と前記補正対象画像とが、 絞り値および瞳位置が 実質的に同じ光学的条件の光学系を通して撮影されている場合、 前記生成された 欠陥情報をそのまま使用して、 前記補正対象画像を構成する画素の値を補正する £
1 2 . 請求項 1 0に記載の画像処理装置において、
前記光学系の光学的条件である絞り値および瞳位置の少なくとも 1つに応じて、 前記欠陥情報を変換する欠陥情報変換部をさらに備え、
前記補正部は、 前記基準画像と前記補正対象画像とが、 絞り値および瞳位置の 少なくとも 1つが異なる光学的条件の光学系を通して撮影されている場合、 前記 変換された欠陥情報を使用して、 前記補正対象画像を構成する画素の値を補正す る。
1 3 . 請求項 9に記載の画像処理装置において、
前記基準画像の相対比の逆数値を、 前記補正対象画像の対応する画素の値に掛 け算して補正する補正部をさらに有する。
1 4 . 請求項 2、 9のいずれかに記載の画像処理装置において、
前記相対比算出部は、 前記算出した相対比が 1を挟んだ所定範囲に含まれると き、 前記算出した相対比を 1に設定する。
1 5 . 請求項 1 4に記載の画像処理装置において、
前記相対比算出部は、 前記算出した相対比を 1に設定する前記所定範囲を、 前 記算出した相対比の標準偏差値と関連づける。
1 6 . 請求項 1、 8のいずれかに記載の画像処理装置において、
前記着目画素を含む所定範囲は、 前記画像あるいは前記基準画像内で生じる欠 陥領域よりも広い範囲である。
1 7 . 請求項 1 0に記載の画像処理装置において、
前記画像取得部は、 前記補正対象画像の撮影前後の所定時間内に撮影された基 準画像を取得する。
1 8 . 請求項 1 7に記載の画像処理装置において、
前記画像取得部は、 前記補正対象画像の撮影時間に 2番目以内に近い時間に撮 影された基準画像を取得する。
1 9 . 画像処理装置であって、
複数色に分光可能な撮像素子を使用して撮影された画像を取得する画像取得部 と、
前記画像の複数色の信号から輝度信号を生成する輝度信号生成部と、
前記生成された画像の輝度信号に基づき、 前記画像内の欠陥情報を作成する欠 陥情報作成部とを備える。
2 0 . 請求項 1 9に記載の画像処理装置において、
前記欠陥情報を用いて、 前記画像内の欠陥画素の各色成分の値を補正する補正 部をさらに備える。
2 1 . 請求項 1 9に記載の画像処理装置において、
前記取得した画像内において、 着目画素の前記生成した輝度信号の値と該着目 画素を含む所定範囲内の複数の画素の前記生成した輝度信号の平均値に基づいて, 前記画像内の欠陥情報を作成する欠陥情報作成部とを備える。
2 2 . 請求項 2 1に記載の画像処理装置において、
前記欠陥情報作成部は、 着目画素の前記生成した輝度信号の値と該着目画素を 含む所定範囲内の複数の画素の前記生成した輝度信号の平均値との相対比を算出 する相対比算出部を備え、 前記算出した相対比に基づいて、 前記欠陥情報を作成 する。
2 3 . 請求項 2 2に記載の画像処理装置において、
前記相対比の逆数値を、 対応する画素の各色成分の値毎に掛け算して補正する 補正部を更に備える。
2 4 . 請求項 1 9に記載の画像処理装置において、
前記画像取得部は、 前記撮像素子により撮影された複数の画像を取得し、 前記輝度信号生成部は、 前記取得した複数の画像について前記輝度信号を生成 し、
前記欠陥情報作成部は、 前記生成された複数の画像の輝度信号を使用して、 前 記複数の画像のいずれかの画像内の欠陥情報を作成する。
2 5 . 請求項 1 9に記載の画像処理装置において、
前記画像取得部は、 前記撮像素子により撮影された複数の画像を取得し、 前記輝度信号生成部は、 前記取得した複数の画像について前記輝度信号を生成 し、
前記欠陥情報作成部は、 前記取得した複数の画像を使用して、 前記複数の画像 の画像全体に対応する欠陥情報を作成する。
2 6 . 請求項 1に記載の画像処理装置において、
前記撮像素子は、 光学系を通して画像を撮影し、
前記欠陥情報は、 前記画像内に生じた光路途中の欠陥の投影像の情報である。
2 7 . 請求項 2 6に記載の画像処理装置において、
前記欠陥情報作成部は、 前記光路途中の欠陥の投影像の位置と強度に関する情 報を同時に作成して記録する。
2 8 . 請求項 2 7に記載の画像処理装置において、
前記欠陥情報作成部は、 前記着目画素ごとに前記平均値を算出する前記所定範 囲を移動させ、 前記光路途中の欠陥の投影像の強度に関する情報を連続的に作成 する。
2 9 . 請求項 4に記載の画像処理装置において、
前記補正部は、 補正対象画素位置の元の信号値を利用して補正値を求める。
3 0 . 請求項 8に記載の画像処理装置において、 前記欠陥情報は、 前記画像内に生じた光路途中の欠陥の投影像の情報である。
3 1 . 請求項 3 0に記載の画像処理装置において、
前記欠陥情報作成部は、 前記光路途中の欠陥の投影像の位置と強度に関する情 報を同時に作成して記録する。
3 2 . 請求項 3 1に記載の画像処理装置において、
前記欠陥情報作成部は、 前記着目画素ごとに前記平均値を算出する前記所定範 囲を移動させ、 前記光路途中の欠陥の投影像の強度に関する情報を連続的に作成 する。
3 3 . 請求項 1 0に記載の画像処理装置において、
前記補正部は、 補正対象画素位置の元の信号値を利用して補正値を求める。
3 4 . 請求項 1 5に記載の画像処理装置において、
前記相対比算出部は、 前記算出した相対比を 1に設定する前記所定範囲を、'プ
( 3 X標準偏差値) の範囲に設定する。
3 5 . 請求項 2 6に記載の画像処理装置において、
前記着目画素を含む所定範囲は、 前記画像内に生じた光路途中の欠陥の投影像 の広がりよりも広い範囲である。
3 6 . 請求項 3 0に記載の画像処理装置において、
前記着目画素を含む所定範囲は、 前記基準画像内に生じた光路途中の欠陥の投 影像の広がりよりも広い範囲である。
3 7 . 画像処理装置であって、
光学系を通して撮影された第 1の画像と、 前記第 1の画像とは異なる光学的条 件で撮影された第 2の画像を取得する画像取得部と、 前記第 1の画像と前記第 2の画像を用いて、 前記第 1の画像もしくは前記第 2 の画像内に含まれる欠陥情報を作成する欠陥情報作成部とを備える。
3 8 . 請求項 3 7に記載の画像処理装置において、
前記欠陥情報を用いて、 前記第 1の画像もしくは前記第 2の画像内の欠陥を補 正する補正部を備える。
3 9 . 請求項 3 7に記載の画像処理装置において、
前記第 1の画像と前記第 2の画像との間で、 絞り値および瞳位置の少なくとも 1つの光学的条件が異なる。
4 0 . 請求項 3 7から 3 9のいずれかに記載の画像処理装置において、 前記欠陥情報作成部は、 前記第 1の画像と第 2の画像の光学的条件の不一致を なくすため、 前記第 1の画像と第 2の画像の少なくとも一方の画像を、 一定の光 学的条件に合致するような変換を行う光学的条件変換部を備える。
4 1 . 請求項 4 0に記載の画像処理装置において、
前記光学的条件変換部は、 前記光学的条件の絞り値が異なるとき、 前記第 1の 画像もしくは前記第 2の画像に基づく画素信号に対して口一パスフィルタ処理を 行って、 同じ絞り値のときにあると想定される欠陥の状態に変換する。
4 2 . 請求項 4 1に記載の画像処理装置において、
前記光学的条件変換部は、 実質的に均等な重みづけのローパスフィルタを用い て変換する。
4 3 . 請求項 4 0に記載の画像処理装置において、
前記光学的条件変換部は、 前記光学的条件の瞳位置が異なるとき、 前記第 1の 画像もしくは前記第 2の画像に基づく画素信号に対して前記光学系の光軸中心か ら動径方向にずらす変位処理を行って、 同じ瞳位置のときにあると想定される欠 陥の状態に変換する。
4 4 . 請求項 4 3に記載の画像処理装置において、
前記光学的条件変換部は、 光軸中心から遠くになるに従い、 動径方向にずらす 量を増やす変位処理を行う。
4 5 . 請求項 4 3から 4 4のいずれかに記載の画像処理装置において、 前記光学的条件変換部は、 前記欠陥の原因となる異物が、 前記光学系内の撮像 面から光軸に沿って所定の距離にあると仮定して変位量を予測する演算を行い、 変位処理を行う。
4 6 . 請求項 3 7に記載の画像処理装置において、
前記第 1の画像と第 2の画像のどちらか一方は補正の対象となる補正対象画像 であり、 他方は欠陥情報を作成するための基準画像である。
4 7 . 請求項 3 7に記載の ]1像処理装置において、
前記第 1の画像と第 2の画像は、 どちらも補正の対象となる補正対象画像であ り、
前記欠陥情報作成部は、 前記第 1の画像と前記第 2の画像を用いて、 前記第 1 の画像と前記第 2の画像に共通な欠陥情報を作成する。
4 8 . 請求項 4 7に記載の画像処理装置において、
前記欠陥情報作成部は、 前記第 1の画像と第 2の画像の光学的条件の不一致を なくすため、 前記第 1の画像と第 2の画像の少なくとも一方の画像を、 一定の光 学的条件に合致するような変換を行う光学的条件変換部を備える。
4 9 . 請求項 4 6に記載の画像処理装置において、
前記画像取得部は、 前記光学系の可変な絞り値の中で、 最も絞り込んだ状態の 絞り値で撮影された前記基準画像を取得する。
5 0 . 請求項 3 7に記載の画像処理装置において、
前記欠陥情報作成部は、 前記取得した画像内において、 着目画素の値と該着目 画素を含む所定範囲内の複数の画素の値の平均値に基づき、 前記画像内の欠陥情 報を作成する。
5 1 . 請求項 4 6、 4 9のいずれかに記載の画像処理装置において、
前記画像取得部は、 前記補正対象画像の撮影前後の所定時間内に撮影された基 準画像を取得する。
5 2 . 画像処理装置であって、
光学系を通して撮影された第 1の画像と、 前記第 1の画像とは異なる光学的条 件で撮影された第 2の画像を取得する画像取得部と、
前記第 1の画像と前記第 2の画像を用いて、 前記第 1の画像もしくは前記第 2 の画像内に含まれる欠陥を補正する補正部とを備える。
5 3 . 請求項 5 2に記載の画像処理装置において、
前記第 1の画像と前記第 2の画像との間で、 絞り値および瞳位置の少なくとも 1つの光学的条件が異なる。
5 4 . 画像処理装置であって、
撮像素子により撮影された撮影画像を取得する画像取得部と、
前記取得した撮影画像内で平坦部領域を抽出する平坦部抽出部と、
前記抽出した平坦部領域の欠陥情報を作成する欠陥情報作成部とを備える。
5 5 . 請求項 5 4に記載の画像処理装置において、
前記欠陥情報に基づいて、 前記平坦部領域の画像を補正する補正部をさらに備 える。
5 6 . 請求項 5 4〜 5 5のいずれかに記載の画像処理装置において、
前記平坦部領域の画像において、 着目画素の値と該着目画素を含む所定範囲内 の複数の画素の平均値とに基づいて、 前記平坦部領域の欠陥情報を作成する。
5 7 . 請求項 5 6に記載の画像処理装置において、
前記欠陥情報作成部は、 前記着目画素の値と該着目画素を含む所定範囲内の複 数の画素の平均値との相対比を算出する相対比算出部を備え、 前記算出した相対 比に基づいて、 前記平坦部領域の欠陥情報を作成する。
5 8 . 請求項 5 5に記載の画像処理装置において、
前記平坦部領域の画像を構成する画素において、 着目画素の値と該着目画素を 含む所定範囲内の複数の画素の平均値との相対比を算出する相対比算出部をさら に備え、
前記欠陥情報作成部は、 前記算出した相対比に基づいて、 前記平坦部領域の欠 陥情報を作成し、
前記補正部は、 前記平坦部領域の画像の画素に対応する前記相対比の逆数値を、 前記平坦部領域の画像の対応する画素の値に掛け算して補正する。
5 9 . 請求項 5 8に記載の画像処理装置において、
前記補正部は、 前記作成された欠陥情報としての相対比にローパス処理を行い, 前記平坦部領域の画像の画素に対応する前記ローパス処理後の相対比の逆数値を、 前記平坦部領域の画像の対応する画素の値に掛け算して補正する。
6 0 . 請求項 5 4〜 5 9のいずれかに記載の画像処理装置において、
前記平坦部抽出部は、 前記撮影画像内でエッジ抽出を行い、 エッジが抽出され なかった領域を平坦部領域として抽出する。
6 1 . 請求項 5 4に記載の画像処理装置において、
前記平坦部抽出部は、 前記撮影画像に対し階調変換を行う階調変換部を有し、 階調変換された後の前記撮影画像に対して前記平坦部領域の抽出を行う。
6 2 . 請求項 6 1に記載の画像処理装置において、
前記階調変換部は、 前記撮影画像の階調が線形信号の時、 非線形信号に変換す る。
6 3 . 請求項 6 2に記載の画像処理装置において、
前記階調変換部は、 低輝度側の階調を拡大し、 高輝度側の階調を圧縮する変換 を行う。
6 4 . 請求項 6 2 ~ 6 3のいずれかに記載の画像処理装置において、
前記階調変換部は、 べき乗関数により変換を行う。
6 5 . 請求項 6 4に記載の画像処理装置において、
前記べき乗関数は平方根関数である。
6 6 . 請求項 6 0 - 6 5のいずれかに記載の画像処理装置において、
前記エッジ抽出は、 着目画素と周辺画素との間において、 複数の距離からなる 差分演算を複数の方向について行うことにより抽出する。
6 7 . 請求項 5 5、 5 8、 5 9のいずれかに記載の画像処理装置において、 前記撮影画像の輝度レベルが所定の明るさ以上か否かを判定する輝度レベル判 定部を備え、
前記補正部は、 前記輝度レベルが所定の明るさ以上でかつ前記平坦部領域の領 域に対して、 補正する。
6 8 . 請求項 5 4に記載の画像処理装置において、
前記撮像素子により撮影された基準画像を取得する基準画像取得部と、 前記基準画像の欠陥情報を作成する基準画像欠陥情報作成部とをさらに備え、 前記欠陥情報作成部は、 前記基準画像の欠陥情報による領域情報と前記平坦部 領域の領域情報とを合わせて用いて前記平坦部領域の欠陥情報を作成する。
6 9 . 請求項 6 8に記載の画像処理装置において、
前記平坦部抽出部は、 前記平坦部領域として抽出されない領域であっても、 前 記基準画像の欠陥情報が示す欠陥領域である場合、 該欠陥領域を前記平坦部領域 として抽出する。
7 0 . 請求項 6 8 ~ 6 9のいずれかに記載の画像処理装置において、
前記欠陥情報作成部は、 前記基準画像の欠陥情報が示す欠陥領域と前記平坦部 領域の双方を満足する領域に対して、 欠陥情報を作成する。
7 1 . 請求項 6 8に記載の画像処理装置において、
前記撮影画像と前記基準画像の撮影時の光学的条件が異なるとき、 前記基準画 像の欠陥情報を、 前記撮影画像と同じ光学的条件において撮影された基準画像の 欠陥情報と等価な欠陥情報に変換する欠陥情報変換部をさらに備え、
前記補正部は、 前記変換された基準画像の欠陥情報を用いる。
7 2 . 請求項 6 9 ~ 7 0のいずれかに記載の画像処理装置において、
前記撮影画像と前記基準画像の撮影時の光学的条件が異なるとき、 前記基準画 像の欠陥情報を、 前記撮影画像と同じ光学的条件において撮影された基準画像の 欠陥情報と等価な欠陥情報に変換する欠陥情報変換部をさらに備え、
前記平坦部抽出部および前記補正部は、 前記変換された基準画像の欠陥情報を 用いる。
7 3 . 請求項 7 1〜 7 2のいずれかに記載の画像処理装置において、
前記補正部は、 前記欠陥情報変換部の欠陥情報変換誤差を考慮して、 前記基準 画像の欠陥情報が示す欠陥領域を、 少なくとも前記欠陥情報変換誤差分広くして 用いる。
7 4 . 請求項 5 4に記載の画像処理装置において、
前記画像取得部は、 前記撮像素子により撮影された複数の撮影画像を取得し、 前記平坦部抽出部は、 前記複数の撮影画像において、 前記平坦部領域を抽出し、 前記欠陥情報作成部は、 前記抽出した複数の画像の平坦部領域の画像を使用し て、 前記複数の画像のいずれかの画像の平坦部領域の欠陥情報を作成する。
7 5 . 請求項 5 4に記載の画像処理装置において、
前記画像取得部は、 前記撮像素子により撮影された複数の撮影画像を取得し、 前記平坦部抽出部は、 前記複数の撮影画像において、 前記平坦部領域を抽出し、 前記欠陥情報作成部は、 前記抽出した複数の画像の平坦部領域の画像を使用し て、 前記複数の画像の画像全体に対応する欠陥情報を作成する。
7 6 . 請求項 7 4、 7 5のいずれかに記載の画像処理装置において、
前記平坦部領域の画像において、 着目画素の値と該着目画素を含む所定範囲内 の複数の画素の平均値とに基づいて、 前記平坦部領域の欠陥情報を作成する。
7 7 . 請求項 7 6に記載の画像処理装置において、
前記欠陥情報作成部は、 前記着目画素の値と該着目画素を含む所定範囲内の複 数の画素の平均値との相対比を算出する相対比算出部を備え、 前記算出した相対 比に基づいて、 前記平坦部領域の欠陥情報を作成する。
7 8 . 請求項 6 9に記載の画像処理装置において、
前記平坦部抽出部は、 前記基準画像の欠陥情報が示す欠陥領域について、 前記 欠陥領域の周辺に所定量以上のエッジ抽出された画素がある場合、 該欠陥領域を 前記平坦部領域として抽出しない。
7 9 . 請求項 7 8に記載の画像処理装置において、
前記平坦部抽出部は、 前記欠陥領域の画素周辺に一定領域の画素の中でエッジ 抽出された画素が過半数ある場合、 該欠陥領域の画素を前記平坦部領域の画素と して抽出しない。
8 0 . コンピュータ読み込み可能なコンピュータプログラム製品は、 請求項 1〜 7 9のいずれかに記載の画像処理装置の機能をコンピュータに実行させるための 画像処理プログラムを有する。
PCT/JP2003/016797 2002-12-27 2003-12-25 画像処理装置および画像処理プログラム Ceased WO2004062275A1 (ja)

Priority Applications (5)

Application Number Priority Date Filing Date Title
EP03768277.0A EP1583356B1 (en) 2002-12-27 2003-12-25 Image processing device and image processing program
CN200380107791.8A CN1732682B (zh) 2002-12-27 2003-12-25 图像处理装置
US10/540,972 US7853097B2 (en) 2002-12-27 2003-12-25 Image processing apparatus and image processing program
US12/640,603 US8031968B2 (en) 2002-12-27 2009-12-17 Image processing apparatus and image processing program
US13/222,842 US8369651B2 (en) 2002-12-27 2011-08-31 Image processing apparatus and image processing program

Applications Claiming Priority (12)

Application Number Priority Date Filing Date Title
JP2002-379719 2002-12-27
JP2002379721 2002-12-27
JP2002379720 2002-12-27
JP2002-379720 2002-12-27
JP2002-379721 2002-12-27
JP2002379719 2002-12-27
JP2003-307355 2003-08-29
JP2003-307357 2003-08-29
JP2003307357A JP4466017B2 (ja) 2002-12-27 2003-08-29 画像処理装置および画像処理プログラム
JP2003307355A JP4466015B2 (ja) 2002-12-27 2003-08-29 画像処理装置および画像処理プログラム
JP2003-307356 2003-08-29
JP2003307356A JP4466016B2 (ja) 2002-12-27 2003-08-29 画像処理装置および画像処理プログラム

Related Child Applications (2)

Application Number Title Priority Date Filing Date
US10540972 A-371-Of-International 2003-12-25
US12/640,603 Division US8031968B2 (en) 2002-12-27 2009-12-17 Image processing apparatus and image processing program

Publications (1)

Publication Number Publication Date
WO2004062275A1 true WO2004062275A1 (ja) 2004-07-22

Family

ID=32719680

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2003/016797 Ceased WO2004062275A1 (ja) 2002-12-27 2003-12-25 画像処理装置および画像処理プログラム

Country Status (4)

Country Link
US (3) US7853097B2 (ja)
EP (2) EP1583356B1 (ja)
CN (3) CN101778203B (ja)
WO (1) WO2004062275A1 (ja)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7885478B2 (en) 2005-05-19 2011-02-08 Mstar Semiconductor, Inc. Noise reduction method and noise reduction apparatus

Families Citing this family (69)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005022901A1 (ja) * 2003-08-29 2005-03-10 Nikon Corporation 撮像系診断装置、撮像系診断プログラム、撮像系診断プログラム製品、および撮像装置
JP4455362B2 (ja) * 2004-03-11 2010-04-21 富士フイルム株式会社 全反射減衰を利用した測定装置
WO2006006373A1 (ja) * 2004-07-07 2006-01-19 Nikon Corporation 画像処理装置およびコンピュータプログラム製品
JP4498149B2 (ja) * 2005-01-17 2010-07-07 キヤノン株式会社 画像読み取り装置
TWI336595B (en) * 2005-05-19 2011-01-21 Mstar Semiconductor Inc Noise reduction method
JP2007060343A (ja) * 2005-08-25 2007-03-08 Fuji Xerox Co Ltd 色校正用データ取得システム、画像処理システム、色校正用データ取得方法、画像処理方法及びプログラム
DE102006031757A1 (de) * 2006-01-04 2007-08-02 Arnold & Richter Cine Technik Gmbh & Co. Betriebs Kg Verfahren zur automatischen Korrektur von Bildfehlern in Video-Assist-Bildern eines Video-Assist-Systems
JP2007215151A (ja) * 2006-01-12 2007-08-23 Canon Inc 撮像装置及びその制御方法及びプログラム
JP4590355B2 (ja) * 2006-01-12 2010-12-01 キヤノン株式会社 画像処理装置及び画像処理方法及びプログラム
JP4678860B2 (ja) * 2006-01-24 2011-04-27 キヤノン株式会社 撮像装置及びその制御方法とプログラム
JP4757085B2 (ja) * 2006-04-14 2011-08-24 キヤノン株式会社 撮像装置及びその制御方法、画像処理装置、画像処理方法、及びプログラム
TWI353774B (en) * 2006-04-28 2011-12-01 Novatek Microelectronics Corp Method and related adjustment circuit for compensa
JP4197008B2 (ja) * 2006-05-15 2008-12-17 セイコーエプソン株式会社 画像処理方法、プログラム及び画像処理装置
JP4771539B2 (ja) * 2006-07-26 2011-09-14 キヤノン株式会社 画像処理装置及びその制御方法及びプログラム
JP2008033442A (ja) * 2006-07-26 2008-02-14 Canon Inc 画像処理装置及びその制御方法及びプログラム
JP4771540B2 (ja) * 2006-07-26 2011-09-14 キヤノン株式会社 画像処理装置及びその制御方法及び画像処理方法及びプログラム
US8049807B2 (en) * 2006-09-05 2011-11-01 Olympus Imaging Corp. Digital camera and dust reduction apparatus for digital camera
JP5132141B2 (ja) * 2006-12-07 2013-01-30 キヤノン株式会社 テレビレンズ装置
GB2449412B (en) * 2007-03-29 2012-04-25 Hewlett Packard Development Co Integrating object detectors
JP2008258982A (ja) * 2007-04-05 2008-10-23 Canon Inc 画像処理装置及びその制御方法及びプログラム
JP5046769B2 (ja) * 2007-07-24 2012-10-10 キヤノン株式会社 撮像装置及びその制御方法及びプログラム
JP4989385B2 (ja) * 2007-09-12 2012-08-01 キヤノン株式会社 撮像装置及びその制御方法及びプログラム
JP4951540B2 (ja) * 2008-01-23 2012-06-13 ペンタックスリコーイメージング株式会社 ダスト検出装置およびデジタルカメラ
JP5298638B2 (ja) * 2008-02-14 2013-09-25 株式会社ニコン 画像処理装置、撮像装置、補正係数算出方法及び画像処理プログラム
US8593537B2 (en) 2008-06-05 2013-11-26 Canon Kabushiki Kaisha Image sensing apparatus, control method thereof, and program for suppressing image deterioration caused by foreign substance
JP5188293B2 (ja) * 2008-07-03 2013-04-24 キヤノン株式会社 撮像装置及びその制御方法及びプログラム
JP5210091B2 (ja) * 2008-08-29 2013-06-12 キヤノン株式会社 画像処理装置及びその制御方法、撮像装置、プログラム
KR100992362B1 (ko) * 2008-12-11 2010-11-04 삼성전기주식회사 컬러 보간 장치
JP5287385B2 (ja) * 2009-03-13 2013-09-11 オムロン株式会社 計測装置
US8284271B2 (en) * 2009-06-05 2012-10-09 Apple Inc. Chroma noise reduction for cameras
US8274583B2 (en) * 2009-06-05 2012-09-25 Apple Inc. Radially-based chroma noise reduction for cameras
JP5400504B2 (ja) * 2009-07-03 2014-01-29 キヤノン株式会社 撮像装置、画像処理装置、制御方法、及びプログラム
EP2287807A1 (en) * 2009-07-21 2011-02-23 Nikon Corporation Image processing device, image processing program, and imaging device
JP2011078047A (ja) * 2009-10-02 2011-04-14 Sanyo Electric Co Ltd 撮像装置
DE102009049203B4 (de) * 2009-10-13 2016-10-13 Arnold & Richter Cine Technik Gmbh & Co. Betriebs Kg Diagnoseeinheit für eine elektronische Kamera und Kamerasystem
JP5120441B2 (ja) * 2009-11-26 2013-01-16 株式会社ニコン 画像処理装置
JP2011250177A (ja) * 2010-05-27 2011-12-08 Toshiba Corp カメラモジュール及び画像記録方法
JP5735227B2 (ja) * 2010-07-16 2015-06-17 ルネサスエレクトロニクス株式会社 画像変換装置及び画像変換システム
JP2012070089A (ja) * 2010-09-21 2012-04-05 Toshiba Corp 画像読取装置
CN102469275B (zh) * 2010-11-02 2014-04-16 慧荣科技股份有限公司 用来进行坏像素补偿的方法与用来进行坏像素补偿的装置
JP2012105023A (ja) * 2010-11-09 2012-05-31 Canon Inc 画像処理装置、撮像装置、及び画像処理方法
US8570394B1 (en) * 2011-01-18 2013-10-29 Intellectual Ventures Fund 79 Llc Systems, methods, and mediums for adjusting an exposure of an image using a histogram
JP2012222465A (ja) * 2011-04-05 2012-11-12 Sony Corp 画像処理装置及び画像処理方法、並びにコンピューター・プログラム
WO2013025204A1 (en) * 2011-08-16 2013-02-21 Nikon Corporation Method for detecting existence of dust spots in digital images based on locally adaptive thresholding
JP5943596B2 (ja) 2011-12-19 2016-07-05 キヤノン株式会社 撮像装置
TWI492101B (zh) * 2012-03-07 2015-07-11 Pixart Imaging Inc 可執行干擾影像判斷方法的電腦可讀取媒體以及干擾影像判斷裝置
JP6004768B2 (ja) * 2012-06-14 2016-10-12 キヤノン株式会社 焦点検出のための信号処理装置、信号処理方法およびプログラム、ならびに焦点検出装置を有する撮像装置
US8823841B2 (en) * 2012-06-20 2014-09-02 Omnivision Technologies, Inc. Method and apparatus for correcting for vignetting in an imaging system
CN103686098B (zh) * 2012-09-04 2015-07-22 恒景科技股份有限公司 数字摄像装置及其影像处理方法
US9659237B2 (en) 2012-10-05 2017-05-23 Micro Usa, Inc. Imaging through aerosol obscurants
JP5620522B2 (ja) * 2013-01-07 2014-11-05 オリンパスイメージング株式会社 撮像装置及び撮像方法
WO2014125837A1 (ja) 2013-02-18 2014-08-21 パナソニック株式会社 撮像装置の異物情報検出装置および異物情報検出方法
US9317931B2 (en) * 2014-04-04 2016-04-19 Tektronix, Inc. F-stop weighted waveform with picture monitor markers
JP6488581B2 (ja) 2014-07-25 2019-03-27 株式会社ソシオネクスト 霞画像判別装置及び判別方法
JP6158779B2 (ja) * 2014-12-08 2017-07-05 株式会社Soken 画像処理装置
US10908062B2 (en) * 2015-03-06 2021-02-02 Scanit Technologies, Inc. Airborne particle monitor
US10458990B1 (en) 2015-03-06 2019-10-29 Scanit Technologies, Inc. Spore state discrimination
US10684209B1 (en) 2015-03-06 2020-06-16 Scanit Technologies, Inc. Particle collection media cartridge with tensioning mechanism
US9933351B2 (en) 2015-03-06 2018-04-03 Scanit Technologies, Inc. Personal airborne particle monitor with quantum dots
JP6594101B2 (ja) * 2015-08-19 2019-10-23 キヤノン株式会社 画像処理装置、画像処理方法および画像処理プログラム
US10682870B2 (en) * 2016-06-09 2020-06-16 Ricoh Company, Ltd. Conveyed object detector, conveyance device, device including movable head, conveyed object detecting method, and non-transitory recording medium storing program of same
CN106228517A (zh) * 2016-07-15 2016-12-14 西安诺瓦电子科技有限公司 图像采集装置成像元件缺陷校准方法
CN114628425A (zh) * 2017-05-26 2022-06-14 株式会社半导体能源研究所 摄像装置及电子设备
CN108362702A (zh) * 2017-12-14 2018-08-03 北京木业邦科技有限公司 一种基于人工智能的单板缺陷检测方法、系统及设备
US10713483B2 (en) 2018-03-20 2020-07-14 Welch Allyn, Inc. Pupil edge detection in digital imaging
CN108459023A (zh) * 2018-03-27 2018-08-28 松下电子部品(江门)有限公司 双基准电容外观图像检测方法
CN109474809B (zh) * 2018-11-07 2021-06-11 深圳六滴科技有限公司 色差校正方法、装置、系统、全景相机和存储介质
JP7119985B2 (ja) * 2018-12-21 2022-08-17 トヨタ自動車株式会社 地図生成装置、地図生成システム、地図生成方法、及び地図生成プログラム
US12260534B2 (en) 2022-04-26 2025-03-25 Communications Test Design, Inc. Method to detect camera blemishes

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0951459A (ja) 1995-08-03 1997-02-18 Sanyo Electric Co Ltd ビデオカメラ
JPH10294870A (ja) 1997-04-18 1998-11-04 Ricoh Co Ltd 画像処理装置
JPH1127475A (ja) 1997-07-01 1999-01-29 Sharp Corp 画像読取方法および装置
JP2000217039A (ja) * 1999-01-21 2000-08-04 Sanyo Electric Co Ltd 点欠陥検出方法および点欠陥画素値補正方法
JP2000312314A (ja) * 1999-02-24 2000-11-07 Olympus Optical Co Ltd デジタルカメラ及びデジタルカメラのゴミ位置検出方法
US6195161B1 (en) 1998-03-02 2001-02-27 Applied Science Fiction, Inc. Apparatus for reflection infrared surface defect correction and product therefrom
US20020093577A1 (en) 2001-01-12 2002-07-18 Reiko Kitawaki Digital camera and method of controlling operation of same
JP2002247445A (ja) * 2001-02-16 2002-08-30 Matsushita Electric Ind Co Ltd 映像信号処理装置及び映像信号処理方法

Family Cites Families (54)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4982233A (en) * 1989-11-08 1991-01-01 Xerox Corporation Method and apparatus for sensing contamination within an optical scanning system
US5266805A (en) 1992-05-05 1993-11-30 International Business Machines Corporation System and method for image recovery
JPH0638113A (ja) 1992-07-17 1994-02-10 Sony Corp 撮像装置
JPH06245148A (ja) 1993-02-17 1994-09-02 Matsushita Electric Ind Co Ltd 画素欠陥補正装置
JP3125124B2 (ja) * 1994-06-06 2001-01-15 松下電器産業株式会社 欠陥画素傷補正回路
US5694228A (en) 1994-08-09 1997-12-02 Ricoh Company,Ltd. Document image processor with defect detection
US5884296A (en) * 1995-03-13 1999-03-16 Minolta Co., Ltd. Network and image area attribute discriminating device and method for use with said neural network
KR0181286B1 (ko) 1995-03-28 1999-05-01 김광호 Ccd 카메라의 디펙트 보상회로
JP3707187B2 (ja) * 1996-09-18 2005-10-19 コニカミノルタホールディングス株式会社 電子カメラ
JP3902823B2 (ja) 1996-11-29 2007-04-11 大日本印刷株式会社 筋状欠陥検査方法及び装置
US6125213A (en) 1997-02-17 2000-09-26 Canon Kabushiki Kaisha Image processing method, an image processing apparatus, and a storage medium readable by a computer
JP3785520B2 (ja) 1997-03-19 2006-06-14 コニカミノルタホールディングス株式会社 電子カメラ
JP3445100B2 (ja) * 1997-06-02 2003-09-08 キヤノン株式会社 位置検出方法及び位置検出装置
JP3540567B2 (ja) 1997-10-01 2004-07-07 オリンパス株式会社 電子的撮像装置
US6035072A (en) 1997-12-08 2000-03-07 Read; Robert Lee Mapping defects or dirt dynamically affecting an image acquisition device
JPH11239298A (ja) 1998-02-19 1999-08-31 Konica Corp 電子カメラ、画素信号補正方法及び記録媒体
JP3584389B2 (ja) * 1998-03-25 2004-11-04 富士写真フイルム株式会社 画像処理方法および画像処理装置
JP2000020691A (ja) 1998-07-01 2000-01-21 Canon Inc 画像処理装置及びその方法、撮像装置及びその制御方法並びにメモリ媒体
US6529618B1 (en) * 1998-09-04 2003-03-04 Konica Corporation Radiation image processing apparatus
GB9825086D0 (en) * 1998-11-17 1999-01-13 Vision Group Plc Defect correction in electronic imaging systems
US6123334A (en) * 1999-01-19 2000-09-26 Norris; L. Wayne Airport game
CA2365879C (en) * 1999-03-18 2009-11-24 Nkk Corporation Method for marking defect and device therefor
US6888958B1 (en) * 1999-03-30 2005-05-03 Kabushiki Kaisha Toshiba Method and apparatus for inspecting patterns
JP3825935B2 (ja) 1999-04-08 2006-09-27 キヤノン株式会社 画像処理装置及び画像処理方法及び記録媒体及び画像処理システム
JP2001057656A (ja) 1999-06-09 2001-02-27 Canon Inc 画像処理装置及びその制御方法並びにメモリ媒体
JP4130275B2 (ja) 1999-06-15 2008-08-06 松下電器産業株式会社 映像信号処理装置
JP2001000427A (ja) 1999-06-18 2001-01-09 Canon Inc 画像処理装置、画像処理システム、画像処理方法、及び記憶媒体
JP4279407B2 (ja) 1999-06-28 2009-06-17 富士フイルム株式会社 画素欠陥補正装置および画素欠陥検出装置ならびに方法
JP2001086411A (ja) 1999-09-13 2001-03-30 Matsushita Electric Ind Co Ltd 固体撮像装置
JP2001218115A (ja) * 2000-01-31 2001-08-10 Sony Corp 固体撮像装置及びその欠陥画素記録方法
JP3757747B2 (ja) * 2000-04-03 2006-03-22 株式会社ニコン 電子カメラ、画像処理プログラムを記録した記録媒体、および画像処理方法
JP3754870B2 (ja) * 2000-04-28 2006-03-15 キヤノン株式会社 画像読取装置、シェーディング補正方法、及び記憶媒体
JP3636046B2 (ja) * 2000-07-31 2005-04-06 株式会社日立国際電気 固体撮像素子の画素欠陥検出方法およびその方法を用いた撮像装置
JP2002101342A (ja) 2000-09-22 2002-04-05 Casio Comput Co Ltd 撮像素子の欠陥画素検出方法
US6868190B1 (en) * 2000-10-19 2005-03-15 Eastman Kodak Company Methods for automatically and semi-automatically transforming digital image data to provide a desired image look
US7142294B2 (en) * 2000-12-20 2006-11-28 Hitachi, Ltd. Method and apparatus for detecting defects
US20020126910A1 (en) 2001-01-02 2002-09-12 Eastman Kodak Company Method of calculating noise from multiple digital images utilizing common noise characteristics
FR2819331B1 (fr) * 2001-01-10 2003-03-28 Canon Kk Procede et dispositif de traitement et de marquage d'un ensemble de coefficients representatifs d'une image numerique
US6718069B2 (en) 2001-02-22 2004-04-06 Varian Medical Systems, Inc. Method and system for reducing correlated noise in image data
JP2002303586A (ja) * 2001-04-03 2002-10-18 Hitachi Ltd 欠陥検査方法及び欠陥検査装置
US7209168B2 (en) 2001-04-11 2007-04-24 Micron Technology, Inc. Defective pixel correction method and system
US6987892B2 (en) * 2001-04-19 2006-01-17 Eastman Kodak Company Method, system and software for correcting image defects
JP2002354340A (ja) 2001-05-24 2002-12-06 Olympus Optical Co Ltd 撮像装置
US6985180B2 (en) * 2001-06-19 2006-01-10 Ess Technology, Inc. Intelligent blemish control algorithm and apparatus
JP2003101872A (ja) 2001-09-21 2003-04-04 Konica Corp 撮影装置の製造方法及び撮影装置
JP4054184B2 (ja) * 2001-10-03 2008-02-27 オリンパス株式会社 欠陥画素補正装置
JP3884952B2 (ja) 2001-12-21 2007-02-21 株式会社日立製作所 撮像装置
KR100407158B1 (ko) * 2002-02-07 2003-11-28 삼성탈레스 주식회사 적외선 열상장비의 시변결점 보상방법 및 장치
JP4035356B2 (ja) 2002-04-10 2008-01-23 キヤノン株式会社 撮像装置およびその制御方法
JP2003338926A (ja) 2002-05-21 2003-11-28 Canon Inc 画像処理方法及び画像処理装置
JP4597859B2 (ja) * 2002-07-15 2010-12-15 ケーエルエー−テンカー コーポレイション マイクロリソグラフパターンの製作におけるパターンの認定、パターン形成プロセス、又はパターン形成装置
JP2004112010A (ja) 2002-09-13 2004-04-08 Canon Inc 画像読み取り装置及び該装置の制御プログラム
JP3938120B2 (ja) * 2003-09-17 2007-06-27 ノーリツ鋼機株式会社 画像処理装置、方法、及びプログラム
US7315658B2 (en) * 2003-09-30 2008-01-01 Fotonation Vision Limited Digital camera

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0951459A (ja) 1995-08-03 1997-02-18 Sanyo Electric Co Ltd ビデオカメラ
JPH10294870A (ja) 1997-04-18 1998-11-04 Ricoh Co Ltd 画像処理装置
JPH1127475A (ja) 1997-07-01 1999-01-29 Sharp Corp 画像読取方法および装置
US6195161B1 (en) 1998-03-02 2001-02-27 Applied Science Fiction, Inc. Apparatus for reflection infrared surface defect correction and product therefrom
JP2000217039A (ja) * 1999-01-21 2000-08-04 Sanyo Electric Co Ltd 点欠陥検出方法および点欠陥画素値補正方法
JP2000312314A (ja) * 1999-02-24 2000-11-07 Olympus Optical Co Ltd デジタルカメラ及びデジタルカメラのゴミ位置検出方法
US20020093577A1 (en) 2001-01-12 2002-07-18 Reiko Kitawaki Digital camera and method of controlling operation of same
JP2002209147A (ja) * 2001-01-12 2002-07-26 Fuji Photo Film Co Ltd ディジタル・カメラおよびその動作制御方法
JP2002247445A (ja) * 2001-02-16 2002-08-30 Matsushita Electric Ind Co Ltd 映像信号処理装置及び映像信号処理方法

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP1583356A4

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7885478B2 (en) 2005-05-19 2011-02-08 Mstar Semiconductor, Inc. Noise reduction method and noise reduction apparatus

Also Published As

Publication number Publication date
EP1583356A1 (en) 2005-10-05
EP1583356B1 (en) 2013-04-10
US8369651B2 (en) 2013-02-05
US20100092103A1 (en) 2010-04-15
US20060115177A1 (en) 2006-06-01
EP2461576B1 (en) 2016-05-11
CN1732682A (zh) 2006-02-08
US8031968B2 (en) 2011-10-04
CN1732682B (zh) 2010-04-21
CN101778222B (zh) 2012-06-13
EP1583356A4 (en) 2006-01-04
CN101778222A (zh) 2010-07-14
CN101778203B (zh) 2012-06-06
EP2461576A1 (en) 2012-06-06
US20120013772A1 (en) 2012-01-19
US7853097B2 (en) 2010-12-14
CN101778203A (zh) 2010-07-14

Similar Documents

Publication Publication Date Title
WO2004062275A1 (ja) 画像処理装置および画像処理プログラム
JP4186699B2 (ja) 撮像装置および画像処理装置
JP7015374B2 (ja) デュアルカメラを使用する画像処理のための方法および移動端末
JP4466015B2 (ja) 画像処理装置および画像処理プログラム
US7868922B2 (en) Foreground/background segmentation in digital images
WO2019085618A1 (en) Image-processing method, apparatus and device
CN106101549B (zh) 昼夜自动切换方法、装置及系统
CN108712608B (zh) 终端设备拍摄方法和装置
JP4196124B2 (ja) 撮像系診断装置、撮像系診断プログラム、撮像系診断プログラム製品、および撮像装置
JP2020537382A (ja) デュアルカメラベースの撮像のための方法および装置ならびに記憶媒体
CN101001318A (zh) 图像拍摄设备及其控制方法
JP6185249B2 (ja) イメージ処理装置及びイメージ処理方法
JP4419479B2 (ja) 画像処理装置および画像処理プログラム
JP2010206722A (ja) 画像処理装置および画像処理方法、ならびに、撮像装置
KR20010072430A (ko) 압축부호화 방법, 압축부호화 프로그램을 기록한기록매체, 및 촬상장치
JP4438363B2 (ja) 画像処理装置および画像処理プログラム
JP4466017B2 (ja) 画像処理装置および画像処理プログラム
JP4466016B2 (ja) 画像処理装置および画像処理プログラム
CN110771142A (zh) 摄像装置、摄像装置的控制方法及摄像装置的控制程序
CN107277372A (zh) 对焦方法、装置、计算机可读存储介质和移动终端
KR101327035B1 (ko) 카메라 모듈 및 이의 이미지 처리 방법
JP2011259344A (ja) 撮像装置
CN120238752A (zh) 处理设备、摄像系统、处理方法、存储介质和计算机程序产品
CN111345032A (zh) 图像传感器、光强感知系统及方法
JP2007259177A (ja) 撮像装置およびその制御方法

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A1

Designated state(s): CN US

AL Designated countries for regional patents

Kind code of ref document: A1

Designated state(s): AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HU IE IT LU MC NL PT RO SE SI SK TR

121 Ep: the epo has been informed by wipo that ep was designated in this application
WWE Wipo information: entry into national phase

Ref document number: 20038A77918

Country of ref document: CN

WWE Wipo information: entry into national phase

Ref document number: 2003768277

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2006115177

Country of ref document: US

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 10540972

Country of ref document: US

WWP Wipo information: published in national office

Ref document number: 2003768277

Country of ref document: EP

WWP Wipo information: published in national office

Ref document number: 10540972

Country of ref document: US