WO2004064388A1 - 画像処理装置および方法 - Google Patents

画像処理装置および方法 Download PDF

Info

Publication number
WO2004064388A1
WO2004064388A1 PCT/JP2003/015758 JP0315758W WO2004064388A1 WO 2004064388 A1 WO2004064388 A1 WO 2004064388A1 JP 0315758 W JP0315758 W JP 0315758W WO 2004064388 A1 WO2004064388 A1 WO 2004064388A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
luminance
unit
tone
log
Prior art date
Application number
PCT/JP2003/015758
Other languages
English (en)
French (fr)
Inventor
Tomoo Mitsunaga
Original Assignee
Sony Corporation
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 JP2003003135A external-priority patent/JP4161719B2/ja
Priority claimed from JP2003003134A external-priority patent/JP4214457B2/ja
Application filed by Sony Corporation filed Critical Sony Corporation
Priority to KR1020047014084A priority Critical patent/KR101051604B1/ko
Priority to US10/507,274 priority patent/US7570390B2/en
Priority to EP03778755A priority patent/EP1494462A4/en
Publication of WO2004064388A1 publication Critical patent/WO2004064388A1/ja

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/387Composing, repositioning or otherwise geometrically modifying originals
    • H04N1/393Enlarging or reducing
    • H04N1/3935Enlarging or reducing with modification of image resolution, i.e. determining the values of picture elements at new relative positions
    • 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/387Composing, repositioning or otherwise geometrically modifying originals
    • H04N1/393Enlarging or reducing
    • 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/407Control or modification of tonal gradation or of extreme levels, e.g. background level
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/14Picture signal circuitry for video frequency region
    • H04N5/20Circuitry for controlling amplitude response
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals
    • H04N9/68Circuits for processing colour signals for controlling the amplitude of colour signals, e.g. automatic chroma control circuits

Definitions

  • the present invention relates to an image processing apparatus and method, and in particular, converts a wide dynamic range image with a wider dynamic range of pixel values into a narrow dynamic range image with a narrower dynamic range of pixel values or enhances contrast.
  • the present invention relates to an image processing apparatus and method suitable for use in the case of Background art
  • solid-state imaging devices such as charge coupled devices (CCDs) and complementary metal-oxide semiconductors (CMOSs) are imaging devices such as video cameras and still cameras, component detection devices for factory automation (FA), medical electronic devices (MEs) Is widely used in optical measurement devices such as electronic endoscopes.
  • CCDs charge coupled devices
  • CMOSs complementary metal-oxide semiconductors
  • FA component detection devices for factory automation
  • MEs medical electronic devices Is widely used in optical measurement devices such as electronic endoscopes.
  • Display devices such as CRTs (Cathode Ray Tubes) and LCDs (Liquid Crystal Displays) that display moving and still images, projection devices such as projectors, and various printing devices.
  • the dynamic range is not broadened, and there is a limit to the brightness gradation that can be supported. For this reason, even if a wide DR image is taken, there is currently no device capable of displaying, projecting or printing it in that state.
  • the dynamic range of the pixel values of the wide DR image is narrowed, in other words, the image in which the luminance gradation is compressed and adapted to the dynamic range of the display device (hereinafter referred to as narrow DR image and
  • narrow DR image the image in which the luminance gradation is compressed and adapted to the dynamic range of the display device
  • tone compression technology a technology for generating (to be described)
  • the gradation compression technique proposed conventionally will be described.
  • the gradation compression technology is realized simply by redistributing the gradation of the pixel value of the wide DR image in accordance with the gradation of a narrower dynamic range that a display device or the like can cope with.
  • gradation redistribution rules are determined adaptively based on the luminance histogram of the input wide DR image (specifically, the gradation conversion curve is input image Calculation based on the histogram of
  • the first gradation compression technology is based on the premise that the ratio of the area occupied by the important objects in the image is large, and the distribution of many gradations that become luminance values near the peak of the histogram is performed. It is intended to determine the tonal conversion curve, and at least try to suppress the contrast drop in the important subject.
  • the second tone compression technique has the advantage that it does not have the problem of having a composition dependent on the image as does the first tone compression technique.
  • the high frequency emphasis filter There are problems such as over-shuttering in the outline portion and noise enhancement in the flat portion, and it can not be said that a good image can be obtained.
  • a third gradation conversion technique a wide DR image is separated into a low frequency component image and a high frequency component image, and the high frequency component image is subjected to appropriate gradation conversion processing on the low frequency component image as it is. Finally, we can mention a technique to add and combine them into one image.
  • the third gradation conversion technique since the high frequency component of the wide DR image remains as it is, it is possible to prevent the contrast reduction due to the gradation conversion.
  • the third tone conversion technology also has problems such as overshooting in the outline of the object and noise enhancement in the flat part.
  • a method has also been proposed to solve this problem by using a non-linear filter (eg, median filter) in the process of separating into low frequency component images and high frequency component images.
  • tone compression is performed by relatively local processing using neighboring pixels (first and second tone compression techniques); It is divided into those that perform tone compression using the entire image or a relatively large area (the third tone compression technology).
  • tone compression is performed by relatively local processing using neighboring pixels (first and second tone compression techniques); It is divided into those that perform tone compression using the entire image or a relatively large area (the third tone compression technology).
  • the former it becomes an unnatural image in which only very high frequency components are emphasized, and it can not be said that effective gradation compression results can be obtained.
  • the relatively low frequency component can be adjusted according to the emphasis of the high frequency component, and the effect of gradation compression is high. be able to.
  • the processing mainly requires a large amount of memory as a delay line or a frame memory, and there is a problem that it is not suitable for hardware implementation.
  • the third gradation compression technique requires a spatial filter when separating luminance into multiple frequency components, but does not apply artificial effects unless a relatively large spatial filter is applied to the image. Because it is not possible to apply proper gradation compression, a large amount of delay lines can be added to the circuit to implement a large spatial filter. Need to
  • a predetermined frame Since video signals must be output at a guaranteed rate, high-speed signal processing is required, and there is a strong demand for hardware-based gradation compression processing functions. Also, for example, even in the case of a digital still camera that takes a still image, it is necessary to output a monitor image at a predetermined frame rate to the finder in order to determine the composition, so the tone compression processing is fast. It is desirable to be there.
  • the second is the control of the amount of high-frequency contrast enhancement in high and low luminance regions.
  • the luminance is separated into the low frequency component and the high frequency component, the low frequency component is relatively suppressed, and the high frequency component is emphasized to maintain the contrast. It is common to perform gradation compression.
  • the present invention has been made in view of such a situation, and uses less memory capacity, less computations, is easy to implement in hardware, and has a large effect of gradation compression.
  • the purpose is to realize the technology.
  • the image processing apparatus comprises: a reduced image generation unit that generates a reduced image from an input image; a correction information acquisition unit that acquires correction information of the input image based on the reduced image; and converts the gradation of the input image.
  • the image processing apparatus is characterized by including gradation conversion means, wherein the gradation conversion means corrects the contrast of the input image using the correction information as processing before and / or after gradation conversion.
  • the image processing apparatus of the present invention is the luminance L of pixels constituting an input image by interpolation calculation using pixels constituting a reduced image.
  • the image processing apparatus may further include a smoothing means for generating a smoothed image obtained by smoothing the image, wherein the gradation conversion means comprises: luminance L c of pixels constituting the image; and luminance L L of pixels constituting the smoothed image It is possible to generate a contrast correction image based on a predetermined gain value g.
  • the gradation conversion means the luminance L u of pixels constituting the Contrast correction image, the following equation
  • the reduction means divides the input image into a plurality of blocks, calculates the average value of the luminances of the pixels belonging to each block, and uses the average value as the luminance of the pixels.
  • a configured reduced image can be generated.
  • the smoothing means specifies the position on the reduced image corresponding to the interpolation position which is the position of the pixel to be interpolated, and uses the pixels of the reduced image near the specified position to use the pixels of the smoothed image.
  • Brightness L! Can be calculated.
  • the smoothing means specifies a position on the reduced image corresponding to the interpolation position which is the position of the pixel to be interpolated, and bicubic interpolation using 4 ⁇ 4 pixels of the reduced image existing near the specified position.
  • the luminance of the pixel of the smoothed image L! Can be calculated.
  • the brightness L of the pixels constituting the image before input to the smoothing means may further include: logarithmic conversion means for logarithmically converting; and inverse logarithmic conversion means for inversely converting the luminance of the pixels constituting the contrast correction image.
  • the image processing apparatus of the present invention is the luminance L of pixels constituting an input image by interpolation calculation using pixels constituting a reduced image.
  • the image processing apparatus may further include: a smoothing means for generating a smoothed image obtained by smoothing the image; and a gain value setting means for setting a gain value g used when correcting the contrast;
  • a contrast correction image is generated based on the luminance L c of the pixels to be configured, the luminance L of the pixels constituting the smoothed image, and the gain value g, and the gain value setting means receives the gain value g.
  • the image processing apparatus of the present invention the luminance L of pixels composing the input image, the transformation function Conversion means for converting on the basis of the tone conversion image, smoothing means for smoothing the luminance L c of the pixels constituting the tone conversion image, and generation of a smoothed image, slope of the conversion function V It may further include a gain value setting means for setting a gain value g to be used when correcting the contrast based on the initial gain value g which is the reciprocal l / ⁇ .
  • the contrast correction means generates a contrast correction image based on the luminance L c of the pixels constituting the tone conversion image, the luminance L of the pixels constituting the smoothed image and the gain value g, and the gain values Setting means: Gain value g, Initial gain value g. , A reference gain value 1, and a first brightness threshold T h ⁇ a second brightness threshold T h 2 , and an attenuation value attn (Th X) T calculated by the brightness L c of a pixel forming the tone conversion image
  • the setting can be made based on h 2 , L c ).
  • the gain value setting unit is configured by:
  • the gradation conversion means is configured to calculate the luminance Lu of the pixels constituting the contrast correction image as follows:
  • the first brightness threshold T h may be a medium gray level
  • the second brightness threshold T h 2 may be a maximum white level.
  • the reduced image generation unit converts the input image into a tone conversion image based on the conversion function, and reduces the tone conversion image to generate a reduced image, and the correction information acquisition unit performs correction including the inclination of the conversion function.
  • Information may be acquired, and the gradation conversion means may correct the contrast of the tone-converted image based on the reduced image and the slope of the conversion function.
  • the image processing apparatus comprises: a reduced image corresponding to an image one frame before; It may further comprise holding means for holding the slope of the transformation function applied to the image before the frame.
  • the reduced image generation means converts the pixel values of the image of the current frame stepwise using one or more conversion functions, and the gradation conversion means is a reduced image held by the holding means,
  • the contrast of the tone-transformed image can be captured based on the product of the slopes respectively corresponding to one or more transformation functions to generate a contrast-captured image.
  • At least one type of conversion function may be a monotonically increasing function.
  • the image processing apparatus may further include an average value calculation unit that calculates an average value of pixel values of the tone conversion image, and at least one of the one or more conversion functions.
  • the slope can be made proportional to the reciprocal of the average value calculated by the average value calculation means.
  • the average value calculation means may divide the tone converted image into a plurality of blocks, calculate an average of pixel values of each block, and calculate a weighted addition value as an average value.
  • the reduced image generating means reduces the tone converted image to generate a first reduced image, and a value proportional to the inverse of the average value of the pixel values of the first reduced image is generated for each pixel of the first reduced image.
  • the values can be multiplied to produce a second reduced image.
  • the image processing apparatus of the present invention can further include logarithmic conversion means for logarithmically converting pixel values of an image of the current frame, and logarithmic inverse conversion means for inversely converting pixel values of the contrast correction image.
  • An image processing apparatus calculates luminance range information indicating a distribution range of luminance components of a contrast correction image gamma converted by the gamma conversion means, gamma conversion means for performing gamma conversion of pixel values of the contrast correction image.
  • the distribution of the pixel values of the contrast correction image gamma converted by the gamma conversion means based on the luminance range information calculation means and the luminance range information calculated by the luminance range information calculation means is within a predetermined range.
  • normalization means for normalizing.
  • the luminance range information calculation means calculates upper limit value and lower limit value of the luminance component of the contrast correction image gamma converted by the gamma conversion means as luminance range information
  • the normalization means calculates luminance range information
  • the upper limit value and the lower limit value of the luminance component of the contrast correction image calculated by the means are equal to the upper limit value and the lower limit value of the range of the luminance component that can be reproduced by the assumed reproduction device, respectively. It is possible to convert the pixel values of the contrast correction image.
  • the holding means may hold the luminance area information of one frame before calculated by the luminance area information calculating means.
  • the image may be a monochrome image composed of pixels having a luminance component.
  • the image may be a color image composed of pixels having a plurality of color components.
  • the reduced image generation means generates a first luminance image composed of pixels having luminance components based on a color image, converts the first luminance image into a tone-converted luminance image, and converts the tone-converted luminance. Based on the image, a color tone-transformed image composed of pixels having a plurality of color components can be generated.
  • the reduced image generation means calculates the difference between the value of each color component of the color image and the value of the luminance component of the first luminance image, calculates the product of the difference value and the slope of the conversion function, and calculates the tone.
  • Each color component of the tone-converted image can be calculated by adding to the value of each color component of the converted luminance image.
  • the reduced image generation means calculates an average value of luminance components of the first luminance image, calculates a coefficient proportional to the reciprocal of the average value, multiplies the coefficient by the value of each color component of the color image, and converts the tone.
  • Each color component of the image can be calculated.
  • the gradation conversion means generates a second luminance image composed of pixels having luminance components based on the color tone conversion image, and the second luminance image is held by the holding means. Based on the reduced image and the slope of the conversion function, generated by the conversion means The contrast of the color toned image may be corrected to produce a color contrast corrected image.
  • the image processing apparatus comprises a gamma conversion unit that performs gamma conversion on pixel values of a color contrast correction image, and a luminance component based on the color contrast correction image that is gamma converted by the gamma conversion unit.
  • Luminance area information calculation means for generating a third luminance image composed of pixels and calculating luminance area information indicating a distribution range of luminance components of the third luminance image; and Calculation by the luminance area information calculation means
  • the image processing apparatus may further include normalization means for normalizing the distribution of pixel values of the color contrast-captured image gamma-converted by the gamma conversion means to a predetermined range based on the luminance range information.
  • the image processing method of the present invention comprises a reduced image generation step of generating a reduced image from an input image, a correction information acquisition step of acquiring correction information of the input image based on the reduced image, and a gradation of the input image.
  • the tone conversion step corrects the contrast of the input image using the correction information as processing before and Z or after tone conversion.
  • a reduced image is generated from an input image, correction information of the input image is acquired based on the generated reduced image, and the gradation of the input image is converted.
  • the contrast of the input image is corrected using the correction information as processing before and / or after the gradation conversion.
  • FIG. 1 is a block diagram showing a configuration example of a digital video camera according to an embodiment of the present invention.
  • FIG. 2 is a block diagram showing a first configuration example of the DSP of FIG.
  • FIG. 3 is a block diagram showing a first configuration example of the tone curve correction unit of FIG.
  • FIG. 4 is a diagram showing an example of a tone curve.
  • FIG. 5 is a block diagram showing a second configuration example of the tone curve correction unit of FIG.
  • FIG. 6 is a block diagram showing a third configuration example of the tone curve correction unit of FIG.
  • FIG. 7 is a block diagram showing a configuration example of the reduced image generation unit of FIG.
  • FIG. 8 is a block diagram showing a configuration example of the average value calculation unit of FIG.
  • FIG. 9 is a block diagram showing a configuration example of the contrast correction unit of FIG.
  • FIG. 10 is a block diagram showing a configuration example of the interpolation unit of FIG.
  • FIG. 11 is a diagram for explaining the processing of the interpolation unit of FIG.
  • FIG. 12 is a block diagram showing a configuration example of the gain value setting unit of FIG.
  • FIG. 13 is a block diagram showing an example of the configuration of the contrast enhancing unit of FIG.
  • FIG. 14 is a diagram for explaining the processing of the luminance range normalization unit of FIG. 2;
  • FIG. 15 is a block diagram showing a configuration example of the luminance range information calculation unit of FIG.
  • FIG. 16 is a block diagram showing a configuration example of the luminance range normalization unit of FIG.
  • FIG. 17 is a block diagram showing an example of the configuration of a composite portion that can be substituted for the tone carp correction portion to the contrast correction portion of FIG.
  • FIG. 18 is a flow chart for explaining gradation compression processing by the first configuration example of the DSP.
  • FIG. 19 is a flowchart explaining the details of the process of step S1 of FIG.
  • FIG. 20 is a flowchart explaining the details of the process of step S2 of FIG.
  • FIG. 21 is a block diagram showing a second configuration example of the DSP of FIG.
  • FIG. 22 is a block diagram showing a first configuration example of the tone curve correction unit of FIG.
  • FIG. 23 is a block diagram showing a second configuration example of the tone carp capture portion of FIG.
  • FIG. 24 is a block diagram showing a third configuration example of the tone curve correction unit of FIG.
  • FIG. 25 is a block diagram showing a configuration example of the reduced image generation unit of FIG. 21.
  • FIG. 26 is a block diagram showing a configuration example of the contrast correction unit in FIG.
  • FIG. 27 is a block diagram showing a configuration example of a composite portion that can be replaced with the tone carp correction portion to the contrast correction portion of FIG.
  • FIG. 28 is a block diagram showing a configuration example of the luminance range information calculation unit of FIG.
  • FIG. 29 is a flowchart for explaining gradation compression processing by the second configuration example of the DSP.
  • FIG. 30 is a flowchart explaining the details of the process of step S 43 in FIG.
  • FIG. 31 is a flowchart explaining the details of the process of step S44 in FIG.
  • FIG. 32 is a block diagram showing a configuration example of an image processing system to which the present invention is applied.
  • FIG. 33 is a flow chart explaining the operation of the image processing system shown in FIG.
  • FIG. 34 is a block diagram showing a first configuration example of the image processing apparatus shown in FIG.
  • FIG. 35 is a block diagram showing an example of the configuration of the tone curve correction unit shown in FIG.
  • FIG. 36 is a diagram showing an example of a tone curve used in the first configuration example of the image processing apparatus.
  • FIG. 37 is a block diagram showing a configuration example of the smoothed luminance generation unit shown in FIG.
  • FIG. 38 is a block diagram showing a configuration example of the reduced image generation unit shown in FIG. 37.
  • FIG. 39 is a block diagram showing an example of the configuration of the average value calculation unit shown in FIG.
  • FIG. 40 is a block diagram showing an example of the configuration of the interpolation unit shown in FIG.
  • FIG. 41 is a block diagram showing a configuration example of the gain value setting unit shown in FIG. Fig. 42 is a block diagram showing an example of the configuration of the contrast correction unit shown in Fig. 34. is there.
  • FIG. 43 is a flow chart for explaining gradation compression image generation processing according to the first configuration example of the image processing apparatus.
  • FIG. 44 is a block diagram showing a second configuration example of the image processing apparatus shown in FIG.
  • FIG. 45 is a flow chart for explaining gradation compression image generation processing according to the second configuration example of the image processing apparatus.
  • FIG. 46 is a block diagram showing a configuration example of a general-purpose personal computer. BEST MODE FOR CARRYING OUT THE INVENTION
  • FIG. 1 shows an example of the configuration of a digital video camera according to an embodiment of the present invention.
  • the digital video camera 1 captures an object, generates a wide DR image having a wider dynamic range of pixel values than usual, records the image on a predetermined storage medium, and also serves as a finder for composition determination and an image monitor. It converts the wide DR image into a narrow DR image with a narrow dynamic range of pixel values and outputs it to the displayed display or external device.
  • the digital video camera 1 is roughly divided into an optical system, a signal processing system, a recording system, a display system, and a control system.
  • the optical system includes a lens 2 for condensing an optical image of an object, a diaphragm 3 for adjusting the light amount of the optical image, and a CCD image for photoelectrically converting the condensed optical image at a predetermined frame rate to generate a wide DR image. It consists of sensor 4.
  • a color image consisting of luminance signals of multiple channels (for example, three channels) and a monochrome image consisting of luminance signals of one channel Two cases are described.
  • the signal processing system samples the wide DR image output from the CCD image sensor 4 For example, a wide DR image whose noise has been removed by the correlated double sampling circuit (CDS) 5 and the correlated double sampling circuit 5 that reduce noise by switching to a value having a bit width of about 14 to 16 bits, for example. It comprises an AZD converter 6 that performs AD conversion, and a DSP (Digital Signal Processor) 7 that performs gradation compression processing on a wide DR image output from the A / D converter 6.
  • CDS correlated double sampling circuit
  • An image signal with a large number of gradations such as a wide DR image having a bit width of 1 to 16 bits output from the A / D converter 6, can be a normal video such as luminance Y and color differences Cr and Cb.
  • the gradation compression processing by DSP 7 is performed so that the gradation can be compressed within the range that can be reproduced with a normal video signal such as luminance Y and color differences C r and C b.
  • the DSP 7 will be described in detail with reference to FIG.
  • the recording system of the digital video camera 1 encodes the wide DR image or narrow DR image input from the DSP 7 and records it in the memory 13 or reads out and decodes code data stored in the memory 13.
  • CODEC ompression / decompression 12 to be supplied to DSP 7 and memory 13 consisting of magnetic disk, optical disk, magneto-optical disk, semiconductor etc. for storing encoded wide DR image or narrow DR image Configured
  • the display system DA converts the narrow DR image supplied from the DSP 7 D / A converter 9, DZA converter 9 output analog narrow DR image, normal video signals such as luminance Y, color difference C r and C b And a display 1 1.
  • the display 1 1 comprises a video encoder 10 outputting it to a display 1 1 and a display 1 1 comprising, for example, an LCD (Liquid Crystal Display) that functions as a finder video monitor by displaying an image corresponding to the video signal. .
  • the control system includes a timing generator (TG) 8 that controls the operation timing of the CCD image sensor 4 to DSP 7, an input device 15 that receives various operations from the user, and a CPU that controls the entire digital video camera 1. (Central Processing Unit) 14
  • the image (incident light) is incident on the CCD image sensor 4 through the lens 2 and the aperture 3, photoelectrically converted by the CCD image sensor 4, and the electrical signal to be the pixel of the wide DR image obtained is correlated double
  • the noise is removed by the sampling circuit 5, and after being digitized by the A / D converter 6, the signal is supplied to the DSP 7.
  • the DSP 7 performs gradation compression processing on the wide DR image input from the A / D converter 6, generates a narrow DR image, and outputs it to the D / A converter 9 or CODEC 12 or both. Do.
  • the narrow DR image supplied to the D / A converter 9 is DA converted, converted into a normal video signal by the video encoder 10, and the image is displayed on the display 11.
  • the narrow DR image supplied to the CODEC 12 is encoded and recorded in the memory 13. This is the end of the description of the operation outline of the digital video camera 1.
  • DSP 7 which is the main object of the present invention will be described.
  • FIG. 2 shows a first configuration example of the DSP 7 corresponding to a wide DR image which is a mono-port image.
  • a monochrome wide DR image input to the DSP 7 will be described as a wide DR luminance image L.
  • the pixel value (that is, the luminance value) of the wide DR luminance image is described as L (p).
  • the logarithmic conversion unit 21 logarithmically converts the input luminance L (p), and outputs the obtained logarithmic luminance log L (p) to the tone curve correction unit 22.
  • the tone curve correction unit 22 applies a tone curve prepared in advance to the input logarithmic luminance log L (p) to convert the gradation into a compression direction, and obtains the logarithmic luminance log L c (p ) Is output to the reduced image generation unit 23 and the contrast correction unit 25.
  • the tone curve correction unit 2 2 indicates the slope of the applied tone curve.
  • the representative value ⁇ is output to the contrast correction unit 25 .
  • the representative value ⁇ that indicates the slope of the applied tone curve will be described simply as the representative value ⁇ .
  • Reduced image generating unit 2 based on the logarithmic luminance for one frame inputted from the tone curve correction section 2 2 log L c (p) , to generate a reduced image logL c i, held in the reduced image memory 24
  • the contrast correction unit 25 transmits the contrast weakened by the tone curve correction of the logarithmic luminance logL c (p) of the current frame input from the tone curve correction unit 22 to the representative value y and the reduced image memory 24. corrected based on the previous frame of the reduced small image logL cl held, and outputs the resulting logarithmic luminance logL u a (p) to the logarithmic inverse transformation unit 26.
  • the inverse logarithmic conversion unit 26 inversely converts the logarithmic luminance log L u (p) whose contrast has been corrected into the logarithmic luminance and outputs the obtained luminance L u (p) of the normal axis to the gamma correction unit 27.
  • the gamma correction unit 27 performs gamma correction on the luminance Lu (p) input from the logarithmic inverse conversion unit 26 in consideration of the gamma characteristics of the reproduction device (for example, the display 11), and obtains the gamma correction obtained.
  • the luminance Y (p) of is output to the luminance information calculation unit 28 and the luminance range normalization unit 30.
  • the luminance information calculation unit 28 calculates luminance area information indicating the distribution of luminance for each luminance Y (p) of one frame input from the gamma correction unit 27 and stores the information in the luminance area information memory 29.
  • the luminance range information is information indicating the range of luminance distribution in one frame, and, for example, the luminance Y d closest to the darkest and the luminance Y b closest to the brightest are luminance range information [Y It is calculated as d , Y b ].
  • the luminance range normalization unit 30 is configured to obtain the luminance range information [Y d , YJ of the previous frame stored in the luminance range information memory 29 ] , based on the luminance Y (p) of the current frame input from the gamma correction unit 27. Is converted so that the distribution range matches the range that can be represented by the reproduction device (for example, display 11), and the obtained luminance Y n ( ⁇ ) is output to the subsequent stage as the pixel value of the narrow DR image.
  • the reduced image generation unit 23 generates a reduced image logL cl and the luminance range information calculation unit 28 calculates luminance range information [Y d , Y b ].
  • the reduced image logL cl and the luminance range information [Y d , YJ are hereinafter referred to as intermediate information.
  • intermediate information is calculated for each frame of the input wide DR luminance image, and the calculated intermediate information is used to process the wide DR luminance image one frame later.
  • the DSP 7 uses the intermediate information of one frame before for the gradation compression for the current frame by selecting the information that is very unlikely to change temporally as the information. By adopting such a configuration, it is possible to prevent an increase in memory usage and circuit size even when mounted.
  • FIG. 3 shows a first configuration example of the tone curve correction unit 22.
  • the LUT memory 41 has a look-up table (hereinafter referred to as LUT) corresponding to a monotonically increasing tone carp as shown in FIG. 4 and a representative value indicating the slope of the tone curve. ⁇ is held in advance. Note that, instead of the LUT, a function corresponding to tone carp may be held.
  • the table reference unit 42 corrects the logarithmic luminance log L (p) to the logarithmic luminance log L c (p) based on the LUT stored in the LUT memory 41.
  • Figure 4 shows an example of a tone curve, where the horizontal axis is the input luminance L (p) and the vertical axis is the luminance L c (p) after tone curve correction normalized to [0, 1]. It is displayed with a number axis.
  • the gray scale compression does not work so strongly in the high brightness area and the low brightness area. Good color tone with less blur and black blur can be obtained.
  • the middle luminance range is On the other hand, since the contrast correction to be described later is sufficiently applied, a good narrow DR image without contrast deterioration can be obtained even in the middle luminance range.
  • the representative value ⁇ indicating the inclination of the tone curve for example, the inclination of the entire luminance range may be obtained and the average value thereof may be used as the representative value ⁇ .
  • the representative value ⁇ 0.67. ⁇
  • FIG. 5 shows a second configuration example of the tone carp correction unit 22.
  • the second configuration example does not use the LUT prepared in advance as in the first configuration example, but calculates the representative value ⁇ for each frame and calculates the logarithmic luminance log L (p) as the logarithmic luminance It is corrected to log L c (p).
  • the average luminance calculation unit 51 calculates an average value ⁇ of logarithmic luminance logL (p) for one frame.
  • the divider 52 divides a predetermined constant log L T by the average value ⁇ to calculate a representative value y.
  • the ⁇ memory 53 holds the representative value ⁇ input from the divider 52.
  • the multiplier 54 multiplies the logarithmic luminance log L (p) of the current frame by the representative value ⁇ one frame before held in the gamma memory 53 to obtain logarithmic luminance log L c (p) after tone curve correction.
  • a predetermined constant log L T is defined as a moderate level of logarithmic luminance
  • the tone curve correction of the value having the average value of the logarithmic luminance log L (p) of one frame equal to log L T is performed. It will be converted to logarithmic luminance logL e (p).
  • the representative value ⁇ is calculated for each frame, it is practically determined based on the average value ⁇ of the logarithmic luminance log L (p) of each frame, so it can be expected that there is not much change between the previous and next frames . Therefore, this representative value ⁇ is also used for tone curve correction for the current frame, as in the above-described reduced image log L c i and luminance range information [Y d , YJ.
  • the representative value ⁇ will also be included in the intermediate information.
  • FIG. 6 shows a third configuration example of the tone carp correction unit 22.
  • the third configuration example is, so to speak, a combination of the first configuration example and the second configuration example.
  • the LUT memory 61 has stored in advance a LUT corresponding to a tone carp as shown in FIG. 4 and a representative value ⁇ indicating the slope of the tone curve.
  • the table reference unit 62 corrects the logarithmic luminance log L (p) to the logarithmic luminance log L c '(p) based on the LUT stored in the LUT memory 61 and calculates the average luminance calculation unit 63 and the multiplication. Output to device 66.
  • the average luminance calculator 63 calculates the average value ⁇ of the logarithmic luminance log L c ′ (p) for one frame, and outputs the average ⁇ to the divider 64.
  • the divider 64 divides a predetermined constant log L T by the average value to calculate a representative value ⁇ 2 and causes the ⁇ 2 memory 65 to hold it.
  • the multiplier 66 multiplies the logarithmic luminance logL c , (p) of the current frame by the representative value y 2 of one frame previous held in the y 2 memory 65 to obtain the logarithmic luminance logL after tone carp correction. Calculate c (p).
  • FIG. 7 shows a configuration example of the reduced image generation unit 23.
  • those classified into the first block are supplied to the mean value calculating unit 72-1, and those classified into the second block are supplied to the mean value calculating unit 72-2.
  • the average value calculation units 72-1 to 72-N are simply referred to as the average value calculation unit 72, when it is not necessary to distinguish them individually.
  • the average value of (p) is calculated and output to the combining unit 73.
  • the combining unit 73 generates a reduced image logL c i of m ⁇ n pixels having the average value of the logarithmic luminance log L c (p) input from the average value calculation unit 72 i as a pixel value, and performs reduction in the latter stage.
  • the image memory 24 holds it.
  • FIG. 8 shows a configuration example of the average value calculation unit 72.
  • the adder 8 1 of the average value calculation unit 72 adds the value held by the register (r) 8 2 to the logarithmic luminance logL e (p) input from the sorting unit 7 1 of the previous stage, and the register (r) 8 Update the value held by 2 Ru.
  • a divider 83 divides Q into a block by dividing the value finally held by the register 82 by the number of pixels Q constituting one block. Calculate the mean value of c (p).
  • FIG. 9 shows a configuration example of the contrast acquisition unit 25.
  • the interpolation position designation unit 91 of the contrast correction unit 25 is the pixel position p of the logarithmic luminance log L c (p) input from the tone force correction unit 22 of the previous stage (hereinafter also described as the interpolation position p) To the interpolator 92.
  • the interpolation unit 92 calculates a pixel log L ol (p) corresponding to the interpolation position p by interpolation using the reduced image log L ct of one frame before stored in the reduced image memory 24 and performs contrast emphasis. 9 Output to 4
  • the gain value setting unit 93 is based on the representative value for the previous frame from the tone curve correction unit 22 and the logarithmic luminance logL c (p) of the current frame, the number luminance ratio logL c (p) of the current frame.
  • a gain value g (p) that determines the amount of contrast enhancement is calculated.
  • the contrast emphasizing unit 94 emphasizes the contrast other than the low frequency component based on the logarithmic luminance logL c (p) of the current frame based on the gain value g (p) and the interpolation value logL el (p) of the reduced image. Calculate the logarithmic luminance logL u (p).
  • FIG. 10 shows a configuration example of the interpolation unit 92.
  • the interpolator 92 interpolates the pixel logL cl (p) corresponding to the interpolation position P by bicubic interpolation using 4 ⁇ 4 pixels in the vicinity of the interpolation position p of the reduced image logL c of the previous frame. It is
  • the neighborhood selection unit 1 0 1 receives the input of the interpolation position p, and from the reduced image logL ci of the mX n pixels one frame earlier held in the reduced image memory 24, 4 X 4 near the interpolation position p
  • the pixel value a [4] [4] of the pixel is acquired and output to the product-sum unit 104.
  • the notation of a [i] [j] indicates that the pixel value a is a two-dimensional array data of i X j.
  • the neighborhood selection unit 101 determines the horizontal displacement dx between the acquired pixel value a [4] [4] and the interpolation position p in the horizontal direction, and the vertical displacement d y in the horizontal coefficient calculation unit. Output to the 1 0 2 or vertical coefficient calculation unit 1 0 3.
  • the horizontal coefficient calculation unit 102 calculates the cubic interpolation coefficient k x [4] in the horizontal direction based on the horizontal direction shift amount d X input from the neighborhood selection unit 101.
  • the vertical coefficient calculation unit 103 calculates a cubic interpolation coefficient k y [4] in the vertical direction based on the vertical direction displacement amount dy input from the neighborhood selection unit 101.
  • the horizontal cubic interpolation coefficient k x [4] is calculated using the following equation (1) ′.
  • the gain value setting unit 93 sets the gain value g (p) for adjusting the amount of enhancement when the contrast emphasizing unit 94 in the latter stage enhances other than the low frequency range.
  • the gain value g (p) 1
  • the contrast is neither enhanced nor suppressed in the contrast emphasizing unit 94.
  • the gain value g (p) 1 1
  • the contrast is emphasized corresponding to that value.
  • the gain value g (p) ⁇ 1 the contrast 1 is suppressed corresponding to that value.
  • the contrast of the image is already suppressed by tone compression using tone curve correction, but the amount of suppression depends on the slope of the tone curve. For example, if a tone curve with a small slope is applied to perform strong tone compression, the control of contrast will also be strong. Also, for example, if a straight line with a slope of 1 is applied as a tone carp, the image does not change, that is, the suppression of contrast is not performed.
  • the representative value ⁇ of the slope of the tone curve is more than 1 If smaller, the inverse value ⁇ of the representative value ⁇ of the slope of the tone curve is adopted as the gain value so that the gain value becomes larger than one.
  • Attn (p) attn (log L gray , log L wh j te , log L c (p)) log L c (p)-log L
  • logL gray is shows the logarithmic luminance of moderate gray level
  • logL wh ite is Ri Contact shows the logarithmic luminance of the white clip level (maximum white level)
  • FIG. 12 shows an example of the configuration of the gain value setting unit 93.
  • the subtractor 1 1 2 calculates (g. 1 1) and outputs the result to the multiplier 1 18.
  • Subtractor 1 1 3 is the log luminance logL. Calculate (p) and the difference (log L c (p)-log L 6 ray ) of the log luminance gray L of the moderate gray level and output it to the divider 115. Subtracter 1 1 4 and the logarithmic luminance logL wh ite white clip level, the difference between the logarithmic luminance logL g r ay (logL wh ite - logL gt ay.) By calculating the divider: outputs to I 1 5 .
  • the calculator 1 1 5 divides the output of the subtractor 1 1 3 (log L c (p)-log L gray ) by the output of the subtracter 1 14 (log L wh ite — log L gray ) to obtain an absolute value calculator 1 Output to 1 6.
  • the absolute value calculator 1 16 calculates the absolute value of the output of the divider 1 1 5 and outputs it to the clipper 1 1 7. When the output of absolute value calculator 1 1 6 exceeds 1, clipper 1 1 7 clips the value to 1, and when the output of absolute value calculator 1 1 6 does not exceed 1, the value is clipped to 1. Output the value as it is to the multiplier 1 18 as attn (p).
  • the multiplier 1 18 multiplies the output of the subtractor 1 1 2 by the output of the clipper 1 1 7 and outputs the result to the adder 1 1 9.
  • the adder 1 1 9 adds 1 to the output of the multiplier 1 1 8 and outputs the result of the operation to the subsequent stage as a gain value g (p).
  • FIG. 13 shows a configuration example of the contrast enhancing unit 94.
  • Subtracter 1 2 1, the logarithmic luminance logL c (p), the difference between the interpolation value logL c I (p) of the reduced image (log L c (p) -logL cl (p)) and calculates the multiplication Output to the controller 122.
  • the multiplier 1 2 2 calculates the product of the output of the subtracter 1 21 and the gain value g (p), and outputs the product to the adder 1 23.
  • the adder 1 23 outputs to the output of the multiplier 1 22 the interpolated value of the reduced image log L c ! (p) is added, and the logarithmic luminance logL u (p) subjected to contrast capture is output to the subsequent stage.
  • the interpolation value logL ct (p) of the reduced image is a value interpolated based on the reduced image of m ⁇ n pixels, it has only the very low frequency component of the image log L c before reduction. is there.
  • the output of the subtractor 1 2 1 (log L c (p) ⁇ log L cl ( ⁇ )) ⁇ is the original logarithmic brightness log L c (p) minus only the very low frequency component.
  • the luminance signal is separated into two components of extremely low frequency range and the other components, and of these, after emphasizing by multiplying the gain value g (p) other than the low frequency range component, the adder 1 is added again
  • What is synthesized according to 23 is the logarithmic luminance logL u (p) subjected to the contrast correction.
  • the contrast emphasizing unit 94 components in the low to middle frequency range except the very low frequency range are emphasized with the same gain value g (p).
  • the logarithmic luminance logL u (p) with contrast correction is strong only at high frequencies. There is no local overshoot of the edge, which is noticeable when adjusted, and it is made possible to obtain an image in which the contrast is naturally enhanced even for the eyes.
  • tone compression processing by DSP 7 is to convert wide DR intensity images into narrow DR images compatible with the dynamic range of the playback device such as Display 1 1.
  • the combined tone curve is prepared in advance in the tone curve correction unit 22. As a result, it is possible to properly perform gradation compression on a large number of wide DR luminance images that have been captured.
  • the dynamic range of the incident light may not be so large originally, so if the image is subjected to gradation compression processing, gradation compression will be performed more than necessary, and the playback device The luminance may be pushed into a range narrower than the reproducible dynamic range of.
  • the dynamic range of the luminance signal Y (p) after gamma correction is set as the dynamic range where the reproduction device can be reproduced as the final stage processing of the gradation compression processing. Normalize the gamma-corrected luminance signal Y (p) to match the range.
  • FIG. 14 shows a state of the luminance area normalization processing by the luminance area normalization unit 30.
  • the horizontal axis indicates the gamma-corrected luminance Y before the luminance range normalization
  • the vertical axis indicates the luminance Y n after the luminance range normalization.
  • the tone conversion curve a is The conversion table used when converting luminance Y into Y n is shown.
  • a hatched figure 1 31 shown below the line graph is an example of a histogram of the luminance image Y before luminance range normalization.
  • the dynamic range narrower than the dynamic range from the minimum luminance Y min to the maximum luminance Y max that can be generated by the digital video camera 1 is grayed out.
  • a compressed luminance image is obtained There is.
  • this dynamic range is output to the playback device as it is, the reproducible dynamic range of the playback device is not used effectively, so the luminance distribution of the luminance image Y before the brightness range normalization covers the entire dynamic range of the playback device. Perform normalization to be distributed over the whole.
  • a range [Y d , YJ] in which the histogram shape 131 of the luminance image Y before luminance area normalization is distributed is calculated as luminance area information of the luminance image Y before luminance area normalization.
  • the luminance range [Y d , YJ before luminance range normalization is mapped to the luminance range [Y na , Y ns ] slightly narrower than the luminance range of the playback device [Y n b , Y no ].
  • the tonal conversion curve was determined, in order to prevent abrupt luminance clipping around the luminance Y nb and Y nc from appearing on the image.
  • the luminances Y na and Y ns are set in advance to appropriate values based on the luminances Y nb and Y nc .
  • the luminance area information calculation unit 28 performs the acquisition of the luminance area [Y d , YJ before the luminance area normalization, and the determination of the gradation conversion curve and the calculation of the luminance Y n ( ⁇ ) are the luminance area normalization unit. 30 runs.
  • FIG. 15 shows a configuration example of the luminance range information calculation unit 28.
  • the thinning-out unit 141 selects the luminance ⁇ ( ⁇ ) input from the gamma capturing unit 27 based on the pixel position] ?. That is, only the luminance of the pixel at the preset pixel position is supplied to the rear-stage sorting unit 142 and the MAX sorting unit 145.
  • the combination of the comparing unit 143 and the register 144 is arranged in a series of k, and the input luminance Y (p) is stored in the registers 144-1 to 1441 fc in ascending order. It is done.
  • the comparing unit 143-1 compares the luminance Y (p) from the thinning-out unit 141 with the value of the register 144-11, and the luminance Y (p) from the thinning-out unit 141 corresponds to the value of the register 144-11. If the value is also small, the values of the registers 144-11 are updated using the luminance Y (p) from the thinning-out unit 141. On the contrary, when the luminance Y (p) from the thinning-out portion 141 is not smaller than the value of the register 144-1, the luminance Y (p) from the thinning-out portion 141 is supplied to the comparing portion 143_2 in the latter stage. .
  • the comparison unit 143-2 compares the luminance Y (p) from the comparison unit 143-1 with the value of the register 1 442_2, and the luminance Y (p) from the comparison unit 143_1 corresponds to the value of the register 144-2. If smaller, update the value of the register 1 44 _ 2 using the luminance Y (p) from the comparing section 143-1. On the other hand, when the luminance Y (p) from the comparison unit 143-1 is not smaller than the value of the register 144-12, the luminance Y (p) from the comparison unit 143-1 is compared with the comparison unit 143-3 in the latter stage. Supplied to
  • the comparison unit 143 - 3 at the stage where one frame of the luminance Y (p) is input, the minimum value Y mi n luminance Y (p) to register 144_ 1 is held, the register 144 The luminance Y (p) is held in ascending order from 2 to 144 k, and is output to the subsequent stage as the luminance Y d of the luminance Y (p) power ⁇ luminance area information held in the register 144-k.
  • the MAX sorting unit 145 is arranged by k combinations of the comparing unit 146 and the register 147 arranged in series, and is configured to hold the input luminance Y (p) in the registers 147-1 to 147-k in descending order of magnitude. There is.
  • the comparing unit 146-1 compares the luminance Y (p) from the thinning-out unit 141 with the value of the register 147-1 and the luminance Y (p) from the thinning-out unit 141 corresponds to the value of the register 144_1. If it is larger, the value of the register 14 7-1 is updated using the luminance Y (p) from the thinning unit 14 1. On the contrary, the luminance Y (p) from If it is not larger than the value of the resistor 147_1, the luminance Y (p) from the thinning-out unit 141 is supplied to the comparing unit 146-2 in the subsequent stage.
  • the comparing unit 146-2 compares the brightness Y (p) of the comparing unit 146_1 with the value of the register 147-12, and the brightness Y (p) from the comparing unit 146-1 is the value of the register 147-2. If it is larger, the value of the register 147-2 is updated using the luminance Y (p) from the comparator 146-1. On the other hand, when the luminance Y (p) from the comparator 146-1 is not larger than the value of the register 1 4 7-2, the luminance Y (p) from the comparator 146-1 is the comparator 146 of the latter stage. — Supplied to 3.
  • the comparison unit 146-3 and later 1 the luminance Y (p) mosquito input stage of frames
  • the maximum value Y ma x luminance Y (p) is held in the register 147- 1
  • the luminance Y (p) is held in the descending order, and is output to the subsequent stage as the luminance Y b of the luminance Y (p) power area information held in the register 147 — k.
  • the luminance Y (p) input to the MIN sort unit 142 and the MAX sort unit 145 is decimated by the decimation unit 141, the interval of the decimation, the MIN sort unit 142, and the MAX sort unit 145
  • the number of stages k it is possible to obtain, for example, luminances Y d and Y b corresponding to, for example, 1% each of the upper limit and the lower limit, among all the pixels of one frame.
  • FIG. 16 shows a configuration example of the luminance range normalization unit 30.
  • the luminance area normalization unit 30 determines the gradation conversion curve ⁇ , and uses the gradation conversion curve H to calculate the luminance ⁇ ( ⁇ ) after gamma acquisition with the luminance ⁇ ⁇ after the luminance area normalization. It converts to ( ⁇ ).
  • the luminance range normalization unit 30 since the gradation conversion curve is composed of five line segments, in the luminance range normalization unit 30, the range of which line segment the input brightness ⁇ ( ⁇ ) is determination is made as to whether or not, by applying one of five line segments composing the grayscale conversion curve Monument input luminance Upsilon ([rho), the luminance after the luminance range normalization Upsilon eta ([rho Convert to).
  • the selector 1 51 of the luminance range normalization unit 30 receives the luminance Y max , Y b , Y d , and the like input to the input terminals a to h based on the luminance Y (p) input to the input terminal i.
  • Y mi Four luminances out of n , Y nc , Y ns , Y na and Y nb are output from output terminals j to m. This correspondence is as shown in the following equation (6).
  • the subtractor 1 52 calculates the difference between the output of the output terminal k and the output of the output terminal j, and outputs the result to the divider 1 55.
  • the subtractor 1 5 3 calculates the difference between the output of the output terminal 1 and the output of the subtractor 1 54, and outputs the result to the divider 1 55.
  • the subtractor 154 calculates the difference between the luminance Y (p) and the output of the output terminal m, and outputs the result to the multiplier 1 56.
  • the divider 1 5 5 calculates the ratio of the output of the subtractor 1 5 2 to the output of the subtractor 1 5 3 and outputs the result to the multiplier 1 5 6.
  • the multiplier 1 56 calculates the product of the output of the divider 1 5 5 and the output of the subtracter 1 54, and outputs the product to the adder 1 57.
  • the adder 1 5 7 adds the output of the output terminal] 'and the output of the multiplier 1 5 6 and outputs the result.
  • the output Y n ( ⁇ ) of the adder 1 5 7 is expressed by the following equation (7) showing a line segment of the gradation conversion curve ⁇ determined based on the luminance ⁇ ( ⁇ ) after gamma correction .
  • the average luminance calculation unit 63 of the tone curve correction unit 22 shown in FIG. 6 and the average luminance calculation unit 72 of the reduced image generation unit 23 shown in FIG. 7 execute the same calculation. If you pay attention to the above, it is possible to reduce the amount of computation with a simpler circuit configuration.
  • the tone carp correction unit 22, the reduced image generation unit 23, the reduced image memory 24, and the contrast correction unit 25 shown in FIG. 2 may be combined to provide a composite unit as shown in FIG.
  • the composite unit 160 can replace the tone curve correction unit 22, the reduced image generation unit 23, the reduced image memory 24, and the contrast acquisition unit 25 shown in FIG. 2.
  • the LUT memory 1 61 of the composite unit 160 holds in advance a LUT corresponding to a tone carp as shown in FIG. 4 and a representative value ⁇ indicating the slope of the tone curve.
  • the table reference unit 16 2 corrects the logarithmic luminance log L (p) input from the upper stage to the logarithmic luminance log L c , (p) based on the LUT stored in the LUT memory 1 61 and reduces the image Output to generator 1 63 and multiplier 1 72.
  • the reduced image generation unit 163 divides the logarithmic luminance image logL into m ⁇ n blocks, calculates the average value of the logarithmic luminance logL c of pixels belonging to each block, and calculates the average value of m ⁇ n pixels.
  • a reduced image of 1 is generated and held in the first reduced image memory 164.
  • the average luminance calculation unit 63 calculates the average value ⁇ of the pixel values of the first reduced image one frame before, stored in the first reduced image memory 164, and outputs the average value ⁇ to the divider 1 66. It will The divider 1 66 divides a predetermined constant log L T by the average value ⁇ to calculate a representative value ⁇ 2 and causes the ⁇ 2 memory 16 to hold it.
  • Multiplier 1 6 8 is the first reduced image memory 1
  • Each pixel of the first reduced image held at 64 is multiplied by the representative value V 2 held in the ⁇ 2 memory 65 to generate a second reduced image logL cl, and a second reduced image is generated. Make the image memory 1 69 hold it.
  • Multiplier 170 multiplies the logarithmic luminance log L c , (p) of the current frame input from table reference section 1 62 by the representative value ⁇ 2 of the previous frame held in ⁇ 2 memory 1 6 7 Then, calculate the logarithmic luminance logL c (p) after tone carp correction.
  • the gain value setting unit 1 ⁇ 2 is based on the representative value ⁇ ⁇ ⁇ ⁇ for the previous frame input from the multiplier 1 71 and the logarithmic luminance log L ⁇ (P) of the current frame input from the multiplier 1 70. Calculate the gain value g (p) that determines the contrast enhancement amount of the logarithmic luminance logL c (p) of the frame.
  • the inter-acquisition positioning section 1 73 is the log luminance log L of the current frame input from the multiplier 1 70. (P) pixel position! ) (Hereafter, it is described also as interpolation position p) and output to interpolation section 174.
  • the interpolation unit 174 uses the second reduced image logL c i of the previous frame stored in the second reduced image memory 16 9 and uses the pixel log L cl (p) corresponding to the interpolation position: Is calculated by interpolation and output to the contrast emphasizing unit 175.
  • the contrast emphasizing unit 1 ⁇ ⁇ ⁇ 5 obtains the gain value g (p) and the capture value log L c of the reduced image for the number luminance log L c (p) of the current frame input from the multiplier 170. Based on (p), calculate the log luminance logL u (p) in which the contrast other than low frequency components is emphasized.
  • the average luminance calculation unit 165 calculates the average value of the m ⁇ n pixels of the first reduced image, so that the pixels of the logarithmic luminance image logLe of the original image size are calculated.
  • the amount of calculation can be reduced compared to the average luminance calculator 63 shown in FIG. 6 which calculates the average value of. Therefore, the delay time due to the operation can be shortened.
  • step S1 the DSP 7 calculates the wide DR luminance image L of the current frame that has been input for the wide DR luminance image one frame before, and holds the held intermediate information (second reduced image log L (( p) Convert to a narrow DR luminance image Y n based on the representative value and luminance range information [Y d , YJ).
  • the DSP 7 also calculates intermediate information for the wide DR luminance image L of the current frame.
  • step S2 the DSP 7 uses the intermediate information on the calculated wide DR luminance image of the current frame to update the intermediate information on the held wide DR luminance image of the previous frame.
  • step S3 the DSP 7 determines whether or not there is a subsequent frame in the wide DR luminance image of the input current frame, and determines that the subsequent frame exists. If set, return to step SI and repeat the subsequent processing. Conversely, if it is determined that there is no subsequent frame, this tone compression processing is terminated.
  • the details of the processing in units of pixels in step S1 will be described with reference to the flowchart in FIG. The processing of each step described below is performed on the focus pixel (pixel position p) input in raster order.
  • step SI1 the luminance L (p) of the pixel of interest (pixel position p) is input to the DSP.
  • the logarithmic conversion unit 21 logarithmically converts the input luminance L (p), and outputs the obtained logarithmic luminance log L (p) to the composite unit 160.
  • the table reference unit 162 of the composite unit 160 calculates the logarithmic luminance log L c based on the LUT held in the LUT memory 16 1 based on the logarithmic luminance log L (p) input from the logarithmic conversion unit 21. , (p) and output to the reduced image generator 163 and the multiplier 172.
  • the LUT memory 16 1 outputs the representative value V i of the tone carp slope to the multiplier 171.
  • the multiplier 171 has a typical value y!
  • the gain value setting unit 172 outputs the product of ⁇ 2 calculated based on the first reduced image one frame before held in the ⁇ 2 memory 16 7 as the representative value ⁇ .
  • step S14 the reduced image generation unit 163 generates a first reduced image based on the logarithmic luminance log L c ′ (p) of one frame after the tone curve correction.
  • the representative value gamma 2 is calculated.
  • the generated first reduced image is multiplied by the calculated representative value ⁇ 2 to generate a second reduced image log L cl .
  • step S i 5 the multiplier 1 70 calculates the representative value ⁇ 2 of the previous frame held in the ⁇ 2 memory 167 at the logarithmic luminance log L c, (p) of the current frame input from the table reference unit 162. Calculate the logarithmic luminance logL c (p) after tone curve correction.
  • step S16 the gain value setting unit 172 outputs the representative value ⁇ for the previous frame input from the multiplier 171 and the logarithmic luminance logL c (p) of the current frame input from the multiplier 170.
  • Log intensity of the current frame based on log L. (P)
  • step S17 using the second reduced image logL cl that is one frame earlier stored in the second reduced image memory 169, the inter-acquisition part 1 74 uses the pixel logL corresponding to the interpolation position p. Calculate cl (p) according to the gap and output it to the contrast emphasizing unit 175.
  • step S18 the contrast emphasizing unit 1 75 performs tone-carped-corrected logarithmic luminance log L c (p) based on the interpolation value log L cl (p) and gain value g (p) of the second reduced image. It emphasizes components other than low frequency components, and outputs the resulting contrast-captured logarithmic luminance logL u (p) to the post-stage inverse-log converter 26.
  • step S 1 logarithmic inverse transformation unit 26, a Contrast corrected logarithmic luminance logL u (P), into a normal axis luminance L u (P), to force out the gamma correction unit 27.
  • step S20 the gamma correction unit 27 performs predetermined gamma correction, and outputs the obtained luminance Y (p) to the luminance area information calculation unit 28 and the luminance area normalization unit 30.
  • step S21 the luminance range information calculation unit 28 generates luminance range information [Y d , YJ based on the luminance Y (p) of one frame.
  • step S22 the luminance range normalization unit 30 calculates the luminance range information input from the gamma correction unit 27 based on the luminance range information [Y d , YJ of the previous frame stored in the luminance range information memory 29. Normalize p) to calculate the luminance Y n ( ⁇ ).
  • step S 23 the bright gamut normalization section 30 outputs the luminance ⁇ ⁇ ( ⁇ ), as the pixel value of the narrow DR luminance image is grayscale compression. This is the end of the detailed description of the process of step S1 in FIG.
  • step S31 the reduced image generation unit 163 uses the first reduced image generated based on the log luminance log L c '(p) of one frame after tone curve correction to generate a first reduced image memory. Update the first reduced image held at 164.
  • step S32 the divider 166 calculates the average luminance by the predetermined constant log L T.
  • the representative value ⁇ 2 is calculated by dividing by the average value ⁇ input from the output part 1 65, and the calculated representative value V 2 is used to calculate the representative value ⁇ 2 held in the 2 memory 1 6 7 Update.
  • step S 33 the multiplier 1 68 executes steps S 32 2 for each pixel of the first reduced image held in the first reduced image memory 1 64 updated in the process of step S 31. by multiplying the representative value gamma 2 held by the gamma 2 memory 6 5 updated by the processing to generate a second reduced image logL c i, which are retained in the first reduced image memory 1 69 The second reduced image logL c ⁇ is updated.
  • step S 34 the luminance area information calculation unit 28 stores the luminance area information [Y d , Y b ] calculated based on the luminance ⁇ ( ⁇ ) of one frame in the luminance area information memory 29.
  • the luminance range information [Y d , Y b ] one frame before is updated. This is the end of the detailed description of the process of step S2 in FIG.
  • FIG. 21 shows a configuration example of the DSP 7 corresponding to the wide DR image which is a color image.
  • the wide DR image input in raster order to the DSP 7 does not have all the R, G and B components respectively, but any of the R, G and B components. It shall have one.
  • the wide DR image which is a color image input to the second configuration example of the DSP 7 will be described as a wide DR color mosaic image. Note that which of the R, G, and B components each pixel of the wide DR color mosaic image has is determined by the pixel position.
  • the pixel values of the wide DR color mosaic image input in raster order to DSP 7 are described as L (p).
  • the demosaic unit 201 is a pixel value L (p) for one frame having color components different for each pixel based on all R, G, and B components. Demosaicing is performed to generate color signals [R (p), G (p), B (p)], and the color signals are output to the color balance adjustment unit 202.
  • an image composed of color signals output from the demosaicing unit 201 will be described as a wide DR color image.
  • the color balance adjustment unit 202 adjusts each of the R, G, and B components so that the color balance of the entire image is appropriate, and the color signals [R b (p), G b (p), B b ( p)] Create
  • the demosaicing unit 201 and the color balance adjusting unit 202 are implemented in a general digital video on which a single-plate type CCD image sensor is mounted.
  • the logarithmic conversion unit 2 0 3 logarithmically converts the color signals [R b (p), G b (p), B b (p)] input from the color balance adjustment unit 202, and obtains logarithmic color signals [ Output log R b (p), log G b (p), log B b (p)] to the tone curve acquisition unit 2 0 4.
  • the tone carp correction unit 204 applies a tone curve prepared in advance to the input logarithmic color signal [log R b (p), log G b (p), log B b (p)].
  • the tone curve correction unit 204 outputs a representative value ⁇ indicating the slope of the applied tone carp to the contrast correction unit 2 07.
  • the reduced image generation unit 205 is based on the logarithmic color signal [logR c (p), logGc (p), log Be (p)] of one frame input from the tone curve correction unit 204.
  • the reduced image logL cl is generated and held in the reduced image memory 206.
  • the contrast capture section 2 0 7 is weakened by the tone curve correction of the logarithmic color signal [log R c (p), log Go (p), log Be (p)] of the current frame input from the tone curve correction section 204.
  • the corrected logarithmic color signal [logR u (p), log G u (p), log B u (p)] is output to the inverse logarithmic conversion unit 2 0 8 according to
  • the inverse-logarithmic conversion unit 2 0 8 performs the inverse-logarithmic conversion of the contrast-corrected logarithmic color signal [log R u (P), log G u (p), log B u (p)] to obtain the color of the normal axis
  • the signal [R u (P), G u (p), B u (p)] is output to the gamma correction unit 2 0 9.
  • the gamma correction unit 2 0 9 is a reproduction device (eg, display) for the color signal [R u (p), G u (p), B u (p)] input from the logarithmic inverse conversion unit 2 0 8
  • the gamma correction is performed in consideration of the gamma characteristic of 1 1), and the obtained gamma-corrected color signal [R g (p), Gu (p), B g (p)] Area normalization unit 2 1 Output to 2.
  • Luminance information calculation section 210 one frame of a color signal inputted from the gamma correction unit 209 converts the [R g (p), G u (p), B g (p)] to the luminance Y (p) After that, luminance area information indicating the distribution of luminance Y ( ⁇ ) is calculated and held in the luminance area information memory 21 1.
  • the luminance range information is information indicating the range of distribution of the luminance ⁇ ( ⁇ ) in one frame, and, for example, the luminance Y d closest to the darkest and the luminance Y b closest to the brightest Is calculated as luminance range information [Y d , YJ.
  • the luminance range normalization unit 212 is based on the luminance range information [Y d , Y b ] of the previous frame stored in the luminance range information memory 211, and the color signal of the current frame input from the gamma correction unit 209. It is obtained by transforming [R g (p), G u (p), B g (p)] so that its distribution range matches the range that can be represented by the raw device (eg, display 11).
  • the color signals [R n (p), G n (p), B n (p)] are output to the subsequent stage as pixel values of a narrow DR image that is a color image.
  • the second configuration example of the DSP 7 corresponding to the color image is the same as the second configuration example corresponding to the monochrome image shown in FIG. 2 except that the demo part 201 and the color balance part 202 are added.
  • the configuration is almost the same as the configuration example 1, but the internal configuration of each part is slightly changed in order to correspond to a color image.
  • FIG. 22 shows a first configuration example of the tone curve correction unit 204.
  • the luminance generation unit 221 calculates the logarithmic luminance logL by calculating the linear sum of the input logarithmic color signals [log R b (p), log G b (p), log B b (p)].
  • b (p) is generated and output to a subtractor 222 -R to 222 -B and a table reference unit 224.
  • the subtractor 222-R subtracts the logarithmic luminance log L b (p) from the logarithmic color signal log R b (p) and outputs the result to the multiplier 225-R.
  • LUT memory 223 a LUT corresponding to the tone curve as shown in FIG. 4 and a representative value ⁇ indicating the slope of the tone curve are stored in advance.
  • the table reference unit 224 corrects the logarithmic luminance logL (p) to the logarithmic luminance logL c (p) based on the LUT stored in the LUT memory 223, and outputs the log luminance logL c (p) to the adders 226-R to 226-B.
  • the multiplier 225-R multiplies the output of the subtractor 222_R by the representative value ⁇ input from the LUT memory 223, and outputs the result to the adder 226-R.
  • the adder 226-R calculates the sum of the output of the multiplier 22 5 _R and the logarithmic luminance log L c ( ⁇ ), and outputs it as a logarithmic color signal log R c (p) after tone correction.
  • FIG. 23 shows a second configuration example of the tone curve correction unit 204.
  • the luminance generation unit 231 calculates the logarithmic luminance by calculating the linear sum of the input logarithmic color signals [log R b (p), log G b (p), log B b (p)]. Generate log L b (p) and output it to the average luminance calculation unit 232.
  • the average luminance calculation unit 232 calculates an average value ⁇ of the logarithmic luminances log L (p) for one frame, and outputs the average ⁇ to the divider 2 3 3.
  • the divider 233 divides the predetermined constant log L T by the average value ⁇ to calculate the representative value ⁇ , and causes the ⁇ memory 234 to hold it.
  • the multiplier 2 3 5 ⁇ R multiplies the logarithmic color signal log R b ′ (p) of the current frame by the representative value V of the previous frame held in the ⁇ memory 2 3 4, and after tone carp correction Calculate the logarithmic color signal logR c (p).
  • FIG. 24 shows a third configuration example of the tone carp correction unit 204.
  • the third configuration example is a combination of the first configuration example and the second configuration example.
  • the luminance generation unit 241 calculates the logarithmic luminance by calculating the linear sum of the input logarithmic color signals [log R b (p), log G b (p), lo B b (p)]. It generates log L b (p) and outputs it to the subtractor 242 -R to 242 -B and the table reference unit 244.
  • the subtractor 242-R subtracts the logarithmic luminance log L b (p) from the logarithmic color signal log R b (p) and outputs the result to the multiplier 250-R.
  • the LUT memory 243 has a LUT corresponding to the tone curve as shown in FIG. 4 and a representative value ⁇ i indicating the slope of the tone curve. It is held in advance.
  • the table reference unit 244 corrects the logarithmic luminance log L (p) to the logarithmic luminance log L c , (p) based on the LUT stored in the LUT memory 243 and outputs it to the average luminance calculation unit 245 and the multiplier 249. Do.
  • the average luminance calculation unit 245 calculates an average value ⁇ of the logarithmic luminance log Lc ′ (p) for one frame, and outputs the average value ⁇ to the divider 246.
  • the divider 246 divides the predetermined constant log L ⁇ by the average value /! To calculate the representative value y 2 and causes the ⁇ 2 memory 247 to hold it.
  • the multiplier 249 multiplies the logarithmic luminance log L c , (p) of the current frame by the representative value ⁇ 2 of one frame before held in the ⁇ 2 memory 24 7 to obtain the logarithmic luminance log L c after tone curve correction.
  • p) Calculate city, Adder 2 5 1-R to 2 5 1-B output.
  • the multiplier 250-R multiplies the output of the subtractor 242 _R by the representative value ⁇ input from the multiplier 248 and outputs the result to the adder 251 R.
  • the adder 2 51 1 R calculates the product of the output of the multiplier 250-R and the output of the multiplier 249 and outputs it as a logarithmic color signal logR c (p) after tone curve correction to the subsequent stage.
  • FIG. 25 shows a configuration example of the reduced image generation unit 205.
  • the luminance generation unit 26 1 of the reduced image generation unit 205 calculates the linear sum of the input logarithmic color signals [logR c (p), log G c (p), log B c (p)] after tone curve correction.
  • the logarithmic luminance log L c (p) is generated and output to the sorting unit 262.
  • the synthesizing unit 264 receives the log luminance log L input from the mean value calculating unit 26 3-i.
  • the average value of (p) generates a reduced image logL ct of m X n pixel to pixel values, Ru is held downstream of the reduced image memory 206.
  • FIG. 26 shows a configuration example of the contrast correction unit 207.
  • the luminance generation unit 270 of the contrast correction unit 25 calculates the linear sum of the input logarithmic color signals [logR c (p), log G c (p), log B c (p)] after tone curve correction. Generates logarithmic luminance log L c (p) and outputs it to interpolation position specification unit 27 1 and gain value setting unit 2 73.
  • the interpolation position designation unit 271 obtains the pixel position p (hereinafter also referred to as the interpolation position p) of the logarithmic luminance logl ⁇ (p), and outputs the pixel position p to the interpolation unit 272.
  • Intersection 2 72 calculates the pixel logL cl (p) corresponding to the interpolation position!) By interpolation using the reduced image logL cl of one frame before stored in the reduced image memory 206, It outputs to subtractors 274 1 to 2 74 ⁇ B and adders 276 ⁇ R to 276 ⁇ B.
  • the gain value setting unit 2 73 calculates the logarithmic luminance log L c of the current frame based on the representative value ⁇ for the previous frame input from the tone curve correction unit 22 and the logarithmic luminance log L e (p) of the current frame.
  • the gain value g (p) that determines the contrast enhancement amount of) is calculated and output to the multiplier 2 75-R to 27 5-B.
  • Subtractor 2 74-R subtracts the interpolation value log L cl (p) from the logarithmic color signal log R c (p) and outputs the result to multiplier 275-R.
  • the multiplier 27 5-R multiplies the output of the subtractor 274-R by the gain value g (p) and outputs the result to the adder 276-R.
  • Adder 276-R adds the interpolation value logL cl (p) to the output of multiplier 2 75-R, and outputs the obtained contrast-corrected logarithmic color signal logR u (p) to the subsequent stage. .
  • FIG. 27 shows a configuration example of the composite unit 300 that can be replaced with the tone curve correction unit 204, the reduced image generation unit 205, the reduced image memory 206, and the contrast correction unit 207 in FIG.
  • the luminance generation unit 301 of the composite unit 300 calculates the logarithmic luminance logL b (p by calculating the linear sum of the input logarithmic color signals [log R b (p), log G b (p), log B b (p)]). Is generated and output to the subtractor 302-R to 302-B and the table reference unit 304.
  • the subtractor 302-R subtracts the logarithmic luminance log L b (p) from the logarithmic color signal log R b (p) and outputs the result to the multiplier 316-R.
  • the LUT memory 303 holds in advance a LUT corresponding to a tone carp as shown in FIG. 4 and a representative value ⁇ indicating the slope of the tone curve.
  • the table reference unit 304 corrects the logarithmic luminance log L (p) input from the luminance generation unit 301 to the logarithmic luminance log L c, (p) based on the LUT stored in the LUT memory 303, and multiplies the multiplier 305 and Output to the reduced image generation unit 306.
  • the multiplier 305 multiplies the logarithmic luminance log L c , (p) of the current frame input from the table reference unit 304 by the representative value y 2 of the previous frame held in the ⁇ 2 memory 167 to obtain a tone curve. Calculate the corrected logarithmic luminance logL c (p), and output it to the adders 3 1 7-R to 31 7-B.
  • the reduced image generation unit 306 divides the logarithmic luminance image logLc ′ into m ⁇ n blocks and calculates the average value of the logarithmic luminances logL c , (p) of the pixels belonging to each block: A reduced image of 1 is generated and held in the first reduced image memory 307.
  • the average luminance calculation unit 308 calculates an average value ⁇ of pixel values of the first reduced image one frame before stored in the first reduced image memory 307 and outputs the average value ⁇ to the divider 309.
  • the divider 309 divides a predetermined constant log L T by the average value ⁇ to calculate a representative value ⁇ 2 and causes the ⁇ 2 memory 310 to hold it.
  • Multiplier 3 1 2 is the first reduced image stored in first reduced image memory 164. To each pixel of the image, by multiplying the representative value y 2 held in the gamma 2 memory 3 10, to generate a second reduced image logL cl, thereby lifting the second reduced image memory 3 1 3 '.
  • Interpolation unit 314 uses the second reduced image logL cl of the previous frame stored in second reduced image memory 16 9 to calculate the logarithmic luminance log L c of the current frame input from multiplier 170.
  • the pixel logL cl (p) corresponding to the pixel position p) of p) (hereinafter also described as the interpolation position p) is calculated by interpolation, and the subtractor 3 1 8-R through 3 1 8-B and the adder 320 -Output to R through 320-B.
  • the gain value setting unit 3 1 5 is based on the representative value ⁇ for the previous frame input from the multiplier 3 1 1 and the logarithmic luminance log L c (p) of the current frame input from the multiplier 305. Calculate the gain value g (p) that determines the contrast emphasis amount of the logarithmic luminance logL c (p) and output to the multipliers 3 1 9-R to 3 1 9-B.
  • the multiplier 3 16 _R calculates the product of the output of the subtractor 302 -R and the representative value y, and outputs the product to the adder 3 1 7 ⁇ R.
  • the adder 3 1 7 ⁇ R calculates the sum of the output of the multiplier 3 1 6 ⁇ R and the output of the multiplier 305, and outputs the result to the subtractor 3 18 ⁇ R.
  • the subtractor 3 18 ⁇ R subtracts the interpolation value log L cl (p) from the output of the adder 3 1 7 ⁇ R, and outputs the result to the multiplier 31 9 1 R.
  • the multiplier 3 1 9-R multiplies the output of the subtractor 3 1 8-R by the gain value g (p) and outputs the result to the adder 320-R.
  • Adder 3 20-R calculates the sum of the output of multiplier 3 1 9-R and the interpolation value log L cl (p) and adds the result to obtain the log color signal log R u after contrast correction obtained. Output (p) to the latter stage.
  • the description is abbreviate
  • the average luminance calculation unit 308 calculates the average value of the m ⁇ n pixels of the first reduced image. Therefore, the average value of the pixels of the logarithmic luminance image logLe of the original image size The amount of computation can be reduced as compared with the average luminance calculation unit 245 of FIG. Therefore, the delay time due to the operation can be shortened.
  • FIG. 28 shows a configuration example of the luminance range information calculation unit 210.
  • the luminance generation unit 331 calculates the luminance Y ( ⁇ ) by calculating the linear sum of the color signals [R g (p), G g (p), B g (p)] after the gamma correction.
  • the thinning unit 332 sorts the luminance ⁇ ⁇ ( ⁇ ) input from the luminance generation unit 331 based on the pixel position ⁇ . That is, only the luminance of the pixel at the pixel position set in advance is supplied to the rear-stage sorting unit 333 and the MAX sorting unit 336.
  • the MIN sorting unit 333 is arranged such that the combination of the comparing unit 334 and the register 335 is arranged in a series of k, and the input luminance Y (p) is stored in the registers 335-1 to 335-k in ascending order. ing.
  • the comparison unit 334-1 compares the brightness Y (p) from the thinning unit 332 with the value of the register 335-1 and the brightness Y (p) from the thinning unit 332 is smaller than the value of the register 335 -1.
  • the value of the register 335 — 1 is updated using the luminance Y (p) from the thinning unit 332.
  • the luminance Y (p) from the thinning part 332 is supplied to the comparison part 334-2 in the latter stage.
  • MAX sorting unit 336 is arranged by k combinations of comparison unit 337 and register 338 arranged in series, and is configured to hold input luminance Y (P) in registers 338-1 to 338-k in descending order of magnitude. There is.
  • the comparison unit 337-1 compares the luminance Y (p) from the thinning unit 332 with the value of the register 338 -1, and the luminance Y (p) from the thinning unit 332 is larger than the value of the register 338-1 In the case, the value of the register 338-1 is updated using the luminance Y (p) from the thinning unit 332. On the contrary, the luminance Y (p) from If the value is not larger than the value of the resistor 338-1, the luminance Y (p) from the thinning unit 332 is supplied to the comparison unit 337-2 at the subsequent stage.
  • the luminance Y (P) input to the MIN sorting unit 333 and the MAX sorting unit 336 is thinned by the thinning unit 332, the interval of the thinning and the number of stages of the MIN sorting unit 333 and the MAX sorting unit 336 By appropriately adjusting k, it becomes possible to obtain luminance values Y d and Y b corresponding to, for example, 1% and 0.1% of upper and lower sides among all pixels of one frame.
  • step S41 the DSP 7 (demosaicing section 201) demosaicing the wide DR color mosaic image to generate a wide DR color image, and the pixel value, that is, the color signal [R (p), G (p), B (p)] are output to the color balance adjustment unit 202 in raster order.
  • step S42 the DSP 7 (color balance adjustment unit 202) adjusts each of the R, G, and B components so that the color balance of the entire image is appropriate, and the color signal [R b (p), G b b (p), B b (p)] is generated.
  • the DSP 7 calculates the color signal of the wide DR color image of the current frame to be input with respect to the wide DR color image one frame before, and holds the intermediate information (second reduced image). It converts into narrow DR color image Y n based on log L c (p), representative value y, and luminance range information [Y d , YJ). The DSP 7 also calculates intermediate information for the wide DR color image L of the current frame. .
  • step S44 the DSP 7 uses the intermediate information for the calculated wide DR color image L of the current frame to generate the held wide DR color image one frame earlier. Update the corresponding intermediate information.
  • step S45 the DSP 7 determines whether or not the subsequent frame is present in the wide DR color image of the input current frame, and if it is determined that the subsequent frame is present, the step S 41 is performed. Return to and repeat the subsequent processing. Conversely, if it is determined that there is no subsequent frame, this tone compression processing is terminated.
  • step S42 Details of the pixel-by-pixel processing in step S42 will be described with reference to the flowchart of FIG. The processing of each step described below is performed on the target pixel (pixel position p) input in raster order.
  • step S 51 the color balance adjustment unit 202 outputs the generated color signals [R b (p), G b (p), B b (p)] to the logarithmic conversion unit 203.
  • step S 52 the logarithmic conversion unit 203 logarithmically converts the input color signal [R b (p), G b (p), B b (p)], and obtains the logarithmic color signal [log R b (p), logG b (p), log B b (p)] are output to the composite unit 300.
  • step S53 the luminance generation unit 301 of the composite unit 300 calculates the linear sum of the input multi-color signals [log R b (p), log G b (p), log B b (p)].
  • Logarithmic intensity log L b (p) is generated according to and output to the subtractor 30 2 -R to 302 _B and the reference unit 304.
  • step S 54 the table reference unit 304 corrects the input logarithmic luminance logL (p) to the logarithmic luminance logLc, (p) based on the LUT stored in the LUT memory 303, and Output to 305 and the reduced image generation unit 306.
  • step S55 the reduced image generation unit 306 generates a first reduced image based on the log luminance log L c '(p) of one frame after tone curve correction.
  • the representative value 2 is calculated based on the generated first reduced image.
  • the first representative value gamma 2 calculated for the reduced image of is multiplied generated, the second reduced image log L c 1 is generated.
  • step S 56 multiplier 3 05 is input from table reference 304.
  • step S57 a logarithmic color signal log R e (p) after tone-carped correction is generated by the operation of the subtractor 302-R, multiplier 3 16 1 R, and adder 3 1 7-R for the R component.
  • a logarithmic color signal logG c (p) after tone curve correction is generated by the operation of a subtractor 302-G, a multiplier 3 16 1 G, and an adder 3 1 7 _G.
  • a logarithmic color signal logB c (p) after tone carp correction is generated by the operation of the subtractor 302-B, the multiplier 3 16 1 B, and the adder 3 1 7 _B.
  • step S 58 the gain value setting unit 315 is based on the representative value ⁇ for the previous frame input from the multiplier 3 1 1 and the logarithmic luminance log L c (p) of the current frame input from the multiplier 305. Then, a gain value g (p) that determines the contrast emphasis amount of the log luminance log L c (p) of the current frame is calculated.
  • step S 59 the interpolation unit 3 14 uses the second reduced image log L cl of the previous frame stored in the second reduced image memory 3 1 3 to calculate the interpolation position! The pixel logL cl (p) corresponding to) is calculated from the capture interval.
  • step S60 the logarithmic color signal logR u (p) after contrast correction is generated by the operation of the subtractor 3 18 ⁇ R, multiplier 3 1 9 _R, and the adder 3 20 ⁇ R for the R component.
  • Ru a logarithmic color signal logG u (p) after contrast correction is generated by the operation of a subtractor 3 1 8 ⁇ G, a multiplier 3 1 9 1 G, and an adder 3 20 _G.
  • the logarithmic color signal logB u (p) after contrast capture is generated by the operation of the subtractor 3 1 8 ⁇ B, the multiplier 3 1 1 9 1 B, and the adder 3 2 20 ⁇ B.
  • step S 61 the logarithmic inverse transform unit 208 inversely transforms the logarithmic color signal [logR u (p), log G u (p), log B u (p)] after the contrast correction into the normal axis. Generate the color signal [R ,, (p), G u (p), B u (p)] and output to the gamma capture section 20 9 To force.
  • step S 62 the gamma correction unit 209 performs predetermined gamma correction, and the obtained gamma-corrected color signal [R g (p), G g (p), B g (p)] Output to information calculation unit 2 1 0 and luminance area normalization unit 2 1 2.
  • step S63 the luminance generation unit 331 of the luminance range information calculation unit 210 is based on the color signal [R g (p), G g (p), B g (p)] after the gamma correction. And generate the luminance Y (p).
  • step S 64 the MIN sort unit 333 and the MAX sort unit 336 of the luminance range information calculation unit 2 10 use the luminance range information [Y d , Y b ] based on the luminance Y (p) for one frame.
  • step S65 the luminance area normalization unit 212 is inputted from the gamma correction unit 209 based on the luminance area information [Y d , YJ of the previous frame stored in the luminance area information memory 2 1 1.
  • the luminance region normalization unit 212 calculates the gradation of the calculated color signals [R n (p), G n (p), B n (p)] as pixels of the narrow DR color image. Output as a value. This concludes the detailed description of the step S 4 3 processing of FIG.
  • step S 71 the reduced image generation unit 306 performs the first reduction using the first reduced image generated based on the logarithmic luminance log L c , (p) of one frame after the tone power correction.
  • the first reduced image held in the image memory 307 is updated.
  • step S 72 the divider 30 9 divides the predetermined constant log L T by the average value ⁇ input from the average luminance calculation unit 165 to calculate the representative value ⁇ 2, and using the value gamma 2, and updates the representative value gamma 2 held by the gamma 2 memory 3 1 0.
  • step S 73 the multipliers 3 1 2 execute steps S 7 2 for each pixel of the first reduced image held in the first reduced image memory 307 updated in the process of step S 7 1. processing by multiplying the representative value gamma 2 held by the gamma 2 memory 3 1 0 updated in the to produce a second reduced image logL cl, the first reduced image memory 3 1 3 Update the second reduced image log L c 1 held.
  • step S74 the luminance range information calculation unit 210 is configured to generate luminance range information [Y based on one frame of [ Rg (p), Gg (p), Bg (p)]]. Using d and Y b ], update the luminance range information [Y d , Y b ] of the previous frame held in the luminance range information memory 21 1. This concludes the detailed description of the process of step S 4 4 in FIG.
  • the weighted average is used to calculate the average value. You may use it. For example, by making the weight of the central part of the image greater than the weight of the peripheral parts, it is possible to perform brightness correction with emphasis on the reflectance of the object present in the central part of the image.
  • the memory for holding the first reduced image generated and the first reduced image generated Although a memory for holding a second reduced image generated by multiplying the image by the representative value ⁇ 2 is provided, when the second reduced image is generated, the first reduced image is held. It is also possible to combine these two memories into one, as it is not necessary to
  • the tone compression processing can be realized with a configuration that greatly reduces the large amount of memory (used as a frame memory and pixel series data delay line) required for the tone compression technology of Thus, it is possible to obtain an output image comparable to the tone compression processing realized with the above.
  • gradation compression processing is performed.
  • a monitor or an external connection to the digital video camera 1 is used. It is also possible to perform gradation compression processing in accordance with the expressible dynamic range of the printer.
  • FIG. 32 shows a configuration example of an image processing system to which the present invention is applied.
  • This image processing system 501 captures a subject and generates a wide DR image 502 composed of pixels having a pixel value (brightness) of a dynamic range wider than usual, and a wide camera generated by the video camera 502.
  • a video camera 502 has a lens 53 for condensing the light image of the subject, a diaphragm 504 for adjusting the light amount of the light image, a CCD image sensor 505 for photoelectrically converting the collected light image to generate a luminance signal, A preamplifier (Pre-amp.) 506 that removes noise components from the generated luminance signal, and an AD converter that converts the luminance signals from which the noise components have been eliminated to digital data with a bit width of about 14 to 16 bits, for example (AZ D) 507, and an I-no 0 interface (I / O) 508 for outputting a wide DR image L composed of pixels having digitized luminance to the image processing apparatus 510.
  • Pre-amp. preamplifier
  • AD converter that converts the luminance signals from which the noise components have been eliminated to digital data with a bit width of about 14 to 16 bits, for example (AZ D) 507, and an I-no 0 interface (I / O) 508 for outputting
  • FIG. 32 shows an outline of the operation of the image processing system 1.
  • the video camera 502 captures an object, generates a corresponding wide DR image L, and outputs the image to the image processing device 510.
  • the image processing apparatus 510 applies gradation compression processing to the wide DR image L to generate a gradation compressed image L u and outputs it to the display 5 11.
  • the display 5 1 1 displays the gradation compression image L u .
  • FIG. 34 shows a first configuration example of the image processing apparatus 510.
  • Image processing The tone carp correction unit 5 2 1 of the device 5 1 corrects the wide DR image L input from the video camera 5 2 in the direction to compress the gradation based on the prepared tone curve, The resulting tone curve corrected image L c is output to the smoothed brightness generation unit 52 2, gain value setting unit 5 23 and contrast correction unit 5 24. Note that this tone Carp corrected image L e is the tone are compressed, due to the gradation is compressed, and is intended to Contrast is weakened.
  • the tone carp correction unit 52 1 outputs a representative value ⁇ indicating the slope of the tone curve used for correction to the gain value setting unit 5 23.
  • FIG. 35 shows a configuration example of the tone curve correction unit 5 21.
  • the tone curve correction unit 5 2 1 LUT memory 5 3 1 includes a look-up table (hereinafter referred to as a LUT) corresponding to a monotonically increasing tone force loop as shown in FIG. A representative value y indicating the inclination is held in advance. Note that, instead of the LUT, a function corresponding to a tone curve may be held.
  • Table reference section 5 3 2 based on the LUT held in the LUT memory 5 3 1, the wide-DR image L, corrects the tone power over Bed corrected image L c.
  • Fig. 36 shows an example of a tone curve, where the horizontal axis represents the brightness of the DR image L, and the vertical axis represents the brightness of the tone curve corrected image L c after correction, with [0, 1] normalized. It is displayed in a whim.
  • the tone curve shown in FIG. 36 is not corrected when the luminance value of the normalized wide DR image L is larger than 0.5, and the luminance of the normalized wide DR image L is not corrected. If the value is smaller than 0.5, the smaller the value, the larger the correction amount. That is, when displayed on the display 51 1, correction is performed so that the dark area in the image is not blacked out.
  • the representative value ⁇ indicating the slope of the tone curve for example, the slope of the entire luminance range may be determined, and the average value thereof may be used as the representative value ⁇ .
  • Smoothed luminance generator 5 2 2 is a tone curve corrected image L. Smoothes the brightness of the image, and applies the brightness L cl (p) of the smoothed image obtained to the contrast correction unit 24. Output.
  • FIG. 37 shows a configuration example of the smoothed luminance generation unit 22.
  • the reduced image generation unit 54 1 of the smoothed luminance generation unit 52 2 classifies the pixels of the tone carp corrected image L c input from the tone curve correction unit 5 21 into the mX 11 block corresponding to the pixel position.
  • the reduced image L cl is generated using the average value of the luminance of the pixels classified into each block as the pixel.
  • the reduced image memory 542 holds the generated reduced image L cl of m ⁇ n pixels.
  • the interpolation unit 543 calculates the luminance of the sequentially designated pixel position: by interpolation processing using the pixels of the reduced image held in the reduced image memory 542, and obtains the obtained interpolation value L cl (p ) Is output to the contrast correction unit 524 as the luminance of the pixel of the smoothed image.
  • p (x, y) is a coordinate or vector indicating a pixel position. Therefore, the size of the smoothed image output from the interpolation unit 543, the size of the tone-curve-corrected image L e are the same.
  • the tone curve correction image L c is reduced to generate a reduced image L ct , and the held reduced image L c 1 is used to generate the luminance L cl of the smoothed image.
  • p) is calculated by interpolation operation pixel by pixel.
  • FIG. 38 shows a configuration example of the reduced image generation unit 541 of FIG. 37.
  • those classified into the first block are supplied to the average value calculation unit 5 5 2-1, and those classified into the second block are supplied to the average value calculation unit 5 5 2-2.
  • the combining unit 5 5 3 3 generates a reduced image of m ⁇ n pixels with the average value of the luminances input from the average value calculating unit 5 5 2 ⁇ i as the pixel value.
  • FIG. 39 shows a configuration example of the average value calculation unit 5 52 of FIG.
  • the adder 5 6 1 of the average calculation unit 5 5 2 adds the luminance of the tone curve corrected image L c input from the sorting unit 5 5 1 of the preceding stage to the value held by the register (r) 5 6 2 Thus, the value held by the register 5 6 2 is updated.
  • the divider 563 divides the value finally held by the register 562 by the number of pixels Q constituting one block, thereby dividing Q into 1 block. Calculate the average value of the luminance of the pixel.
  • FIG. 40 shows a configuration example of the interpolation unit 54 3 of FIG.
  • the neighborhood selection unit 5 71 of the interpolation unit 5 4 3 receives the input of the interpolation position p, and the neighborhood of the interpolation position p from the reduced image Lct of m ⁇ n pixels held in the reduced image memory 5 4 2
  • the luminance a [4] [4] of 4 ⁇ 4 pixels of is acquired and output to the product-sum unit 5 7 4.
  • the notation of a [i] [j] indicates that the luminance a is a two-dimensional array data of i X j.
  • the neighborhood selection unit 571 is configured to calculate the horizontal displacement amount dx in the horizontal direction and the positional displacement amount dy in the vertical direction between the acquired brightness a [4] [4] and the interpolation position p. 7 2 or output to vertical coefficient calculator 5 7 3.
  • the horizontal coefficient calculation unit 5 72 2 calculates a cubic interpolation coefficient k x [4] in the horizontal direction based on the horizontal shift amount d X input from the neighborhood selection unit 71.
  • the vertical coefficient calculation unit 5 7 3 calculates the cubic interpolation coefficient k y [4] in the vertical direction based on the vertical direction displacement amount dy input from the neighborhood selection unit 5 7 1.
  • the horizontal cubic interpolation coefficient k x [4] is calculated using the above-mentioned equation (1).
  • the cubic interpolation coefficient k y [4] in the vertical direction can be calculated using the equation (2) described above calculate.
  • any calculation equation can be used for calculation of the cubic interpolation coefficient k x [4] and k y [4], provided that sufficiently smooth interpolation is obtained. Can be used.
  • Product sum unit 5 74 has a luminance a [4] [4] of the pixels in the neighborhood, the product-sum calculation of the horizontal interpolation coefficient k x [4] Oyo Pi vertical interpolation coefficient k y [4]
  • the interpolation value L cl (p) of the inter-capture position p of the reduced image L ct is calculated using the above-mentioned equation (3).
  • the gain setting unit 523 adjusts the correction amount when the contrast correction unit 524 corrects the contrast of the luminance L cl (p) of the smoothed image based on the representative value ⁇ input from the tone curve correction unit 52 1.
  • the gain value g (p) to be calculated is calculated for each pixel position and output to the contrast correction unit 524.
  • the gain value g (p) will be described.
  • the outline of the gain value setting by the gain setting unit 523 is the same as the outline of the gain value setting by the above-described gain setting unit 93, so the description thereof will be omitted.
  • FIG. 41 shows a configuration example of the gain value setting unit 523.
  • the subtractor 582 calculates (g. 1 1) and outputs the result to the multiplier 588.
  • the subtractor 5 8 3 calculates the difference between the luminance of the tone carp corrected image L c and the luminance L gray of a moderate gray level (L c ⁇ L gray ), and outputs the result to the divider 5 85.
  • the subtractor 584 calculates the luminance L wh ite of the white clip level and the luminance L gray difference (L wh ite- L gl . Ay ) and outputs the result to the divider 5 85.
  • a divider 585 divides the output of the subtractor 5 8 3 (L c -L gr ay ) by the output of the subtractor 584 (L wh ite -L gray ) and outputs the result to an absolute value calculator 5 86. Do.
  • Absolute Value Calculator 586 Divider 5 of 8 5 Calculates the absolute value of the output and outputs it to the clipper 587. If the output of the absolute value calculator 586 exceeds 1, the clipper 587 clips the value to 1, and if the output of the absolute value calculator 586 does not exceed 1, the value is used as it is. Output to multiplier 588 as (p).
  • the multiplier 588 multiplies the output of the subtractor 58 2 by the output of the clipper 587 and outputs the result to the adder 589.
  • the adder 5 89 adds 1 to the output of the multiplier 588 and outputs the result of the operation to the subsequent stage as a gain value g (p). .
  • the contrast correction unit 524 uses the gain value g (p) of each pixel position p input from the gain value setting unit 523 and the luminance L c i (p) of the smoothed image input from the smoothed luminance generation unit 522. Based on this, the contrast of the tone curve corrected image L c whose contrast is weakened is emphasized to generate the gradation compressed image L u .
  • FIG. 42 shows a configuration example of the contrast correction unit 524.
  • the subtractor 591 of the contrast correction unit 524 has the luminance L c (p) of each pixel of the tone-carp-corrected image L c and the luminance of the corresponding pixel of the smoothed image (ie, the interpolation value L c of the reduced image)
  • the difference (L c (p) ⁇ L cl (p)) from (p) is calculated and output to the multiplier 5 92.
  • the multiplier 5 92 calculates the product of the output of the subtractor 5 9 1 and the gain value g (p) input from the gain value setting unit 5 23 and outputs the product to the adder 5 9 3.
  • the adder 593 adds the luminance of the pixel of the smoothed image (interpolated value L cl (p) of the reduced image) to the output of the multiplier 5 9 2, and the resultant luminance Lu (p) Is output to the subsequent stage as the luminance of the pixels constituting the gradation-compressed image L u subjected to the contrast correction.
  • the luminance of the pixels of the smoothed image is a value interpolated based on the pixels of the reduced image L c i of the mX n pixel, so The tone power has only a very low frequency component of the correction image L c.
  • the output (L c (p) ⁇ L c ! (P)) of the subtractor 5 9 1 is the original tone-carped image log Le minus only the very low frequency component.
  • the luminance signal is separated into very low frequency components and other components, and among them, the components other than low frequency components (the output of the subtractor 591) are multiplied by the gain value g (p).
  • the luminance Lu (p) of the contrast-compensated gradation-compressed image is synthesized again by the adder 593.
  • the contrast correction unit 524 As described above, in the contrast correction unit 524, components in the low to middle frequency range except for the very low frequency range are emphasized with the same gain value g (p). Therefore, the luminance Lu (p) of the contrast-compensated gradation-compressed image does not generate local overshoot at the edge, which is noticeable when emphasizing only the high frequency region, and is extremely natural in appearance.
  • the image has been designed to obtain an image with enhanced contrast.
  • step S 11 1 the tone curve correction unit 52 1 corrects the luminance of the wide DR image L input from the video camera 50 2 based on the LUT prepared in advance, and the resulting tone
  • the curve correction image L c is output to the smoothed luminance generation unit 52 2, the gain value setting unit 523, and the contrast correction unit 524.
  • the tone curve correction unit 521 outputs a representative value V indicating the slope of the tone curve used for the correction to the gain value setting unit 523.
  • the smoothed luminance generation unit 5 22 2 is a tone curve correction image L.
  • the smoothed luminance generation unit 5 22 2 is a tone curve correction image L.
  • step S 1 13 the gain setting unit 523 determines the contrast of the luminance L cl (p) of the smoothed image in the contrast correction unit 5 24 based on the representative value T input from the tone curve correction unit 5 2 1.
  • a gain value g (p) for adjusting the amount of correction when correcting is calculated for each pixel position, and is output to the contrast correction unit 524.
  • the processing of step SI12 and the processing of step S113 can be performed in parallel.
  • step S 1 1 4 the contrast capture / correction unit 5 2 2 4 receives the gain value g (p) of each pixel position p input from the gain value setting unit 5 2 3 and the smoothed luminance generation unit 5 2 2 Based on the luminance L cl (p) of the smoothed image to be corrected, the luminance of the tone curve correction image L e is corrected to calculate the luminance L u (p) of the surface element of the gradation compressed image L u .
  • the contrast-corrected tone-compressed compressed image L u obtained in this way does not have local overshoot in the edge, which is noticeable when emphasizing only the high frequency range, and it looks It is an image with natural contrast enhancement. This is the end of the description of the gradation compressed image generation processing according to the first configuration example of the image processing device 510.
  • FIG. 44 shows a second configuration example of the image processing apparatus 510.
  • the luminance of the wide DR image L input from the video camera 501 is logarithmically represented on the upper side of the tone carp capture section 5 21 of the first configuration example shown in FIG.
  • a logarithmic conversion unit for converting the output of the contrast correction unit 524 into a logarithmic inverse conversion unit 6 0 2 is further provided in the lower part of the contrast correction unit 5 24 in the first configuration example. Is set.
  • the tone curve shown in FIG. 4 is applied.
  • a monotonically increasing and slow S-shaped tone curve is applied, gradation compression does not work so strongly in the high and low luminance areas, even after gradation compression. Good color tone with less white and black spots is obtained.
  • contrast correction is sufficiently applied to the intermediate luminance area, so that good gradation with no deterioration in contrast even in the middle luminance area A compressed image L u can be obtained.
  • the typical value ⁇ 0.67.
  • step S 121 the logarithmic conversion unit 601 logarithmically converts the luminance of the wide DR image L input from the video camera 50 2 force, and the resulting logarithmic wide DR image log L as a tone carp correction unit Output to 521.
  • step S122 the tone carp correction unit 52 1 corrects the luminance of the log wide DR image log L based on a LUT prepared in advance, for example, corresponding to the tone curve shown in FIG. Then, the log tone carp correction image logL c obtained as a result is output to the smoothed luminance generation unit 522, the gain value setting unit 523, and the contrast capture / correction unit 524. In addition, the tone curve acquisition unit 521 outputs to the gain value setting unit 523 a representative value ⁇ indicating the slope of the tone curve used for the correction.
  • step S123 the smoothed luminance generation unit 522 reduces the log tone curve correction image logL c to generate a log reduction image logL cl , and further uses pixels of the log reduction image logL e i
  • the luminance log L c , (p) of the pixel of the logarithmically smoothed image is calculated by the interpolation calculation described above, and is output to the contrast correction unit 524.
  • step S 124 the gain setting unit 523 sets the contrast of the luminance log L et (p) of the logarithmically smoothed image in the contrast correction unit 5 24 based on the representative value ⁇ input from the tone curve correction unit 5 21. For each pixel position, the gain value g (p) for adjusting the correction amount when correcting the image is calculated and output to the contrast correction unit 524.
  • step S123 and the process of step S124 can be performed in parallel.
  • the contrast correction unit 5 24 receives the gain value g (p) of each pixel position p input from the gain value setting unit 5 23 and the logarithmic smoothed image input from the smoothed luminance generation unit 5 22.
  • the luminance of the pixels of the logarithmic gradation compressed image logL u is corrected by correcting the luminance of the log tone curve corrected image logL c based on the luminance L L c i (p) of Calculate log L u (p), and output to log inverse transform unit 602.
  • step S 1 2 6 the inverse-logarithmic-transforming unit 6 02 inverse-log-transforms the luminance log L u (p) of the pixel of the logarithmic gradation compressed image log L u , and the resultant L u (p ) Is output as the luminance of the pixel of the gradation compressed image L u .
  • the tone compression does not work so strongly in the high brightness area and the low brightness area, the gradation-compensated image L u obtained in this way, in which the contrast correction has been performed, does not have much effect. Good color tone.
  • the contrast correction is sufficiently applied to the middle luminance area by that much, so that a good image with no deterioration in the contrast even in the middle luminance area Become. This is the end of the description of the tone compression image generation processing according to the second configuration example of the image processing apparatus 510.
  • a large amount of memory (frame memory, pixel system column data delay line, etc. required for the conventional tone compression technology) With a significantly reduced dynamic range, a wide DR image with a wider dynamic range of brightness, and a display with a narrower dynamic range of displayable brightness without loss of appearance. It is possible to convert it into a grayscale compressed image that can be displayed on the In addition, it is possible to obtain a tone-compressed image that is comparable to the tone-compression processing that has been conventionally realized with a large filter processing.
  • the image processing apparatus 510 can convert a wide DR image into a grayscale compressed image by adapting the wide DR image to the dynamic range that can be expressed by a projector other than the display 51 1. It is.
  • the present invention can be applied to, for example, an image signal processing circuit built in an expression device such as a display, a printer, and a projector, in addition to a photographing device of a digital video camera and a digital still camera.
  • an image signal processing circuit built in an expression device such as a display, a printer, and a projector, in addition to a photographing device of a digital video camera and a digital still camera.
  • the series of processes described above can be executed not only by hardware but also by software.
  • Software for a series of processes When it is executed by a computer, the programs that make up the software can execute various functions by installing a computer built in dedicated hardware or various programs. For example, it is installed from a recording medium on a general-purpose personal computer.
  • FIG. 46 shows an example of the configuration of a general-purpose personal computer.
  • the personal computer 620 has a CPU (Central Processing Unit) 621 built-in.
  • An input / output interface 6 2 5 is connected to the CPU 6 2 1 via a bus 6 2 4.
  • a ROM (Read Only Memory) 6 22 and a RAM (Random Access Memory) 6 2 3 are connected to the bus 6 2 4.
  • the input / output interface 65 includes an input unit 66 comprising an input device such as a keyboard and a mouse for inputting operation commands by the user, and an output unit 62 for outputting a processing operation screen and an image of a processing result to a display device. 7.
  • a storage unit 6 2 8 comprising a hard disk drive or the like for storing programs and various data, and an I / O interface 6 2 9 for communicating image data with a video camera 502 or the like are connected.
  • magnetic disks 6 3 1 including flexible disks
  • optical disks 6 3 2 including CD-ROMs (including CD-ROMs, DVDs (digital versatile disks)
  • magneto-optical disks 6 3 3 A drive 603 for reading and writing data to a recording medium such as a MD (Mini Disc) or a semiconductor memory 6 34 is connected.
  • the CPU 62 1 is read from the program stored in the ROM 62 2 or from the magnetic disk 63 1 to the semiconductor memory 64 3 and installed in the storage unit 6 2 8 Executes various processing according to the program loaded from 6 2 8 to RAM 6 2 3 Data necessary for the CPU 621 to execute various processes is also stored in the RAM 633 as appropriate.
  • the steps for describing the programs to be recorded on the recording medium are, of course, processing performed in chronological order according to the described order, and of course parallel processing or individual processing not necessarily in chronological order. Also includes the processing to be performed Ru.
  • system refers to an entire apparatus configured by a plurality of apparatuses.
  • the memory capacity to be used is smaller, the number of operations is small, the hardware can be easily realized, and the contrast of the image can be appropriately enhanced.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Image Processing (AREA)
  • Picture Signal Circuits (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

本発明は、画素値のダイナミックレンジが通常よりも広い広ダイナミックレンジ画像を、画素値のダイナミックレンジがより狭い狭ダイナミックレンジ画像に変換したり、コントラストを強調したりする場合に用いて好適な画像処理装置および方法に関する。ステップS1において、入力された現フレームの広DR輝度画像が、1フレーム前の広DR輝度画像に対して算出された中間情報に基づいて狭DR輝度画像に変換される。また、現フレームの広DR輝度画像に対する中間情報が算出される。ステップS2において、算出した中間情報を用いて、保持していた1フレーム前の中間情報が更新される。ステップS3において、後続するフレームの存在が判定され、後続するフレームが存在する場合、ステップS1に戻り、それ以降の処理が繰り返される。本発明は、ディジタルビデオカメラ等に適用することができる。

Description

明細書
画像処理装置および方法 技術分野
本発明は、 画像処理装置および方法に関し、 特に、 画素値のダイナミックレン ジが通常よりも広い広ダイナミックレンジ画像を、 画素値のダイナミックレンジ がより狭い狭ダイナミックレンジ画像に変換したり、 コントラストを強調したり する場合に用いて好適な画像処理装置および方法に関する。 背景技術
従来、 CCD(Charge Coupled Device)や CMOS (Complementary Metal-Oxid e Semiconductor)等の固体撮像素子がビデオカメラやスチルカメラなどの撮像 機器、 F A(Factory Automation)における部品検查装置、 ME(Medical Electro nics)における電子内視鏡などの光計測装置等に幅広く利用されている。
近年、 これらの固体撮像素子を用いて光学フィルム写真に匹敵するような画素 値のダイナミックレンジが広い画像 (以下、 広 D R画像と記述する) を得るため の技術が多数提案されている。
—方、 動画像や静止画像を表示する CRT(Cathode Ray Tube), LCD (Liquid Crystal Display)等の表示装置、プロジェクタ等の投影装置、各種の印刷装置は、 現在においても、 対応できる画素値のダイナミックレンジは広域化されておらず、 対応可能な輝度階調に制限がある。 このため、 広 D R画像を撮影したとしても、 それをその状態で表示、 投影あるいは印刷可能な装置が存在していないのが現状 である。
そこで、当面においては、広 D R画像の画素値のダイナミックレンジを狭めて、 換言すれば、 輝度階調を圧縮して、 表示装置などのダイナミックレンジに適応さ せた画像 (以下、 狭 D R画像と記述する) を生成するための技術 (以下、 階調圧 縮技術と記述する) が必要とされている。 ここで、 従来において提案された階調圧縮技術について説明する。 階調圧縮技 術は、 単純には、 広 D R画像の画素値の階調を、 表示装置等が対応可能なより狭 いダイナミックレンジの階調に合わせて再配分することにより実現される。
しかしながら、 上述したように、 単に、 広 D R画像の画素値の階調を、 狭いダ ィナミックレンジに均等に階調を再配分しただけでは、 画像全体の輝度変化が小 さくなつてしまい、 コントラストが低下した見栄得が悪い画像に変換されてしま うことになる。 そこで、 従来、 コントラスト低下を抑制することができる階調圧 縮技術がいくつか提案されている。 以下、 従来提案されている 3種類の階調圧縮 技術について説明する。
第 1の階調圧縮技術としては、 入力する広 D R画像の輝度のヒストグラムに基 づき、 階調の再配分規則を適応的に決定する (具体的には、 階調変換曲線を、 入 力画像のヒストグラムを元に算出する) 技術を挙げることができる。 第 1の階調 圧縮技術は、 画像中の重要な被写体が占める面積の比率は大きいことを前提とし て、 ヒス トグラムのピーク近辺の輝度値になるベく多くの階調を配分するように 階調変換曲線を決定するようにし、 少なくとも重要な被写体におけるコントラス ト低下を抑制しょうとするものである。
しかしながら、 このような階調配分のみの工夫ではあらゆる状況で満足のいく 結果を得ることは難しい。 例えば、 重要な被写体が画像中に複数存在する場合、 背景が均一な輝度であって、 かつ、 比較的広い面積を占めている場合 (例えば青 空) などでは、 しばしば被写体に十分な階調が配分されなくなることがある。 第 2の階調圧縮技術としては、 階調変換前または後のどちらか一方において画 像中の高周波成分を強調する技術を挙げることができる。 第 2の階調圧縮技術は、 階調変換によって失われた (または階調変換によって失われると思われる) コン トラストを画像から見積もり、 その分をアンシャープマスキングなどの高周波強 調フィルタを用いて補償するものである。
第 2の階調圧縮技術は、 第 1の階調圧縮技術のように画像の構図に依存する問 題は生じないという利点がある。 しかしながら、 高周波強調フィルタは被写体の 輪郭部分においてオーバーシユートを生じたり、 平坦な部分においてノイズを強 調したりするなどの問題があり、 必ずしも良い画像が得られるとはいえない。 第 3の階調変換技術としては、 広 D R画像を低周波成分画像と高周波成分画像 に分離し、 高周波成分画像はそのままに、 低周波成分画像に対して適当な階調変 換処理を施して、 最後にそれらを 1つの画像に加算合成する技術を挙げることが できる。
第 3の階調変換技術によれば、 広 D R画像の高周波成分はそのままであるので、 階調変換によるコントラスト低下を防ぐことができる。 しかしながら、 第 3の階 調変換技術も、 第 2の階調変換技術と同様に、 被写体の輪郭部分においてオーバ 一シュートを生じたり、 平坦な部分においてノイズを強調したりするなどの問題 があるので、 低周波成分画像と高周波成分画像に分離する処理に非線形フィルタ (例えば、 メディアンフィルタ) を用いることにより、 この問題を解決する方法 も提案されている。
上述した第 1乃至第 3の階調圧縮技術をまとめると、 近傍の画素を利用する比 較的局所的な処理で階調圧縮を行うもの (第 1および第 2の階調圧縮技術) と、 画像全体または比較的大きな領域を使って階調圧縮を行うもの (第 3の階調圧縮 技術) に分けられる。 前者によれば、 ごく高周波成分のみが強調されたような不 自然な画像となり、 効果的な階調圧縮結果が得られるとは言い難い。 また、 後者 によれば、 高周波成分の強調にあわせて比較的低周波の成分も調整することが可 能な分だけ、 前者よりもより自然な画像が得られ、 階調圧縮の効果は高いという ことができる。
しかしながら、 後者によれば、 その処理に、 主にディレイラインまたはフレー ムメモリとして大量のメモリが必要となるので、 ハードウエア化に適していない という問題があった。 例えば、 第 3の階調圧縮技術は、 輝度を複数の周波数成分 に分離するときに空間フィルタが必要であるが、 画像に対して比較的大きな空間 フィルタを適用しなければ、 人為的でない効果的な階調圧縮を施すことができな いので、 大きな空間フィルタを実装するために大量のディレイラインを回路に盛 り込む必要がある。
ところで、 例えば、 ディジタルビデオカメラやディジタルスチルカメラのよう な撮影装置の出力部に、 広 D R画像に階調圧縮処理を施す機能を組み込むことを 考慮した場合、 例えば、 ディジタルビデオカメラでは、 所定のフレームレートを 保証して映像信号を出力しなければならないので、 高速な信号処理が必要となり、 階調圧縮処理の機能をハードウェア化することの要請は高い。 また、 例えば、 静 止画を撮影するディジタルスチルカメラであっても、 構図を決定するためにファ インダにモニタ画像を所定のフレームレートで出力する必要があるので、 階調圧 縮処理が高速であることが望まれる。
以上のように、 使用するメモリの容量がより小さく、 演算も軽量でハードゥエ ァ化が容易であり、 かつ、 階調圧縮の効果が大きい階調圧縮技術が必要とされて いるが、 従来そのような階調圧縮技術は提案されていない課題があった。
また、 上述した第 1乃至第 3の階調圧縮技術に共通して以下の課題が存在する。 第 1に、 高周波成分を強調することに伴い、 被写体の輪郭部分において輝度の オーバーシュートが生じることである。
これを抑止するためには、 比較的大きいサイズ (2 0 X 2 0画素) の 2次元非 線形フィルタが必要であるが、 このようなサイズの 2次元非線形フィルタをソフ トウエアとして実現するには演算コストが非常に大きくなる課題があり、 ハード ウェアとして実現するためにはディレイラインを大量に必要とするため回路規 模が大きくなつてしまう課題があった。
第 2に、 高輝度域および低輝度域における高周波成分のコントラス ト強調量の 制御についてである。 上述した第 2および第 3の階調圧縮技術では、 輝度を低周 波成分と高周波成分に分離して、 低周波成分を比較的抑制し、 高周波成分を強調 することにより、 コントラス トを保持した階調圧縮を行うことが共通している。
しかしながら、 表示装置などが許容する最大輝度と最小輝度の近辺では高周波 成分を強調することによって輝度のクリ ッビングが生じて結果的に画像のディ テールが失われ、 適切な階調変換が行われたとはいえないので、 輝度のクリ ッピ ングが生じないような対処が必要である課題があった。
さらに、 輝度のクリッピングが生じないような状態でも、 コントラス トの強調 が強すぎれば、 被写体の輪郭部分が不自然に強調された画像となってしまう課題 があった。 発明の開示
本発明はこのような状況に鑑みてなされたものであり、 使用するメモリの容量 がより小さく、 演算が少なくて、 ハードウェア化が容易であり、 かつ、 階調圧縮 の効果が大きい階調圧縮技術を実現することを目的とする。
また、 使用するメモリの容量がより小さく、 演算が少なくて、 ハードウェア化 が容易であり、 かつ、 適切に画像のコントラス トを強調できるようにすることを 目的とする。 本発明の画像処理装置は、 入力画像から縮小画像を生成する縮小画像生成手段 と、 縮小画像に基づき、 入力画像の補正情報を取得する補正情報取得手段と、 入 力画像の階調を変換する階調変換手段とを含み、 階調変換手段は、 階調の変換を 行う前およびノまたは後の処理として、 補正情報を用いて入力画像のコントラス トを補正することを特徴とする。
本発明の画像処理装置は、 縮小画像を構成する画素を用いた補間演算により、 入力画像を構成する画素の輝度 L。を平滑化した平滑化画像を生成する平滑化手 段をさらに含むことができ、 前記階調変換手段は、 画像を構成する画素の輝度 L c、 平滑化画像を構成する画素の輝度 Lい および所定のゲイン値 gに基づき、 コ ントラス ト補正画像を生成するようにすることができる。
前記階調変換手段は、 コントラス ト補正画像を構成する画素の輝度 L uを、 次 式
L u = g ■ ( L c - L t ) + L !
に基づいて算出するようにすることができる。 前記縮小手段は、 入力された画像を複数のプロックに分割し、 各ブロックに属 する画素の輝度の平均値を計算して、 平均値を画素の輝度とする、 ブロックの数 と同数の画素から構成される縮小画像を生成するようにすることができる。
前記平滑化手段は、 補間される画素の位置である補間位置に対応する縮小画像 上の位置を特定し、 特定した位置の近傍に存在する縮小画像の画素を用いて、 平 滑化画像の画素の輝度 L!を演算するようにすることができる。
前記平滑化手段は、 補間される画素の位置である補間位置に対応する縮小画像 上の位置を特定し、 特定した位置の近傍に存在する縮小画像の 4 X 4画素を用い た双 3次補間により、 平滑化画像の画素の輝度 L!を演算するようにすることが できる。
本発明の画像処理装置は、 平滑化手段に入力する前の画像を構成する画素の輝 度 L。を対数変換する対数変換手段と、 コントラスト補正画像を構成する画素の 輝度を対数逆変換する対数逆変換手段とをさらに含むことができる。
本発明の画像処理装置は、 縮小画像を構成する画素を用いた補間演算により、 入力画像を構成する画素の輝度 L。を平滑化した平滑化画像を生成する平滑化手 段と、 コントラストを補正するときに用いるゲイン値 gを設定するゲイン値設定 手段とさらに含むことができ、 前記階調変換手段は、 入力画像を構成する画素の 輝度 L c、 平滑化画像を構成する画素の輝度 Lい およびゲイン値 gに基づき、 コ ントラス ト補正画像を生成し、 前記ゲイン値設定手段は、 ゲイン値 gを、 入力さ れた初期ゲイン値 g Q、 基準ゲイン値 1、 並びに、 第 1の輝度閾値 T h ^ 第 2の 輝度閾値 T h 2、および入力画像を構成する画素の輝度 L。によって算出される減 衰値 attn ( T h T h 2 , L J に基づいて設定するようにすることができる。 本発明の画像処理装置は、 入力画像を構成する画素の輝度 Lを、 変換関数に基 づいて変換し、 トーン変換画像を生成する変換手段と、 トーン変換画像を構成す る画素の輝度 L cを平滑化して、 平滑化画像を生成する平滑化手段と、 変換関数 の傾き Vの逆数 l / γである初期ゲイン値 g。に基づき、 コントラストを補正す るときに用いるゲイン値 gを設定するゲイン値設定手段とをさらに含むことがで き、 前記コントラス ト補正手段は、 トーン変換画像を構成する画素の輝度 L c、 平滑化画像を構成する画素の輝度 Lい およびゲイン値 gに基づき、 コントラス ト補正画像を生成し、 前記ゲイン値設定手段は、 ゲイン値 gを、 初期ゲイン値 g 。、 基準ゲイン値 1、 並びに、 第 1の輝度閾値 T h ^ 第 2の輝度閾値 T h 2、 お よびトーン変換画像を構成する画素の輝度 L cによって算出される減衰値 attn (Th X ) T h2, Lc) に基づいて設定するようにすることができる。
前記ゲイン値設定手段は、 ゲイン値 gを次式
g = 1 + (g。― 1) · attn (Th 1 ( T h 2, Lc)
に従って設定するようにすることができる。
前記ゲイン値設定手段は、 減衰値 attn (T h 1; T h 2, Lc) を、 次式 attn (T hい T h 2, L c) = | (L C-T h / (T h 2-T h!) |
(2 T h 1-T h2≤L c≤T h 2)
attn (T hい T h 2, L J = 1
(Lc< 2 T h 1-Th 2) T h 2< Lc) に従って算出するようにすることができる。
前記階調変換手段は、 コントラスト補正画像を構成する画素の輝度 Luを、 次 式
Lu= g ■ (Lc-L t) + L !
に基づいて算出するようにすることができる。
前記第 1の輝度閾値 T h は、 中庸のグレイレベルであり、 前記第 2の輝度閾 値 T h 2は、 最大の白レベルであるようにすることができる。
前記縮小画像生成手段は、 変換関数に基づいて、 入力画像をトーン変換画像に 変換し、 トーン変換画像を縮小して縮小画像を生成し、前記補正情報取得手段は、 変換関数の傾きを含む補正情報を取得し、 前記階調変換手段は、 縮小画像、 およ び変換関数の傾きに基づき、 トーン変換画像のコントラス トを補正するようにす ることができる。
本発明の画像処理装置は、 1フレーム前の画像に対応する縮小画像、 および 1 フレーム前の画像に適用された変換関数の傾きを保持する保持手段をさらに含 むことができる。
前記縮小画像生成手段は、 現フレームの画像の画素値を、 1種類以上の変換関 数を段階的に用いて変換するようにし、 前記階調変換手段は、 保持手段によって 保持された縮小画像、 および 1種類以上の変換関数にそれぞれ対応する傾きの積 に基づき、 トーン変換画像のコントラス トを捕正して、 コントラス ト捕正画像を 生成するようにすることができる。
前記 1種類以上の変換関数のうち、 少なくとも 1種類の変換関数は、 単調増加 関数であるようにすることができる。
本発明の画像処理装置は、 トーン変換画像の画素値の平均値を算出する平均値 算出手段をさらに含むことができ、 前記 1種類以上の変換関数のうち、 少なくと も 1種類の変換関数の傾きは、 平均値算出手段によって算出された平均値の逆数 に比例するようにすることができる。
前記平均値算出手段は、 トーン変換画像を複数のブロックに分割し、 各ブロッ クの画素値の平均を算出して重み付け加算した値を、 平均値として算出するよう にすることができる。
前記縮小画像生成手段は、 トーン変換画像を縮小して第 1の縮小画像を生成し、 第 1の縮小画像の画素値の平均値の逆数に比例する値を第 1の縮小画像の各画 素値に乗算して、 第 2の縮小画像を生成するようにすることができる。
本発明の画像処理装置は、 現フレームの画像の画素値を対数変換する対数変換 手段と、 コントラスト補正画像の画素値を対数逆変換する対数逆変換手段をさら に含むことができる。
本発明の画像処理装置は、 コントラスト補正画像の画素値をガンマ変換するガ ンマ変換手段と、 ガンマ変換手段によってガンマ変換されたコントラスト補正画 像の輝度成分の分布範囲を示す輝度域情報を算出する輝度域情報算出手段と、 輝 度域情報算出手段によって算出された輝度域情報に基づき、 ガンマ変換手段によ つてガンマ変換されたコントラスト補正画像の画素値の分布を、 所定の範囲に正 規化する正規化手段とをさらに含むことができる。
前記輝度域情報算出手段は、 ガンマ変換手段によってガンマ変換されたコント ラスト補正画像の輝度成分の上限値および下限値を、 輝度域情報として算出する ようにし、 前記正規化手段は、 輝度域情報算出手段によって算出されたコントラ ス ト補正画像の輝度成分の上限値および下限値が、 それぞれ、 想定される再現デ バイスが再現可能な輝度成分の範囲の上限値および下限値に一致するように、 コ ントラスト補正画像の画素値を変換するようにすることができる。
前記保持手段は、 輝度域情報算出手段によって算出された 1フレーム前の輝度 域情報も保持するようにすることができる。
前記画像は、 輝度成分を有する画素から構成されたモノクロ画像とすることが できる。
前記画像は、 複数の色成分を有する画素から構成されたカラー画像とすること ができる。
前記縮小画像生成手段は、 カラー画像を元にして、 輝度成分を有する画素から 構成された第 1の輝度画像を生成し、 第 1の輝度画像をトーン変換輝度画像に変 换し、 トーン変換輝度画像に基づいて、 複数の色成分を有する画素から構成され たカラーのトーン変換画像を生成するようにすることができる。
前記縮小画像生成手段は、 カラー画像の各色成分の値と第 1の輝度画像の輝度 成分の値の差分値を算出し、 差分値と変換関数の傾きとの積を算出し、 積をトー ン変換輝度画像の各色成分の値に加算して、 トーン変換画像の各色成分を算出す るようにすることができる。
前記縮小画像生成手段は、 第 1の輝度画像の輝度成分の平均値を算出し、 平均 値の逆数に比例する係数を算出し、 係数をカラー画像の各色成分の値に乗算して、 トーン変換画像の各色成分を算出するようにすることができる。
前記階調変換手段は、 カラーのトーン変換画像を元にして、 輝度成分を有する 画素から構成された第 2の輝度画像を生成し、 第 2の輝度画像、 保持手段によつ て保持された縮小画像、 および変換関数の傾きに基づき、 変換手段によって生成 されたカラーのトーン変換画像のコントラストを補正して、 カラーのコントラス ト補正画像を生成するようにすることができる。
本発明の画像処理装置は、 カラーのコントラスト補正画像の画素値をガンマ変 換するガンマ変換手段と、 ガンマ変換手段によってガンマ変換されたカラーのコ ントラス ト補正画像を元にして、 輝度成分を有する画素から構成された第 3の輝 度画像を生成し、 第 3の輝度画像の輝度成分の分布範囲を示す輝度域情報を算出 する輝度域情報算出手段と、 輝度域情報算出手段によつて算出された輝度域情報 に基づき、 ガンマ変換手段によってガンマ変換されたカラーのコントラスト捕正 画像の画素値の分布を、 所定の範囲に正規化する正規化手段とをさらに含むこと ができる。
本発明の画像処理方法は、 入力画像から縮小画像を生成する縮小画像生成ステ ップと、 縮小画像に基づき、 入力画像の補正情報を取得する補正情報取得ステツ プと、 入力画像の階調を変換する階調変換ステップとを含み、 階調変換ステップ は、 階調の変換を行う前および Zまたは後の処理として、 補正情報を用いて入力 画像のコントラス トを補正する。
本発明の画像処理装置および方法によれば、入力画像から縮小画像が生成され、 生成された縮小画像に基づき、 入力画像の補正情報が取得され、 入力画像の階調 が変換される。 この階調変換の処理では、 階調の変換を行う前および/または後 の処理として、 補正情報を用いて入力画像のコントラストが補正される。 図面の簡単な説明
図 1は、 本発明の一実施の形態であるディジタルビデオカメラの構成例を示す ブロック図である。
図 2は、 図 1の DSPの第 1の構成例を示すプロック図である。
図 3は、 図 2のトーンカーブ補正部の第 1の構成例を示すブロック図である。 図 4は、 トーンカーブの一例を示す図である。
図 5は、 図 2のトーンカーブ補正部の第 2の構成例を示すブロック図である。 図 6は、 図 2のトーンカーブ補正部の第 3の構成例を示十ブロック図である。 図 7は、 図 2の縮小画像生成部の構成例を示すプロック図である。
図 8は、 図 7の平均値計算部の構成例を示すプロック図である。
図 9は、 図 2のコントラスト補正部の構成例を示すプロック図である。
図 1 0は、 図 9の補間部の構成例を示すプロック図である。
図 1 1は、 図 9の補間部の処理を説明するための図である。
図 1 2は、 図 9のゲイン値設定部の構成例を示すプロック図である。
図 1 3は、 図 9のコントラスト強調部の構成例を示すプロック図である。
図 1 4は、 図 2の輝度域正規化部の処理を説明するための図である。
図 1 5は、 図 2の輝度域情報算出部の構成例を示すブロック図である。
図 1 6は、 図 2の輝度域正規化部の構成例を示すプロック図である。
図 1 7は、 図 2のトーンカープ補正部乃至コントラスト補正部と置換可能な複 合部の構成例を示すプロック図である。
図 1 8は、 DSPの第 1の構成例による階調圧縮処理を説明するフローチャート である。
図 1 9は、 図 1 8のステップ S 1の処理の詳細を説明するフローチヤ一トであ る。
図 2 0は、 図 1 8のステップ S 2の処理の詳細を説明するフローチヤ一トであ る。
図 2 1は、 図 1の DSPの第 2の構成例を示すプロック図である。
図 2 2は、 図 2 1のトーンカーブ補正部の第 1の構成例を示すプロック図であ る。
図 2 3は、 図 2 1のトーンカープ捕正部の第 2の構成例を示すプロック図であ る。
図 2 4は、 図 2 1のトーンカーブ補正部の第 3の構成例を示すプロック図であ る。
図 2 5は、 図 2 1の縮小画像生成部の構成例を示すプロック図である。 図 2 6は、 図 2 1のコントラスト補正部の構成例を示すプロック図である。 図 2 7は、 図 2 1のトーンカープ補正部乃至コントラスト補正部と置換可能な 複合部の構成例を示すプロック図である。
図 2 8は、 図 2 1の輝度域情報算出部の構成例を示すプロック図である。
図 2 9は、 DSPの第 2の構成例による階調圧縮処理を説明するフローチヤ一ト である。
図 3 0は、 図 2 9のステップ S 4 3の処理の詳細を説明するフローチヤ一トで ある。
図 3 1は、 図 2 9のステップ S 4 4の処理の詳細を説明するフローチヤ一トで ある。
図 3 2は、 本発明を適用した画像処理システムの構成例を示すブロック図であ る。
図 3 3は、 図 3 2に示された画像処理システムの動作を説明するフローチヤ一 トである。
図 3 4は、 図 3 2に示された画像処理装置の第 1の構成例を示すプロック図で ある。
図 3 5は、 図 3 4に示されたトーンカーブ補正部の構成例を示すブロック図で ある。
図 3 6は、 画像処理装置の第 1の構成例において用いられる トーンカーブの一 例を示す図である。
図 3 7は、 図 3 4に示された平滑化輝度生成部の構成例を示すブロック図であ る。
図 3 8は、 図 3 7に示された縮小画像生成部の構成例を示すブロック図である。 図 3 9は、 図 3 8に示された平均値計算部部の構成例を示すプロック図である。 図 4 0は、 図 3 7に示された補間部の構成例を示すブロック図である。
図 4 1は、 図 3 4に示されたゲイン値設定部の構成例を示すブロック図である。 図 4 2は、 図 3 4に示されたコントラスト補正部の構成例を示すプロック図で ある。
図 4 3は、 画像処理装置の第 1の構成例による階調圧縮画像生成処理を説明す るフローチヤ一トである。
図 4 4は、 図 3 2に示された画像処理装置の第 2の構成例を示すプロック図で ある。
図 4 5は、 画像処理装置の第 2の構成例による階調圧縮画像生成処理を説明す るフローチヤ一トである。
図 4 6汎用のパーソナルコンピュータの構成例を示すプロック図である。 発明を実施するための最良の形態
以下、 本発明の一実施の形態であるディジタルビデオカメラについて、 図面を 参照して説明する。
図 1は、 本発明の一実施の形態であるディジタルビデオカメラの構成例を示し ている。 このディジタルビデオカメラ 1は、 被写体を撮影して、 画素値のダイナ ミックレンジが通常よりも広い広 D R画像を生成し、 所定の記憶媒体に記録する とともに、 構図決定のファインダや映像モニタを兼ねる内蔵されたディスプレイ、 あるいは外部機器に対しては、 広 D R画像を、 画素値のダイナミックレンジがよ り狭い狭 D R画像に変換して出力するものである。
ディジタルビデオカメラ 1は、大別して光学系、信号処理系、記録系、表示系、 および制御系から構成される。
光学系は、 被写体の光画像を集光するレンズ 2、 光画像の光量を調整する絞り 3、 および集光された光画像を所定のフレームレートで光電変換して広 D R画像 を生成する CCDイメージセンサ 4から構成される。なお、以下においては、 CCD イメージセンサ 4が生成する広 D R画像に関しては、 1チヤンネルの輝度信号か らなるモノクロ画像である場合と、 多チャンネル (例えば、 3チャンネル) の輝 度信号からなるカラー画像である場合の 2通りについて説明する。
信号処理系は、 CCDイメージセンサ 4から出力された広 D R画像をサンプリン グすることによってノイズを低減させる相関 2重サンプリング回路 (CDS) 5、 相関 2重サンプリング回路 5によってノィズが除去された広 D R画像を、 例えば 1 4乃至 1 6ビット程度のビット幅を有する値に AD変換する AZDコンバー タ 6、 A/Dコンバータ 6が出力する広 DR画像に対して階調圧縮処理を施す D SP(Digital Signal Processor) 7から構成される。
A/Dコンバータ 6が出力する 1 4乃至 1 6ビットのビット幅を有する広 D R画像のように、 階調が多い画像信号は、 輝度 Y、 色差 C r, C b等の通常のビ デォ信号では再現しきれないが、 DSP 7による階調圧縮処理により、 輝度 Y、 色 差 C r, Cb等の通常のビデオ信号では再現できる範囲に階調を圧縮されるよう になされている。 DSP7については、 図 2以降を参照して詳述する。
ディジタルビデオカメラ 1の記録系は、 DSP7から入力される広 DR画像また は狭 DR画像をエンコードしてメモリ 1 3に記録したり、 メモリ 1 3に記憶され ている符号データを読み出してデコードし、 DSP 7に供給したりする CODEC C ompression/Decompression) 1 2、 および、 エンコードされた広 D R画像または 狭 DR画像を記憶する、 磁気ディスク、 光ディスク、 光磁気ディスク、 半導体な どよりなるメモリ 1 3から構成される。
表示系は、 DSP7から供給される狭 DR画像を DA変換する D/Aコンバータ 9、 DZAコンバータ 9が出力するアナログの狭 DR画像を、輝度 Y、色差 C r, C b等の通常のビデオ信号に変換してディスプレイ 1 1に出力するビデオェン コーダ 1 0、 およびビデオ信号に対応する画像を表示することによってファイン ダゃビデオモニタとして機能する LCDtLiquid Crystal Display)等よりなるディ スプレイ 1 1から構成される。
制御系は、 CCDイメージセンサ 4乃至 DSP7の動作タイミングを制御するタ イミングジェネレータ (TG) 8、 ユーザからの各種の操作を受け付けるインプ ッ トデバイス 1 5、 およびディジタルビデオカメラ 1の全体を制御する CPU(Central Processing Unit) 1 4から構成される。
次に、 ディジタルビデオカメラ 1の動作の概要について説明する。 被写体の光 学画像 (入射光) は、 レンズ 2および絞り 3を介して CCDイメージセンサ 4に 入射され、 CCDイメージセンサ 4によって光電変換され、得られた広 DR画像の 画素となる電気信号は、 相関 2重サンプリング回路 5によってノイズが除去され、 A/Dコンバータ 6によってディジタル化された後、 DSP7に供給される。
DSP7は、 A/Dコンバータ 6から入力された広 DR画像に対して階調圧縮処 理を施し、 狭 DR画像を生成して、 D/Aコンバータ 9または CODEC 1 2、 あ るいは両方に出力する。 D/Aコンバータ 9に供給された狭 DR画像は、 DA変 換され、 ビデエンコーダ 10により通常のビデオ信号に変換されて、 その画像が ディスプレイ 1 1に表示される。一方、 CODEC 1 2に供給された狭 DR画像は、 符号化されてメモリ 1 3に記録される。 以上で、 ディジタルビデオカメラ 1の動 作概要の説明を終了する。
次に、 本発明の主眼となる DSP 7について説明する。
図 2は、モノク口画像である広 DR画像に対応した DSP7の第 1の構成例を示 している。 以下、 DSP7に入力されるモノクロの広 DR画像を、 広 DR輝度画像 Lと記述する。 また、 広 DR輝度画像の画素値 (すなわち、 輝度値) を、 L (p) と記述する。 ここで、 pは、 p = (x, y) のように、 画像における画素位置を 示すベクトルまたは座標である。 従って、 L (p) は、 画素位置と輝度値の両方 の情報を含むものとして、 広 DR輝度画像を表す Lとは区別して用いることとす る。 後述するその他の画像とその画素値についても同様である。
DSP7には、 広 DR輝度画像 Lの輝度 L (p) がラスタ順に入力されるものと する。
DSP7の第 1の構成例において、 対数変換部 2 1は、 入力される輝度 L (p) を対数変換し、 得られる対数輝度 logL (p) をトーンカーブ補正部 22に出力す る。 トーンカーブ補正部 2 2は、 入力される対数輝度 logL (p) に対し、 予め ' 用意されているトーンカーブを適用して階調を圧縮する方向に変換し、 得られる 対数輝度 logLc (p) を縮小画像生成部 2 3およびコントラス ト補正部 25に出 力する。 また、 トーンカーブ補正部 2 2は、 適用したトーンカーブの傾きを示す 代表値 γをコントラス ト補正部2 5に出力する。 以下、 適用したトーンカーブの 傾きを示す代表値 γを、 単に代表値 γとも記述する。
縮小画像生成部 2 3は、 トーンカーブ補正部22から入力される 1フレーム分 の対数輝度 log Lc (p) に基づき、 縮小画像 logLc iを生成して、 縮小画像メモ リ 24に保持させる。
コントラスト補正部 2 5は、 トーンカーブ補正部 22から入力される現フレー ムの対数輝度 logLc (p) のトーンカーブ補正によって弱められているコントラ ス トを、 代表値 yおよび縮小画像メモリ 24に保持されている 1フレーム前の縮 小画像 logLc lに基づいて補正し、 得られる対数輝度 logLu (p) を対数逆変換 部 26に出力する。対数逆変換部 26は、コントラストが補正された対数輝度 log Lu (p) を、 対数逆変換して、 得られる通常軸の輝度 Lu (p) をガンマ補正部 27に出力する。
ガンマ補正部 27は、 対数逆変換部 26から入力される輝度 Lu (p) に対し て、 再生デバイス (例えば、 ディスプレイ 1 1) のガンマ特性を考慮したガンマ 補正を施し、 得られるガンマ補正後の輝度 Y (p) を輝度情報算出部 28および 輝度域正規化部 30に出力する。 輝度情報算出部 28は、 ガンマ補正部 27から 入力される 1フレーム分の輝度 Y (p) に対して、 それぞれ、 輝度の分布を示す 輝度域情報を算出して輝度域情報メモリ 2 9に保持させる。 ここで、 輝度域情報 とは、 1フレームにおける輝度の分布の範囲を示す情報であって、 例えば、 最も 暗い方に近い輝度 Ydと、 最も明るい方に近い輝度 Ybを輝度域情報 [Yd, Yb] として算出するようにする。
輝度域正規化部 30は、 輝度域情報メモリ 29に保持されている 1フレーム前 の輝度域情報 [Yd, YJ に基づき、 ガンマ補正部 27から入力される現フレー ムの輝度 Y (p) を、 その分布範囲が再生デバイス (例えば、 ディスプレイ 1 1) が表現可能な範囲に合致するように変換し、 得られる輝度 Yn (ρ) を、 狭 DR 画像の画素値として後段に出力する。
以上説明したように、 DSP7の第 1の構成例による階調圧縮処理の過程におい 58
17
て、 縮小画像生成部 23により縮小画像 logLc lが生成され、 輝度域情報算出部 28により輝度域情報 [Yd, Yb] が算出される。 この縮小画像 logLc lおよび 輝度域情報 [Yd, YJ を以下、 中間情報と記述する。
DSP 7によれば、 入力される広 D R輝度画像の各フレーム対して中間情報が算 出され、 算出された中間情報が、 1フレーム後の広 DR輝度画像を処理するため に用いられる。
一般に、 階調圧縮を効果的に施すためには、 画像全体または画像上で広域な範 囲の輝度値に基づいて算出された情報が必要であるが、 当該情報を算出するまで のタイムラグが大きくなることが実装上の問題となる。 そこで、 DSP7では、 当 該情報として、 時間的に非常に変化し難いものを選ぶことによって、 1フレーム 前の中間情報を現フレームに対する階調圧縮に利用する。 このような構成をとる ことにより、 実装してもメモリ使用量や回路規模が大きくなることを回避するこ とができる。
次に、 DSP7の第 1の構成例の各部の詳細について、図面を参照して説明する。 図 3は、 トーンカーブ補正部 22の第 1の構成例を示している。 当該第 1の構 成例において、 LUTメモリ 41には、図 4に示すような単調増加のトーンカープ に相当するルックアップテーブル (以下、 LUTと記述する) と トーンカーブの傾 きを示す代表値 γが予め保持されている。 なお、 LUTの代わりに、 トーンカープ に相当する関数を保持するようにしてもよい。 テーブル参照部 42は、 LUTメモ リ 41に保持されている LUTに基づいて対数輝度 log L (p) を対数輝度 logLc (p) に補正する。
図 4は、 トーンカーブの一例を示しており、 横軸が入力輝度 L (p) を、 縦軸 がトーンカーブ補正後の輝度 Lc (p) を、 それぞれ [0, 1] に正規化して対 数軸で表示している。 この例のように、 単調増加であって、 緩やかな逆 S字形の トーンカープを適用すると、 高輝度領域と低輝度領域では、 階調圧縮があまり強 く作用しないので、 階調圧縮後でも白ッブレや黒ッブレが少ない良好な色調が得 られる。 逆に中間輝度域は階調圧縮が強く作用するが、 その分だけ、 中間輝度域 に対しては、 後述するコントラスト補正が十分に適用されるので、 中間輝度域で もコントラスト劣化のない良好な狭 DR画像が得られる。
なお、 トーンカーブの傾きを示す代表値 γは、 例えば、 輝度全域の傾きをそれ ぞれ求めて、 それらの平均値を代表値 γとすればよい。 図 4に示されたトーン力 ーブの場合、 代表値 τ = 0· 67である。 ·
図 5は、 トーンカープ補正部 22の第 2の構成例を示している。 当該第 2の構 成例は、 第 1の構成例のように予め用意されている LUTを用いるのではなく、 フレーム毎に代表値 γを算出して、対数輝度 logL (p) を、対数輝度 logLc (p) に補正するものである。 第 2の構成例において、 平均輝度算出部 51は、 1フレ ーム分の対数輝度 logL (p) の平均値 μを算出する。 除算器 52は、 所定の定 数 logLTを平均値 μで除算し、 代表値 yを算出する。 γメモリ 53は、 除算器 5 2から入力された代表値 γを保持する。乗算器 54は、現フレームの対数輝度 log L (p)に、 γメモリ 53に保持されている 1フレーム前の代表値 γを乗算して、 トーンカーブ補正後の対数輝度 log Lc (p) を算出する。
ここで、 所定の定数 logLTを、 中庸レベルの対数輝度と定めておけば、 1フレ ーム分の対数輝度 logL (p) の平均値が、 logLTと等しい値のトーンカーブ補 正後の対数輝度 logLe (p) に変換されることになる。
代表値 γはフレーム毎に算出されるが、 現実的には各フレームの対数輝度 log L (p) の平均値 μに基づいて決定されるので、 前後のフレームではあまり変化 がないことが期待できる。 従って、 この代表値 γも、 上述した縮小画像 logL c i および輝度域情報 [Yd, YJ と同様に、 1フレーム前のものを、 現フレームに 対するトーンカーブ補正に用いるようにしている。 以下、 代表値 γも、 中間情報 に含めることにする。
図 6は、 トーンカープ補正部 22の第 3の構成例を示している。 当該第 3の構 成例は、 いわば、 第 1の構成例と第 2の構成例を組み合わせたものである。 第 3 の構成例において、 LUTメモリ 6 1には、 図 4に示されたようなトーンカープに 相当する LUT と、 トーンカーブの傾きを示す代表値 γ が予め保持されている。 テーブル参照部 6 2は、 LUTメモリ 6 1に保持されている LUTに基づいて対数 輝度 logL (p) を、 対数輝度 logLc' (p) に補正して平均輝度算出部 6 3およ び乗算器 66に出力する。
平均輝度算出部 6 3は、 1フレーム分の対数輝度 logLc' (p) の平均値 μを算 出して、 除算器 64に出力する。 除算器 64は、 所定の定数 logLTを平均値 で 除算し、 代表値 γ 2を算出し、 γ 2メモリ 6 5に保持させる。 乗算器 66は、 現フ レームの対数輝度 logLc, (p) に、 y 2メモリ 6 5に保持されている 1フレーム 前の代表値 y 2を乗算して、 トーンカープ補正後の対数輝度 logLc (p) を算出 する。 乗算器 6 7は、 代表値 γい γ 2の積を代表値 γ (=γ χ·γ 2) として後段 のコントラスト補正部 2 5に出力する。
次に、 図 7は、 縮小画像生成部 23の構成例を示している。 縮小画像生成部 2 3のソート部 7 1は、 前段のトーンカープ補正部 22から入力された 1フレーム 分の対数輝度 logLc (p) を、 画像全体を mX n個のプロックに分割したときに 属するプロックに応じて分類し、平均値計算部 72— 1乃至 72— N ( = mX n) に供給する。 例えば、 1番目のブロックに分類されるものは平均値計算部 72— 1に供給され、 2番目のプロックに分類されるものは平均値計算部 72-2に供 給される。 以下同様であり、 N番目のブロックに分類されるものは平均値計算部 72— Nに供給される。 以下、 平均値計算部 72— 1乃至 72— Nを個々に区別 する必要がない場合、 単に平均値計算部 7 2と記述する。
平均値計算部 72— i ( i = l , 2, ···, N) は、 1フレーム分の対数輝度 log .Lc (p ) のうち、 i番目のブロックに分類される対数輝度 logL c (p) の平均 値を算出して、 合成部 73に出力する。 合成部 7 3は、 平均値計算部 72— iか らそれぞれ入力される対数輝度 logLc (p) の平均値を画素値とする mX n画素 の縮小画像 logLc iを生成し、 後段の縮小画像メモリ 24に保持させる。
図 8は、 平均値計算部 72の構成例を示している。 平均値計算部 72の加算器 8 1は、 前段のソート部 7 1から入力される対数輝度 logL e (p) に、 レジスタ (r ) 8 2が保持する値を加算して、 レジスタ (r) 8 2が保持する値を更新す る。 除算器 8 3は、 レジスタ 8 2が最終的に保持している値を、 1個のブロック を構成する画素数 Qで除算することにより、 1個のブロックに分類された Q個の 対数輝度 logLc (p) の平均値を算出する。
次に、 図 9は、 コントラスト捕正部 2 5の構成例を示している。 コントラスト 補正部 2 5の補間位置指定部 9 1は、 前段のトーン力ーブ補正部 2 2から入力さ れた対数輝度 logLc (p) の画素位置 p (以下、 補間位置 pとも記述する) を取 得して、 補間部 9 2に出力する。 補間部 9 2は、 縮小画像メモリ 24に保持され ている 1フレーム前の縮小画像 logLc tを用いて、補間位置 pに対応する画素 log Lo l (p) を補間により算出してコントラス ト強調部 9 4に出力する。
ゲイン値設定部 9 3は、 トーンカーブ補正部 2 2からの前フレームに対する代 表値 と、 現在フレームの対数輝度 logLc (p) に基づいて、 現在フレームの対 数輝度 logLc (p)のコントラスト強調量を決めるゲイン値 g (p)を算出する。 コントラス ト強調部 94は、 現在フレームの対数輝度 logLc (p) を、 ゲイン値 g (p) および縮小画像の補間値 logLe l (p) に基づき、 低周波数成分以外の コントラス トが強調された対数輝度 logLu (p) を算出する。
図 1 0は、 補間部 9 2の構成例を示している。 捕間部 9 2は、 1フレーム前の 縮小画像 logL c ,の補間位置 pの近傍の 4 X 4画素を用いた双 3次補間により、 補間位置 Pに対応する画素 logLc l (p) を補間するものである。
近傍選択部 1 0 1は、 補間位置 pの入力を受けて、 縮小画像メモリ 24に保持 されている 1フレーム前の mX n画素の縮小画像 logL c iから、 補間位置 pの近 傍の 4 X 4画素の画素値 a [4][4]を取得して、積和部 1 04に出力する。 ここで a [i][j]の表記は、 画素値 aが i X jの 2次元配列データであることを示す。 また、 近傍選択部 1 0 1は、 取得した画素値 a [4] [4]と補間位置 pとの水平方向の位置 ずれ量 d x、 垂直方向の位置ずれ量 d yを、 それぞれ、 水平係数算出部 1 0 2ま たは垂直係数算出部 1 0 3に出力する。
ここで、 補間位置: p、 近傍の画素値 a [4][4]、 位置ずれ量 d x, d yの関係に ついて、 図 1 1を参照して説明する。 図 1 1の mX nのマス目は、 mX n画素の縮小画像 logL c!を表している。 い ま、 補間位置 p = (p x, p y) が与えられたとすると、 補間位置!)に対応する 縮小画像 log 上の位置 qは、 q = (q X, q y) = (p x/b x- 0. 5, P y /b y ~ 0. 5) である。 ただし、 (b x, b y) = (画像 logLcの水平画 素数/ m, 画像 logLcの垂直画素数/ n) である。
補間位置 Pに対応する縮小画像上の位置 qから近傍画素を得るには、 図 1 1に おいては斜線で示された q x _ 2 < x < q x + 2、 q y-2 < y < q y+ 2の範 囲に位置する縮小画像 logL c!の画素を取得すればよい。 斜線で示された領域内 の 4 X 4の" +" マークで示された位置が取得される画素の位置である。 近傍画 素と補間位置 pのずれ量 (d x, d y) は、 補間位置 qの左下方向の最も近い画 素との差分とする。 すなわち、 ずれ量 (d x, d y) = (q xの小数部, q yの 小数部) である。
図 1 0に戻る。 水平係数算出部 10 2は、 近傍選択部 10 1から入力された水 平方向ずれ量 d Xに基づき、水平方向の 3次補間係数 k x[4]を計算する。同様に、 垂直係数算出部 103は、 近傍選択部 1 0 1から入力された垂直方向ずれ量 d y に基づき、 垂直方向の 3次補間係数 k y [4]を計算する。
例えば、 水平方向の 3次補間係数 kx[4]は、 次式 (1) 'を用いて計算する。 z =|dx-i+2| (3ζ3— 6z2+4)z6 (zく 1)
kx[i] (-z3+6z2-12z+8)/6 (1く- zく 2)
Figure imgf000023_0001
0 その他
… (1) また、 例えば、 垂直方向の 3次補間係数 k y[4]は、 次式 (2) を用いて計算す る。 :=|dy-j+2|
(3z3 - 6z2+4) 6
ky[j] = (一 z3+6z2—12z+8レ 6 (1く =zく 2)
. 0 その他
… (2) なお、 3次補間係数 kx[4], ky[4]の計算には、 上述した式 (1), (2) の他、 十分に滑らかな補間が得られるならば、 任意の計算式を用いることができる。 積和部 1 04は、 近傍の画素値 a[4][4]と、 水平方向の補間係数 k x[4]および垂 直方向の補間係数 ky[4]との積和計算により、 縮小画像 logLc lの補間位置 ί>の 補間値 Lc l (p) を、 次式 (3) を用いて算出する。
4 4
logL0| (p = ∑ ∑ au」u]'kxLi]'ky[j]
i=1 j=l
… (3) 次に、 ゲイン値設定部 9 3について説明する。 ゲイン値設定部 93は、 上述し たように、 後段のコントラスト強調部 94により低周波数域以外が強調される際 の強調量を調節するゲイン値 g (p) を設定するものである。 ゲイン値 g (p) = 1である場合、 コントラスト強調部 94においてコントラス トは強調も抑制も 行われない。 ゲイン値 g (p) 〉 1である場合、 その値に対応してコントラス ト が強調される。 また、 ゲイン値 g (p) < 1である場合、 その値に対応してコン トラス 1、が抑制される。
ゲイン値設定の概略を説明する。 画像のコントラス トは、 トーンカーブ補正に よる階調圧縮によって既に抑制されているが、 その抑制量はトーンカーブの傾き に依存している。 例えば、 強い階調圧縮を行うように傾きの小さなトーンカーブ が適用されていれば、 コントラス トの抑制も強くなされていることになる。 また、 例えばトーンカープとして傾き 1の直線が適用されていれば、 画像が変化しない、 すなわち、 コントラストの抑制は行われていないことになる。
そこで、 ゲイン値設定部 9 3では、 トーンカーブの傾きの代表値 γが 1よりも 小さい場合には、 ゲイン値が 1より大きくなるように、 トーンカーブの傾きの代 表値 γの逆数 ΐΖγをゲイン値として採用する。
また、 入力される対数輝度 log Le (p) が白レベルまたは黒レベルに近い場合 には、 中間輝度域と同じようなコントラスト強調を行うとタリッビングが生じて 逆に画像のディテールを失う結果となるので、 入力される対数輝度 logLc (p) が白レベルまたは黒レベルに近くなるに従って、 ゲイン値が 1に近づくようする すなわち、 代表値!の逆数 1/y = g Qとして、 ゲイン値 g (p) を次式 (4) のように算出する。
g (p) = 1 + (g。— 1) Xattn (p)
… (4) ここで、 attn (p) は、 減衰する係数であって、 次式 (5) を用いて計算され る。
attn(p) = attn(logLgray, logLwhjte, logLc (p)) logLc(p) - logL
(2logLgray-logLwhite<logLc(p)<logLwhite) _ 1 その他
… (5) なお、 式 (5) において、 logLg r a yは、 中庸なグレイレベルの対数輝度を示 し、 logLwh i t eは、 白クリップレベル (最大の白レベル) の対数輝度を示してお り、 どちらも予め設定されている定数である。
図 1 2は、 ゲイン値設定部 93の構成例を示している。 除算器 1 1 1は、 前段 から入力される代表値 γの逆数 1/Y = g。を算出して減算器 1 1 2に出力する。 減算器 1 1 2は、 (g。一 1) を演算して乗算器 1 1 8に出力する。
減算器 1 1 3は、対数輝度 logL。 (p) と、 中庸なグレイレベルの対数輝度 log Lg r a yの差(logLc (p) -logL6 r a y) を演算して、除算器 1 1 5に出力する。 減算器 1 1 4は、 白クリップレベルの対数輝度 logLwh i t eと、 対数輝度 logLg r ayの差 (logLwh i t e— logLg t.a y) を演算して、 除算器: I 1 5に出力する。 除 算器 1 1 5は、 減算器 1 1 3の出力 (logLc (p) -logLg r a y) を、 減算器 1 14の出力 (logLwh i t e— logLg r a y) で除算して、 絶対値計算器 1 1 6に出力 する。 絶対値計算器 1 16は、 除算器 1 1 5の出力の絶対値を計算してクリップ 器 1 1 7に出力する。 クリップ器 1 1 7は、 絶対値計算器 1 1 6の出力が 1を超 過する場合、 その値を 1にクリッピングし、 絶対値計算器 1 1 6の出力が 1を超 過しない場合、 その値をそのまま、 attn (p) として乗算器 1 1 8に出力する。 乗算器 1 1 8は、減算器 1 1 2の出力に、クリップ器 1 1 7の出力を乗算して、 加算器 1 1 9に出力する。 加算器 1 1 9は、 乗算器 1 1 8の出力に 1を加算し、 演算結果をゲイン値 g (p) として後段に出力する。
次に、 図 1 3は、 コントラスト強調部 94の構成例を示している。 減算器 1 2 1は、 対数輝度 logLc (p) と、 縮小画像の補間値 logLc I (p) との差 (log Lc (p) -logLc l (p)) を演算して、 乗算器 1 22に出力する。 乗算器 1 2 2は、 減算器 1 21の出力とゲイン値 g (p) との積を演算して、 加算器 1 23 に出力する。 加算器 1 23は、 乗算器 1 22の出力に、 縮小画像の補間値 logLc ! (p) を加算して、 コントラスト捕正がなされた対数輝度 logLu (p) を後段 に出力する。
なお、 縮小画像の補間値 logL c t (p) は、 mX n画素の縮小画像を元にして 補間された値であるから、縮小前の画像 log L cのごく低周波域成分だけをもつも のである。
つまり、 減算器 1 2 1の出力 (logLc (p) -logLc l (ρ))·は、 元の対数輝 度 logLc (p) からごく低域成分だけを差し引いたものである。 このように輝度 信号をごく低周波域の成分とそれ以外の成分の 2つに分離し、 そのうち、 低周波 域成分以外をゲイン値 g (p) を乗算して強調した後、 再び加算器 1 23により 合成したものが、 コントラスト補正がなされた対数輝度 logLu (p) である。 このように、 コントラス ト強調部 94では、 ごく低周波域を除く、 低中周波域 から高周波域の成分が同じゲイン値 g (p) で強調されるようになっている。 従 つて、 コントラスト補正がなされた対数輝度 logLu (p) は、 高周波域だけを強 調したときに目立つ、 エッジ部分の局所的なオーバーシュートは発生せず、 見た 目にもごく自然にコントラストが強調された画像が得られるようになされてい る。
次に、 輝度域情報算出部 2 8および輝度域正規化部 3 0について説明する。 まず、 輝度域正規化処理の概要を説明する。 DSP 7による階調圧縮処理の目的 は広 D R輝度画像を、 ディスプレイ 1 1などの再生デバイスのダイナミックレン ジに適合した狭 D R画像に変換することであり、 そのために、 再生デバイスのダ イナミックレンジにあわせたトーンカーブがトーンカーブ補正部 2 2に予め用 意されている。 これにより、 撮影された大多数の広 D R輝度画像を、 適切に階調 圧縮することができる。
しかしながら、 撮影する被写体によっては、 入射光のダイナミックレンジが 元々それほど大きくないこともあり得るので、 その画像に階調圧縮処理を施した 場合、 必要以上に階調圧縮が行われてしまい、 再生デバイスの再生可能なダイナ ミックレンジよりも狭いレンジに、 輝度が押し込められてしまうこともあり得る。 これを抑止するために、 輝度域正規化部 3 0では、 階調圧縮処理の最終段階の 処理として、 ガンマ補正後の輝度信号 Y ( p ) のダイナミックレンジが、 再生デ パイスが再生可能なダイナミックレンジに一致するように、 ガンマ補正後の輝度 信号 Y ( p ) を正規化する。
図 1 4は、 輝度域正規化部 3 0による輝度域正規化処理の様子を示している。 同図の折れ線グラフは、 横軸に輝度域正規化前のガンマ捕正された輝度 Yを示し、 縦軸に輝度域正規化後の輝度 Y nを示しており、 階調変換曲線 aは、 輝度 Yを Y n に変換するときに用いる変換テーブルを示している。
階調変換曲線 aの求め方について説明する。 折れ線グラフの下に示された斜線 の図形 1 3 1は、 輝度域正規化前の輝度画像 Yのヒストグラムの一例である。 こ の例においては、 ガンマ補正が行われた輝度域正規化前の段階で、 ディジタルビ デォカメラ 1が生成し得る最低輝度 Y m i nから最高輝度 Y m a xまでのダイナミッ クレンジよりも狭いダイナミックレンジに階調圧縮された輝度画像が得られて いる。
このダイナミックレンジのままで再生デバイスに出力すると、 再生デバイスの 再生可能なダイナミックレンジが有効に使われないので、 輝度域正規化前の輝度 画像 Yの輝度分布が、 再生デバイスのダイナミックレンジの全域に亘つて分布す るように正規化を実行する。
そのためにまず、 輝度域正規化前の輝度画像 Yのヒストグラム形状 1 31が分 布する範囲 [Yd, YJ を、 輝度域正規化前の輝度画像 Yの輝度域情報として算 出する。 そして、 再生デバイスの輝度域 [Ynb, YnJ の上下端よりも若干内側 の輝度 Yna, Yn sを設定し、 横軸の輝度 (Ymi n, Yd, Yb, Yma x} が縦軸の 輝度 {Ynb, Yna, Yn s, Ync}に対応するように階調変換曲線ひを決定する。 この階調変換曲線 αを用いて階調変換を行えば、 折れ線グラフの左に示された 斜線の図形 1 32のようなヒストグラム形状をもつ輝度画像 Υηを得ることがで さる。
なお、 輝度域正規化前の輝度域 [Yd, YJ を、 再生デバイスの輝度域 [Yn b, Yno] よりも若干狭い輝度域 [Yna, Yn s] に写像するように、 階調変換曲 線ひを決定したが、 その理由は、輝度 Ynb, Ync付近での急激な輝度クリッピン グが画像上に現れないようにするためである。
ここで、 輝度 Yna, Yn sは、 輝度 Ynb, Yncに基づいて予め適切な値を設定 されているものとする。
なお、 輝度域正規化前の輝度域 [Yd, YJ の取得は、 輝度域情報算出部 28 が行い、 階調変換曲線 の決定および輝度 Yn (ρ) の算出は、 輝度域正規化部 30が実行する。
図 1 5は、 輝度域情報算出部 28の構成例を示している。 輝度域情報算出部 2 8において、 間引き部 141は、 ガンマ捕正部 27から入力された輝度 Υ (ρ) を、 その画素位置]?に基づいて選別する。 すなわち、 予め設定された画素位置の 画素の輝度だけを後段の ΜΙΝソート部 142および MAXソート部 145に供給 する。 MINソート部 142は、.比較部 143とレジスタ 144の組み合わせが k組直 列に配置されており、 入力された輝度 Y (p) を小さい順にレジスタ 144— 1 乃至 144一 fcに保持するようになされている。
例えば、 比較部 143— 1は、 間引き部 14 1からの輝度 Y (p) とレジスタ 144一 1の値を比較し、 間引き部 14 1からの輝度 Y (p) がレジスタ 144 一 1の値よりも小さい場合、 間引き部 141からの輝度 Y (p) を用いてレジス タ 144一 1の値を更新する。 反対に、 間引き部 14 1からの輝度 Y (p) がレ ジスタ 144— 1の値よりも小さくない場合、間引き部 141からの輝度 Y (p) は後段の比較部 143 _ 2に供給される。
比較部 143— 2は、 比較部 143— 1からの輝度 Y (p) とレジスタ 1 44 _ 2の値を比較し、 比較部 143 _ 1からの輝度 Y (p) がレジスタ 144— 2 の値よりも小さい場合、 比較部 143— 1からの輝度 Y (p) を用いてレジスタ 1 44 _ 2の値を更新する。 反対に、 比較部 143— 1からの輝度 Y (p) がレ ジスタ 144一 2の値よりも小さくない場合、 比較部 14 3— 1からの輝度 Y (p) は後段の比較部 143— 3に供給される。
比較部 143— 3以降においても同様であり、 1フレーム分の輝度 Y (p) が 入力された段階で、 レジスタ 144_ 1に輝度 Y (p) の最小値 Ymi nが保持さ れ、 レジスタ 144— 2乃至 144一 kに、 輝度 Y (p) が小さい順に保持され ることになり、 レジスタ 144— kに保持された輝度 Y (p) 力^ 輝度域情報の 輝度 Ydとして後段に出力される。
MAX ソート部 145は、 比較部 146とレジスタ 147の組み合わせが k組 直列に配置されており、 入力された輝度 Y (p) を大きい順にレジスタ 147— 1乃至 147— kに保持するようになされている。
例えば、 比較部 146— 1は、 間引き部 1 4 1からの輝度 Y (p) とレジスタ 147 - 1の値を比較し、 間引き部 14 1からの輝度 Y (p) がレジスタ 144 _ 1の値よりも大きい場合、 間引き部 1 4 1からの輝度 Y (p) を用いてレジス タ 14 7— 1の値を更新する。 反対に、 間引き部 14 1からの輝度 Y (p) がレ ジスタ 147_ 1の値よりも大きくない場合、間引き部 141からの輝度 Y (p) は後段の比較部 146— 2に供給される。
比較部 146— 2は、 比較部 146 _ 1力 らの輝度 Y (p) とレジスタ 147 一 2の値を比較し、 比較部 146— 1からの輝度 Y (p) がレジスタ 147— 2 の値よりも大きい場合、 比較部 146— 1からの輝度 Y (p) を用いてレジスタ 147— 2の値を更新する。 反対に、 比較部 146— 1からの輝度 Y (p) がレ ジスタ 1 4 7— 2の値よりも大きくない場合、 比較部 1 46— 1からの輝度 Y (p) は後段の比較部 146— 3に供給される。
比較部 146— 3以降においても同様であり、 1フレーム分の輝度 Y (p) カ 入力された段階で、 レジスタ 147— 1に輝度 Y (p) の最大値 Yma xが保持さ れ、 レジスタ 147 _ 2乃至 147— kに、 輝度 Y (p) が大きい順に保持され ることになり、 レジスタ 147— kに保持された輝度 Y (p) 力 輝度域情報の 輝度 Ybとして後段に出力される。
なお、 MIN ソート部 14 2および MAX ソート部 145に入力される輝度 Y (p)は、間引き部 141により間引きされたものであるので、間引きの間隔と、 MIN ソート部 142および MAXソート部 145の段数 kを適切に調整すれば、 1フレームの全画素のうち、 例えば、 上限および下限のそれぞれ 1 %等に相当す る輝度 Yd, Ybを得ることが可能になる。
図 1 6は、輝度域正規化部 30の構成例を示している。輝度域正規化部 30は、 上述したように、 階調変換曲線 αを決定し、 階調変換曲線ひを用いてガンマ捕正 後の輝度 Υ (ρ) を輝度域正規化後の輝度 Υη (ρ) に変換するものである。
図 1 4に示されたように、 階調変換曲線ひは 5本の線分で構成されているので、 輝度域正規化部 30では、 入力された輝度 Υ (ρ) がどの線分の範囲であるかを 判別し、 入力された輝度 Υ ( ρ ) に階調変換曲線ひを構成する 5本の線分のうち の 1つを適用して、 輝度域正規化後の輝度 Υη (ρ) に変換する。
輝度域正規化部 3 0のセレクタ 1 5 1は、入力端子 iに入力される輝度 Y (p) に基づき、 入力端子 a乃至 hにそれぞれ入力される輝度 Yma x, Yb, Yd, Ymi n, Ync, Yn s, Yna, Ynbのうちの 4つの輝度を、 出力端子 j乃至 mから出力 する。 この対応関係は、 次式 (6) の通りである。
r [h, h, c, d] i<d
[h, g, G, d] d<i<c
[j,k, l,tn] = [g, f , b, c] c<i<b
[f, e,a,b] b<i<a
Je, e, a, b] a<i
… (6) 減算器 1 52は、 出力端子 kの出力と出力端子 jの出力の差を演算して、 除算 器 1 5 5に出力する。 減算器 1 5 3は、 出力端子 1の出力と減算器 1 54の出力 の差を演算して、 除算器 1 55に出力する。 減算器 1 54は、 輝度 Y (p) と出 力端子 mの出力との差を演算して、 乗算器 1 5 6に出力する。 除算器 1 5 5は、 減算器 1 5 2の出力と減算器 1 5 3の出力の比を演算して乗算器 1 5 6に出力 する。 乗算器 1 5 6は、 除算器 1 5 5の出力と減算器 1 54の出力の積を演算し て、 加算器 1 57に出力する。 加算器 1 5 7は、 出力端子]'の出力と乗算器 1 5 6の出力を加算して出力する。
加算器 1 5 7の出力 Yn (ρ) は、 ガンマ補正後の輝度 Υ (ρ) に基づいて判 別された階調変換曲線 αの線分を示す次式 (7) に示すとおりとなる。
Yn(p) = ^ l(Y(p) -m)+j
I -m
… (7) 以上で、 図 2に示された DSP 7を構成する各部の説明を終了する。
ところで、 図 6に示されたトーンカーブ補正部 2 2の平均輝度算出部 6 3と、 図 7に示された縮小画像生成部 2 3の平均輝度計算部 7 2が同様の計算を実行 することに着目すれば、 よりシンプルな回路構成で演算量を減少させることが可 能である。 具体的には、 図 2のトーンカープ補正部 22、 縮小画像生成部 2 3、 縮小画像メモリ 24、 およびコントラスト補正部 25を組み合わせて、 図 1 7に 示すような複合部を設ければよい。 この複合部 1 60は、 図 2に示されたトーンカーブ補正部 22、 縮小画像生成 部 23、 縮小画像メモリ 24、 およびコントラスト捕正部 25と置換可能なもの である。
複合部 1 60の LUT メモリ 1 6 1には、 図 4に示されたようなトーンカープ に相当する LUTと'、 トーンカーブの傾きを示す代表値 γ が予め保持されている。 テーブル参照部 1 6 2は、 上段から入力された対数輝度 logL (p) を、 LUTメ モリ 1 6 1に保持されている LUTに基づいて対数輝度 logLc, (p) に補正して 縮小画像生成部 1 6 3および乗算器 1 72に出力する。
縮小画像生成部 1 63は、 対数輝度画像 logL を mX n個のプロックに分割 し、 各ブロックに属する画素の対数輝度 logLc, (p) の平均値を算出して、 m X n画素の第 1の縮小画像を生成し、 第 1の縮小画像メモリ 1 64に保持させる。 平均輝度算出部 6 3は、 第 1の縮小画像メモリ 1 64に保持されている 1フレ ーム前の第 1の縮小画像の画素値の平均値 μを算出して、 除算器 1 66に出力す る。 除算器 1 66は、 所定の定数 logLTを平均値 μで除算し、 代表値 γ 2を算出 し、 γ 2メモリ 1 6 7に保持させる。 乗算器 1 6 8は、 第 1の縮小画像メモリ 1
64に保持されている第 1の縮小画像の各画素に、 γ 2メモリ 6 5に保持されて いる代表値 V 2を乗算して、第 2の縮小画像 logLc lを生成し、第 2の縮小画像メ モリ 1 69に持させる。
乗算器 1 70は、 テーブル参照部 1 6 2から入力された現フレームの対数輝度 logLc, (p) に、 γ 2メモリ 1 6 7に保持されている 1フレーム前の代表値 γ 2 を乗算して、 トーンカープ補正後の対数輝度 logLc (p) を算出する。 乗算器 1 7 1は、 代表値 γ ι, ν 2の積を代表値 γ (= 7 !- 72) としてゲイン値設定部 1
72に出力する。
ゲイン値設定部 1 Ί 2は、 乗算器 1 7 1から入力された前フレームに対する代 表値 Υと、 乗算器 1 70から入力された現在フレームの対数輝度 logL^ (P) に 基づいて、 現在フレームの対数輝度 logL c (p) のコントラス ト強調量を決める ゲイン値 g (p) を算出する。 捕間位置指定部 1 73は、 乗算器 1 70から入力された現在フレームの対数輝 度 logL。 (p) の画素位置!) (以下、 補間位置 pとも記述する) を取得して、 補 間部 1 74に出力する。 補間部 1 74は、 第 2の縮小画像メモリ 1 6 9に保持さ れている 1フレーム前の第 2の縮小画像 logLc iを用いて、 補間位置: に対応す る画素 logLc l (p) を補間により算出してコントラスト強調部 1 75に出力す る。
コントラスト強調部 1 Ί 5は、 乗算器 1 70から入力された現在フレームの対 数輝度 logLc (p) について、 ゲイン値 g (p) および縮小画像の捕間値 logLc ! (p) に基づき、 低周波数成分以外のコントラス トが強調された対数輝度 logL u (p) を算出する。
この複合部 1 60を用いれば、 平均輝度算出部 1 6 5は、 第 1の縮小画像の m X n画素の平均値を算出することになるので、 本来の画像サイズの対数輝度画像 logLeの画素の平均値を算出する図 6の平均輝度算出部 6 3に比較して、 演算量 を削減することがヤきる。 従って、 演算に起因する遅延時間を短縮することがで きる。
次に、図 1 7に示された複合部 1 60が適用された DSP 7の第 1の構成例によ る総合的な階調圧縮処理について、 図 1 8のフローチャートを参照して説明する。 ステップ S 1において、 DSP7は、 入力された現フレームの広 DR輝度画像 L を、 1フレーム前の広 DR輝度画像に対して算出され、 保持されている中間情報 (第 2の縮小画像 logL。 (p)、 代表値 、 輝度域情報 [Yd, YJ) を基づいて 狭 DR輝度画像 Ynに変換する。 また、 DSP7は、 現フレームの広 DR輝度画像 Lに対する中間情報を算出する。
ステップ S 2において、 DSP7は、 算出した現フレームの広 DR輝度画像 に 対する中間情報を用いて、 保持していた 1フレーム前の広 DR輝度画像に対する 中間情報を更新する。
ステップ S 3において、 DSP7は、入力された現フレームの広 DR輝度画像に、 後続するフレームが存在するか否かを判定し、 後続するフレームが存在すると判 定した場合、 ステップ S Iに戻り、 それ以降の処理を繰り返す。 反対に、 後続す るフレームが存在しないと判定された場合、 この階調圧縮処理は終了される。 ステップ S 1における画素単位の処理の詳細を、 図 1 9のフローチャートを参 照して説明する。 以下に説明する各ステップの処理は、 ラスタ順に入力される注 目画素 (画素位置 p) に対して実行される。
ステップ S I 1において、 DSP7に注目画素 (画素位置 p) の輝度 L (p) が 入力される。ステップ S 12において、対数変換部 21は、入力された輝度 L (p) を対数変換し、 得られた対数輝度 logL (p) を複合部 160に出力する。 ステ ップ S 13において、 複合部 160のテーブル参照部 162は、 対数変換部 21 から入力された対数輝度 logL (p)を、 LUTメモリ 16 1に保持されている LUT に基づいて対数輝度 logLc, (p) に補正して縮小画像生成部 163および乗算 器 172に出力する。 これと同時に、 LUTメモリ 16 1は、 トーンカープの傾き の代表値 V iを乗算器 1 71に出力する。 乗算器 171は、 代表値 y!と γ 2メモ リ 16 7に保持されている 1フレーム前の第 1の縮小画像に基づいて算出され た γ 2の積を代表値 γとしてゲイン値設定部 172の出力する。
ステップ S 14において、 縮小画像生成部 163は、 トーンカーブ補正後の 1 フレーム分の対数輝度 logL c ' (p) を元に、 第 1の縮小画像を生成する。 ここ で、 生成された第 1の縮小画像に基づき、 代表値 γ 2が算出される。 また、 生成 された第 1の縮小画像に算出された代表値 γ 2が乗算されて、第 2の縮小画像 log Lc lが生成される。
ステップ S i 5において、 乗算器 1 70は、 テーブル参照部 162から入力さ れた現フレームの対数輝度 logLc, (p) に、 γ 2メモリ 167に保持されている 1フレーム前の代表値 γ 2を乗算して、 トーンカーブ補正後の対数輝度 logLc (p) を算出する。
ステップ S 1 6において、 ゲイン値設定部 1 72は、 乗算器 1 71から入力さ れた前フレームに対する代表値 γと、 乗算器 1 70から入力された現在フレーム の対数輝度 logLc (p) に基づいて、 現在フレームの対数輝度 log L。 (p) のコ ントラス ト強調量を決めるゲイン値 g (P) を算出する。
ステップ S 1 7において、 捕間部 1 74は、 第 2の縮小画像メモリ 169に保 持されている 1フレーム前の第 2の縮小画像 logLc lを用いて、 補間位置 pに対 応する画素 logLc l (p) を捕間により算出してコントラスト強調部 175に出 力する。 ステップ S 18において、 コントラス ト強調部 1 75は、 第 2の縮小画 像の補間値 logLc l (p) およびゲイン値 g (p) に基づき、 トーンカープ補正 後の対数輝度 logLc (p) の低周波域成分以外を強調し、 その結果得られたコン トラスト捕正された対数輝度 logL u ( p )を後段の対数逆変換部 26に出力する。 ステップ S 1 9において、 対数逆変換部 26は、 コントラス ト補正された対数 輝度 logLu (P) を、 通常軸の輝度 Lu (P) に変換し、 ガンマ補正部 27に出 力する。 ステップ S 20において、 ガンマ補正部 27は、 所定のガンマ補正を行 レ、、 得られた輝度 Y (p) を輝度域情報算出部 28および輝度域正規化部 30に 出力する。
ステップ S 2 1において、 輝度域情報算出部 28は、 1フレーム分の輝度 Y (p) を元にして、 輝度域情報 [Yd, YJ を生成する。 ステップ S 22におい て、 輝度域正規化部 30は、 輝度域情報メモリ 29に保持されている 1フレーム 前の輝度域情報 [Yd, YJ に基づき、 ガンマ補正部 27から入力された輝度 Y (p) を正規化して、 輝度 Yn (ρ) を算出する。 ステップ S 23において、 輝 度域正規化部 30は、 輝度 Υη (Ρ) を、 階調圧縮された狭 DR輝度画像の画素 値として出力する。 以上で、 図 18のステップ S 1の処理の詳細な説明を終了す る。
次に、 図 18のステップ S 2の処理の詳細を、 図 20のフローチャートを参照 して説明する。 ステップ S 31において、 縮小画像生成部 163は、 トーンカー ブ補正後の 1フレーム分の対数輝度 logL c ' (p) を元に生成した第 1の縮小画 像を用いて、 第 1の縮小画像メモリ 164に保持されている第 1の縮小画像を更 新する。
ステップ S 32において、 除算器 166は、 所定の定数 logLTを、 平均輝度算 出部 1 6 5から入力された平均値 μで除算して代表値 γ 2を算出し、 算出した代 表値 V 2を用いて、 2メモリ 1 6 7に保持されている代表値 Τ 2を更新する。 ステップ S 33において、 乗算器 1 68は、 ステップ S 3 1の処理で更新され た第 1の縮小画像メモリ 1 64に保持されている第 1の縮小画像の各画素に、 ス テツプ S 3 2の処理で更新された γ 2メモリ 6 5に保持されている代表値 γ 2を 乗算して、 第 2の縮小画像 logL c iを生成し、 第 1の縮小画像メモリ 1 69に保 持されている第 2の縮小画像 logL c λを更新する。
ステップ S 34において、 輝度域情報算出部 28は、 1フレーム分の輝度 Υ (ρ) を元にして算出した輝度域情報 [Yd, Yb] を用いて、 輝度域情報メモリ 29に保持されている 1フレーム前の輝度域情報 [Yd, Yb] を更新する。 以上 で、 図 1 8のステップ S 2の処理の詳細な説明を終了する。
次に、 図 2 1は、 カラー画像である広 DR画像に対応した DSP7の構成例を示 している。 なお、 DSP7にラスタ順に入力される広 DR画像は、 全ての画素がそ れぞれ R, G, B成分の全てを有しているのではなく、 R, G, B成分のうちの いずれか 1つを有しているものとする。 以下、 DSP 7の第 2の構成例に入力され るカラー画像である広 DR画像を、 広 DR色モザイク画像と記述する。 なお、 広 DR色モザイク画像の各画素が R, G, B成分のうちのいずれを有しているかは、 画素位置によって決定されている。
DSP 7にラスタ順に入力される広 DR色モザイク画像の画素値を、 L (p) と 記述する。
DSP7の当該第 2の構成例において、 デモザイク部 20 1は、 画素毎に異なる 色成分を有する 1フレーム分の画素値 L (p) を元に対し、 全て画素が R, G, B成分を全て有するようにデモザイク処理を施して、色信号 [R (p), G (p), B (p)] を生成し、 色バランス調整部 202に出力する。 以下、 デモザイク部 20 1から出力される色信号からなる画像を広 DRカラー画像と記述する。
色バランス調整部 20 2は、 画像全体の色バランスが適切になるように、 R, G, B成分それぞれを調整して、 色信号 [Rb (p), Gb (p), Bb (p)] を生 成する。なお、デモザイク部 2 0 1および色バランス調整部 2 0 2は、単板式 CCD ィメージセンサが搭載された一般的なディジタルビデオに実装されているもの である。
対数変換部 2 0 3は、色バランス調整部 20 2から入力される色信号 [Rb (p), Gb (p), Bb (p)] を対数変換し、 得られる対数色信号 [logRb (p), logG b (p), logB b (p)] をトーンカーブ捕正部 2 0 4に出力する。 トーンカープ 補正部 20 4は、入力される対数色信号 [logRb (p), logGb (p), logB b (p)] に対し、 予め用意されているトーンカーブを適用して階調を圧縮する方向に変換 し、 得られる対数色信号 [logRc (p), logGc (p), log Be (p)] を縮小画像 生成部 20 5およびコントラス ト補正部 2 0 7に出力する。 また、 トーンカーブ 補正部 20 4は、 適用したトーンカープの傾きを示す代表値 γをコントラスト補 正部 2 0 7に出力する。
縮小画像生成部 2 0 5は、 トーンカーブ補正部 2 0 4から入力される 1フレー ム分の対数色信号 [logRc (p ), logGc (p), log Be (p)] を元に、 縮小画像 logLc lを生成して、 縮小画像メモリ 20 6に保持させる。
コントラスト捕正部 2 0 7は、 トーンカーブ補正部 204から入力される現フ レームの対数色信号 [logRc (p), log Go (p), log Be (p )] のトーンカーブ 補正によって弱められているコントラストを、 代表値 γおよび縮小画像メモリ 2 0 6に保持されている 1フレーム前の縮小画像 logL c!に基づいて補正し、 得ら れる対数色信号 [logRu (p), logGu (p), logBu (p)] を対数逆変換部 2 0 8に出力する。対数逆変換部 2 0 8は、コントラストが補正された対数色信号 [log Ru (P), logGu (p), logBu (p)] を、 対数逆変換して、 得られる通常軸の色 信号 [Ru (P), Gu (p), Bu (p)] をガンマ補正部 2 0 9に出力する。
ガンマ補正部 2 0 9は、対数逆変換部 2 0 8から入力される色信号 [Ru (p), Gu (p), Bu (p)] に対して、 再生デバイス (例えば、 ディスプレイ 1 1 ) の ガンマ特性を考慮したガンマ補正を施し、 得られるガンマ補正後の色信号 [Rg (p), Gu (p), Bg (p)] を輝度情報算出部 2 1 0および輝度域正規化部 2 1 2に出力する。 輝度情報算出部 210は、 ガンマ補正部 209から入力される 1 フレーム分の色信号 [Rg (p), Gu (p), Bg (p)] を輝度 Y (p) に変換し た後、 輝度 Y (ρ) の分布を示す輝度域情報を算出して輝度域情報メモリ 21 1 に保持させる。 ここで、 輝度域情報とは、 1フレームにおける輝度 Υ (ρ) の分 布の範囲を示す情報であって、 例えば、 最も暗い方に近い輝度 Ydと、 最も明る い方に近い輝度 Ybを輝度域情報 [Yd, YJ として算出するようにする。
輝度域正規化部 212は、 輝度域情報メモリ 21 1に保持されている 1フレー ム前の輝度域情報 [Yd, Yb] に基づき、 ガンマ補正部 209から入力される現 フレームの色信号 [Rg (p), Gu (p), Bg (p)] を、 その分布範囲が 生デ バイス(例えば、ディスプレイ 1 1)が表現可能な範囲に合致するように変換し、 得られる色信号 [Rn (p), Gn (p), Bn (p)] を、 カラー画像である狭 DR 画像の画素値として後段に出力する。
以下説明したように、 カラー画像に対応する DSP 7の第 2の構成例は、デモザ イク部 201および色バランス部 202が追加されていること以外、 図 2に示さ れたモノクロ画像に対応する第 1の構成例とほぼ同様であるが、 各部の内部の構 成がカラー画像に対応するために若干変更されている。
図 22は、 トーンカーブ補正部 204の第 1の構成例を示している。 当該第 1 の構成例において、 輝度生成部 221は、 入力される対数色信号 [logRb (p), logGb (p), logB b (p)] の線形和を演算することにより対数輝度 logLb (p) を生成し、 減算器 222— R乃至 222— Bおよびテーブル参照部 224に出力 する。
減算器 222— Rは、 対数色信号 logRb (p) から対数輝度 logLb (p) を減 算して、 乗算器 225— Rに出力する。 LUTメモリ 223には、 図 4に示された ようなトーンカーブに相当する LUT と トーンカーブの傾きを示す代表値 γが予 め保持されている。 テーブル参照部 224は、 LUTメモリ 223に保持されてい る LUTに基づいて対数輝度 logL (p) を対数輝度 logLc (p) に補正し、 加算 器 226— R乃至 226—Bに出力する。 乗算器 2 25— Rは、減算器 222 _Rの出力に、 LUTメモリ 223から入力 される代表値 γを乗算して、加算器 226— Rに出力する。加算器 226— Rは、 乗算器 22 5 _Rの出力と、 対数輝度 logLc (ρ) との和を演算して、 トーン力 ーブ補正後の対数色信号 logRc (p) として後段に出力する。
なお、 G, B成分をそれぞれ処理する構成要素については、 上述した R成分を 処理する構成要素と同様であるので、 その説明は省略する。
図 2 3は、 トーンカーブ補正部 204の第 2の構成例を示している。 当該第 2 の構成例において、 輝度生成部 23 1は、 入力される対数色信号 [logRb (p), logGb (p), logBb (p)] の線形和を演算することにより対数輝度 logLb (p) を生成し、 平均輝度算出部 23 2に出力する。 平均輝度算出部 232は、 1フレ ーム分の対数輝度 logL (p) の平均値 μを算出して、除算器 2 3 3に出力する。 除算器 23 3は、所定の定数 logLTを平均値 μで除算して代表値 γを算出し、 γ メモリ 234に保持させる。
乗算器 2 3 5— Rは、 現フレームの対数色信号 logRb' (p) に、 γメモリ 2 3 4に保持されている 1フレーム前の代表値 Vを乗算して、 トーンカープ補正後の 対数色信号 logRc (p) を算出する。
なお、 G, B成分をそれぞれ処理する構成要素については、 上述した R成分を 処理する構成要素と同様であるので、 その説明は省略する。
図 24は、 トーンカープ補正部 204の第 3の構成例を示している。 当該第 3 の構成例は、 いわば、 第 1の構成例と第 2の構成例を組み合わせたものである。 第 3の構成例において、輝度生成部 24 1は、入力される対数色信号 [logRb(p), logGb (p), lo Bb (p)] の線形和を演算することにより対数輝度 logLb (p) を生成し、 減算器 242— R乃至 242— Bおよびテーブル参照部 244に出力 する。
減算器 242— Rは、 対数色信号 logRb (p) から対数輝度 logLb (p) を減 算して、 乗算器 2 50— Rに出力する。 LUTメモリ 243には、 図 4に示された ようなトーンカーブに相当する LUT と トーンカーブの傾きを示す代表値 γ iが 予め保持されている。 テーブル参照部 244は、 LUTメモリ 243に保持されて いる LUTに基づいて対数輝度 log L (p) を、 対数輝度 logLc, (p) に補正し て平均輝度算出部 245および乗算器 249に出力する。
平均輝度算出部 245は、 1フレーム分の対数輝度 logLc' (p) の平均値 μを 算出して、 除算器 246に出力する。 除算器 246は、 所定の定数 logL τを平均 値/!で除算して代表値 y 2を算出し、 γ 2メモリ 247に保持させる。 乗算器 24 8は、 代表値 γい τ/ 2の積を代表値 γ (= !' γ 2) として後段のコントラスト 補正部 20 7に出力する。
乗算器 249は、 現フレームの対数輝度 logLc, (p) に、 γ 2メモリ 24 7に 保持されている 1フレーム前の代表値 γ 2を乗算してトーンカーブ補正後の対数 輝度 logLc (p) を算出市、 加算器 2 5 1— R乃至 2 5 1—Bに出力する。 乗算器 2 50— Rは、 減算器 242 _Rの出力に、 乗算器 248から入力され る代表値 γを乗算して、 加算器 25 1一 Rに出力する。 加算器 2 5 1一 Rは、 乗 算器 2 50— Rの出力と、 乗算器 249の出力の積を演算し、 トーンカーブ補正 後の対数色信号 logRc (p) として後段に出力する。
なお、 G, B成分をそれぞれ処理する構成要素については、 上述した R成分を 処理する構成要素と同様であるので、 その説明は省略する。
次に、 図 2 5は、 縮小画像生成部 205の構成例を示している。 縮小画像生成 部 20 5の輝度生成部 26 1は、 入力されるトーンカーブ補正後の対数色信号 [logR c (p), logGc (p), logB c (p)] の線形和を演算することにより対数 輝度 logLc (p) を生成し、 ソート部 26 2に出力する。
ソート部 26 2は、 対数輝度 logLc (p) を、 画像を mX n個のブロックに分 割したときに属するプロックに応じて分類し、 平均値計算部 26 3— 1乃至 26 3— N ( = mX ii) に供給する。 例えば、 1番目のブロックに分類されるものは 平均値計算部 26 3— 1に供給され、 2番目のブロックに分類されるものは平均 値計算部 26 3— 2に供給される。 以下同様であり、 N番目のブロックに分類さ れるものは平均値計算部 26 3— Nに供給される。 平均値計算部 26 3— i ( i = 1 , 2, N) は、 1フレーム分の対数輝度 logLc (p) のうち、 i番目のブロックに分類される対数輝度 logL c (p) の平 均値を算出して、 合成部 264に出力する。 合成部 264は、 平均値計算部 26 3— iからそれぞれ入力される対数輝度 log L。 (p) の平均値を画素値とする m X n画素の縮小画像 logLc tを生成し、 後段の縮小画像メモリ 206に保持させ る。
次に、 図 26は、 コントラスト補正部 207の構成例を示している。 コントラ スト補正部 25の輝度生成部 270は、 入力されるトーンカーブ補正後の対数色 信号 [logRc (p), logGc (p), logBc (p)] の線形和を演算することにより 対数輝度 logL c (p) を生成し、 補間位置指定部 27 1およびゲイン値設定部 2 73に出力する。
補間位置指定部 2 71は、 対数輝度 logl^ (p) の画素位置 p (以下、 補間位 置 pとも記述する) を取得して、 補間部 272に出力する。 ¾|間部 2 72は、 縮 小画像メモリ 206に保持されている 1フレーム前の縮小画像 logLc lを用いて、 補間位置!)に対応する画素 logLc l (p) を補間により算出して、 減算器 274 一 R乃至 2 74— Bおよび加算器 276— R乃至 276—Bに出力する。
ゲイン値設定部 2 73は、 トーンカーブ補正部 22から入力される前フレーム に対する代表値 γと、 現在フレームの対数輝度 logLe (p) に基づいて、 現在フ レームの対数輝度 log Lc (p) のコントラスト強調量を決めるゲイン値 g (p) を算出し、 乗算器 2 75— R乃至 27 5— Bに出力する。
減算器 2 74— Rは、 対数色信号 logRc (p) から補間値 logLc l (p) を減 算して、 乗算器 275— Rに出力する。 乗算器 27 5— Rは、 減算器 274— R の出力に、 ゲイン値 g (p) を乗算して、 加算器 276— Rに出力する。 加算器 276— Rは、 乗算器 2 75— Rの出力に、 補間値 logLc l (p ) を加算して、 得られたコントラス ト補正後の対数色信号 logRu (p) を後段に出力する。
なお、 G, B成分をそれぞれ処理する構成要素については、 上述した R成分を 処理する構成要素と同様であるので、 その説明は省略する。 次に、図 27は、図 21のトーンカーブ補正部 204、縮小画像生成部 205、 縮小画像メモリ 206、 およびコントラスト補正部 207と置換することができ る複合部 300の構成例を示している。
複合部 300の輝度生成部 301は、入力される対数色信号 [logRb ( p ) , log Gb (p), logBb (p)] の線形和を演算することにより対数輝度 logLb (p) を生成し、 減算器 302— R乃至 302— Bおよびテーブル参照部 304に出力 する。 減算器 302— Rは、 対数色信号 logRb (p) から、対数輝度 logLb (p) を減算して乗算器 316— Rに出力する。
LUTメモリ 303には、 図 4に示されたようなトーンカープに相当する LUT と、 トーンカーブの傾きを示す代表値 γ が予め保持されている。 テーブル参照 部 304は、 輝度生成部 301から入力された対数輝度 logL (p) を、 LUTメ モリ 303に保持されている LUTに基づいて対数輝度 logLc, (p) に補正し乗 算器 305および縮小画像生成部 306に出力する。
乗算器 305は、 テーブル参照部 304から入力された現フレームの対数輝度 logLc, (p) に、 γ 2メモリ 167に保持されている 1フレーム前の代表値 y 2 を乗算して、 トーンカーブ補正後の対数輝度 logLc (p) を算出し、 加算器 3 1 7— R乃至 31 7— Bに出力する。
縮小画像生成部 306は、 対数輝度画像 logLc'を mX n個のプロックに分割 し、 各プロックに属する画素の対数輝度 logLc, (p) の平均値を算出して、 : m Χη画素の第 1の縮小画像を生成し、 第 1の縮小画像メモリ 307に保持させる。 平均輝度算出部 308は、 第 1の縮小画像メモリ 307に保持されている 1フ レーム前の第 1の縮小画像の画素値の平均値 μを算出して、 除算器 309に出力 する。 除算器 309は、 所定の定数 logLTを平均値 μで除算し、 代表値 γ 2を算 出し、 γ 2メモリ 310に保持させる。 乗算器 31 1は、 代表値 γい γ 2の積を 代表値 γ (= 7! · γ 2) として求め、 ゲイン値設定部 3 1 5および乗算器 3 16 一 R乃至 3 16— Βに出力する。
乗算器 3 1 2は、 第 1の縮小画像メモリ 164に保持されている第 1の縮小画 像の各画素に、 γ 2メモリ 3 10に保持されている代表値 y 2を乗算して、 第2の 縮小画像 logLc lを生成し、 第 2の縮小画像メモリ 3 1 3'に持させる。
補間部 3 14は、 第 2の縮小画像メモリ 16 9に保持されている 1フレーム前 の第 2の縮小画像 logLc lを用いて、 乗算器 1 70から入力された現在フレーム の対数輝度 logLc (p) の画素位置!) (以下、 補間位置 pとも記述する) に対応 する画素 logLc l (p) を補間により算出して、 減算器 3 1 8—R乃至 3 1 8— Bおよび加算器 320— R乃至 320— Bに出力する。
ゲイン値設定部 3 1 5は、 乗算器 3 1 1から入力された前フレームに対する代 表値 γと、 乗算器 305から入力ざれた現在フレームの対数輝度 logLc (p) に 基づいて、 現在フレームの対数輝度 logLc (p) のコントラス ト強調量を決める ゲイン値 g (p) を算出し、 乗算器 3 1 9—R乃至 3 1 9—Bに出力する。
乗算器 3 16 _Rは、 減算器 302— Rの出力と代表値 yの積を演算して、 加 算器 3 1 7— Rに出力する。 加算器 3 1 7— Rは、 乗算器 3 1 6— Rの出力と、 乗算器 305の出力との和を演算して、 減算器 3 18— Rに出力する。 減算器 3 1 8— Rは、 加算器 3 1 7— Rの出力から、 補間値 logLc l (p) を減算して、 乗算器 31 9一 Rに出力する。 乗算器 3 1 9—Rは、 減算器 3 1 8— Rの出力に ゲイン値 g (p) を乗算して、 加算器 320—Rに出力する。 加算器 3 20— R は、 乗算器 3 1 9— Rの出力と、 補間値 logLc l (p) の和を演算して、 を加算 して、得られたコントラスト補正後の対数色信号 logRu (p)を後段に出力する。 なお、 G, B成分をそれぞれ処理する構成要素については、 上述した R成分を 処理する構成要素と同様であるので、 その説明は省略する。
この複合部 300を用いれば、 平均輝度算出部 308は、 第 1の縮小画像の m X n画素の平均値を算出することになるので、 本来の画像サイズの対数輝度画像 logLeの画素の平均値を算出する図 24の平均輝度算出部 24 5に比較して、 演 算量を削減することができる。 従って、 演算に起因する遅延時間を短縮すること ができる。
次に、 図 28は、 輝度域情報算出部 2 1 0の構成例を示している。 輝度域情報 算出部 210において、輝度生成部 331は、ガンマ補正後の色信号 [R g ( p ), Gg (p), Bg (p)] の線形和を演算することにより輝度 Y (ρ) を生成し、 間 引き部 332に出力する。 間引き部 332は、 輝度生成部 33 1から入力された 輝度 Υ (ρ) を、 その画素位置 Ρに基づいて選別する。 すなわち、 予め設定され た画素位置の画素の輝度だけを後段の ΜΙΝソート部 333および MAXソート部 336に供給する。
MINソート部 333は、比較部 334とレジスタ 335の組み合わせが k組直 列に配置されており、 入力された輝度 Y (p) を小さい順にレジスタ 335— 1 乃至 335— kに保持するようになされている。
例えば、 比較部 334— 1は、 間引き部 332からの輝度 Y (p) とレジスタ 335— 1の値を比較し、 間引き部 332からの輝度 Y (p) がレジスタ 335 — 1の値よりも小さい場合、 間引き部 332からの輝度 Y (p) を用いてレジス タ 335 _ 1の値を更新する。 反対に、 間引き部 332からの輝度 Y (p) がレ ジスタ 335— 1の値よりも小さくない場合、間引き部 332からの輝度 Y (p) は後段の比較部 334— 2に供給される。
比較部 334— 2以降においても同様であり、 1フレーム分の輝度 Y (p) が 入力された段階で、 レジスタ 335— 1に輝度 Y (p) の最小値 Ymi nが保持さ れ、 レジスタ 335— 2乃至 335— kに、 輝度 Y (p) が小さい順に保持され ることになり、 レジスタ 335— kに保持された輝度 Y (p) 力 輝度域情報の 輝度 Ydとして後段に出力される。
MAX ソート部 336は、 比較部 337とレジスタ 338の組み合わせが k組 直列に配置されており、 入力された輝度 Y (P) を大きい順にレジスタ 338— 1乃至 338— kに保持するようになされている。
例えば、 比較部 337— 1は、 間引き部 332からの輝度 Y (p) とレジスタ 338 - 1の値を比較し、 間引き部 332からの輝度 Y (p ) がレジスタ 338 一 1の値よりも大きい場合、 間引き部 332からの輝度 Y (p) を用いてレジス タ 338— 1の値を更新する。 反対に、 間引き部 33 2からの輝度 Y (p) がレ ジスタ 338— 1の値よりも大きくない場合、間引き部 332からの輝度 Y (p) は後段の比較部 337— 2に供給される。
比較部 337— 2以降においても同様であり、 1フレーム分の輝度 Y (p) 力 S 入力された段階で、 レジスタ 338— 1に輝度 Y (p) の最大値 Yma xが保持さ れ、 レジスタ 338 _ 2乃至 338 _ kに、 輝度 Y (p) が大きい順に保持され ることになり、 レジスタ 338— kに保持された輝度 Y (p) 力 輝度域情報の 輝度 Ybとして後段に出力される。
なお、 MIN ソート部 333および MAX ソート部 336に入力される輝度 Y (P)は、間引き部 332により間引きされたものであるので、間引きの間隔と、 MINソート部 333および MAXソート部 336の段数 kを適切に調整すれば、 1フレームの全画素のうち、 例えば上下 1%や 0.1%などに相当する輝度値 Yd, Ybを得ることが可能になる。
次に、図 27に示された複合部 300が適用された DSP 7の第 2の構成例によ る総合的な階調圧縮処理について、 図 29のフローチャートを参照して説明する。 ステップ S 41において、 DSP7 (デモザイク部 201) は、 広 DR色モザィ ク画像にデモザイク処理を施して、 広 DRカラー画像を生成し、 その画素値、 す なわち、 色信号 [R (p), G (p), B (p)] をラスタ順に色バランス調整部 202に出力する。 ステップ S 42において、 DSP7 (色バランス調整部 202) は、 画像全体の色バランスが適切になるように、 R, G, B成分それぞれを調整 して、 色信号 [Rb (p), Gb (p), Bb (p)] を生成する。
ステップ S 43おいて、 DSP7は、 入力される現フレームの広 DRカラー画像 の色信号を、 1フレーム前の広 DRカラー画像に対して算出され、 保持されてい る中間情報 (第 2の縮小画像 logLc (p)、 代表値 y、 輝度域情報 [Yd, YJ) を基づいて狭 DRカラー画像 Ynに変換する。 また、 DSP7は、 現フレームの広 DRカラー画像 Lに対する中間情報を算出する。 .
ステップ S 44において、 DSP7は、 算出した現フレームの広 D Rカラー画像 Lに対する中間情報を用いて、 保持していた 1フレーム前の広 DRカラー画像に 対する中間情報を更新する。
ステップ S 45において、 DSP7は、 入力された現フレームの広 DRカラー画 像に、 後続するフレームが存在するか否かを判定し、 後続するフレームが存在す ると判定した場合、ステップ S 4 1に戻り、それ以降の処理を繰り返す。反対に、 後続するフレームが存在しないと判定された場合、 この階調圧縮処理は終了され る。
ステップ S 42における画素単位の処理の詳細を、 図 30のフローチヤ一トを 参照して説明する。 以下に説明する各ステップの処理は、 ラスタ順に入力される 注目画素 (画素位置 p) に対して実行される。
ステップ S 5 1において、 色パランス調整部 20 2は、 生成した色信号 [Rb (p), Gb (p), Bb (p)] を、 対数変換部 20 3に出力する。 ステップ S 5 2において、 対数変換部 203は、 入力された色信号 [Rb (p), Gb (p), B b (p)] を対数変換し、 得られた対数色信号 [logRb (p), logGb (p), log Bb (p)] を複合部 300に出力する。
ステップ S 5 3において、 複合部 300の輝度生成部 30 1は、 入力された対 数色信号 [logRb (p), logGb (p), logBb (p)] の線形和を演算することに より対数輝度 logLb (p) を生成し、 減算器 30 2— R乃至 302 _Bおよぴテ 一プル参照部 3 04に出力する。 ステップ S 54において、 テーブル参照部 30 4は、 入力された対数輝度 logL (p) を、 LUTメモリ 30 3に保持されている LUTに基づいて対数輝度 logLc, (p) に補正して、 乗算器 305および縮小画 像生成部 306に出力する。
ステップ S 5 5において、 縮小画像生成部 306は、 トーンカーブ補正後の 1 フレーム分の対数輝度 logL c ' (p) を元に、 第 1の縮小画像を生成する。 ここ で、 生成された第 1の縮小画像に基づき、 代表値 2が算出される。 また、 生成 された第 1の縮小画像に算出された代表値 γ 2が乗算されて、第 2の縮小画像 log Lc 1が生成される。
ステップ S 5 6において、 乗算器 3 05は、 テーブル参照部 304から入力さ れた現フレームの対数輝度 logLc, (p) に、 γ 2メモリ 3 1 0に保持されている 1フレーム前の代表値 γ 2を乗算して、 トーンカーブ補正後の対数輝度 logLc
(p) を算出する。
ステップ S 57において、 R成分については減算器 30 2— R、 乗算器 3 16 一 R、 および加算器 3 1 7— Rの演算により、 トーンカープ補正後の対数色信号 logRe (p) が生成される。 G成分については減算器 302— G、 乗算器 3 1 6 一 G、 および加算器 3 1 7_Gの演算により、 トーンカーブ補正後の対数色信号 logGc (p) が生成される。 B成分については減算器 302— B、 乗算器 3 1 6 一 B、 および加算器 3 1 7 _Bの演算により、 トーンカープ補正後の対数色信号 logB c (p) が生成される。
ステップ S 58において、 ゲイン値設定部 31 5は、 乗算器 3 1 1から入力さ れた前フレームに対する代表値 γと、 乗算器 305から入力された現在フレーム の対数輝度 logLc (p) に基づいて、 現在フレームの対数輝度 log Lc (p) のコ ントラスト強調量を決めるゲイン値 g (p) を算出する。 ステップ S 5 9におい て、 補間部 3 14は、 第 2の縮小画像メモリ 3 1 3に保持されている 1フレーム 前の第 2の縮小画像 logLc lを用いて、 補間位置!)に対応する画素 logLc l (p) を捕間により算出する。
ステップ S 60において、 R成分については減算器 3 1 8— R、 乗算器 3 1 9 _R、 および加算器 3 20— Rの演算により、 コントラスト補正後の対数色信号 logRu (p) が生成される。 G成分については減算器 3 1 8— G、 乗算器 3 1 9 一 G、 および加算器 3 20 _Gの演算により、 コントラス ト補正後の対数色信号 logGu (p) が生成される。 B成分については減算器 3 1 8— B、 乗算器 3 1 9 一 B、 および加算器 3 20— Bの演算により、 コントラス ト捕正後の対数色信号 logBu (p) が生成される。
ステップ S 6 1において、 対数逆変換部 208は、 コントラス ト補正後の対数 色信号 [logRu (p), logGu (p), logBu (p)] を、 対数逆変換して、 通常軸 の色信号 [R,, (p), Gu (p), Bu (p)] を生成し、 ガンマ捕正部 20 9に出 力する。 ステップ S 6 2において、 ガンマ補正部 20 9は、 所定のガンマ補正を 行い、 得られたガンマ補正後の色信号 [Rg (p), Gg (p), Bg (p)] を輝度 情報算出部 2 1 0および輝度域正規化部 2 1 2に出力する。
ステップ S 6 3において、 輝度域情報算出部 2 10の輝度生成部 3 3 1は、 ガ ンマ補正後の色信号 [Rg ( p ) , Gg (p), Bg (p)] を元にして輝度 Y (p) を生成する。 ステップ S 64において、 輝度域情報算出部 2 10の MIN ソート 部 33 3および MAXソート部 3 36は、 1フレーム分の輝度 Y (p) を元にし て、 輝度域情報 [Yd, Yb] を生成する。
ステップ S 6 5において、 輝度域正規化部 21 2は、 輝度域情報メモリ 2 1 1 に保持されている 1フレーム前の輝度域情報 [Yd, YJ に基づき、 ガンマ補正 部 209から入力された色信号 [Rg (p), Gg (p), Bg (p)] を正規化して、 色信号 [Rn (p), Gn (p), Bn (p)] を算出する。 ステップ S 66において、 輝度域正規化部 21 2は、算出した色信号 [Rn (p), Gn (p), Bn (p)] を、 階調圧縮された狭 DRカラー画像の画素値として出力する。 以上で、 図 2 9のス テツプ S 4 3処理の詳細な説明を終了する。
次に、 図 2 9のステップ S 44の処理の詳細を、 図 3 1のフローチヤ一トを参 照して説明する。 ステップ S 7 1において、 縮小画像生成部 306は、 トーン力 ーブ補正後の 1フレーム分の対数輝度 logLc, (p) を元に生成した第 1の縮小 画像を用いて、 第 1の縮小画像メモリ 307に保持されている第 1の縮小画像を 更新する。
ステップ S 7 2において、 除算器 30 9は、 所定の定数 logLTを、 平均輝度算 出部 1 6 5から入力された平均値 μで除算して代表値 γ 2を算出し、 算出した代 表値 γ 2を用いて、 γ 2メモリ 3 1 0に保持されている代表値 γ 2を更新する。 ステップ S 7 3において、 乗算器 3 1 2は、 ステップ S 7 1の処理で更新され た第 1の縮小画像メモリ 307に保持されている第 1の縮小画像の各画素に、 ス テツプ S 7 2の処理で更新された γ 2メモリ 3 1 0に保持されている代表値 γ 2 を乗算して、 第 2の縮小画像 logLc lを生成し、 第 1の縮小画像メモリ 3 1 3に 保持されている第 2の縮小画像 log L c 1を更新する。
ステップ S 7 4において、 輝度域情報算出部 2 1 0は、 1フレーム分の [ R g ( p ) , G g ( p ), B g ( p ) ] を元にして生成した輝度域情報 [Y d, Y b ] を用 いて、 輝度域情報メモリ 2 1 1に保持されている 1フレーム前の輝度域情報 [Y d, Y b ] を更新する。 以上で、 図 2 9のステップ S 4 4の処理の詳細な説明を終 了する。
以上で、 DSP 7の第 2の構成例の説明を終了する。
なお、 例えば、 図 5に示された平均輝度算出部 5 1、 図 6に示された平均輝度 算出部 6 3、 図 1 7の平均輝度算出部 1 6 5、 図 2 3に示された平均輝度算出部 2 3 2、 図 2 4に示された平均輝度算出部 2 4 5のそれぞれにおいては、 輝度値 の平均値を算出するようにしたが、 平均値を求める演算に、 重み付き平均を用い るようにしてもよい。 例えば、 画像の中央部分の重みを周辺部分の重みよりも大 きくすることによって、 画像の中央部分に存在する被写体の反射率に重点をおい た明るさ補正を行うことが可能になる。
図 1 7に示された複合部 1 6 0および図 2 7に示された複合部 3 0 0におい ては、 生成された第 1の縮小画像を保持するメモリと、 生成された第 1の縮小画 像に代表値 γ 2を乗算して生成された第 2の縮小画像を保持するメモリが設けら れているが、 第 2の縮小画像が生成された時点で、 第 1の縮小画像を保持する必 要がなくなるので、 この 2つのメモリを 1つにまとめることも可能である。
本実施の形態のように、本発明を、広 D R画像を撮影し、その階調を圧縮して、 狭いダイナミックレンジのディスプレイに表示可能な画像として出力するディ ジタルビデオカメラに適用すれば、 従来の階調圧縮技術に必要であった大量のメ モリ (フレームメモリや画素系列データのディレイラインとして使用される) を 大幅に削減した構成で階調圧縮処理を実現でき、 かつ、 従来大きなフィルタ処理 をもって実現されていた階調圧縮処理と遜色のない出力画像を得ることができ るようになる。
このことによって、 いままで実現できなかった高品質、 かつ、 安価なディジタ ルビデオカメラを実現することができる。
なお、 本実施の形態においては、 広 DR画像を、 ディスプレイ 1 1を再現デバ イスに想定して、 階調圧縮処理を施すようにしたが、 例えば、 ディジタルビデオ カメラ 1に外部接続するにモニタやプリンタの表現可能なダイナミックレンジ に適合させて階調圧縮処理を施すことも可能である。
次に、 図 3 2は、 本発明を適用した画像処理システムの構成例を示している。 この画像処理システム 501は、 被写体を撮影し、 通常よりも広いダイナミック レンジの画素値 (輝度) を有する画素から構成される広 DR画像 Lを生成するビ デォカメラ 502、 ビデオカメラ 502によって生成された広 DR画像 Lの階調 を、 ディスプレイ 5 1 1が表示可能な階調の範囲に圧縮する画像処理装置 5 10、 および画像処理装置 5 1 0によって生成される階調圧縮画像 Luを表示するディ スプレイ 1 1から構成される。
ビデオカメラ 502は、 被写体の光画像を集光するレンズ 5 0 3、 光画像の光 量を調整する絞り 504、 集光された光画像を光電変換して輝度信号を生成する CCDイメージセンサ 505、生成された輝度信号からノイズ成分を除去する前置 増幅器 (Pre- amp .)506、 ノイズ成分が除去された輝度信号を、 例えば 14乃至 1 6ビット程度のビット幅のディジタルデータに変換する ADコンバータ (AZ D) 507、 およびディジタル化された輝度を有する画素から構成される広 DR 画像 Lを画像処理装置 5 10に出力する Iノ0インタフェース ( I /O) 508 から構成される。
図 3 2は、 画像処理システム 1の動作概要を示している。 ステップ S 10 1に おいて、 ビデオカメラ 50 2は、 被写体を撮影し、 対応する広 DR画像 Lを生成 して、 画像処理装置 5 1 0に出力する。 ステップ S 1 02において、 画像処理装 置 5 1 0は、 広 DR画像 Lに階調圧縮処理を施して階調圧縮画像 Luを生成し、 ディスプレイ 5 1 1に出力する。 ステップ S 1 03において、 ディスプレイ 5 1 1は、 階調圧縮画像 Luを表示する。
次に、 図 34は、 画像処理装置 5 1 0の第 1の構成例を示している。 画像処理 装置 5 1 0のトーンカープ補正部 5 2 1は、 ビデオカメラ 5 0 2から入力される 広 D R画像 Lを、 予め用意されているトーンカーブに基づいて、 階調を圧縮する 方向に補正し、 その結果として得られるトーンカーブ補正画像 L cを、 平滑化輝 度生成部 5 2 2、 ゲイン値設定部 5 2 3、 およびコントラスト補正部 5 2 4に出 力する。 なお、 このトーンカープ補正画像 L eは、 階調が圧縮されており、 階調 が圧縮されたことに起因して、 コントラス トが弱められたものとなっている。 ま た、 トーンカープ補正部 5 2 1は、 補正に用いたトーンカーブの傾きを示す代表 値 γをゲイン値設定部 5 2 3に出力する。
図 3 5は、 トーンカーブ補正部 5 2 1の構成例を示している。 トーンカーブ補 正部 5 2 1の LUT メモリ 5 3 1には、 図 3 6に示すような単調増加のトーン力 ープに相当するルックアップテーブル (以下、 LUTと記述する) と、 トーンカー ブの傾きを示す代表値 yが予め保持されている。 なお、 LUTの代わりに、 トーン カーブに相当する関数を保持するようにしてもよい。 テーブル参照部 5 3 2は、 LUTメモリ 5 3 1に保持されている LUTに基づき、 広 D R画像 Lを、 トーン力 ーブ補正画像 L cに補正する。
図 3 6は、 トーンカーブの一例を示しており、 横軸が広 D R画像 Lの輝度を、 縦軸が補正後のトーンカーブ補正画像 L cの輝度を、 それぞれ [ 0 , 1 ] に正規 ィ匕して表示している。 図 3 6に示されたトーンカーブは、 正規化された広 D R画 像 Lの輝度値が 0 . 5よりも大きい場合にはその値を補正せず、 正規化された広 D R画像 Lの輝度値が 0 . 5よりも小さい場合には、 その値が小さいほど、 大き な補正量で補正する。 つまり、 ディスプレイ 5 1 1に表示されたとき、 画像の中 の暗い領域が黒くつぶれないように補正が行われる。 なお、 トーンカーブの傾き を示す代表値 γは、 例えば、 輝度全域の傾きをそれぞれ求めて、 それらの平均値 を代表値 γとすればよい。 例えば、 図 3 6に示されたトーンカーブの代表値は、 y = 0 . 9 4である。
図 3 4に戻る。 平滑化輝度生成部 5 2 2は、 トーンカーブ補正画像 L。の輝度 を平滑化し、 得られる平滑化画像の輝度 L c l ( p ) をコントラスト補正部 2 4に 出力する。 図 3 7は、 平滑化輝度生成部 22の構成例を示している。
平滑化輝度生成部 52 2の縮小画像生成部 54 1は、 トーンカーブ補正部 5 2 1から入力されたトーンカープ補正画像 Lcの画素を、 その画素位置に対応して mX 11プロックに分類し、 各プロックに分類された画素の輝度の平均値を画素と する縮小画像 Lc lを生成する。 縮小画像メモリ 542は、 生成された mXn画素 の縮小画像 Lc lを保持する。 補間部 54 3は、 順次指定される画素位置: の輝度 を、 縮小画像メモリ 542に保持されている縮小画像の画素を用いた補間処理に より算出して、 得られた補間値 Lc l (p) を、 平滑化画像の画素の輝度としてコ ントラスト補正部 5 24に出力する。 ここで、 p= (x, y) は、 画素位置を示 す座標またはべタ トルである。 従って、 補間部 543から出力される平滑化画像 のサイズは、 トーンカーブ補正画像 L eのサイズは同一である。
すなわち、 平滑化輝度生成部 5 22では、 トーンカーブ補正画像 Lcが縮小さ れて縮小画像 L c tが生成され、保持された縮小画像 L c 1が利用されて平滑化画像 の輝度 Lc l (p) が 1画素ずつ補間演算によって算出されることになる。
従来では、 上述したように、 効果的な階調圧縮処理を実施するためには比較的 大きなサイズのフィルタ処理が必要であつたが、 平滑化輝度生成部 5 2 2では、 mX n画素の縮小画像を保持する縮小画像メモリ 54 2を設ければ済むことに なる。
図 38は、 図 3 7の縮小画像生成部 54 1の構成例を示している。 縮小画像生 成部 54 1のソート部 5 5 1は、 前段のトーンカーブ補正部 5 2 1から入力され たトーンカーブ補正画像 L eの画素を、 その画素位置に応じて mX n個のプロッ クに分類し、 平均値計算部 5 5 2— 1乃至 5 5 2— N ( = mX n) に供給する。 例えば、 1番目のブロックに分類されたものは平均値計算部 5 5 2— 1に供給さ れ、 2番目のプロックに分類されたものは平均値計算部 5 5 2— 2に供給される。 以下同様であり、 N番目のブロックに分類されたものは平均値計算部 5 5 2— N に供給される。 以下、 平均値計算部 5 5 2— 1乃至 5 5 2—Nを個々に区別する 必要がない場合、 単に平均値計算部 5 5 2と記述する。 平均値計算部 5 5 2— i ( i = l, 2, ···, N) は、 i番目のプロックに分類 されたトーンカーブ補正画像 L cの画素の輝度の平均値を算出して、 合成部 5 5 3に出力する。 合成部 5 5 3は、 平均値計算部 5 5 2— iからそれぞれ入力され る輝度の平均値を画素値とする m X n画素の縮小画像を生成する。
図 3 9は、 図 3 8の平均値計算部 5 5 2の構成例を示している。 平均値計算部 5 5 2の加算器 5 6 1は、 レジスタ (r ) 5 6 2が保持する値に、 前段のソート 部 5 5 1から入力されるトーンカーブ補正画像 L cの輝度を加算することにより、 レジスタ 5 6 2が保持する値を更新する。 除算器 5 6 3は、 レジスタ 5 6 2が最 終的に保持している値を、 1個のプロックを構成する画素数 Qで除算することに より、 1個のプロックに分類された Q個の画素の輝度の平均値を算出する。
図 4 0は、 図 3 7の補間部 5 4 3の構成例を示している。 補間部 5 4 3の近傍 選択部 5 7 1は、 補間位置 pの入力を受けて、 縮小画像メモリ 5 4 2に保持され ている m X n画素の縮小画像 L c tから、補間位置 pの近傍の 4 X 4画素の輝度 a [4][4]を取得して、 積和部 5 7 4に出力する。
ここで a [i][j]の表記は、輝度 aが i X j の 2次元配列データであることを示す。 また、 近傍選択部 5 7 1は、 取得した輝度 a [4][4]と補間位置 pとの水平方向の 位置ずれ量 d x、 垂直方向の位置ずれ量 d yを、 それぞれ、 水平係数算出部 5 7 2または垂直係数算出部 5 7 3に出力する。
なお、 補間位置 P、 近傍の輝度 a [4][4]、 位置ずれ量 d X , d yの関係は、 図 1 1を参照して上述したものと同様であるので、 その説明は省略する。
水平係数算出部 5 7 2は、 近傍選択部 7 1から入力された水平方向ずれ量 d X に基づき、 水平方向の 3次補間係数 k x [4]を計算する。 同様に、 垂直係数算出部 5 7 3は、 近傍選択部 5 7 1から入力された垂直方向ずれ量 d yに基づき、 垂直 方向の 3次補間係数 k y [4]を計算する。
例えば、 水平方向の 3次補間係数 k x [4]は、 上述した式 (1 ) を用いて計算す る。
また、 例えば、 垂直方向の 3次補間係数 k y [4]は、 上述した式 (2 ) を用いて 計算する。
なお、 3次補間係数 kx[4], ky [4]の計算には、 上述した式 (1), (2) の他、 十分に滑らかな補間が得られるならば、 任意の計算式を用いることができる。 積和部 5 74は、近傍の画素の輝度 a[4][4]と、水平方向の補間係数 k x[4]およ ぴ垂直方向の補間係数 ky [4]との積和計算により、 縮小画像 Lc tの捕間位置 pの 補間値 Lc l (p) を、 上述した式 (3) を用いて算出する。
図 34に戻る。 ゲイン設定部 5 23は、 トーンカーブ補正部 52 1から入力さ れる代表値 γに基づき、 コントラスト補正部 5 24において平滑化画像の輝度 L c l (p) のコントラストを補正するときの補正量を調整するゲイン値 g (p) を 各画素位置に対して算出し、 コントラスト補正部 5 24に出力する。
ここで、 ゲイン値 g (p) について説明する。 ゲイン値 g (p) = 1である場 合、 コントラスト補正部 5 24においてコントラストは強調も抑制も行われなレ、。 ゲイン値 g (p) > 1である場合、その値に対応してコントラストが強調される。 反対に、 ゲイン値 g (p) く 1である場合、 その値に対応してコントラストが抑 制される。
なお、 ゲイン設定部 523によるゲイン値設定の概略については、 上述したゲ ィン設定部 9 3によるゲイン値設定の概略と同様であるのでその説明は省略す る。
図 41は、 ゲイン値設定部 5 23の構成例を示している。 除算器 58 1は、 前 段から入力される代表値 yの逆数 lZy = g。を算出して減算器 58 2に出力す る。 減算器 5 8 2は、 (g。一 1) を演算して乗算器 588に出力する。
減算器 5 8 3は、 トーンカープ補正画像 Lcの各輝度と、 中庸なグレイレベル の輝度 Lg r a yの差 (Lc— Lg r a y) を演算して、 除算器5 8 5に出力する。 減算 器 584は、 白クリップレベルの輝度 Lwh i t eと、 輝度 Lg r a yの差 (Lwh i t e -Lg l. a y) を演算して、 除算器 5 85に出力する。 除算器 5 8 5は、 減算器 5 8 3の出力 (Lc—Lg r ay) を、 減算器 584の出力 (Lwh i t e— Lg r a y) で除算 して、 絶対値計算器 5 86に出力する。 絶対値計算器 58 6は、 除算器 5 8 5の 出力の絶対値を計算してクリップ器 5 87に出力する。 クリップ器 58 7は、 絶 対値計算器 586の出力が 1を超過する場合、 その値を 1にクリッピングし、 絶 対値計算器 586の出力が 1を超過しない場合、 その値をそのまま、 attn (p) として乗算器 588に出力する。
乗算器 5 88は、減算器 58 2の出力に、クリップ器 58 7の出力を乗算して、 加算器 58 9に出力する。 加算器 5 8 9は、 乗算器 58 8の出力に 1を加算し、 演算結果をゲイン値 g (p) として後段に出力する。 .
図 34に戻る。 コントラスト補正部 524は、 ゲイン値設定部 523から入力 される各画素位置 pのゲイン値 g (p) および平滑化輝度生成部 5 22から入力 される平滑化画像の輝度 Lc i (p) に基づき、 コントラストが弱められているト ーンカーブ補正画像 Lcのコントラストを強調して階調圧縮画像 Luを生成する。 図 42は、 コントラスト補正部 5 24の構成例を示している。 コントラスト補 正部 5 24の減算器 59 1は、 トーンカープ補正画像 Lcの各画素の輝度 Lc (p) と、 平滑化画像の対応する画素の輝度 (すなわち、 縮小画像の補間値 Lc l (p)) との差 (Lc (p) -Lc l (p)) を演算して、 乗算器 5 92に出力する。 乗算器 5 92は、 減算器 5 9 1の出力と、 ゲイン値設定部 5 23から入力されたゲイン 値 g (p) との積を演算して、 加算器 5 9 3に出力する。 加算器 59 3は、 乗算 器 5 9 2の出力に、 平滑化画像の画素の輝度 (縮小画像の補間値 Lc l (p)) を 加算して、 その結果得られた輝度 Lu (p) を、 コントラス ト補正がなされた階 調圧縮画像 Luを構成する画素の輝度として後段に出力する。
なお、 平滑化画像の画素の輝度 (縮小画像の補間値 Lc l (p)) は、 mX n画 素の縮小画像 Lc iの画素を元にして補間された値であるから、縮小前のトーン力 一プ補正画像 L cのごく低周波域成分だけをもつものである。
従って、 減算器 5 9 1の出力 (Lc (p) -Lc! (p)) は、 元のトーンカープ 補正画像 logLeから、 ごく低域成分だけを差し引いたものとなる。 このように輝 度信号を、 ごく低周波域の成分とそれ以外の成分に分離し、 そのうち、 低周波域 成分以外 (減算器 5 9 1の出力) を、 ゲイン値 g (p) を乗算することによって コントラス トを強調した後、 再び加算器 5 93により合成したものが、 コントラ ス ト補正がなされた階調圧縮画像の輝度 Lu (p) である。
このように、 コントラス ト補正部 5 24では、 ごく低周波域を除く、 低中周波 域から高周波域の成分が同じゲイン値 g (p)で強調されるようになされている。 従って、 コントラス ト補正がなされた階調圧縮画像の輝度 Lu (p) は、 高周波 域だけを強調したときに目立つ、 エツジ部分の局所的なオーバーシユートは発生 せず、 見た目にもごく自然にコントラストが強調された画像が得られるようにな されている。
次に、 画像処理装置 5 10の第 1の構成例による階調圧縮画像生成処理'(すな わち、 図 33のフローチャートを参照して上述したステップ S 10 2の処理) の 詳細について、 図 43のフローチャートを参照して説明する。
ステップ S 1 1 1において、 トーンカーブ補正部 52 1は、 ビデオカメラ 50 2から入力された広 DR画像 Lの輝度を、 予め用意されている LUT に基づいて 捕正し、 その結果として得られる トーンカーブ補正画像 Lcを、 平滑化輝度生成 部 5 2 2、ゲイン値設定部 5 23、およびコントラスト補正部 5 24に出力する。 また、 トーンカーブ補正部 5 21は、 補正に用いたトーンカーブの傾きを示す代 表値 Vをゲイン値設定部 5 23に出力する。
ステップ S 1 1 2において、 平滑化輝度生成部 5 22は、 トーンカーブ補正画 像 L。を縮小して、 縮小画像 Lc lを生成し、 さらに、 縮小画像 Lc lの画素を用い た補間演算により、 平滑化画像の画素の輝度 Lc l (p) を算出して、 コントラス ト補正部 5 24に出力する。
ステップ S 1 1 3において、 ゲイン設定部 523は、 トーンカーブ補正部 5 2 1から入力された代表値 T に基づき、 コントラスト補正部 5 24において平滑化 画像の輝度 Lc l (p) のコントラス トを補正するときの補正量を調整するゲイン 値 g (p)を各画素位置に対して算出し、コントラスト補正部 5 24に出力する。 なお、 ステップ S I 1 2の処理と、 ステップ S 1 1 3の処理は、 並行して実施 することが可能である。 ステップ S 1 1 4において、 コントラス ト捕正部 5 2 4は、 ゲイン値設定部 5 2 3から入力された各画素位置 pのゲイン値 g ( p ) および平滑化輝度生成部 5 2 2から入力される平滑化画像の輝度 L c l ( p ) に基づき、 トーンカーブ補正画 像 L eの輝度を捕正して、 階調圧縮画像 L uの面素の輝度 L u ( p ) を算出する。 このようにして得られた、 コントラス ト補正がなされた階調圧縮画像 L uは、 高 周波域だけを強調したときに目立つ、 ェッジ部分の局所的なオーバーシユートは 発生せず、見た目にもごく自然にコントラストが強調された画像となる。以上で、 画像処理装置 5 1 0の第 1の構成例による階調圧縮画像生成処理の説明を終了 する。
次に、 図 4 4は、 画像処理装置 5 1 0の第 2の構成例を示している。 この第 2 の構成例は、 図 3 4に示された第 1の構成例のトーンカープ捕正部 5 2 1の上段 に、 ビデオカメラ 5 0 1から入力される広 D R画像 Lの輝度を対数変換する対数 変換部 6 0 1を設け、 さらに、 第 1の構成例のコントラス ト補正部 5 2 4の下段 に、 コントラスト補正部 5 2 4の出力を対数逆変換する対数逆変換部 6 0 2を設 けたものである。
画像処理装置 5 1 0の第 2の構成例を構成する対数変換部 6 0 1および対数逆 変換部 6 0 2以外の構成要素については、図 3 4の第 1の構成例と同等であって、 同一の符号を付しているので、 その説明は適宜省略する。 ただし、 第 2の構成例 において、 トーンカーブ補正部 5 2 1乃至コントラス ト補正部 5 2 4は、 それぞ れ対数変換された輝度を処理することになる。
第 2の構成例におけるトーンカーブ補正部 5 2 1では、 例えば、 図 4に示され たトーンカーブが適用される。 図 4の例のように、 単調増加であって、 緩やかな 逆 S字形のトーンカーブを適用すると、 高輝度領域と低輝度領域では、 階調圧縮 があまり強く作用しないので、 階調圧縮後でも白ッブレゃ黒ッブレが少ない良好 な色調が得られる。 逆に中間輝度域は階調圧縮が強く作用するが、 その分だけ、 中間輝度域に対しては、 コントラス ト補正が十分に適用されるので、 中間輝度域 でもコントラスト劣化のない良好な階調圧縮画像 L uを得ることができる。 この トーンカーブの場合、 代表値 γ = 0. 67である。
次に、 画像処理装置 5 1 0の第 2の構成例による階調圧縮画像生成処理の詳細 について、 図 45のフローチャートを参照して説明する。
ステップ S 1 21において、 対数変換部 60 1は、 ビデオカメラ 50 2力、ら入 力された広 DR画像 Lの輝度を対数変換し、 その結果得られた対数広 DR画像 logLをトーンカープ補正部 521に出力する。
ステップ S 1 22において、 トーンカープ補正部 5 2 1は、対数広 DR画像 log Lの輝度を、 予め用意されている、 例えば、 図 4に示されたトーンカーブに相当 する LUTに基づいて補正し、 その結果として得られた対数トーンカープ補正画 像 logL cを、 平滑化輝度生成部 5 22、 ゲイン値設定部 5 23、 およびコントラ ス ト捕正部 524に出力する。 また、 トーンカーブ捕正部 5 2 1は、 補正に用い たトーンカーブの傾きを示す代表値 γをゲイン値設定部 5 23に出力する。
ステップ S 1 23において、 平滑化輝度生成部 5 22は、 対数トーンカーブ補 正画像 logL cを縮小して、 対数縮小画像 logL c lを生成し、 さらに、 対数縮小画 像 logL e iの画素を用いた補間演算により、 対数平滑化画像の画素の輝度 logL c , (p) を算出して、 コントラス ト補正部 5 24に出力する。
ステップ S 1 24において、 ゲイン設定部 52 3は、 トーンカーブ補正部 5 2 1から入力された代表値 γに基づき、 コントラスト補正部 5 24において対数平 滑化画像の輝度 logL e t (p) のコントラス トを補正するときの補正量を調整す るゲイン値 g (p) を各画素位置に対して算出し、 コントラスト補正部 5 24に 出力する。
なお、 ステップ S 1 23の処理と、 ステップ S 1 24の処理は、 並行して実施 することが可能である。
ステップ S 1 25において、 コントラスト補正部 5 24は、 ゲイン値設定部 5 23から入力された各画素位置 pのゲイン値 g (p) および平滑化輝度生成部 5 22から入力される対数平滑化画像の輝度 logLc i (p) に基づき、 対数トーン カーブ補正画像 logL cの輝度を補正して、対数階調圧縮画像 logL uの画素の輝度 log L u ( p ) を算出し、 対数逆変換部 6 0 2に出力する。
ステップ S 1 2 6において、 対数逆変換部 6 0 2は、 対数階調圧縮画像 log L u の画素の輝度 log L u ( p ) を対数逆変換して、 その結果得られた L u ( p ) を階 調圧縮画像 L uの画素の輝度として出力する。
このようにして得られた、 コントラスト補正がなされた階調圧縮画像 L uは、 高輝度領域と低輝度領域では、 階調圧縮があまり強く作用しないので、 階調圧縮 後でも白ッブレや黒ッブレが少ない良好な色調となる。 逆に中間輝度域は階調圧 縮が強く作用するが、 その分だけ、 中間輝度域に対しては、 コントラスト補正が 十分に適用されるので、 中間輝度域でもコントラスト劣化のない良好な画像とな る。 以上で、 画像処理装置 5 1 0の第 2の構成例による階調圧縮画像生成処理の 説明を終了する。
以上説明したように、 本発明の一実施の形態である画像処理装置 5 1 0によれ ば、 従来の階調圧縮技術に必要であった大量のメモリ (フレームメモリや画素系 列データのディレイラインとして使用される) を大幅に削減した構成で、 通常よ りも広いダイナミックレンジの輝度を有する広 D R画像を、 見栄得を損なうこと なく、 表示可能な輝度のダイナミックレンジがより狭いディスプレイ 5 1 1に表 示させることができる階調圧縮画像に変換することが可能となる。 また、 従来大 きなフィルタ処理をもって実現されていた階調圧縮処理と遜色のない階調圧縮 画像を得ることができる。
勿論、 画像処理装置 5 1 0は、 広 D R画像を、 ディスプレイ 5 1 1以外のプリ ンタゃプロジェクタが表現可能なダイナミックレンジに適合させて、 広 D R画像 を階調圧縮画像に変換することが可能である。
なお、 本発明は、 例えば、 ディジタルビデオカメラ、 ディジタルスチルカメラ の撮影デバイスの他、 ディスプレイ、 プリンタ、 プロジェクタ等の表現デバイス に内蔵される画像信号処理回路に適用することができる。
ところで、 上述した一連の処理は、 ハードウェアにより実行させることもでき るが、 ソフトウェアにより実行させることもできる。 一連の処理をソフトウェア により実行させる場合には、 そのソフトウェアを構成するプログラムが、 専用の ハードウェアに組み込まれているコンピュータ、 または、 各種のプログラムをィ ンス トールすることで、 各種の機能を実行することが可能な、 例えば汎用のパー ソナルコンピュータなどに、 記録媒体からインストールされる。
図 4 6は、 汎用のパーソナルコンピュータの構成例を示している。 このパーソ ナルコンピュータ 6 2 0は、 CPU(Central Processing Unit) 6 2 1を内蔵してい る。 CPU 6 2 1にはバス 6 2 4を介して、 入出力ィンタフェース 6 2 5が接続さ れている。 バス 6 2 4 には、 ROM(Read Only Memory) 6 2 2 および RAM(Random Access Memory) 6 2 3が接続されている。
入出力インタフェース 6 2 5には、 ユーザが操作コマンドを入力するキーボー ド、 マウスなどの入力デバイスよりなる入力部 6 2 6、 処理操作画面や処理結果 の画像を表示デバイスに出力する出力部 6 2 7、 プログラムや各種データを格納 するハードディスク ドライプなどよりなる記憶部 6 2 8、 ビデオ力メラ 5 0 2等 と画像データを通信する I /〇インタフェース 6 2 9が接続されている。 また、 磁気ディスク 6 3 1 (フレキシブルディスクを含む)、 光ディスク 6 3 2 (CD-R OM(Com act Disc-Read Only Mem ory)、 DVD (Digital Versatile Disc)を含む)、 光磁気ディスク 6 3 3 (MD (Mini Disc)を含む)、 もしくは半導体メモリ 6 3 4 などの記録媒体に対してデータを読み書きする ドライブ 6 3 0が接続されてい る。 . CPU 6 2 1は、 ROM 6 2 2に記憶されているプログラム、 または磁気ディス ク 6 3 1乃至半導体メモリ 6 3 4から読み出されて記憶部 6 2 8にインス ト一 ルされ、 記憶部 6 2 8から RAM 6 2 3にロードされたプログラムに従って各種 の処理を実行する。 RAM 6 2 3にはまた、 CPU 6 2 1が各種の処理を実行する 上において必要なデータなども適宜記憶される。
なお、 本明細書において、 記録媒体に記録されるプログラムを記述するステツ プは、 記載された順序に従って時系列的に行われる処理は勿論、 必ずしも時系列 的に処理されなく とも、 並列的あるいは個別に実行される処理をも含むものであ る。
また、 本明細書において、 システムとは、 複数の装置により構成される装置全 体を表すものである。
なお、 本明細書には、 日本国特許出願 2 0 0 3— 0 0 3 1 3 4 (2003年 1月 9 日出願) および 2 0 0 3— 0 0 3 1 3 5 (2003年 1月 9日出願) の特許請求の範 囲、明細書、図面、および要約書の全内容が参照され、 ここに組み込まれている。 産業上の利用可能性
以上のように、 本発明によれば、 使用するメモリの容量がより小さく、 演算が 少なくて、 ハードウェア化が容易であり、 かつ、 階調圧縮の効果が大きい階調圧 縮技術を実現することが可能となる。
また、 使用するメモリの容量がより小さく、 演算が少なくて、 ハードウェア化 が容易であり、 かつ、 適切に画像のコントラストを強調することが可能となる。

Claims

請求の範囲
1 . 入力画像から縮小画像を生成する縮小画像生成手段と、
前記縮小画像に基づき、 前記入力画像の補正情報を取得する補正情報取得手段 と、
前記入力画像の階調を変換する階調変換手段と
を含み、
前記階調変換手段は、前記階調の変換を行う前および/または後の処理として、 前記補正情報を用いて前記入力画像のコントラストを補正する
ことを特徴とする画像処理装置。
2 . 前記縮小画像を構成する画素を用いた補間演算により、 前記入力画像を構 成する画素の輝度 L。を平滑化した平滑化画像を生成する平滑化手段を
さらに含み、
前記階調変換手段は、 前記画像を構成する画素の輝度 L c、 前記平滑化画像を 構成する画素の輝度 Lい および所定のゲイン値 gに基づき、 コントラス ト補正 画像を生成する
ことを特徴とする請求の範囲第 1項に記載の画像処理装置。
3 . 前記縮小画像を構成する画素を用いた補間演算により、 前記入力画像を構 成する画素の輝度 L。を平滑化した平滑化画像を生成する平滑化手段と、
コントラストを捕正するときに用いるゲイン値 gを設定するゲイン値設定手段 と
さらに含み、
前記前記階調変換手段は、 前記入力画像を構成する画素の輝度 L c、 前記平滑 化画像を構成する画素の輝度 Lい およびゲイン値 gに基づき、 コントラス ト補 正画像を生成し、
前記ゲイン値設定手段は、 前記ゲイン値 gを、 入力された初期ゲイン値 g。、 基準ゲイン値 1、 並びに、 第 1の輝度閾値 T h ^ 第 2の輝度閾値 T h 2、 および 前記入力画像を構成する画素の前記輝度 L。によって算出される減衰値 attn ( T h 1 ( T h 2, L c ) に基づいて設定する
ことを特徴とする請求の範囲第 1項に記載の画像処理装置。
4 . 前記入力画像を構成する画素の輝度 Lを、 変換関数に基づいて変換し、 ト ーン変換画像を生成する変換手段と、
前記トーン変換画像を構成する画素の輝度 L eを平滑化して、 平滑化画像を生 成する平滑化手段と、
前記変換関数の傾き γの逆数 1 yである初期ゲイン値 g。に基づき、 コント ラス トを補正するときに用いるゲイン値 gを設定するゲイン値設定手段と をさらに含み、
前記コントラス ト補正手段は、 前記トーン変換画像を構成する画素の輝度 L c、 前記平滑化画像を構成する画素の輝度 Lい および前記ゲイン値 gに基づき、 コ ントラスト補正画像を生成し、
前記ゲイン値設定手段は、 前記ゲイン値 gを、 前記初期ゲイン値 g。、 基準ゲ イン値 1、 並びに、 第 1の輝度閾値 T h ^ 第 2の輝度閾値 T h 2、 および前記ト ーン変換画像を構成する画素の前記輝度 によって算出される減衰値 attn ( T h 1 ( T h 2 , L J に基づいて設定する
ことを特徴とする請求の範囲第 1項に記載の画像処理装置。
5 . 前記縮小画像生成手段は、 変換関数に基づいて、 前記入力画像をトーン変 换画像に変換し、 前記トーン変換画像を縮小して前記縮小画像を生成し、
前記補正情報取得手段は、 前記変換関数の傾きを含む補正情報を取得し、 前記階調変換手段は、 前記縮小画像、 および前記変換関数の傾きに基づき、 前 記トーン変換画像のコントラストを補正する
ことを特徴とする請求の範囲第 1項に記載の画像処理装置。
6 . 入力画像から縮小画像を生成する縮小画像生成ステップと、
前記縮小画像に基づき、 前記入力画像の補正情報を取得する補正情報取得ステ ップと、
前記入力画像の階調を変換する階調変換ステップと を含み、
前記階調変換ステップは、 前記階調の変換を行う前および Zまたは後の処理と して、 前記補正情報を用いて前記入力画像のコントラストを補正する
ことを特徴とする画像処理方法。
PCT/JP2003/015758 2003-01-09 2003-12-10 画像処理装置および方法 WO2004064388A1 (ja)

Priority Applications (3)

Application Number Priority Date Filing Date Title
KR1020047014084A KR101051604B1 (ko) 2003-01-09 2003-12-10 화상 처리 장치 및 방법
US10/507,274 US7570390B2 (en) 2003-01-09 2003-12-10 Image processing device and method
EP03778755A EP1494462A4 (en) 2003-01-09 2003-12-10 IMAGE PROCESSING APPARATUS AND METHOD

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
JP2003003135A JP4161719B2 (ja) 2003-01-09 2003-01-09 画像処理装置および方法、記録媒体、並びにプログラム
JP2003-3135 2003-01-09
JP2003-3134 2003-01-09
JP2003003134A JP4214457B2 (ja) 2003-01-09 2003-01-09 画像処理装置および方法、記録媒体、並びにプログラム

Publications (1)

Publication Number Publication Date
WO2004064388A1 true WO2004064388A1 (ja) 2004-07-29

Family

ID=32716370

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2003/015758 WO2004064388A1 (ja) 2003-01-09 2003-12-10 画像処理装置および方法

Country Status (4)

Country Link
US (1) US7570390B2 (ja)
EP (1) EP1494462A4 (ja)
KR (1) KR101051604B1 (ja)
WO (1) WO2004064388A1 (ja)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8045064B2 (en) 2006-08-04 2011-10-25 Samsung Electronics Co., Ltd. Contrast control apparatus and method
CN102590239B (zh) * 2007-10-05 2014-01-15 清华大学 在液态物品检查***中确定ct扫描位置的方法和设备
CN113707083A (zh) * 2020-05-20 2021-11-26 奇景光电股份有限公司 可应用于在显示模块中进行动态峰值亮度控制的时序控制器

Families Citing this family (63)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7324709B1 (en) * 2001-07-13 2008-01-29 Pixelworks, Inc. Method and apparatus for two-dimensional image scaling
JP4271978B2 (ja) * 2003-04-18 2009-06-03 株式会社日立製作所 映像表示装置
JP2006074635A (ja) * 2004-09-06 2006-03-16 Hitachi Ltd 符号化映像信号変換方法及び装置
US7417670B1 (en) 2005-01-12 2008-08-26 Ambarella, Inc. Digital video camera with binning or skipping correction
JP4831067B2 (ja) * 2005-06-20 2011-12-07 株式会社ニコン 画像処理装置、画像処理方法、画像処理プログラム製品、および撮像装置
JP4687320B2 (ja) * 2005-08-11 2011-05-25 ソニー株式会社 画像処理装置および方法、記録媒体、並びに、プログラム
JP4419933B2 (ja) 2005-08-26 2010-02-24 ソニー株式会社 画像処理装置、画像表示装置および画像処理方法
WO2007040139A1 (ja) * 2005-09-30 2007-04-12 Sharp Kabushiki Kaisha 液晶表示装置の駆動方法および液晶表示装置並びにテレビジョン受信機
US7755670B2 (en) * 2005-10-24 2010-07-13 Nikon Corporation Tone-conversion device for image, program, electronic camera, and tone-conversion method
JP4794987B2 (ja) * 2005-11-09 2011-10-19 キヤノン株式会社 映像信号処理装置
US7881563B2 (en) * 2006-02-15 2011-02-01 Nokia Corporation Distortion correction of images using hybrid interpolation technique
US8023733B2 (en) * 2006-06-08 2011-09-20 Panasonic Corporation Image processing device, image processing method, image processing program, and integrated circuit
JP2008016940A (ja) * 2006-07-03 2008-01-24 Seiko Instruments Inc コントラスト自動調整方法
US8253752B2 (en) * 2006-07-20 2012-08-28 Qualcomm Incorporated Method and apparatus for encoder assisted pre-processing
US20080042927A1 (en) * 2006-08-16 2008-02-21 Samsung Electronics Co., Ltd. Display apparatus and method of adjusting brightness thereof
KR100696165B1 (ko) * 2006-08-28 2007-03-20 엠텍비젼 주식회사 이미지 밝기 보정 장치 및 방법, 이를 수행하는 프로그램이기록된 기록 매체
US7944485B2 (en) * 2006-08-30 2011-05-17 Micron Technology, Inc. Method, apparatus and system for dynamic range estimation of imaged scenes
JP2008059287A (ja) * 2006-08-31 2008-03-13 Brother Ind Ltd 画像処理装置および画像処理プログラム
US8081839B2 (en) * 2006-08-31 2011-12-20 Brother Kogyo Kabushiki Kaisha Image processor
US8437031B2 (en) * 2006-08-31 2013-05-07 Brother Kogyo Kabushiki Kaisha Image processing device and method for reducing an original image
CN101523477A (zh) * 2006-11-20 2009-09-02 夏普株式会社 显示装置驱动方法、驱动电路、及液晶显示装置以及电视接收机
JP5003196B2 (ja) 2007-02-19 2012-08-15 ソニー株式会社 画像処理装置および方法、並びに、プログラム
US8165418B2 (en) 2007-03-30 2012-04-24 Brother Kogyo Kabushiki Kaisha Image processor
JP2009135895A (ja) * 2007-10-31 2009-06-18 Sharp Corp 映像信号変換装置,映像表示装置,映像信号変換方法
KR100951614B1 (ko) * 2007-11-30 2010-04-09 한양대학교 산학협력단 영역 분할을 이용한 영상 화질 향상 방법 및 이를 이용한영상 화질 향상 장치
US8417064B2 (en) * 2007-12-04 2013-04-09 Sony Corporation Image processing device and method, program and recording medium
JP4947154B2 (ja) * 2008-01-08 2012-06-06 富士通株式会社 画像処理装置、画像処理方法および画像処理プログラム
JP4544308B2 (ja) * 2008-01-11 2010-09-15 ソニー株式会社 画像処理装置、撮像装置、方法およびプログラム
US20090237498A1 (en) * 2008-03-20 2009-09-24 Modell Mark D System and methods for the improvement of images generated by fiberoptic imaging bundles
US20120128246A1 (en) * 2008-06-27 2012-05-24 High Definition Integration, LTD Methods and systems for color management in display systems
TWI462575B (zh) * 2008-08-06 2014-11-21 Marketech Int Corp 影像處理裝置及影像處理方法
JP5157753B2 (ja) 2008-08-27 2013-03-06 カシオ計算機株式会社 画像処理装置、画像処理方法、画像処理プログラム
KR101517360B1 (ko) * 2008-12-05 2015-05-04 삼성전자주식회사 픽셀의 휘도 정보에 기초한 영상 향상 장치 및 방법
US8363131B2 (en) * 2009-01-15 2013-01-29 Aptina Imaging Corporation Apparatus and method for local contrast enhanced tone mapping
JP4575500B2 (ja) * 2009-02-25 2010-11-04 株式会社東芝 映像信号処理装置及びその制御方法及びテレビジョン信号受信装置
KR20110021107A (ko) * 2009-08-25 2011-03-04 삼성전자주식회사 선명도 보정을 위한 영상처리장치 및 영상처리방법
JP5569042B2 (ja) * 2010-03-02 2014-08-13 株式会社リコー 画像処理装置、撮像装置及び画像処理方法
JP2011203814A (ja) * 2010-03-24 2011-10-13 Sony Corp 画像処理装置および方法、プログラム
US9204113B1 (en) * 2010-06-28 2015-12-01 Ambarella, Inc. Method and/or apparatus for implementing high dynamic range image processing in a video processing system
JP5991486B2 (ja) 2010-08-04 2016-09-14 日本電気株式会社 画像処理方法、画像処理装置及び画像処理プログラム
US8538145B2 (en) 2010-11-05 2013-09-17 Apple Inc. Gamma adjustment for maximizing information in images
US8660345B1 (en) * 2010-11-11 2014-02-25 Google Inc. Colorization-based image compression using selected color samples
KR101773419B1 (ko) * 2010-11-22 2017-09-01 삼성디스플레이 주식회사 데이터 보상 방법 및 이를 수행하는 표시 장치
WO2012143165A1 (en) * 2011-04-18 2012-10-26 Ismeca Semiconductor Holding Sa An inspection device
JP5269964B2 (ja) * 2011-09-30 2013-08-21 株式会社東芝 電子機器及び映像処理方法
JP5815386B2 (ja) 2011-12-02 2015-11-17 富士フイルム株式会社 画像処理装置、画像処理方法およびプログラム
US20130201203A1 (en) * 2012-02-06 2013-08-08 Peter Warner Intuitive media editing
JP6064776B2 (ja) 2013-05-07 2017-01-25 株式会社デンソー 画像処理装置及び画像処理方法
JP5887303B2 (ja) 2013-06-19 2016-03-16 株式会社 日立産業制御ソリューションズ 画像信号処理装置,撮像装置および画像処理プログラム
US10111099B2 (en) 2014-05-12 2018-10-23 Microsoft Technology Licensing, Llc Distributing content in managed wireless distribution networks
US9874914B2 (en) 2014-05-19 2018-01-23 Microsoft Technology Licensing, Llc Power management contracts for accessory devices
CN104021773B (zh) * 2014-05-30 2015-09-09 京东方科技集团股份有限公司 一种显示器件的亮度补偿方法、亮度补偿装置及显示器件
CN104021761B (zh) 2014-05-30 2016-03-09 京东方科技集团股份有限公司 一种显示器件的亮度补偿方法、装置及显示器件
US9460493B2 (en) * 2014-06-14 2016-10-04 Microsoft Technology Licensing, Llc Automatic video quality enhancement with temporal smoothing and user override
US9717006B2 (en) 2014-06-23 2017-07-25 Microsoft Technology Licensing, Llc Device quarantine in a wireless network
US9819937B1 (en) * 2015-04-14 2017-11-14 Teradici Corporation Resource-aware desktop image decimation method and apparatus
JP6623832B2 (ja) * 2016-02-26 2019-12-25 富士通株式会社 画像補正装置、画像補正方法及び画像補正用コンピュータプログラム
JP2017220843A (ja) * 2016-06-09 2017-12-14 ソニー株式会社 撮像制御装置および方法、並びに車両
CN109785347A (zh) * 2018-04-27 2019-05-21 京东方科技集团股份有限公司 图像处理方法、图像处理***及存储介质
KR102575126B1 (ko) * 2018-12-26 2023-09-05 주식회사 엘엑스세미콘 영상 처리 장치 및 그 방법
US10664960B1 (en) * 2019-04-15 2020-05-26 Hanwha Techwin Co., Ltd. Image processing device and method to perform local contrast enhancement
CN115499632A (zh) * 2019-10-18 2022-12-20 华为技术有限公司 一种图像信号转换处理方法、装置及终端设备
US11803947B2 (en) * 2020-03-18 2023-10-31 Intel Corporation Brightness and contrast enhancement for video

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001218057A (ja) * 2000-01-31 2001-08-10 Fuji Photo Film Co Ltd 画像処理方法
JP2002016939A (ja) * 2000-04-28 2002-01-18 Fuji Photo Film Co Ltd 画像処理方法および装置並びに記録媒体
JP2002238016A (ja) * 2001-02-07 2002-08-23 Minolta Co Ltd 画像処理装置、画像処理システム、画像処理方法、画像処理プログラムおよび画像処理プログラムを記録したコンピュータ読取可能な記録媒体
JP2002269582A (ja) * 2001-03-07 2002-09-20 Namco Ltd ゲーム情報、情報記憶媒体及びゲーム装置

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3114208B2 (ja) 1991-01-08 2000-12-04 日本電気株式会社 適応画像強調回路
JPH0690382A (ja) 1992-09-07 1994-03-29 Matsushita Electric Ind Co Ltd 階調補正装置
EP0613294B1 (en) * 1993-02-24 1998-10-28 Matsushita Electric Industrial Co., Ltd. Gradation correction device and image sensing device therewith
US6075926A (en) * 1997-04-21 2000-06-13 Hewlett-Packard Company Computerized method for improving data resolution
US6847737B1 (en) * 1998-03-13 2005-01-25 University Of Houston System Methods for performing DAF data filtering and padding
JPH11341511A (ja) 1998-05-28 1999-12-10 Sony Corp 信号処理方法および撮像装置
JP2000115534A (ja) 1998-09-30 2000-04-21 Fuji Photo Film Co Ltd 画像処理方法および装置並びに記録媒体
JP2000137805A (ja) * 1998-10-29 2000-05-16 Canon Inc 画像処理装置及びその方法
US6836565B1 (en) * 1998-10-29 2004-12-28 Canon Kabushiki Kaisha Image processing apparatus and method, and recording medium
JP3753900B2 (ja) 1999-09-09 2006-03-08 大日本スクリーン製造株式会社 画像処理装置
US7081918B2 (en) * 2000-04-28 2006-07-25 Fuji Photo Film Co., Ltd. Image processing method, image processing apparatus and recording medium storing program therefor
JP2002016821A (ja) 2000-04-28 2002-01-18 Fuji Photo Film Co Ltd 画像処理方法および装置並びにそのためのプログラムを記録した記録媒体
JP2002084446A (ja) 2000-09-07 2002-03-22 Minolta Co Ltd 撮像装置
US6856704B1 (en) * 2000-09-13 2005-02-15 Eastman Kodak Company Method for enhancing a digital image based upon pixel color
US7110604B2 (en) * 2001-06-26 2006-09-19 Anoto Ab Processing of digital images

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001218057A (ja) * 2000-01-31 2001-08-10 Fuji Photo Film Co Ltd 画像処理方法
JP2002016939A (ja) * 2000-04-28 2002-01-18 Fuji Photo Film Co Ltd 画像処理方法および装置並びに記録媒体
JP2002238016A (ja) * 2001-02-07 2002-08-23 Minolta Co Ltd 画像処理装置、画像処理システム、画像処理方法、画像処理プログラムおよび画像処理プログラムを記録したコンピュータ読取可能な記録媒体
JP2002269582A (ja) * 2001-03-07 2002-09-20 Namco Ltd ゲーム情報、情報記憶媒体及びゲーム装置

Non-Patent Citations (1)

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

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8045064B2 (en) 2006-08-04 2011-10-25 Samsung Electronics Co., Ltd. Contrast control apparatus and method
CN102590239B (zh) * 2007-10-05 2014-01-15 清华大学 在液态物品检查***中确定ct扫描位置的方法和设备
CN113707083A (zh) * 2020-05-20 2021-11-26 奇景光电股份有限公司 可应用于在显示模块中进行动态峰值亮度控制的时序控制器
CN113707083B (zh) * 2020-05-20 2024-06-11 奇景光电股份有限公司 可应用于在显示模块中进行动态峰值亮度控制的时序控制器

Also Published As

Publication number Publication date
EP1494462A1 (en) 2005-01-05
KR101051604B1 (ko) 2011-07-22
US7570390B2 (en) 2009-08-04
EP1494462A4 (en) 2005-10-26
KR20050090060A (ko) 2005-09-12
US20050226526A1 (en) 2005-10-13

Similar Documents

Publication Publication Date Title
WO2004064388A1 (ja) 画像処理装置および方法
JP4595330B2 (ja) 画像処理装置および方法、記録媒体、並びにプログラム
JP4687320B2 (ja) 画像処理装置および方法、記録媒体、並びに、プログラム
JP4894595B2 (ja) 画像処理装置および方法、並びに、プログラム
CN100366052C (zh) 图像处理设备和方法
JP5003196B2 (ja) 画像処理装置および方法、並びに、プログラム
US7755670B2 (en) Tone-conversion device for image, program, electronic camera, and tone-conversion method
JP4083587B2 (ja) 画質向上方法及びそのための装置
JP5713752B2 (ja) 画像処理装置、及びその制御方法
US20110310271A1 (en) Imaging apparatus, imaging method, integrated circuit, and storage medium
JP2011188391A (ja) 画像処理装置および方法、並びにプログラム
JP4161719B2 (ja) 画像処理装置および方法、記録媒体、並びにプログラム
JP6108680B2 (ja) 撮像装置及びその制御方法、プログラム、並びに記憶媒体
JP4992379B2 (ja) 画像の階調変換装置、プログラム、電子カメラ、およびその方法
JP2006333113A (ja) 撮像装置
US11829885B2 (en) Image processing apparatus that performs machine learning of learning model, method of controlling image processing apparatus, and storage medium
JP2008219230A (ja) 撮像装置及び画像処理方法
JP4645466B2 (ja) 撮像装置
JP4632100B2 (ja) 画像処理装置、画像処理方法、記録媒体、およびプログラム
JP3965556B2 (ja) 画像処理装置および方法、記録媒体、並びにプログラム
JP7282536B2 (ja) 画像処理装置、画像処理方法およびプログラム
JP7332325B2 (ja) 画像処理装置、撮像装置、画像処理方法、及びプログラム
JP2004179930A (ja) 画像処理装置

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A1

Designated state(s): CN KR 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

WWE Wipo information: entry into national phase

Ref document number: 2003778755

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 1020047014084

Country of ref document: KR

Ref document number: 10507274

Country of ref document: US

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: 20038A04014

Country of ref document: CN

WWP Wipo information: published in national office

Ref document number: 2003778755

Country of ref document: EP

WWP Wipo information: published in national office

Ref document number: 1020047014084

Country of ref document: KR